/* ───────────────────────────────────────────────────────────
   Northbound — palette sampled off the film's own frames
   ─────────────────────────────────────────────────────────── */

:root {
  --sky:   #2e7e96;
  --deep:  #0b2436;
  --navy:  #071a29;
  --cream: #f4efe2;
  --lime:  #c8f169;
  --ink:   #0a1218;

  --g-1: rgba(255,255,255,.10);
  --g-2: rgba(255,255,255,.22);

  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gut:  clamp(20px, 4.6vw, 96px);
  --ease: cubic-bezier(.22,1,.36,1);
  --max:  1320px;
  --scroll-length: 1150vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy); color: var(--cream);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; }

.skip {
  position: fixed; top: -100px; left: 12px; z-index: 200;
  background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 3px;
  text-decoration: none; font-size: 13px; font-weight: 500;
}
.skip:focus { top: 12px; }

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

/* ── loader ─────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; gap: 22px; justify-items: center;
  background: var(--navy);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { font-size: 26px; font-weight: 500; letter-spacing: -.03em; }
.loader__bar { width: 190px; height: 1px; background: var(--g-2); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .25s linear; }

/* ── film ───────────────────────────────────────────────── */
.film { position: fixed; inset: 0; z-index: 0; background: var(--deep); }
.film canvas, .film__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__fallback { display: none; }
.film__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(7,26,41,.20) 0%, rgba(7,26,41,0) 18%,
                               rgba(7,26,41,0) 82%, rgba(7,26,41,.22) 100%);
  /* the copy gets its own local scrim (.beat::before) — the film itself
     is left alone so the render's own contrast survives */
}

/* ── chrome ─────────────────────────────────────────────── */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 30px;
  padding: 20px var(--gut);
}
.chrome::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,26,41,.55), rgba(7,26,41,0));
}
.mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 17px; letter-spacing: -.02em;
  color: var(--cream); text-decoration: none;
}
.mark svg { color: var(--lime); }
.mark--lg { font-size: 22px; }
.chrome__nav { margin-left: auto; display: flex; gap: 26px; }
.chrome__nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  color: rgba(244,239,226,.74); text-decoration: none; position: relative;
  padding-bottom: 3px;
}
.chrome__nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--lime); transition: width .35s var(--ease);
}
.chrome__nav a:hover { color: var(--cream); }
.chrome__nav a:hover::after { width: 100%; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: transform .35s var(--ease); }
.burger span + span { margin-top: 6px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.navPanel {
  position: fixed; inset: 0; z-index: 39; background: var(--navy);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 0 var(--gut);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.navPanel.is-open { opacity: 1; visibility: visible; }
.navPanel a {
  font-size: clamp(30px, 8vw, 46px); font-weight: 500; letter-spacing: -.03em;
  color: var(--cream); text-decoration: none; padding: 8px 0;
}
.navPanel a:last-child { color: var(--lime); }

.rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 45; background: rgba(255,255,255,.12); }
.rail i { display: block; height: 100%; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  padding: 11px 18px; border-radius: 3px; border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn--lime:hover { background: var(--cream); border-color: var(--cream); }
.btn--glass { background: rgba(255,255,255,.08); color: var(--cream); border-color: var(--g-2); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.16); border-color: var(--cream); }
.btn--lg { padding: 14px 24px; font-size: 13px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ── film stage overlays ────────────────────────────────── */
.stage { position: relative; z-index: 10; }
.stage__spacer { height: var(--scroll-length); }
.overlays { position: fixed; inset: 0; z-index: 20; pointer-events: none; }

.beat {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gut); opacity: 0; will-change: opacity, transform;
}
.beat > * { pointer-events: auto; }
.beat--l, .beat--hero, .beat--end { align-items: flex-start; text-align: left; }
.beat--r { align-items: flex-end; text-align: right; }
.beat--c, .beat--end { align-items: center; text-align: center; }
.beat--end { align-items: center; }

/* ── type ───────────────────────────────────────────────── */
.display {
  font-size: clamp(40px, 6.6vw, 96px); font-weight: 500; line-height: .98;
  letter-spacing: -.035em; margin: 0 0 18px; max-width: 16ch;
  text-shadow: 0 2px 40px rgba(4,16,30,.45);
}
.h1 { font-size: clamp(32px, 4.6vw, 64px); font-weight: 500; line-height: 1.02; letter-spacing: -.032em; margin: 0 0 16px; }
.h2 { font-size: clamp(28px, 4.2vw, 62px); font-weight: 500; line-height: 1.02; letter-spacing: -.032em; margin: 0 0 16px; text-shadow: 0 2px 34px rgba(4,16,30,.45); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(244,239,226,.62); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--lime); }
.beat--r .eyebrow { flex-direction: row-reverse; }

