/* s2ar.dev — the house sheet (2026-10-31, the s2ar site redesign). The platform pages take the apps' look: the ink
   the launcher and the console stand on, one typeface (JetBrains Mono, every word), the three text tiers, one accent
   per tool, panels with a hairline edge tinted by their accent, a white wash under the pointer, 180 ms of motion and
   none under prefers-reduced-motion. Every colour, size, radius and duration below is a token love-shared/tokens.toml
   emits into the page's head ahead of this sheet ([web.platform], the ladders --space-N / --radius-N, the sizes, the
   apps' --accent-<app>, the motions): tools/house_lint.py refuses a literal. The sheet names its own few numbers once,
   in :root (the type scale, the apps' [type.size] at 1.4; the measure; the gutter) and reads them everywhere else.
   The pages that use it are chrome = "bare" (platform/build.py). The haze design of 2026-10-15 (media/platform/site.css)
   is in git before this. */

/* the face the page shows before the inline JetBrains Mono decodes: a local monospace sized to its advance, so
   nothing jumps (a local() source names no URL: the self-contained check is untouched) */
@font-face {
  font-family: "JBM Fallback";
  src: local("JetBrains Mono"), local("Cascadia Mono"), local("Consolas"), local("Menlo"), local("DejaVu Sans Mono"), local("Liberation Mono");
  size-adjust: 104%;
  ascent-override: 102%;
  descent-override: 30%;
}

:root {
  color-scheme: dark;
  --accent: var(--seal);                 /* the site's own; a tool's card and page set --accent to the app's */
  /* the type scale: the apps' [type.size] (micro 9 … display 30) at 1.4 */
  --t-micro: 12px;
  --t-small: 14px;
  --t-body: 15px;
  --t-label: 16px;
  --t-title: 20px;
  --t-h2: 30px;
  --t-h1: 36px;
  --t-display: 42px;
  --lh: 1.6;
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --console: 640px;                       /* the tools' column over the landed crater (H3): the board stays one column in it */
  --tutorial-h: min(64vh, 480px);         /* the tutorial's frame */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --breath: 4s;                          /* [aesthetic.motion] breath_period */
  --wash: color-mix(in srgb, var(--text) 4%, transparent);        /* [base.color] hover_fill */
  --wash-2: color-mix(in srgb, var(--text) 7%, transparent);      /* row_selected */
  --scrim: color-mix(in srgb, var(--ink) 82%, transparent);       /* scrim */
}

/* a surface's edge and chip are the accent over the line and the panel, resolved where the accent is set */
.tool, .layer, .feature, .door, .with, .compute, .inside, .plate, .world-hero, .tool-stage-object, .release, a.orb, .tool-orb {
  --edge: color-mix(in srgb, var(--accent) 40%, var(--line));
  --edge-hot: color-mix(in srgb, var(--accent) 60%, var(--line));
  --hot: color-mix(in srgb, var(--text) 4%, var(--panel));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--size-row-h-lg) + var(--space-6)); }
body {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-body);
  line-height: var(--lh);
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--text); margin: 0; font-weight: 400; letter-spacing: 0; }
::selection { background: color-mix(in srgb, var(--ring) 25%, transparent); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-6); top: calc(-1 * var(--size-row-h-lg) * 2); z-index: 50; min-height: var(--size-row-h-md); display: inline-flex; align-items: center; padding: 0 var(--space-6); border-radius: var(--radius-button); background: var(--text); color: var(--ink); font-size: var(--t-small); font-weight: 700; }
.skip:focus { top: var(--space-5); }

/* the voice of the chrome: an uppercase micro line, letter-spaced, in the accent (the apps' card title) */
.kicker { font-size: var(--t-micro); line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 var(--space-6); }
.mark { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 700; font-size: var(--t-title); letter-spacing: 0; color: var(--text); line-height: 1; }
.mark .two { font-size: .72em; }
.mark-star { width: var(--space-6); height: var(--space-6); color: var(--seal); flex: none; }
.arr { display: inline-block; transition: transform var(--motion-ui) var(--ease); }

/* the marks: the apps' logos (platform/marks.py), the glyph in the accent on its tinted chip */
.mark-svg { display: block; width: 100%; height: auto; color: var(--accent); }
.mark-chip { fill: color-mix(in srgb, currentColor 16%, var(--panel)); stroke: currentColor; stroke-opacity: .3; }

/* buttons: the apps' primary (filled in the accent, the ink as its label) and the hollow one */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--size-row-h-md);
  padding: 0 var(--space-6);
  border-radius: var(--radius-button);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: .02em;
  transition: background var(--motion-ui) var(--ease), color var(--motion-ui) var(--ease), border-color var(--motion-ui) var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--accent) 82%, var(--text)); border-color: color-mix(in srgb, var(--accent) 82%, var(--text)); }
.btn:hover .arr, .door:hover .arr { transform: translateX(var(--space-2)); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--wash); border-color: var(--accent); }

/* the header: clear over the hero, its ground and a rule once the page moves */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; border-bottom: 1px solid transparent; transition: background var(--motion-ui) var(--ease), border-color var(--motion-ui) var(--ease); }
.top.scrolled { background: color-mix(in srgb, var(--ink) 92%, transparent); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--size-row-h-lg); display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.top nav { display: flex; gap: var(--space-2); }
.top nav a { display: inline-flex; align-items: center; min-height: var(--size-row-h-sm); padding: 0 var(--space-5); border-radius: var(--radius-button); border: 1px solid transparent; font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: background var(--motion-ui) var(--ease), color var(--motion-ui) var(--ease), border-color var(--motion-ui) var(--ease); }
.top nav a:hover { background: var(--wash); color: var(--text); }
.top nav a[aria-current] { color: var(--text); background: var(--panel2); border-color: var(--line-strong); }

