/* ============================================================
   2028 TUNDRA HAMMER — immersive scroll presentation
   Black studio · neon red · scroll-scrubbed 360°
   ============================================================ */

:root{
  --void:       #050505;
  --ink:        #0A0A0A;
  --ink-2:      #0D0D0D;
  --paper:      #F2F0EE;

  --red:        #C8161C;
  --red-neon:   #FF2A2A;
  --red-hot:    #FF5A52;

  --pad:        clamp(20px, 4.4vw, 72px);
  --flank-pad:  clamp(18px, 3vw, 48px);

  /* written by the renderer so type always clears the truck */
  --contact:    70vh;
  --truck-top:  30vh;

  --ease:       cubic-bezier(.16,1,.3,1);
  --ease-soft:  cubic-bezier(.4,0,.2,1);

  --font:  'Inter Tight', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;background:var(--void)}
body{
  margin:0;
  background:var(--void);
  color:var(--paper);
  font-family:var(--font);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body.is-locked{overflow:hidden}
img{display:block;max-width:100%}
h1,h2,h3,p,ol,figure,figcaption{margin:0}
ol{list-style:none;padding:0}
a{color:inherit;text-decoration:none}

:where(a,button):focus-visible{
  outline:2px solid var(--red-neon);
  outline-offset:4px;
  border-radius:2px;
}

/* ---------- type primitives ---------- */
.display{
  display:block;
  font-weight:700;
  letter-spacing:-0.045em;
  line-height:0.92;
  text-wrap:balance;
}
.mono{
  font-family:var(--mono);
  font-weight:400;
  font-size:clamp(9px,.72vw,11px);
  letter-spacing:.22em;
  text-transform:uppercase;
}
.eyebrow{display:block;color:rgba(242,240,238,.42)}

/* the neon signature — used sparingly, never on large areas */
.neon,
.nav__logo span,
.foot__mark span,
.intro__mark span,
.callout__n,
.ledger__n,
.crop figcaption .mono,
.presence__h em{
  color:var(--red-neon);
  text-shadow:
    0 0 6px  rgba(255,42,42,.85),
    0 0 22px rgba(255,42,42,.45),
    0 0 52px rgba(255,42,42,.22);
}

/* ============================================================
   INTRO
   ============================================================ */
.intro{
  position:fixed;inset:0;z-index:100;
  display:grid;place-items:center;
  background:var(--void);
  transition:opacity .7s var(--ease-soft), visibility .7s;
}
.intro.is-done{opacity:0;visibility:hidden;pointer-events:none}
.intro__glow{
  position:absolute;left:50%;top:52%;
  width:min(70vw,760px);aspect-ratio:1;
  transform:translate(-50%,-50%) scale(.5);
  background:radial-gradient(circle,rgba(255,42,42,.4) 0%,rgba(255,42,42,0) 62%);
  filter:blur(46px);
  opacity:0;
  transition:opacity 1s var(--ease-soft), transform 1.4s var(--ease);
}
.intro.is-blooming .intro__glow{opacity:1;transform:translate(-50%,-50%) scale(1.15)}
.intro__inner{position:relative;text-align:center;display:grid;gap:18px;justify-items:center}
.intro__mark{
  font-size:clamp(13px,1.5vw,16px);font-weight:600;
  letter-spacing:.42em;text-transform:uppercase;margin-left:.42em;
}
.intro__bar{width:min(46vw,220px);height:1px;background:rgba(255,255,255,.14);overflow:hidden}
.intro__bar span{
  display:block;height:100%;width:0%;
  background:var(--red-neon);
  box-shadow:0 0 10px rgba(255,42,42,.9);
  transition:width .3s linear;
}
.intro__status{color:rgba(242,240,238,.3)}

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:60;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:clamp(16px,2vw,26px) var(--pad);
  border-bottom:1px solid transparent;
  transition:background .5s var(--ease-soft), backdrop-filter .5s, border-color .5s, padding .4s var(--ease-soft);
}
.nav--stuck{
  background:rgba(5,5,5,.6);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  border-bottom-color:rgba(255,255,255,.07);
  padding-top:12px;padding-bottom:12px;
}
.nav__logo{font-size:clamp(12px,1.15vw,14px);font-weight:700;letter-spacing:.28em;text-transform:uppercase;white-space:nowrap}
/* Persistent, so a screenshot of the hero can never read as a real
   announcement. Sits with the logo rather than in the footer for that reason. */