.lede {
  font-size: clamp(15.5px, 1.35vw, 19px); line-height: 1.55;
  color: rgba(244,239,226,.82); margin: 0; max-width: 42ch;
  text-shadow: 0 1px 22px rgba(4,16,30,.5);
}
.beat--c .lede, .beat--end .lede { max-width: 48ch; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.row--split { justify-content: space-between; align-items: center; }

.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; }
.hero-chips li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 7px 12px; border: 1px solid var(--g-2); border-radius: 100px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(8px);
}

/* ── in-film cards ──────────────────────────────────────── */
.pathcards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; justify-content: flex-end; }
.pathcard {
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 14px 18px; min-width: 140px; border-radius: 6px;
  background: rgba(255,255,255,.10); border: 1px solid var(--g-2);
  backdrop-filter: blur(14px);
}
.pathcard b { font-family: var(--mono); font-size: 11px; color: var(--lime); }
.pathcard span { font-size: 15px; font-weight: 500; }
.pathcard i { font-family: var(--mono); font-size: 11px; font-style: normal; color: rgba(244,239,226,.6); }

.panelgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px;
  width: min(100%, 1080px); margin-top: 28px;
}
.panel {
  text-align: left; padding: 20px; border-radius: 8px;
  background: rgba(255,255,255,.11); border: 1px solid var(--g-2);
  backdrop-filter: blur(16px);
  transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0));
  transition: transform .4s var(--ease), background .3s var(--ease);
  position: relative; overflow: hidden;
}
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px at var(--mx,50%) var(--my,50%), rgba(200,241,105,.22), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.panel:hover { background: rgba(255,255,255,.17); }
.panel:hover::after { opacity: 1; }
.panel b { display: block; font-size: 17px; font-weight: 500; margin-bottom: 7px; }
.panel p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgba(244,239,226,.76); }

.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 44px; margin: 32px 0 0; padding: 0; }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: clamp(34px,3.6vw,54px); font-weight: 500; line-height: 1; color: var(--lime); letter-spacing: -.03em; }
.stats span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,239,226,.62); }

/* ── page below the film ────────────────────────────────── */
.page { position: relative; z-index: 30; background: var(--navy); }
.sec { padding: clamp(72px, 10vw, 150px) var(--gut); max-width: var(--max); margin: 0 auto; }
.sec--tint { max-width: none; background: var(--deep); }
.sec--tint > * { max-width: var(--max); margin-inline: auto; }
.sec__head { margin-bottom: clamp(36px, 5vw, 62px); }
.sec__head .lede { margin-top: 10px; }