/* the hero */
.hero { position: relative; padding: calc(var(--size-row-h-lg) + var(--space-8) * 2) 0 var(--space-8); }
.hero-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(var(--space-7), 4vw, calc(var(--space-8) * 2)); align-items: center; }
.hero h1 { font-size: var(--t-display); line-height: 1.1; margin: 0 0 var(--space-5); text-wrap: balance; }
/* the line beneath the title (ruling 44: Replayable worlds.), in the house gold */
.hero-line { font-size: var(--t-h2); line-height: 1.15; color: var(--accent); margin: 0 0 var(--space-6); }
.lede { font-size: var(--t-label); line-height: 1.55; color: var(--muted); max-width: 40em; margin: 0 0 var(--space-7); }
.lede a, .door-line a, .arena-in a, .small a { color: var(--accent); border-bottom: 1px solid var(--line-strong); }
.lede a:hover, .arena-in a:hover { border-bottom-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0 0 var(--space-7); }
.status { display: flex; gap: var(--space-4); align-items: baseline; font-size: var(--t-micro); line-height: 1.6; color: var(--faint); max-width: 44em; margin: 0; }
.dot { flex: none; width: var(--space-4); height: var(--space-4); border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 var(--space-2) color-mix(in srgb, var(--pass) 16%, transparent); transform: translateY(-1px); animation: breathe var(--breath) ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 var(--space-4) color-mix(in srgb, var(--pass) 6%, transparent); } }

/* the world: the engine's render in a plate, its edge the accent over the line, its sky its own */
.hero-stage { display: grid; gap: var(--space-5); }
.world { margin: 0; }
.world-hero, .plate-media, .tool-stage-object {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-2);
}
.world-hero { aspect-ratio: 1512 / 982; isolation: isolate; }
.world-hero picture, .world-hero img, .world-hero video, .plate-media img, .plate-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world-video { opacity: 0; transition: opacity var(--motion-dissolve) var(--ease); }
.world-video.playing, .playing .world-video { opacity: 1; }

/* bands */
.band { padding: calc(var(--space-8) * 3) 0; position: relative; }
.band-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sec-head { max-width: 48em; margin: 0 0 calc(var(--space-8) + var(--space-6)); }
.sec-head h2, .closing h2 { font-size: var(--t-h2); line-height: 1.15; margin: 0 0 var(--space-5); text-wrap: balance; }
.sec-head > p:last-child { font-size: var(--t-label); color: var(--muted); max-width: 40em; margin: 0; }
.hint { color: var(--faint); }

/* the platform: four layers and the compute card */
.layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); margin: 0 0 var(--space-6); }
.layer { padding: var(--space-6); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-2); }
.layer-art { width: var(--size-row-h-lg); }
.layer h3 { font-size: var(--t-title); line-height: 1.25; margin: var(--space-5) 0 var(--space-3); }
.layer p { font-size: var(--t-body); line-height: 1.55; color: var(--muted); margin: 0; }
.compute {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: var(--space-7);
  padding: var(--space-8);
  background: var(--panel2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-2);
}
.compute h3 { font-size: var(--t-h2); line-height: 1.15; margin: 0 0 var(--space-5); }
.compute p { font-size: var(--t-body); line-height: 1.6; color: var(--muted); max-width: 40em; }
.compute-art .mark-svg { width: 36%; margin: 0 auto; }

/* the worlds: nine plates, the first a double */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.plate { margin: 0; position: relative; }
.plate:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.plate-media { aspect-ratio: 1512 / 982; }
.plate:first-child .plate-media { aspect-ratio: auto; flex: 1 1 auto; min-height: calc(var(--size-row-h-tile) * 3); }
.plate-media img, .plate-media video { transition: opacity var(--motion-dissolve) var(--ease); }
.plate-live { cursor: pointer; }
.plate-live .plate-media::after { content: "▶"; position: absolute; right: var(--space-4); bottom: var(--space-4); min-width: var(--size-row-h-sm); height: var(--size-row-h-sm); padding: 0 var(--space-3) 0 var(--space-4); border-radius: var(--radius-1); display: grid; place-items: center; font-size: var(--t-micro); color: var(--text); background: var(--scrim); border: 1px solid var(--line-strong); transition: opacity var(--motion-ui) var(--ease); }
.plate.playing .plate-media::after { opacity: 0; }
/* the caption: the number, the title and the kind on one line; the witness, the player's controls and the note each
   on their own under it */
.plate figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4); padding: var(--space-4) 0 0; }
.plate .num { margin: 0; color: var(--faint); }
.plate .title { flex: 1 1 auto; font-size: var(--t-label); color: var(--text); }
.plate .cat { font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 0 var(--space-3); line-height: var(--size-row-h-sm); border-radius: var(--radius-chip); border: 1px solid var(--line); }
.plate .note, .plate .witness { flex-basis: 100%; }
.plate .note { font-size: var(--t-small); color: var(--faint); margin: var(--space-1) 0 0; }

/* ── the home (design B, 2026-11-03): the world behind the whole page ──
   The StarLab toy's frame is fixed under everything (its backdrop mode: the view the whole frame, the controls docked
   low); the title and the line sit over it on a light surface, the acts' strip under them, and the gap after the acts is
   where the world shows through; the worlds and the platform band stand on the page's own ground. The stage frames
   another act's toy over the world. A frame's breathing placeholder is the toy's until it says ready. */
.home { position: relative; }
.backdrop { position: fixed; inset: 0; z-index: 0; background: var(--ink); }
.backdrop .toy-frame { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; }
.backdrop .toy-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.backdrop .stage-play { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; }
.backdrop .stage-play .word { left: var(--gutter); bottom: var(--space-7); }
.backdrop .toy-frame { transition: opacity var(--motion-dissolve) var(--ease); }
.stage-open .backdrop .toy-frame { opacity: .45; }
/* ★ the descent (2026-11-03, H2 of the planet home): the recording of the orbit view down to the crater lies over the
   engine's frame and is scrubbed by the scroll; past the seam it fades and the live engine is the picture (or, with no
   engine, the crater's loop under it). The stage no longer dims the descent's world: the acts strike it. */
