/* ==========================================================================
   StoryRocket · storyrocket.com.au
   Design system + page styles. Hand-authored, no build step.

   Structure:
     1. Tokens          6. Media / video
     2. Reset + base    7. Sections
     3. Layout          8. Form
     4. Typography      9. Motion + reduced motion
     5. Components
   ========================================================================== */

/* ── 1. TOKENS ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Syne';
  src: url('../fonts/syne-latin.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin.woff2') format('woff2-variations');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand surfaces. Dark-first. */
  --ink-900: #0a0603;
  --ink-800: #0e0905;
  --ink-700: #14100a;
  --ink-600: #1c1610;
  --ink-500: #262019;

  --cream:      #f7f2ea;
  --cream-dim:  rgba(247, 242, 234, .72);
  --cream-mute: rgba(247, 242, 234, .52);
  --cream-faint:rgba(247, 242, 234, .55);

  --beige: #c8b89a;

  /* Orange is a FILL colour. At 2.4:1 on ink it fails contrast as text, so
     anything text-weight on a dark surface uses --flame, a lightened version
     of the same hue that clears AA. */
  --orange:        #c3502b;
  --orange-bright: #d96035;
  --flame:         #e8703f;
  --teal:          #4dccc4;

  /* Light surface roles, used inside .surface-light */
  --lt-bg:    #f7f2ea;
  --lt-bg-2:  #efe7da;
  --lt-text:  #17100a;
  --lt-dim:   #5b5044;
  --lt-mute:  #6b6054;
  --lt-line:  rgba(14, 9, 5, .13);

  /* Active surface roles. Overridden per-section. */
  --bg:    var(--ink-800);
  --text:  var(--cream);
  --dim:   var(--cream-dim);
  --mute:  var(--cream-mute);
  --line:  rgba(247, 242, 234, .12);
  --line-strong: rgba(247, 242, 234, .22);
  --accent: var(--flame);
  --panel: var(--ink-700);

  /* Type */
  --font-display: 'Syne', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-eyebrow: .6875rem;
  --fs-xs:      .8125rem;
  --fs-sm:      .9375rem;
  --fs-base:    clamp(1rem, .965rem + .17vw, 1.09375rem);
  --fs-lg:      clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-xl:      clamp(1.3125rem, 1.17rem + .7vw, 1.75rem);
  --fs-h3:      clamp(1.5rem, 1.28rem + 1.05vw, 2.25rem);
  --fs-h2:      clamp(2rem, 1.46rem + 2.5vw, 3.75rem);
  --fs-h1:      clamp(2.5rem, 1.35rem + 5.3vw, 6.25rem);
  --fs-stat:    clamp(2.125rem, 1.55rem + 2.7vw, 3.875rem);
  --fs-numeral: clamp(3rem, 1.8rem + 5.6vw, 7rem);

  --lh-tight: .95;
  --lh-snug: 1.12;
  --lh-body: 1.62;
  --tr-display: -.03em;
  --tr-label: .16em;

  --measure:       62ch;
  --measure-tight: 40ch;

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;
  --sec-y:    clamp(4.5rem, 9.5vw, 9.5rem);
  --sec-y-lg: clamp(5.5rem, 12vw, 12rem);

  /* Shell */
  --gutter: clamp(1.25rem, 4.6vw, 4rem);
  --maxw: 1240px;
  --maxw-wide: 1480px;
  --maxw-text: 720px;

  /* Radii. Used sparingly: media and controls only. */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: .18s;
  --dur: .32s;
  --dur-slow: .7s;

  --nav-h: 68px;
}

/* Section surface modifiers ------------------------------------------------ */
.surface-dark  { --bg: var(--ink-800); --panel: var(--ink-700); }
.surface-deep  { --bg: var(--ink-900); --panel: var(--ink-800); }
.surface-raised{ --bg: var(--ink-700); --panel: var(--ink-600); }
.surface-light {
  --bg: var(--lt-bg); --text: var(--lt-text); --dim: var(--lt-dim);
  --mute: var(--lt-mute); --line: var(--lt-line);
  --line-strong: rgba(14, 9, 5, .26);
  --accent: var(--orange); --panel: var(--lt-bg-2);
}
[class*="surface-"] { background: var(--bg); color: var(--text); }