/* reveal */
.r { opacity: 0; transform: translateY(22px); }
.r--in { opacity: 1; transform: none; transition: opacity .7s var(--ease) var(--d,0ms), transform .7s var(--ease) var(--d,0ms); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  padding: 8px 15px; border-radius: 100px; cursor: pointer;
  background: transparent; color: rgba(244,239,226,.72);
  border: 1px solid var(--g-2); transition: all .3s var(--ease);
}
.chip:hover { color: var(--cream); border-color: var(--cream); }
.chip.is-on { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* work grid */
.workgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.work {
  border-radius: 10px; overflow: hidden; background: var(--deep);
  border: 1px solid rgba(255,255,255,.09);
  transform: perspective(1000px) rotateX(var(--rx,0)) rotateY(var(--ry,0));
  transition: transform .45s var(--ease), border-color .3s var(--ease);
}
.work:hover { border-color: var(--g-2); }
.work[hidden] { display: none; }
.work__sky { height: 170px; background: linear-gradient(140deg, var(--a), var(--b)); position: relative; }
.work__sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 30% 20%, rgba(255,255,255,.3), transparent 60%);
}
.work__body { padding: 20px; }
.work__body b { display: block; font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.work__body p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: rgba(244,239,226,.74); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; padding: 4px 9px; border-radius: 3px; background: rgba(255,255,255,.07); color: rgba(244,239,226,.7); }
.empty { font-family: var(--mono); font-size: 13px; color: rgba(244,239,226,.6); margin-top: 24px; }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255,255,255,.1); border-block: 1px solid rgba(255,255,255,.1); }
.steps li { background: var(--deep); padding: clamp(24px,3vw,38px) 0; display: grid; grid-template-columns: 92px 1fr 240px; gap: 28px; align-items: start; }
.steps__n { font-family: var(--mono); font-size: 12px; color: var(--lime); padding-top: 5px; }
.steps b { font-size: clamp(20px,2.2vw,28px); font-weight: 500; letter-spacing: -.02em; }
.steps p { grid-column: 2; margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(244,239,226,.76); max-width: 56ch; }
.steps li > p { grid-column: 2; }
.steps i { grid-column: 3; grid-row: 1 / span 2; font-family: var(--mono); font-style: normal; font-size: 11.5px; line-height: 1.6; color: rgba(244,239,226,.58); padding-top: 6px; }

/* tiers */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: start; }
.tier { position: relative; padding: 28px; border-radius: 10px; background: var(--deep); border: 1px solid rgba(255,255,255,.1); }
.tier--on { background: linear-gradient(170deg, rgba(200,241,105,.12), rgba(46,126,150,.1)); border-color: rgba(200,241,105,.42); }
.tier__flag { position: absolute; top: -10px; left: 28px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--lime); color: var(--ink); padding: 4px 10px; border-radius: 100px; }
.tier b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.tier__p { display: block; font-family: var(--mono); font-size: 12px; color: var(--lime); margin: 4px 0 14px; }
.tier p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: rgba(244,239,226,.78); }
.tier ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 7px; }
.tier li { font-family: var(--mono); font-size: 12px; color: rgba(244,239,226,.72); padding-left: 16px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }

/* accordion */
.acc { border-top: 1px solid rgba(255,255,255,.12); }
.acc__i { border-bottom: 1px solid rgba(255,255,255,.12); }
.acc__b {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; color: var(--cream); cursor: pointer; text-align: left;
  padding: 22px 0; font-size: clamp(16px,1.8vw,21px); font-weight: 500; letter-spacing: -.015em;
}
.acc__b i { position: relative; width: 14px; height: 14px; flex: none; }
.acc__b i::before, .acc__b i::after { content: ""; position: absolute; background: var(--lime); transition: transform .35s var(--ease); }
.acc__b i::before { left: 0; top: 6.5px; width: 14px; height: 1.5px; }
.acc__b i::after  { top: 0; left: 6.5px; width: 1.5px; height: 14px; }
.acc__i.is-open .acc__b i::after { transform: scaleY(0); }
.acc__p { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.acc__p p { margin: 0; padding-bottom: 22px; font-size: 14.5px; line-height: 1.65; color: rgba(244,239,226,.76); max-width: 68ch; }

/* contact */
.sec--contact { max-width: none; background: var(--deep); }
.contact { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.contact__meta { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.contact__meta li { display: grid; grid-template-columns: 110px 1fr; font-size: 14px; }
.contact__meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,239,226,.55); padding-top: 3px; }
.contact__meta a { color: var(--lime); text-decoration: none; }
.contact__meta a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,239,226,.6); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--cream);
  background: rgba(255,255,255,.05); border: 1px solid var(--g-2);
  border-radius: 5px; padding: 12px 14px; width: 100%; resize: vertical;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(255,255,255,.09); border-color: var(--lime); outline: none; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: #ff6b4a; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.formstatus { font-family: var(--mono); font-size: 12px; margin: 0; color: rgba(244,239,226,.7); }