.backdrop-descent .descent, .backdrop-descent .crater-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--motion-dissolve) var(--ease); }
.backdrop-descent .descent { z-index: 2; }
.backdrop-descent .crater-loop { z-index: 1; opacity: 0; }
.backdrop-descent .toy-frame { z-index: 0; }
.backdrop-descent.loop-on .crater-loop { opacity: 1; }
.backdrop-descent.loop-on .descent, .backdrop-descent.engine-on .descent { opacity: 0; pointer-events: none; }
/* reduced motion and Save-Data: no recording, the frame's still and its Play */
.backdrop-descent.still .descent, .backdrop-descent.still .crater-loop { display: none; }
/* over the console at the crater (H3) the recorded crater slides right of it, as the live camera does */
.backdrop-descent .crater-loop, .backdrop-descent .stage-play picture { transition: opacity var(--motion-dissolve) var(--ease), transform var(--motion-dissolve) var(--ease); }
.backdrop-descent.console-up .crater-loop, .backdrop-descent.console-up .stage-play picture { transform: translateX(19%) scale(1.4); }
/* the still's Play stands on the right: the tools and the tutorial hold the left column over the world */
.backdrop-descent .stage-play .word { left: auto; right: var(--gutter); }
.stage-open .backdrop-descent .toy-frame { opacity: 1; }
.act-lines .engine-door { margin-left: var(--space-4); color: var(--muted); }
.act-lines .engine-door:hover { color: var(--accent); }
/* ★ THE WORLD BEHIND THE HOME (2026-11-04: the icy moon, then a scene of three; media/house/world.js); its
   still (the hero world's picture) stands where the moon cannot be drawn (no WebGL2, no script) and under reduced
   motion the canvas draws still. The sky is the page's ground, so nothing else paints the backdrop. */
.backdrop-world { background: var(--ink); }
.backdrop-world .world-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.backdrop-world .world-still { position: absolute; inset: 0; display: none; }
.backdrop-world .world-still picture, .backdrop-world .world-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.backdrop-world.still .world-still { display: block; }
.backdrop-world.still .world-canvas { display: none; }
.backdrop-world .world-still picture { transition: transform var(--motion-dissolve) var(--ease); }
.backdrop-world.console-up .world-still picture { transform: translateX(19%) scale(1.4); }
/* a press on the moon strikes it, a drag turns the view: the gap (and the backdrop) take the pointer */
.backdrop-world.ready ~ .scene-gap { cursor: crosshair; touch-action: pan-y; }
.stage-open .backdrop-world { opacity: 1; }
/* the runway: the gap after the acts is where the scroll carries the camera down */
.descent-runway .scene-gap { min-height: 150vh; min-height: 150svh; }
/* ★ THE LANDING (2026-11-04): one number, --land (house.js: the shown runway fraction, 0 orbit to 1 landed), drives
   the hero card's dissolve and the band's arrival: the acts first, the console, then the act lines, each fading and
   rising over its own stretch of the last fifth, as the camera settles; scrolling back up plays it in reverse. With
   the script (the .js root) only: without it everything stands. */
.home.landing { --land: 0; }
.home.landing.descent-runway .hero-card { opacity: calc(1 - clamp(0, var(--land) / .25, 1)); transform: translateY(calc(-1 * var(--space-5) * clamp(0, var(--land) / .25, 1))); }
.home.landing[data-phase="descent"] .hero-card, .home.landing[data-phase="landed"] .hero-card { pointer-events: none; }
.home.landing.descent-runway [data-land-ui] .acts { --at: clamp(0, (var(--land) - .80) / .12, 1); }
.home.landing.descent-runway [data-land-ui] .console { --at: clamp(0, (var(--land) - .86) / .12, 1); }
.home.landing.descent-runway [data-land-ui] .act-lines { --at: clamp(0, (var(--land) - .90) / .10, 1); }
.home.landing.descent-runway [data-land-ui] :is(.acts, .console, .act-lines) { opacity: var(--at); transform: translateY(calc(var(--space-5) * (1 - var(--at)))); }
/* a still crater (reduced motion, Save-Data) has no descent to scroll: the runway is the old gap */
.descent-runway .backdrop-descent.still ~ .scene-gap { min-height: 42vh; min-height: 42svh; }
.descent-runway .backdrop-world.still ~ .scene-gap { min-height: 42vh; min-height: 42svh; }
/* ★ the console at the crater (H3 of the planet home, 2026-11-03): with the descent the tools come after the runway,
   over the landed world, in one column on the window's left (house.js slides the crater right of the middle as the
   band comes up): the strip of acts, the tutorial, the stage when a tool is open, the act's line */
.descent-runway .stage-band { min-height: 100vh; min-height: 100svh; padding: var(--space-7) 0 var(--space-8); }
.descent-runway .stage-band .band-in > * { max-width: var(--console); }
.console { display: grid; gap: var(--space-5); margin: 0 0 var(--space-5); }
.console .stage { margin: 0; }
/* ★ an open tool takes the band's width (2026-11-04: "more horizontal space filling" for StarBoard's editing): the
   stage leaves the console's column for the band's, the world still behind it */