/* ── 2. RESET + BASE ─────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  background: var(--ink-800);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
  border-radius: 2px;
}
.surface-light :focus-visible { outline-color: var(--orange); }

.skip-link {
  position: absolute; top: 0; left: 0; z-index: 200;
  padding: .75rem 1.25rem; background: var(--orange); color: #fff;
  font-weight: 600; text-decoration: none;
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── 3. LAYOUT ───────────────────────────────────────────────────────────── */

.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.shell-wide { max-width: var(--maxw-wide); }
.shell-text { max-width: var(--maxw-text); }
.section { padding-block: var(--sec-y); position: relative; }
.section-lg { padding-block: var(--sec-y-lg); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.rule { height: 1px; background: var(--line); border: 0; }

.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) {
  .grid-12 { grid-template-columns: repeat(12, 1fr); column-gap: var(--sp-6); }
  .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; }
  .col-8 { grid-column: span 8; }
}

/* Section head: eyebrow + heading + optional aside, used across the page. */
.sec-head { display: grid; gap: var(--sp-5); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 900px) {
  .sec-head-split {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: end; gap: var(--sp-8);
  }
}
.sec-head p { color: var(--dim); max-width: 46ch; }

/* ── 4. TYPOGRAPHY ───────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tr-display);
  line-height: var(--lh-snug);
  text-wrap: balance;
}

.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.032em; }
.h3 { font-size: var(--fs-h3); line-height: 1.14; }
.h4 { font-size: var(--fs-xl); line-height: 1.2; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--mute);
  display: flex; align-items: center; gap: .625rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px;
  background: var(--accent); flex: none;
}
.eyebrow-plain::before { display: none; }

.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--dim); max-width: var(--measure); }
.body { color: var(--dim); max-width: var(--measure); }
.body + .body { margin-top: var(--sp-4); }
.body-tight { max-width: var(--measure-tight); }
.accent { color: var(--accent); }
.statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xl); line-height: 1.32; letter-spacing: -.022em;
  color: var(--text); max-width: 30ch;
}

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }

/* ── 5. COMPONENTS ───────────────────────────────────────────────────────── */

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: -.01em;
  padding: .875rem 1.5rem; min-height: 48px;
  border-radius: var(--r-sm); text-decoration: none;
  transition: background var(--dur-fast) var(--ease-io),
              color var(--dur-fast) var(--ease-io),
              border-color var(--dur-fast) var(--ease-io),
              transform var(--dur-fast) var(--ease-io);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-bright); }

.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--text); background: transparent;
}
.btn-ghost:hover { border-color: var(--text); background: rgba(247,242,234,.06); }
.surface-light .btn-ghost:hover { background: rgba(14,9,5,.05); }

.btn-sm { padding: .625rem 1.125rem; min-height: 40px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* Text link with a rule that grows from the left */
.link {
  text-decoration: none; color: var(--text);
  font-weight: 500; position: relative; padding-bottom: 2px;
}
.link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }

