/* COH-1489 · cohort.games landing — ONE route, rev. 5
 *
 * Ratified: the paper arm is the site. Frames 4a / 4b (desktop / phone) plus the
 * turn-5 scroll study. The previous two arms are RETIRED:
 *
 *   - the full-bleed scrim arm that was /         → retired
 *   - the framed-card arm that was /framed        → retired (never shipped past rev. 3)
 *
 * There is no [data-arm] switch any more. One page, one stylesheet.
 *
 * Role names only. No tenant names, no raw literals in component rules.
 * Self-hosted assets only; no external fonts or scripts (strict CSP).
 *
 * ── WHAT IS ALREADY ON THE BRANCH ───────────────────────────────────────────
 * The "borrowed" block below duplicates tokens owned by
 * frontend/src/styles/tokens.css. If this page ever runs inside the app's
 * stylesheet scope, DELETE that block — do not reconcile the values. It exists
 * only because marketing/ is served standalone.
 *
 * ── THE PAGE CARRIES TWO INK SETS, ON PURPOSE ───────────────────────────────
 * Paper at the top (bar on the notebook grid, no scrim), scrim at the bottom
 * (footer chrome floating on the footer's render). Each matches its own ground.
 * This is the strongest argument for surface being a real prop on TopBar rather
 * than two hand-maintained sets — see marketing-stack-decision.md.
 */

:root {
  /* ── borrowed, do not re-declare inside the app ───────────────────────── */
  --scrim-top: oklch(0.18 0.03 264 / 0.62);
  --scrim-mid: oklch(0.18 0.03 264 / 0.3);
  --scrim-end: oklch(0.18 0.03 264 / 0);
  --ink-on-scrim: #ffffff;
  --ink-on-scrim-dim: rgba(255, 255, 255, 0.62);
  --shadow-ink-scrim: 0 2px 4px rgba(0, 0, 0, 0.42);
  --mark-ink: rgba(255, 255, 255, 0.96);
  --bar-h: 72px;
  --bar-h-sm: 56px;
  --bar-scrim-overhang: 72px;
  --bar-scrim-overhang-sm: 56px;
  --bar-pad-x: 30px;
  --bar-pad-x-sm: 16px;
  --mark-bar: 6.5px;
  --mark-sm: 5.5px;
  --mark-md: 12px;
  --mark-xl: 22px;
  --mark-lift: -0.6em;
  --mark-bar-lift: -0.15em;
  --cut-tab: 7px;
  --tab-h: 34px;
  --tab-pad-x: 12px;
  --tap-min: 44px;
  --glass-edge: rgba(255, 255, 255, 0.3);
  --glass-edge-hover: rgba(255, 255, 255, 0.44);
  --type-tab: 12px;
  --type-tab-sm: 11px;
  --tracking-tab: 0.14em;
  --tracking-tab-sm: 0.12em;
  --focus-ring: oklch(0.205 0.01 268.2);
  --focus-ring-w: 3px;
  --focus-offset: 2px;
  --surface-0: oklch(0.985 0.005 88);
  --bp-md: 768px;
  --z-scrim: 5;
  --z-bar: 6;

  /* ── paper: the page's own ground ─────────────────────────────────────── */
  --surface: #f6f6f2;
  --surface-grid: rgba(23, 25, 30, 0.055);
  --grid-step: 24px;
  /* the hero poster's only new value (design delta 2026-09-20). NOT a token — one page uses it. */
  --poster-type: 40px;
  --poster-type-sm: 28px;
  --hairline: #ececE6;

  /* paper inks. The scrim set above is unusable here: on #F6F6F2 white ink
   * measures ~1.1:1 and the white edge is invisible. */
  --ink-on-paper: #17191e;
  --ink-on-paper-dim: #5b6069;
  --chip-edge: rgba(23, 25, 30, 0.28);
  --chip-edge-hover: rgba(23, 25, 30, 0.52);
  --chip-edge-press: rgba(23, 25, 30, 0.8);

  /* chip motion. 300ms, NOT the bar's --dur-fast 90ms: a 10px change of shape
   * at state speed reads as a glitch. --ease-cut is symmetric so the cut opens
   * and closes as one gesture (--ease-out is an entry curve and on the way back
   * reads as a slow release). */
  --cut-hover: 17px;
  --cut-press: 9px;
  --glass-edge-press: rgba(255, 255, 255, 0.72);
  --chip-hit-pad: 5px;
  --dur-chip: 300ms;
  --ease-cut: cubic-bezier(0.33, 0, 0.25, 1);

  /* the display voice. Bungee ships ONE weight — 600 draws faux-bold and shifts
   * glyph widths, a latent defect voices.css already documents. */
  --font-display: Bungee, Impact, system-ui, sans-serif;
  --font-hud: "Cohort HUD", system-ui, sans-serif;
  --font-mark: "Cohort Mark Mono", ui-monospace, monospace;
  --font-body: Barlow, system-ui, sans-serif;
  --font-figure: "IBM Plex Mono", ui-monospace, monospace;

  --type-display-xl: 56px;   /* hero title, desktop */
  --type-display-lg: 40px;   /* beat statements, desktop */
  --type-display-md: 26px;   /* the exclusions beat + figures */
  --type-display-sm: 19px;   /* hero title, phone — one line at 390 costs this */
  --type-body: 17px;
  --type-figure: 13px;

  /* THE band height. A fraction of the viewport's HEIGHT, not a pixel value and
   * not a function of width — 560px was ruled against one viewport height (900,
   * where it is 62%) and degrades as the window gets TALLER: 42% at 1329, 39% at
   * 1440. Width only made that conspicuous, pushing the aspect to 6.14:1 at 3440.
   *
   * 62svh computes to 558 at 1440x900 — the ratified 4a frame, preserved. One
   * value replaces three rules (the desktop min(), the phone 58dvh, and the
   * landscape rule that was missing) because a fraction of the height cannot
   * overflow the height it is a fraction of.
   *
   * svh, NOT dvh: dvh tracks the dynamic viewport, so on mobile it changes as the
   * URL bar hides and shows during scroll — and the band is a WebGL canvas, so
   * every change is a resize and a re-render mid-scroll on the weakest devices.
   * svh does not move; the canvas is sized once. */
  --hero-h: 78svh;   /* owner ruling 2026-09-24: match Astra's practice harness (#stage 78svh); was rev. 6's 62svh */
  /* Owner ruling 2026-09-21 (Daniel): the footer stage is the same height as the hero band, on every
   * screen, so the second game gets the same room as the first. Was a fixed 520px / 420px phone. */
  --footer-h: var(--hero-h);
  --title-gap: 44px;
  --beat-gap: 96px;
  --section-gap: 128px;   /* 2026-09-25: air between the page's major sections (subline → screens → why → beats → footer) */
}