.descent-runway .console > .stage:not([hidden]) { width: calc(min(var(--max), 100vw) - 2 * var(--gutter)); max-width: none; }
.tutorial { display: grid; gap: var(--space-3); }
.tutorial-frame { position: relative; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-2); overflow: hidden; background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tutorial-frame iframe { display: block; width: 100%; height: var(--tutorial-h); border: 0; }
.tutorial-frame .stage-play { display: grid; place-items: center; aspect-ratio: auto; max-height: none; min-height: var(--tutorial-h); }
.tutorial-frame .stage-play .word { position: static; }
.tutorial-note { display: none; margin: 0; padding: var(--space-3) var(--space-5); border-radius: var(--radius-button); background: var(--scrim); color: var(--muted); font-size: var(--t-small); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tutorial[data-world="wait"] .tutorial-note[data-note="wait"], .tutorial[data-world="still"] .tutorial-note[data-note="still"] { display: block; }
/* ★ TAKE THE WORLD (H4): under the tutorial while the world is live; the link once the engine wrote the cart */
.take-world { display: none; gap: var(--space-3); align-items: center; flex-wrap: wrap; padding: var(--space-3) var(--space-5); border-radius: var(--radius-button); background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tutorial[data-world="live"] .take-world { display: flex; }
.take-btn { font: inherit; font-size: var(--t-small); font-weight: 700; min-height: var(--size-row-h-md); padding: 0 var(--space-5); border: 1px solid var(--line-strong); border-radius: var(--radius-button); background: var(--wash); color: var(--text); cursor: pointer; }
.take-btn:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.take-world[data-state="taking"] .take-btn { opacity: .6; cursor: progress; }
.take-link { display: none; color: var(--accent); font-size: var(--t-small); font-weight: 700; }
.take-world[data-state="taken"] .take-link { display: inline; }
.take-size { color: var(--muted); font-weight: 400; }
.take-line { flex-basis: 100%; margin: 0; color: var(--muted); font-size: var(--t-micro); }
.hero-cue { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); padding: var(--space-3) var(--space-5); border: 1px solid var(--line-strong); border-radius: var(--radius-button); background: var(--scrim); color: var(--text); font-size: var(--t-small); font-weight: 700; letter-spacing: .02em; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-cue .arr { display: inline-block; transition: transform var(--motion-ui) var(--ease); }
.hero-cue:hover .arr { transform: translateY(var(--space-2)); }
.home > .hero-band, .home > .stage-band, .home > .worlds-band, .home > .platform, .home ~ .foot { position: relative; z-index: 1; }
.hero-band { padding: calc(var(--size-row-h-lg) + var(--space-7)) 0 0; pointer-events: none; }
.hero-card { display: inline-block; max-width: 36em; padding: var(--space-6) var(--space-7); border-radius: var(--radius-2); background: var(--scrim); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: auto; }
.hero-card h1 { font-size: var(--t-display); line-height: 1.1; margin: 0 0 var(--space-4); text-wrap: balance; }
.hero-card .hero-line { margin: 0; }
.scene-gap { min-height: 42vh; min-height: 42svh; pointer-events: none; }
.worlds-band, .home .platform { background: var(--ink); }
.home .worlds-band { padding-top: calc(var(--space-8) * 2); border-top: 1px solid var(--line); }
.worlds-band .sec-head { margin-bottom: var(--space-7); }

/* the acts: a tab a tool, in its accent when chosen; the stage over the world; the chosen act's line */
.stage-band { padding: var(--space-5) 0 0; pointer-events: none; }
.stage-band .band-in > * { pointer-events: auto; }
.acts { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-5); }
.acts [role="tab"] { font: inherit; display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--size-row-h-md); padding: 0 var(--space-5); border: 1px solid var(--line-strong); border-radius: var(--radius-button); background: var(--scrim); color: var(--muted); cursor: pointer; font-size: var(--t-small); font-weight: 700; letter-spacing: .02em; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background var(--motion-ui) var(--ease), color var(--motion-ui) var(--ease), border-color var(--motion-ui) var(--ease); }
.acts [role="tab"]:hover { background: var(--wash); color: var(--text); }
.acts [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.acts .mark-svg { width: var(--space-6); height: var(--space-6); flex: none; }
.stage { position: relative; margin: 0 0 var(--space-5); background: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius-2); overflow: hidden; }
.stage[hidden] { display: none; }
.toy-frame { position: relative; z-index: 2; margin-top: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-2); background: var(--ink); overflow: hidden; }
.toy-frame[hidden] { display: none; }
.toy-frame iframe { display: block; width: 100%; height: calc(var(--size-row-h-tile) * 7); max-height: 80vh; border: 0; background: var(--ink); }
.stage-frame { margin: 0; border: 0; border-radius: 0; }
.stage-frame iframe { height: calc(var(--size-row-h-tile) * 9); min-height: 60vh; max-height: 90vh; }
.stage-play { position: relative; display: block; aspect-ratio: 16 / 9; max-height: 70vh; overflow: hidden; color: var(--text); }
.stage-play picture, .stage-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stage-play .word { position: absolute; left: var(--space-6); bottom: var(--space-6); display: inline-flex; align-items: center; min-height: var(--size-row-h-md); padding: 0 var(--space-6); border-radius: var(--radius-button); background: var(--scrim); border: 1px solid var(--line-strong); font-size: var(--t-small); font-weight: 700; transition: background var(--motion-ui) var(--ease), border-color var(--motion-ui) var(--ease); }
.stage-play:hover .word { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.toy-frame.open .stage-play { display: none; }
.toy-frame.open:not(.ready)::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: breathe-ink var(--breath) ease-in-out infinite; pointer-events: none; }
.toy-frame.open.ready::after { content: none; }
@keyframes breathe-ink { 50% { opacity: .6; } }
.act-lines { list-style: none; margin: 0; padding: 0; }
.act-lines li { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-5); padding: var(--space-3) var(--space-5); border-radius: var(--radius-button); background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: var(--t-label); }
.act-lines li[hidden] { display: none; }
.act-lines .tool-link { color: var(--text); }
.act-lines .explore { font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.act-lines .explore:hover .arr { transform: translateX(var(--space-2)); }
@media (max-width: 640px) {
  .hero-card { max-width: none; }
  .scene-gap { min-height: 34vh; min-height: 34svh; }
  .acts { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--space-2); }
  .stage-frame iframe { min-height: 70vh; }
  /* ★ THE CONSOLE ON A PHONE (M of the phones program, 2026-11-05): the console's own screen, not a page shrunk.
     The top bar's links stand the bar's height (a thumb's reach); the hero's card is type on the world under a fade,
     no box; once the landing is under way the acts are a strip pinned under the bar (type with an underline in the
     accent, no chips) and the console a SHEET pinned to the foot (data-sheet on main: peek, half, full; its bar the
     grip, the act's name, Explore, and the status line in the 5×7 face), the world the whole screen between them,
     an open tool filling the sheet in the tutorial's place; scrolled past the band (.past, house.js) both slide off
     and the worlds and the platform are pages as before. Wide screens keep design B. */
  .top nav a, .top .mark { min-height: var(--size-row-h-lg); }
  .hero-cue { min-height: var(--size-row-h-lg); }
  .descent-runway .hero-band { background: linear-gradient(var(--scrim), transparent); padding-bottom: var(--space-8); }
  .descent-runway .hero-card { padding: var(--space-6) 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .descent-runway .stage-band { padding: 0; touch-action: pan-y; }
  .descent-runway .stage-band .band-in > * { max-width: none; }
  .descent-runway .act-lines { display: none; }
  /* (a positive phase, never :not(orbit): before house.js sets one the console would stand fixed on screen for a
     frame and the tutorial's near-observer would mount its board, 68 KB on the first visit) */
  .home.landing[data-phase="descent"] .acts, .home.landing[data-phase="landed"] .acts { position: fixed; top: var(--size-row-h-lg); left: 0; right: 0; z-index: 30; margin: 0; padding: var(--space-2) var(--gutter); gap: var(--space-2); scrollbar-width: none; }
  .home.landing[data-phase="descent"] .acts::-webkit-scrollbar, .home.landing[data-phase="landed"] .acts::-webkit-scrollbar { display: none; }
  .descent-runway .acts [role="tab"] { min-height: calc(var(--size-row-h-md) + var(--space-5)); padding: 0 var(--space-4); border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; white-space: nowrap; }
  .descent-runway .acts [role="tab"][aria-selected="true"] { background: none; color: var(--accent); border-bottom-color: var(--accent); }
  .home.landing[data-phase="descent"] .console, .home.landing[data-phase="landed"] .console { --sheet: 42svh; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; max-width: none; height: var(--sheet); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0; background: var(--scrim); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: height var(--motion-camera) var(--ease), transform var(--motion-camera) var(--ease), opacity var(--motion-ui) var(--ease); }
  .home.landing[data-sheet="peek"][data-phase="descent"] .console, .home.landing[data-sheet="peek"][data-phase="landed"] .console { --sheet: calc(var(--size-row-h-lg) + env(safe-area-inset-bottom)); }
  .home.landing[data-sheet="full"][data-phase="descent"] .console, .home.landing[data-sheet="full"][data-phase="landed"] .console { --sheet: calc(100svh - var(--size-row-h-lg)); }
  .home.landing.descent-runway.past [data-land-ui] .acts { transform: translateY(-150%); opacity: 0; pointer-events: none; }
  .home.landing.descent-runway.past [data-land-ui] .console { transform: translateY(100%); pointer-events: none; }
  .descent-runway .console .sheet-bar { display: flex; align-items: center; gap: var(--space-4); min-height: var(--size-row-h-lg); padding: 0 var(--gutter); border-bottom: 1px solid var(--line); touch-action: none; }
  .descent-runway .console .tutorial, .descent-runway .console > .stage { grid-row: 2; }
  .sheet-grip { flex: none; width: var(--size-row-h-lg); height: var(--size-row-h-lg); margin-left: calc(-1 * var(--space-4)); border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
  .sheet-grip .grip { width: var(--space-8); height: var(--space-2); border-radius: var(--radius-1); background: var(--line-strong); }
  .sheet-name { font-size: var(--t-small); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sheet-explore { display: inline-flex; align-items: center; min-height: calc(var(--size-row-h-md) + var(--space-5)); font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
  .hud { margin-left: auto; color: var(--pass); image-rendering: pixelated; }
  .descent-runway .console .tutorial { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 0; min-height: 0; }
  .descent-runway .console .tutorial-frame { min-height: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .descent-runway .console .tutorial-frame iframe { height: 100%; min-height: 0; }
  .descent-runway .console .tutorial-frame .stage-play { min-height: 0; height: 100%; }
  .descent-runway .console .tutorial-note, .descent-runway .console .take-world { border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: var(--space-3) var(--gutter); }
  .take-btn { min-height: calc(var(--size-row-h-md) + var(--space-5)); }
  .home.stage-open .console .tutorial { display: none; }
  .descent-runway .console > .stage:not([hidden]) { width: auto; min-height: 0; margin: 0; border: 0; border-radius: 0; }
  .descent-runway .console .stage-frame iframe { height: 100%; min-height: 0; max-height: none; }
}
.sheet-bar { display: none; }

/* the footer */
.foot { border-top: 1px solid var(--line); background: var(--panel); }
.foot-in { max-width: var(--max); margin: 0 auto; padding: var(--space-8) var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: var(--space-6) var(--space-8); align-items: start; }
.foot-mark { display: flex; flex-direction: column; gap: var(--space-4); }
.foot-mark p { margin: 0; font-size: var(--t-small); color: var(--faint); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; }
.foot nav a { display: inline-flex; align-items: center; min-height: var(--size-row-h-sm); padding: 0 var(--space-4); border-radius: var(--radius-button); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot nav a:hover { background: var(--wash); color: var(--text); }
.copy { grid-column: 1 / -1; margin: 0; font-size: var(--t-micro); letter-spacing: .06em; color: var(--faint); }

/* developers, play, lab, the dispatch: a small hero and a grid of doors */
.hero-small { padding: calc(var(--size-row-h-lg) + var(--space-8) * 2) 0 var(--space-6); }
.hero-small .hero-in { grid-template-columns: minmax(0, 1fr); }
.hero-small h1 { font-size: var(--t-h1); line-height: 1.15; margin: 0 0 var(--space-5); }
.hero-small .lede { max-width: 44em; }
.doors-band { padding-top: var(--space-7); }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin: 0 0 var(--space-8); }
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: calc(var(--size-row-h-tile) + var(--space-8));
  padding: var(--space-6) var(--space-6) var(--space-8);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-2);
  transition: background var(--motion-ui) var(--ease), border-color var(--motion-ui) var(--ease);
}
.door:hover { background: var(--hot); border-color: var(--edge-hot); }
.door-name { font-size: var(--t-label); color: var(--text); }
.door-line { font-size: var(--t-small); color: var(--faint); line-height: 1.5; }
.door .arr { position: absolute; left: var(--space-6); bottom: var(--space-5); color: var(--accent); }
.small { font-size: var(--t-micro); color: var(--faint); max-width: 60em; }
/* a tool page's look (2026-11-12): the tool's toy in use, a picture from the toys' own test, and the way to the toy */
.look-band { padding: 0 0 var(--space-8); }
.look { margin: 0; }
.look picture, .look img { display: block; width: 100%; height: auto; }
.look img { border: 1px solid var(--line); border-radius: var(--radius-2); }
.look figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3) var(--space-6); margin-top: var(--space-5); font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.look .explore { font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.look .explore:hover .arr { transform: translateX(var(--space-2)); }
/* the developers' quickstart (2026-11-11): three numbered steps, each a command and the answer that came back. A
   command wraps inside its box (no sideways scroll on a phone); a wrapped line still copies as one. */
.quick-band { padding-top: var(--space-7); }
.quick-band .sec-head { margin-bottom: var(--space-7); }
.quick { list-style: none; counter-reset: quick; display: grid; gap: var(--space-7); max-width: 60em; margin: 0 0 var(--space-6); padding: 0; }
.quick > li { counter-increment: quick; min-width: 0; }
.quick h3 { font-size: var(--t-label); font-weight: inherit; color: var(--text); margin: 0 0 var(--space-3); }
.quick h3::before { content: counter(quick) ". "; color: var(--accent); }
.quick p { font-size: var(--t-small); line-height: 1.5; color: var(--muted); max-width: 44em; margin: 0 0 var(--space-4); }
.quick p.resp { font-size: var(--t-micro); color: var(--faint); margin-bottom: var(--space-3); }
.quick p.fact { color: var(--text); }
.quick p a { color: var(--accent); border-bottom: 1px solid currentColor; }
.quick pre { font-family: var(--mono); font-size: var(--t-small); line-height: 1.5; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-2); padding: var(--space-5) var(--space-6); margin: 0 0 var(--space-4); white-space: pre-wrap; overflow-wrap: anywhere; }
.quick pre.out { color: var(--muted); background: none; }

/* a tool's page */
.tool-hero .hero-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.tool-hero h1 { font-size: var(--t-display); }
.tool-hero .kicker a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.tool-hero .kicker a:hover { color: var(--text); border-bottom-color: var(--accent); }
.tool-hero .dot { background: var(--accent); box-shadow: 0 0 0 var(--space-2) color-mix(in srgb, var(--accent) 18%, transparent); }
.tool-stage { display: grid; gap: var(--space-5); }
.tool-stage-object { aspect-ratio: 1512 / 982; display: grid; place-items: center; }
.tool-object { width: 36%; }
.tool-orb { display: inline-flex; align-items: center; gap: var(--space-4); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tool-orb .mark-svg { width: var(--size-row-h-md); height: var(--size-row-h-md); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.feature { padding: var(--space-6); background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-2); }
.feature .num { color: var(--accent); }
.feature h3 { font-size: var(--t-title); line-height: 1.25; margin: 0 0 var(--space-4); }
.feature p { font-size: var(--t-body); line-height: 1.6; color: var(--muted); margin: 0; }

.inside-band { padding-top: 0; }
.inside {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(var(--space-7), 4vw, calc(var(--space-8) * 2));
  align-items: start;
  padding: var(--space-8);
  background: var(--panel2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-2);
}
.inside h2 { font-size: var(--t-h2); line-height: 1.15; margin: 0 0 var(--space-5); }
.inside-text p { font-size: var(--t-body); line-height: 1.65; color: var(--muted); max-width: 40em; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: var(--t-micro); line-height: 1.7; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.spec dd { margin: 0; color: var(--text); font-size: var(--t-body); line-height: 1.5; }

/* the release row (the releases programme's MVR bar, item 4): the build's stage, its record and the downloads */
.release-band { padding-top: 0; }
.release { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5) var(--space-7); align-items: baseline; padding: var(--space-6) var(--space-7); background: var(--panel); border: 1px solid var(--edge); border-radius: var(--radius-2); }
.release .kicker { margin: 0; }
.release-stage { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; margin: 0; font-size: var(--t-small); color: var(--muted); }
.stage-badge { display: inline-block; padding: 0 var(--space-3); line-height: var(--size-row-h-sm); border-radius: var(--radius-1); font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--tone, var(--seal)); background: color-mix(in srgb, var(--tone, var(--seal)) 18%, transparent); }
.stage-badge[data-stage="experimental"] { --tone: var(--seal); }
.stage-badge[data-stage="playtest"] { --tone: var(--ring); }
.stage-badge[data-stage="release-candidate"], .stage-badge[data-stage="release"] { --tone: var(--pass); }
.release-downloads { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0; }
.release-record { grid-column: 2; margin: 0; font-size: var(--t-micro); color: var(--faint); }
.release-record code { color: var(--text); }

.withs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.with {
  display: grid;
  grid-template-columns: var(--size-row-h-lg) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: var(--space-1) var(--space-5);
  align-items: center;
  padding: var(--space-5);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: var(--radius-2);
  transition: background var(--motion-ui) var(--ease), border-color var(--motion-ui) var(--ease);
}
.with:hover { background: var(--hot); border-color: var(--edge-hot); }
.with-art { grid-row: span 2; }
.with-name { font-size: var(--t-label); color: var(--text); align-self: end; }
.with-name::after { content: " →"; color: var(--accent); }
.with-line { font-size: var(--t-small); line-height: 1.5; color: var(--faint); align-self: start; }

.pager { border-top: 1px solid var(--line); }
.pager .band-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-8); }
.pager .pager-in { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); padding: var(--space-8) var(--gutter); }
.pager-prev, .pager-next { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) 0; }
.pager-next { align-items: flex-end; text-align: right; }
.pager .kicker { margin: 0; color: var(--faint); }
.pager-name { font-size: var(--t-h2); line-height: 1.15; color: var(--text); transition: transform var(--motion-ui) var(--ease); }
.pager-prev:hover .pager-name { transform: translateX(calc(-1 * var(--space-2))); }
.pager-next:hover .pager-name { transform: translateX(var(--space-2)); }
.pager-all { display: inline-flex; align-items: center; min-height: var(--size-row-h-md); padding: 0 var(--space-6); border-radius: var(--radius-button); border: 1px solid var(--line-strong); font-size: var(--t-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: background var(--motion-ui) var(--ease), color var(--motion-ui) var(--ease); }
.pager-all:hover { background: var(--wash); color: var(--text); }

/* the Arena and the dispatch (tools/arena_pages.py, tools/dispatch_pages.py): tables of rows, a board, a command, prose */
.arena .arena-in { max-width: 72rem; margin: 0 auto; padding: var(--space-7) var(--gutter); }
.arena .arena-main { padding-bottom: var(--space-8); }
.arena-in h2 { font-size: var(--t-title); line-height: 1.25; margin: var(--space-8) 0 var(--space-4); }
.arena-in h3 { font-size: var(--t-label); margin: var(--space-7) 0 var(--space-3); }
.arena-in p, .arena-in li { color: var(--text); max-width: 72ch; }
.arena-in ul, .arena-in ol { padding-left: var(--space-7); }
.arena-in code { font-size: .95em; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-1); padding: 0 var(--space-2); }
.arena table.arena { width: 100%; border-collapse: collapse; margin: var(--space-6) 0 var(--space-4); font-size: var(--t-small); }
.arena table.arena th, .arena table.arena td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.arena table.arena th { font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.arena table.arena td.num, .arena table.arena th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.arena table.arena td.pol { font-weight: 700; }
.arena table.arena tr.house td { color: var(--muted); }
.arena table.arena a.mono, .arena .mono { font-size: var(--t-small); }
.arena .board-fig { margin: var(--space-6) 0 0; }
.arena pre.board { font-size: var(--t-label); line-height: 1.25; padding: var(--space-6) var(--space-7); border-radius: var(--radius-2); background: var(--panel); border: 1px solid var(--line); display: inline-block; min-width: 12rem; white-space: pre; overflow-x: auto; max-width: 100%; }
.arena pre.cmd { font-size: var(--t-small); padding: var(--space-5) var(--space-6); border-radius: var(--radius-2); background: var(--panel); border: 1px solid var(--line); overflow-x: auto; }
.arena .tape { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter) var(--space-8); }
.arena .arena-rules ol { padding-left: var(--space-7); }
.arena .arena-rules li { margin: var(--space-3) 0; }
.arena .doors .door .small { display: block; margin-top: var(--space-3); }
.arena .doors-band { padding: var(--space-7) var(--gutter) 0; max-width: var(--max); margin: 0 auto; }