/* Tags --------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .375rem .75rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--dim);
}
.tag-accent { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Navigation --------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  min-height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease-io),
              border-color var(--dur) var(--ease-io);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 6, 3, .82);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(247, 242, 234, .09);
}
.nav-inner {
  width: 100%; max-width: var(--maxw-wide); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
}
.nav-logo { display: flex; align-items: center; min-height: 44px; flex: none; }
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: none; }
@media (min-width: 1000px) {
  .nav-links { display: flex; align-items: center; gap: var(--sp-6); }
}
.nav-link {
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .02em;
  color: rgba(247, 242, 234, .62); text-decoration: none;
  position: relative; padding-block: .375rem;
  transition: color var(--dur-fast) var(--ease-io);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--flame); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); }
.nav-cta { display: none; }
@media (min-width: 620px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .75rem; margin-right: -.75rem;
  font-size: var(--fs-xs); font-weight: 500; color: var(--cream);
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars span {
  height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease-io);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav-panel {
  position: fixed; inset: var(--nav-h) 0 auto; z-index: 99;
  background: rgba(10, 6, 3, .97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(247, 242, 234, .1);
  padding: var(--sp-5) var(--gutter) var(--sp-6);
  display: grid; gap: var(--sp-2);
  transform-origin: top;
  animation: panel-in .26s var(--ease) both;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-8px); } }
.nav-panel[hidden] { display: none; }
.nav-panel a {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.1875rem; text-decoration: none;
  padding: .625rem 0; border-bottom: 1px solid rgba(247, 242, 234, .08);
}
.nav-panel .btn { margin-top: var(--sp-4); }
@media (min-width: 1000px) { .nav-panel { display: none !important; } }

/* Scroll progress ---------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 101;
  height: 2px; width: 100%; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
}

/* ── 6. MEDIA / VIDEO ────────────────────────────────────────────────────── */

/* Reel card: a 9:16 vertical video tile with a poster underneath.
   The <video> is layered over the poster and only fades in once it plays,
   so there is never a black box while the file loads. */
.reel {
  position: relative; display: block; width: 100%;
  aspect-ratio: 9 / 16; border-radius: var(--r-lg);
  overflow: hidden; background: var(--ink-600);
  border: 1px solid rgba(247, 242, 234, .1);
  isolation: isolate;
}
.reel-poster, .reel-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.reel-video { opacity: 0; transition: opacity .45s var(--ease-io); }
.reel.is-playing .reel-video { opacity: 1; }
.reel-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top,
    rgba(10, 6, 3, .82) 0%, rgba(10, 6, 3, .34) 26%, rgba(10, 6, 3, 0) 52%);
}

.reel-card {
  position: relative; display: block; width: 100%; padding: 0;
  text-align: left; color: var(--cream);
  transition: transform var(--dur-slow) var(--ease);
}
.reel-card .reel { transition: border-color var(--dur) var(--ease-io); }
@media (hover: hover) and (pointer: fine) {
  .reel-card:hover { transform: translateY(-6px); }
  .reel-card:hover .reel { border-color: rgba(247, 242, 234, .28); }
}
.reel-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: var(--sp-4); display: grid; gap: .125rem;
}
.reel-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: -.01em; color: #fff;
}
.reel-cat {
  font-size: var(--fs-eyebrow); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}
.reel-play {
  position: absolute; z-index: 3; top: var(--sp-4); right: var(--sp-4);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 6, 3, .5); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .26);
  transition: background var(--dur-fast) var(--ease-io), transform var(--dur) var(--ease);
}
.reel-card:hover .reel-play { background: var(--orange); border-color: var(--orange); transform: scale(1.06); }

/* Horizontal work rail ----------------------------------------------------- */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(190px, 52vw, 288px);
  gap: clamp(.875rem, 2vw, 1.5rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px var(--gutter) clamp(1rem, 3vw, 2.5rem);
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: center; list-style: none; }
@media (min-width: 900px) {
  .rail { scroll-snap-align: start; }
  .rail > *:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
}
/* Bleed the rail to the viewport edge inside a centred shell */
.rail-bleed {
  padding-inline: max(var(--gutter), (100% - var(--maxw-wide)) / 2 + var(--gutter));
  margin-inline: 0;
}
.rail-nav { display: none; gap: .5rem; }
@media (min-width: 900px) { .rail-nav { display: flex; } }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text);
  display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease-io),
              border-color var(--dur-fast) var(--ease-io),
              opacity var(--dur-fast) var(--ease-io);
}
.rail-btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); color: #fff; }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-hint {
  font-size: var(--fs-xs); color: var(--mute); margin-top: var(--sp-2);
}
@media (min-width: 900px) { .rail-hint { display: none; } }

