/* Matrix Moves landing page — draft v1.
   Tokens from the Figma brand guide: Matrix Cyan on Space Black, light cyan,
   white; BN Wolfstar for headlines and CTAs, Archivo for body copy; the
   "frame" device (thin lines with square nodes on the corners).

   Spacing, line-height and type-size values come from the tokens in :root.
   Components use the semantic aliases (--cell-pad, --gap-title, ...) so that
   comparable parts of different sections get the same rhythm. Avoid raw px
   values for margins, paddings and gaps; add a token instead. */

@font-face {
  font-family: "BN Wolfstar";
  src: url("assets/fonts/BNWolfstar-Rounded.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --black: #080808;
  --panel: #0c0f10;
  --cyan: #35faff;
  --cyan-light: #b6fdff;
  --white: #ffffff;
  --text: #e9f6f7;
  --muted: #94a3a5;
  --line: rgba(182, 253, 255, 0.26);
  --line-soft: rgba(182, 253, 255, 0.12);
  --glow: 0 0 24px rgba(53, 250, 255, 0.45);
  --node: 10px;
  --wrap: 1240px;
  --header-h: 76px; /* the sticky header's height */
  --display: "BN Wolfstar", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;

  /* Spacing scale (4 px base). */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout rhythm. */
  --section-y: clamp(64px, 9vw, 128px); /* top/bottom padding of a section */
  --head-gap: var(--space-8);           /* section head -> its content */
  --layout-gap: var(--space-7);         /* between columns of 2-column layouts */
  --cell-pad: var(--space-6);           /* padding of cells in framed grids and panels */
  --cell-pad-s: var(--space-5);         /* padding of compact cells (game cards) */
  --row-y: var(--space-3);              /* vertical padding of rows in ruled lists */

  /* Vertical rhythm inside components. */
  --gap-eyebrow: var(--space-4); /* eyebrow -> headline */
  --gap-title-s: var(--space-2); /* small title (.display--s) -> its text */
  --gap-title: var(--space-3);   /* title (.display--m) -> its text */
  --gap-meta: var(--space-4);    /* text -> badges, tags or a button */
  --gap-block: var(--space-5);   /* between blocks inside a card */
  --gap-after: var(--space-6);   /* component -> the note line under it */

  /* Line heights. */
  --lh-display: 1.02; /* stacked outline/solid headlines */
  --lh-heading: 1.15; /* card and list titles that may wrap */
  --lh-tight: 1.25;   /* labels, captions, badges, buttons */
  --lh-lead: 1.45;
  --lh-body: 1.6;

  /* Type sizes for body copy (headlines keep their own clamps). */
  --fs-body: 17px;
  --fs-card: 16px;  /* body copy inside cards, lists and panels */
  --fs-small: 14px; /* meta text: specs, footnotes, footer */
  --fs-label: 12px; /* uppercase display labels */

  /* Controls and markers. */
  --control-h: 56px;
  --control-h-s: 36px;
  --bullet: 8px;
  --bullet-s: 6px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + var(--space-3)); } /* anchor scrolling is animated in main.js */
/* Targets that anchor links move focus to (main.js) get no focus ring. */
[tabindex="-1"]:focus { outline: none; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
canvas { object-fit: contain; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--space-5)); margin-inline: auto; }

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  text-transform: uppercase;
  font-weight: normal;
  color: var(--cyan);
  line-height: var(--lh-display);
  letter-spacing: 0.02em;
  margin: 0;
}
.display .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
}
.display .solid { display: block; }
/* BN Wolfstar capitals carry ~0.065em of left side bearing; pull headings left
   so their ink lines up with eyebrows, body copy and frame edges. */
.display { margin-inline-start: -0.055em; }
.contact .display { margin-inline-start: 0; }
.display--xl { font-size: clamp(40px, 5vw, 72px); }
.display--l { font-size: clamp(30px, 4.6vw, 64px); }
.display--m { font-size: clamp(20px, 1.75vw, 24px); line-height: var(--lh-heading); }
.display--s { font-size: 17px; letter-spacing: 0.06em; line-height: var(--lh-heading); }

/* Square marker before a line of text. It hangs: wrapped lines align with
   the text, and the marker is centred on the first line (1lh). */
.eyebrow::before,
.business__points h3::before,
.games-foot span::before,
.marquee__track span::before {
  content: "";
  flex: none;
  width: var(--bullet);
  height: var(--bullet);
  margin-top: calc((1lh - var(--bullet)) / 2);
  background: var(--white);
}

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  line-height: var(--lh-tight);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--gap-eyebrow);
}
.eyebrow::before { margin-top: 0; transform: translateY(-0.075em); }

.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--white); line-height: var(--lh-lead); }
.muted { color: var(--muted); }

/* BN Wolfstar's capitals sit ~0.075em above the centre of its line box.
   Single-line UI labels are trimmed to cap height, so a box centres the
   letters themselves; their padding/min-height then sets the box size. */
.badge, .plan .tag, .lang a, .step__num, .stage figcaption,
.calc__out > span:first-child, .proof__label {
  text-box: trim-both cap alphabetic;
}
/* Flex/grid containers can't trim their anonymous text, so controls shift
   it instead: 0.15em more padding on top moves the caps 0.075em down. */
:root { --cap-shift: 0.15em; }

/* ---------- the frame device ---------- */

.frame {
  position: relative;
  border: 1px solid var(--line);
}
.frame::before {
  content: "";
  position: absolute;
  inset: calc(var(--node) / -2 - 0.5px);
  pointer-events: none;
  background:
    linear-gradient(var(--cyan), var(--cyan)) top left / var(--node) var(--node) no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) top right / var(--node) var(--node) no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom left / var(--node) var(--node) no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) bottom right / var(--node) var(--node) no-repeat;
  z-index: 2;
}

/* ---------- buttons ---------- */