/* motion: a hero paints at once and rises by CSS alone; the rest rises when the script sees it on screen */
.hero-copy { animation: arrive var(--motion-dissolve) var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(var(--space-5)); } }
.tool-main .band { padding: calc(var(--space-8) * 2) 0; }
.tool-main .inside-band, .tool-main .release-band { padding-top: 0; }
.js [data-reveal] { opacity: 0; transform: translateY(var(--space-5)); transition: opacity var(--motion-camera) var(--ease), transform var(--motion-camera) var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .layers > :nth-child(4n+2), .js .plates > :nth-child(3n+2), .js .doors > :nth-child(3n+2), .js .features > :nth-child(3n+2), .js .withs > :nth-child(3n+2) { transition-delay: calc(var(--motion-ui) / 2); }
.js .layers > :nth-child(4n+3), .js .plates > :nth-child(3n), .js .doors > :nth-child(3n), .js .features > :nth-child(3n), .js .withs > :nth-child(3n) { transition-delay: var(--motion-ui); }
.js .layers > :nth-child(4n) { transition-delay: calc(var(--motion-ui) * 1.5); }

/* smaller screens */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .withs { grid-template-columns: minmax(0, 1fr); }
  .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .band { padding: calc(var(--space-8) * 2) 0; }
  .hero { padding-top: calc(var(--size-row-h-lg) + var(--space-8)); }
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { max-width: 40em; width: 100%; }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compute, .inside { grid-template-columns: minmax(0, 1fr); }
  .tool-hero .hero-in { grid-template-columns: minmax(0, 1fr); }
  .tool-stage { max-width: 32em; width: 100%; }
  .compute-art { order: -1; }
  .compute-art .mark-svg { width: var(--size-row-h-tile); margin: 0; }
}
/* ★ A THUMB'S REACH (M of the phones program, 2026-11-05): on a coarse pointer every control stands 44 px (the row
   height and a step: the apps' phone tier, love-shared/web/catalog.css), whatever the screen's width */