.nav__left{display:flex;align-items:center;gap:clamp(10px,1.4vw,20px);min-width:0}
.nav__badge{
  flex:0 1 auto;
  padding:5px 10px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  color:rgba(242,240,238,.5);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media (max-width:1100px){ .nav__badge span{display:none} }
@media (max-width:560px){ .nav__badge{padding:4px 8px;letter-spacing:.14em} }

.nav__links{display:flex;gap:clamp(18px,2.4vw,40px)}
.nav__links a{
  position:relative;font-size:13px;font-weight:500;letter-spacing:.04em;
  color:rgba(242,240,238,.62);transition:color .3s;
}
.nav__links a::after{
  content:"";position:absolute;left:0;right:0;bottom:-5px;height:1px;
  background:var(--red-neon);box-shadow:0 0 8px rgba(255,42,42,.8);
  transform:scaleX(0);transform-origin:right;transition:transform .45s var(--ease);
}
.nav__links a:hover{color:var(--paper)}
.nav__links a:hover::after{transform:scaleX(1);transform-origin:left}
.nav__cta{
  display:inline-block;padding:9px 20px;border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  font-size:12px;font-weight:600;letter-spacing:.08em;white-space:nowrap;
  transition:background .35s var(--ease-soft), border-color .35s, box-shadow .45s, color .35s;
}
.nav__cta:hover{
  background:var(--red);border-color:var(--red-neon);color:#fff;
  box-shadow:0 0 24px rgba(255,42,42,.45);
}
@media (max-width:720px){ .nav__links{display:none} }

/* ============================================================
   360° SEQUENCE
   ============================================================ */
.sequence{position:relative;height:380vh;background:var(--void)}
.sequence__static{display:none}
@media (max-width:860px){ .sequence{height:300vh} }

.stage{
  position:sticky;top:0;
  height:100vh;height:100svh;
  overflow:hidden;isolation:isolate;
}

/* ---------- black studio ---------- */
.studio{position:absolute;inset:0;z-index:0;background:var(--void)}
.studio__pool{
  position:absolute;inset:0;
  background:radial-gradient(46% 34% at 50% var(--contact), rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 70%);
}
/* No filter:blur() here — a full-viewport blur stacked over a repainting
   canvas is one of the most expensive things you can ask a compositor for,
   and a multi-stop gradient is already this soft. */
.studio__bloom{
  position:absolute;inset:0;
  background:radial-gradient(36% 24% at 50% calc(var(--contact) - 7vh),
    rgba(255,42,42,.17) 0%, rgba(255,42,42,.08) 38%, rgba(255,42,42,0) 74%);
}
/* the red laser the truck stands on */
.studio__laser{
  position:absolute;left:-4%;right:-4%;top:var(--contact);height:1px;
  background:linear-gradient(90deg,
    rgba(255,42,42,0) 0%,
    rgba(255,42,42,.85) 20%,
    rgba(255,150,150,1) 50%,
    rgba(255,42,42,.85) 80%,
    rgba(255,42,42,0) 100%);
  box-shadow:0 0 14px rgba(255,42,42,.7), 0 0 44px rgba(255,42,42,.3);
  opacity:.7;
}
/* Plain opacity rather than mix-blend-mode: a blend group over the canvas
   forces the whole stack to re-composite on every scrubbed frame. */
.studio__grain{
  position:absolute;inset:0;opacity:.035;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage__frame{position:absolute;inset:0;z-index:1;will-change:transform}
.stage__canvas{display:block;width:100%;height:100%}

/* outro: the studio closes down before the dark editorial half */
.stage__veil{
  position:absolute;inset:0;z-index:4;pointer-events:none;opacity:0;
  background:
    radial-gradient(72% 58% at 50% 52%, rgba(5,5,5,.35) 0%, rgba(5,5,5,1) 100%),
    var(--void);
}

/* ---------- editorial chapters ---------- */
.story{position:absolute;inset:0;z-index:3;pointer-events:none}
.chapter{
  position:absolute;
  opacity:var(--w,0);
  transform:translate3d(0, calc((1 - var(--w,0)) * 22px), 0);
  will-change:opacity,transform;
}
.chapter .display{
  filter:blur(calc((1 - var(--w,0)) * 7px));
  letter-spacing:calc(-0.045em + (1 - var(--w,0)) * 0.02em);
}
.chapter__h{display:grid;gap:clamp(9px,1.2vw,16px)}
.chapter__p{
  margin-top:clamp(10px,1.2vw,16px);
  font-size:clamp(13px,1.05vw,16px);
  max-width:38ch;
  color:rgba(242,240,238,.5);
  line-height:1.5;
}

/* Anchored off the renderer's safe zone: top chapters end above the
   roofline, bottom chapters begin below the contact line. */
.chapter--top{
  left:var(--pad);right:var(--pad);
  bottom:calc(100% - var(--truck-top) + clamp(14px,2.2vh,30px));
  text-align:left;
}
.chapter--bottom{
  left:var(--pad);right:var(--pad);
  top:calc(var(--contact) + clamp(30px,5vh,64px));
  text-align:right;
}
.chapter--bottom .chapter__p{margin-left:auto}
/* Capped against viewport height too, so a short landscape window can never
   push the block up under the navigation. */
.chapter .display{font-size:min(clamp(1.9rem,5vw,5.4rem), 11.5vh)}
.chapter.is-hero .display{font-size:min(clamp(2.1rem,5.6vw,6rem), 12.5vh)}

/* chapters holding a link are pulled out of the tab order while inactive */
.chapter.is-final{visibility:hidden}
.chapter.is-final.is-live{visibility:visible}
.is-final .btn{pointer-events:auto;margin-top:clamp(16px,2.2vw,26px)}

@media (max-width:720px){
  .chapter--top{bottom:calc(100% - var(--truck-top) + 14px)}
  .chapter--bottom{top:calc(var(--contact) + 26px)}
  .chapter__p{font-size:13px;max-width:30ch;margin-top:10px}
  .chapter--bottom .chapter__p{margin-left:auto}
}

/* ---------- annotations ---------- */
.callouts{position:absolute;inset:0;z-index:3;pointer-events:none}
.callout{
  position:absolute;display:flex;align-items:center;gap:12px;
  opacity:var(--w,0);
  transform:translate3d(0,calc((1 - var(--w,0)) * 10px),0);
}
.callout__rule{
  display:block;height:1px;width:clamp(28px,4vw,64px);
  background:linear-gradient(90deg,rgba(255,42,42,.9),rgba(255,42,42,.15));
  box-shadow:0 0 8px rgba(255,42,42,.5);
  transform:scaleX(var(--w,0));transform-origin:left;
}
.callout__t{
  font-size:clamp(10px,.8vw,12px);letter-spacing:.2em;text-transform:uppercase;
  color:rgba(242,240,238,.62);white-space:nowrap;
}
.callout--tr{
  top:clamp(84px,13vh,150px);right:var(--flank-pad);flex-direction:row-reverse;
}
.callout--tr .callout__rule{transform-origin:right;background:linear-gradient(270deg,rgba(255,42,42,.9),rgba(255,42,42,.15))}
.callout--bl{bottom:clamp(96px,13vh,150px);left:var(--flank-pad)}
@media (max-width:860px){ .callouts{display:none} }

/* ---------- HUD ---------- */
.hud{
  position:absolute;z-index:5;right:var(--flank-pad);
  top:50%;transform:translateY(-50%);
  display:flex;flex-direction:column;align-items:center;gap:14px;
  opacity:var(--hud,0);transition:opacity .5s var(--ease-soft);
}
.hud__track{position:relative;width:1px;height:clamp(90px,16vh,168px);background:rgba(255,255,255,.14)}
.hud__fill{
  position:absolute;top:0;left:0;width:100%;
  height:calc(var(--p,0) * 100%);
  background:var(--red-neon);
  box-shadow:0 0 10px rgba(255,42,42,.8);
}
.hud__fill::after{
  content:"";position:absolute;bottom:-2px;left:50%;
  width:5px;height:5px;margin-left:-2.5px;border-radius:50%;
  background:#fff;box-shadow:0 0 8px 2px rgba(255,42,42,.9);
}
.hud__count{color:rgba(242,240,238,.45);writing-mode:vertical-rl;letter-spacing:.28em}
.hud__count i{font-style:normal;opacity:.4}
@media (max-width:860px){
  .hud{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 18px);right:auto;left:50%;transform:translateX(-50%);flex-direction:row}
  .hud__track{width:clamp(90px,32vw,180px);height:1px}
  .hud__fill{height:100%;width:calc(var(--p,0) * 100%)}
  .hud__fill::after{bottom:auto;top:50%;left:auto;right:-2px;margin:-2.5px 0 0 0}
  .hud__count{writing-mode:horizontal-tb}
}

/* ---------- scroll cue ---------- */
.scrollcue{
  position:absolute;z-index:5;left:50%;
  bottom:calc(env(safe-area-inset-bottom,0px) + clamp(22px,3.6vh,42px));
  transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:12px;
  opacity:var(--w,0);transition:opacity .6s var(--ease-soft);
}
.scrollcue .mono{color:rgba(242,240,238,.4)}
.scrollcue__line{position:relative;width:1px;height:44px;background:rgba(255,255,255,.14);overflow:hidden}
.scrollcue__line::after{
  content:"";position:absolute;left:0;width:100%;height:40%;
  background:var(--red-neon);box-shadow:0 0 8px rgba(255,42,42,.9);
  animation:cue 2.1s var(--ease-soft) infinite;
}
@keyframes cue{0%{top:-40%}60%,100%{top:100%}}
/* kept on phones: it anchors the lower half, which the truck cannot fill
   there because a side-on crew cab is width-constrained on a narrow screen */
@media (max-width:860px){
  .scrollcue{bottom:calc(env(safe-area-inset-bottom,0px) + 74px)}
  .scrollcue__line{height:34px}
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:15px 34px;border-radius:999px;
  font-size:13px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;
  transition:transform .35s var(--ease-soft), background .35s, box-shadow .45s, color .35s, border-color .35s;
  will-change:transform;
}
.btn--solid{
  background:linear-gradient(180deg,var(--red-neon) 0%,var(--red) 100%);
  color:#fff;
  box-shadow:0 0 22px rgba(255,42,42,.35), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--solid:hover{box-shadow:0 0 60px rgba(255,42,42,.7), inset 0 1px 0 rgba(255,255,255,.28)}
.btn--ghost{border:1px solid rgba(255,255,255,.22);color:var(--paper)}
.btn--ghost:hover{border-color:rgba(255,42,42,.6);box-shadow:0 0 26px rgba(255,42,42,.22)}

/* ============================================================
   DARK EDITORIAL SECTIONS
   ============================================================ */
.reveal{
  opacity:0;transform:translate3d(0,26px,0);filter:blur(9px);
  transition:opacity .9s var(--ease-soft), transform 1s var(--ease), filter .9s var(--ease-soft);
}
.reveal.is-in{opacity:1;transform:none;filter:blur(0)}

.presence{
  position:relative;
  padding:clamp(120px,20vh,260px) var(--pad) clamp(110px,16vh,220px);
  background:var(--void);
  display:grid;gap:clamp(28px,4vw,54px);
}
.presence__h{font-size:clamp(2.8rem,8.6vw,9rem);max-width:16ch}
.presence__h em{font-style:italic;font-weight:400;letter-spacing:-0.03em}
.presence__side{
  display:grid;gap:18px;max-width:52ch;margin-left:auto;
  font-size:clamp(15px,1.25vw,19px);line-height:1.62;color:rgba(242,240,238,.5);
}
@media (min-width:1100px){
  .presence{grid-template-columns:1.35fr .8fr;align-items:end}
  .presence .eyebrow,
  .presence .stats{grid-column:1/-1}
  .presence__side{padding-bottom:.6em}
}

/* headline figures */
.stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:clamp(14px,2vw,30px);
}
@media (min-width:760px){ .stats{grid-template-columns:repeat(4,minmax(0,1fr))} }
.stat{
  display:grid;gap:8px;
  padding:clamp(20px,2.6vw,34px) clamp(14px,2vw,28px) clamp(20px,2.6vw,34px) 0;
  border-bottom:1px solid rgba(255,255,255,.12);
}
@media (min-width:760px){ .stat{border-bottom:0} }
.stat__v{
  font-size:clamp(1.9rem,4.4vw,3.6rem);
  font-weight:700;letter-spacing:-0.045em;line-height:1;
}
.stat__l{color:rgba(242,240,238,.42)}

.details{
  padding:clamp(80px,12vh,160px) var(--pad) clamp(110px,16vh,220px);
  background:var(--ink);
  display:grid;gap:clamp(18px,2.4vw,34px);
}
.details__head{display:grid;gap:16px;margin-bottom:clamp(20px,3vw,44px)}
.details__h{font-size:clamp(2.4rem,6.4vw,6rem)}
.crop{
  position:relative;overflow:hidden;
  background:radial-gradient(60% 60% at 50% 62%, #141414 0%, #070707 78%);
  border:1px solid rgba(255,255,255,.05);
}
.crop img{width:100%;height:100%;object-fit:cover;transition:transform 1.4s var(--ease)}
.crop:hover img{transform:scale(1.035)}
.crop--wide{height:clamp(280px,58vh,620px)}
.crop--tall{height:clamp(360px,74vh,760px)}
.crop-row{display:grid;gap:clamp(18px,2.4vw,34px)}
@media (min-width:900px){ .crop-row{grid-template-columns:1.15fr .85fr} }
.crop figcaption{
  position:absolute;left:0;bottom:0;
  display:flex;align-items:center;gap:14px;padding:14px 20px;
  background:rgba(5,5,5,.72);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;
}

/* ============================================================
   THE ENGINE, ANNOTATED
   Leader lines draw out as the pinned section is scrubbed.
   ============================================================ */
/* Tall enough to give the five callouts room to build one after another.
   Pure black, not --ink: these renders sit on #000 inside a lighter 16.5%
   border band, and matching the interior is what hides the frame edge. */
.heart{position:relative;background:#000;height:300vh}
.heart__pin{
  position:sticky;top:0;
  height:100vh;height:100svh;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto 1fr;
  gap:clamp(10px,2vh,26px);
  padding:clamp(84px,13vh,150px) var(--pad) clamp(24px,4vh,50px);
}
.heart__head{display:grid;gap:14px}
.heart__h{font-size:min(clamp(2.2rem,6vw,5.5rem), 13vh)}

/* The box must match the image's aspect exactly — that is what lets each
   callout sit at plain image coordinates. So take the smallest of the three
   limits: the column, a sane maximum, and what the pinned height allows.
   Driving off height alone breaks the ratio on tall viewports and throws the
   engine off screen; the third term is the width that height permits. */
.engine{
  position:relative;
  aspect-ratio:1536/1024;
  width:min(100%, 1180px, calc((100svh - 380px) * 1.5));
  justify-self:center;
  align-self:center;
}
.engine__glow{
  position:absolute;left:50%;top:52%;
  width:58%;aspect-ratio:1;transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(255,42,42,.17) 0%, rgba(255,42,42,.05) 42%, rgba(255,42,42,0) 70%);
  pointer-events:none;
}
/* No edge mask: tools/flatten_engine_bg.py rolls these frames' backdrop to a
   true #000, so the photograph meets the section exactly and there is nothing
   to hide. */
.engine__shot{position:absolute;inset:0}
.engine__img{width:100%;height:100%;object-fit:contain}

.engine__notes{position:absolute;inset:0;pointer-events:none}
/* Each note spans from the frame edge to its anchor point, so the leader
   line simply flexes to whatever length it needs — no per-note maths. */
.note{
  position:absolute;top:var(--y);
  transform:translateY(-50%);
  display:flex;align-items:center;gap:clamp(8px,1vw,14px);
}
.note--l{left:0;right:calc(100% - var(--x));text-align:right}
.note--r{left:var(--x);right:0;flex-direction:row-reverse;text-align:left}
.note__body{
  flex:0 0 auto;
  display:grid;gap:2px;
  opacity:var(--w,0);
  transform:translateX(calc((1 - var(--w,0)) * -14px));
}
.note--r .note__body{transform:translateX(calc((1 - var(--w,0)) * 14px))}
.note__n{display:block;color:var(--red-neon);text-shadow:0 0 8px rgba(255,42,42,.7)}
.note__body b{
  display:block;font-size:clamp(12px,1.05vw,16px);font-weight:600;
  letter-spacing:-0.01em;color:var(--paper);white-space:nowrap;
}
.note__body em{
  display:block;font-style:normal;
  font-size:clamp(10px,.78vw,12px);letter-spacing:.04em;
  color:rgba(242,240,238,.42);white-space:nowrap;
}
.note__line{
  flex:1 1 auto;min-width:18px;height:1px;
  background:linear-gradient(90deg, rgba(255,42,42,.15), rgba(255,42,42,.85));
  box-shadow:0 0 8px rgba(255,42,42,.35);
  transform:scaleX(var(--w,0));transform-origin:left;
}
.note--r .note__line{
  background:linear-gradient(270deg, rgba(255,42,42,.15), rgba(255,42,42,.85));
  transform-origin:right;
}
.note__tip{
  flex:0 0 auto;
  width:0;height:0;
  border-top:4px solid transparent;
  border-bottom:4px solid transparent;
  border-left:7px solid var(--red-neon);
  filter:drop-shadow(0 0 5px rgba(255,42,42,.9));
  /* cubed so the arrowhead lands only once its line has arrived */
  opacity:calc(var(--w,0) * var(--w,0) * var(--w,0));
}
.note--r .note__tip{border-left:0;border-right:7px solid var(--red-neon)}

@media (max-width:900px){
  /* Not enough margin beside the engine for leader lines — the annotations
     become a plain list underneath, always visible. */
  .heart{height:auto}
  .heart__pin{position:static;height:auto;overflow:visible;padding-bottom:clamp(40px,8vh,90px)}
  .engine{max-height:none}
  .engine__notes{position:static;display:grid;grid-template-columns:repeat(2,1fr);gap:18px 20px;margin-top:26px}
  .note{position:static;transform:none;display:block;text-align:left}
  .note--r{flex-direction:row}
  .note__body{opacity:1 !important;transform:none !important}
  .note__line,.note__tip{display:none}
}

/* ---------- THE ORBIT: vertical scroll drives a horizontal track ---------- */
.rail{position:relative;background:var(--void)}
.rail__pin{
  position:sticky;top:0;
  height:100vh;height:100svh;
  overflow:hidden;
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:clamp(18px,3vh,40px);
  padding:clamp(84px,13vh,150px) 0 clamp(28px,5vh,56px);
}
.rail__head{padding:0 var(--pad);display:grid;gap:14px}
.rail__h{font-size:min(clamp(2.2rem,6vw,5.5rem), 13vh)}
.rail__viewport{overflow:hidden;display:flex;align-items:center}
.rail__track{
  display:flex;
  gap:clamp(16px,2.4vw,40px);
  padding:0 var(--pad);
  will-change:transform;
}
.panel{
  position:relative;
  flex:0 0 auto;
  width:clamp(260px,44vw,660px);
  height:min(clamp(300px,52vh,600px), 62vh);
  background:radial-gradient(62% 62% at 50% 64%, #141414 0%, #070707 78%);
  border:1px solid rgba(255,255,255,.06);
  overflow:hidden;
}
.panel img,.panel video{
  width:100%;height:100%;
  object-fit:contain;
  padding:clamp(10px,2vw,28px) 0 clamp(30px,6vh,64px);
}
.panel--video video{object-fit:cover;padding:0}
/* the engine renders already sit on near-black, so let them fill the panel
   edge to edge rather than floating a lighter rectangle inside it */
.rail--engine{background:#000}
/* Narrower than the truck panels: cover-cropping a 3:2 render into a portrait
   panel throws away the lighter side band entirely, and the tighter filmstrip
   makes the 30° steps read as rotation as the track pans. */
.panel--engine{background:#000;width:clamp(210px,26vw,400px)}
.panel--engine img{object-fit:cover;padding:0}
.panel__meta{
  position:absolute;left:0;right:0;bottom:0;
  display:flex;align-items:baseline;gap:14px;
  padding:14px clamp(14px,2vw,24px);
  background:linear-gradient(to top, rgba(5,5,5,.9), rgba(5,5,5,0));
}
.panel__meta .mono{color:var(--red-neon);text-shadow:0 0 8px rgba(255,42,42,.7)}
.panel__meta h3{
  font-size:clamp(12px,1vw,14px);font-weight:500;
  letter-spacing:.16em;text-transform:uppercase;
  color:rgba(242,240,238,.72);
}
.rail__progress{margin:0 var(--pad);height:1px;background:rgba(255,255,255,.12)}
.rail__progress span{
  display:block;height:100%;width:calc(var(--p,0) * 100%);
  background:var(--red-neon);box-shadow:0 0 10px rgba(255,42,42,.8);
}

.different{padding:clamp(110px,16vh,220px) var(--pad);background:var(--void)}
.different__h{font-size:clamp(2.6rem,7.4vw,7.5rem);margin:18px 0 clamp(48px,7vw,96px)}
.ledger{border-top:1px solid rgba(255,255,255,.1)}
.ledger__row{
  display:grid;gap:8px 32px;
  padding:clamp(26px,3.4vw,46px) 0;
  border-bottom:1px solid rgba(255,255,255,.1);
  transition:background .5s var(--ease-soft);
}
.ledger__row:hover{background:rgba(255,42,42,.03)}
.ledger__t{font-size:clamp(1.35rem,2.6vw,2.4rem);font-weight:600;letter-spacing:-0.03em;line-height:1.1}
.ledger__p{color:rgba(242,240,238,.48);font-size:clamp(14px,1.1vw,17px);max-width:46ch}
@media (min-width:900px){ .ledger__row{grid-template-columns:70px 1.1fr 1fr;align-items:baseline} }

.final{
  position:relative;overflow:hidden;
  padding:clamp(130px,22vh,280px) var(--pad);
  background:var(--void);text-align:center;
  display:grid;justify-items:center;gap:clamp(16px,2vw,26px);
}
/* Content sits above the decorative layers. Declared before the decoration
   rules below on purpose: `.final > *` and `.final__glow` have identical
   specificity, so whichever lands later wins — and the decorations must. */
.final>*{position:relative;z-index:1}
.final__glow{
  position:absolute;z-index:0;left:50%;top:58%;
  width:min(120vw,1100px);aspect-ratio:2/1;transform:translate(-50%,-50%);
  background:radial-gradient(ellipse at center,rgba(255,42,42,.22) 0%,rgba(255,42,42,.08) 40%,rgba(255,42,42,0) 70%);
  pointer-events:none;
}
.final__laser{
  position:absolute;z-index:0;left:0;right:0;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,42,42,.75) 35%,rgba(255,160,160,.95) 50%,rgba(255,42,42,.75) 65%,transparent);
  box-shadow:0 0 16px rgba(255,42,42,.6);
}
.final__h{font-size:clamp(3rem,10vw,10rem)}
.final__p{max-width:44ch;color:rgba(242,240,238,.5);font-size:clamp(15px,1.2vw,18px)}
.final__actions{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-top:clamp(12px,2vw,22px)}

.prose{
  padding:clamp(70px,10vh,120px) var(--pad);
  background:var(--ink);
  display:grid;gap:16px;max-width:78ch;
  color:rgba(242,240,238,.38);font-size:14px;line-height:1.7;
}
.prose h2{font-size:15px;font-weight:600;letter-spacing:.02em;color:rgba(242,240,238,.65)}

.foot{
  padding:clamp(46px,7vh,80px) var(--pad);
  background:var(--void);
  border-top:1px solid rgba(255,255,255,.07);
  display:grid;gap:16px;
}
.foot__mark{font-size:12px;font-weight:700;letter-spacing:.32em;text-transform:uppercase}
.foot__note{font-size:11px;color:rgba(242,240,238,.3);max-width:70ch;line-height:1.6}

/* ---------- cinematic settle once the intro lifts ---------- */
body.is-ready .stage__frame{animation:truckIn 1.25s var(--ease) both}
body.is-ready .story{animation:softIn .9s .3s var(--ease-soft) both}
body.is-ready .studio__laser{animation:laserIn 1.4s var(--ease) both}
@keyframes truckIn{from{opacity:0;transform:scale(1.045)}to{opacity:1;transform:scale(1)}}
@keyframes softIn{from{opacity:0}to{opacity:1}}
@keyframes laserIn{from{opacity:0;transform:scaleX(.2)}to{opacity:.7;transform:scaleX(1)}}

/* ============================================================
   REDUCED MOTION / NO-JS FALLBACK
   ============================================================ */
html.no-motion .intro{display:none}
html.no-motion .sequence{height:auto}
html.no-motion .stage{position:relative;height:auto;overflow:visible}
html.no-motion .stage__frame,
html.no-motion .stage__veil,
html.no-motion .hud,
html.no-motion .scrollcue,
html.no-motion .callouts,
html.no-motion .studio__laser{display:none}
html.no-motion .sequence__static{display:block;padding-top:clamp(90px,14vh,150px)}
html.no-motion .sequence__static img{width:100%;height:auto}
html.no-motion .story{position:static;display:grid;gap:clamp(40px,7vw,90px);padding:clamp(60px,9vh,120px) var(--pad)}
html.no-motion .chapter{position:static;opacity:1;transform:none;visibility:visible;text-align:left}
html.no-motion .chapter--bottom .chapter__p{margin-left:0}
html.no-motion .chapter .display{filter:none;letter-spacing:-0.045em;font-size:clamp(2.2rem,6vw,5rem)}
html.no-motion .reveal{opacity:1;transform:none;filter:none;transition:none}
html.no-motion .crop img{transition:none}
/* the rail degrades to a normal, swipeable horizontal scroller */
html.no-motion .rail__pin,
html:not(.js) .rail__pin{position:static;height:auto;overflow:visible}
html.no-motion .rail__viewport,
html:not(.js) .rail__viewport{overflow-x:auto;overscroll-behavior-x:contain}
html.no-motion .rail__track,
html:not(.js) .rail__track{transform:none !important}
html.no-motion .rail__progress,
html:not(.js) .rail__progress{display:none}
html.no-motion .panel--video video{display:none}
/* engine explainer: unpin it and show every annotation as a plain list */
html.no-motion .heart,
html:not(.js) .heart{height:auto}
html.no-motion .heart__pin,
html:not(.js) .heart__pin{position:static;height:auto;overflow:visible}
html.no-motion .engine,
html:not(.js) .engine{max-height:none}
html.no-motion .engine__notes,
html:not(.js) .engine__notes{position:static;display:grid;grid-template-columns:repeat(2,1fr);gap:18px 20px;margin-top:26px}
html.no-motion .note,
html:not(.js) .note{position:static;transform:none;display:block;text-align:left}
html.no-motion .note__body,
html:not(.js) .note__body{opacity:1;transform:none}
html.no-motion .note__line,html.no-motion .note__tip,
html:not(.js) .note__line,html:not(.js) .note__tip{display:none}

html:not(.js) .intro{display:none}
html:not(.js) .sequence{height:auto}
html:not(.js) .stage{position:relative;height:auto}
html:not(.js) .stage__frame,
html:not(.js) .stage__veil,
html:not(.js) .hud,
html:not(.js) .scrollcue,
html:not(.js) .callouts,
html:not(.js) .studio__laser{display:none}
html:not(.js) .sequence__static{display:block;padding-top:clamp(90px,14vh,150px)}
html:not(.js) .sequence__static img{width:100%;height:auto}
html:not(.js) .story{position:static;display:grid;gap:60px;padding:80px var(--pad)}
html:not(.js) .chapter{position:static;opacity:1;transform:none;visibility:visible;text-align:left}
html:not(.js) .chapter .display{filter:none;letter-spacing:-0.045em;font-size:clamp(2.2rem,6vw,5rem)}
html:not(.js) .reveal{opacity:1;transform:none;filter:none}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
}
