/* ═══════════════════════════════════════════════════════════════════════
   Studio Northaven — single stylesheet, no framework.
   Animations are restricted to transform/opacity so they stay on the
   compositor and never trigger layout.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Fonts ───────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('../fonts/fragment-mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ──────────────────────────────────────────────────────────── */
:root {
  --ink:        #0c0c0d;
  --ink-soft:   #141416;
  --paper:      #f4f2ee;
  --paper-dim:  #a8a49c;
  --line:       rgba(244, 242, 238, .14);
  --accent:     #c87a4b;

  --font-display: 'Instrument Serif', 'Noto Serif Display', Georgia, 'Times New Roman', serif;
  --font-mono:    'Fragment Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-sans:    system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --step-0:  clamp(1rem, .96rem + .18vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + .45vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.1vw, 2.4rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.3vw, 3.8rem);
  --step-4:  clamp(2.8rem, 1.5rem + 6vw, 8rem);

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --bay:    clamp(5rem, 12vh, 10rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.04; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink); padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

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

/* ── Shared bits ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.section {
  padding: var(--bay) var(--gutter);
  max-width: 88rem;
  margin-inline: auto;
}
/* Let the browser skip layout work for sections that aren't near the
   viewport yet. contain-intrinsic-size keeps the scrollbar honest. */
.section:not(#studio) {
  content-visibility: auto;
  contain-intrinsic-size: auto 40rem;
}

.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  margin-top: .6rem;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--gutter);
}
/* The hero video is arbitrary footage; without this the nav disappears
   whenever a bright frame scrolls under it. */