/* Lightbox ----------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 4, 2, .93);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: fade-in .22s var(--ease-io) both;
}
@keyframes fade-in { from { opacity: 0; } }
.lightbox[hidden] { display: none; }
.lightbox-stage {
  position: relative; display: grid; gap: var(--sp-4);
  justify-items: center; max-height: 100%;
}
.lightbox video {
  max-height: min(78vh, 900px); width: auto; max-width: 100%;
  border-radius: var(--r-lg); background: #000;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
}
.lightbox-caption { text-align: center; color: var(--cream-dim); font-size: var(--fs-sm); }
.lightbox-caption strong {
  display: block; font-family: var(--font-display);
  font-size: var(--fs-base); color: var(--cream); font-weight: 700;
}
.lightbox-close {
  position: fixed; top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream);
  background: rgba(247, 242, 234, .1);
  border: 1px solid rgba(247, 242, 234, .2);
  transition: background var(--dur-fast) var(--ease-io);
}
.lightbox-close:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Framed still ------------------------------------------------------------- */
.frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); background: var(--ink-600);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-caption {
  margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--mute);
  display: flex; align-items: center; gap: .5rem;
}
.frame-caption::before { content: ''; width: 16px; height: 1px; background: var(--accent); flex: none; }

/* ── 7. SECTIONS ─────────────────────────────────────────────────────────── */

/* Hero · Content Wall -------------------------------------------------------
   The work is the hero. Columns of real client reels drift slowly in
   alternating directions behind the headline. The scrim does the legibility
   work, so the type itself stays solid and no copy depends on motion. */

.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center;
  background: var(--ink-900);
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 3rem)) var(--gutter) clamp(3rem, 6vw, 4rem);
}

.wall {
  position: absolute; inset: -12% -2%;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.5rem, 1.2vw, 1rem);
  pointer-events: none;
}
@media (min-width: 700px)  { .wall { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) { .wall { grid-template-columns: repeat(7, 1fr); } }

.wall-col { display: grid; gap: clamp(.5rem, 1.2vw, 1rem); align-content: start; }
.wall-col img,
.wall-tile {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--r-md); display: block;
}
/* The two tiles that carry motion. Video sits over its own poster and only
   fades up once it is actually playing. */
.wall-tile { position: relative; overflow: hidden; }
.wall-tile img, .wall-tile video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.wall-tile video { opacity: 0; transition: opacity .6s var(--ease-io); }
.wall-tile.is-playing video { opacity: 1; }

.wall-col-down { animation: wall-down 46s linear infinite; }
.wall-col-up   { animation: wall-up   46s linear infinite; }
.wall-col-slow { animation-duration: 68s; }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes wall-up   { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.wall-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 78% 62% at 50% 50%, rgba(10,6,3,.96) 0%, rgba(10,6,3,.86) 42%, rgba(10,6,3,.5) 72%, rgba(10,6,3,.34) 100%),
    linear-gradient(to bottom,
      rgba(10,6,3,.97) 0%, rgba(10,6,3,.78) 9%, rgba(10,6,3,.38) 26%,
      rgba(10,6,3,.38) 66%, rgba(10,6,3,.86) 88%, rgba(10,6,3,1) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 60rem; text-align: center;
  display: grid; gap: var(--sp-5); justify-items: center;
}
.hero-content .eyebrow { justify-content: center; }
.hero h1 {
  font-size: clamp(2.5rem, 1.1rem + 6.4vw, 6.5rem);
  line-height: .95; font-weight: 700; letter-spacing: -.038em;
  text-wrap: balance;
}
@media (min-width: 700px) { .hero h1 .nowrap { white-space: nowrap; } }
.hero-sub {
  font-size: var(--fs-lg); line-height: 1.5;
  color: var(--cream-dim); max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
@media (max-width: 479px) { .hero-cta .btn { flex: 1 1 100%; } }

/* On a tall narrow viewport the radial core is too small to cover the label,
   which can otherwise land on a bright tile. */
@media (max-width: 700px) {
  .wall-scrim {
    background:
      radial-gradient(ellipse 120% 46% at 50% 46%, rgba(10,6,3,.97) 0%, rgba(10,6,3,.9) 48%, rgba(10,6,3,.72) 78%, rgba(10,6,3,.6) 100%),
      linear-gradient(to bottom,
        rgba(10,6,3,.98) 0%, rgba(10,6,3,.82) 10%, rgba(10,6,3,.66) 28%,
        rgba(10,6,3,.66) 68%, rgba(10,6,3,.92) 90%, rgba(10,6,3,1) 100%);
  }
  .hero-content .eyebrow::before { display: none; }
}

/* The drift is decoration. Without it the wall is simply a still composition. */
@media (prefers-reduced-motion: reduce) {
  .wall-col-down, .wall-col-up { animation: none; }
}

/* Proof strip -------------------------------------------------------------- */
.proof {
  border-block: 1px solid var(--line);
  background: var(--ink-900);
}
/* Centre the strip and pull the outer cells' text out to the page gutter, so
   the first and last figures line up with everything else on the page. */
.proof-inner {
  width: 100%; max-width: var(--maxw-wide); margin-inline: auto;
  padding-inline: max(0px, var(--gutter) - clamp(1rem, 2vw, 1.5rem));
}
.proof-grid {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--line);
}
.proof-item {
  flex: 1 1 clamp(10rem, 30%, 15rem);
  background: var(--ink-900);
  padding: clamp(1.5rem, 3.4vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
  display: grid; gap: .375rem; align-content: start;
}
.proof-num {
  font-family: var(--font-display); font-weight: 700; white-space: nowrap;
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.125rem);
  line-height: 1; letter-spacing: -.03em; color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.proof-label { font-size: var(--fs-xs); color: var(--cream-dim); line-height: 1.4; }

/* Problem ------------------------------------------------------------------ */
.problem-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
}
.pull {
  margin-top: var(--sp-6); padding-left: clamp(1rem, 2vw, 1.75rem);
  border-left: 2px solid var(--orange);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-lg); line-height: 1.45; letter-spacing: -.02em;
  color: var(--text); max-width: 48ch;
}