/* ── document ───────────────────────────────────────────────────────────────
 * The page SCROLLS. The scrollbar is hidden by ruling — the composition has no
 * chrome and a native bar is the only vertical line on it.
 *
 * ACCESSIBILITY NOTE, stated rather than buried: hiding the scrollbar removes a
 * position affordance. Keyboard scrolling, wheel, trackpad and touch all still
 * work, and no element is scroll-trapped. If review rejects this, the fallback is
 * a thin styled bar in --chip-edge, NOT a re-enabled native one. */
html {
  margin: 0;
  background: var(--surface);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background-color: var(--surface);
  background-image: linear-gradient(var(--surface-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--surface-grid) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  color: var(--ink-on-paper);
  overflow-x: hidden;
}
a { color: var(--ink-on-paper); }

/* ── the bar ────────────────────────────────────────────────────────────────
 * The platform TopBar's box, pre-auth, lockup + sign-in only, on paper.
 *
 * NOT STICKY, by ruling: with no scrim there is nothing to separate it from
 * content passing underneath, so a stuck bar would sit on moving copy. The
 * alternatives (a paper fill when stuck, or a scrim only in the stuck state) both
 * need a ruling — do not add one locally.
 *
 * --mark-ink and --mark-shadow are declared HERE, on the bar, because they are
 * what a surface="paper" prop would select. On an ancestor they inherit into
 * anything else on the page that draws a mark — including the footer, which
 * needs the opposite values. */
.bar {
  --mark-ink: var(--ink-on-paper);
  --mark-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar-h);
  padding-left: calc(env(safe-area-inset-left) + var(--bar-pad-x));
  padding-right: calc(env(safe-area-inset-right) + var(--bar-pad-x));
  margin-top: env(safe-area-inset-top);
  color: var(--mark-ink);
}