.formstatus[data-tone="bad"] { color: #ff8b6a; }
.formstatus[data-tone="good"] { color: var(--lime); }
.form.is-sent .field { opacity: .5; pointer-events: none; }

/* footer */
.foot { background: var(--ink); padding: clamp(46px,6vw,72px) var(--gut) 34px; }
.foot__top, .foot__bot { max-width: var(--max); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot__top { padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { font-family: var(--mono); font-size: 12px; color: rgba(244,239,226,.7); text-decoration: none; }
.foot a:hover { color: var(--lime); }
.foot__bot { padding-top: 22px; justify-content: space-between; }
.foot__bot span { font-family: var(--mono); font-size: 11.5px; color: rgba(244,239,226,.45); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1040px) {
  .panelgrid, .workgrid, .tiers { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps li { grid-template-columns: 70px 1fr; }
  .steps i { grid-column: 2; grid-row: auto; padding-top: 10px; }
  .contact, .form { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --scroll-length: 1000vh; }
  .chrome__nav, .chrome .btn { display: none; }
  .burger { display: block; margin-left: auto; }
  .beat { justify-content: flex-end; padding-bottom: 66px; }
  .beat::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(7,26,41,0) 16%, rgba(7,26,41,.6) 46%, rgba(7,26,41,.9) 100%);
  }
  .beat--r { align-items: flex-start; text-align: left; }
  .beat--r .eyebrow { flex-direction: row; }
  .pathcards { justify-content: flex-start; }
  .panelgrid, .workgrid, .tiers { grid-template-columns: 1fr; }
  .panelgrid .panel:nth-child(n+4) { display: none; }
  .stats { gap: 26px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; }
  .steps p, .steps i, .steps li > p { grid-column: 1; }
  .contact__meta li { grid-template-columns: 1fr; gap: 2px; }
  .foot nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film canvas { display: none; }
  .film__fallback { display: block; }
  .stage__spacer { height: 640vh; }
  .r { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   MOTION LAYER
   ═══════════════════════════════════════════════════════════ */

/* ── per-beat local scrim, sized to the copy, not the frame ── */
.beat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
}
.beat.is-live::before { opacity: 1; }
.beat--l::before, .beat--hero::before {
  background: linear-gradient(100deg, rgba(7,26,41,.80) 0%, rgba(7,26,41,.52) 32%, rgba(7,26,41,0) 62%);
}
.beat--r::before {
  background: linear-gradient(260deg, rgba(7,26,41,.80) 0%, rgba(7,26,41,.52) 32%, rgba(7,26,41,0) 62%);
}
.beat--c::before, .beat--end::before {
  background: radial-gradient(64% 52% at 50% 50%, rgba(7,26,41,.76) 0%, rgba(7,26,41,.44) 56%, rgba(7,26,41,0) 100%);
}

/* ── split-line headings ────────────────────────────────── */
.is-split { display: block; }
.ln { display: block; overflow: hidden; padding-bottom: .06em; }
.ln i {
  display: block; font-style: inherit;
  transform: translateY(110%) rotate(2.5deg);
  opacity: 0;
  transition: transform .95s var(--ease), opacity .7s var(--ease);
  transition-delay: calc(var(--li) * 90ms);
}
.beat.is-live .ln i,
.wipe.is-live .ln i,
.sec__head.is-live .ln i { transform: none; opacity: 1; }

/* ── beat interiors: staggered entry + depth parallax ───── */
.beat > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i) * 85ms + 120ms);
}
.beat > .display, .beat > .h2 { opacity: 1; transform: none; }
.beat.is-live > * { opacity: 1; transform: translateY(0); }

/* each layer drifts at its own rate across the beat's window */
.beat.is-live > .eyebrow   { transform: translateY(calc(var(--t, 0) * -14px)); }
.beat.is-live > .display,
.beat.is-live > .h2        { transform: translateY(calc(var(--t, 0) * -30px)); }
.beat.is-live > .lede      { transform: translateY(calc(var(--t, 0) * -52px)); }
.beat.is-live > .row,
.beat.is-live > .hero-chips,
.beat.is-live > .stats,
.beat.is-live > .speclist,
.beat.is-live > .pathcards { transform: translateY(calc(var(--t, 0) * -78px)); }
.beat.is-live > .panelgrid { transform: translateY(calc(var(--t, 0) * -64px)); }

