/* ==========================================================================
   ANTIHORIZN landing page: launch layer.
   Loaded after site.css on index.html, and on about.html for the dark
   ground, the nav tone and the film. It adds sections; it does not restate
   type. Every size here is a step of the scale in site.css section 3, and
   headings take their size from .display, .subhead and .headline in the
   markup. Monospace appears only on literal code: tool names, the address
   bar, step numbers and the clock.
   Sections:
     L1  Tokens and shared pieces
     L2  Navigation over dark ground
     L3  Hero
     L4  Build reel (the studio window)
     L5  Agent platform
     L6  Token usage
     L7  Proof and closing
     L8  Film
     L9  Responsive and reduced motion
   The benchmark section has its own file, bench.css.
   ========================================================================== */

/* --- L1. Tokens ---------------------------------------------------------- */

:root {
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --night:       #0B0B0C;                       /* same as --ink-surface */
  --night-2:     #111112;                       /* raised surface on night */
  --night-3:     #18181A;
  --line-night:  rgba(244, 244, 245, 0.12);
  --line-night-2: rgba(244, 244, 245, 0.2);
  --on-dark-soft: rgba(244, 244, 245, 0.76);    /* ledes and body on night, 11:1 */
  --dim:         rgba(244, 244, 245, 0.56);     /* 7.6:1 on night */
  --dimmer:      rgba(244, 244, 245, 0.4);      /* hairline furniture only, 4.6:1 */
}

.night { background: var(--night); color: var(--on-dark); }
.night .label { color: var(--dim); }
.night .lede { color: var(--on-dark-soft); }
.night .sec-head { border-color: var(--line-night); }
.night .sec-head__n { color: var(--dim); }
.night ::selection { background: var(--hot); color: var(--on-hot); }
.night :focus-visible { outline-color: var(--hot); }
/* On night the emphasis is hot colour text, not a highlighter block. */
.night .display em, .night .subhead em { background: none; color: var(--hot); padding: 0; }

.btn--night {
  border-color: var(--line-night-2);
  color: var(--on-dark);
}
@media (hover: hover) and (pointer: fine) {
  .btn--night:hover { background: transparent; border-color: var(--hot); color: var(--hot); }
}

/* Fine print: captions, credits, sources. The 12px step of the scale. */
.fine {
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--ink-mute);
}
.night .fine { color: var(--dim); }
.fine code { font-size: 0.92em; }

/* The section's opening row (.lead: headline left, lede right) is shared with
   the close of every interior page, so it lives in site.css. */

/* A text link with an arrow. Set like a button's label. */
.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  padding-bottom: 5px;
  border-bottom: 1.5px solid currentColor;
}
.arrow-link i {
  display: inline-block;
  transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .arrow-link:hover i { transform: translateX(4px); }
}

/* Play and pause, for the reel and the film. The state lives on the nearest
   ancestor that carries data-playing. */
.playbtn {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--line-night-2);
  transition: border-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.playbtn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .playbtn:hover { border-color: var(--hot); } }
.playbtn::before,
.playbtn::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 3px; height: 8px;
  background: var(--on-dark);
}
.playbtn::before { left: 9px; }
.playbtn::after  { left: 14px; }
[data-playing="false"] .playbtn::before {
  left: 10px; top: 8px;
  width: 0; height: 0;
  background: transparent;
  border-left: 8px solid var(--on-dark);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
[data-playing="false"] .playbtn::after { display: none; }

/* --- L2. Navigation over dark ground ------------------------------------- */
/* The bar is the shared one. Over a dark section it only changes colour:
   the links are the dark-ground equivalent of ink-soft and hover to full. */

.nav[data-tone="dark"] {
  background: rgba(11, 11, 12, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-night);
  color: var(--on-dark);
}
.nav[data-tone="dark"][data-scrolled="false"] {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav[data-tone="dark"] .slink { color: rgba(244, 244, 245, 0.78); }
.nav[data-tone="dark"] .slink:focus-visible,
.nav[data-tone="dark"] .slink[aria-current="page"] { color: var(--on-dark); }
.nav[data-tone="dark"] .btn--ghost { border-color: var(--line-night-2); color: var(--on-dark); }
.nav[data-tone="dark"] .btn--solid { border-color: var(--hot); }
.nav[data-tone="dark"] .nav__burger span { background: var(--on-dark); }
@media (hover: hover) and (pointer: fine) {
  .nav[data-tone="dark"] .slink:hover { color: var(--on-dark); }
  .nav[data-tone="dark"] .btn--ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
  .nav[data-tone="dark"] .btn--solid:hover { background: transparent; color: var(--hot); border-color: var(--hot); }
}

/* --- L3. Hero ------------------------------------------------------------ */

.lhero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
  isolation: isolate;
}
/* The hand is live 3D on a transparent ground, so it stands in the page and
   not in a frame. Its stage is the right three fifths of the hero: the
   camera looks at the palm, which puts the palm at 70 percent of the width. */
.lhero__stage {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 90%, transparent 100%);
}
.lhero__poster,
.lhero__gl,
.lhero__matrix {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* The still that stands in if WebGL never draws. */
.lhero__poster {
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0;
}
.lhero[data-gl="off"] .lhero__poster { opacity: 1; }
.lhero[data-gl="off"] .lhero__gl,
.lhero[data-gl="off"] .lhero__matrix { display: none; }
.lhero__gl { display: block; }
/* The dot-matrix pass: the hand resolves out of a lit grid on load. */
.lhero__matrix {
  opacity: 1;
  transition: opacity 450ms var(--ease-out);
  background: var(--night);
}
.lhero__matrix[data-done="true"] { opacity: 0; }

/* Shade under the bar, so the links read over a lit fingertip. */
.lhero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0.6) 0, rgba(11, 11, 12, 0) 120px);
}