/* ── the hero band ──────────────────────────────────────────────────────────
 * Full-bleed: no inset, no radius, no border. A radius on an edge that exits the
 * viewport is a card pretending to bleed. The bottom edge is the only one that
 * meets paper and needs no rule — a dark band on light paper already is one.
 *
 * #hero-stage / #hero-poster are the implementation contract: the canvas is
 * inserted by script and fills the stage. */
#hero-stage {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
}
/* no min()/max() guard: 62svh always leaves 38% of the viewport for the title and
 * the first beat, at every height, so neither a cap nor a floor can be needed. */
#hero-stage canvas { display: block; width: 100%; height: 100%; }
/* Engaged play focuses the canvas (tabindex 0) so keys route to the game; the browser then paints its
 * default :focus-visible ring, which the stage clips to a 1px near-black hairline along the band's top
 * and bottom (seen live 2026-09-18 and again 2026-09-20 when the runtime module was replaced). The
 * page owns this: a play surface has no ring — the engaged-state indicator is COH-1492's ruling. */
#hero-stage canvas:focus, #hero-stage canvas:focus-visible { outline: none; }

.poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(70% 90% at 42% 44%, rgba(255, 214, 140, 0.16) 0%, transparent 55%),
    linear-gradient(168deg, #2f3a2e 0%, #151c18 58%, #0e1211 100%);
  font-family: var(--font-figure);
  font-size: var(--type-figure);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-on-scrim-dim);
}

/* ── type ───────────────────────────────────────────────────────────────────
 * Bungee at --type-display-lg is the copy budget: the category beat breaks to two
 * lines by design and the LMS beat is at the edge at three. A fourth line means
 * the copy is doing the work instead of the voice. */
.hero-title {
  margin: var(--title-gap) 0 0;
  padding: 0 calc(env(safe-area-inset-right) + var(--bar-pad-x)) 0
    calc(env(safe-area-inset-left) + var(--bar-pad-x));
  font-family: var(--font-display);
  font-weight: 400;
  /* 2026-09-25: the 48-character hero line stays ONE line inside the centred 1180px column (measured:
   * Bungee sets this line at 30.1px per font-px, so 38px = 1144px < 1180), and the bar + title +
   * subline stay above the fold with the 78svh band. Below the column width it scales with the
   * viewport (2.65vw, floor 30px). The 56px --type-display-xl is no longer reachable by the hero
   * line; design to ratify the size. */
  font-size: clamp(30px, 2.65vw, 38px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink-on-paper);
}

/* Owner ruling 2026-09-25: subline under the hero line, and the manifesto block that opens the
 * "why enterprise gaming" section (the three Blender figures follow it). For design to ratify. */
.hero-subline {
  margin: 14px 0 0;
  padding: 0 calc(env(safe-area-inset-right) + var(--bar-pad-x)) 0
    calc(env(safe-area-inset-left) + var(--bar-pad-x));
  max-width: 80ch; /* the 78-character subline stays one line on laptops, so it sits above the fold at 1440x900 */
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.5;
  color: var(--ink-on-paper-dim);
}
.manifesto {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: var(--type-display-md);
  line-height: 1.3;
  color: var(--ink-on-paper);
}

/* Centred content column (Daniel 2026-09-25, after Linear): on wide screens the text blocks, the
 * showcase and the figures sit in one centred column of 1180px + the side padding, text still
 * left-aligned inside it; the game bands and the bar stay full-bleed. No effect under ~1250px. */
.hero-title, .hero-subline, .showcase, .beat { max-width: calc(1180px + 2 * var(--bar-pad-x)); margin-left: auto; margin-right: auto; box-sizing: border-box; }
.beat.figs > div { max-width: none; } /* the figures span the whole column; text beats keep their 980px measure */

/* UI showcase (2026-09-25): a scroll-snap row of product screens after the slogan. Swipe on touch,
 * chips on desktop; each slide is the full track width. Design to ratify. */