/* Process ------------------------------------------------------------------ */
.process-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) {
  .process-grid { grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .process-aside { position: sticky; top: calc(var(--nav-h) + 3rem); align-self: start; }
}
.process-track { display: grid; gap: 0; margin-top: var(--sp-7); }
.process-track li { list-style: none; position: relative; padding-left: 2.25rem; }
.process-track li::before {
  content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px;
  background: var(--line);
}
.process-track li:first-child::before { top: 50%; }
.process-track li:last-child::before { bottom: 50%; }
.process-track li::after {
  content: ''; position: absolute; left: 0; top: 50%; margin-top: -5.5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink-800); border: 1px solid var(--line-strong);
  transition: background var(--dur) var(--ease-io), border-color var(--dur) var(--ease-io), transform var(--dur) var(--ease);
}
.process-track a {
  display: flex; align-items: center; min-height: 44px;
  text-decoration: none; color: var(--mute);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-base);
  letter-spacing: -.015em;
  transition: color var(--dur) var(--ease-io);
}
.process-track li.is-active::after { background: var(--orange); border-color: var(--orange); transform: scale(1.25); }
.process-track li.is-active a { color: var(--text); }
.process-loop {
  margin-top: var(--sp-5); padding-left: 2.25rem;
  display: flex; align-items: center; gap: .625rem;
  font-size: var(--fs-xs); color: var(--mute);
}
.process-loop svg { color: var(--accent); }

.process-steps { display: grid; gap: clamp(3rem, 7vw, 6rem); }
.step { display: grid; gap: var(--sp-5); scroll-margin-top: calc(var(--nav-h) + 2rem); }
@media (min-width: 700px) {
  .step-media { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
}
.step-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.75rem, 1.6rem + 4.4vw, 5.5rem); line-height: .8;
  letter-spacing: -.05em;
  color: rgba(247, 242, 234, .26);
}
.step h3 { font-size: var(--fs-h3); margin-top: var(--sp-3); }
.step p { color: var(--dim); max-width: 52ch; margin-top: var(--sp-4); }

.process-result {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(195, 80, 43, .1), rgba(195, 80, 43, 0) 58%);
}
.process-result p {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xl); line-height: 1.34; letter-spacing: -.024em;
  max-width: 44ch; color: var(--text);
}