.lhero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(92px, 12.5vh, 150px) var(--gutter) clamp(26px, 4vh, 48px);
}
/* Everything above the spec strip stays in front of the strip's floor. */
.lhero__inner > :not(.lhero__spec) { position: relative; z-index: 1; }

/* Hero headline: the top of the scale. Three short lines, so the type keeps
   to the left half and never runs under the hand. The size follows the
   window's height as well as its width, so the whole hero fits one screen. */
.lhero__title {
  margin: clamp(16px, 2.2vh, 24px) 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, min(7vw, 11.2vh), 112px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}
/* White with one hot colour phrase, like every other headline on a night ground. */
.lhero__title span { display: block; color: var(--hot); }

/* The cycling line, at sub-headline size. Its height is locked so nothing
   below moves when the line changes. */
.lhero__line {
  display: flex;
  align-items: center;
  gap: 0.42em;
  margin-top: clamp(18px, 2.6vh, 28px);
  min-height: 1.14em;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.35vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--on-dark);
}
.lhero__line::before {
  content: "";
  flex: none;
  width: 0.34em;
  height: 0.34em;
  background: var(--hot);
}
/* One line leaves upward and the next rises into its place. */
.lhero__line [data-cycle] {
  display: inline-block;
  white-space: nowrap;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.lhero__line [data-cycle][data-swap="out"] {
  opacity: 0;
  transform: translateY(-0.28em);
  transition-duration: 160ms;
}
.lhero__line [data-cycle][data-swap="in"] {
  opacity: 0;
  transform: translateY(0.28em);
  transition: none;
}

.lhero__sub {
  margin-top: clamp(10px, 1.6vh, 16px);
  max-width: 40ch;
  font-size: clamp(18px, 1.56vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--on-dark-soft);
}

.lhero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(20px, 3vh, 32px);
}

/* Spec strip along the foot of the hero. */
.lhero__spec {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(30px, 5vh, 56px) 0 0;
  border-top: 1px solid var(--line-night-2);
}
/* The floor. The hand's wrist and spool rack run on below the strip; this
   takes them down to night before the rule, so nothing shows behind the
   strip's text. It is tied to the strip, not to the hero's height. */
.lhero__spec::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -230px -100vw -160px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 11, 12, 0) 0, rgba(11, 11, 12, 0.42) 80px,
                              rgba(11, 11, 12, 0.86) 160px, var(--night) 218px);
}
.lhero__spec > div {
  padding: 16px 24px 0 0;
  display: grid;
  gap: 8px;
  align-content: start;
}
.lhero__spec > div + div { padding-left: 24px; border-left: 1px solid var(--line-night); }
.lhero__spec dd {
  margin: 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--on-dark-soft);
}

/* Entrance: one pass, staggered, then never again. */
@keyframes lheroIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.lhero [data-in] {
  opacity: 0;
  animation: lheroIn 760ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 240ms);
}

/* --- L4. Build reel ------------------------------------------------------- */

.reelsec { padding-block: clamp(64px, 10vh, 132px) var(--stack); }
.reelsec .lead { margin-bottom: clamp(32px, 5vh, 60px); }

.reel {
  position: relative;
  border: 1px solid var(--line-night-2);
  background: var(--night-2);
}