.showcase { padding: 64px calc(env(safe-area-inset-right) + var(--bar-pad-x)) 0 calc(env(safe-area-inset-left) + var(--bar-pad-x)); }
.showcase__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 24px; outline: none; }
.showcase__track::-webkit-scrollbar { display: none; }
.showcase__track:focus-visible { outline: var(--focus-ring-w) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.showcase__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.showcase__slide img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 697; object-fit: contain;
  /* The package-12 export carries a faint baked-in drop shadow (black at ~23 % alpha) outside the tablet's rounded corners,
   * invisible on Design's dark board, a grey fringe on our paper. Clipping to the tablet's own radius (~16.5 px at 1180
   * wide: 1.4 % of the width, 2.4 % of the fixed 1200/697 height). Package 13 is re-exported without the shadow; the clip stays as a harmless guard. */
  border-radius: 1.4% / 2.4%; }
.showcase { position: relative; }
.showcase__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(23, 25, 30, .45); color: #f6f6f2; cursor: pointer; backdrop-filter: blur(6px); opacity: .85; transition: opacity .2s, background .2s; }
.showcase__arrow:hover { opacity: 1; background: rgba(23, 25, 30, .6); }
.showcase__arrow:focus { outline: none; }
.showcase__arrow:focus-visible { outline: var(--focus-ring-w) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.showcase__prev { left: calc(env(safe-area-inset-left) + var(--bar-pad-x) + 12px); }
.showcase__next { right: calc(env(safe-area-inset-right) + var(--bar-pad-x) + 12px); }
.showcase__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.showcase__dot { pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(246, 246, 242, .45); box-shadow: 0 0 0 3px rgba(23, 25, 30, .35); cursor: pointer; transition: background .2s, transform .2s; }
.showcase__dot.is-active { background: #f6f6f2; transform: scale(1.15); }
.showcase__dot:focus { outline: none; }
.showcase__dot:focus-visible { outline: var(--focus-ring-w) solid var(--focus-ring); outline-offset: 4px; }
@media (hover: none) { .showcase__arrow { display: none; } } /* touch: swipe, like an iPad; the dots stay */

/* Vertical rhythm (Daniel 2026-09-25: "professional padding, it is all stuck together"): one token
 * between major sections, the beat gap inside a section, and the last beat breathes before the footer. */
.beat--manifesto { padding-top: var(--section-gap); }
.figs { padding-top: 64px; }
.figs + .beat { padding-top: var(--section-gap); }
.beat:last-of-type { padding-bottom: var(--section-gap); }

/* The three "why" figures (2026-09-25), Linear's three-up: hairline-separated columns, a FIG label,
 * a square stage for the clip, title + body. One column on phones. Design to ratify. */
.figs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1180px; }
.fig { margin: 0; padding: 8px 28px 36px 0; }
.fig + .fig { padding-left: 28px; border-left: 1px solid var(--hairline); }
.fig__label { font-family: var(--font-hud); font-size: var(--type-tab-sm); letter-spacing: 0.2em; color: var(--ink-on-paper-dim); }
.fig__stage { aspect-ratio: 1 / 1; width: min(100%, 270px); margin: 28px 0 32px; border: 1px dashed var(--chip-edge); } /* one fixed size, so the three titles line up whatever the column padding */
.fig__stage > video, .fig__stage > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.fig__title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: var(--type-display-sm); letter-spacing: 0.01em; text-transform: uppercase; color: var(--ink-on-paper); } /* the game's display face (Daniel: our gamey UI font) */
.fig__body { margin: 0; max-width: 34ch; font-family: var(--font-body); font-size: var(--type-body); line-height: 1.55; color: var(--ink-on-paper-dim); }
@media (max-width: 767px) {
  .showcase { padding-left: calc(env(safe-area-inset-left) + var(--bar-pad-x-sm)); padding-right: calc(env(safe-area-inset-right) + var(--bar-pad-x-sm)); }
  .showcase__dots { bottom: 10px; }
  :root { --section-gap: 88px; }
  .showcase { padding-top: 44px; }
  .figs { padding-top: 48px; }
  .figs__grid { grid-template-columns: 1fr; }
  .fig { padding: 8px 0 32px; }
  .fig + .fig { padding-left: 0; border-left: 0; border-top: 1px solid var(--hairline); padding-top: 28px; }
  .fig__stage { max-width: 240px; }
}