@media (pointer: coarse) {
  .btn, .chip, .take-btn, .hero-cue, .acts [role="tab"], .plates .plate.world .sl-run, .foot nav a, .top nav a, .top .mark, .pager a, .explore, .tool-link, .door, .with, .sl-engine, .tool-hero .kicker a { min-height: calc(var(--size-row-h-md) + var(--space-5)); }
  .foot nav a, .top nav a, .pager a, .explore, .tool-link, .sl-engine { display: inline-flex; align-items: center; }
}
@media (max-width: 640px) {
  /* ★ THE DENSITY (M, 2026-11-05): the apps' own scale on a phone (body 14, rows 32, the bands a step apart), not the
     desk's at 1.4; chrome truncates where words would wrap (the launcher's rule) */
  :root { --t-micro: 12px; --t-small: 13px; --t-body: 14px; --t-label: 14px; --t-title: 18px; --t-h2: 24px; --t-h1: 26px; --t-display: 32px; --lh: 1.45; }
  .band { padding: var(--space-8) 0; }
  .sec-head { margin-bottom: var(--space-6); }
  .sec-head h2 { margin-bottom: var(--space-3); }
  .hero-small { padding-top: calc(var(--size-row-h-lg) + var(--space-7)); }
  .layer, .feature, .door { padding: var(--space-5); }
  .layers, .features, .doors, .withs { gap: var(--space-3); }
  .inside, .compute { padding: var(--space-5); gap: var(--space-5); }
  .release { padding: var(--space-5); }
  .with { padding: var(--space-4); }
  .pager .band-in { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .foot-in { padding: var(--space-6) var(--gutter); }
  /* the worlds: a strip of plates that snaps, one and a sliver at a time (the loop on a tap, never a hover) */
  .plates { display: flex; grid-template-columns: none; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--space-4); scrollbar-width: none; }
  .plates::-webkit-scrollbar { display: none; }
  .plate { flex: 0 0 84%; scroll-snap-align: start; }
  .plate:first-child { display: block; }
  .plate:first-child .plate-media { aspect-ratio: 1512 / 982; height: auto; min-height: 0; }
  .plate figcaption { gap: var(--space-2) var(--space-3); }
  .plate .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .plate .note { display: none; }
  .plate .witness { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top nav a { padding: 0 var(--space-4); }
  .layers, .doors, .features { grid-template-columns: minmax(0, 1fr); }
  .pager .band-in { grid-template-columns: 1fr 1fr; }
  .pager-all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .spec { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .plates { grid-template-columns: minmax(0, 1fr); }
  .plate:first-child { grid-column: auto; grid-row: auto; }
  .plate:first-child .plate-media { aspect-ratio: 1512 / 982; height: auto; min-height: 0; }
  .release { grid-template-columns: minmax(0, 1fr); }
  .release-downloads, .release-record { grid-column: 1; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot nav { justify-content: flex-start; margin-left: calc(-1 * var(--space-4)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── a world plate's player (the reference sim; media/world-rt; M3 of the cartridge program) ── */
.plate.world .sl-slot { display: none; }
.plate.world.running .sl-slot { display: block; }
.plate.world.running .plate-media > picture, .plate.world.running .plate-media > video { display: none; }
.plate.world .witness { display: block; font-size: var(--t-micro); color: var(--muted); margin-top: var(--space-2); }
.plate.world .witness.refused { color: var(--faint); }
.plate.world .sl-run { font: inherit; font-size: var(--t-micro); min-height: var(--size-row-h-sm); padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-button); background: var(--panel2); color: var(--text); cursor: pointer; }
.plate.world .sl-engine { font-size: var(--t-micro); color: var(--accent); }
.plate.world .sl-run:hover { background: var(--hot); }
.plate.world .sl-run:disabled { opacity: 0.6; cursor: default; }
.plate.world .sl-player { margin-top: 0; }
/* /play/<record> (M4): the player alone on one cart; the cover holds the frame until the module draws */
.play-band { padding: var(--space-4) 0 var(--space-8); }
.play-world { margin: 0; max-width: var(--max); }
.play-world .play-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-2); }
.play-world .play-cover[hidden] { display: none; }
.play-world .witness { display: block; font-size: var(--t-micro); color: var(--muted); margin-top: var(--space-3); min-height: 1.4em; }
.play-world .witness.refused { color: var(--faint); }
.play-world .sl-player { margin-top: 0; }

/* ★ the lab (W5 of the web edition program; an app since 2026-10-19): the engine's own stylesheet (media/starlab-web/
   lab.css, staged with lab.js) lays out the world and its dock; the page only places it — a framed panel on a wide
   screen, and on a phone the whole screen under the header, the page's words after it */
.lab-band .lab-app { --lab-h: min(78vh, calc(var(--size-row-h-tile) * 8)); margin: 0 0 var(--space-6); }
.lab-band .lab-fallback:not([hidden]) { margin: 0 0 var(--space-6); }
.sl-engine { margin-left: var(--space-4); }
@media (max-width: 760px) {
  main.lab { display: flex; flex-direction: column; }
  main.lab .lab-band { order: -1; padding: calc(var(--size-row-h-lg) + var(--space-6)) 0 0; }
  main.lab .lab-band .band-in { padding: 0; }
  main.lab .lab-band .lab-app { --lab-h: calc(100svh - var(--size-row-h-lg) - var(--space-6)); --lab-radius: 0; margin: 0; }
  main.lab .lab-note, main.lab .lab-fallback { padding: var(--space-5) var(--gutter) 0; }
  main.lab .hero-small { padding: var(--space-7) 0 var(--space-4); }
}