/* the eyebrow's rule draws itself */
.eyebrow::before { width: 0; transition: width .8s var(--ease) .25s; }
.beat.is-live .eyebrow::before,
.is-live .eyebrow::before { width: 28px; }

/* cards land with a little rotation out of depth */
.beat .pathcard, .beat .panel, .beat .hero-chips li, .beat .stats li, .beat .speclist li {
  opacity: 0;
  transform: perspective(900px) translateY(34px) rotateX(-12deg);
  transition: opacity .7s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0ms) + 260ms);
}
.beat.is-live .pathcard,
.beat.is-live .panel,
.beat.is-live .hero-chips li,
.beat.is-live .stats li,
.beat.is-live .speclist li { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0); }
.beat.is-live .panel:hover { transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)) translateY(-4px); }

/* ── section wipes below the film ───────────────────────── */
.wipe > *:not(.ln) { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.wipe.is-live > *:not(.ln) { opacity: 1; transform: none; }
.wipe.is-live > *:nth-child(2) { transition-delay: .1s; }
.wipe.is-live > *:nth-child(3) { transition-delay: .18s; }
.wipe.is-live > *:nth-child(4) { transition-delay: .26s; }

/* ── scroll-velocity skew ───────────────────────────────── */


/* ── custom cursor ──────────────────────────────────────── */
.has-cursor, .has-cursor * { cursor: none !important; }
.cur { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; border-radius: 50%; }
.cur--dot { width: 6px; height: 6px; background: var(--lime); }
.cur--ring {
  width: 34px; height: 34px; border: 1px solid rgba(200,241,105,.7);
  display: grid; place-items: center;
  transition: width .32s var(--ease), height .32s var(--ease),
              background .32s var(--ease), border-color .32s var(--ease), opacity .3s;
}
.cur--ring.is-on   { width: 54px; height: 54px; background: rgba(200,241,105,.14); }
.cur--ring.is-lg   { width: 92px; height: 92px; background: rgba(200,241,105,.92); border-color: transparent; }
.cur--ring.is-down { width: 26px; height: 26px; }
.cur--ring.is-out  { opacity: 0; }
.cur__l {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s;
}
.cur--ring.is-lg .cur__l { opacity: 1; }

/* ── magnetic ───────────────────────────────────────────── */
.btn, .chip, .rnav, .cartbtn { transform: var(--mag, translate(0,0)); }
.btn:hover { transform: var(--mag, translate(0,0)) translateY(-2px); }

/* ── ticker / marquee ───────────────────────────────────── */
.ticker { position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.12); background: rgba(7,26,41,.55);
  backdrop-filter: blur(10px); padding: 9px 0; pointer-events: none; }
.ticker__t { display: flex; gap: 26px; width: max-content; animation: slide 34s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(244,239,226,.62); white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ln i, .beat > *, .wipe > *:not(.ln), .beat .pathcard, .beat .panel,
  .beat .hero-chips li, .beat .stats li, .beat .speclist li {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .page .sec { transform: none; }
  .ticker__t { animation: none; }
  .cur { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   BEAT LAYOUT — the film's subject sits centre frame, so the
   interface frames it left and right instead of stacking on
   one side.
   ═══════════════════════════════════════════════════════════ */

.beat { display: block; padding: 0; }
.lay {
  position: absolute; inset: 0;
  display: grid; align-items: center;
  padding: 100px var(--gut) 104px;
  gap: clamp(20px, 3vw, 56px);
}
.lay--split  { grid-template-columns: minmax(0,1.05fr) minmax(0,.78fr); }
.lay--flip   { grid-template-columns: minmax(0,.78fr) minmax(0,1.05fr); }
.lay--flank  { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr); }
.lay--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }

.col { display: flex; flex-direction: column; min-width: 0; }
.col--l { align-items: flex-start; text-align: left; }
.col--r { align-items: flex-end; text-align: right; }
.col--c { align-items: center; text-align: center; }
.lay--flip .col--r { grid-column: 2; align-items: flex-end; text-align: right; }
.lay--flip .col--l { grid-column: 1; }
.lay--flank .col--l, .lay--flank .col--r { gap: 10px; justify-content: center; }
.lay--flank .col--r { align-items: stretch; }
.lay--flank .col--l { align-items: stretch; }

/* ── dossier card ───────────────────────────────────────── */
.dossier {
  width: min(100%, 340px); text-align: left;
  border: 1px solid var(--g-2); border-radius: 8px;
  background: rgba(10,24,40,.46); backdrop-filter: blur(18px);
  transform: perspective(1000px) rotateX(var(--rx,0)) rotateY(var(--ry,0));
  transition: transform .45s var(--ease);
  overflow: hidden;
}
.dossier header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--g-1); }
.dossier header b { font-size: 14px; font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.live em { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
.dossier dl { margin: 0; padding: 6px 16px 12px; }
.dossier dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.dossier dl div:last-child { border-bottom: 0; }
.dossier dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,239,226,.55); }
.dossier dd { margin: 0; font-size: 13px; }
.dossier footer { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 16px; background: rgba(200,241,105,.1); border-top: 1px solid rgba(200,241,105,.26); }
.dossier footer span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,239,226,.62); }
.dossier footer b { font-size: 19px; font-weight: 500; color: var(--lime); }