.beat {
  padding: var(--beat-gap) calc(env(safe-area-inset-right) + var(--bar-pad-x)) 0
    calc(env(safe-area-inset-left) + var(--bar-pad-x));
}
.beat > div { max-width: 980px; }
.beat--rule > div { border-top: 1px solid var(--hairline); padding-top: 34px; }

.kicker {
  font-family: var(--font-hud);
  font-size: var(--type-tab-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-on-paper-dim);
  margin-bottom: 20px;
}
.statement {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--type-display-lg);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink-on-paper);
  text-wrap: balance;
}
.statement--sm { font-size: var(--type-display-md); }
.lede {
  margin: 26px 0 0;
  max-width: 60ch;
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.55;
  color: var(--ink-on-paper);
  text-wrap: pretty;
}

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; }
.figure__n {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--type-display-md);
  line-height: 1;
  color: var(--ink-on-paper);
}
.figure__label {
  margin-top: 7px;
  max-width: 24ch;
  font-family: var(--font-figure);
  font-size: var(--type-figure);
  line-height: 1.45;
  color: var(--ink-on-paper-dim);
}

/* ── the hero poster (design delta 2026-09-20, ratified frames 7a/7b) ──────────
 * The ground is the page's own paper, ruled the other way: identical colour, identical 1px
 * line, identical 24px step — rotated 45°. The rotation is the ONLY boundary the band gets
 * (turn 4: full-bleed, no inset, radius or border); a hairline here re-introduces the window
 * by the back door. No vignette, no tint, no spinner, no progress: the poster stops pretending
 * to be a scene. The footer poster keeps its dark plate — its chrome floats on it in white. */
/* Both stage posters (owner ruling 2026-09-23: the footer's dark plate is retired; the footer
 * loads behind the same hatched paper as the hero). */
#hero-poster, #footer-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  background-image:
    repeating-linear-gradient(45deg,  var(--surface-grid) 0 1px, transparent 1px var(--grid-step)),
    repeating-linear-gradient(135deg, var(--surface-grid) 0 1px, transparent 1px var(--grid-step));
  /* ink is --ink-on-paper, NOT a dim scrim ink: there is no scrim here to be dim against */
  color: var(--ink-on-paper);
  font-family: var(--font-display);
  font-weight: 400;              /* Bungee has one weight; 600 draws faux-bold */
  font-size: var(--poster-type); /* 40 < --type-display-xl 56 on purpose: never outranks the title below */
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

/* the dots are their own elements so they can blink independently of the word */
#hero-poster i, #footer-poster i {
  font-style: normal;
  animation: poster-dot 1.2s steps(1, end) infinite;
}
#hero-poster i:nth-of-type(2), #footer-poster i:nth-of-type(2) { animation-delay: .4s; }
#hero-poster i:nth-of-type(3), #footer-poster i:nth-of-type(3) { animation-delay: .8s; }

@keyframes poster-dot { 0%, 100% { opacity: .18 } 40% { opacity: 1 } }

/* the word is the state; the motion is only reassurance. Holding all three at full
   opacity is the reduced-motion end state — never a frozen mid-cycle. */
@media (prefers-reduced-motion: reduce) {
  #hero-poster i, #footer-poster i { animation: none; opacity: 1 }
}

/* ── the footer ─────────────────────────────────────────────────────────────
 * A SECOND scene, then the footer bar beneath it (2026-10-02). Contract mirrors the hero:
 * #footer-stage + its own poster.
 *
 * Two WebGL contexts on one page. The footer scene MUST initialise on scroll into
 * view, never at load — two contexts at load is the likeliest way this page
 * becomes slow on a mid-range laptop. See the prompt's step 6. */
.footer { position: relative; }
#footer-stage { position: relative; height: var(--footer-h); overflow: hidden; }
#footer-stage canvas { display: block; width: 100%; height: 100%; }
/* Same rule as the hero canvas (see #hero-stage): a play surface has no browser focus ring, or the
 * stage clips it to a hairline along the band's top and bottom the moment a key is pressed. */
#footer-stage canvas:focus, #footer-stage canvas:focus-visible { outline: none; }