.reel__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line-night);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--dim);
}
.reel__app { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); }
.reel__app svg { flex: none; display: block; }
.reel__url {
  display: inline-flex;
  align-items: center;
  min-width: min(380px, 46vw);
  padding: 7px 14px;
  background: var(--night);
  border: 1px solid var(--line-night);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
}
.reel__url b { font-weight: 500; color: var(--on-dark); }
/* Lit while the build is playing, out when it is paused. */
.reel__live {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reel__live::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--hot);
  transition: background-color 180ms var(--ease-out);
}
.reel[data-playing="false"] .reel__live::before { background: var(--dimmer); }

.reel__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line-night);
}
.reel__tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px 15px;
  text-align: left;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.008em;
  color: var(--dim);
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.reel__tab + .reel__tab { border-left: 1px solid var(--line-night); }
.reel__tab span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dim);
}
.reel__tab::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease-out);
}
.reel__tab[aria-selected="true"] { color: var(--on-dark); background: var(--night-3); }
.reel__tab[aria-selected="true"] span { color: var(--hot); }
.reel__tab[aria-selected="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .reel__tab:hover { color: var(--on-dark); }
}
.reel__tab:active { background: var(--night-3); }

.reel__body {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: clamp(440px, 62vh, 640px);
}

/* The rail. Every block reserves the room its longest product needs, so the
   frame is the same height for all three and the page below never jumps. */
.reel__rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-night);
  min-width: 0;
}
.reel__block { padding: 16px 18px 16px; }
.reel__block + .reel__block { border-top: 1px solid var(--line-night); }
.reel__block > .label { display: block; margin-bottom: 12px; }

.reel__prompt {
  min-height: 4.35em;                      /* three lines */
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--on-dark);
}
.reel__prompt[data-typing="true"]::after {
  content: "";
  display: inline-block;
  width: 0.5em; height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.16em;
  background: var(--hot);
}

/* The build log: one row per step, the note on the same line. */
.reel__log { display: grid; align-content: start; min-height: 259px; }   /* seven rows */
.reel__step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: -0.006em;
  color: var(--dim);
  transition: color 200ms var(--ease-out);
}
.reel__n {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.reel__what { font-weight: 500; }
.reel__note {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--dim);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.reel__step[data-state="now"] { color: var(--hot); }
.reel__step[data-state="done"] { color: var(--on-dark); }
.reel__step[data-state="now"] .reel__note,
.reel__step[data-state="done"] .reel__note { opacity: 1; }
.reel__step[data-state="done"] .reel__n { color: var(--dim); }

.reel__block--checks { margin-top: auto; }
.reel__checks { display: grid; gap: 8px; min-height: 148px; align-content: start; }   /* six lines */
.reel__check {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.006em;
  color: var(--on-dark);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.reel__check[data-on="true"] { opacity: 1; transform: none; }
/* Verdict tags stay inside the palette: a pass is quiet, a warning is the
   accent. No green and no red on this ground. */
.reel__tag {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: capitalize;
  text-align: center;
  padding: 4px 0;
  border: 1px solid var(--line-night-2);
  color: var(--on-dark-soft);
}
.reel__check--warn .reel__tag { border-color: var(--hot); color: var(--hot); }
.reel__check--fail .reel__tag { border-color: var(--on-dark); background: var(--on-dark); color: var(--night); }
.reel__cite {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.reel__view {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 46%, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(rgba(244, 244, 245, 0.085) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--night);
}
.reel__view canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 320ms var(--ease-out);
}
.reel[data-loading="true"] .reel__view canvas { opacity: 0; }
.reel__hud {
  position: absolute;
  inset: 16px 18px auto 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--dim);
  pointer-events: none;
}
.reel__hud b { font-weight: 500; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.reel__hud [data-reel-step] { color: var(--hot); }
.reel__corner {
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--line-night-2);
  pointer-events: none;
}
.reel__corner--bl { left: 16px; bottom: 16px; border-top: 0; border-right: 0; }
.reel__corner--br { right: 16px; bottom: 16px; border-top: 0; border-left: 0; }
.reel[data-webgl="false"] .reel__view::after {
  content: "This view needs WebGL.";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--dim);
}

.reel__foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-night);
}
.reel__track {
  position: relative;
  height: 20px;
  cursor: pointer;
  touch-action: none;
}
.reel__track::before,
.reel__track i {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 9px;
  height: 2px;
}
.reel__track::before { background: var(--line-night-2); }
.reel__track i { background: var(--hot); transform: scaleX(0); transform-origin: left; }
.reel__time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.reelsec__cap { margin-top: 14px; }