/* Results ------------------------------------------------------------------ */
.result-row {
  display: grid; gap: var(--sp-5);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.result-row:last-of-type { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .result-row { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
}
.result-client { display: grid; gap: .25rem; align-content: center; }
.result-client h3 { font-size: var(--fs-xl); letter-spacing: -.025em; }
.result-client span { font-size: var(--fs-xs); color: var(--mute); }
.result-figs {
  display: grid; gap: var(--sp-5) clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.fig { display: grid; gap: .25rem; }
.fig-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-stat); line-height: .95; letter-spacing: -.035em;
  color: var(--flame); font-variant-numeric: tabular-nums;
}
.fig-label { font-size: var(--fs-xs); color: var(--dim); line-height: 1.4; max-width: 22ch; }
.results-note { margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--mute); max-width: 60ch; }

/* Testimonials ------------------------------------------------------------- */
.quotes { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quote { border-top: 1px solid var(--line-strong); padding-top: var(--sp-5); }
.quote blockquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-lg); line-height: 1.42; letter-spacing: -.02em;
  color: var(--text); text-wrap: pretty;
}
.quote figcaption { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--mute); }
.quote figcaption strong { display: block; color: var(--dim); font-weight: 600; font-size: var(--fs-sm); }
.quote-wide { grid-column: 1 / -1; }
.quote-wide blockquote { font-size: var(--fs-xl); max-width: 34ch; }

/* Fit ---------------------------------------------------------------------- */
.audience {
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (min-width: 900px) {
  .audience { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
}
.tick-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.tick-list li {
  list-style: none; position: relative; padding-left: 1.75rem;
  color: var(--dim); line-height: 1.5;
}
.tick-list li::before {
  content: ''; position: absolute; left: 0; top: .58em;
  width: 12px; height: 1px; background: var(--accent);
}

.fit-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 980px) {
  .fit-grid { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); align-items: start; }
}
.fit-panel { padding: clamp(1.75rem, 3.6vw, 3rem); border-radius: var(--r-lg); }
.fit-yes {
  background: var(--cream); color: var(--lt-text);
  border: 1px solid rgba(14, 9, 5, .1);
}
.fit-no {
  background: transparent; color: var(--cream-dim);
  border: 1px solid var(--line);
}
.fit-panel h3 { font-size: var(--fs-h3); letter-spacing: -.028em; }
.fit-yes h3 { color: var(--lt-text); }
.fit-no h3 { color: var(--cream-mute); font-size: var(--fs-xl); }
.fit-panel ul { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
.fit-panel li { list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: .75rem; align-items: start; line-height: 1.5; }
.fit-yes li { color: var(--lt-dim); }
.fit-yes .mark { color: var(--orange); }
.fit-no li { color: var(--cream-mute); font-size: var(--fs-sm); }
.fit-no .mark { color: var(--cream-faint); }
.mark { margin-top: .3em; }

/* Packages ----------------------------------------------------------------- */
.pkg-grid { display: grid; gap: var(--sp-4); align-items: stretch; }
@media (min-width: 860px) { .pkg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
.pkg {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel);
  transition: border-color var(--dur) var(--ease-io), transform var(--dur-slow) var(--ease);
}
@media (hover: hover) { .pkg:hover { border-color: var(--line-strong); transform: translateY(-4px); } }
.pkg-featured {
  border-color: rgba(232, 130, 95, .5);
  background: linear-gradient(180deg, rgba(195, 80, 43, .12), rgba(195, 80, 43, 0) 45%), var(--panel);
}
@media (min-width: 860px) { .pkg-featured { margin-block: -1rem; } }
.pkg-flag {
  position: absolute; top: 0; left: clamp(1.75rem, 3.2vw, 2.5rem);
  transform: translateY(-50%);
}
.pkg-name { font-size: var(--fs-xl); letter-spacing: -.028em; }
.pkg-for { font-size: var(--fs-xs); color: var(--mute); margin-top: .375rem; min-height: 2.6em; }
.pkg-outcome {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.22; letter-spacing: -.026em; color: var(--text);
  margin-top: var(--sp-4);
  /* Reserve three lines so the divider below lines up across all three cards. */
  min-height: calc(3 * 1.22em);
}
.pkg-volume {
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--dim);
}
.pkg-volume b { font-weight: 600; color: var(--text); }
.pkg-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.pkg-list li {
  list-style: none; font-size: var(--fs-sm); color: var(--dim);
  padding-left: 1.25rem; position: relative; line-height: 1.45;
}
.pkg-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 8px; height: 1px; background: var(--accent);
}
.pkg .btn { margin-top: var(--sp-6); }
.pkg-foot { margin-top: auto; padding-top: var(--sp-5); }
.pkg-terms {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  font-size: var(--fs-xs); color: var(--mute);
}
.pkg-terms li { list-style: none; display: flex; align-items: center; gap: .5rem; }
.pkg-terms li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; }