.cta { display: inline-flex; gap: var(--space-1); max-width: 100%; text-decoration: none; }
.cta__label, .cta__arrow {
  background: var(--cyan);
  color: var(--black);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  line-height: var(--lh-tight);
  min-height: var(--control-h);
  display: grid;
  place-items: center;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s;
}
/* Labels may wrap on narrow screens: the button grows instead of clipping. */
.cta__label { flex: 1 1 auto; min-width: 0; text-wrap: balance; padding: calc(var(--space-2) + var(--cap-shift)) var(--space-5) var(--space-2); }
.cta__arrow { flex: none; width: var(--control-h); font-size: 20px; letter-spacing: -0.1em; padding-top: var(--cap-shift); }
.cta:hover .cta__label, .cta:hover .cta__arrow { background: var(--cyan-light); box-shadow: var(--glow); }
.cta--small .cta__label, .cta--small .cta__arrow { min-height: var(--control-h-s); font-size: 13px; }
.cta--small .cta__label { padding-block: var(--cap-shift) 0; }
.cta--small .cta__arrow { width: var(--control-h-s); font-size: 16px; }

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: calc(var(--space-2) + var(--cap-shift)) var(--space-5) var(--space-2);
  /* Light solid shapes look bigger than outlined ones (irradiation), so a thin
     dim outline reads shorter than the filled CTA at the same 56 px. A tinted
     fill and a full-strength 2 px edge make it read as a solid object. */
  border: 2px solid var(--white);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  line-height: var(--lh-tight);
  transition: background 0.2s, box-shadow 0.2s;
}
.link-btn:hover { background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 24px rgba(255, 255, 255, 0.25); }

.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.site-header .logo img { height: 44px; width: auto; }
.lang { display: flex; font-family: var(--display); font-size: var(--fs-label); line-height: var(--lh-tight); letter-spacing: 0.1em; }
.lang a { padding: 10px var(--space-2); text-decoration: none; color: var(--muted); border: 1px solid transparent; }
.lang a[aria-current="true"] { color: var(--cyan); border-color: var(--line); }
.site-header .cta { margin-left: auto; }
/* Section links: a few, not all, so the header stays one short line. */
.site-nav { display: flex; gap: var(--space-1); margin-left: auto; }
.site-nav + .cta { margin-left: 0; }
.site-nav a { white-space: nowrap; padding: 10px var(--space-3); font-family: var(--display); font-size: 13px; line-height: var(--lh-tight); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="true"] { color: var(--cyan); }

/* ---------- sections ---------- */

section { position: relative; padding: var(--section-y) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); margin-bottom: var(--head-gap); }
.section-head .lead { max-width: 52ch; }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---------- hero ---------- */

.hero { padding-top: var(--space-8); padding-bottom: var(--space-9); overflow: hidden; }
/* Side by side, the hero is taller than its copy so the reel gets room: as
   tall as the window allows, leaving the proof strip's top in view. */
@media (min-width: 821px) {
  .hero { display: flex; align-items: center; min-height: clamp(560px, 100svh - var(--header-h) - 120px, 760px); /* 120 px: the proof strip's top stays in view */ }
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--layout-gap); align-items: center; }
.hero .lead { margin: var(--space-6) 0; max-width: 34ch; }

/* The action reel: real footage first. It runs from mid-hero to the right at
   full height, without a frame; its edges dissolve into the page and its
   colors spill onto the black around it, like light off the floor. The poster
   shows until the video plays (and instead of it with reduced motion).
   On wide screens it ends at the container's edge (the header CTA's line) and
   fades out over at most --fade into the margin, so it lines up with the page
   and isn't stretched into a strip that crops the players out. Up to ~1440 px
   the margin is that fade, so it still runs to the window's edge. */
.hero__copy { position: relative; z-index: 1; container-type: inline-size; }
/* The hero headline is sized to its column, so each part stays on one line
   ("The floor" / "is the game") instead of wrapping into three or four. */