.site-head::before {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(12,12,13,.7), rgba(12,12,13,0));
}
.wordmark {
  text-shadow: 0 1px 12px rgba(12, 12, 13, .55);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.wordmark span { opacity: .55; margin-left: .5ch; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav a {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
  transition: opacity .25s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid currentColor;
  padding: .5rem .9rem;
  border-radius: 999px;
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 2.5rem; height: 2.5rem;
  padding: .6rem;
  flex-direction: column; justify-content: center; gap: .38rem;
}
.nav-toggle__bar {
  display: block; height: 1px; width: 100%;
  background: var(--paper);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(.195rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child  { transform: translateY(-.195rem) rotate(-45deg); }

/* ── Scroll stage ────────────────────────────────────────────────────
   The section is tall; the pin inside it is sticky. Scroll distance is
   split evenly across chapters by site.js, which maps each chapter to
   its own slice of the footage.                                       */
.stage {
  --chapters: 6;
  /* Scroll distance per chapter. More distance = less video time travelled
     per wheel notch = a more deliberate scrub. Below ~110svh the steps
     between notches start to read as jumps. */
  --chapter-scroll: 130svh;
  position: relative;
  height: calc(var(--chapters) * var(--chapter-scroll));
}
.stage__pin {
  position: sticky;
  top: 0;
  /* dvh, not svh. svh is the viewport WITH the mobile URL bar showing, so
     once the bar retracts on first scroll the viewport grows and a
     pinned svh-tall element leaves a dead band along the bottom. dvh
     tracks the bar. svh first as the fallback for browsers without dvh. */
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
/* The media is pinned to the top and sized to the LARGE viewport, so it
   still covers mid-way through the URL bar's retract animation, when the
   pin itself is briefly shorter than the visible area. The pin's
   overflow:hidden crops the excess. */
.stage__media {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100svh;
  height: 100lvh;
  z-index: -1;
}
.stage__poster,
.stage__poster img,
.stage__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Fades in over the poster once the first frame is actually decoded. */
.stage__video { opacity: 0; transition: opacity .9s var(--ease); }
.stage__video.is-playing { opacity: 1; }

.stage__scrim {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to top,
      rgb(12,12,13) 0%,          /* exactly --ink: dissolves the seam */
      rgba(12,12,13,.94) 7%,
      rgba(12,12,13,.78) 16%,
      rgba(12,12,13,.35) 46%,
      rgba(12,12,13,.5) 100%),
    linear-gradient(to right, rgba(12,12,13,.55) 0%, transparent 34%, transparent 66%, rgba(12,12,13,.55) 100%),
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(12,12,13,.55) 100%);
}

/* Grain, as a tiny inline SVG. Hides the softness of a low-res master
   and gives the whole thing a film feel. */
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ── Chapters ────────────────────────────────────────────────────── */
.chapters { position: absolute; inset: 0; }

.chapter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(6rem, 14vh, 9rem) var(--gutter) clamp(5rem, 14vh, 9rem);

  pointer-events: none;
  visibility: hidden;
}
.chapter.is-active { pointer-events: auto; visibility: visible; }

/* Placement. data-x picks the side, data-y the vertical anchor. */
.chapter[data-x="left"]   { align-items: flex-start; text-align: left; }
.chapter[data-x="right"]  { align-items: flex-end;   text-align: right; }
.chapter[data-y="top"]    { justify-content: flex-start; }
.chapter[data-y="center"] { justify-content: center; }
.chapter[data-y="bottom"] { justify-content: flex-end; }

.chapter__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  letter-spacing: -.02em;
  margin: 1.25rem 0 1.5rem;
}
.chapter__title span { display: block; }
/* The offset second line mirrors with the alignment. */
.chapter[data-x="left"]  .chapter__title span:last-child { padding-left:  clamp(0rem, 6vw, 5rem); font-style: italic; }
.chapter[data-x="right"] .chapter__title span:last-child { padding-right: clamp(0rem, 6vw, 5rem); font-style: italic; }

.chapter__lede {
  max-width: 34rem;
  color: var(--paper-dim);
  font-size: var(--step-1);
  line-height: 1.5;
}
.chapter__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.chapter[data-x="right"] .chapter__actions { justify-content: flex-end; }

/* Chapter copy sits over arbitrary footage -- a bright misty frame will
   otherwise swallow the eyebrow and lede. */
.chapter .eyebrow { color: var(--paper); opacity: .85; }
.chapter .eyebrow,
.chapter__title,
.chapter__lede { text-shadow: 0 1px 18px rgba(12, 12, 13, .6); }

/* ── Chapter entrance ─────────────────────────────────────────────────
   Lines animate individually rather than the block moving as one slab,
   and they enter from the side they are anchored to.                  */
.chapter .eyebrow,
.chapter .chapter__title span,
.chapter .chapter__lede,
.chapter .chapter__actions {
  opacity: 0;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  will-change: opacity, transform;
}
.chapter[data-x="left"]:not(.is-active)  .eyebrow,
.chapter[data-x="left"]:not(.is-active)  .chapter__title span,
.chapter[data-x="left"]:not(.is-active)  .chapter__lede,
.chapter[data-x="left"]:not(.is-active)  .chapter__actions  { transform: translate(-1.1rem, 1.4rem); }
.chapter[data-x="right"]:not(.is-active) .eyebrow,
.chapter[data-x="right"]:not(.is-active) .chapter__title span,
.chapter[data-x="right"]:not(.is-active) .chapter__lede,
.chapter[data-x="right"]:not(.is-active) .chapter__actions  { transform: translate( 1.1rem, 1.4rem); }

.chapter.is-active .eyebrow,
.chapter.is-active .chapter__title span,
.chapter.is-active .chapter__lede,
.chapter.is-active .chapter__actions { opacity: 1; transform: none; }

/* Staggered in ... */
.chapter.is-active .eyebrow                        { transition-delay: .05s; }
.chapter.is-active .chapter__title span:nth-child(1){ transition-delay: .12s; }
.chapter.is-active .chapter__title span:nth-child(2){ transition-delay: .19s; }
.chapter.is-active .chapter__lede                  { transition-delay: .26s; }
.chapter.is-active .chapter__actions               { transition-delay: .33s; }
/* ... but out together and quickly, so chapters never overlap visually. */
.chapter:not(.is-active) .eyebrow,
.chapter:not(.is-active) .chapter__title span,
.chapter:not(.is-active) .chapter__lede,
.chapter:not(.is-active) .chapter__actions {
  transition-duration: .28s;
  transition-delay: 0s;
}

/* Progress through the stage. */
.stage__progress {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 2.25rem;
  height: 1px;
  /* Softer than --line: sitting near the bottom fade, a full-width hairline
     at track strength reads as a divider rule between video and page. */
  background: rgba(244, 242, 238, .09);
}
.stage__progress span {
  display: block; height: 100%; width: 100%;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: left center;
}

.btn {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--paper);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn--solid { background: var(--paper); color: var(--ink); }
.btn--solid:hover { background: transparent; color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }

.scroll-cue {
  position: absolute;
  bottom: 3.5rem; left: 50%;
  translate: -50% 0;
  width: 1px; height: 3rem;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue span {
  display: block; width: 100%; height: 40%;
  background: var(--paper);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(350%); }
}

/* ── Statement ───────────────────────────────────────────────────────── */
.statement { max-width: 72rem; }
.statement__text {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.16;
  margin: 1.5rem 0 2rem;
  text-wrap: balance;
}
.statement__run {
  color: var(--paper-dim);
  max-width: 44rem;
  font-size: var(--step-1);
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--ink);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; gap: .75rem;
  transition: background-color .4s var(--ease);
}
.card:hover { background: var(--ink-soft); }
.card__num { font-family: var(--font-mono); font-size: .72rem; color: var(--accent); letter-spacing: .12em; }
.card h3 { font-family: var(--font-display); font-size: var(--step-2); margin-top: .35rem; }
.card p { color: var(--paper-dim); font-size: .95rem; }