/* Founder ------------------------------------------------------------------ */
.founder { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) {
  .founder { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); }
  .founder-media { position: sticky; top: calc(var(--nav-h) + 3rem); }
}
.founder-media img { border-radius: var(--r-lg); width: 100%; }
.founder-sig {
  margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line);
  display: grid; gap: .125rem;
}
.founder-sig strong { font-family: var(--font-display); font-size: var(--fs-lg); letter-spacing: -.022em; }
.founder-sig span { font-size: var(--fs-xs); color: var(--mute); }

/* FAQ ---------------------------------------------------------------------- */
.faq-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .faq-aside { position: sticky; top: calc(var(--nav-h) + 3rem); }
}
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); text-align: left;
  padding: clamp(1.125rem, 2.2vw, 1.5rem) 0; min-height: 56px;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-base); letter-spacing: -.018em; line-height: 1.35;
  color: var(--dim);
  transition: color var(--dur-fast) var(--ease-io);
}
.faq-q:hover { color: var(--text); }
.faq-item.is-open .faq-q { color: var(--text); }
.faq-icon { flex: none; width: 16px; height: 16px; margin-top: .25em; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: var(--accent);
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease-io);
}
.faq-icon::before { width: 14px; height: 1.5px; }
.faq-icon::after  { width: 1.5px; height: 14px; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--dim); max-width: 62ch; font-size: var(--fs-sm); line-height: 1.62; }
.faq-a p:first-child { padding-top: .25rem; }
.faq-a p:last-child { padding-bottom: clamp(1.25rem, 2.4vw, 1.75rem); }
.faq-a p + p { margin-top: var(--sp-4); }

/* ── 8. FORM ─────────────────────────────────────────────────────────────── */

.enquire { position: relative; overflow: hidden; background: var(--ink-900); }
.enquire::before {
  content: ''; position: absolute; inset: auto auto -40% -15%; z-index: 0;
  width: min(820px, 90vw); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(195, 80, 43, .18), transparent 66%);
}
.enquire > * { position: relative; z-index: 1; }
.enquire-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 980px) {
  .enquire-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}
.enquire-trust { display: grid; gap: var(--sp-3); margin-top: var(--sp-7); }
.enquire-trust li { list-style: none; display: flex; gap: .75rem; align-items: baseline; font-size: var(--fs-sm); color: var(--dim); }
.enquire-trust li::before { content: ''; width: 14px; height: 1px; background: var(--accent); flex: none; transform: translateY(-.35em); }

.form-card {
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: rgba(28, 22, 16, .58);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.field-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 600px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .5rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-xs); font-weight: 500; color: var(--dim); letter-spacing: .01em; }
.field label .req { color: var(--flame); }
.field-hint { font-size: var(--fs-xs); color: var(--mute); line-height: 1.45; }
.field input, .field textarea {
  width: 100%; padding: .8125rem .9375rem; min-height: 48px;
  background: rgba(10, 6, 3, .5); color: var(--cream);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: var(--fs-sm); line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease-io), background var(--dur-fast) var(--ease-io);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(247, 242, 234, .3); }