/* --- L5. Agent platform --------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 7vh, 88px);
  border-top: 1.5px solid var(--ink);
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: 22px clamp(20px, 2.2vw, 36px) 6px 0;
}
.pillar + .pillar { padding-left: clamp(20px, 2.2vw, 36px); border-left: 1px solid var(--rule); }
.pillar h3 { margin-top: 14px; }
.pillar p { margin-top: 12px; max-width: 40ch; color: var(--ink-soft); }
.pillar__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 28px;
}
.pillar__tools code {
  font-size: 12px;
  line-height: 1;
  padding: 6px 8px 5px;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.clients {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: baseline;
  gap: 20px;
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.clients ul { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 2.6vw, 40px); }

/* --- L6. Token usage ------------------------------------------------------ */
/* A light section that follows a light section: it drops its own top
   padding, so one stack of air and the section rule separate the two. */

.tokens { padding-top: 0; }
.tokens__body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  align-items: start;
  margin-top: clamp(48px, 7vh, 88px);
}
.tokens__body > * { min-width: 0; }

/* The meter: one before and after from the board engine's own output, drawn
   to scale. Ink for what was, the hot colour fill for what is. */
.meter { grid-column: span 6; border-top: 1.5px solid var(--ink); padding-top: 22px; }
.meter__row { margin-top: clamp(22px, 3.4vh, 34px); }
.meter__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.meter__name { font-size: 14px; line-height: 1.45; letter-spacing: -0.006em; color: var(--ink-soft); }
.meter__val {
  font-size: clamp(40px, 4.4vw, 68px);
  white-space: nowrap;
}
.meter__val small {
  margin-left: 0.7em;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.006em;
  color: var(--ink-mute);
}
.meter__bar {
  position: relative;
  display: block;
  height: 20px;
  margin-top: 12px;
  background: var(--paper-deep);
}
.meter__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1100ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.meter__row:not(.meter__row--us) .meter__bar i { background: var(--grey); }
.meter__row--us .meter__bar i { background: var(--hot); }
.meter.is-in .meter__bar i { transform: scaleX(1); }
.meter__cap { margin-top: 20px; max-width: 62ch; }

.tokens__facts { grid-column: 8 / -1; border-top: 1.5px solid var(--ink); }
.fact { padding: 22px 0 26px; }
.fact + .fact { border-top: 1px solid var(--rule); }
.fact p { margin-top: 8px; max-width: 52ch; color: var(--ink-soft); }

/* --- L7. Proof and closing ------------------------------------------------- */

.proof__copy { grid-column: span 4; }
.proof__copy .prose { margin-top: 22px; }
.proof__copy .prose + .prose { margin-top: 16px; }
.proof__copy .btn { margin-top: 28px; }
.proof__out { grid-column: span 8; }
.proof__out .fine { margin-top: 12px; }

/* --- L8. Film -------------------------------------------------------------- */

.film { position: relative; overflow: hidden; background: var(--night); }
.film__media { width: 100%; height: clamp(380px, 78vh, 820px); object-fit: cover; }
.film__over {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(96px, 18vh, 180px) 0 clamp(26px, 4.2vh, 52px);
  background: linear-gradient(180deg, rgba(11, 11, 12,0) 0%, rgba(11, 11, 12,0.16) 16%, rgba(11, 11, 12,0.5) 40%,
                              rgba(11, 11, 12,0.82) 68%, rgba(11, 11, 12,0.95) 100%);
  color: #fff;
  pointer-events: none;
}
.film__over a,
.film__over button { pointer-events: auto; }
/* The chip gets a ground, so it reads on a bright frame. */
.film__over .chip { background: rgba(11, 11, 12, 0.72); }
.film__over h2 { margin-top: 16px; max-width: 16ch; }
.film__over p { max-width: 46ch; margin-top: 16px; color: rgba(255, 255, 255, 0.86); }
.film__over .arrow-link { margin-top: 24px; color: var(--hot); }
/* The credit is part of the section, not a footnote to it. */
.film__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.film__over .film__credit { margin: 0; max-width: none; color: rgba(255, 255, 255, 0.78); }
.film .playbtn { border-color: rgba(255, 255, 255, 0.4); }

/* --- L9. Responsive and reduced motion ------------------------------------ */