/* ── Work ────────────────────────────────────────────────────────────
   Six project galleries. Each is a horizontally scrollable strip so a
   long set of photos costs one screen of height rather than six. The
   strip is a real scroll container, so keyboard and trackpad both work
   without JS; the lightbox below is pure enhancement.                 */
.section__lede {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: var(--paper-dim);
  font-size: var(--step-1);
  line-height: 1.5;
}

.projects { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
/* Grid items default to min-width: auto, so without this the flex strip
   below sizes the article to the full width of all its photos. */
.project { min-width: 0; }

.project__head { max-width: 60ch; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.project__title { font-family: var(--font-display); font-size: var(--step-2); }
.project__meta {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-top: .5rem;
}
.project__note { color: var(--paper-dim); margin-top: .9rem; max-width: 54ch; }

/* Bleed the strip into the right gutter so it reads as "there is more
   this way" rather than a box that happens to end at the margin. */
.project__strip {
  display: flex;
  gap: clamp(.6rem, 1.4vw, 1rem);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 0;
  margin-right: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) .75rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.project__strip::-webkit-scrollbar { height: 6px; }
.project__strip::-webkit-scrollbar-thumb { background: var(--line); }

.shot {
  flex: 0 0 clamp(15rem, 30vw, 26rem);
  scroll-snap-align: start;
}
.shot__btn {
  display: block; width: 100%;
  padding: 0; border: 0; cursor: zoom-in;
  background: var(--ink-soft);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.shot__btn img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease), opacity .4s var(--ease);
}
.shot__btn:hover img, .shot__btn:focus-visible img { transform: scale(1.04); }
.shot__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Lightbox ────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  /* `display: grid` here outranks the UA stylesheet's [hidden] rule, so the
     closed state has to be restated as an author style. */
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 8, 9, .975);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  display: flex; flex-direction: column; gap: .9rem;
  max-width: min(100%, 1400px);
  max-height: 100%;
}
.lightbox__figure picture { display: contents; }
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100svh - 9rem);
  width: auto; height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.lightbox__figure figcaption {
  color: var(--paper-dim); font-size: .9rem; text-align: center;
  max-width: 70ch; margin: 0 auto;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(20, 20, 22, .8);
  color: var(--paper);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--ink-soft); border-color: var(--accent); }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lightbox__close { top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }

/* ── Process ─────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--font-mono); font-size: .78rem; color: var(--accent); letter-spacing: .12em; padding-top: .5rem; }
.step h3 { font-family: var(--font-display); font-size: var(--step-2); }
.step p { color: var(--paper-dim); margin-top: .5rem; max-width: 44rem; }

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
.contact__title { font-family: var(--font-display); font-size: var(--step-3); margin: .75rem 0 2rem; }
.contact__form { display: flex; gap: .6rem; flex-wrap: wrap; max-width: 30rem; }
.contact__form input {
  flex: 1 1 14rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .95rem 1.35rem;
  color: var(--paper);
  font: inherit;
  font-size: .95rem;
}
.contact__form input::placeholder { color: var(--paper-dim); }
.contact__form button {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .95rem 1.7rem;
  border-radius: 999px; border: 1px solid var(--paper);
  background: var(--paper); color: var(--ink);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.contact__form button:hover { background: transparent; color: var(--paper); }
.contact__note { font-family: var(--font-mono); font-size: .68rem; color: var(--paper-dim); margin-top: .9rem; letter-spacing: .06em; }

.contact__details { display: grid; gap: 2rem; }
.contact__details h3 {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .6rem;
}
.contact__details p { color: var(--paper-dim); }
.contact__details a:hover { color: var(--paper); }

.contact__details .areas p { font-size: .82rem; line-height: 1.7; }
.faq .step__num { font-size: .9rem; }
.faq .step h3 { font-size: clamp(1.25rem, .9rem + .9vw, 1.7rem); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-foot {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  align-items: center; justify-content: space-between;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper-dim);
}
.site-foot__links { display: flex; gap: 1.5rem; }
.site-foot__links a:hover, .site-foot__mark { color: var(--paper); }

/* ── Reveal on scroll ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
/* Stagger siblings a little without needing per-element JS. */
.cards .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }
.cards .reveal:nth-child(5) { transition-delay: .32s; }
.cards .reveal:nth-child(6) { transition-delay: .40s; }