.field input:hover, .field textarea:hover { border-color: rgba(247, 242, 234, .34); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--flame); background: rgba(10, 6, 3, .8);
  box-shadow: 0 0 0 3px rgba(232, 130, 95, .16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e2593f; }
.field-error {
  font-size: var(--fs-xs); color: #ff9c85; display: none;
  align-items: center; gap: .375rem;
}
.field-error.is-shown { display: flex; }

.form-foot { margin-top: var(--sp-6); display: grid; gap: var(--sp-4); }
.form-note { font-size: var(--fs-xs); color: var(--mute); }
.form-alert {
  display: none; gap: .625rem; align-items: flex-start;
  padding: .875rem 1rem; border-radius: var(--r-sm);
  border: 1px solid rgba(226, 89, 63, .5); background: rgba(226, 89, 63, .1);
  font-size: var(--fs-sm); color: #ffcfc3;
}
.form-alert.is-shown { display: flex; }
.form-alert a { color: #fff; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: grid; gap: var(--sp-4); padding: clamp(1rem, 2vw, 2rem) 0; }
.form-success h3 { font-size: var(--fs-h3); }
.form-success p { color: var(--dim); max-width: 44ch; }
.form-success-mark {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.site-footer { background: var(--ink-900); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) var(--sp-7); }
.footer-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); } }
.footer-brand img { height: 24px; width: auto; opacity: .85; }
.footer-tagline { margin-top: var(--sp-4); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); letter-spacing: -.022em; color: var(--cream-dim); }
.footer-blurb { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--cream-mute); max-width: 34ch; }
.footer-col h2 { font-size: var(--fs-eyebrow); font-family: var(--font-body); font-weight: 500; letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--cream-faint); }
.footer-col ul { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.footer-col li { list-style: none; }
.footer-col a, .footer-col span {
  display: inline-block; padding-block: .25rem;
  font-size: var(--fs-sm); color: var(--cream-dim); text-decoration: none;
}
.footer-col a:hover { color: var(--cream); }
.footer-base {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  justify-content: space-between; font-size: var(--fs-xs); color: var(--cream-faint);
}

/* ── 9. MOTION ───────────────────────────────────────────────────────────── */

/* Reveals are opt-in and only hide content once JS has confirmed it can
   reveal them again. Without JS everything renders visible. */
.js [data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: .07s; }
.js [data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: .14s; }
.js [data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: .21s; }
.js [data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: .28s; }
.js [data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
  .scroll-progress { display: none; }
}

/* Print --------------------------------------------------------------------- */
@media print {
  .nav, .scroll-progress, .rail-nav, .lightbox, .reel-play { display: none !important; }
  body { background: #fff; color: #000; }
  [class*="surface-"] { background: #fff !important; color: #000 !important; }
  .faq-a { grid-template-rows: 1fr !important; }
}


/* Hero entrance. A staggered CSS sequence rather than a JS timeline, so it
   starts on first paint instead of waiting for a script. */
.js .hero-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in .85s var(--ease) both;
  animation-delay: var(--d, 0s);
}
@keyframes hero-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-anim { opacity: 1; transform: none; animation: none; }
}

.lightbox-caption span { display: block; margin-top: .25rem; }


/* Delivered-output strip under step 03 */
.step-output {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.625rem, 1.4vw, 1rem);
  margin-top: var(--sp-2);
}
.step-output .frame { aspect-ratio: 9 / 16; }
@media (min-width: 700px) {
  .step-has-output { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
}

/* Loop back to the start, under step 04 */
.step-loop {
  margin-top: var(--sp-6); padding: var(--sp-5) 0 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-sm); color: var(--accent);
  max-width: 34rem;
}
.step-loop svg { flex: none; }

/* Mission Control callout, under the package grid */
.mission {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(195, 80, 43, .09), rgba(195, 80, 43, 0) 60%);
  display: grid; gap: var(--sp-4);
}
@media (min-width: 820px) {
  .mission {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
  }
}
.mission h3 { font-size: var(--fs-h3); letter-spacing: -.028em; }
.mission p { color: var(--dim); max-width: 56ch; }
.mission p + p { margin-top: var(--sp-4); }