/* ── full screen (owner ruling 2026-09-23) ───────────────────────────────────────
 * One button per stage, top-right — the only page element with pointer events over the scene
 * (the scenes keep that corner free: office objectives top-left, actions bottom-right, sticks
 * bottom-/top-left). Browser fullscreen on the stage where the API exists; on iPhone Safari
 * (no element fullscreen) the stage becomes a fixed overlay over the page instead. The glyph
 * is drawn in the platform's own 24x24 stroke-1.9 family (no icon package, by rule) — for
 * Claude Design to ratify. */
.stage-fullscreen {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 12px);
  right: calc(env(safe-area-inset-right) + 12px);
  z-index: var(--z-bar);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--chip-edge);
  background: var(--surface);
  color: var(--ink-on-paper);
  cursor: pointer;
  pointer-events: auto;
  clip-path: polygon(var(--cut-tab) 0, 100% 0, 100% calc(100% - var(--cut-tab)), calc(100% - var(--cut-tab)) 100%, 0 100%, 0 var(--cut-tab));
}
.stage-fullscreen:hover { border-color: var(--chip-edge-hover); }
.stage-fullscreen:focus { outline: none; }
.stage-fullscreen:focus-visible { outline: var(--focus-ring-w) solid var(--focus-ring); outline-offset: var(--focus-offset); }
.stage-fullscreen .glyph--exit { display: none; }
.stage-fullscreen[aria-pressed="true"] .glyph--enter { display: none; }
.stage-fullscreen[aria-pressed="true"] .glyph--exit { display: block; }
/* browser fullscreen: the UA fixes the stage to the screen; our height token must yield */
#hero-stage:fullscreen, #footer-stage:fullscreen { height: 100%; width: 100%; }
/* site fullscreen (iPhone Safari fallback): the stage covers the page, the page stops scrolling */
.stage--site-fullscreen { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100dvh !important; z-index: 1000 !important; }
html.site-fullscreen, html.site-fullscreen body { overflow: hidden; }
.poster--footer {
  background: radial-gradient(60% 100% at 72% 30%, rgba(140, 190, 255, 0.15) 0%, transparent 58%),
    linear-gradient(196deg, #232a3a 0%, #161a24 60%, #101318 100%);
}

/* ── the footer bar (2026-10-02, Daniel) ───────────────────────────────────────
 * Under the footer scene, on paper like the top bar, and exactly twice its height
 * (2 x --bar-h = 144px; 2 x --bar-h-sm = 112px on phones). The copy is always two lines (a <br>
 * after "CA") and sits bottom-left, its middle level with the buttons' middle, which sit
 * bottom-right as in a bar row (the middle of the bottom --bar-h). The mark is centred between
 * the bar's top and the copy's top (Daniel: "vertically centered between the top of our
 * bottom-footer and the text"): row 1 is everything above the copy. The scrims, the mark and the
 * chips that used to float on the render are gone, so the game owns its whole band.
 * --mark-ink / --mark-shadow are the paper set, declared here as on .bar. The safe-area inset is
 * added under the bar, never inside it. */
.footer-bar {
  --mark-ink: var(--ink-on-paper);
  --mark-shadow: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 24px;
  box-sizing: content-box;
  height: calc(2 * var(--bar-h));
  padding: 0 calc(env(safe-area-inset-right) + var(--bar-pad-x)) env(safe-area-inset-bottom)
    calc(env(safe-area-inset-left) + var(--bar-pad-x));
  color: var(--mark-ink);
}
.footer-bar__mark { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; }
.footer-bar__meta {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  /* two lines of 1.6em: half of it (1.6em) under the bottom bar row's middle */
  padding-bottom: calc(var(--bar-h) / 2 - 1.6em);
  min-width: 0;
  font-family: var(--font-figure);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-on-paper-dim);
}
.footer-bar__ctas {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: calc((var(--bar-h) - var(--tab-h)) / 2);
}
/* story state (2026-09-25): the "Start over" chip exists only once there is saved progress */
.chip.is-hidden { display: none; }