/* ── annotated list ─────────────────────────────────────── */
.annot { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; width: min(100%, 330px); }
.annot li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: baseline; text-align: left; padding: 13px 15px; border-radius: 6px; border: 1px solid var(--g-2); background: rgba(10,24,40,.40); backdrop-filter: blur(14px); }
.annot b { font-family: var(--mono); font-size: 10.5px; color: var(--lime); }
.annot span { font-size: 13.5px; line-height: 1.45; }

/* ── path rail ──────────────────────────────────────────── */
.pathrail { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: min(100%, 310px); position: relative; }
.pathrail::before { content: ""; position: absolute; left: 19px; top: 18px; bottom: 18px; width: 1px; background: repeating-linear-gradient(to bottom, var(--lime) 0 4px, transparent 4px 9px); }
.pathrail li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 12px 15px; border-radius: 6px; border: 1px solid var(--g-2); background: rgba(10,24,40,.44); backdrop-filter: blur(14px); transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)); transition: transform .4s var(--ease), background .3s var(--ease); }
.pathrail li:hover { background: rgba(10,24,40,.66); }
.pathrail b { font-family: var(--mono); font-size: 10.5px; color: var(--lime); position: relative; z-index: 1; background: #0d2135; padding: 3px 0; text-align: center; }
.pathrail span { font-size: 14px; font-weight: 500; }
.pathrail i { font-family: var(--mono); font-size: 10.5px; font-style: normal; color: rgba(244,239,226,.55); }

/* ── flanking panels ────────────────────────────────────── */
.panel { text-align: left; padding: 15px 17px; border-radius: 7px; background: rgba(10,24,40,.44); border: 1px solid var(--g-2); backdrop-filter: blur(14px); position: relative; overflow: hidden; transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)); transition: transform .4s var(--ease), background .3s var(--ease); }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(220px at var(--mx,50%) var(--my,50%), rgba(200,241,105,.20), transparent 70%); opacity: 0; transition: opacity .3s var(--ease); }
.panel:hover { background: rgba(10,24,40,.64); }
.panel:hover::after { opacity: 1; }
.panel b { display: block; font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.panel p { margin: 0; font-size: 12.5px; line-height: 1.45; color: rgba(244,239,226,.72); }

/* ── wings / mini / gauge ───────────────────────────────── */
.wings { list-style: none; display: flex; gap: 52px; margin: 30px 0 0; padding: 0; justify-content: center; }
.wings li { display: flex; flex-direction: column; align-items: center; }
.wings b { font-size: clamp(32px,3.4vw,50px); font-weight: 500; line-height: 1; color: var(--lime); }
.wings span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,239,226,.6); margin-top: 6px; }