/* Nothing is hidden if JS never runs. */
.no-js .reveal { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 68rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 46rem) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 2rem;
    background: var(--ink);
    font-size: 1.1rem;
    transform: translateY(-100%);
    transition: transform .45s var(--ease);
  }
  .site-nav.is-open { transform: none; }
  .site-nav a { font-size: 1rem; opacity: 1; }

  .chapter__title span:last-child { padding-left: 0; }
  .stage { --chapter-scroll: 110svh; }

  /* On a phone the copy was covering ~74% of the frame and burying the
     footage. Tighter type, a single row of buttons and much less dead space
     below them bring it to roughly half, so the video still reads. */
  /* A wider gutter than the desktop clamp gives at this width, applied
     site-wide so header, chapters and sections share one margin. */
  :root { --gutter: 1.6rem; }

  .chapter {
    padding-top: 5rem;
    padding-bottom: 3.25rem;
  }
  .chapter .eyebrow { font-size: .62rem; letter-spacing: .11em; }
  .chapter__title {
    font-size: clamp(1.85rem, 8.4vw, 2.35rem);
    margin: .7rem 0 .8rem;
  }
  .chapter__lede {
    font-size: .95rem;
    line-height: 1.45;
    max-width: 30rem;
  }
  .chapter__actions { gap: .5rem; margin-top: 1.3rem; }
  .chapter__actions .btn { padding: .78rem 1.1rem; font-size: .64rem; letter-spacing: .09em; }
  .stage__progress { bottom: 1.1rem; }

  /* Keep the darkness where the text is instead of veiling the whole frame. */
  .stage__scrim {
    background:
      linear-gradient(to top,
        rgb(12,12,13) 0%,
        rgba(12,12,13,.96) 6%,
        rgba(12,12,13,.72) 30%,
        rgba(12,12,13,.18) 62%,
        rgba(12,12,13,.42) 100%);
  }

  .chapter[data-x="right"] { align-items: flex-start; text-align: left; }
  .chapter[data-x="right"] .chapter__actions { justify-content: flex-start; }
  .chapter[data-y="center"] { justify-content: flex-end; }
  .chapter[data-x="right"] .chapter__title span:last-child { padding-right: 0; }
  /* :not(.is-active) is load-bearing here. Without it this ties with
     `.chapter.is-active … { transform: none }` on specificity and, sitting
     later in the file, wins — leaving right-aligned chapters permanently
     shifted 1.1rem left and 1.4rem down on mobile, eating the gutter. */
  .chapter[data-x="right"]:not(.is-active) .eyebrow,
  .chapter[data-x="right"]:not(.is-active) .chapter__title span,
  .chapter[data-x="right"]:not(.is-active) .chapter__lede,
  .chapter[data-x="right"]:not(.is-active) .chapter__actions { transform: translate(-1.1rem, 1.4rem); }
  .scroll-cue { display: none; }

  .cards { grid-template-columns: 1fr; }
  .shot { flex: 0 0 82vw; }
  .lightbox__nav { display: none; }
  .contact { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
}

/* ── Motion preferences ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }

  /* Unpin the stage and let every chapter read as a normal section, so
     reduced-motion users still get all six pieces of copy. */
  .stage { height: auto; }
  .stage__pin { position: static; height: auto; }
  .stage__media { position: absolute; inset: 0; height: auto; }
  .chapters { position: relative; inset: auto; }
  .chapter {
    position: relative; inset: auto;
    opacity: 1; transform: none; visibility: visible; pointer-events: auto;
    min-height: 70svh;
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  .stage__progress { display: none; }
  .chapter .eyebrow,
  .chapter .chapter__title span,
  .chapter .chapter__lede,
  .chapter .chapter__actions { opacity: 1; transform: none; }
}