/* ── the chip ───────────────────────────────────────────────────────────────
 * NavTabs' inactive cell at surface="scrim", with one ruled delta: NO RESTING
 * FILL. The chamfered 1px edge is all that draws the box. --glass and
 * --glass-pressed are deliberately never declared; their absence is the delta.
 *
 * Host UNCLIPPED with a clipped FACE layer: a clip-path on the host clips its own
 * focus ring (F-06/OD-6). The host keeps a transparent 1px border so the label's
 * box does not shift when the border moves to the face.
 *
 * Inherited defect, reproduced deliberately: a border on a clipped element leaves
 * the chamfer's diagonal open. OD-F1 fixed this for the focus ring with three
 * stacked clipped layers; NavTabs still does it. Fix it in the bar or accept it in
 * both — not one each. */
.chip {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--tab-h);
  padding: 0 var(--tab-pad-x);
  border: 1px solid transparent;
  font-family: var(--font-hud);
  font-size: var(--type-tab);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tracking-tab);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.chip__face {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  border: 1px solid var(--glass-edge);
  clip-path: polygon(
    var(--cut-tab) 0, 100% 0, 100% calc(100% - var(--cut-tab)),
    calc(100% - var(--cut-tab)) 100%, 0 100%, 0 var(--cut-tab)
  );
  transition: clip-path var(--dur-chip) var(--ease-cut),
    border-color var(--dur-chip) var(--ease-cut);
}

/* hover and press are driven from the HOST, never the face: the label's text
 * paints above the face, so a face-triggered :hover drops out as the pointer
 * crosses the words — the cut starts closing mid-gesture and stutters. */
.chip:hover .chip__face {
  clip-path: polygon(
    var(--cut-hover) 0, 100% 0, 100% calc(100% - var(--cut-hover)),
    calc(100% - var(--cut-hover)) 100%, 0 100%, 0 var(--cut-hover)
  );
  border-color: var(--glass-edge-hover);
}
/* press: the cut eases BACK toward the notch and the edge takes one beat of
 * brighter ink. No fill — the bar's --glass-pressed .10 panel is deliberately not
 * consumed on a chip whose premise is that it has none. */
.chip:active .chip__face {
  clip-path: polygon(
    var(--cut-press) 0, 100% 0, 100% calc(100% - var(--cut-press)),
    calc(100% - var(--cut-press)) 100%, 0 100%, 0 var(--cut-press)
  );
  border-color: var(--glass-edge-press);
}

/* :focus-visible, NOT :focus. The 3px ink ring + 5px --surface-0 halo is the
 * ratified vocabulary (OD-F1) and is unchanged — but on :focus it also fires for
 * a mouse press, which over a dark scene reads as a white block.
 * DELTA REQUEST: any shipped control whose focus style is written as :focus has
 * the same flash. Worth an audit on the bar. */
.chip:focus { outline: none; }
.chip:focus-visible {
  outline: var(--focus-ring-w) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
  box-shadow: 0 0 0 5px var(--surface-0);
}

/* the paper chip: ink label, ink edge, no text-shadow. Same cut, same
 * --cut-hover, same 300ms --ease-cut — only the ink changes. */
.chip--paper { color: var(--ink-on-paper); text-shadow: none; }
.chip--paper .chip__face { border-color: var(--chip-edge); }
.chip--paper:hover .chip__face { border-color: var(--chip-edge-hover); }
.chip--paper:active .chip__face { border-color: var(--chip-edge-press); }

/* the scrim chip: white label with the band's shadow. Footer only. */
.chip--scrim { color: var(--ink-on-scrim); text-shadow: var(--shadow-ink-scrim); }

/* reduced motion: the edge still brightens, the geometry holds. Dropping the
 * transition alone is NOT enough — the cut would snap between two shapes. */
@media (prefers-reduced-motion: reduce) {
  .chip__face { transition: none; }
  .chip:hover .chip__face,
  .chip:active .chip__face {
    clip-path: polygon(
      var(--cut-tab) 0, 100% 0, 100% calc(100% - var(--cut-tab)),
      calc(100% - var(--cut-tab)) 100%, 0 100%, 0 var(--cut-tab)
    );
  }
}

/* ── phone ──────────────────────────────────────────────────────────────────
 * The only breakpoint on the page. A DISCRETE swap, by ruling: named tokens, no
 * clamp(), no fluid scaling. Written as a literal because CSS cannot use var() in
 * a media query — the project's standing reason breakpoints live twice
 * (literals in @theme, --bp-* in tokens.css for JS). Change together.
 *
 * STANDING RULE for this block: every bar-relative property needs its own line
 * here. Two defects in four revisions came from an override that changed only the
 * properties its author had in mind (the chip's painted box, then the hero band's
 * top offset). */