.hero .display--xl { font-size: min(72px, 10cqi); }
/* The eyebrow sits inside the h1: undo the heading's optical pull to the left. */
.hero h1 .eyebrow { margin-inline-start: calc(min(72px, 10cqi) * 0.055); }
.hero-reel {
  --edge: max(0px, (100vw - var(--wrap)) / 2); /* the margin beside the container */
  --fade: min(var(--edge), 160px);
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(34%, 50% - 230px); /* 34% up to 1440 px, then follows the container; reaches under the copy's faded side */
  right: calc(var(--edge) - var(--fade));
  margin: 0;
  isolation: isolate;
}
.hero-reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 45%),
    linear-gradient(to left, transparent, #000 var(--fade)),
    linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 45%),
    linear-gradient(to left, transparent, #000 var(--fade)),
    linear-gradient(to bottom, transparent, #000 12%, #000 86%, transparent);
  mask-composite: intersect, intersect;
}
/* A tiny copy of the current frame (painted by main.js), blurred into colored light. */
.hero-reel__glow {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: -32%;
  width: 156%; /* spills into the margin too, so the faded edge reads as light */
  height: 84%;
  max-width: none;
  filter: blur(90px) saturate(1.6);
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- the stage: the floor and the touchscreen, playing together ---------- */

.stage { padding: var(--cell-pad); display: grid; align-content: center; }
/* Two rows shared by both figures (subgrid): captions line up even when one
   wraps and the other doesn't. The touchscreen (9:16) is as tall as it was
   when both shared one height filling the row (--h × (9/16 + 2/3) + the gap =
   the row's width); the floor (2:3) is --floor of that and centred beside it,
   so it doesn't outweigh the screen. The pair is centred in the row. */
.stage__row {
  --gap: var(--space-5);
  --floor: 0.85;
  --h: calc((100cqi - var(--gap)) / (9 / 16 + 2 / 3));
  container-type: inline-size;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  grid-template-rows: auto auto;
  gap: var(--space-3) var(--gap);
}
.device { height: var(--h); width: auto; }
.stage__canvas { height: calc(var(--h) * var(--floor)); width: auto; align-self: center !important; }
.stage figure { margin: 0; display: grid; grid-row: span 2; grid-template-rows: subgrid; }
.stage figure > :first-child { align-self: end; }
.stage figcaption {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-label);
  line-height: var(--lh-tight);
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
.stage__canvas { aspect-ratio: 2 / 3; }
.stage__canvas canvas { width: 100%; height: 100%; }
.device {
  aspect-ratio: 9 / 16;
  padding: 7px;
  border-radius: 16px;
  background: linear-gradient(160deg, #2a2f30, #0d0f10 40%, #1b1f20);
  box-shadow: 0 0 0 1px rgba(182, 253, 255, 0.18), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.device__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 9px; background: #000; }

/* ---------- launcher score screen (1080 × 1920, scaled) ---------- */

@font-face { font-family: "Space Grotesk"; src: url("assets/launcher/SpaceGrotesk-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("assets/launcher/SpaceGrotesk-Bold.ttf"); font-weight: 700; font-display: swap; }
.ls {
  position: absolute;
  left: 0; top: 0;
  width: 1080px;
  height: 1920px;
  transform-origin: 0 0;
  background: #000;
  color: #fff;
  font-family: "Space Grotesk", var(--body);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
/* PageScaffold: the grid background at 55 %, fit to height. */
.ls::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("assets/launcher/bg.svg") center / auto 100% no-repeat; opacity: 0.55; }
.ls__defs { position: absolute; width: 0; height: 0; }
.ls svg { max-width: none; }
/* MgText uppercases everything set in the heading font. */
.ls__title, .ls__name, .ls__button { text-transform: uppercase; }
/* Content area between the top edge and the footer (96 px padding around a 124 px button). */
.ls__body { flex: 1; min-height: 0; padding: 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 80px; }
.ls__titles { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.ls__team, .ls__title, .ls__pill b, .ls__colon { -webkit-background-clip: text; background-clip: text; color: transparent; }
/* bodyLargeBold / h1 with the text gradient. */
.ls__team { font-size: 36px; font-weight: 700; line-height: 1.4; background-image: linear-gradient(#fff, #a8a8a8); }
.ls__title { font-family: "BN Wolfstar"; font-size: 72px; line-height: normal; background-image: linear-gradient(#fff, #a8a8a8); }
.ls__label { font-size: 36px; font-weight: 700; line-height: 1.4; }

/* MgPointsCounter and MgHealthBar: an SVG painter stack under the content. */
.ls__points, .ls__health { position: relative; flex: none; width: 888px; }
.ls__points { height: 264.44px; }
.ls__health { height: 134px; }
.ls__shape { position: absolute; overflow: visible; }
.ls__halo { fill: none; stroke: color-mix(in srgb, var(--c) 50%, transparent); stroke-width: 14; }
.ls__glow, .ls__inset { fill: none; stroke: color-mix(in srgb, var(--c) 60%, transparent); }
.ls__glow { stroke-width: 16; }
.ls__inset { stroke-width: 10; }
.ls__fill { fill: #000; }
.ls__stroke { fill: none; stroke: var(--hl); stroke-width: 5; stroke-linejoin: round; }
.ls__halo, .ls__glow, .ls__inset, .ls__stroke { transition: stroke 0.3s; }
.ls__trend { position: absolute; top: 20px; left: 412px; width: 64px; height: 64px; color: var(--c); transition: transform 0.25s ease-in-out, color 0.3s; }
.ls__points.is-down .ls__trend { transform: perspective(1000px) rotateX(180deg); }
.ls__trend svg, .ls__heart svg { display: block; width: 100%; height: 100%; }
.ls__points-n { position: absolute; top: 66.44px; bottom: 0; left: 40px; right: 40px; display: grid; place-items: center; font-family: "BN Wolfstar"; font-size: 116px; line-height: 1; color: var(--c); transition: color 0.3s; }
.ls__heart { position: absolute; left: 27px; top: 35px; width: 72px; height: 72px; color: var(--c); transition: color 0.3s; }
.ls__bar { position: absolute; left: 124px; top: 47px; height: 40px; width: 748px; border-radius: 20px; background: var(--c); transition: width 0.3s ease-in-out, background 0.3s; }

/* Battle: MgPlayerScoreLabel rows on MgGlowSurface pills. */
.ls__board { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.ls__rows { position: relative; width: 888px; }
.ls__row {
  position: absolute;
  left: 0; right: 0;
  height: 96px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px 12px 40px;
  background: #000;
  border: 5px solid var(--hl);
  box-shadow:
    0 0 38px color-mix(in srgb, var(--c) 42%, transparent),
    0 0 56px 4px color-mix(in srgb, var(--c) 23%, transparent),
    inset 0 0 32px 16px color-mix(in srgb, var(--c) 42%, transparent);
  transition: top 0.3s ease-in-out;
}
.ls__name, .ls__score { font-family: "BN Wolfstar"; font-size: 30px; line-height: 1; letter-spacing: 0.06em; }
.ls__name { flex: 1; min-width: 0; }
.ls__score { padding-right: 16px; text-align: right; }

/* MgGameTimer: MM and SS on glass pills, h1 with the strong text gradient. */
.ls__timer { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.ls__pills { display: flex; align-items: center; gap: 16px; }
.ls__pill {
  width: 200px;
  height: 115px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%);
  backdrop-filter: blur(40px);
  display: grid;
  place-items: center;
  padding-top: 4px;
}
.ls__pill b, .ls__colon { font-family: "BN Wolfstar"; font-weight: normal; font-size: 72px; line-height: normal; background-image: linear-gradient(#fff, #666); }

/* The launcher's CTA: MgButton secondary, large. */
.ls__footer { position: relative; flex: none; margin-top: auto; padding: 96px; } /* relative: holds the fingertip (.ls__tap) */
.ls__button {
  height: 124px;
  border-radius: 16px;
  border: 5px solid #a8a8a8;
  background: #000;
  display: grid;
  place-items: center;
  padding-top: 0.075em;
  font-family: "BN Wolfstar";
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #fff;
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.55);
}

/* The screens before the game: s101 start, s301 select game, s304 How to play. */
.ls__head { flex: none; height: 216px; display: grid; place-items: center; }
.ls__head img { height: 64px; width: auto; }
.ls__h1 {
  font-family: "BN Wolfstar";
  font-size: 72px;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  background-image: linear-gradient(#fff, #a8a8a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ls__h1--xl { font-size: 90px; padding: 0 80px; }
.ls__title-row { flex: none; padding: 0 96px 72px; }
.ls__start { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; }
.ls__mark { height: 144px; width: auto; filter: drop-shadow(0 0 24px rgba(10, 226, 255, 0.6)); }
/* MgButton primary: the white-to-grey fill; pressed, the gradient turns over. */
.ls__button--primary { background: linear-gradient(#fff, #a8a8a8); color: #000; box-shadow: 0 0 28px rgba(0, 0, 0, 0.55); }
/* Pressed: it sinks and turns its gradient over (MgButton's pressed state),
   glowing cyan for a moment, then springs back. */
.ls__button--primary.is-pressed { animation: ls-press 0.7s ease-out; }
@keyframes ls-press {
  0% { transform: scale(1); }
  20%, 45% { transform: scale(0.94); background: linear-gradient(#a8a8a8, #fff); box-shadow: 0 0 56px rgba(10, 226, 255, 0.9); }
  100% { transform: scale(1); }
}
/* The fingertip: a soft white dot over the button's middle that fades as it lifts. */
.ls__tap {
  position: absolute;
  left: 50%; top: 50%;
  width: 150px; height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  background: radial-gradient(rgba(255, 255, 255, 0.95) 0 45%, rgba(255, 255, 255, 0.35) 46% 70%, transparent 71%);
  pointer-events: none;
  animation: ls-tap 0.9s ease-out forwards;
}
@keyframes ls-tap {
  0% { transform: scale(0.5); opacity: 0; }
  15%, 45% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* c301's portrait carousel: five slots, the rest out of sight. */
.ls__carousel { position: relative; flex: none; height: 718px; }
.ls__card {
  position: absolute;
  left: 224px; top: 0; width: 632px; height: 718px;
  object-fit: contain;
  filter: brightness(0.4);
  transition: left 0.45s cubic-bezier(.4, 0, .2, 1), top 0.45s cubic-bezier(.4, 0, .2, 1), width 0.45s cubic-bezier(.4, 0, .2, 1), height 0.45s cubic-bezier(.4, 0, .2, 1), filter 0.45s, opacity 0.45s;
}
.ls__card[data-slot="0"] { filter: none; z-index: 3; }
.ls__card[data-slot="-1"] { left: 120px; top: 71px; width: 505.6px; height: 577px; z-index: 2; }
.ls__card[data-slot="1"] { left: 454px; top: 71px; width: 505.6px; height: 577px; z-index: 2; }
.ls__card[data-slot="-2"] { left: 16px; top: 129px; width: 404.48px; height: 519px; z-index: 1; }
.ls__card[data-slot="2"] { left: 660px; top: 129px; width: 404.48px; height: 519px; z-index: 1; }
.ls__card[data-slot="-3"] { left: -120px; top: 160px; width: 360px; height: 460px; opacity: 0; }
.ls__card[data-slot="3"] { left: 840px; top: 160px; width: 360px; height: 460px; opacity: 0; }
.ls__tagline { flex: none; width: 900px; height: 100px; margin: 56px auto 0; font-size: 36px; line-height: 1.4; text-align: center; }
.ls__dots { flex: none; display: flex; justify-content: center; gap: 20px; margin-top: 48px; }
.ls__dots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: background 0.3s; }
.ls__dots i.is-on { background: #fff; }

/* The portrait guide: a row per step, the open one a glowing card. */
.ls__guide { flex: 1; min-height: 0; padding: 0 64px; display: flex; flex-direction: column; gap: 24px; }
.ls__grow {
  flex: none;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 36px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.6);
  font-family: "BN Wolfstar";
  font-size: 30px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.ls__grow b { font-weight: normal; color: #0ae2ff; }
.ls__gcard {
  position: relative;
  flex: none;
  padding: 48px 48px 56px;
  border-radius: 16px;
  border: 5px solid #cef9ff;
  background: #000;
  box-shadow: 0 0 32px rgba(10, 226, 255, 0.7), inset 0 0 24px rgba(10, 226, 255, 0.45);
  overflow: hidden;
}
.ls__gcopy { min-width: 0; }
.ls__gstep { font-family: "BN Wolfstar"; font-size: 30px; text-transform: uppercase; color: #0ae2ff; }
.ls__gtitle { margin-top: 14px; font-family: "BN Wolfstar"; font-size: 40px; line-height: 1.15; text-transform: uppercase; }
.ls__gtext { margin-top: 22px; font-size: 30px; line-height: 1.4; }
.ls__gbar { position: absolute; left: 0; bottom: 0; height: 8px; width: 0; background: #0ae2ff; }

/* ---------- 404 page ---------- */

.not-found { padding: var(--space-9) 0; }
.not-found .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--layout-gap); align-items: center; }
/* The headline is sized to its column, so each part stays on one line. */
.not-found__copy { container-type: inline-size; }
.not-found h1 { font-size: min(72px, 7cqi); } /* "YOU STEPPED OFF" is ~13.9em wide */
.not-found .lead { margin: var(--space-6) 0; max-width: 40ch; }
/* The floor (notfound.js) and, beside its edge, the person who walked off it.
   --tile is the drawn tile size; the person is 1.75 m, a tile 30 cm. */
.not-found__floor { margin: 0; display: flex; align-items: flex-end; gap: calc(var(--tile, 20px) * 0.8); }
.not-found__floor canvas { flex: 1; min-width: 0; touch-action: pan-y; cursor: crosshair; }
.not-found__person { flex: none; width: auto; height: calc(var(--tile, 20px) * 5.83); color: var(--muted); }

/* ---------- legal pages (privacy) ---------- */

.legal { padding: var(--space-8) 0; }
.legal .wrap > * { max-width: 68ch; }
.legal h1 { margin-bottom: var(--space-3); }
.legal .lead { margin-top: var(--space-5); color: var(--white); } /* over .legal p below */
.legal section { margin-top: var(--space-6); padding: 0; }
.legal h2 { margin-bottom: var(--space-3); }
.legal p { margin: 0 0 var(--space-3); color: var(--muted); }
.legal a { color: var(--white); }

/* ---------- proof ---------- */

.proof { overflow: hidden; padding: var(--space-7) 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.proof .wrap > * { min-width: 0; }
/* Two rows shared across both columns: the number with the text, the label with
   the scrolling names, so each pair lines up. */
.proof .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "number text" "label names";
  gap: var(--space-4) var(--layout-gap);
  align-items: center;
}
.proof__number { grid-area: number; font-family: var(--display); color: var(--cyan); font-size: 72px; line-height: 1; text-shadow: var(--glow); }
.proof__text { grid-area: text; max-width: 60ch; }
.proof__label { grid-area: label; font-family: var(--display); font-size: var(--fs-small); line-height: var(--lh-tight); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.proof .marquee { grid-area: names; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--space-6); width: max-content; animation: marquee 60s linear infinite; }
.marquee__track span {
  display: flex;
  gap: var(--space-6);
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 15px;
  line-height: var(--lh-tight);
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
}
.marquee__track span::before { --bullet: var(--bullet-s); margin-top: 0; transform: translateY(-0.075em); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- shared card parts ---------- */

/* Text that follows a title, per title size. */
.display--m + p, .display--m + ul { margin-top: var(--gap-title); }
.display--s + p, .display--s + ul { margin-top: var(--gap-title-s); }

/* Line icons (_data/icons.js). Sized in em, so they follow the text. */
.icon { width: 1em; height: 1em; flex: none; }
/* The neon version: a lit tube, like the brand's neon illustrations. */
.icon.neon { color: var(--cyan); filter: drop-shadow(0 0 3px rgba(53, 250, 255, 0.9)) drop-shadow(0 0 14px rgba(10, 226, 255, 0.6)); }

/* ---------- how it works ---------- */

/* One framed panel, like Floor Manager (mirrored): the stage on the left, the
   steps on the right as its tabs. The step playing gets the cyan edge and a
   timer line that fills while the stage plays it. */
.how { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(4, 1fr); border-left: 1px solid var(--line); }
.step {
  position: relative;
  padding: var(--cell-pad);
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr); /* fixed number column: titles line up across rows */
  column-gap: var(--space-3);
  row-gap: var(--gap-title);
  align-content: center;
  align-items: first baseline;
  transition: background 0.2s;
}
.step:last-child { border-bottom: 0; }
.step__num { grid-row: span 2; font-family: var(--display); color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-tight); letter-spacing: 0.1em; transition: color 0.2s; }
.step h3 { margin: 0; color: var(--muted); transition: color 0.2s; }
.step p { margin: 0; color: var(--muted); font-size: var(--fs-card); }
.step.is-active h3 { color: var(--white); }
.step.is-active .step__num { color: var(--cyan); }
/* The marker and timer line are shared with the Floor Manager tabs. */
.step.is-active::before,
.fm__tab[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 3px; background: var(--cyan); box-shadow: var(--glow); }
.step .bar, .fm__tab .bar { position: absolute; left: var(--cell-pad); right: var(--cell-pad); bottom: 0; height: 1px; }
.bar i { display: block; height: 100%; width: 0; background: var(--cyan); }
/* Steps jump the stage to their part (stage.js makes them buttons once the stage plays). */
.step[role="button"] { cursor: pointer; }
.step[role="button"]:hover { background: rgba(53, 250, 255, 0.04); }
.step[role="button"]:focus-visible { outline: 1px solid var(--cyan); outline-offset: -1px; }

/* ---------- games: the launcher's cover carousel ---------- */

.games { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--layout-gap); align-items: center; }

/* The launcher's portrait frame is 1080 × 718; the slots below are its card
   positions (c301_game_carousel.dart) as offsets from the centre card, in
   cqw of the frame, so the whole carousel scales with its width. */
.carousel { position: relative; overflow: clip; aspect-ratio: 1080 / 718; container-type: inline-size; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carousel__cards { list-style: none; margin: 0; padding: 0; }
.carousel__card {
  --x: 0cqw; --y: 0cqw; --s: 1;
  position: absolute;
  top: 0;
  left: calc(224 / 1080 * 100%);
  width: calc(632 / 1080 * 100%);
  height: 100%;
  container-type: inline-size;
  transform: translate(var(--x), var(--y)) scale(var(--s));
  /* Side cards sit under the launcher's 60% black overlay. */
  filter: brightness(0.4);
  opacity: 0;
  z-index: 0;
  cursor: pointer;
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1), filter 0.32s, opacity 0.32s;
}
.carousel__card img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.carousel__card[data-slot="0"] { filter: none; opacity: 1; z-index: 3; cursor: default; }
.carousel__card[data-slot="-1"] { --x: -15.46cqw; --s: 0.8; opacity: 1; z-index: 2; }
.carousel__card[data-slot="1"] { --x: 15.46cqw; --s: 0.8; opacity: 1; z-index: 2; }
.carousel__card[data-slot="-2"] { --x: -29.8cqw; --y: 2.73cqw; --s: 0.64; opacity: 1; z-index: 1; }
.carousel__card[data-slot="2"] { --x: 29.8cqw; --y: 2.73cqw; --s: 0.64; opacity: 1; z-index: 1; }
.carousel__card[data-slot="-3"] { --x: -36cqw; --y: 5cqw; --s: 0.5; }
.carousel__card[data-slot="3"] { --x: 36cqw; --y: 5cqw; --s: 0.5; }
.carousel__card:not([data-slot="0"]):hover { filter: brightness(0.6); }
/* A game without a cover yet: the launcher's fallback art, its name on top
   (52 px in the 688 px wide artwork, baseline area 74 px from the bottom). */
.carousel__card--fallback span {
  position: absolute;
  inset: auto 8% 10% 8%;
  font-family: var(--display);
  text-transform: uppercase;
  text-align: center;
  font-size: calc(52 / 688 * 100cqw);
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--white);
}

/* All descriptions share one grid cell, so the panel is as tall as the
   longest one and the buttons don't move between games. */
.game-info { display: grid; gap: var(--gap-block); align-content: center; }
.game-info__items { display: grid; }
.game-info__item { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 0.32s, visibility 0s 0.32s; }
.game-info__item.is-current { visibility: visible; opacity: 1; transition: opacity 0.32s 0.1s; }
.game-info__item p { color: var(--muted); font-size: var(--fs-card); }
.game-info__item .game-info__tagline { margin-top: var(--gap-title-s); margin-bottom: var(--gap-title); color: var(--white); font-size: clamp(18px, 1.6vw, 22px); line-height: var(--lh-lead); }
.game-info__nav { display: flex; gap: var(--space-2); }

.icon-btn {
  all: unset;
  box-sizing: border-box;
  width: var(--control-h);
  height: var(--control-h);
  display: grid;
  place-items: center;
  padding-top: var(--cap-shift);
  border: 2px solid var(--white);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.1em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); box-shadow: 0 0 24px rgba(255, 255, 255, 0.25); }
.icon-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.badges { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--gap-meta); }
.badge {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 10px;
  line-height: var(--lh-tight);
  letter-spacing: 0.1em;
  padding: 6px var(--space-2);
  border: 1px solid var(--line);
  color: var(--cyan-light);
  white-space: nowrap;
}
.games-foot { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-7); margin-top: var(--space-7); color: var(--muted); font-size: var(--fs-card); }
.games-foot span { display: flex; gap: var(--space-3); }
.games-foot span::before { --bullet: var(--bullet-s); }

/* ---------- business case ---------- */

.business__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--layout-gap); align-items: start; }
.business__points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7) var(--space-6); }
.business__points h3 { display: flex; gap: var(--space-3); color: var(--white); }
.business__points h3::before { margin-top: calc((1lh - var(--bullet)) / 2 - 0.075em); }
/* Body text lines up with the heading text, not with the marker. */
.business__points p { padding-left: calc(var(--bullet) + var(--space-3)); color: var(--muted); font-size: var(--fs-card); }
.calc { padding: var(--cell-pad); background: var(--panel); }
.calc > p.muted { margin-bottom: var(--gap-block); }
.calc label { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--row-y) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-card); line-height: var(--lh-tight); }
.calc label small { display: block; margin-top: var(--space-1); font-size: var(--fs-small); line-height: var(--lh-lead); color: var(--muted); }
.calc__in { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); color: var(--muted); }
.calc input {
  width: 84px;
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--white);
  font: inherit;
  font-size: var(--fs-card);
  line-height: var(--lh-tight);
  padding: var(--space-2) var(--space-3);
  text-align: right;
}
/* No spinner buttons: visitors type their own numbers. */
.calc input { appearance: textfield; -moz-appearance: textfield; }
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc input:focus { outline: none; border-color: var(--cyan); }
.calc__out { display: grid; gap: var(--space-1); margin: var(--gap-block) 0; }
.calc__out > span:first-child { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-label); line-height: var(--lh-tight); color: var(--muted); }
.calc__out strong { font-family: var(--display); font-weight: normal; font-size: 52px; color: var(--cyan); text-shadow: var(--glow); line-height: 1.1; }
.calc__note { margin-top: var(--gap-meta); font-size: var(--fs-small); color: var(--muted); }

/* ---------- floors ---------- */

/* Drawn to scale: one tile = --t px. */
.floors { --t: 7px; display: grid; grid-template-columns: repeat(5, auto); gap: var(--space-7); align-items: end; justify-content: space-between; }
.floor-model { display: flex; flex-direction: column; gap: var(--space-4); }
.floor-model .tilegrid {
  display: grid;
  gap: 1px;
  /* columns/rows set inline; one tile = --t px */
}
.floor-model .tilegrid i { width: var(--t); height: var(--t); background: #1f2a2b; border-radius: 1px; transition: background 0.5s, box-shadow 0.5s; }
.floor-model .tilegrid i.on { background: var(--cyan); box-shadow: 0 0 8px 1px rgba(53, 250, 255, 0.9); transition: none; }
.floor-model__specs { list-style: none; margin: 0; padding: 0; font-size: var(--fs-small); color: var(--muted); }
.floor-model__specs strong { color: var(--text); font-weight: 500; }
.floor-model--custom .tilegrid { width: 128px; height: 104px; border: 1px dashed var(--line); background: transparent; display: grid; place-items: center; color: var(--muted); font-size: 13px; line-height: var(--lh-tight); text-align: center; }
.person { display: flex; align-items: flex-end; gap: var(--space-2); }
/* 1.75 m tall at the drawing's scale: a tile pitch (--t + the 1 px gap) is 30 cm. */
.person__figure { flex: none; width: auto; height: calc((var(--t) + 1px) * 5.83); color: var(--muted); }
/* What you buy: the two plans side by side, and under both what comes with
   every floor. */
.buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto) auto; margin-top: var(--space-8); }
.buy > * { padding: var(--cell-pad); }
/* Plans share rows (title, line, table), so their tables line up even when
   Premium's tag wraps under its title. */
.buy > .plan { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.buy > .plan + .plan { border-left: 1px solid var(--line); }
.buy__box { grid-column: 1 / -1; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--layout-gap); }
.buy__box ul { padding: 0; list-style: none; margin-bottom: 0; font-size: var(--fs-card); }
.buy__list:not(.buy__list--extra) ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--layout-gap); }
.buy__box li { display: flex; gap: var(--space-3); align-items: baseline; padding: var(--row-y) 0; border-top: 1px solid var(--line-soft); } /* ruled like the plan tables above */
.buy__box li .icon { font-size: 18px; color: var(--cyan); transform: translateY(0.18em); }
.buy__list--extra li .icon { color: var(--muted); }

/* ---------- how sessions start, reliability (tile rows) ---------- */

.tiles4 { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile4 { padding: var(--cell-pad); border-right: 1px solid var(--line); display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.tile4:last-child { border-right: 0; }
.tile4 .icon { font-size: 28px; margin-bottom: var(--gap-block); }
.tile4__icon { color: var(--cyan); }
.tile4 .neon { font-size: 56px; stroke-width: 1.25; }
.tile4 p { color: var(--muted); font-size: var(--fs-card); }
.note { margin-top: var(--gap-after); color: var(--muted); font-size: var(--fs-card); }
.note strong { color: var(--text); font-weight: 500; }
.note + .fm { margin-top: var(--space-8); }

/* ---------- floor manager ---------- */

.fm { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0; }
.fm__tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
/* The description opens by growing its grid row from 0fr to 1fr: its real
   height, so the closing tab shrinks exactly as fast as the opening one
   grows and the list never gets taller in between (max-height did). */
.fm__tab {
  all: unset;
  cursor: pointer;
  padding: var(--cell-pad);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.fm__tab[aria-selected="true"] { grid-template-rows: auto 1fr; }
.fm__tab:last-child { border-bottom: 0; }
.fm__title { display: block; color: var(--muted); transition: color 0.2s; }
.fm__more { display: block; min-height: 0; overflow: hidden; }
.fm__more span { display: block; margin-top: var(--gap-title); color: var(--muted); font-size: var(--fs-card); opacity: 0; transition: opacity 0.4s; }
.fm__tab[aria-selected="true"] .fm__title { color: var(--white); }
.fm__tab[aria-selected="true"] .fm__more span { opacity: 1; }
.fm__tab:focus-visible { outline: 1px solid var(--cyan); outline-offset: -1px; }
/* Marker and timer line: see How it works. */
.fm__panel { padding: var(--cell-pad); display: grid; place-items: center; }
.fm__panel img { width: 100%; height: auto; aspect-ratio: 16 / 10; border: 1px solid var(--line-soft); }

/* ---------- plans ---------- */

.plan--premium { background: linear-gradient(180deg, rgba(53, 250, 255, 0.07), transparent 60%); }
.plan h3 { align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.plan ul { list-style: none; margin: var(--gap-block) 0 0; padding: 0; }
.plan li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-4); padding: var(--row-y) 0; border-top: 1px solid var(--line-soft); font-size: var(--fs-card); }
.plan li:last-child { padding-bottom: 0; }
.plan li span:first-child { color: var(--muted); }
.plan .tag { font-family: var(--display); font-size: 11px; line-height: var(--lh-tight); letter-spacing: 0.1em; text-transform: uppercase; background: var(--cyan); color: var(--black); padding: 6px var(--space-2); }

/* ---------- contact ---------- */


.contact { text-align: center; overflow: hidden; }
/* The floor grid in perspective behind the closing call to action. */
.floor-grid {
  position: absolute;
  inset: 30% -20% -30%;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: top center;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.contact .wrap { position: relative; }
/* Each line of the headline on one line, phones included ("THE MATRIX"). */
.contact .display--xl { font-size: min(clamp(40px, 5vw, 72px), 9.4vw); }
.contact .lead { margin: var(--space-6) auto; max-width: 46ch; }
.contact .hero__actions { justify-content: center; }

.site-footer { border-top: 1px solid var(--line-soft); padding-top: var(--space-8); font-size: var(--fs-small); color: var(--muted); overflow: hidden; }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6) var(--layout-gap); }
.site-footer__cols > * { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.site-footer__label { margin: 0 0 var(--space-2); font-family: var(--display); font-size: var(--fs-label); font-weight: normal; line-height: var(--lh-tight); letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); }
.site-footer p { margin: 0; line-height: var(--lh-body); }
.site-footer a { text-decoration: none; color: var(--text); }
.site-footer a:hover { color: var(--cyan); }

/* The logo's two words on one line, as a band running across the page edge
   to edge. The letters are as tall as they would be if one word filled the
   page width (0.138 = the tile's height / one word's width). */
.site-footer__band { margin-top: var(--space-8); padding-bottom: var(--space-7); overflow: hidden; }
.site-footer__track { display: flex; width: max-content; animation: band 36.4s linear infinite; }
.site-footer__track img { display: block; height: calc(min(var(--wrap), 100vw - 2 * var(--space-5)) * 0.138); width: auto; }
@keyframes band { to { transform: translateX(-50%); } }
/* Running text stops while pointed at, so it can be read (also the marquee). */
.site-footer__band:hover .site-footer__track, .marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- reveal on scroll ---------- */

/* Only when JS runs (html.js, set in page-top.njk): without it, nothing stays hidden. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .games { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } /* narrower windows: the covers need the room */
  .tiles4 { grid-template-columns: repeat(2, 1fr); }
  .buy__box { grid-template-columns: minmax(0, 1fr); gap: var(--gap-block); }
  .business__grid { grid-template-columns: 1fr; }
  .tile4:nth-child(2n) { border-right: 0; }
  .tile4:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .floors { grid-template-columns: repeat(3, auto); justify-content: start; }
}
@media (max-width: 1100px) {
  .site-nav { display: none; } /* tablets and phones: the logo and the demo button only */
  .site-nav + .cta { margin-left: auto; }
}
@media (max-width: 820px) {
  :root {
    --fs-body: 16px;
    --head-gap: var(--space-6);
    --layout-gap: var(--space-5);
    --cell-pad: var(--space-5);
  }
  .hero .wrap { gap: var(--space-7); }
  .hero .wrap, .how, .games, .fm, .buy, .proof .wrap, .not-found .wrap { grid-template-columns: minmax(0, 1fr); }
  .not-found { padding: var(--space-8) 0; }
  .proof .wrap { grid-template-areas: "number" "label" "text" "names"; row-gap: var(--space-2); }
  .proof__text { margin-top: var(--space-4); }
  /* The reel runs edge to edge under the text. */
  .hero-reel { position: relative; left: auto; right: auto; width: auto; margin-inline: calc(50% - 50vw); aspect-ratio: 4 / 3; }
  .hero-reel__video {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 84%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 84%, transparent);
  }
  .hero-reel__glow { top: -20%; left: 0; width: 100%; height: 70%; }
  .stage { padding: var(--space-4); }
  .stage__row { --gap: var(--space-4); }
  .steps { grid-template-rows: none; border-left: 0; border-top: 1px solid var(--line); }
  .fm__tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .buy > .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .buy__list:not(.buy__list--extra) ul { grid-template-columns: minmax(0, 1fr); }
  /* Stacked: capped, or the covers would get bigger than on a desktop. */
  .carousel { width: min(100%, 520px); justify-self: center; }
  .game-info { gap: var(--space-5); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__track { animation-duration: 18.2s; } /* a smaller tile: keep the pace */
  .floors { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 560px) {
  /* Phones: the carousel runs edge to edge, so the back cards reach the screen sides. */
  .carousel { width: auto; justify-self: stretch; margin-inline: calc(50% - 50vw); }
  .tiles4, .business__points { grid-template-columns: 1fr; }
  .tile4 { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .plan li { grid-template-columns: 1fr; gap: var(--space-1); }
  .floors { --t: 6px; gap: var(--space-6) var(--space-5); }
  /* Buttons go full width and stack, so rows of actions line up. */
  .hero__actions { flex-direction: column; }
  .cta, .link-btn { display: flex; width: 100%; }
  .cta__label, .link-btn { padding-inline: var(--space-3); }
  .site-header .wrap { gap: var(--space-4); }
  .site-header .cta { display: inline-flex; width: auto; flex: none; }
  .site-header .cta__label { white-space: nowrap; }
  .site-header .cta__arrow { display: none; } /* phones: the label alone, to save room */
  .site-footer__cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .site-footer__track { animation: none; }
  .carousel__card, .game-info__item, .game-info__item.is-current, .fm__tab, .fm__more span, .ls__card, .step { transition: none; }
  .ls__tap { display: none; }
  .ls__button--primary.is-pressed { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- HERO OPTION "type" (kept for later; not shown by default) ----------
   Shown with ?hero=type (page-top.njk). Fills the screen under the header,
   keeps the reel's soft edges and lets its glow spill onto the proof strip. */

html[data-hero="type"] .hero { overflow: visible; overflow-x: clip; min-height: calc(100svh - var(--header-h)); display: flex; padding-block: var(--space-8); }
html[data-hero="type"] .proof { position: relative; z-index: 1; } /* above the glow spilling down */

/* type: the headline as wide as the page (like MATRIX MOVES in the footer);
   the reel runs edge to edge behind its lower half, with the lead and button
   over its faded bottom. Its glow reaches up behind the headline. */
html[data-hero="type"] .hero .wrap { display: flex; align-items: stretch; } /* the copy fills the hero's height */
html[data-hero="type"] .hero__copy { flex: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; column-gap: var(--layout-gap); }
html[data-hero="type"] .hero h1 { grid-column: 1 / -1; font-size: 10.1cqi; line-height: 0.92; white-space: nowrap; }
html[data-hero="type"] .hero h1 .eyebrow { margin-inline-start: calc(10.1cqi * 0.055); margin-bottom: var(--space-4); }
html[data-hero="type"] .hero h1 .outline { -webkit-text-stroke-width: 2px; }
html[data-hero="type"] .hero .lead { grid-row: 3; align-self: end; margin: 0; max-width: 44ch; }
html[data-hero="type"] .hero .hero__actions { grid-row: 3; align-self: end; }
html[data-hero="type"] .hero-reel { left: 0; right: 0; top: 30%; bottom: 0; }
html[data-hero="type"] .hero-reel__video {
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 15%, #000 85%, transparent),
    linear-gradient(to bottom, transparent, #000 30%, #000 55%, rgba(0, 0, 0, 0.2) 88%, transparent);
  mask-image:
    linear-gradient(to right, transparent, #000 15%, #000 85%, transparent),
    linear-gradient(to bottom, transparent, #000 30%, #000 55%, rgba(0, 0, 0, 0.2) 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  object-position: 50% 45%;
}
html[data-hero="type"] .hero-reel__glow { left: 5%; width: 90%; top: -15%; height: 115%; opacity: 0.5; }

@media (max-width: 820px) {
  html[data-hero="type"] .hero { min-height: 0; padding-top: 0; }
  /* type: headline, then the reel overlapping its bottom, then the lead and button. */
  html[data-hero="type"] .hero .wrap { flex-direction: column; container-type: inline-size; padding-top: var(--space-7); }
  html[data-hero="type"] .hero h1 { order: 1; }
  html[data-hero="type"] .hero-reel { order: 2; }
  html[data-hero="type"] .hero .lead { order: 3; }
  html[data-hero="type"] .hero .hero__actions { order: 4; align-self: stretch; }
  html[data-hero="type"] .hero .lead { align-self: stretch; }
  html[data-hero="type"] .hero__copy { display: contents; }
  html[data-hero="type"] .hero h1 { position: relative; z-index: 1; }
  html[data-hero="type"] .hero-reel { position: relative; top: auto; margin: calc(-1 * var(--space-7)) calc(50% - 50vw) 0; aspect-ratio: 4 / 3; }
  html[data-hero="type"] .hero-reel__video {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  }
  html[data-hero="type"] .hero .lead { margin: var(--space-2) 0 var(--space-6); }
}
