/* ============================================================
   REACH STUDIO — core stylesheet
   Design tokens derived from the brand mark: a warm near-black
   stage, a bone-white page color, and the brass/bronze gradient
   lifted directly from the logo as the single accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;900&family=Archivo+Expanded:wght@700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  /* color */
  --ink:        #0a0a0a;   /* near-black stage, warm not pure black */
  --ink-panel:  #141413;   /* slightly raised panel on stage */
  --bone:       #f5f3ef;   /* warm off-white, paper not screen-white */
  --bone-dim:   #c9c5bc;
  --gray-mid:   #8a8a86;
  --gray-line:  #2a2a28;
  --brass-lo:   #79766c;   /* dark end of logo gradient */
  --brass-hi:   #d8d3c4;   /* light end of logo gradient */
  --brass:      #b3ac98;   /* solid brass for accents/links */

  /* type */
  --f-display: 'Archivo Expanded', 'Archivo', sans-serif;
  --f-sans:    'Archivo', sans-serif;
  --f-serif:   'Source Serif 4', serif;
  --f-mono:    'JetBrains Mono', monospace;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(24px, 5vw, 72px);
  --section-pad: clamp(88px, 14vh, 184px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--brass); color: var(--ink); }

:focus-visible{
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ----------------------------------------------------------
   Light section — flips the dark stage to warm white to add
   contrast and rhythm between the dark cinematic blocks.
   ---------------------------------------------------------- */
.section-light{
  background: var(--bone);
  color: var(--ink);
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4{ color: var(--ink); }
.section-light .eyebrow{ color: var(--brass-lo); }
.section-light .eyebrow[style*="--ink"]::before,
.section-light .eyebrow[style*="ink"]::before{ background: var(--ink); }
.section-light .eyebrow::before{ background: var(--brass-lo); }
.section-light .body-copy,
.section-light p{ color: #3a3a37; }
.section-light .cap{ color: #6a6a64; }
.section-light .text-link{ color: var(--brass-lo); border-color: rgba(10,10,10,0.18); }
.section-light .text-link:hover{ color: var(--ink); }
.section-light [style*="border: 1px solid var(--gray-line)"],
.section-light [style*="border:1px solid var(--gray-line)"]{ border-color: rgba(10,10,10,0.14) !important; }
.section-light .btn-solid{ background: var(--ink); color: var(--bone); }
.section-light .btn-outline{ border-color: rgba(10,10,10,0.3); color: var(--ink); }
.section-light .process-step,
.section-light .process-step:last-child,
.section-light .service-row,
.section-light .service-row:last-child,
.section-light .divider{ border-color: rgba(10,10,10,0.14); }
.section-light .service-num{ color: var(--brass-lo); }

/* ---- What We Make — horizontal film blocks ---- */
.film-blocks{ display: flex; flex-direction: column; gap: 18px; }
.film-block{
  position: relative;
  background: #0d0d0d;
  border-radius: 10px;
  padding: 16px 0;
  overflow: hidden;
  box-shadow: 0 28px 55px -14px rgba(10,10,10,0.6), 0 6px 16px rgba(10,10,10,0.3);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s cubic-bezier(0.22,1,0.36,1);
}
.film-block::before,
.film-block::after{
  content: "";
  position: absolute;
  left: 0; width: 100%; height: 8px;
  z-index: 2; pointer-events: none;
  background-image: radial-gradient(circle, var(--bone) 2.4px, transparent 2.8px);
  background-size: 20px 8px;
  background-position: left center;
  background-repeat: repeat-x;
}
.film-block::before{ top: 5px; }
.film-block::after{ bottom: 5px; }
.film-block-inner{
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 36px;
  align-items: center;
  padding: 24px 36px;
}
.film-block-left{ display: flex; flex-direction: column; gap: 12px; }
.film-block-left h3{ color: var(--bone); }
.film-block-left .cap{ color: var(--brass); }
.section-light .film-block-left .cap{ color: var(--brass); }
.film-block:hover{
  transform: translateY(-5px);
  box-shadow: 0 40px 75px -16px rgba(10,10,10,0.7), 0 8px 20px rgba(10,10,10,0.35);
}
@media (max-width: 720px){
  .film-block-inner{ grid-template-columns: 1fr; gap: 16px; padding: 24px 30px; }
}

/* ---- About portrait — slow reveal zoom + hover ---- */
.portrait-frame img{
  transform: scale(1.12);
  transition: transform 1.6s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.portrait-frame.is-visible img,
[data-reveal].is-visible .portrait-frame img{
  transform: scale(1);
}
.portrait-frame:hover img{
  transform: scale(1.05);
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

/* ----------------------------------------------------------
   Typography helpers
   ---------------------------------------------------------- */
.eyebrow{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content: '';
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

h1, h2, h3, h4{
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

h1{ font-size: clamp(44px, 8vw, 104px); line-height: 0.98; }
h2{ font-size: clamp(32px, 5vw, 56px); line-height: 1.02; }
h3{ font-size: clamp(20px, 2.4vw, 28px); line-height: 1.15; }

p{ margin: 0; }

.lede{
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 640px;
}

.body-copy{
  font-family: var(--f-serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--bone-dim);
}
.body-copy p + p{ margin-top: 1.2em; }

.cap{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-mid);
}

/* ----------------------------------------------------------
   Buttons / links
   ---------------------------------------------------------- */
.btn{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid var(--bone);
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover{
  background: var(--bone);
  color: var(--ink);
}
.btn-solid{
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.btn-solid:hover{
  background: transparent;
  color: var(--bone);
}
.btn-arrow{ transition: transform 0.25s ease; }
.btn:hover .btn-arrow{ transform: translateX(4px); }

.text-link{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-line);
  padding-bottom: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover{ border-color: var(--brass-hi); color: var(--brass-hi); }

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  background: linear-gradient(to bottom, rgba(10,10,10,0.92), rgba(10,10,10,0));
  transition: background 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled{
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-line);
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand-logo img{
  height: 40px;
  width: auto;
  display: block;
  margin: -6px 0;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.main-nav a{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover, .main-nav a.is-active{ color: var(--bone); }
.main-nav a.is-active::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass-hi);
}
.nav-contact{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--gray-line);
  padding: 10px 18px;
}
.nav-contact:hover{ border-color: var(--bone); }

.menu-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  width: 32px; height: 24px;
  position: relative;
}
.menu-toggle span{
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--bone);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle span:nth-child(1){ top: 2px; }
.menu-toggle span:nth-child(2){ top: 11px; }
.menu-toggle span:nth-child(3){ top: 20px; }
.menu-toggle.is-open span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer{
  border-top: 1px solid var(--gray-line);
  padding: 40px var(--gutter) 28px;
}
.footer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-line);
}
.footer-logo-link{ display: inline-flex; align-items: center; }
.footer-logo-link img{ height: 36px; width: auto; display: block; }
.footer-links{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 88px);
  flex: 1;
  margin-left: clamp(40px, 8vw, 120px);
}
.footer-links a{
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.footer-links a:hover{ color: var(--brass-hi); }
.footer-brand p{
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--gray-mid);
  max-width: 280px;
  line-height: 1.6;
}
.footer-col .cap{ margin-bottom: 16px; display: block; }
.footer-col a, .footer-col p{
  display: block;
  font-size: 14px;
  color: var(--bone-dim);
  margin-bottom: 10px;
}
.footer-col a:hover{ color: var(--brass-hi); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .cap{ color: var(--gray-mid); }
.footer-socials{ display: flex; gap: 22px; }
.footer-socials a{ font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); }
.footer-socials a:hover{ color: var(--bone); }

/* ----------------------------------------------------------
   Section scaffolding
   ---------------------------------------------------------- */
section{ padding: var(--section-pad) 0; position: relative; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2{ margin-top: 14px; }
.divider{ height: 1px; background: var(--gray-line); border: none; margin: 0; }

/* ----------------------------------------------------------
   Hero — shared sprocket / slate motif
   ---------------------------------------------------------- */
.sprockets{
  display: flex;
  gap: 14px;
  align-items: center;
}
.sprockets span{
  width: 7px; height: 7px;
  border: 1px solid var(--gray-line);
}

/* film-roll strip used in hero */
.filmroll{
  position: relative;
  margin-top: 64px;
  background: #0d0d0d;
  /* black sprocket bars top and bottom via padding so perforations sit inside */
  padding: 13px 0;
  overflow: hidden;
}
/* perforations: repeating white notches along top and bottom bars */
.filmroll::before,
.filmroll::after{
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  z-index: 3;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 50% 50%,
    var(--bone) 0,
    var(--bone) 1.7px,
    transparent 2.1px
  );
  background-size: 16px 6px;
  background-repeat: repeat-x;
}
.filmroll::before{ top: 5px; }
.filmroll::after{ bottom: 5px; }
.filmroll-track{
  display: flex;
  width: max-content;
  animation: roll 75s linear infinite;
}
.filmroll:hover .filmroll-track{ animation-play-state: paused; }
.filmroll-frame{
  position: relative;
  width: clamp(190px, 21vw, 290px);
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  /* black gap between film cells */
  border-left: 5px solid #0d0d0d;
  border-right: 5px solid #0d0d0d;
  overflow: hidden;
}
.filmroll-frame img{ width: 100%; height: 100%; object-fit: cover; }
.filmroll-frame .frame-num{
  position: absolute;
  bottom: 8px; left: 9px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(245,243,239,0.65);
  z-index: 2;
}
@keyframes roll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   Utility grid / responsive
   ---------------------------------------------------------- */
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

@media (max-width: 980px){
  .main-nav{ display: none; }
  .menu-toggle{ display: block; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .footer-top{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-links{ margin-left: 0; gap: 18px 24px; flex-wrap: wrap; width: 100%; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
}

/* scroll reveal — subtle, fast, and never left looking washed-out mid-transition */
[data-reveal]{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* film blocks rise a little further and stagger one after another */
.film-block[data-reveal]{ transform: translateY(28px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease; }
.film-block[data-reveal]:nth-child(1){ transition-delay: 0.05s, 0.05s, 0s; }
.film-block[data-reveal]:nth-child(2){ transition-delay: 0.15s, 0.15s, 0s; }
.film-block[data-reveal]:nth-child(3){ transition-delay: 0.25s, 0.25s, 0s; }
.film-block[data-reveal]:nth-child(4){ transition-delay: 0.35s, 0.35s, 0s; }
.film-block[data-reveal]:nth-child(5){ transition-delay: 0.45s, 0.45s, 0s; }
.work-item[data-reveal]{ transform: translateY(28px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1), box-shadow 0.45s ease; }
.work-item[data-reveal]:nth-child(1){ transition-delay: 0.05s, 0.05s, 0s; }
.work-item[data-reveal]:nth-child(2){ transition-delay: 0.15s, 0.15s, 0s; }
.work-item[data-reveal]:nth-child(3){ transition-delay: 0.25s, 0.25s, 0s; }
.work-item[data-reveal]:nth-child(4){ transition-delay: 0.35s, 0.35s, 0s; }

/* mobile nav drawer */
.mobile-nav{
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.mobile-nav.is-open{ transform: translateY(0); }
.mobile-nav a{
  font-family: var(--f-display);
  font-size: 42px;
  text-transform: uppercase;
  font-weight: 800;
  border-bottom: 1px solid var(--gray-line);
  padding-bottom: 18px;
}