@media (max-width: 767px) {
  #hero-poster, #footer-poster { font-size: var(--poster-type-sm) }
  .bar {
    height: var(--bar-h-sm);
    padding-left: calc(env(safe-area-inset-left) + var(--bar-pad-x-sm));
    padding-right: calc(env(safe-area-inset-right) + var(--bar-pad-x-sm));
  }
  /* Landscape phones keep 62svh (rev. 6). Portrait phones (owner ruling 2026-09-23): the band
   * fills the viewport minus the bar and the title block, so only the mark, the sign-in chip and
   * "Enterprise gaming" (the title; owner ruling 2026-09-25) share the first screen with the game. Still a fraction of the
   * height, still svh (never dvh — the canvas must not resize when the URL bar moves). The
   * footer shares the token, so the island's band grows the same way. */
  @media (orientation: portrait) {
    :root { --hero-h: calc(100svh - var(--bar-h-sm) - 28px - 2 * var(--type-display-sm) - 16px); } /* two title lines since the 2026-09-25 hero line */
    @media (max-width: 360px) { :root { --hero-h: calc(100svh - var(--bar-h-sm) - 28px - 3 * var(--type-display-sm) - 16px); } } /* the line breaks to three on the narrowest phones */
  }
  .hero-subline { padding-left: calc(env(safe-area-inset-left) + var(--bar-pad-x-sm)); padding-right: calc(env(safe-area-inset-right) + var(--bar-pad-x-sm)); }
  .manifesto { font-size: var(--type-display-sm); }
  .hero-title {
    margin-top: 28px;
    font-size: var(--type-display-sm);
    padding-left: calc(env(safe-area-inset-left) + var(--bar-pad-x-sm));
    padding-right: calc(env(safe-area-inset-right) + var(--bar-pad-x-sm));
    /* Two lines is the budget since the 2026-09-25 hero line (48 characters): the portrait band
     * rule reserves exactly two title lines, so the copy must not grow past that, and nowrap is
     * gone (a 600 px unbreakable line made Chrome zoom the phone layout out to 602 px). */
    white-space: normal;
    text-wrap: balance;
  }
  .beat {
    padding-top: 64px;
    padding-left: calc(env(safe-area-inset-left) + var(--bar-pad-x-sm));
    padding-right: calc(env(safe-area-inset-right) + var(--bar-pad-x-sm));
  }
  .statement { font-size: var(--type-display-md); }
  .statement--sm { font-size: var(--type-display-sm); }
  .lede { font-size: 15px; margin-top: 20px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

  /* the footer bar: two phone bar rows; its own line per bar-relative property (standing rule above) */
  .footer-bar {
    column-gap: 12px;
    height: calc(2 * var(--bar-h-sm));
    padding-left: calc(env(safe-area-inset-left) + var(--bar-pad-x-sm));
    padding-right: calc(env(safe-area-inset-right) + var(--bar-pad-x-sm));
  }
  .footer-bar__meta { font-size: 10px; line-height: 1.45; padding-bottom: calc(var(--bar-h-sm) / 2 - 1.45em); }
  /* phones: the buttons stack bottom-right, "Book a demo" lowest (level with the copy, centred in row 2) and
   * "Start over", when it shows, above it in row 1 - so the copy keeps two lines even at 360px */
  .footer-bar__ctas {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: calc((var(--bar-h-sm) - 44px) / 2);
  }

  /* the painted box stays the 34px tab step; the host carries the 44px tap floor.
   * This override MUST sit after the base .chip__face rule — both are (0,1,0), so
   * source order decides, and declared first the base inset:0 wins and the painted
   * box comes out 42px with the tap target still correct (rev. 2 defect). */
  .chip {
    min-height: var(--tap-min);
    font-size: var(--type-tab-sm);
    letter-spacing: var(--tracking-tab-sm);
  }
  .chip__face { inset: var(--chip-hit-pad) 0; }
}

/* the page has no visually hidden heading — the marketing title IS the h1. */