.gauge { width: min(100%, 360px); text-align: left; display: grid; gap: 13px; padding: 20px; border-radius: 8px; border: 1px solid var(--g-2); background: rgba(10,24,40,.46); backdrop-filter: blur(18px); transform: perspective(1000px) rotateX(var(--rx,0)) rotateY(var(--ry,0)); transition: transform .45s var(--ease); }
.gauge__r { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.gauge__r span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: rgba(244,239,226,.6); }
.gauge__r b { font-size: 22px; font-weight: 500; color: var(--lime); }
.gauge__r i { grid-column: 1 / -1; height: 2px; background: rgba(255,255,255,.14); position: relative; }
.gauge__r i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--lime); transition: width 1.3s var(--ease) .25s; }
.beat.is-live .gauge__r i::after { width: var(--w); }

.mini { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; justify-content: center; }
.mini li { display: flex; flex-direction: column; gap: 3px; padding: 12px 20px; border-radius: 6px; border: 1px solid var(--g-2); background: rgba(10,24,40,.42); backdrop-filter: blur(14px); transform: perspective(900px) rotateX(var(--rx,0)) rotateY(var(--ry,0)); transition: transform .4s var(--ease); }
.mini b { font-size: 15px; font-weight: 500; }
.mini span { font-family: var(--mono); font-size: 10.5px; color: rgba(244,239,226,.58); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; padding: 0; }
.chips li { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; padding: 7px 12px; border: 1px solid var(--g-2); border-radius: 100px; background: rgba(255,255,255,.05); backdrop-filter: blur(8px); }

/* ═══ PERSISTENT HUD ══════════════════════════════════════ */

.hud { position: fixed; inset: 0; z-index: 25; pointer-events: none; }

.spine { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.spine li { display: flex; align-items: center; gap: 10px; }
.spine i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.3); transition: all .4s var(--ease); flex: none; }
.spine span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,226,.34); opacity: 0; transform: translateX(-6px); transition: all .4s var(--ease); white-space: nowrap; }
.spine li.is-on i { background: var(--lime); box-shadow: 0 0 0 4px rgba(200,241,105,.16); transform: scale(1.3); }
.spine li.is-on span { color: var(--lime); opacity: 1; transform: none; }
.spine li.is-past i { background: rgba(200,241,105,.5); }

/* readouts live in the bottom-right corner, clear of the right column */
.readout { position: absolute; right: var(--gut); bottom: 52px; display: flex; align-items: flex-end; gap: 20px; }
.readout__r { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.readout__r span { font-size: 9px; letter-spacing: .16em; color: rgba(244,239,226,.36); }
.readout__r b { font-size: 13px; font-weight: 400; color: rgba(244,239,226,.78); font-variant-numeric: tabular-nums; }
.readout__r i { font-size: 9px; font-style: normal; color: rgba(244,239,226,.32); }
/* the vertical bar rides the far right edge, out of the layout entirely */
.readout__bar { position: fixed; right: 9px; top: 50%; transform: translateY(-50%); width: 2px; height: 110px; background: rgba(255,255,255,.14); }
.readout__bar i { position: absolute; inset: 0 0 auto 0; height: 100%; width: 100%; background: var(--lime); transform: scaleY(0); transform-origin: 50% 0; }

.cue { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; transition: opacity .5s var(--ease); }
.cue span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,239,226,.42); }
.cue i { width: 1px; height: 26px; background: linear-gradient(to bottom, var(--lime), transparent); animation: drop 1.9s var(--ease) infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: 50% 0; } 45% { transform: scaleY(1); transform-origin: 50% 0; } 46% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
.cue.is-gone { opacity: 0; }

@media (max-width: 1180px) { .spine span { display: none; } }
@media (max-width: 1040px) {
  .lay--flank { grid-template-columns: 1fr; }
  .lay--flank .col--l, .lay--flank .col--r { display: none; }
  .lay--split, .lay--flip { grid-template-columns: 1fr; align-content: center; }
  .lay--flip .col--r, .lay--flip .col--l { grid-column: 1; align-items: flex-start; text-align: left; }
  .col--r { align-items: flex-start; text-align: left; }
  .readout { display: none; }
}
@media (max-width: 760px) {
  .lay { padding: 92px var(--gut) 80px; align-content: end; }
  .spine { left: 10px; gap: 9px; }
  .cue { display: none; }
  .dossier, .annot, .pathrail, .gauge { width: 100%; }
}