@media (max-width: 1080px) {
  .meter, .tokens__facts { grid-column: 1 / -1; }
  .tokens__facts { margin-top: 16px; }
  /* The rail narrows, so each step's note drops under its name. */
  .reel__body { grid-template-columns: minmax(260px, 0.42fr) 1fr; }
  .reel__step { grid-template-columns: 26px minmax(0, 1fr); padding: 6px 0; }
  .reel__note { grid-column: 2; white-space: normal; }
  .reel__log { min-height: 350px; }
  .reel__checks { min-height: 190px; }
  /* Less width for the type, so the hand moves right and the lede narrows. */
  .lhero__stage { left: 48%; }
  .lhero__sub { max-width: 32ch; }
}

@media (max-width: 900px) {
  .lhero__spec { grid-template-columns: repeat(2, 1fr); }
  .lhero__spec > div { padding: 14px 16px 14px 0; }
  .lhero__spec > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .lhero__spec > div:nth-child(n + 3) { border-top: 1px solid var(--line-night); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 22px 0 28px; }
  .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .pillar h3 { margin-top: 18px; }
  .clients { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 760px) {
  /* On a phone the hand gets the top of the screen to itself and the
     headline follows it, so neither has to be read through the other. */
  .lhero { justify-content: flex-start; min-height: 0; }
  .lhero__stage {
    position: relative;
    inset: auto;
    width: 100%;
    height: 50svh;
    min-height: 320px;
    margin-top: 44px;
    z-index: 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
  }
  .lhero__scrim, .lhero__spec::before { display: none; }
  .lhero__inner { padding-top: 0; margin-top: -28px; }
  /* A long line may take two rows here; the room for both is always held. */
  .lhero__line { align-items: baseline; min-height: 2.28em; }
  .lhero__line [data-cycle] { white-space: normal; }
  .reel__bar { grid-template-columns: auto 1fr; }
  .reel__live { display: none; }
  .reel__url { min-width: 0; justify-self: stretch; }
  .reel__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reel__tab { flex-direction: column; gap: 6px; padding: 12px 12px 11px; }
  .reel__body { grid-template-columns: 1fr; min-height: 0; }
  .reel__view { order: -1; height: 68vw; min-height: 260px; }
  .reel__rail { border-right: 0; border-top: 1px solid var(--line-night); }
  .reel__prompt { min-height: 5.8em; }
  .reel__block--log { display: none; }
  .reel__block--checks { margin-top: 0; }
  .reel__checks { min-height: 178px; }
  .meter__top { flex-wrap: wrap; }
  .film__media { height: clamp(520px, 86vh, 680px); }
}

@media (prefers-reduced-motion: reduce) {
  .lhero [data-in] { opacity: 1; animation: none; }
  .lhero__matrix { display: none; }
  .meter__bar i { transform: scaleX(1); transition: none; }
  .reel__check { transition: none; }
}

/* --- The providers whose key the studio runs on ----------------------------- */

.keys {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 20px;
  margin-top: clamp(36px, 5vh, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.keys ul { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 64px); }
.keys li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.1;
  color: var(--ink);
}
.keys svg { flex: none; width: 24px; height: 24px; }
@media (max-width: 900px) { .keys { grid-template-columns: 1fr; gap: 12px; } }

/* --- The verification readout, running ------------------------------------- */
/* assets/js/proof.js plays the readout when it comes into view: the checks
   arrive one at a time under a scan line, the tally counts, and the two
   failures open to show the fix. Without the script, or with reduced motion,
   the readout is simply all there. */

.readout[data-anim] .readout__rows { position: relative; }
.readout[data-anim] .row {
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.readout[data-anim] .row.is-in { opacity: 1; transform: none; }
.readout[data-anim] .row .row__tag { transition: opacity 220ms var(--ease-out); }
.readout[data-anim] .row.is-in:not(.is-done) .row__tag { opacity: 0.25; }
.readout[data-anim] .row.is-in:not(.is-done)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--hot);
  transform-origin: left;
  animation: proofSweep 380ms linear both;
}
@keyframes proofSweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.readout[data-anim] .row__detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-block: 0;
  margin-block: 0;
  border-top-color: transparent;
  transition: max-height 520ms var(--ease-out), opacity 380ms var(--ease-out) 80ms,
              padding 520ms var(--ease-out), margin 520ms var(--ease-out);
}
.readout[data-anim] .row.is-open .row__detail { max-height: 340px; opacity: 1; padding-block: 10px; margin-top: 6px; }
.readout__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--hot);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 380ms var(--ease-out), opacity 240ms var(--ease-out);
}
.readout[data-anim="running"] .readout__scan { opacity: 1; }
.readout__bar [data-count] { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
