/* GENERATED by site/tools/assemble.mjs from css/base.css and css/sections/*.css. Do not edit. */

/* ==== base.css ==== */
/*
 * base.css: the Nihil site's foundation. Tokens (the app's own, from h-tokens.css), the three faces, the reset,
 * the layout primitives and the shared components every section is built from. Sections add their own styles in
 * css/sections/NN-<name>.css, scoped under their section id; the assembler concatenates everything into site.css.
 *
 * Order: fonts > tokens > hue mapping > reset > type scale > layout > texture > components > header/footer >
 * reveals > reduced motion > responsive.
 */

/* ───────────────────────────── fonts: self-hosted ───────────────────────── */
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Serif';
  src: url('../fonts/GeistSerifVF.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ───────────────────────────── tokens ───────────────────────────────────── */
:root {
  color-scheme: dark;

  /* ground and surfaces (near black, never tinted) */
  --h-ground: #0c0d0f;
  --h-surface-1: #101114;
  --h-surface-2: #111215;
  --h-surface-3: #17181c;
  --h-well: #08090a;

  /* ink */
  --h-ink: #e9e8e4;
  --h-ink-strong: #ffffff;
  --h-ink-dim: #c9cbd0;
  --h-ink-faint: #a9abb0;
  --h-ink-quiet: #8d9096;

  /* neutral lines */
  --h-line-1: #26292e;
  --h-line-2: #2a2d32;
  --h-line-3: #34373d;
  --h-line-hover: #6b6e75;
  --h-stroke: 1.5px;
  --h-stroke-strong: 2px;

  /* spaces */
  --h-space-atlas: #c79bff;
  --h-space-corpus: #ffb547;
  --h-space-replica: #47c8ff;
  --h-space-memoria: #7ee0a8;

  /* kinds: icons are always lit in these */
  --h-kind-system: #ffb547;
  --h-kind-assembly: #ffd166;
  --h-kind-board: #2ee6d6;
  --h-kind-part: #ff8ccf;
  --h-kind-harness: #7ab8ff;
  --h-kind-firmware: #c79bff;
  --h-kind-sim: #47c8ff;
  --h-kind-proof: #22e07a;
  --h-kind-file: #a9abb0;
  --h-kind-library: #e9e8e4;

  /* verdicts */
  --h-pass: #22e07a;
  --h-pass-ink: #6dffb0;
  --h-fail: #ff4d4d;
  --h-fail-ink: #ff8a8a;

  /* texture */
  --h-grain: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.4px) 0 0 / 4px 4px;
  --h-hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  --h-ribs: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
  --h-stage-grid: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 110px 110px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 110px 110px;

  /* shape */
  --h-r-control: 10px;
  --h-r-chip: 999px;
  --h-r-row: 12px;
  --h-r-card: 20px;
  --h-r-panel: 26px;

  /* motion */
  --h-spring: cubic-bezier(0.2, 0.9, 0.25, 1.25);
  --h-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --h-dur-fast: 0.2s;
  --h-dur: 0.35s;
  --h-dur-slow: 0.45s;

  /* type */
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-serif: 'Geist Serif', Georgia, 'Times New Roman', serif;

  /* the section's hue: data-hue on a section sets it; the default is ink so nothing is ever invisible */
  --hue: var(--h-ink);
  --hue-soft: color-mix(in srgb, var(--hue) 18%, transparent);
  --hue-glow: color-mix(in srgb, var(--hue) 30%, transparent);
  --hue-faint: color-mix(in srgb, var(--hue) 9%, transparent);

  /* layout */
  --container: 1240px;
  --gutter: 24px;
  --section: 160px;
  --header-h: 64px;
  --pin-top: 96px;
}

/* ───────────────────────────── hues by meaning ──────────────────────────── */
/* The derived tints are re-evaluated on every element, not inherited from :root, so a section's data-hue (or an
   inline --hue) changes them too. Three custom properties per element is cheap; a grey bloom everywhere is not. */
* {
  --hue-soft: color-mix(in srgb, var(--hue) 18%, transparent);
  --hue-glow: color-mix(in srgb, var(--hue) 30%, transparent);
  --hue-faint: color-mix(in srgb, var(--hue) 9%, transparent);
}
[data-hue='system'] { --hue: var(--h-kind-system); }
[data-hue='assembly'] { --hue: var(--h-kind-assembly); }
[data-hue='board'] { --hue: var(--h-kind-board); }
[data-hue='part'] { --hue: var(--h-kind-part); }
[data-hue='harness'] { --hue: var(--h-kind-harness); }
[data-hue='firmware'] { --hue: var(--h-kind-firmware); }
[data-hue='sim'] { --hue: var(--h-kind-sim); }
[data-hue='proof'] { --hue: var(--h-kind-proof); }
[data-hue='file'] { --hue: var(--h-kind-file); }
[data-hue='library'] { --hue: var(--h-kind-library); }
[data-hue='atlas'] { --hue: var(--h-space-atlas); }
[data-hue='corpus'] { --hue: var(--h-space-corpus); }
[data-hue='replica'] { --hue: var(--h-space-replica); }
[data-hue='memoria'] { --hue: var(--h-space-memoria); }
[data-hue='pass'] { --hue: var(--h-pass); }
[data-hue='fail'] { --hue: var(--h-fail); }
[data-hue='ink'] { --hue: var(--h-ink); }

/* ───────────────────────────── reset ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--h-ground);
  color: var(--h-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--h-grain), var(--h-ground);
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
img, svg, video, canvas, picture {
  display: block;
  max-width: 100%;
}
img, video {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
code, kbd, pre, samp {
  font-family: var(--font-mono);
  font-size: 0.94em;
}
::selection {
  background: color-mix(in srgb, var(--h-ink) 22%, transparent);
  color: var(--h-ink-strong);
}
:focus-visible {
  outline: 2px solid var(--h-ink-strong);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--h-ink-strong);
  color: var(--h-ground);
  border-radius: var(--h-r-control);
  font-family: var(--font-mono);
  font-size: 13px;
}
.skip:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* squircles where the engine has them */
@supports (corner-shape: squircle) {
  .sq {
    corner-shape: squircle;
  }
}

/* ───────────────────────────── type scale ───────────────────────────────── */
.t-hero {
  font-family: var(--font-sans);
  font-size: clamp(56px, 8.5vw, 128px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--h-ink-strong);
  text-wrap: balance;
}
.t-h2 {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--h-ink-strong);
  text-wrap: balance;
}
.t-h3 {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--h-ink-strong);
  text-wrap: balance;
}
.t-lead {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--h-ink-dim);
  text-wrap: pretty;
}
.t-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--h-ink);
  text-wrap: pretty;
}
.t-ui {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.t-small {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--h-ink-faint);
}
.t-meta,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-ink-faint);
}
.t-num {
  font-family: var(--font-sans);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--hue);
}
.t-serif {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.measure {
  max-width: 64ch;
}
em.hue,
.hue {
  font-style: normal;
  color: var(--hue);
}
.pass {
  color: var(--h-pass);
}
.fail {
  color: var(--h-fail);
}
.mono {
  font-family: var(--font-mono);
}
.tabular {
  font-variant-numeric: tabular-nums;
}

/* the eyebrow with its hairline, as a section opener */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--hue);
  opacity: 0.9;
}
.eyebrow--plain::before {
  display: none;
}

/* ───────────────────────────── layout ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide {
  max-width: 1480px;
}
.section {
  position: relative;
  padding-block: calc(var(--section) / 2);
}
.section:first-of-type {
  padding-top: 0;
}
.section__head {
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin-bottom: 56px;
}
.section__head .t-lead {
  max-width: 64ch;
}
/*
 * The quiet way down: one mono link under a section's lead, to the guide that explains what the section shows
 * (the simulator, the firmware, the bench, the pipeline, the agents). One per section at most, and it never
 * competes with a button: no fill, a hairline under it, the section's hue only on hover.
 */
.section__head .head-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--h-line-3);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--h-ink-faint);
  transition:
    color var(--h-dur-fast) var(--h-ease),
    border-color var(--h-dur-fast) var(--h-ease);
}
.section__head .head-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--h-dur) var(--h-spring);
}
.section__head .head-link:hover {
  color: var(--h-ink-strong);
  border-color: var(--hue);
}
.section__head .head-link:hover svg {
  transform: translateX(3px);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

/* two columns: copy beside a figure or a shot */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 64px;
  align-items: center;
}
.split--even {
  grid-template-columns: 1fr 1fr;
}
.split--flip .split__copy {
  order: 2;
}
.split--flip .split__fig {
  order: 1;
}
.split__copy {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.split__fig {
  min-width: 0;
}

/* scrollytelling: a pinned figure, steps that scroll past */
.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0 64px;
  align-items: start;
}
.scrolly--copy-left {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.scrolly--copy-left .scrolly__pin {
  order: 2;
}
.scrolly--copy-left .scrolly__steps {
  order: 1;
}
.scrolly__pin {
  position: sticky;
  top: var(--pin-top);
  min-width: 0;
}
.scrolly__steps {
  display: grid;
  min-width: 0;
}
.scrolly__step {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding-block: 24px;
}
.scrolly__step:first-child {
  min-height: 56vh;
}
.scrolly__step:last-child {
  min-height: 60vh;
}

/* a grid of cards: 2, 3 or 4 across, collapsing by width */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ───────────────────────────── texture ──────────────────────────────────── */
/* a stage: the dot grid plus the engineering grid, the well behind a figure */
.stage {
  position: relative;
  overflow: hidden;
  background: var(--h-stage-grid), var(--h-well);
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-panel);
  isolation: isolate;
}
.stage--bare {
  border: 0;
  background: var(--h-stage-grid), transparent;
}
/* a bloom: the section's hue, soft, behind a figure. Static gradient, never animated per frame. */
.bloom {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(60% 50% at 50% 42%, var(--hue-soft), transparent 70%);
}
.bloom--low {
  background: radial-gradient(70% 45% at 50% 85%, var(--hue-soft), transparent 70%);
}
.bloom--corner {
  background: radial-gradient(45% 45% at 85% 15%, var(--hue-soft), transparent 70%);
}
.stage > :not(.bloom) {
  position: relative;
  z-index: 1;
}
.hatch {
  background-image: var(--h-hatch);
}

/* ───────────────────────────── components ───────────────────────────────── */
/* buttons: white-on-black is the one primary; ghost is the outline; neither takes a hue */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--h-r-control);
  border: var(--h-stroke) solid transparent;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform var(--h-dur-fast) var(--h-spring),
    background var(--h-dur-fast) var(--h-ease),
    border-color var(--h-dur-fast) var(--h-ease),
    color var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur-fast) var(--h-ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn--primary {
  background: var(--h-ink-strong);
  color: var(--h-ground);
  border-color: var(--h-ink-strong);
}
.btn--primary:hover {
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.45);
}
.btn--ghost {
  background: transparent;
  color: var(--h-ink);
  border-color: var(--h-line-3);
}
.btn--ghost:hover {
  border-color: var(--h-line-hover);
  background: color-mix(in srgb, var(--h-ink) 6%, transparent);
}
.btn--hue {
  background: transparent;
  color: var(--hue);
  border-color: color-mix(in srgb, var(--hue) 55%, transparent);
}
.btn--hue:hover {
  border-color: var(--hue);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 24px var(--hue-glow);
}
.btn--lg {
  height: 56px;
  padding: 0 28px;
  font-size: 15px;
}
.btn--sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* chips: a pill with a dot; data-hue colours the dot and the text */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: var(--h-r-chip);
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-surface-1);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--h-ink-dim);
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 8px var(--hue-glow);
}
.chip--hue {
  color: var(--hue);
  border-color: color-mix(in srgb, var(--hue) 40%, var(--h-line-2));
}
.chip--plain::before {
  display: none;
}
/* the verdict chip, as the app's top bar shows it */
.verdict-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: var(--h-r-control);
  border: var(--h-stroke) solid var(--h-line-3);
  background: var(--h-surface-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--h-ink);
  white-space: nowrap;
}
.verdict-chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--h-ink-quiet);
}
.verdict-chip[data-verdict='pass'] {
  color: var(--h-pass-ink);
  border-color: color-mix(in srgb, var(--h-pass) 45%, var(--h-line-3));
}
.verdict-chip[data-verdict='pass']::before {
  background: var(--h-pass);
  box-shadow: 0 0 10px color-mix(in srgb, var(--h-pass) 60%, transparent);
}
.verdict-chip[data-verdict='fail'] {
  color: var(--h-fail-ink);
  border-color: color-mix(in srgb, var(--h-fail) 45%, var(--h-line-3));
}
.verdict-chip[data-verdict='fail']::before {
  background: var(--h-fail);
  box-shadow: 0 0 10px color-mix(in srgb, var(--h-fail) 60%, transparent);
}

/* cards */
.card {
  position: relative;
  background: var(--h-surface-1);
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-card);
  padding: 28px;
  transition:
    transform var(--h-dur) var(--h-spring),
    border-color var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--h-line-hover);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}
.card--hue:hover,
.card--hue.is-selected {
  border-color: var(--hue);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 28px var(--hue-glow), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}
.card--static,
.card--static:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--h-line-1);
}
.card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.card__icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--hue);
}

/* rows: a kind icon, a bold phrase, one line */
.rows {
  display: grid;
  background: var(--h-surface-1);
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-card);
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 22px;
  border-top: 1px solid var(--h-line-1);
}
.row:first-child {
  border-top: 0;
}
.row > svg,
.row__icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--hue);
}
.row__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

/*
 * The Sandbox's mark, as the app's Sandbox button draws it: a wireframe cube turning slowly on its corner, six
 * bordered faces in real 3-D. It takes the colour of the text it sits in (the space's hue where a chip or a tile sets
 * one), so a tile that goes grey takes its cube with it. --cube is the edge of the cube; turned on its corner it
 * covers about one and a half edges, which is why each slot below gives it less than the icon it stands in for.
 * Cheap on purpose: one transform animating, on the compositor. Under reduced motion it holds its resting pose.
 */
.sbxcube {
  --cube: 14px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: calc(var(--cube) * 1.5);
  height: calc(var(--cube) * 1.5);
  perspective: calc(var(--cube) * 5.4);
  color: var(--hue, currentColor);
}
.sbxcube__spin {
  position: relative;
  display: block;
  width: var(--cube);
  height: var(--cube);
  transform-style: preserve-3d;
  transform: rotateX(-26deg) rotateY(-38deg);
  animation: sbxcube-turn 9s linear infinite;
}
.sbxcube__spin > i {
  position: absolute;
  inset: 0;
  border: max(1.25px, calc(var(--cube) / 10)) solid currentColor;
  border-radius: 1.5px;
  background: color-mix(in srgb, currentColor 9%, transparent);
}
/* front, back, left, right, top, bottom: each face pushed half an edge out from the centre */
.sbxcube__spin > i:nth-child(1) { transform: translateZ(calc(var(--cube) / 2)); }
.sbxcube__spin > i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); }
.sbxcube__spin > i:nth-child(3) { transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)); }
.sbxcube__spin > i:nth-child(4) { transform: rotateY(90deg) translateZ(calc(var(--cube) / 2)); }
.sbxcube__spin > i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--cube) / 2)); }
.sbxcube__spin > i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); }
@keyframes sbxcube-turn {
  from { transform: rotateX(-26deg) rotateY(-38deg); }
  to { transform: rotateX(-26deg) rotateY(322deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sbxcube__spin {
    animation: none;
  }
}
/* in a row of a list the cube stands where a 22 px icon would */
.sbxcube.row__icon {
  --cube: 14px;
  width: 22px;
  height: 22px;
}
/* in the app bar's chips, beside a 14 px icon's worth of room */
.appbar__space .sbxcube {
  --cube: 9px;
  width: 14px;
  height: 14px;
}
.row__title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--h-ink-strong);
}
.row__note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--h-ink-dim);
}
.row__note code {
  color: var(--h-ink);
}

/* a screenshot in a frame, with its caption */
.shot {
  position: relative;
  background: var(--h-well);
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-panel);
  overflow: hidden;
  transition:
    transform var(--h-dur) var(--h-spring),
    border-color var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
.shot img {
  width: 100%;
}
.shot:hover {
  border-color: var(--h-line-hover);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
.shot--hue:hover {
  border-color: var(--hue);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 32px var(--hue-glow);
}
.shot__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--h-line-1);
  background: var(--h-surface-1);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--h-ink-faint);
}
.shot__caption svg {
  width: 16px;
  height: 16px;
  color: var(--hue);
}

/*
 * ── a picture that opens enlarged (js/zoom.js) ──
 *
 * The thumbnail is a link to the full-resolution file, so it works with no script; with one it is the button that
 * opens the layer below. It says so three ways: the zoom-in cursor, a small badge in its corner (on hover and on
 * keyboard focus; always there where nothing hovers, a phone), and the focus ring, drawn inside the picture because
 * most frames clip what is outside them.
 */
.zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
  /* a tap highlights nothing: the picture lifting off the page is the answer */
  -webkit-tap-highlight-color: transparent;
}
.zoom:focus-visible {
  outline: 2px solid var(--h-ink-strong);
  outline-offset: -4px;
  border-radius: 10px;
}
.zoom::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  /* two arrows pulling apart, drawn in ink on the app's dark glass */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 2.5h4v4M13.5 2.5L9 7M6.5 13.5h-4v-4M2.5 13.5L7 9'/%3E%3C/svg%3E")
      center / 14px 14px no-repeat,
    rgba(12, 13, 15, 0.72);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
  pointer-events: none;
}
.zoom:hover::after,
.zoom:focus-visible::after {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .zoom::after {
    opacity: 0.9;
    transform: none;
  }
}

/* the page holds still under the layer; the gutter stays, so nothing moves sideways when the scrollbar goes */
html {
  scrollbar-gutter: stable;
}
html.zoom-open {
  overflow: hidden;
}

/*
 * The layer: a modal <dialog> over the whole window. The dim is our own element and not ::backdrop, so it can fade
 * with the picture's flight. The pan is the scrolling surface: the picture is centred in it by its own auto
 * margins, which centre while it fits and let every edge be scrolled to once it is larger.
 */
.zoom-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--h-ink);
  overflow: hidden;
  /* the room left around a fitted picture; the close button lives in the top right of it */
  --zoom-pad: clamp(12px, 3.2vw, 56px);
  --zoom-top: max(var(--zoom-pad), 64px);
}
.zoom-layer:not([open]) {
  display: none;
}
.zoom-layer::backdrop {
  background: transparent;
}
.zoom-layer__dim {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 8, 0.68);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}
.zoom-layer__pan {
  position: absolute;
  inset: 0;
  display: flex;
  padding: var(--zoom-top) var(--zoom-pad) var(--zoom-pad);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* off the picture, a click closes */
  cursor: zoom-out;
}
.zoom-layer__img {
  flex: none;
  display: block;
  margin: auto;
  width: auto;
  height: auto;
  /* fitted: both limits at once, and the width and height attributes keep the shape between them */
  max-width: calc(100vw - 2 * var(--zoom-pad));
  max-height: calc(100vh - var(--zoom-top) - var(--zoom-pad));
  max-height: calc(100dvh - var(--zoom-top) - var(--zoom-pad));
  border-radius: 12px;
  background: var(--h-well);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 120px -30px rgba(0, 0, 0, 0.9);
  cursor: default;
  /* the flight scales it from its top left corner, where the thumbnail's box is measured from */
  transform-origin: 0 0;
  -webkit-user-select: none;
  user-select: none;
}
.zoom-layer.is-zoomable .zoom-layer__img {
  cursor: zoom-in;
}
/* one picture pixel to one device pixel: js sets the width, and the pan scrolls */
.zoom-layer.is-full .zoom-layer__img {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}
.zoom-layer__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  /* 44 px: the smallest target a finger hits every time */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(23, 24, 28, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--h-ink-strong);
  transition:
    transform var(--h-dur) var(--h-spring),
    background-color var(--h-dur-fast) var(--h-ease);
}
.zoom-layer__close svg {
  width: 16px;
  height: 16px;
}
.zoom-layer__close:hover {
  background: rgba(52, 55, 61, 0.9);
  transform: scale(1.06);
}
.zoom-layer__close:active {
  transform: scale(0.94);
}

/* a bench of big numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stat {
  display: grid;
  gap: 10px;
  padding: 24px 0 0;
  border-top: var(--h-stroke) solid var(--h-line-2);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--h-ink-faint);
  line-height: 1.4;
}

/* a mini app chrome: the Spaces top bar, as a frame around a demo or a figure */
.appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  background: var(--h-surface-1);
  border-bottom: 1px solid var(--h-line-1);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--h-ink-faint);
}
.appbar__n {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--h-ink-strong);
  margin-right: 6px;
}
.appbar__space {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: var(--h-ink-dim);
}
.appbar__space svg {
  width: 14px;
  height: 14px;
  color: var(--hue);
}
.appbar__space[aria-current] {
  border-color: var(--hue);
  color: var(--h-ink-strong);
  box-shadow: 0 0 0 2px var(--hue-faint), 0 0 14px var(--hue-glow);
}
.appbar__spacer {
  flex: 1;
}

/* forms: one field style, the app's */
.field {
  display: grid;
  gap: 8px;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--h-ink-faint);
}
.input {
  height: 48px;
  width: 100%;
  padding: 0 16px;
  border-radius: var(--h-r-control);
  border: var(--h-stroke) solid var(--h-line-3);
  background: var(--h-well);
  color: var(--h-ink-strong);
  font-family: var(--font-mono);
  font-size: 15px;
  transition:
    border-color var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur-fast) var(--h-ease);
}
.input::placeholder {
  color: var(--h-ink-quiet);
}
.input:focus {
  outline: none;
  border-color: var(--hue);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 20px var(--hue-glow);
}
.input[aria-invalid='true'] {
  border-color: var(--h-fail);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-fail) 12%, transparent);
}
.field__hint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--h-ink-faint);
  min-height: 1.4em;
}
.field__hint[data-state='error'] {
  color: var(--h-fail-ink);
}
.field__hint[data-state='ok'] {
  color: var(--h-pass-ink);
}

/* the Terms box: one component for every gate on the site */
/*
 * "I accept the Terms of Use", wherever a code is used, a build downloaded or the demo opened: the door's two faces,
 * the build cards, the account page and the demo's window (home, /demo/, /live/). A real checkbox drawn as a 22 px
 * squircle that fills with the site's one primary (white) and draws its tick on the spring; a 44 px row, so a thumb
 * finds it; a reason line under it that folds away once the box is ticked. js/alpha.js bindTerms() sets
 * data-tos="ok" | "pending" | "saving" (the door is recording the tick) | "failed" (it could not; the line says why).
 * Reduced motion: base.css zeroes every duration, so it simply switches.
 */
.tos {
  /* where the words start: the 22 px box and the 12 px gap; the reason line hangs from the same edge */
  --tos-indent: 34px;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: start;
  /* the box reads from its left edge wherever it sits, even inside a centred call to action (the demo's window) */
  text-align: start;
  transition: grid-template-rows var(--h-dur-slow) var(--h-spring);
}
.tos[data-tos='ok'] {
  grid-template-rows: auto 0fr;
}
.tos[hidden] {
  display: none;
}
.tos__row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  /* above the reason line, which tucks 6 px into the row's air: a tap there still lands on the box's full 44 px */
  z-index: 1;
}
.tos__control {
  display: grid;
  flex: none;
  width: 22px;
  height: 22px;
}
/* the control itself: native underneath (keyboard, screen readers, forms), drawn on top */
.tos__box {
  grid-area: 1 / 1;
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 7px;
  border: var(--h-stroke) solid var(--h-line-hover);
  background: var(--h-well);
  cursor: pointer;
  transition:
    background var(--h-dur-fast) var(--h-ease),
    border-color var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
.tos__row:hover .tos__box {
  border-color: var(--h-ink-dim);
}
.tos__box:active {
  transform: scale(0.88);
}
.tos__box:checked {
  background: var(--h-ink-strong);
  border-color: var(--h-ink-strong);
  animation: tos-pop var(--h-dur-slow) var(--h-spring);
}
/* focus glows in the section's hue, like every field here */
.tos__box:focus-visible {
  outline: none;
  border-color: var(--hue);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 20px var(--hue-glow);
}
.tos__box:checked:focus-visible {
  border-color: var(--h-ink-strong);
}
.tos__box:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
/*
 * The tick draws itself in once the box fills, and is gone at once when it empties. It stands above the box: while the
 * box pops (a transform) or breathes as the door records the tick (an opacity), the box paints on a layer of its own,
 * which would otherwise cover the tick and leave a blank square where the tick should be.
 */
.tos__tick {
  grid-area: 1 / 1;
  z-index: 1;
  width: 22px;
  height: 22px;
  padding: 4px;
  fill: none;
  stroke: var(--h-ground);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  pointer-events: none;
  transition: stroke-dashoffset var(--h-dur-fast) var(--h-ease);
}
.tos__box:checked + .tos__tick {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--h-dur) var(--h-ease) 0.06s;
}
.tos__text {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--h-ink-dim);
  transition: color var(--h-dur-fast) var(--h-ease);
}
.tos[data-tos='ok'] .tos__text {
  color: var(--h-ink);
}
.tos__link {
  color: var(--h-ink-strong);
  text-decoration: underline;
  text-decoration-color: var(--h-line-hover);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--h-dur-fast) var(--h-ease);
}
.tos__link:hover {
  text-decoration-color: currentColor;
}
/*
 * The reason, lined up under the words; it folds with the row above and fades a beat before.
 *
 * It belongs to the row, so it hangs close under the words: the 44 px row leaves 11 px of air under them, and the
 * line is drawn 6 px up into it. The same 6 px comes back below, so the box is exactly as tall as before and whatever
 * follows it (the code field, the button, the cards) keeps its place, now with a clear gap from the line. When the
 * words change (asking, recording the tick, why it did not hold), js/alpha.js eases the line to its new height rather
 * than letting what follows jump; the colour eases with it.
 */
.tos__why {
  min-height: 0;
  overflow: hidden;
  margin: -6px 0 6px;
  padding-left: var(--tos-indent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--h-ink-faint);
  transition:
    opacity var(--h-dur) var(--h-ease) 0.08s,
    color var(--h-dur-fast) var(--h-ease),
    visibility 0s;
}
.tos[data-tos='ok'] .tos__why {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--h-dur-fast) var(--h-ease),
    color var(--h-dur-fast) var(--h-ease),
    visibility 0s linear var(--h-dur-slow);
}
/*
 * The door is recording the tick (data-tos="saving"): the box stays filled and breathes, slow and shallow, until the
 * receipt is back, and its reason line says so. Reduced motion zeroes the duration, so it simply holds still.
 */
.tos[data-tos='saving'] .tos__box {
  cursor: progress;
  animation: tos-wait calc(var(--h-dur-slow) * 2) var(--h-ease) infinite alternate;
}
.tos[data-tos='saving'] .tos__row {
  cursor: progress;
}
/* the tick did not hold (data-tos="failed"): the box is clear again and the line under it says why, in the fail ink */
.tos[data-tos='failed'] .tos__why {
  color: var(--h-fail-ink);
}
@keyframes tos-wait {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.55;
  }
}
@keyframes tos-pop {
  from {
    transform: scale(0.82);
  }
  to {
    transform: none;
  }
}

/* a hairline rule and a quiet divider */
.rule {
  height: 1px;
  background: var(--h-line-1);
}

/* icons: a sprite is in each page; an icon takes its colour from currentColor */
.icon {
  width: 20px;
  height: 20px;
}

/* ───────────────────────────── header ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--h-ground) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--h-dur) var(--h-ease), background var(--h-dur) var(--h-ease);
}
.site-header[data-scrolled] {
  border-bottom-color: var(--h-line-1);
  background: color-mix(in srgb, var(--h-ground) 84%, transparent);
}
.site-header__row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
}
/* the wordmark is the app's own: "Nihil" in the serif at display tracking, the way the Home tab sets it */
.brand__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--h-ink-strong);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--h-ink-faint);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--h-r-control);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--h-ink-dim);
  transition: color var(--h-dur-fast) var(--h-ease), background var(--h-dur-fast) var(--h-ease);
}
.nav a:hover {
  color: var(--h-ink-strong);
  background: color-mix(in srgb, var(--h-ink) 7%, transparent);
}
.nav a[aria-current='page'] {
  color: var(--h-ink-strong);
  background: var(--h-surface-3);
}
.nav .btn {
  height: 38px;
  padding: 0 16px;
  margin-left: 8px;
}
/* The Discord link. The mark is Discord's own file (sections/_icons.html) and follows their rules: solid, never redrawn,
   and only ever white or their blurple. At rest it is white beside the dim nav words; under the pointer the control fills
   with blurple and the mark stays white on it, which is the pairing Discord itself uses. */
.nav a.nav__icon {
  --discord: #5865f2;
  width: 36px;
  padding: 0;
  gap: 8px;
  justify-content: center;
  margin-right: 4px;
}
/* the mark is 4:3: 15 px tall sits on the cap height of the 13.5 px nav words, and 20 px wide matches their weight */
.nav a.nav__icon svg {
  flex: none;
  width: 20px;
  height: 15px;
  color: #fff;
  transition: transform var(--h-dur) var(--h-spring);
}
.nav a.nav__icon:focus-visible,
.nav a.nav__icon:active {
  color: #fff;
  background: var(--discord);
}
/* the fill and a small lift on the shared spring, only where there is a real pointer (a touch screen would leave the row
   lit after the tap); the lift is a uniform scale, so the mark's proportions never change */
@media (hover: hover) {
  .nav a.nav__icon:hover {
    color: #fff;
    background: var(--discord);
  }
  .nav a.nav__icon:hover svg {
    transform: scale(1.08);
  }
}
.nav a.nav__icon:active svg {
  transform: scale(0.96);
}
/* the word shows where there is room for it (wide screens, and the phone menu below); between the two the mark stands alone */
.nav__icon-label {
  display: none;
}
@media (min-width: 1200px) {
  .nav a.nav__icon {
    width: auto;
    padding: 0 12px;
  }
  .nav__icon-label {
    display: inline;
  }
}
/* .nav a outranks .btn--primary; the header's button keeps the primary look */
.nav a.btn--primary,
.nav a.btn--primary:hover {
  color: var(--h-ground);
  background: var(--h-ink-strong);
}
.menu-btn {
  position: relative;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--h-r-control);
  border: var(--h-stroke) solid var(--h-line-2);
  align-items: center;
  justify-content: center;
  color: var(--h-ink);
}
/* drawn at 40 px, pressed at 44: the hit area reaches a thumb's minimum without the button growing in the header */
.menu-btn::before {
  content: '';
  position: absolute;
  inset: -3.5px;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
}
.menu-btn .ico-close {
  display: none;
}
.menu-btn[aria-expanded='true'] .ico-menu {
  display: none;
}
.menu-btn[aria-expanded='true'] .ico-close {
  display: block;
}

/* ───────────────────────────── footer ───────────────────────────────────── */
.site-footer {
  margin-top: var(--section);
  border-top: 1px solid var(--h-line-1);
  padding-block: 40px;
  background: var(--h-hatch), var(--h-surface-2);
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--h-ink-faint);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
}
.site-footer__links a:hover {
  color: var(--h-ink-strong);
}

/* ───────────────────────────── reveals ──────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--h-dur-slow) var(--h-ease) var(--reveal-delay, 0ms),
    transform var(--h-dur-slow) var(--h-spring) var(--reveal-delay, 0ms);
}
.js [data-reveal][data-shown] {
  opacity: 1;
  transform: none;
}

/* figures: a failed mount keeps the poster; a loading one shows nothing extra */
.fig {
  position: relative;
}
.fig[data-fig-state='failed'] {
  outline: 1px dashed var(--h-fail);
}
.fig video,
.fig canvas,
.fig > svg {
  width: 100%;
  height: auto;
}

/* ───────────────────────────── reduced motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  :root {
    --h-dur-fast: 0s;
    --h-dur: 0s;
    --h-dur-slow: 0s;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ───────────────────────────── responsive ───────────────────────────────── */
@media (max-width: 1100px) {
  .stats,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  :root {
    --section: 112px;
  }
  .split,
  .split--even,
  .scrolly,
  .scrolly--copy-left {
    grid-template-columns: 1fr;
  }
  .split--flip .split__copy,
  .scrolly--copy-left .scrolly__steps {
    order: 2;
  }
  .split--flip .split__fig,
  .scrolly--copy-left .scrolly__pin {
    order: 1;
  }
  .scrolly__pin {
    position: relative;
    top: auto;
    margin-bottom: 32px;
  }
  .scrolly__step,
  .scrolly__step:first-child,
  .scrolly__step:last-child {
    min-height: 0;
    padding-block: 20px;
  }
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand__tag {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(var(--header-h) + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: var(--h-surface-2);
    border: var(--h-stroke) solid var(--h-line-2);
    border-radius: var(--h-r-card);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity var(--h-dur-fast) var(--h-ease), transform var(--h-dur) var(--h-spring);
  }
  .nav[data-open='true'] {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    height: 44px;
  }
  .nav .btn {
    margin: 6px 0 0;
    height: 44px;
  }
  /* in the phone menu the mark sits after the links and before the alpha button, with its word, like every other row */
  .nav .btn {
    order: 10;
  }
  .nav a.nav__icon {
    order: 9;
    width: auto;
    gap: 10px;
    padding: 0 14px;
    margin: 0;
    justify-content: flex-start;
  }
  .nav__icon-label {
    display: inline;
  }
}
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section: 80px;
    --header-h: 56px;
  }
  .t-h3 {
    font-size: 24px;
  }
  .t-lead {
    font-size: 18px;
  }
  .t-body {
    font-size: 16px;
  }
  .section__head {
    margin-bottom: 36px;
    gap: 16px;
  }
  .stats,
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .btn-row > .btn {
    flex: 1 1 100%;
  }
  .card {
    padding: 22px;
  }
  .row {
    padding: 16px 18px;
  }
  .site-footer__links {
    margin-left: 0;
  }
}

/* ==== sections/05-section-index.css ==== */
/* ==== the section index: a glass rail of ticks at the left edge, for wide screens (owner: the lead) ====
 *
 * Fixed at the vertical centre of the left edge, 24 px in. Two slabs of the header's frost: the rail (always, while
 * shown) holding one tick per entry and a hairline that fills down it as the page is read, and beside it the shelf of
 * names, which slides out only while the rail is pointed at or holds the keyboard's focus. Every move is transform
 * or opacity on the site's spring and ease; the opacity sits on the parts, never on the nav, because a translucent
 * ancestor would cut the glass off from the page behind it. js/section-index.js writes the state:
 *
 *   hidden            not on this screen at all (too narrow or too short, or scripting off)
 *   data-shown        past the hero, clear of the footer, and no wide part of the page in the rail's lane
 *   aria-current      on the entry whose section crosses the middle of the viewport (lit in that section's hue)
 *   data-passed       on the entries above it
 *   --i               each entry's place, for the names' stagger
 *
 * Collapsed, only the rail takes the pointer, so the invisible names never sit over the page's own links.
 */

/* ───────────────────────────── the nav: position and arrival ───────────────────────────── */
#section-index {
  --rail: 40px; /* the rail's width: the ticks' column */
  --pitch: 20px; /* one entry's height */
  --pad: 14px; /* air above the first tick and under the last */
  position: fixed;
  left: 24px;
  top: 50%;
  z-index: 90; /* under the header (100), over the page */
  pointer-events: none;
  visibility: hidden;
  /* tucked a little off to the left until it is wanted; slides in on the spring */
  transform: translate3d(-18px, -50%, 0);
  transition:
    transform var(--h-dur-slow) var(--h-spring),
    visibility 0s linear var(--h-dur-slow);
}
#section-index[data-shown] {
  visibility: visible;
  transform: translate3d(0, -50%, 0);
  transition-delay: 0s;
}

/* the parts fade, the nav never does (see the note at the top) */
#section-index > * {
  opacity: 0;
  transition: opacity var(--h-dur) var(--h-ease);
}
#section-index[data-shown] > * {
  opacity: 1;
}

/* ───────────────────────────── the glass: rail and shelf ───────────────────────────── */
#section-index .section-index__glass,
#section-index .section-index__shelf {
  position: absolute;
  top: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--h-surface-1) 56%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--h-ink) 10%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--h-ink) 6%, transparent),
    0 24px 48px -30px rgba(0, 0, 0, 0.9);
}

/* the rail: a capsule exactly as wide as the ticks' column; pointing at it opens the names */
#section-index .section-index__glass {
  left: 0;
  width: var(--rail);
  border-radius: calc(var(--rail) / 2);
  pointer-events: auto;
}

/* the shelf: the names' slab, just right of the rail, closed until the rail is pointed at or focused */
#section-index .section-index__shelf {
  left: calc(var(--rail) + 6px);
  right: 0;
  border-radius: 16px;
  transform: translateX(-10px) scale(0.98);
  transform-origin: 0 50%;
  transition:
    opacity var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
#section-index[data-shown] > .section-index__shelf {
  opacity: 0;
}
#section-index[data-shown]:is(:hover, :focus-within) > .section-index__shelf {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ───────────────────────────── the progress hairline ───────────────────────────── */
/* from the first tick's line to the last's; the fill's length is the reading position between them */
#section-index .section-index__track {
  position: absolute;
  left: 11px;
  top: calc(var(--pad) + var(--pitch) / 2);
  bottom: calc(var(--pad) + var(--pitch) / 2);
  width: 1.5px;
  border-radius: 1px;
  overflow: hidden;
  background: color-mix(in srgb, var(--h-ink) 12%, transparent);
}
#section-index .section-index__fill {
  position: absolute;
  inset: 0;
  background: var(--h-ink-dim);
  transform: scaleY(0);
  transform-origin: 50% 0;
}

/* ───────────────────────────── the entries ───────────────────────────── */
/* a column as wide as its longest name; every row stretches to it, so the shelf and the rows line up */
#section-index .section-index__list {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  padding: var(--pad) 0;
}
#section-index .section-index__link {
  display: flex;
  align-items: center;
  height: var(--pitch);
  /* collapsed, only the tick answers the pointer (see the note at the top) */
  pointer-events: none;
  color: var(--h-ink-faint);
}
#section-index[data-shown]:is(:hover, :focus-within) .section-index__link {
  pointer-events: auto;
}
/* the keyboard's ring is drawn on the name (below), where it can be seen */
#section-index .section-index__link:focus-visible {
  outline: none;
}

/* the tick: its cell is the hit area (the rail's width by one row), the mark is a short hairline in it */
#section-index .section-index__tick {
  position: relative;
  flex: none;
  align-self: stretch;
  width: var(--rail);
  pointer-events: auto;
  cursor: pointer;
}
#section-index .section-index__tick::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--h-ink-quiet);
  opacity: 0.5;
  transform: scaleX(0.5);
  transform-origin: 0 50%;
  transition:
    transform var(--h-dur) var(--h-spring),
    opacity var(--h-dur-fast) var(--h-ease),
    background-color var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
/* read already: a touch brighter than what is still ahead */
#section-index .section-index__link[data-passed] .section-index__tick::before {
  opacity: 0.85;
}
/* pointed at or focused: longer and brighter */
#section-index .section-index__link:is(:hover, :focus-visible) .section-index__tick::before {
  opacity: 1;
  background: var(--h-ink-dim);
  transform: scaleX(0.78);
}
/* where the reader is: full length, in the section's own hue, with that hue's glow */
#section-index .section-index__link[aria-current] .section-index__tick::before {
  opacity: 1;
  background: var(--hue);
  box-shadow: 0 0 10px var(--hue-glow);
  transform: scaleX(1);
}

/* the name: hidden beside its tick until the shelf opens, then in, one after another */
#section-index .section-index__label {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1;
  align-items: center;
  align-self: stretch;
  /* starts at the rail's edge, so the pointer never crosses a gap between tick and name; 6 px of that is the gap
     between the two slabs, the rest is the shelf's own inset */
  margin: 0 6px 0 0;
  padding: 0 10px 0 22px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: inherit;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur) var(--h-spring),
    color var(--h-dur-fast) var(--h-ease);
}
/* the row's highlight, the way a menu marks the row under the pointer: inside the shelf, 6 px in from its edges */
#section-index .section-index__label::before {
  content: '';
  position: absolute;
  inset: 1px 0 1px 12px;
  z-index: -1;
  border-radius: 7px;
  background: transparent;
  transition: background-color var(--h-dur-fast) var(--h-ease);
}
#section-index[data-shown]:is(:hover, :focus-within) .section-index__label {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 10ms);
}
/*
 * Under reduced motion every name arrives at once. base.css zeroes transition durations there, not delays, and a
 * zero-length transition still waits out its delay: left alone, the stagger would play as a cascade of cuts.
 */
@media (prefers-reduced-motion: reduce) {
  #section-index[data-shown]:is(:hover, :focus-within) .section-index__label {
    transition-delay: 0s;
  }
}
#section-index .section-index__link[aria-current] .section-index__label,
#section-index .section-index__link:is(:hover, :focus-visible) .section-index__label {
  color: var(--h-ink-strong);
}
#section-index .section-index__link:hover .section-index__label::before {
  background: color-mix(in srgb, var(--h-ink) 7%, transparent);
}
#section-index .section-index__link:focus-visible .section-index__label::before {
  outline: 2px solid var(--h-ink-strong);
  outline-offset: -2px;
}

/* ───────────────────────────── short screens ───────────────────────────── */
/* under 760 px of height the rows close up, so twenty-odd entries still stand clear of the header */
@media (max-height: 760px) {
  #section-index {
    --pitch: 17px;
    --pad: 10px;
  }
}

/* ───────────────────────────── where it never shows ───────────────────────────── */
/* the script decides first (js/section-index.js); these keep the rule when it has not run */
@media (max-width: 1379.98px), (max-height: 559.98px) {
  #section-index {
    display: none;
  }
}
@media print {
  #section-index {
    display: none;
  }
}

/* ==== sections/06-live.css ==== */
/* ==== live or video: a figure's clip and the switch under it (js/live.js, js/capability.js) ====
 *
 * A figure marked data-live holds two pictures in one box: its live view and a recording of that view. The clip is
 * laid over the whole figure and fades in and out; nothing changes size, so switching never moves the page.
 *
 *   .fig-clip        the <video>, edge to edge in the figure's own box (the figure sets the aspect)
 *   .fig-clip__play  the play button, only where a clip must not start by itself (Save-Data, reduced motion)
 *   .fig-mode        the row under the figure: one quiet line on the left of the control, the control at the right
 *   .fig-mode__seg   the control: a segmented pill of two, Live and Video, with a thumb that slides on the spring
 *
 * Human Interface Guidelines, as applied: a segmented control for two mutually exclusive views of one thing, the
 * selection shown by a raised thumb and not by colour alone, a 44 px target wherever the pointer is a finger, the
 * focus ring on the segment that holds it, and no motion at all under reduced motion (the tokens go to 0 s).
 */

/* ───────────────────────────── the clip ───────────────────────────── */
.fig > .fig-clip {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* the cross-fade: the clip leaves over the live view, and is out of the way once it has */
  transition:
    opacity var(--h-dur-slow) var(--h-ease),
    visibility 0s linear var(--h-dur-slow);
}
.fig[data-show='video'] > .fig-clip {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/*
 * Scripting off: the <noscript> clip is the figure, always shown, with the browser's own controls. The <noscript>
 * itself makes no box (a stage positions each of its children, and a clip laid out against an empty inline box
 * would have no size), so the clip is laid out against the figure.
 */
.fig > noscript:has(> .fig-clip--plain) {
  display: contents;
}
.fig > noscript > .fig-clip--plain {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* the play button: the film's own, smaller. Opaque on purpose: frost over a video is paid for on every frame */
.fig > .fig-clip__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 999px;
  color: var(--h-ink-strong);
  background: color-mix(in srgb, var(--h-ground) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--h-ink) 16%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--h-ink) 8%, transparent);
  transform: translate(-50%, -50%);
  transition:
    transform var(--h-dur) var(--h-spring),
    background var(--h-dur-fast) var(--h-ease);
}
.fig > .fig-clip__play[hidden] {
  display: none;
}
.fig > .fig-clip__play svg {
  width: 38%;
  height: 38%;
  /* the triangle's weight sits left of its box; a nudge puts its centre of mass on the circle's */
  transform: translateX(7%);
}
@media (hover: hover) {
  .fig > .fig-clip__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: color-mix(in srgb, var(--h-ground) 62%, transparent);
  }
}
.fig > .fig-clip__play:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* ───────────────────────────── the row ───────────────────────────── */
.fig-mode {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  /* the row keeps its height whatever the line says, so the page below never moves */
  min-height: 44px;
  margin-top: 12px;
}
/* until the script has decided (and with scripting off, where the figure is its video) the row holds its place, empty */
.fig-mode:not([data-wired]) {
  visibility: hidden;
}
.fig-mode__note {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--h-ink-faint);
  text-wrap: balance;
}
/* a press on a Live that cannot run: the line that says why lights once */
.fig-mode[data-nudge] .fig-mode__note {
  animation: fig-mode-nudge 0.9s var(--h-ease);
}
@keyframes fig-mode-nudge {
  0%,
  45% {
    color: var(--h-ink-strong);
  }
  100% {
    color: var(--h-ink-faint);
  }
}

/* ───────────────────────────── the control ───────────────────────────── */
.fig-mode__seg {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-well);
}
/* the thumb: half the track, under the selected word; it slides, and overshoots a little, on the app's spring */
.fig-mode__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--h-surface-3);
  box-shadow: inset 0 0 0 1px var(--h-line-3), 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: transform var(--h-dur) var(--h-spring);
}
.fig-mode[data-choice='video'] .fig-mode__thumb {
  transform: translateX(100%);
}
.fig-mode__seg button {
  position: relative;
  z-index: 1;
  height: 30px;
  min-width: 68px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--h-ink-faint);
  white-space: nowrap;
  transition: color var(--h-dur-fast) var(--h-ease);
}
.fig-mode__seg button:hover {
  color: var(--h-ink);
}
.fig-mode__seg button[aria-checked='true'] {
  color: var(--h-ink-strong);
}
.fig-mode__seg button:focus-visible {
  outline-offset: 2px;
  border-radius: 999px;
}
/* Live on a device that cannot draw it: still reachable, so the reason beside it can be read, but plainly off */
.fig-mode__seg button[aria-disabled='true'],
.fig-mode__seg button[aria-disabled='true']:hover {
  color: var(--h-ink-quiet);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* a finger gets the full 44 px, and the line reads from the left under a narrow figure */
@media (pointer: coarse), (max-width: 640px) {
  .fig-mode {
    min-height: 58px;
    gap: 12px;
  }
  .fig-mode__note {
    text-align: left;
  }
  .fig-mode__seg button {
    height: 44px;
    min-width: 72px;
  }
}

/* ==== sections/10-hero.css ==== */
/* ==== hero: the brand, the claim, the Loop (owner: hero) ==== */

/* ── the section: the first viewport, full bleed, content centred, the bench at the foot ── */
#hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(32px, 5vh, 64px) clamp(32px, 5vh, 56px);
}

/*
 * The four spaces, as light behind everything: Atlas violet behind the ring, Replica sky under it, Corpus amber
 * and Memoria green on the copy side. Static gradients, never animated. The layer reaches up under the frosted
 * header so the glass picks up a little of the colour.
 */
#hero .hero__blooms {
  position: absolute;
  inset: calc(-1 * var(--header-h)) 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 74% 40%, color-mix(in srgb, var(--h-space-atlas) 13%, transparent), transparent 72%),
    radial-gradient(34% 40% at 94% 88%, color-mix(in srgb, var(--h-space-replica) 9%, transparent), transparent 72%),
    radial-gradient(36% 42% at 6% 14%, color-mix(in srgb, var(--h-space-corpus) 7%, transparent), transparent 72%),
    radial-gradient(40% 40% at 20% 96%, color-mix(in srgb, var(--h-space-memoria) 7%, transparent), transparent 72%);
}

/* ── the two columns: copy and the Loop, centred on each other; the Loop leans into the right margin (below) ── */
#hero .hero__grid {
  flex: 1;
  /* the copy and the ring own the whole first screen; the bench starts cleanly below the fold, never half-cut */
  min-height: calc(100vh - var(--header-h) - clamp(32px, 5vh, 64px));
  min-height: calc(100svh - var(--header-h) - clamp(32px, 5svh, 64px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

/* ── the copy ── */
#hero .hero__copy {
  display: grid;
  justify-items: start;
  min-width: 0;
}

/* the lockup: Nihil, and the Latin it finishes, small and serif beside it */
#hero .hero__mark {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 26px;
  line-height: 1;
}
#hero .hero__nihil {
  font-family: var(--font-sans);
  /* the name is the largest thing in the hero: the claim under it is what the name means, and reads as its
     second line, about three fifths its size */
  font-size: clamp(54px, 7.4vw, 112px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--h-ink-strong);
}
#hero .hero__obstat {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.7vw, 40px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--h-ink-faint);
}

/* the claim, then the how. The claim is five words and is set to break as two lines beside the ring ("Nothing stands"
   over "in the way."): at the scale's full hero size it took three, and pushed both doors under the fold of a 900 px
   screen. The lockup above it and these two lines now read as one block, the Latin and what it means. */
#hero .hero__title {
  margin-top: 22px;
  font-size: clamp(34px, 4.3vw, 64px);
}
/* the two lines are set, not left to the column's width: "Nothing stands" over "in the way." at every size. A line
   never breaks inside itself: where the column is narrower than the line (a wide screen, where the ring takes its
   half) the words run on over the ring's side, which is empty air around a circle. Only a screen narrower than the
   line itself (under 360 px) lets it wrap, so nothing is ever cut off. */
#hero .hero__title {
  position: relative;
  z-index: 1;
}
#hero .hero__line {
  display: block;
  white-space: nowrap;
}
@media (max-width: 359px) {
  #hero .hero__line {
    white-space: normal;
  }
}
#hero .hero__lead {
  margin-top: 28px;
  max-width: 34em;
}

/* the sentence that says what this is, for someone who has never heard the term; the pitch follows close behind */
#hero .hero__why + .hero__lead {
  margin-top: 14px;
}

/* the doors: two buttons, the plain facts under them */
#hero .hero__actions {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
#hero .hero__meta {
  color: var(--h-ink-faint);
}
/* the meta line breaks only between its facts, never inside one */
#hero .hero__meta span {
  white-space: nowrap;
}

/* the trust strip: what Nihil is not, said once, quietly */
#hero .hero__trust {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--h-line-1);
  color: var(--h-ink-faint);
}
#hero .hero__trust li {
  text-wrap: balance;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
}
#hero .hero__trust svg {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--h-ink-dim);
}

/* ── the figure: the ring on a grid that dissolves toward the edges ── */
#hero .hero__fig {
  min-width: 0;
}
/* on wide screens the ring leans a little into the right margin, so it can be big without crowding the copy */
@media (min-width: 961px) {
  #hero .hero__fig {
    margin-right: calc(-1 * clamp(0px, (100vw - var(--container)) / 2, 96px));
  }
}
#hero .hero__loop {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
/* the stage grid, masked to a soft disc so the ring floats instead of sitting in a box */
#hero .hero__loop::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--h-stage-grid);
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 100%);
  opacity: 0.8;
}
#hero .hero__loop .bloom {
  inset: 0;
  background: radial-gradient(42% 46% at 50% 50%, var(--hue-faint), transparent 70%);
}

/* the ring's type: mono for everything a machine wrote, the board name in sans */
#hero .loop {
  display: block;
  width: 100%;
  height: auto;
}
#hero .loop text {
  font-family: var(--font-mono);
  font-weight: 500;
}
#hero .loop .loop__label {
  fill: var(--h-ink-faint);
}
#hero .loop .loop__n {
  fill: var(--h-ink-quiet);
}
#hero .loop .is-on .loop__nm {
  fill: var(--h-ink-strong);
  font-weight: 600;
}
#hero .loop .is-on .loop__n {
  fill: var(--h-ink-dim);
}
#hero .loop .is-fail .loop__nm,
#hero .loop .is-fail .loop__n {
  fill: var(--h-fail-ink);
}
#hero .loop text.loop__board {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  fill: var(--h-ink-strong);
}
#hero .loop .loop__caption {
  fill: var(--h-ink-faint);
  font-variant-numeric: tabular-nums;
}
#hero .loop .loop__cap-b {
  fill: var(--h-ink);
}
#hero .loop .loop__cap-b.is-fail {
  fill: var(--h-fail-ink);
}
#hero .loop text.loop__chip-text {
  font-weight: 600;
}

/* ── Act 2: the Loop tab as the app draws it (js/fig/loop-tour.js); mono 11 on the ring, like the app ── */
#hero .loop .lt-n {
  fill: var(--h-ink-faint);
}
#hero .loop .lt-nm {
  fill: var(--h-ink-dim);
}
#hero .loop .lt.is-on .lt-nm {
  fill: var(--h-ink-strong);
  font-weight: 600;
}
#hero .loop .lt.is-on .lt-n {
  fill: var(--h-ink-dim);
}
#hero .loop .lt-thing {
  fill: var(--h-ink-faint);
}
#hero .loop .lt-thing.is-on {
  fill: var(--h-ink-strong);
  font-weight: 600;
}
#hero .loop .lt-sat {
  fill: var(--h-ink-dim);
}
#hero .loop .lt-sat.is-on {
  fill: var(--h-ink-strong);
}
/* the selected board's name: serif, as the app's centre sets it */
#hero .loop text.lt-name {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  fill: var(--h-ink-strong);
}
#hero .loop .lt-count {
  fill: var(--h-ink-dim);
}
#hero .loop .lt-stepname {
  fill: var(--h-ink);
}
#hero .loop text.lt-chip {
  font-weight: 600;
}
#hero .loop .lt-btn {
  fill: var(--h-ground);
}
#hero .loop .lt-crumb-a {
  fill: var(--h-ink-dim);
}
#hero .loop .lt-crumb-a.is-on {
  fill: var(--h-ink-strong);
}
#hero .loop .lt-crumb-sep {
  fill: var(--h-ink-quiet);
}
#hero .loop .lt-crumb-b {
  fill: var(--h-ink);
}
#hero .loop .lt-legend {
  fill: var(--h-ink-faint);
}
#hero .loop .lt-chip-id {
  fill: var(--h-ink-dim);
}
#hero .loop .lt-open-text {
  fill: var(--h-ink-dim);
}
#hero .loop .lt-open-text.is-on {
  fill: var(--h-ink-strong);
}

/*
 * The Loop tab's sheets: the app's floating squircle surface, slid in over the ring from the right. HTML over the
 * figure so the text wraps like the app's; transforms and opacity are set from seek(), nothing here animates.
 * The close button's corner (inset + border + 12 px + half its 28 px) is mirrored in loop-tour.js for the pointer.
 */
#hero .loop-ov {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
#hero .loop-sheet {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(300px, 48%);
  display: none;
  flex-direction: column;
  gap: 9px;
  padding: 18px 18px 16px;
  background: var(--h-surface-1);
  border: var(--h-stroke) solid var(--h-line-2);
  border-radius: var(--h-r-card);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  color: var(--h-ink-dim);
  overflow: hidden;
  will-change: transform, opacity;
}
#hero .loop-sheet p,
#hero .loop-sheet dl,
#hero .loop-sheet dd {
  margin: 0;
}
#hero .ls__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--h-r-control);
  color: var(--h-ink-faint);
}
#hero .ls__close svg {
  width: 14px;
  height: 14px;
}
#hero .ls__close.is-hover {
  background: color-mix(in srgb, var(--h-ink) 9%, transparent);
  color: var(--h-ink-strong);
}
#hero .ls__id {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--h-ink-faint);
}
#hero .ls__gate {
  padding: 1px 7px;
  border: 1px solid var(--h-line-3);
  border-radius: var(--h-r-chip);
  font-size: 10.5px;
  color: var(--h-ink-dim);
}
#hero .ls__title {
  margin: -4px 40px 0 0;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--h-ink-strong);
  text-wrap: balance;
}
#hero .ls__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--h-ink);
}
#hero .ls__faint {
  color: var(--h-ink-faint);
}
/* a status dot, exactly as the app's StatusDot: filled for running / done / failed, a ring for the rest */
#hero .ls__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--h-ink-faint);
}
#hero .ls__dot.is-running {
  background: var(--h-pass);
  border-color: var(--h-pass);
}
#hero .ls__dot.is-done {
  background: color-mix(in srgb, var(--h-pass) 55%, var(--h-ground));
  border-color: color-mix(in srgb, var(--h-pass) 55%, var(--h-ground));
}
#hero .ls__dot.is-blocked {
  border-color: var(--h-fail);
}
#hero .ls__dot.is-failed {
  background: var(--h-fail);
  border-color: var(--h-fail);
}
#hero .ls__dot.is-review {
  border-color: var(--h-pass);
}
#hero .ls__facts {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-block: 1px solid var(--h-line-1);
}
#hero .ls__fact {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
#hero .ls__fact dt {
  color: var(--h-ink-faint);
}
#hero .ls__fact dd {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--h-ink);
}
#hero .ls__chip {
  justify-self: start;
  padding: 1px 8px;
  border: 1px solid var(--h-line-2);
  border-radius: var(--h-r-chip);
  background: var(--h-surface-2);
  color: var(--h-ink-dim);
}
#hero .ls__meter {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--h-line-1);
  overflow: hidden;
}
#hero .ls__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--h-ink-faint);
}
#hero .ls__sub {
  margin-top: 2px;
  color: var(--h-ink-faint);
}
#hero .ls__count {
  color: var(--h-ink-dim);
}
#hero .ls__thing {
  color: var(--h-ink);
}
#hero .ls__note {
  color: var(--h-ink-faint);
}
#hero .ls__text {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--h-ink-dim);
}
#hero .ls__cards,
#hero .ls__lanes {
  display: grid;
  gap: 8px;
}
#hero .ls__card,
#hero .ls__lane {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}
#hero .ls__card .ls__dot,
#hero .ls__lane .ls__dot {
  margin-top: 4px;
}
#hero .ls__card-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}
#hero .ls__card-head {
  display: flex;
  gap: 7px;
  min-width: 0;
  color: var(--h-ink);
}
#hero .ls__card-id {
  flex: none;
  color: var(--h-ink-faint);
}
#hero .ls__card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#hero .ls__accept,
#hero .ls__spend {
  color: var(--h-ink-faint);
}
/* phones: the sheet fills the figure and keeps only what reads at that size */
#hero .loop-ov.is-compact .loop-sheet {
  top: 8px;
  right: 8px;
  bottom: 8px;
  width: calc(100% - 16px);
  gap: 6px;
  padding: 12px 14px;
}
#hero .loop-ov.is-compact .ls__title {
  margin-right: 36px;
  font-size: 20px;
}
#hero .loop-ov.is-compact .ls__wide {
  display: none;
}
#hero .loop-ov.is-compact .ls__facts {
  padding: 6px 0;
}
#hero .loop-ov.is-compact .ls__text {
  font-size: 11.5px;
  line-height: 1.42;
}
/* the Escape key cap the tour presses to close the step sheet */
#hero .loop-key {
  position: absolute;
  bottom: 28%;
  left: 0;
  display: none;
  min-width: 40px;
  height: 26px;
  padding: 0 10px;
  border: var(--h-stroke) solid var(--h-line-3);
  border-radius: 7px;
  background: var(--h-surface-3);
  box-shadow: 0 2px 0 var(--h-line-1);
  font: 500 11px/23px var(--font-mono);
  color: var(--h-ink);
  text-align: center;
}
#hero .loop-key.is-down {
  transform: translateY(2px);
  background: var(--h-surface-2);
  box-shadow: none;
}

/* ── the bench: four numbers along the foot of the first screen ── */
#hero .hero__stats {
  margin-top: clamp(40px, 6vh, 72px);
}
#hero .hero__of {
  margin-left: 0.18em;
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--h-ink-faint);
}

/* ── tablets and phones: copy, then the ring, then the bench ── */
@media (max-width: 960px) {
  #hero {
    min-height: 0;
  }
  #hero .hero__grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  #hero .hero__fig {
    width: 100%;
    max-width: 720px;
    justify-self: center;
  }
  /* one column: the claim has the whole width, so it grows back and still breaks as two lines */
  #hero .hero__title {
    font-size: clamp(34px, 6.6vw, 60px);
  }
}
@media (max-width: 640px) {
  #hero .hero__mark {
    margin-top: 22px;
  }
  #hero .hero__obstat {
    font-size: 24px;
  }
  #hero .hero__title {
    margin-top: 18px;
  }
  #hero .hero__lead {
    margin-top: 22px;
  }
  #hero .hero__actions {
    margin-top: 28px;
    width: 100%;
  }
}

/* ==== sections/12-film.css ==== */
/* ==== film: the film under the hero, full bleed at 21:9 (owner: the film section) ====
 *
 * One reserved box, 21:9, the page's whole width until the screen is wider than 21:9 itself (an ultrawide), where it
 * stops at the height that still leaves the header and a little air, and centres. The box never changes size, so
 * nothing on the page moves when the film loads. Inside it the frame carries the picture and its two kinds of
 * control; js/film.js scales and fades the frame as it rises into view (transform and opacity only, on the
 * compositor) and drives the state attributes the rules below read:
 *
 *   data-film-mode="auto|tap"   plays by itself, or waits for a press (phones, touch, Save-Data, reduced motion)
 *   data-offer                  the big play button is the way in
 *   data-played                 the film has run at least once: the small controls stay from then on
 *   data-playing                it is running now: the toggle shows pause, else play
 *
 * The picture is feathered into the ground on all four sides with a static mask, so a 16:9 source cropped to 21:9
 * (the interim film) and the real film alike read as light on the page rather than a box on it. The controls are
 * the only frosted glass in the section: page chrome over the picture, like the header over the page.
 */

/* ───────────────────────────── the section and its box ───────────────────────────── */
#film {
  /* the tallest the film may stand: the viewport under the header, with 24 px of air above and below */
  --film-max-h: calc(100vh - var(--header-h) - 48px);
  /* the bloom runs a little past the box; it is clipped at the page's edge, never scrolled to */
  overflow-x: clip;
}
/*
 * The small-viewport height, where the browser has it, so a phone's collapsing toolbar never resizes the box. It
 * sits behind @supports because a custom property is never checked as it is parsed: declared twice in one rule,
 * the svh line would win everywhere and leave an older engine's width invalid, the box full width and uncapped.
 */
@supports (height: 100svh) {
  #film {
    --film-max-h: calc(100svh - var(--header-h) - 48px);
  }
}

#film .film__box {
  position: relative;
  isolation: isolate;
  width: min(100%, calc(var(--film-max-h) * 21 / 9));
  aspect-ratio: 21 / 9;
  margin-inline: auto;
}

/* the film's light on the page: static, the section's hue, seen only where the picture feathers out */
#film .film__bloom {
  position: absolute;
  inset: -14% -6%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, var(--hue-faint), transparent 74%);
}

/* ───────────────────────────── the frame and the picture ───────────────────────────── */
#film .film__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  transform-origin: 50% 50%;
}
/* only while the reveal is moving does the frame ask for its own layer (js/film.js sets and clears it) */
#film .film__frame[data-moving] {
  will-change: transform, opacity;
}

#film .film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  /* a 16:9 source loses an eighth at the top and at the bottom; held a little low, the car stays whole */
  object-position: 50% 62%;
  background: transparent;
  /* the feather: 6 % at the sides, 10 % at the top and bottom, the two ramps multiplied */
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-composite: intersect;
}
/* a film on YouTube: the player lies over the poster and fills the frame; once it is there the poster is no longer
   drawn under it, and the page's own two buttons stand down, because the player brings its controls with it */
#film .film__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
#film [data-film][data-embedded] .film__poster {
  visibility: hidden;
}
#film [data-film][data-film-embed] .film__controls {
  display: none;
}
#film [data-film][data-film-embed] .film__poster {
  cursor: default;
}
#film [data-film][data-film-embed][data-offer] .film__poster {
  cursor: pointer;
}
/* with scripting off: one plain link under the poster */
#film .film__link {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  color: var(--h-ink, #fff);
}

/* a pointer can start or pause the film from anywhere on the picture once it has controls to answer with */
#film [data-film][data-played] .film__video,
#film [data-film][data-offer] .film__video {
  cursor: pointer;
}

/* ───────────────────────────── the big play button ───────────────────────────── */
/*
 * Frosted, round, centred: the way in on phones, under reduced motion and on Save-Data, and after a browser refused
 * to start the film on its own. Hidden (and out of the tab order) everywhere else.
 */
#film .film__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(52px, 5.6vw, 76px);
  aspect-ratio: 1;
  border-radius: 999px;
  color: var(--h-ink-strong);
  background: color-mix(in srgb, var(--h-ground) 44%, transparent);
  /* the header's frost, exactly (DESIGN.md section 3): one recipe for all of the page's chrome */
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--h-ink) 16%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--h-ink) 8%, transparent), 0 24px 48px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    opacity var(--h-dur) var(--h-ease),
    transform var(--h-dur) var(--h-spring),
    background-color var(--h-dur-fast) var(--h-ease),
    visibility 0s linear var(--h-dur);
}
#film .film__play svg {
  width: 38%;
  height: 38%;
  /* the triangle's weight sits left of its box; a nudge puts its centre of mass on the circle's */
  transform: translateX(7%);
}
#film [data-film][data-offer] .film__play {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  transition-delay: 0s;
}
@media (hover: hover) {
  #film [data-film][data-offer] .film__play:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: color-mix(in srgb, var(--h-ground) 30%, transparent);
  }
}
#film [data-film][data-offer] .film__play:active {
  transform: translate(-50%, -50%) scale(0.95);
}

/* ───────────────────────────── the small controls ───────────────────────────── */
/* bottom right, out of the picture's way; they arrive the first time the film runs and stay */
#film .film__controls {
  position: absolute;
  right: clamp(12px, 2.4vw, 36px);
  bottom: clamp(12px, 2.4vw, 36px);
  z-index: 2;
  display: flex;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity var(--h-dur) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring),
    visibility 0s linear var(--h-dur);
}
#film [data-film][data-played] .film__controls {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

#film .film__ctl {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--h-ink-strong);
  background: color-mix(in srgb, var(--h-ground) 46%, transparent);
  /* the header's frost, the same as the big button's */
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--h-ink) 14%, transparent);
  /* discreet until wanted: a little under full strength, all of it on hover or focus */
  opacity: 0.8;
  transition:
    opacity var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur) var(--h-spring),
    background-color var(--h-dur-fast) var(--h-ease);
}
/* the hit area reaches 44 px whatever the drawn size (HIG's minimum target) */
#film .film__ctl::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
}
#film .film__ctl[hidden] {
  display: none;
}
@media (hover: hover) {
  #film .film__ctl:hover {
    opacity: 1;
    transform: scale(1.06);
    background: color-mix(in srgb, var(--h-ground) 30%, transparent);
  }
}
#film .film__ctl:active {
  transform: scale(0.94);
}

/* the glyphs: drawn at the weight of the header's icons */
#film .film__ico {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#film .film__ico--pause {
  stroke-width: 3;
}
#film .film__ico--play path,
#film .film__ico--muted path:first-child,
#film .film__ico--sound path:first-child {
  fill: currentColor;
}
/* the toggle shows what a press would do: pause while it runs, play while it does not */
#film .film__ico--play,
#film [data-film][data-playing] .film__ico--pause {
  display: block;
}
#film [data-film][data-playing] .film__ico--play {
  display: none;
}
/* the sound button shows the sound as it is: struck through while muted */
#film .film__ctl[aria-pressed='false'] .film__ico--muted,
#film .film__ctl[aria-pressed='true'] .film__ico--sound {
  display: block;
}

/* focus: the page's own ring, kept round on round buttons, and the button at full strength */
#film .film__ctl:focus-visible,
#film .film__play:focus-visible {
  opacity: 1;
  outline: 2px solid var(--h-ink-strong);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ───────────────────────────── phones ───────────────────────────── */
@media (max-width: 640px) {
  #film .film__controls {
    gap: 8px;
  }
  #film .film__ctl {
    width: 36px;
    height: 36px;
  }
  #film .film__ctl::before {
    inset: -4px;
  }
  #film .film__ico {
    width: 16px;
    height: 16px;
  }
}

/* ───────────────────────────── print ───────────────────────────── */
/* paper gets the poster, whole and still */
@media print {
  #film .film__frame {
    transform: none !important;
    opacity: 1 !important;
  }
  #film .film__play,
  #film .film__controls,
  #film .film__bloom {
    display: none;
  }
}

/* ==== sections/15-byo.css ==== */
/* ==== byo: bring your own agent; import any board you have ever made (owner: byo, c-site2) ====
 *
 * Two splits, each a claim beside a figure. The figures are HTML panels joined by SVG wires (js/fig/byo-wires.js
 * draws the wires from measured positions), so every label stays at its type size from 390 px to 1440 px instead of
 * shrinking inside a viewBox. Their inner layout answers to the figure's own width through a container query.
 *
 * State: the markup is the finished frame. A figure module marks what is not reached yet with [data-off]; the rules
 * below say what "off" looks like, so JS off and reduced motion both show the lit, finished figure.
 *
 * Colour by meaning: violet (the section's hue, firmware = agents) only on the agent chips, the agent's wire and the
 * headline keywords; kind colours only on kind icons; pass green only on gates that passed and on the verdict;
 * everything else is ink and grey.
 */

/* ───────────────────────────── the halves ───────────────────────────── */
#byo .byo-half + .byo-half {
  margin-top: var(--section);
}
#byo .split {
  align-items: center;
}

/* three zeros: the claim in numbers, Nihil's own name for them */
#byo .byo-zeros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
}
#byo .byo-zeros .stat {
  align-content: start;
  padding-top: 20px;
}

/* the import rows: each kind icon carries its own data-hue, so the row's hue is the kind's */
#byo .rows code {
  font-size: 0.92em;
}

/* ───────────────────────────── the figure frame ─────────────────────── */
/*
 * A named inline-size container: the figure's own content width decides 2 or 3 agent columns, 1 or 2 file
 * columns, and whether the gate counts fit. Padding is generous on desktop, tight on phones.
 */
#byo .byo-fig {
  container: byo-fig / inline-size;
  padding: clamp(16px, 2.6vw, 28px);
}
/* the agent figure's bloom sits behind the agents, at the top, where the violet is */
#byo .byo-fig--agent .bloom {
  background: radial-gradient(70% 34% at 50% 14%, var(--hue-soft), transparent 72%);
}
#byo .byo-fig--import .bloom {
  background: radial-gradient(70% 30% at 50% 90%, var(--hue-faint), transparent 72%);
}
#byo .byo-flow {
  display: grid;
}

/* while a module sets the first frame, nothing animates towards it (removed one frame later) */
#byo [data-instant] *,
#byo [data-instant] *::before,
#byo [data-instant] *::after {
  transition: none !important;
}

/* ───────────────────────────── panels ───────────────────────────────── */
#byo .byo-panel {
  position: relative;
  min-width: 0;
  background: var(--h-surface-1);
  border: var(--h-stroke) solid var(--h-line-2);
  border-radius: var(--h-r-card);
  overflow: hidden;
  transition:
    border-color var(--h-dur) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
/* the panel head: hatch says "this is a panel", meta on both ends */
#byo .byo-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--h-hatch), var(--h-surface-2);
  border-bottom: 1px solid var(--h-line-1);
}
#byo .byo-panel__head .t-meta {
  white-space: nowrap;
}
#byo .byo-panel__note {
  padding: 0 16px 16px;
  color: var(--h-ink-faint);
  text-wrap: pretty;
}

/* ───────────────────────────── agent chips ─────────────────────────── */
#byo .byo-agents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}
@container byo-fig (min-width: 460px) {
  #byo .byo-agents {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* a chip: a status LED, the program's name, the command (or what it runs on) */
#byo .byo-agent {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: var(--h-r-row);
  border: var(--h-stroke) solid color-mix(in srgb, var(--hue) 46%, var(--h-line-2));
  background: var(--h-surface-2);
  box-shadow: 0 0 0 3px var(--hue-faint);
  transition:
    border-color var(--h-dur) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
#byo .byo-agent--also {
  border-style: dashed;
}
#byo .byo-agent__led {
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 10px var(--hue-glow);
  transition:
    background var(--h-dur) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
#byo .byo-agent__name {
  color: var(--h-ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-agent__exe {
  grid-column: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* not plugged in yet: grey, a touch smaller, no glow */
#byo .byo-agent[data-off] {
  border-color: var(--h-line-2);
  box-shadow: none;
  transform: scale(0.975);
}
#byo .byo-agent[data-off] .byo-agent__led {
  background: var(--h-line-3);
  box-shadow: none;
}
#byo .byo-agent[data-off] .byo-agent__name {
  color: var(--h-ink-faint);
}

/* ───────────────────────────── wires ───────────────────────────────── */
/*
 * A strip between two panels. Without JS it shows a plain trunk (the background line); once a module has laid
 * out its paths ([data-ready]) the SVG takes over. Labels sit beside the trunk's straight lower run.
 */
#byo .byo-wire {
  position: relative;
  z-index: 2;
  height: 56px;
  background: linear-gradient(var(--h-line-3), var(--h-line-3)) 50% 0 / 1.5px 100% no-repeat;
}
#byo .byo-wire--agent {
  height: 104px;
}
#byo .byo-wire[data-ready] {
  background: none;
}
#byo .byo-wire__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#byo .byo-wire__base {
  fill: none;
  stroke: var(--h-line-2);
  stroke-width: 1.5;
}
#byo .byo-wire__lit {
  fill: none;
  stroke: var(--h-ink-faint);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
}
/* the agent's own line is the agent's colour */
#byo .byo-wire--agent .byo-wire__lit {
  stroke: var(--hue);
}
#byo .byo-wire__port {
  fill: var(--h-well);
  stroke: var(--h-ink-faint);
  stroke-width: 1.5;
  transition: stroke var(--h-dur) var(--h-ease), fill var(--h-dur) var(--h-ease);
}
#byo .byo-wire--agent .byo-wire__port {
  stroke: var(--hue);
}
#byo .byo-wire__port[data-off] {
  stroke: var(--h-line-3);
}
#byo .byo-wire__label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}
/* a fan-out splits at mid-height: its label sits beside the trunk above the split */
#byo .byo-wire--fan .byo-wire__label {
  top: 24%;
}
#byo .byo-wire__label--r {
  left: calc(50% + 16px);
}

/*
 * The tags on the agent's wire: the stamp sits ON the trunk, like a toll booth that charges nothing, with
 * "Your keys" beside it where there is room (a centred 1fr / auto / 1fr row keeps the stamp on the line).
 */
#byo .byo-wire__tags {
  position: absolute;
  left: 0;
  right: 0;
  top: 71%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  pointer-events: none;
}
#byo .byo-wire__side {
  justify-self: end;
  white-space: nowrap;
  visibility: hidden;
}
@container byo-fig (min-width: 460px) {
  #byo .byo-wire__side {
    visibility: visible;
  }
}

/* the stamp: somebody else's markup, struck; ours */
#byo .byo-stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--h-r-chip);
  border: var(--h-stroke) solid var(--h-line-3);
  background: var(--h-well);
}
#byo .byo-stamp__was {
  position: relative;
  text-decoration: none;
  color: var(--h-ink-faint);
}
#byo .byo-stamp__strike {
  position: absolute;
  left: -3px;
  right: -3px;
  top: calc(50% - 0.75px);
  height: 1.5px;
  background: var(--h-ink-strong);
  transform-origin: 0 50%;
}
#byo .byo-stamp__now {
  color: var(--h-ink-strong);
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-stamp[data-off] .byo-stamp__now {
  color: var(--h-ink-quiet);
}

/* ───────────────────────────── the core: Nihil ─────────────────────── */
#byo .byo-core {
  border-color: var(--h-line-hover);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-ink) 5%, transparent);
}
#byo .byo-core[data-off] {
  border-color: var(--h-line-2);
  box-shadow: none;
}
#byo .byo-core__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
/* the mini bar's wordmark: the serif "Nihil" at the bar's scale */
#byo .byo-core__mark .brand__name {
  font-size: 20px;
}

/* lanes: build, gates, record; each a label, a track and (for build) a count */
#byo .byo-lanes {
  display: grid;
  gap: 12px;
  padding: 16px;
}
#byo .byo-lane {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 26px;
}
#byo .byo-lane__label {
  color: var(--h-ink-faint);
}
#byo .byo-lane__value {
  min-width: 7ch;
  text-align: right;
  color: var(--h-ink);
}
/* the 14 steps, one segment each */
#byo .byo-steps {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 3px;
}
#byo .byo-steps i {
  height: 8px;
  border-radius: 2px;
  background: var(--h-ink-dim);
  transition: background var(--h-dur-fast) var(--h-ease);
}
#byo .byo-steps i[data-off] {
  background: var(--h-line-2);
}
/* the gates: pills whose dot goes green when they pass */
#byo .byo-gates {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#byo .byo-gate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px 0 9px;
  border-radius: var(--h-r-chip);
  border: var(--h-stroke) solid color-mix(in srgb, var(--h-pass) 32%, var(--h-line-2));
  color: var(--h-ink);
  white-space: nowrap;
  transition:
    border-color var(--h-dur) var(--h-ease),
    color var(--h-dur) var(--h-ease);
}
#byo .byo-gate::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h-pass);
  box-shadow: 0 0 8px color-mix(in srgb, var(--h-pass) 55%, transparent);
  transition:
    background var(--h-dur) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
#byo .byo-gate[data-off] {
  border-color: var(--h-line-2);
  color: var(--h-ink-faint);
}
#byo .byo-gate[data-off]::before {
  background: var(--h-line-3);
  box-shadow: none;
}
#byo .byo-gate__n {
  display: none;
  color: var(--h-ink-faint);
}
@container byo-fig (min-width: 460px) {
  #byo .byo-gate__n {
    display: inline;
    white-space: pre;
  }
}
/* the record: one line, a check when the run is written down */
#byo .byo-record {
  grid-column: 2 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--h-ink);
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-record svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--h-ink-dim);
  transition: opacity var(--h-dur) var(--h-ease);
}
#byo [data-lane='record'][data-off] .byo-record {
  color: var(--h-ink-faint);
}
#byo [data-lane='record'][data-off] .byo-record svg {
  opacity: 0;
}

/* ───────────────────────────── the fab set ─────────────────────────── */
#byo .byo-files {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
@container byo-fig (min-width: 460px) {
  #byo .byo-files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#byo .byo-file {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--h-r-row);
  border: var(--h-stroke) solid var(--h-line-3);
  background: var(--h-surface-1);
  color: var(--h-ink);
  transition:
    border-color var(--h-dur) var(--h-ease),
    color var(--h-dur) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
#byo .byo-file .t-small {
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#byo .byo-file svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--h-ink-dim);
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-file[data-off] {
  border-color: var(--h-line-1);
  color: var(--h-ink-quiet);
  transform: translateY(-4px);
}
#byo .byo-file[data-off] svg {
  color: var(--h-line-3);
}

/* ───────────────────────────── import: the folder ──────────────────── */
#byo .byo-folder {
  color: var(--h-ink);
  text-transform: none;
  letter-spacing: 0.02em;
}
#byo .byo-tree {
  display: grid;
  padding: 6px 0;
}
#byo .byo-tree__file {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 0 16px;
}
/* a dot per file: lit once the importer has read it */
#byo .byo-tree__file::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--h-ink-dim);
  transition: background var(--h-dur) var(--h-ease);
}
#byo .byo-tree__name {
  flex: 1;
  min-width: 0;
  color: var(--h-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-tree__file .t-meta {
  white-space: nowrap;
}
#byo .byo-tree__file[data-off]::before {
  background: var(--h-line-3);
}
#byo .byo-tree__file[data-off] .byo-tree__name {
  color: var(--h-ink-faint);
}

/* ───────────────────────────── import: the conversion ──────────────── */
#byo .byo-convert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 16px 16px 0;
}
#byo .byo-convert svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--h-ink-dim);
}
#byo .byo-convert__from {
  color: var(--h-ink-faint);
}
#byo .byo-convert__to {
  color: var(--h-ink-strong);
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-convert[data-off] .byo-convert__to {
  color: var(--h-ink-quiet);
}
#byo .byo-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 0;
}
#byo .byo-token {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--h-r-chip);
  border: var(--h-stroke) solid var(--h-line-hover);
  color: var(--h-ink-strong);
  transition:
    border-color var(--h-dur) var(--h-ease),
    color var(--h-dur) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
#byo .byo-token[data-off] {
  border-color: var(--h-line-2);
  color: var(--h-ink-quiet);
  transform: scale(0.96);
}
/*
 * The question: what the importer cannot read with confidence goes to you, never into a guess. It is the agent
 * asking, so it carries the agent's violet; dashed, like the chips of the agents that are "also" there.
 */
#byo .byo-ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 12px 16px 0;
  padding: 8px 12px;
  border-radius: var(--h-r-row);
  border: var(--h-stroke) dashed color-mix(in srgb, var(--hue) 46%, var(--h-line-2));
  background: var(--hue-faint);
  transition:
    border-color var(--h-dur) var(--h-ease),
    background var(--h-dur) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
#byo .byo-ask svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--hue);
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-ask__file {
  color: var(--h-ink-faint);
}
#byo .byo-ask__q {
  color: var(--h-ink-strong);
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-ask[data-off] {
  border-color: var(--h-line-2);
  background: transparent;
  transform: scale(0.98);
}
#byo .byo-ask[data-off] svg {
  color: var(--h-line-3);
}
#byo .byo-ask[data-off] .byo-ask__q {
  color: var(--h-ink-quiet);
}

#byo .byo-inventory {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 14px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--h-line-1);
  transition: opacity var(--h-dur) var(--h-ease);
}
#byo .byo-inventory__name {
  color: var(--h-ink);
}
#byo .byo-inventory[data-off] {
  opacity: 0.35;
}

/* ───────────────────────────── import: the Corpus ──────────────────── */
#byo .byo-items {
  display: grid;
}
/* an item, as the Corpus lists it: kind icon, name, one fact */
#byo .byo-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  border-top: 1px solid var(--h-line-1);
}
#byo .byo-item:first-child {
  border-top: 0;
}
#byo .byo-item__icon {
  width: 18px;
  height: 18px;
  color: var(--hue);
  transition: color var(--h-dur) var(--h-ease);
}
#byo .byo-item__name {
  color: var(--h-ink-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#byo .byo-item__meta {
  white-space: nowrap;
}
/* the item's icon stays grey until the item has landed; its rise comes from seek() */
#byo [data-item][data-off] .byo-item__icon,
#byo [data-twin][data-off] .byo-item__icon {
  color: var(--h-line-3);
}

/* the twin and the verdict, the Corpus panel's last line: icon, name over its numbers, the chip */
#byo .byo-twin {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--h-line-1);
  background: var(--h-surface-2);
}
#byo .byo-twin__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  min-width: 0;
}
#byo .byo-twin__name {
  color: var(--h-ink-strong);
}
#byo .byo-twin__meta {
  white-space: nowrap;
}
#byo .byo-twin .verdict-chip {
  transition:
    color var(--h-dur) var(--h-ease),
    border-color var(--h-dur) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
#byo .byo-twin .verdict-chip::before {
  transition: background var(--h-dur) var(--h-ease), box-shadow var(--h-dur) var(--h-ease);
}
#byo .byo-twin .verdict-chip:not([data-verdict]) {
  color: var(--h-ink-faint);
  transform: scale(0.97);
}
/*
 * A narrow figure has no room for the numbers beside the chip: "Twin" and the chip share the first line, the
 * numbers take the whole second one (the text wrapper dissolves so its children can sit in the areas).
 */
@container byo-fig (width < 460px) {
  #byo .byo-twin {
    grid-template-areas:
      'icon name chip'
      '.    meta meta';
    row-gap: 4px;
  }
  #byo .byo-twin > .byo-item__icon {
    grid-area: icon;
  }
  #byo .byo-twin__text {
    display: contents;
  }
  #byo .byo-twin__name {
    grid-area: name;
  }
  #byo .byo-twin__meta {
    grid-area: meta;
  }
  #byo .byo-twin .verdict-chip {
    grid-area: chip;
  }
}

/* ───────────────────────────── responsive ──────────────────────────── */
@media (max-width: 960px) {
  /* stacked: the copy reads first in both halves, the figure follows */
  #byo .split--flip .split__copy {
    order: 1;
  }
  #byo .split--flip .split__fig {
    order: 2;
  }
}
@media (max-width: 640px) {
  #byo .byo-zeros {
    gap: 14px;
  }
  #byo .byo-zeros .stat {
    padding-top: 16px;
  }
  #byo .byo-panel__head {
    padding: 10px 14px;
  }
  #byo .byo-agents {
    padding: 12px;
  }
  #byo .byo-panel__note {
    padding: 0 14px 14px;
  }
  #byo .byo-lanes {
    padding: 14px;
  }
  #byo .byo-lane {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    column-gap: 10px;
  }
}
/* the narrowest phones: the tiles give up a little padding so "Claude Code", "Antigravity" and "your hardware" are
   read whole rather than cut to an ellipsis */
@media (max-width: 380px) {
  #byo .byo-agents {
    padding: 8px;
  }
  #byo .byo-agent {
    column-gap: 7px;
    padding: 11px 9px;
  }
}

/* ==== sections/20-board.css ==== */
/* ==== board: a board is a script (owner: the board section) ==== */

/*
 * Layout. The figure is two panes (the script, the board), so on wide screens it takes the room and the copy runs
 * as a narrow column beside it. The pin is a container: the figure goes side by side when the pin is at least 700 px
 * wide and stacks (script over board) below that, wherever the page puts it.
 */
@media (min-width: 961px) {
  #board .scrolly--copy-left {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  }
}
@media (min-width: 961px) and (max-width: 1180px) {
  #board .scrolly--copy-left {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    column-gap: 40px;
  }
}
#board .scrolly__pin {
  container: board-pin / inline-size;
}
#board .scrolly__step code {
  color: var(--h-ink-strong);
  font-size: 0.9em;
  white-space: nowrap;
}

/* the stage: no padding, the panes fill it; a reserved height while the module loads */
#board .board-fig {
  padding: 0;
}
.js #board .board-fig[data-fig-state='loading'] {
  min-height: 560px;
}
#board .board-fig__poster {
  width: 100%;
  height: auto;
}
/* the bloom sits behind the board, not the script */
#board .board-fig .bloom {
  background: radial-gradient(42% 58% at 72% 52%, var(--hue-soft), transparent 72%);
}

/* ───────────────────────────── the window ───────────────────────────── */
#board .bf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  font-family: var(--font-mono);
  font-size: 13px;
}
#board .bf-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* a pane's head: the view (as the Sandbox names it), the file, and for the board the layer key */
#board .bf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  background: var(--h-hatch), var(--h-surface-1);
  border-bottom: 1px solid var(--h-line-1);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--h-ink-faint);
  white-space: nowrap;
  overflow: hidden;
}
#board .bf-view {
  color: var(--h-ink-dim);
}
#board .bf-file {
  overflow: hidden;
  text-overflow: ellipsis;
}
#board .bf-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--h-ink-faint);
}
#board .bf-sw {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--hue);
}
#board .bf-sw--b {
  margin-left: 8px;
  opacity: 0.42;
}

/* ───────────────────────────── the script ───────────────────────────── */
#board .bf-pane--code {
  background: var(--h-well);
  border-bottom: 1px solid var(--h-line-1);
}
#board .bf-code {
  --bf-vis: 9;
  padding: 16px 0;
}
/* the clip: no vertical padding, so a scrolled view cuts at whole lines and never shows a half line in a margin */
#board .bf-clip {
  position: relative;
  overflow: hidden;
  height: calc(var(--bf-vis) * 20px);
  padding: 0 20px;
}
#board .bf-track {
  position: relative;
}
#board .bf-band {
  position: absolute;
  left: -20px;
  right: -20px;
  top: 0;
  height: 20px;
  background: color-mix(in srgb, var(--h-ink) 4%, transparent);
}
#board .bf pre,
#board .bf code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: inherit;
  line-height: 20px;
}
#board .bf-gutter {
  position: absolute;
  left: 0;
  top: 0;
  width: 2ch;
  text-align: right;
  color: var(--h-ink-quiet);
  opacity: 0.6;
  user-select: none;
}
#board .bf pre.bf-src {
  margin-left: calc(2ch + 14px);
  color: var(--h-ink-dim);
  white-space: pre;
  tab-size: 4;
}
/* syntax: keywords in the sim sky, strings in the system amber, comments quiet; no gradients, no bold */
#board .bf-src .k {
  color: var(--h-kind-sim);
}
#board .bf-src .s {
  color: var(--h-kind-system);
}
#board .bf-src .c {
  color: var(--h-ink-quiet);
}
#board .bf-src .f {
  color: var(--h-ink-strong);
}
#board .bf-caret {
  position: absolute;
  left: calc(2ch + 14px);
  top: 2px;
  width: 2px;
  height: 16px;
  border-radius: 1px;
  background: var(--h-ink-strong);
}
#board .bf.is-live .bf-caret {
  animation: bf-blink 1.06s steps(1, end) infinite;
}
@keyframes bf-blink {
  50% {
    opacity: 0;
  }
}

/* ───────────────────────────── the board ────────────────────────────── */
#board .bf-pane--board {
  position: relative;
}
#board .bf-canvas {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 18px 16px 14px;
}
#board .bf-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
#board .bf-sub {
  fill: color-mix(in srgb, var(--hue) 3%, #0e0f12);
  fill-rule: evenodd;
}
#board .bf-pour {
  fill: color-mix(in srgb, var(--hue) 17%, #0a0b0d);
}
#board .bf-edge {
  fill: none;
  stroke: var(--hue);
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
#board .bf-ring {
  fill: var(--hue);
  fill-rule: evenodd;
  opacity: 0.75;
}
#board .bf-tr {
  fill: none;
  stroke: var(--hue);
  stroke-linecap: round;
  stroke-linejoin: round;
}
#board .bf-tr--p {
  stroke-width: 1.7;
}
#board .bf-tr--s {
  stroke-width: 1.2;
}
#board .bf-layer--b {
  opacity: 0.42;
}
#board .bf-rat {
  fill: none;
  stroke: var(--h-ink-dim);
  stroke-width: 0.8;
  stroke-opacity: 0.7;
}
#board .bf-pad {
  fill: var(--hue);
  fill-rule: evenodd;
  fill-opacity: 0.85;
}
#board .bf-body {
  fill: var(--h-surface-3);
  stroke: var(--h-line-3);
  stroke-width: 0.8;
}
#board .bf-body--mod {
  fill: var(--h-surface-2);
}
#board .bf-shield {
  fill: var(--h-surface-3);
  stroke: var(--h-line-3);
  stroke-width: 0.8;
}
#board .bf-frame {
  fill: none;
  stroke: var(--h-line-hover);
  stroke-width: 0.8;
}
#board .bf-deco {
  fill: none;
  stroke: var(--h-line-hover);
  stroke-width: 0.8;
}
#board .bf-dot {
  fill: var(--h-ink-quiet);
}
#board .bf-kband {
  fill: var(--h-ink-quiet);
}
#board .bf-ref {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  fill: var(--h-ink-faint);
  dominant-baseline: central;
}
#board .bf-ref--big {
  font-size: 15px;
  letter-spacing: 0.04em;
  fill: var(--h-ink-dim);
}
#board .bf-silk {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  fill: var(--h-ink-quiet);
  dominant-baseline: central;
}
#board .bf-via {
  fill: var(--hue);
  fill-rule: evenodd;
}

/* the readout: the real car_ctrl board's numbers, counted once the pour is in */
#board .bf-foot {
  border-top: 1px solid var(--h-line-1);
}
#board .bf-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 14px;
}
#board .bf-stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--h-ink-faint);
  white-space: nowrap;
}
#board .bf-stat b {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--h-ink-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* ───────────────────────── side by side, when there is room ─────────────────────── */
@container board-pin (min-width: 700px) {
  .js #board .board-fig[data-fig-state='loading'] {
    min-height: 499px;
  }
  #board .bf {
    grid-template-columns: calc(36ch + 2ch + 14px + 40px) minmax(0, 1fr);
  }
  #board .bf-pane--code {
    border-bottom: 0;
    border-right: 1px solid var(--h-line-1);
  }
  #board .bf-code {
    flex: 1;
    padding: 18px 0;
  }
  #board .bf-clip {
    height: auto;
    min-height: calc(21 * 20px);
  }
  #board .bf-canvas {
    padding: 22px 22px 18px;
  }
  #board .bf-stats {
    padding: 14px 22px 16px;
  }
}

/* a narrow board: the silk is set larger in board units so the refdes stay readable on a phone */
@container board-pin (max-width: 520px) {
  #board .bf-ref {
    font-size: 13px;
  }
  #board .bf-ref--big {
    font-size: 17px;
  }
  #board .bf-silk {
    font-size: 12px;
  }
}

/* phones: the stats keep one row; the head drops the view names to keep the layer key */
@media (max-width: 480px) {
  #board .bf-view {
    display: none;
  }
  #board .bf-head {
    padding: 0 14px;
  }
  #board .bf-code {
    padding: 14px 0;
  }
  #board .bf-clip {
    padding: 0 16px;
  }
  #board .bf-canvas {
    padding: 14px 10px 10px;
  }
  #board .bf-stats {
    gap: 4px;
    padding: 10px 12px 12px;
  }
  #board .bf-stat b {
    font-size: 13px;
  }
  #board .bf-stat {
    font-size: 12px;
  }
}

/* ==== sections/30-pipeline.css ==== */
/* ==== pipeline: fourteen steps, four gates, one panel (owner: the pipeline section) ==== */

/*
 * Layout
 *   >= 1100  the tile panel and the numbers side by side; tiles 7 x 2 with the gate band between the rows
 *   960-1100 the numbers become a row under the panel; tiles still 7 x 2
 *   640-960  tiles 4 across, the band after the last tile
 *   <  640   tiles 2 across
 *
 * Colour: everything is neutral until it means something. Green (the section hue, proof) appears on the gate
 * tiles once they are clean, on the gate band, on the rail segment over a gate, and on a number once its step
 * has passed. Nothing else takes it.
 */

/* ───────────────────────────── the body: panel + numbers ─────────────────── */
#pipeline .pipe {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(200px, 18vw, 256px);
  gap: 40px;
  align-items: start;
}

/* ───────────────────────────── the panel ─────────────────────────────────── */
#pipeline .pipe__board {
  padding: 18px 16px 16px;
  display: grid;
  gap: 16px;
}
/* wide: the numbers column runs longer than the panel, so the panel rides along beside it instead of leaving a
   blank corner under itself; below the scrolly breakpoint the two stack and nothing pins */
@media (min-width: 961px) {
  #pipeline .pipe__board {
    position: sticky;
    top: var(--pin-top, 96px);
  }
}

/* the legend and the readout: what each tile says, and how far the run has got */
#pipeline .pipe__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
}
#pipeline .pipe__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  line-height: 1.2;
}
/* each key carries a small swatch of the ink its row uses in the tiles */
#pipeline .pipe__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#pipeline .pipe__key::before {
  content: '';
  width: 10px;
  height: 1.5px;
  background: var(--h-ink-faint);
}
#pipeline .pipe__key--n::before {
  height: 8px;
  width: 8px;
  border-radius: 2px;
  background: var(--h-ink-strong);
}
#pipeline .pipe__key--q {
  color: var(--h-ink-quiet);
}
#pipeline .pipe__key--q::before {
  background: var(--h-ink-quiet);
}
#pipeline .pipe__readout {
  flex: none;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink-quiet);
}
#pipeline .pipe__done {
  color: var(--h-ink-strong);
}

/* ───────────────────────────── the tile grid ─────────────────────────────── */
/*
 * Each tile spans four grid rows (head, name, tool, stop) and takes them as a subgrid, so every tile in a row
 * shares its row heights: numbers, names, tools and stop lines all sit on common lines across the panel.
 */
#pipeline .pipe__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
/* the list keeps its semantics; its items join the panel's grid */
#pipeline .pipe__tiles {
  display: contents;
}

/* ── the tile ── */
#pipeline .pipe__tile {
  position: relative;
  grid-row: span 4;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
  padding: 14px 12px 14px;
  overflow: hidden;
  background: var(--h-surface-1);
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-row);
  transition:
    transform var(--h-dur) var(--h-spring),
    border-color var(--h-dur-fast) var(--h-ease),
    background-color var(--h-dur) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}

/* the rail: the progress line, one segment per tile along its top edge; seek() writes only its scaleX */
#pipeline .pipe__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--h-ink-dim);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
#pipeline .pipe__tile--gate .pipe__rail {
  background: var(--hue);
}

/* ── head: the number and the gate tag ── */
#pipeline .pipe__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 14px;
}
#pipeline .pipe__n {
  font-family: var(--font-mono);
  font-size: 28px; /* the .t-h3 step */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--h-line-hover);
  transition: color var(--h-dur) var(--h-ease);
}
#pipeline .pipe__tag {
  flex: none;
  margin-top: 2px;
  padding: 3px 5px 2px;
  border: 1px solid var(--h-line-3);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px; /* the .t-meta step */
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h-ink-quiet);
  transition:
    color var(--h-dur) var(--h-ease),
    border-color var(--h-dur) var(--h-ease),
    background-color var(--h-dur) var(--h-ease);
}

/* ── name, tool, stop ── */
#pipeline .pipe__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--h-ink-faint);
  text-wrap: balance;
  padding-bottom: 14px;
  transition: color var(--h-dur) var(--h-ease);
}
#pipeline .pipe__tool {
  padding: 10px 0 12px;
  border-top: 1px solid var(--h-line-1);
  font-family: var(--font-mono);
  font-size: 12.5px; /* the .t-small step */
  font-weight: 500;
  line-height: 1.45;
  color: var(--h-ink-faint);
  overflow-wrap: anywhere;
  transition: border-color var(--h-dur) var(--h-ease);
}
#pipeline .pipe__stop {
  align-self: end;
  font-size: 13px; /* the .stat__label step */
  line-height: 1.4;
  color: var(--h-ink-quiet);
  text-wrap: pretty;
}

/* ── lit: the step has run clean ── */
#pipeline .pipe__tile.is-lit {
  transform: translateY(-2px);
  border-color: var(--h-line-3);
  box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.9);
}
#pipeline .pipe__tile.is-lit .pipe__n,
#pipeline .pipe__tile.is-lit .pipe__name {
  color: var(--h-ink-strong);
}
#pipeline .pipe__tile.is-lit .pipe__tool {
  border-top-color: var(--h-line-2);
}
/* running: the step the run is in right now */
#pipeline .pipe__tile.is-running {
  border-color: var(--h-line-hover);
}
#pipeline .pipe__tile.is-running .pipe__n {
  color: var(--h-ink-dim);
}

/* ── a gate, clean: the dark green tint, the green outline, the tag lit ── */
#pipeline .pipe__tile--gate.is-lit {
  background: color-mix(in srgb, var(--hue) 9%, var(--h-surface-1));
  border-color: color-mix(in srgb, var(--hue) 72%, var(--h-line-3));
  box-shadow:
    0 0 0 3px var(--hue-faint),
    0 10px 24px -14px var(--hue-glow);
}
#pipeline .pipe__tile--gate.is-lit .pipe__tag {
  color: var(--h-pass-ink);
  border-color: color-mix(in srgb, var(--hue) 55%, transparent);
  background: var(--hue-faint);
}
#pipeline .pipe__tile--gate.is-lit .pipe__tool {
  border-top-color: color-mix(in srgb, var(--hue) 22%, var(--h-line-1));
}
#pipeline .pipe__tile--gate.is-lit .pipe__stop {
  color: var(--h-ink-dim);
}

/* ───────────────────────────── the gate band ─────────────────────────────── */
/* between the rows on wide screens, spanning the columns from gate 2 to gate 13; after the tiles below 960 */
#pipeline .pipe__band {
  grid-row: 5;
  grid-column: 2 / 7;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin: 4px 0;
  padding: 10px 16px;
  border: var(--h-stroke) solid color-mix(in srgb, var(--hue) 45%, var(--h-line-2));
  border-radius: var(--h-r-control);
  background: color-mix(in srgb, var(--hue) 7%, var(--h-well));
  color: var(--h-ink-dim);
  opacity: 0;
  transform: translateY(6px) scale(0.985);
  transition:
    opacity var(--h-dur-slow) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring);
}
#pipeline .pipe__band.is-shown {
  opacity: 1;
  transform: none;
}
#pipeline .pipe__band > span:last-child {
  text-wrap: balance;
}
#pipeline .pipe__band b {
  font-weight: 600;
  color: var(--h-pass-ink);
}
#pipeline .pipe__band-tag {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--hue);
}
/* the second row of tiles sits under the band */
#pipeline .pipe__tiles > .pipe__tile:nth-child(-n + 7) {
  grid-row: 1 / span 4;
}
#pipeline .pipe__tiles > .pipe__tile:nth-child(n + 8) {
  grid-row: 6 / span 4;
}

/* JS off: the steps as a plain two-column list */
#pipeline .pipe__fallback {
  grid-column: 1 / -1;
  columns: 2;
  column-gap: 32px;
}
#pipeline .pipe__fallback li {
  padding: 6px 0;
  border-bottom: 1px solid var(--h-line-1);
}
#pipeline .pipe__fallback b {
  color: var(--hue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

/* ───────────────────────────── the numbers ───────────────────────────────── */
#pipeline .pipe__side {
  display: grid;
  gap: 24px;
  min-width: 0;
}
#pipeline .pipe__stats {
  display: grid;
  gap: 22px;
}
#pipeline .pipe__stat {
  padding-top: 18px;
  gap: 8px;
}
#pipeline .pipe__stat:first-child {
  border-top-color: transparent;
  padding-top: 2px;
}
#pipeline .pipe__stat .t-num {
  white-space: nowrap;
  transition: color var(--h-dur) var(--h-ease);
}
/* the slashes and the unit: part of the number, quieter than it */
#pipeline .pipe__sep {
  display: inline-block;
  margin: 0 0.14em;
  font-weight: 300;
  color: var(--h-ink-quiet);
}
#pipeline .pipe__unit {
  margin-left: 0.12em;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--h-ink-faint);
}
/* live: a number is ink until its step is clean, then it takes the hue */
#pipeline .pipe[data-live] .pipe__stat:not(.is-set) .t-num {
  color: var(--h-ink-quiet);
}
#pipeline .pipe__caption {
  padding-top: 16px;
  border-top: 1px solid var(--h-line-1);
  text-wrap: pretty;
}

/* ───────────────────────────── fourteen is the floor ────────────────────── */
/*
 * Under the run: the steps an agent adds. Copy on the left, a second, smaller panel of tiles on the right, drawn in
 * the pipeline's tile style with dashed outlines (added, not built in). Static: they are simply present, so they
 * take the lit ink without the lift. Green stays on the one gate among them.
 */
#pipeline .pipe-more {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: center;
  margin-top: 112px;
  padding-top: 56px;
  border-top: 1px solid var(--h-line-1);
}
#pipeline .pipe-more__copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}
#pipeline .pipe-more__copy .t-lead {
  max-width: 46ch;
}
/* the facts: a mono key, then one line */
#pipeline .pipe-more__facts {
  display: grid;
  margin-top: 6px;
  border-top: 1px solid var(--h-line-1);
}
#pipeline .pipe-more__facts li {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--h-line-1);
  color: var(--h-ink-dim);
}
#pipeline .pipe-more__facts li > span {
  color: var(--h-ink-quiet);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

#pipeline .pipe-more__board {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px 16px 16px;
}
#pipeline .pipe-more__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

/* an added tile: dashed, present, not lifted */
#pipeline .pipe__tile--added {
  border-style: dashed;
  border-color: var(--h-line-3);
  background: color-mix(in srgb, var(--h-surface-1) 82%, transparent);
}
#pipeline .pipe__tile--added .pipe__n,
#pipeline .pipe__tile--added .pipe__name {
  color: var(--h-ink-strong);
}
#pipeline .pipe__tile--added .pipe__tool {
  border-top-style: dashed;
  border-top-color: var(--h-line-2);
}
/* an added gate: the same tint and tag as the built-in gates, the outline dashed */
#pipeline .pipe__tile--added.pipe__tile--gate {
  background: color-mix(in srgb, var(--hue) 8%, var(--h-surface-1));
  border-color: color-mix(in srgb, var(--hue) 65%, var(--h-line-3));
}
#pipeline .pipe__tile--added.pipe__tile--gate .pipe__tag {
  color: var(--h-pass-ink);
  border-color: color-mix(in srgb, var(--hue) 55%, transparent);
  background: var(--hue-faint);
}
#pipeline .pipe__tile--added.pipe__tile--gate .pipe__tool {
  border-top-color: color-mix(in srgb, var(--hue) 22%, var(--h-line-1));
}
#pipeline .pipe__tile--added.pipe__tile--gate .pipe__stop {
  color: var(--h-ink-dim);
}

/* ───────────────────────────── responsive ────────────────────────────────── */
/*
 * 1100-1280: the side column is in, the container is not yet at full width, so seven tiles are at their narrowest.
 * A tighter panel and a touch of negative tracking on the tool line keep the longest unbroken tool name
 * ("distributor_", 12 characters) on one line.
 */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  #pipeline .pipe {
    gap: 32px;
  }
  #pipeline .pipe__board {
    padding: 16px 10px 10px;
  }
  #pipeline .pipe__grid {
    gap: 6px;
  }
  #pipeline .pipe__tile {
    padding-inline: 9px;
  }
  #pipeline .pipe__tool {
    letter-spacing: -0.02em;
  }
}
@media (max-width: 1099.98px) {
  #pipeline .pipe {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  /* the numbers as a row under the panel, on one top hairline */
  #pipeline .pipe__stats {
    grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
    gap: 32px 28px;
  }
  #pipeline .pipe__stat:first-child {
    border-top-color: var(--h-line-2);
    padding-top: 18px;
  }
  /* the added steps: copy above, the panel full width under it */
  #pipeline .pipe-more {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 88px;
    padding-top: 48px;
  }
  #pipeline .pipe-more__copy .t-lead {
    max-width: 64ch;
  }
}
@media (max-width: 959.98px) {
  #pipeline .pipe__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #pipeline .pipe__tiles > .pipe__tile:nth-child(n) {
    grid-row: auto / span 4;
  }
  /* 14 tiles in 4 columns leave two cells beside 13 and 14: the band takes them, the full height of that row */
  #pipeline .pipe__band {
    grid-row: auto / span 4;
    grid-column: 3 / -1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 20px;
    border-radius: var(--h-r-row);
  }
}
@media (max-width: 639.98px) {
  #pipeline .pipe__board {
    padding: 14px 10px 10px;
    border-radius: var(--h-r-card);
  }
  #pipeline .pipe__bar {
    align-items: flex-start;
  }
  #pipeline .pipe__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  /* two columns fill evenly: the band goes back under the tiles, full width */
  #pipeline .pipe__band {
    grid-row: auto;
    grid-column: 1 / -1;
    gap: 8px;
    padding: 12px 14px;
  }
  #pipeline .pipe__fallback {
    columns: 1;
  }
  #pipeline .pipe-more {
    margin-top: 64px;
    padding-top: 40px;
  }
  #pipeline .pipe-more__board {
    padding: 14px 10px 10px;
    border-radius: var(--h-r-card);
  }
  #pipeline .pipe-more__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #pipeline .pipe-more__facts li {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

/* ==== sections/40-copper.css ==== */
/* ==== copper: the board runs before it exists (owner: the copper section) ====
 *
 * The instrument is laid out like the app's Sandbox window in its Circuit view: a title bar, the board with its
 * voltage legend, a toolbar (play, layer, time), the live probes beside it and a scope strip under everything.
 * Wide: board | probes, scope across. Below 960 px: one column, probes in two columns. Below 640 px: the legend
 * moves under the board and the layer control takes a row of its own.
 * Every value is from the type scale; the voltage and heat ramps are the only gradients; chrome stays neutral.
 */

/* ───────────── the stage: no padding of its own, the title bar sits flush like a window's ───────────── */
#copper .cu {
  padding: 0;
}
html:not(.js) #copper .cu__ui {
  display: none;
}
#copper .cu__poster {
  width: 100%;
  height: auto;
}
#copper .cu__ui {
  position: relative;
  z-index: 1;
}

/* ───────────── title bar ───────────── */
#copper .cu__appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid var(--h-line-1);
  background: color-mix(in srgb, var(--h-surface-1) 94%, transparent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--h-ink-faint);
  white-space: nowrap;
}
#copper .cu__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#copper .cu__crumb svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--h-kind-board);
}
#copper .cu__crumb b {
  font-size: 14px;
  font-weight: 600;
  color: var(--h-ink-strong);
}
#copper .cu__view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  margin-left: 10px;
  padding: 0 12px;
  border-radius: 9px;
  border: var(--h-stroke) solid var(--hue);
  color: var(--h-ink-strong);
  box-shadow: 0 0 0 2px var(--hue-faint), 0 0 14px var(--hue-glow);
}
#copper .cu__view svg {
  width: 14px;
  height: 14px;
  color: var(--hue);
}
#copper .cu__spacer {
  flex: 1;
}
/* the firmware's state, live: quiet while ARMED, lit in the section's hue while it drives */
#copper .cu__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: var(--h-r-chip);
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-surface-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--h-ink-dim);
  font-variant-numeric: tabular-nums;
  transition:
    color var(--h-dur) var(--h-ease),
    border-color var(--h-dur) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
#copper .cu__state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h-ink-quiet);
  transition: background var(--h-dur) var(--h-ease), box-shadow var(--h-dur) var(--h-ease);
}
#copper .cu__state[data-state='drive'] {
  color: var(--h-ink-strong);
  border-color: color-mix(in srgb, var(--hue) 50%, var(--h-line-2));
  box-shadow: 0 0 0 2px var(--hue-faint);
}
#copper .cu__state[data-state='drive'] i {
  background: var(--hue);
  box-shadow: 0 0 10px var(--hue-glow);
}
#copper .cu__runid {
  color: var(--h-ink-faint);
}

/* ───────────── body grid ───────────── */
#copper .cu__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  grid-template-areas:
    'main panel'
    'scope scope';
  gap: 18px 20px;
  padding: 20px;
}
#copper .cu__main {
  grid-area: main;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

/* ───────────── the board ───────────── */
#copper .cu__stage {
  position: relative;
  min-width: 0;
}
#copper .cu__board {
  position: relative;
  aspect-ratio: 94.0223 / 52.0277;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--h-line-1);
  /* the KiCad-derived top shows at once; the live canvas paints over it when the recording arrives */
  background: url('../media/copper/board-base.webp') center / 100% 100% no-repeat, var(--h-well);
}
#copper .cu__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}
#copper .cu__loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 14px;
  border-radius: var(--h-r-chip);
  background: color-mix(in srgb, var(--h-well) 86%, transparent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--h-ink-faint);
  pointer-events: none;
}
#copper .cu__loading[hidden] {
  display: none;
}

/* the hover chip: the lit net, its live value; follows the pointer through transform only */
#copper .cu__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 10px;
  border: 1px solid var(--h-line-3);
  background: color-mix(in srgb, var(--h-surface-1) 94%, transparent);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.85);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--h-ink);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform;
}
#copper .cu__tip[hidden] {
  display: none;
}
#copper .cu__tip b {
  font-weight: 600;
  color: var(--h-ink-strong);
}
#copper .cu__tip span {
  font-variant-numeric: tabular-nums;
}
#copper .cu__tip-sw {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--h-ink-quiet);
}
#copper .cu__tip .cu__tip-pin {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-ink-quiet);
}

/* the legend, as the app floats it beside the board: full scale at the ends, zero in the middle */
#copper .cu__legend {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--h-well) 78%, transparent);
  border: 1px solid var(--h-line-1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink-dim);
  pointer-events: none;
}
#copper .cu__lg-bar {
  position: relative;
  width: 6px;
  height: clamp(72px, 14vw, 132px);
  margin-right: 2px;
}
#copper .cu__lg-bar i {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: linear-gradient(to top, var(--cu-ramp, #808080, #808080));
}
#copper .cu__lg-mid {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  color: var(--h-ink-faint);
}

/* ───────────── toolbar: play, layer, time ───────────── */
#copper .cu__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
#copper .cu__play {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--h-r-control);
  border: var(--h-stroke) solid var(--h-line-3);
  color: var(--h-ink);
  transition:
    transform var(--h-dur-fast) var(--h-spring),
    border-color var(--h-dur-fast) var(--h-ease),
    background var(--h-dur-fast) var(--h-ease);
}
#copper .cu__play:hover {
  border-color: var(--h-line-hover);
  background: color-mix(in srgb, var(--h-ink) 6%, transparent);
}
#copper .cu__play:active {
  transform: scale(0.94);
}
#copper .cu__play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
#copper .cu__ico-play,
#copper .cu[data-paused] .cu__ico-pause {
  display: none;
}
#copper .cu[data-paused] .cu__ico-play {
  display: block;
}
#copper .cu[data-reduced] .cu__play {
  display: none;
}

/* the layer control: a segmented control, the selected segment raised */
#copper .cu__seg {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border-radius: var(--h-r-control);
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-well);
}
#copper .cu__seg button {
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--h-ink-faint);
  white-space: nowrap;
  transition:
    color var(--h-dur-fast) var(--h-ease),
    background var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur-fast) var(--h-ease);
}
#copper .cu__seg button:hover {
  color: var(--h-ink);
}
#copper .cu__seg button[aria-checked='true'] {
  background: var(--h-surface-3);
  color: var(--h-ink-strong);
  box-shadow: inset 0 0 0 1px var(--h-line-3), 0 1px 2px rgba(0, 0, 0, 0.5);
}
#copper .cu__seg button[hidden] {
  display: none;
}

/* the scrubber: a native range input over a hairline track; the played part is lit in the section's hue */
#copper .cu__scrub {
  position: relative;
  flex: 1 1 auto;
  min-width: 96px;
  height: 38px;
  display: grid;
  align-items: center;
}
#copper .cu__scrub-track {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--h-line-2);
  pointer-events: none;
}
#copper .cu__scrub-track i {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: var(--hue);
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}
#copper .cu__scrub-track b {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 14px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--h-ink-dim);
}
#copper .cu__scrub input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 38px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#copper .cu__scrub input:focus-visible {
  outline: none;
}
#copper .cu__scrub input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}
#copper .cu__scrub input::-moz-range-track {
  height: 4px;
  background: transparent;
}
#copper .cu__scrub input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--h-ink-strong);
  box-shadow: 0 0 0 4px var(--hue-faint), 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform var(--h-dur-fast) var(--h-spring);
}
#copper .cu__scrub input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--h-ink-strong);
  box-shadow: 0 0 0 4px var(--hue-faint), 0 2px 8px rgba(0, 0, 0, 0.6);
}
#copper .cu__scrub input:active::-webkit-slider-thumb {
  transform: scale(1.18);
}
#copper .cu__scrub input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px var(--h-well), 0 0 0 4px var(--h-ink-strong);
}
#copper .cu__scrub input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 2px var(--h-well), 0 0 0 4px var(--h-ink-strong);
}
#copper .cu__time {
  flex: none;
  min-width: 13ch;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--h-ink-strong);
  font-variant-numeric: tabular-nums;
}

/* ───────────── the probe panel ───────────── */
#copper .cu__panel {
  grid-area: panel;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--h-line-1);
  background: var(--h-surface-1);
  overflow: hidden;
}
#copper .cu__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
}
#copper .cu__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--h-ink-quiet);
}
#copper .cu__probes {
  display: grid;
  padding: 2px 6px 8px;
}
#copper .cu__probes li[hidden] {
  display: none;
}
#copper .cu__probe {
  --c: var(--h-ink-quiet);
  width: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--h-ink-faint);
  transition: background var(--h-dur-fast) var(--h-ease), color var(--h-dur-fast) var(--h-ease);
}
#copper .cu__probe:hover {
  background: color-mix(in srgb, var(--h-ink) 5%, transparent);
  color: var(--h-ink);
}
#copper .cu__probe i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  transition: background var(--h-dur-fast) var(--h-ease), box-shadow var(--h-dur-fast) var(--h-ease);
}
#copper .cu__probe[aria-pressed='true'] {
  color: var(--h-ink);
}
#copper .cu__probe[aria-pressed='true'] i {
  background: var(--c);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c) 55%, transparent);
}
#copper .cu__pn {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#copper .cu__pv {
  color: var(--h-ink-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#copper .cu__verdict {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: auto;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--h-line-1);
}

/* ───────────── the scope strip ───────────── */
#copper .cu__scope {
  grid-area: scope;
  display: grid;
  gap: 4px;
  padding: 12px 12px 4px;
  border-radius: 16px;
  border: 1px solid var(--h-line-1);
  background: var(--h-well);
  min-width: 0;
}
#copper .cu__scope-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 24px;
  padding: 0 12px;
}
#copper .cu__chans {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
#copper .cu__chan {
  --c: var(--h-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--c);
  white-space: nowrap;
}
#copper .cu__chan::before {
  content: '';
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--c);
  box-shadow: 0 0 6px var(--c);
}
#copper .cu__chan b {
  font-weight: 500;
  color: var(--h-ink-strong);
  font-variant-numeric: tabular-nums;
}
#copper .cu__scope-canvas {
  display: block;
  width: 100%;
  height: 176px;
}

/* ───────────── the scope view ─────────────
 * copper.js writes two numbers on the stage while the view springs: --cu-v (0 the board .. 1 the scope, clamped) and
 * --cu-vs (the same spring with its overshoot, for the scale). The board shrinks into the scope's top-right corner,
 * exactly onto its side column; the scope fades in under it from 0.98 scale. Only transform and opacity move. */
#copper .cu__stage {
  --cu-v: 0;
  --cu-vs: 0;
  --cu-inset: 0.26;
}
#copper .cu__board {
  z-index: 3;
  transform-origin: 100% 0;
  transform: scale(calc(1 - (1 - var(--cu-inset)) * var(--cu-v)));
}
#copper .cu__legend {
  opacity: calc(1 - var(--cu-v));
}
#copper .cu__osc {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--cu-inset) * 100%);
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 14px;
  border: 1px solid var(--h-line-1);
  background: var(--h-well);
  overflow: hidden;
  opacity: var(--cu-v);
  transform: scale(calc(0.98 + 0.02 * var(--cu-vs)));
  transform-origin: 30% 50%;
  pointer-events: none;
}
#copper .cu[data-view='scope'] .cu__osc {
  pointer-events: auto;
}
#copper .cu[data-view='scope'] .cu__board {
  pointer-events: none;
}
#copper .cu__osc-head {
  grid-column: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  min-width: 0;
  padding: 12px 14px 4px;
}
/* the scope's chips sit in the plot column only: the meta size and tighter spacing keep five on one row */
#copper .cu__osc-head .cu__chans {
  gap: 6px 14px;
}
#copper .cu__osc-head .cu__chan {
  gap: 6px;
  font-size: 12px;
}
#copper .cu__osc-head .cu__chan::before {
  width: 10px;
}
#copper .cu__osc-canvas {
  grid-column: 1;
  grid-row: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}
/* the side column: under the board's inset (its height is the column's width over the board's aspect) */
#copper .cu__osc-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0;
  padding: calc(55.34% + 18px) 14px 14px;
  border-left: 1px solid var(--h-line-1);
}
#copper .cu__osc-side div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
#copper .cu__osc-side dt {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-ink-quiet);
}
#copper .cu__osc-side dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--h-ink-strong);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
/* the segment the demo cursor presses dips like a real press */
#copper .cu__seg button {
  transition:
    color var(--h-dur-fast) var(--h-ease),
    background var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur-fast) var(--h-spring);
}
#copper .cu__seg button.is-pressing {
  transform: scale(0.94);
  background: var(--h-surface-3);
  color: var(--h-ink-strong);
}
#copper .cu__short {
  display: none;
}

/* ───────────── the claims and the shots under the instrument ───────────── */
#copper .cu-rows {
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#copper .cu-rows .row {
  border-top: 0;
  border-left: 1px solid var(--h-line-1);
}
#copper .cu-rows .row:first-child {
  border-left: 0;
}
#copper .cu-shots {
  margin-top: 20px;
}

/* ───────────── responsive ───────────── */
@media (max-width: 1100px) {
  #copper .cu__body {
    grid-template-columns: minmax(0, 1fr) 252px;
  }
}
@media (max-width: 960px) {
  #copper .cu__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'main'
      'panel'
      'scope';
  }
  #copper .cu__probes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 4px;
  }
  #copper .cu__verdict {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
  }
  #copper .cu-rows {
    grid-template-columns: 1fr;
  }
  #copper .cu-rows .row {
    border-left: 0;
    border-top: 1px solid var(--h-line-1);
  }
  #copper .cu-rows .row:first-child {
    border-top: 0;
  }
}
@media (max-width: 640px) {
  #copper .cu__appbar {
    height: 48px;
    padding: 0 12px 0 14px;
  }
  #copper .cu__runid,
  #copper .cu__view,
  #copper .cu__crumb > span {
    display: none;
  }
  #copper .cu__crumb {
    overflow: hidden;
  }
  #copper .cu__body {
    gap: 12px;
    padding: 12px;
  }
  #copper .cu__board {
    border-radius: 10px;
  }
  /* the legend leaves the board: a horizontal ramp under it, negative on the left */
  #copper .cu__legend {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    margin-top: 12px;
    padding: 0 2px 20px;
    border: 0;
    background: none;
  }
  #copper .cu__lg-bar {
    flex: 1;
    width: auto;
    height: 6px;
    margin: 0;
  }
  #copper .cu__lg-bar i {
    background: linear-gradient(to right, var(--cu-ramp, #808080, #808080));
  }
  #copper .cu__lg-mid {
    right: auto;
    left: 50%;
    top: 12px;
    transform: translateX(-50%);
  }
  #copper .cu__bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  #copper .cu__seg {
    order: -1;
    flex: 1 1 100%;
  }
  #copper .cu__seg button {
    flex: 1 1 auto;
    padding: 0 8px;
  }
  #copper .cu__long {
    display: none;
  }
  #copper .cu__short {
    display: inline;
  }
  #copper .cu__board {
    transform-origin: 50% 40%;
    transform: scale(calc(1 - 0.04 * var(--cu-v)));
    opacity: calc(1 - var(--cu-v));
  }
  #copper .cu__osc {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 10px;
  }
  #copper .cu__osc-side {
    display: none;
  }
  #copper .cu__osc-head {
    gap: 4px 14px;
    padding: 10px 10px 2px;
  }
  #copper .cu__time {
    min-width: 0;
  }
  #copper .cu__panel-head {
    padding: 12px 12px 6px;
  }
  #copper .cu__probes {
    padding: 2px 4px 6px;
  }
  /* two columns of small tiles: the name over its value, so nothing is cut */
  #copper .cu__probe {
    grid-template-columns: 9px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 4px 8px;
    height: auto;
    padding: 9px 10px;
  }
  #copper .cu__pn {
    grid-column: 2;
    font-size: 12px;
  }
  #copper .cu__pv {
    grid-column: 2;
    font-size: 14px;
  }
  #copper .cu__scope {
    padding: 10px 6px 2px;
  }
  #copper .cu__scope-head {
    padding: 0 6px;
  }
  #copper .cu__scope-canvas {
    height: 136px;
  }
}

/* ==== sections/45-twin.css ==== */
/* ==== twin: the RC car digital twin, a recorded run on a scope (owner: c-site2) ====
 *
 * The figure is one instrument in four bands: the bar (what runs, the firmware's state, the verdict), the box with
 * the car and its probes, the scope, the transport. Desktop puts the probes beside the box; under 960 they fold into
 * a grid beneath it (four across on tablets, two on phones). Every moving value is written by fig/twin.js from
 * seek(t); nothing here animates on its own except hover and press feedback.
 */

/* ───────────────────────────── the figure shell ───────────────────────────── */
#twin .twin-fig {
  /* the instrument sits on the stage grid; the bars inside carry their own surfaces */
  --twin-pad: 20px;
  --twin-lane: 60px;
  margin-bottom: 40px;
}
#twin .twin-fig__poster {
  width: 100%;
  height: auto;
}
#twin .twin-ui {
  display: grid;
  min-width: 0;
}
/* with JS off the poster speaks for the figure; the empty instrument never shows */
html:not(.js) #twin .twin-ui {
  display: none;
}

/* ───────────────────────────── the bar ───────────────────────────── */
#twin .twin-bar {
  height: 48px;
  padding: 0 var(--twin-pad);
  gap: 10px;
  background: color-mix(in srgb, var(--h-surface-1) 88%, transparent);
  min-width: 0;
}
#twin .twin-bar__icon {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--hue);
}
#twin .twin-bar__title {
  color: var(--h-ink-strong);
  font-weight: 500;
  white-space: nowrap;
}
#twin .twin-bar__meta {
  color: var(--h-ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#twin .twin-bar__state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--h-line-2);
  color: var(--h-ink-dim);
  white-space: nowrap;
}
#twin .twin-bar__state::before {
  content: 'fw';
  color: var(--h-ink-quiet);
}
#twin .twin-bar__verdict {
  height: 28px;
  font-size: 12.5px;
}

/* ───────────────────────────── the box and its probes ───────────────────────────── */
#twin .twin-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 20px;
  align-items: start;
  padding: var(--twin-pad) var(--twin-pad) 14px;
}
#twin .twin-arena {
  position: relative;
  min-width: 0;
}
#twin .twin-arena__canvas {
  display: block;
  width: 100%;
  /* the module sets the height from the width (the box keeps its 2.0 x 0.6 m proportions) */
  height: 300px;
}

/* the event label that flashes as the run passes an event; opacity comes from seek(t) */
#twin .twin-toast {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: var(--h-r-chip);
  border: 1px solid color-mix(in srgb, var(--hue) 45%, var(--h-line-2));
  background: color-mix(in srgb, var(--h-surface-2) 92%, transparent);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--h-ink);
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}
#twin .twin-toast::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 8px var(--hue-glow);
}
#twin .twin-toast[data-kind='verdict'] {
  border-color: color-mix(in srgb, var(--h-pass) 45%, var(--h-line-2));
  color: var(--h-pass-ink);
}
#twin .twin-toast[data-kind='verdict']::before {
  background: var(--h-pass);
  box-shadow: 0 0 8px color-mix(in srgb, var(--h-pass) 55%, transparent);
}
#twin .twin-toast__t {
  color: var(--h-ink-faint);
  font-variant-numeric: tabular-nums;
}
#twin .twin-toast__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the probes panel, the app's "Probes, live" */
#twin .twin-probes {
  display: grid;
  gap: 8px;
  padding: 12px 8px 8px;
  border: 1px solid var(--h-line-1);
  border-radius: var(--h-r-row);
  background: color-mix(in srgb, var(--h-surface-1) 92%, transparent);
  min-width: 0;
}
#twin .twin-probes__title {
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--h-ink-faint);
}
#twin .twin-probes__title span {
  color: var(--h-ink-quiet);
}
#twin .twin-readouts {
  display: grid;
  gap: 2px;
}
#twin .twin-ro {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto 30px;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: left;
  color: var(--h-ink-faint);
  transition:
    background var(--h-dur-fast) var(--h-ease),
    color var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur-fast) var(--h-spring);
}
#twin .twin-ro:hover {
  background: var(--h-surface-3);
  color: var(--h-ink-dim);
}
#twin .twin-ro:active {
  transform: scale(0.98);
}
#twin .twin-ro__dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid color-mix(in srgb, var(--ch) 55%, var(--h-line-3));
  background: transparent;
  transition:
    background var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
#twin .twin-ro[aria-pressed='true'] .twin-ro__dot {
  background: var(--ch);
  border-color: var(--ch);
  box-shadow: 0 0 10px color-mix(in srgb, var(--ch) 45%, transparent);
}
#twin .twin-ro[aria-pressed='true'] .twin-ro__label {
  color: var(--h-ink);
}
#twin .twin-ro__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#twin .twin-ro__val {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink-strong);
  text-align: right;
}
#twin .twin-ro__unit {
  color: var(--h-ink-quiet);
}
#twin .twin-ro.is-hot {
  background: var(--h-surface-3);
}

/* ───────────────────────────── the scope ───────────────────────────── */
#twin .twin-scope {
  position: relative;
  height: calc(var(--twin-lane) * 4 + 16px);
  margin: 0 var(--twin-pad);
  border: 1px solid var(--h-line-1);
  border-radius: var(--h-r-row);
  background: var(--h-well);
  overflow: hidden;
}
#twin .twin-scope__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* the lanes' labels: one grid row per lane, the same insets the canvas draws with */
#twin .twin-scope__lanes {
  position: absolute;
  inset: 8px 0;
  display: grid;
  grid-auto-rows: 1fr;
  pointer-events: none;
}
#twin .twin-lane {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 12px 0;
  min-width: 0;
}
#twin .twin-lane__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 22px;
  padding: 0 8px;
  margin-left: -8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ch);
  background: color-mix(in srgb, var(--h-well) 80%, transparent);
  pointer-events: auto;
  cursor: default;
  transition: background var(--h-dur-fast) var(--h-ease);
}
#twin .twin-lane__name:hover {
  background: color-mix(in srgb, var(--ch) 14%, var(--h-well));
}
#twin .twin-lane__name small {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--h-ink-quiet);
}
#twin .twin-lane__val {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink-strong);
  background: color-mix(in srgb, var(--h-well) 80%, transparent);
}
#twin .twin-scope__div {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--h-ink-quiet);
  pointer-events: none;
}

/* ───────────────────────────── the transport ───────────────────────────── */
#twin .twin-scrub {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px var(--twin-pad) 18px;
  min-width: 0;
}
#twin .twin-scrub__play {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--h-r-control);
  border: var(--h-stroke) solid var(--h-line-3);
  color: var(--h-ink);
  transition:
    border-color var(--h-dur-fast) var(--h-ease),
    background var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur-fast) var(--h-spring);
}
#twin .twin-scrub__play:hover {
  border-color: var(--h-line-hover);
  background: color-mix(in srgb, var(--h-ink) 6%, transparent);
}
#twin .twin-scrub__play:active {
  transform: scale(0.94);
}
#twin .twin-scrub__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
#twin .twin-scrub__icon--play,
#twin .twin-scrub__play[aria-pressed='true'] .twin-scrub__icon--pause {
  display: none;
}
#twin .twin-scrub__play[aria-pressed='true'] .twin-scrub__icon--play {
  display: block;
}
/* no clock under reduced motion: the run is scrubbed by hand, so the button has nothing to do */
#twin .twin-fig[data-still] .twin-scrub__play {
  display: none;
}
#twin .twin-scrub__time {
  flex: none;
  min-width: 17ch;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink-dim);
  white-space: nowrap;
}
#twin .twin-scrub__track {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 30px;
  cursor: pointer;
  touch-action: none;
  border-radius: 8px;
}
#twin .twin-scrub__track:focus-visible {
  outline-offset: 2px;
}
#twin .twin-scrub__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  height: 4px;
  border-radius: 2px;
  background: var(--h-line-2);
  overflow: hidden;
}
#twin .twin-scrub__fill {
  position: absolute;
  inset: 0;
  background: var(--hue);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}
#twin .twin-scrub__marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#twin .twin-mark {
  position: absolute;
  top: 7px;
  width: 2px;
  height: 16px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--h-line-hover);
  transition:
    background var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
#twin .twin-mark.is-past {
  background: var(--h-ink-dim);
}
#twin .twin-mark.is-hot {
  background: var(--hue);
  transform: scaleY(1.3);
  box-shadow: 0 0 10px var(--hue-glow);
}
#twin .twin-mark[data-kind='verdict'].is-past {
  background: var(--h-pass);
  box-shadow: 0 0 10px color-mix(in srgb, var(--h-pass) 55%, transparent);
}
#twin .twin-scrub__head {
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--h-ink-strong);
  box-shadow: 0 0 0 3px var(--h-well), 0 0 14px var(--hue-glow);
  will-change: transform;
  pointer-events: none;
}

/* ───────────────────────────── the rows, two by two under the figure ───────────────────────────── */
#twin .twin__rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 40px;
}
#twin .twin__rows .row {
  border-top: 0;
  padding: 22px 24px;
}
#twin .twin__rows .row:nth-child(even) {
  border-left: 1px solid var(--h-line-1);
}
#twin .twin__rows .row:nth-child(n + 3) {
  border-top: 1px solid var(--h-line-1);
}

/* ───────────────────────────── responsive ───────────────────────────── */
@media (max-width: 960px) {
  #twin .twin-fig {
    --twin-lane: 52px;
  }
  /* the probes fold under the box: four across, the front ToF takes two */
  #twin .twin-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  #twin .twin-probes__title {
    display: none;
  }
  #twin .twin-probes {
    padding: 6px;
  }
  #twin .twin-readouts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 4px;
  }
  #twin .twin-readouts__wide {
    grid-column: span 2;
  }
  #twin .twin__rows {
    grid-template-columns: minmax(0, 1fr);
  }
  #twin .twin__rows .row,
  #twin .twin__rows .row:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--h-line-1);
    padding: 18px 22px;
  }
  #twin .twin__rows .row:first-child {
    border-top: 0;
  }
}
@media (max-width: 640px) {
  #twin .twin-fig {
    --twin-pad: 14px;
    --twin-lane: 44px;
    margin-bottom: 28px;
  }
  #twin .twin__rows {
    margin-bottom: 28px;
  }
  /* a phone's bar keeps what changes: the firmware's state and the verdict; the rig's name is the section's */
  #twin .twin-bar__meta,
  #twin .twin-bar__title {
    display: none;
  }
  #twin .twin-readouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #twin .twin-ro {
    grid-template-columns: 10px minmax(0, 1fr) auto 26px;
    gap: 8px;
  }
  #twin .twin-scrub {
    gap: 10px;
    flex-wrap: wrap;
  }
  #twin .twin-scrub__time {
    min-width: 0;
  }
  /* the track takes its own line on a phone, under the button and the clock */
  #twin .twin-scrub__track {
    flex: 1 1 100%;
    order: 3;
  }
  #twin .twin__rows .row {
    padding: 16px 18px;
  }
}

/* ==== sections/47-maze.css ==== */
/* ==== maze: the car solves a maze in Unreal while its base station watches (owner: the maze section) ====
 *
 * Three pictures, one strip of numbers and four rows. The stage on top is the Unreal view (a still, or the rendered
 * movie once it is in media/maze/): 16:9, the frame the engine drew. Under it the base-station app's Map (the car's
 * belief) beside the car's own camera, the two columns sized by the pictures' own shapes so both frames end on one
 * line with nothing cropped. Then the run's numbers, four across. On a phone the pictures stack and the numbers go two by
 * two. Nothing here animates on its own: the movie is played and paused by js/fig/maze.js from the page's
 * one observer.
 */

/* ───────────────────────────── the Unreal stage ───────────────────────────── */
#maze .maze__stage {
  /* the frame is the figure: no padding, the caption sits on the frame's own surface */
  margin: 0 0 20px;
}
#maze .maze__view {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0c0d0f;
}
#maze .maze__view > img,
#maze .maze__view > picture img,
#maze .maze__view > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the engine's name on the frame: a chip in the corner, the way the app labels a host */
#maze .maze__host {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: color-mix(in srgb, var(--h-ground) 78%, transparent);
}

/* ───────────────────────────── the station: map beside camera ───────────────────────────── */
#maze .maze__station {
  display: grid;
  /* widths in the ratio of the two pictures' aspect ratios (1461:912 and 16:9), so their heights are equal */
  grid-template-columns: minmax(0, 1.602fr) minmax(0, 1.778fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
#maze .maze__shot {
  margin: 0;
}
#maze .maze__shot img {
  display: block;
  width: 100%;
  height: auto;
}
/* the camera's frame is 384 x 216 from the sensor: shown at its own shape, never sharpened into something it is not */
#maze .maze__cam img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ───────────────────────────── the claims ───────────────────────────── */
#maze .maze__rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#maze .maze__rows .row {
  border-top: 0;
  padding: 22px 24px;
}
#maze .maze__rows .row:nth-child(even) {
  border-left: 1px solid var(--h-line-1);
}
#maze .maze__rows .row:nth-child(n + 3) {
  border-top: 1px solid var(--h-line-1);
}
#maze .maze__rows .row__title {
  margin: 0;
}
#maze .maze__rows .row__note {
  margin: 4px 0 0;
}
#maze .maze__rows code {
  font-size: 0.92em;
  white-space: nowrap;
}

/* ───────────────────────────── responsive ───────────────────────────── */
@media (max-width: 960px) {
  #maze .maze__rows {
    grid-template-columns: minmax(0, 1fr);
  }
  #maze .maze__rows .row,
  #maze .maze__rows .row:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--h-line-1);
    padding: 18px 22px;
  }
  #maze .maze__rows .row:first-child {
    border-top: 0;
  }
}
@media (max-width: 640px) {
  #maze .maze__stage,
  #maze .maze__station {
    margin-bottom: 16px;
  }
  /* a phone stacks the two pictures; a tablet still has room for them side by side */
  #maze .maze__station {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  #maze .maze__host {
    top: 12px;
    left: 12px;
  }
  #maze .maze__rows code {
    white-space: normal;
  }
}

/* ==== sections/48-build.css ==== */
/* ==== build: The CAD writes its own manual. (owner: the build section) ==== */

/*
 * One column: the RC car going together (a recording of the app's Build view, played by js/fig/clip.js while on
 * screen), then the app's pictures of the Build lens (two side by side from 961 px, stacked below), then the six
 * claims two by two.
 */
#build .build {
  display: grid;
  gap: 20px;
}

/* ---- the clip: the still sets the box (its own shape), the movie lies over it edge to edge ---- */
#build .build__clip {
  margin: 0;
}
#build .build__view {
  position: relative;
  background: #0c0d0f;
}
#build .build__view picture img {
  display: block;
  width: 100%;
  height: auto;
}
#build .build__view > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- the pictures: the parts list and a step, the same height side by side ---- */
#build .build__shots {
  align-items: start;
}

/* ---- the claims: two by two, neutral icons; the hue is the headline's alone ---- */
#build .build__rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#build .build__rows .row {
  border-top: 0;
  padding: 22px 24px;
}
#build .build__rows .row:nth-child(even) {
  border-left: 1px solid var(--h-line-1);
}
#build .build__rows .row:nth-child(n + 3) {
  border-top: 1px solid var(--h-line-1);
}
#build .build__rows .row__icon {
  color: var(--h-ink-faint);
}
#build .build__rows .row__title,
#build .build__rows .row__note {
  margin: 0;
}

/* ───────────────────────────── responsive ───────────────────────────── */
@media (max-width: 960px) {
  #build .build__rows {
    grid-template-columns: minmax(0, 1fr);
  }
  #build .build__rows .row,
  #build .build__rows .row:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--h-line-1);
    padding: 18px 22px;
  }
  #build .build__rows .row:first-child {
    border-top: 0;
  }
}
@media (max-width: 640px) {
  #build .build__rows .row {
    padding: 16px 18px;
  }
}

/* ==== sections/49-bench.css ==== */
/* ==== bench: Then plug in the real one. (owner: the bench section) ==== */

/*
 * One column: the session figure, the six claims, the status line. The figure is a grid of two: the board on its
 * cable at the left, the steps at the right. Below 961 the board shrinks to a strip over the steps; a phone drops
 * the long description under each verb onto its own line.
 */
#bench .bench {
  display: grid;
  gap: 20px;
}

/* ---- the figure's stage ---- */
#bench .bench-fig {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  grid-template-areas:
    'board steps'
    'cap   cap';
  gap: 8px clamp(20px, 3.5vw, 48px);
  align-items: center;
  padding: clamp(20px, 3.2vw, 40px);
}

/* ---- the board: a line drawing, lit only where the link is ---- */
#bench .bench-fig__board {
  grid-area: board;
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
}
#bench .bench-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  overflow: visible;
}
#bench .bench-svg__pcb {
  fill: var(--h-surface-1);
  stroke: var(--h-line-3);
  stroke-width: 1.5;
}
#bench .bench-svg__port,
#bench .bench-svg__plug,
#bench .bench-svg__bridge {
  fill: var(--h-surface-3);
  stroke: var(--h-line-3);
  stroke-width: 1.5;
}
/* the port in use and the plug in it carry the hue; the other port stays grey */
#bench .bench-svg__port--on,
#bench .bench-svg__plug {
  stroke: var(--hue);
}
#bench .bench-svg__module {
  fill: var(--h-well);
  stroke: var(--h-line-3);
  stroke-width: 1.5;
}
#bench .bench-svg__can {
  fill: var(--h-surface-3);
  stroke: var(--h-ink-quiet);
  stroke-width: 1.5;
}
#bench .bench-svg__ant,
#bench .bench-svg__pads path {
  stroke: var(--h-ink-quiet);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#bench .bench-svg__pads path {
  stroke-width: 4;
}
/* the cable: drawn whole as written; the module runs its dash offset from 1 to 0 */
#bench .bench-svg__cable {
  stroke: var(--hue);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
/* the lamp: lit as written, dark until the first answer once the module runs */
#bench .bench-svg__led {
  fill: var(--h-pass);
  transition: fill var(--h-dur-fast) var(--h-ease);
}
#bench .bench-fig[data-live] .bench-svg__led:not([data-on]) {
  fill: var(--h-line-3);
}
#bench .bench-svg text {
  font-family: var(--font-mono);
  font-weight: 500;
}
#bench .bench-svg__chip {
  fill: var(--h-ink);
  font-size: 13px;
}
#bench .bench-svg__label {
  fill: var(--h-ink-quiet);
  font-size: 11px;
  letter-spacing: 0.08em;
}
#bench .bench-svg__label--on {
  fill: var(--hue);
}

/* the build on the board, under the drawing */
#bench .bench-fig__tag {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
}
#bench .bench-fig__target {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--h-ink);
}

/* ---- the steps: verb, what was asked, what came back ---- */
#bench .bench-steps {
  grid-area: steps;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  background: var(--h-well);
  border: 1.5px solid var(--h-line-1);
  border-radius: var(--h-r-card);
  overflow: hidden;
}
#bench .bench-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 15px 20px;
  border-top: 1px solid var(--h-line-1);
  transition:
    opacity var(--h-dur) var(--h-ease),
    background-color var(--h-dur) var(--h-ease);
}
#bench .bench-step:first-child {
  border-top: 0;
}
#bench .bench-step__verb {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--hue);
}
#bench .bench-step__what {
  font-size: 15px;
  line-height: 1.45;
  color: var(--h-ink-dim);
  min-width: 0;
}
#bench .bench-step__what q {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--h-ink);
  quotes: none;
}
/* the board's answer: a pass word, tabular, never wrapped */
#bench .bench-step__got {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--h-pass-ink);
  transition: opacity var(--h-dur) var(--h-ease);
}
/* with the module running, a step that has not happened yet waits dim and without its answer */
#bench .bench-fig[data-live] .bench-step:not([data-on]) {
  opacity: 0.38;
}
#bench .bench-fig[data-live] .bench-step:not([data-on]) .bench-step__got {
  opacity: 0;
}
/* the step in hand sits on a faint wash of the hue */
#bench .bench-fig[data-live] .bench-step[data-now] {
  background-color: var(--hue-faint);
}

/* ---- the caption: where and when the run was made ---- */
#bench .bench-fig__cap {
  grid-area: cap;
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--h-ink-faint);
}

/* ---- the claims: two by two, neutral icons ---- */
#bench .bench__rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#bench .bench__rows .row {
  border-top: 0;
  padding: 22px 24px;
}
#bench .bench__rows .row:nth-child(even) {
  border-left: 1px solid var(--h-line-1);
}
#bench .bench__rows .row:nth-child(n + 3) {
  border-top: 1px solid var(--h-line-1);
}
#bench .bench__rows .row__icon {
  color: var(--h-ink-faint);
}
#bench .bench__rows .row__title,
#bench .bench__rows .row__note {
  margin: 0;
}
#bench .bench__rows code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ---- the status line: plain words, the measure of body text ---- */
#bench .bench__status {
  max-width: 78ch;
  margin: 4px 0 0;
  color: var(--h-ink-faint);
}

/* ---- the app's own picture of a kept session, under the claims ---- */
#bench .bench__shot {
  margin: 12px 0 0;
}

/* ───────────────────────────── responsive ───────────────────────────── */
@media (max-width: 960px) {
  #bench .bench__rows {
    grid-template-columns: minmax(0, 1fr);
  }
  #bench .bench__rows .row,
  #bench .bench__rows .row:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--h-line-1);
    padding: 18px 22px;
  }
  #bench .bench__rows .row:first-child {
    border-top: 0;
  }
}
@media (max-width: 960px) {
  /* the board becomes a strip over the steps: the drawing small at the left, the build beside it */
  #bench .bench-fig {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'board'
      'steps'
      'cap';
    gap: 16px;
  }
  #bench .bench-fig__board {
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 16px;
  }
  #bench .bench-fig__tag {
    justify-content: flex-start;
  }
  #bench .bench-fig__cap {
    margin-top: 0;
    text-align: left;
  }
}
@media (max-width: 640px) {
  /* a phone: the verb and the answer share the first line, what was asked takes the one under it */
  #bench .bench-step {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 13px 16px;
  }
  #bench .bench-step__what {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 14px;
  }
  #bench .bench__rows .row {
    padding: 16px 18px;
  }
}

/* ==== sections/50-firmware.css ==== */
/* ==== firmware: Same core. Compiled twice. (owner: the firmware section) ==== */

/*
 * The section is one column: the figure full width, then the three claims. On wide screens the claims sit as a
 * single 3-up panel (one .rows, its rows side by side, joined by hairlines); below 960 they stack as a list.
 */
#firmware .fw {
  display: grid;
  gap: 20px;
}

/* ---- the figure's stage: the SVG is centred and capped so its type stays on the scale at 1440 ---- */
#firmware .fw__fig {
  display: grid;
  justify-items: center;
  /* no side padding: the viewBox carries its own margins, and every pixel of width is type size on a phone */
  padding: clamp(8px, 2.4vw, 32px) 0;
}
#firmware .fw__fig > svg {
  width: 100%;
  max-width: 1040px;
  height: auto;
  overflow: visible;
}
/* the vertical layout for narrow stages is drawn at phone scale; it never balloons on a mid-size window */
#firmware .fw__fig > svg[data-layout='stack'] {
  max-width: 460px;
}
#firmware .fw__fig noscript img {
  width: 100%;
  max-width: 1040px;
  height: auto;
}

/* ---- the claims: neutral icons; the hue is the headline's and the core's alone ---- */
#firmware .fw__rows .row__icon {
  color: var(--h-ink-faint);
}
#firmware .fw__rows .row__title {
  margin: 0;
}
@media (min-width: 961px) {
  #firmware .fw__rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #firmware .fw__rows .row {
    border-top: 0;
    border-left: 1px solid var(--h-line-1);
    padding: 24px 26px;
  }
  #firmware .fw__rows .row:first-child {
    border-left: 0;
  }
}

/* ────────────────────────── the SVG's paint, all by token ────────────────────────── */
#firmware .fw-svg text {
  font-family: var(--font-mono);
  font-weight: 500;
  fill: var(--h-ink);
  font-variant-numeric: tabular-nums;
}
#firmware .fw-svg .fw-strong { fill: var(--h-ink-strong); font-weight: 600; }
#firmware .fw-svg .fw-prompt { fill: var(--h-ink-faint); font-weight: 500; }
#firmware .fw-svg .fw-dim { fill: var(--h-ink-dim); }
#firmware .fw-svg .fw-faint { fill: var(--h-ink-faint); }
#firmware .fw-svg .fw-pass { fill: var(--h-pass-ink); }

/* the MCU: a dark package, grey pin stubs, the pin-1 dot */
#firmware .fw-svg .fw-mcu-body { fill: var(--h-surface-3); stroke: var(--h-line-3); stroke-width: 1.5; }
#firmware .fw-svg .fw-mcu-pins { stroke: var(--h-ink-quiet); stroke-width: 1.5; stroke-linecap: round; fill: none; }
#firmware .fw-svg .fw-mcu-dot { fill: var(--h-ink-quiet); }

/* the core: the one violet thing in the drawing, with a static halo (a wide faint stroke, never a filter) */
#firmware .fw-svg .fw-core-halo { fill: none; stroke: var(--hue-faint); stroke-width: 8; }
#firmware .fw-svg .fw-core { fill: color-mix(in srgb, var(--hue) 6%, var(--h-well)); stroke: var(--hue); stroke-width: 1.5; }

/* the twin: a neutral panel */
#firmware .fw-svg .fw-box { fill: var(--h-surface-1); stroke: var(--h-line-3); stroke-width: 1.5; }

/* the HAL arrows: neutral ink strokes that draw in with the scrub */
#firmware .fw-svg .fw-arrow { fill: none; stroke: var(--h-ink-dim); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* hairlines */
#firmware .fw-svg .fw-rule { stroke: var(--h-line-1); stroke-width: 1; }

/* seeds: pending squares, the passed overlay, the check */
#firmware .fw-svg .fw-seed { fill: none; stroke: var(--h-line-3); stroke-width: 1.5; }
#firmware .fw-svg .fw-seed-on { fill: color-mix(in srgb, var(--h-pass) 10%, transparent); stroke: var(--h-pass); stroke-width: 1.5; }
#firmware .fw-svg .fw-check { fill: none; stroke: var(--h-pass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the hash line: the caret, the equals sign at rest and lit */
#firmware .fw-svg .fw-caret { fill: var(--h-ink-strong); }
#firmware .fw-svg .fw-eq { fill: var(--h-ink-quiet); }
#firmware .fw-svg .fw-eq-on { fill: var(--h-pass); }

/* the "deterministic" chip: a pass pill */
#firmware .fw-svg .fw-chip { fill: color-mix(in srgb, var(--h-pass) 8%, var(--h-well)); stroke: color-mix(in srgb, var(--h-pass) 45%, var(--h-line-3)); stroke-width: 1.5; }
#firmware .fw-svg .fw-chip-dot { fill: var(--h-pass); }

/* the summary strip: the suite's own output line, in a well */
#firmware .fw-svg .fw-strip { fill: var(--h-surface-1); stroke: var(--h-line-2); stroke-width: 1.5; }

/* ==== sections/55-fidelity.css ==== */
/* ==== fidelity: the replay-only Sandbox (owner: the sandbox section) ==== */

#fidelity .fid {
  display: grid;
  gap: 20px;
}

/* ---- the claims: neutral icons; the hue is the headline's alone ---- */
#fidelity .fid__rows .row__icon {
  color: var(--h-ink-faint);
}
#fidelity .fid__rows .row__title {
  margin: 0;
}
#fidelity .fid__rows .row__note {
  margin: 4px 0 0;
}
@media (min-width: 960px) {
  #fidelity .fid__rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- the replay-only Sandbox figure, shared with the twin section's physics scene ---- */
.sandbox-fig {
  aspect-ratio: 16 / 10;
  /* the stage fills the figure; the frame paints its own ground */
  background: #0c0d0f;
}
.sandbox-fig > .sandbox-frame,
.sandbox-fig > .sandbox-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sandbox-fig > .sandbox-frame {
  border: 0;
  background: transparent;
  z-index: 1;
}
.sandbox-fig > .sandbox-poster {
  object-fit: cover;
  z-index: 2;
  transition: opacity var(--h-dur-slow) var(--h-ease);
}
/* the poster gives way to the live stage once the recording is up */
.sandbox-fig[data-state='ready'] > .sandbox-poster {
  opacity: 0;
  pointer-events: none;
}

/*
 * The veil sits over the frame during the tour: a hand on it takes over (js/fig/sandbox.js). data-off (set when the
 * tour ends) lets pointers through to the stage. On a touch device it stays until a tap, so the page still scrolls past.
 */
.sandbox-fig > .sandbox-veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
}
.sandbox-fig > .sandbox-veil[data-off] {
  display: none;
}
.sandbox-fig:not([data-state='ready']) > .sandbox-veil {
  display: none;
}

/* the one line that says what the tour is doing; a quiet glass pill top centre, not a tooltip wall */
.sandbox-fig > .sandbox-caption {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 14px;
  max-width: min(640px, calc(100% - 32px));
  margin: 0;
  transform: translateX(-50%) translateY(-6px);
  padding: 7px 13px;
  border-radius: 12px;
  background: rgba(12, 13, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--h-ink);
  font: 500 13px/1.3 var(--font-sans);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--h-dur) var(--h-ease), transform var(--h-dur) var(--h-spring);
}
.sandbox-fig > .sandbox-caption[data-on] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* the handover: what you can do now, sits over the transport until you do something */
.sandbox-fig > .sandbox-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 56px;
  margin: 0;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--h-ink);
  color: #0c0d0f;
  font: 600 12px/1.2 var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--h-dur) var(--h-ease);
}
.sandbox-fig > .sandbox-hint[data-on] {
  opacity: 1;
}

.sandbox-note {
  margin: 8px 0 0;
  color: var(--h-ink-dim);
}
.sandbox-note:not([data-on]) {
  display: none;
}

/* below this width the stage's readout card spans the top: the tour's line goes under it, never across it */
@media (max-width: 1040px) {
  .sandbox-fig > .sandbox-caption {
    top: 96px;
  }
}
@media (max-width: 720px) {
  .sandbox-fig {
    aspect-ratio: 3 / 4;
  }
}
@media (max-width: 480px) {
  .sandbox-fig {
    aspect-ratio: 9 / 13;
  }
  .sandbox-fig > .sandbox-caption {
    font-size: 12px;
    max-width: calc(100% - 20px);
  }
  .sandbox-fig > .sandbox-hint {
    bottom: 52px;
    max-width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
  }
}

/* ==== sections/60-spaces.css ==== */
/* ==== spaces: the four spaces and the Sandbox, in the app's own window (owner: the spaces section) ====
 *
 *   .spaces-steps   the copy on the left, one step per space; the lit one is .is-active (set by fig/spaces.js)
 *   .spaces-frame   the figure: a live top bar over five stacked screenshots; data-active names the lit space
 *   --spaces-hue    the window's hue, a registered colour so the outline and the glow glide between spaces
 *   --spaces-fh     the window's height, written by the module, so the steps can be centred on the window
 *
 * Every motion here is a CSS transition fired once per change of space; nothing is written per scroll frame except
 * the module's index check, so the scrub costs a few microseconds.
 */

/* the window's hue as a real colour, so a change of space cross-fades the outline and the glow */
@property --spaces-hue {
  syntax: '<color>';
  inherits: true;
  initial-value: #c79bff;
}

/*
 * base.css derives the soft, glow and faint tints on :root, so a nested data-hue would inherit the ink-based ones.
 * Re-deriving them on every hued element of this section gives each chip and step its own.
 */
#spaces[data-hue],
#spaces [data-hue] {
  --hue-soft: color-mix(in srgb, var(--hue) 18%, transparent);
  --hue-glow: color-mix(in srgb, var(--hue) 30%, transparent);
  --hue-faint: color-mix(in srgb, var(--hue) 9%, transparent);
}

/* ───────────────────────────── the steps ─────────────────────────────── */
#spaces .spaces-step {
  justify-items: start;
  gap: 14px;
}
/* the space's icon in a small app-icon tile; lit in the space's hue */
#spaces .spaces-step__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 14px;
  border: var(--h-stroke) solid color-mix(in srgb, var(--hue) 40%, var(--h-line-2));
  background: var(--h-surface-1);
  color: var(--hue);
  transition:
    color var(--h-dur) var(--h-ease),
    border-color var(--h-dur) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
#spaces .spaces-step__icon svg {
  width: 28px;
  height: 28px;
}
/* the Sandbox's tile: its cube, large, in whatever colour the tile's icon is at that moment */
#spaces .spaces-step__icon .sbxcube {
  --cube: 20px;
  color: inherit;
}
/* the role line: what the space is, in the machine's voice and the space's hue */
#spaces .spaces-step__role {
  margin-top: -6px;
  color: var(--hue);
}
#spaces .spaces-step .t-body {
  max-width: 42ch;
}

/*
 * Live (pinned and scrubbed): the steps away from the window rest quietly and their icons go grey; the one at the
 * window's centre is full ink with its icon lit and a soft glow. Without JS, under reduced motion and below 960 the
 * wrapper is not .is-live, so every step reads at full strength.
 */
#spaces .spaces-scrolly.is-live .spaces-step {
  opacity: 0.32;
  transition: opacity var(--h-dur-slow) var(--h-ease);
}
#spaces .spaces-scrolly.is-live .spaces-step .spaces-step__icon {
  color: var(--h-ink-quiet);
  border-color: var(--h-line-2);
}
#spaces .spaces-scrolly.is-live .spaces-step.is-active {
  opacity: 1;
}
#spaces .spaces-scrolly.is-live .spaces-step.is-active .spaces-step__icon {
  color: var(--hue);
  border-color: color-mix(in srgb, var(--hue) 60%, var(--h-line-2));
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 22px var(--hue-glow);
}

/* ───────────────────────────── the window ────────────────────────────── */
#spaces .spaces-frame {
  --spaces-hue: var(--h-space-atlas);
  container: spaces-frame / inline-size;
  display: flex;
  flex-direction: column;
  border-radius: var(--h-r-card);
  background: var(--h-ground);
  border-color: color-mix(in srgb, var(--spaces-hue) 48%, var(--h-line-2));
  /* outline ring, a soft hue halo, and the one dark lift that seats the window on the page */
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--spaces-hue) 7%, transparent),
    0 0 56px -8px color-mix(in srgb, var(--spaces-hue) 24%, transparent),
    0 40px 80px -50px rgba(0, 0, 0, 0.9);
  transition: --spaces-hue var(--h-dur-slow) var(--h-ease);
}
#spaces .spaces-frame[data-active='corpus'] {
  --spaces-hue: var(--h-space-corpus);
}
#spaces .spaces-frame[data-active='replica'] {
  --spaces-hue: var(--h-space-replica);
}
#spaces .spaces-frame[data-active='memoria'] {
  --spaces-hue: var(--h-space-memoria);
}
#spaces .spaces-frame[data-active='sandbox'] {
  --spaces-hue: var(--h-kind-board);
}

/* ── the bar: the app's top bar, live ── */
#spaces .spaces-bar {
  z-index: 2;
  flex: none;
  gap: 10px;
  height: 52px;
  padding: 0 14px 0 18px;
  background: var(--h-surface-1);
  border-bottom-color: var(--h-line-2);
}
#spaces .spaces-bar .appbar__n {
  font-size: 24px;
  line-height: 1;
  margin-right: 4px;
}
/* the slot holds the chips and the Sandbox lockup in one grid cell, so they cross-fade in place */
#spaces .spaces-bar__slot {
  display: grid;
  align-items: center;
  flex: none;
  min-width: 0;
}
#spaces .spaces-bar__tabs,
#spaces .spaces-bar__lockup {
  grid-area: 1 / 1;
  transition:
    opacity var(--h-dur) var(--h-ease),
    translate var(--h-dur-slow) var(--h-spring);
}
/* the chips sit in a well, as the app groups them */
#spaces .spaces-bar__tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--h-line-2);
  border-radius: 11px;
  background: var(--h-well);
}
#spaces .spaces-bar .appbar__space {
  gap: 0;
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    color var(--h-dur-fast) var(--h-ease),
    border-color var(--h-dur) var(--h-ease),
    background var(--h-dur) var(--h-ease),
    box-shadow var(--h-dur) var(--h-ease);
}
#spaces .spaces-bar .appbar__space svg {
  flex: none;
}
#spaces .spaces-bar button.appbar__space:hover {
  color: var(--h-ink-strong);
  background: color-mix(in srgb, var(--h-ink) 6%, transparent);
}
#spaces .spaces-bar .appbar__space[aria-current] {
  background: var(--hue-faint);
}
/* the label folds to nothing on a narrow window (the icon stays); the lit chip always shows its name */
#spaces .spaces-bar__label {
  display: grid;
  grid-template-columns: 1fr;
  transition: grid-template-columns var(--h-dur-slow) var(--h-spring);
}
#spaces .spaces-bar__label > span {
  min-width: 0;
  overflow: hidden;
  padding-left: 7px;
}
/* the Sandbox chip is a switch only where nothing pins (below 960, or under reduced motion) */
#spaces .spaces-bar__sandbox-tab {
  display: none;
}

/* the Sandbox lockup: its chip, then the item it holds */
#spaces .spaces-bar__lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  opacity: 0;
  translate: 0 8px;
  pointer-events: none;
}
#spaces .spaces-bar__sandbox-tab .sbxcube {
  margin-right: 6px;
}
#spaces .spaces-bar .spaces-bar__sbx {
  gap: 7px;
  border-color: var(--hue);
  background: var(--hue-faint);
  color: var(--h-ink-strong);
  box-shadow: 0 0 0 2px var(--hue-faint), 0 0 14px var(--hue-glow);
}
#spaces .spaces-bar__ctx {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--h-ink-faint);
}
#spaces .spaces-bar__ctx b {
  font-weight: 600;
  color: var(--h-ink-strong);
}
#spaces .spaces-bar__sep {
  margin-right: 10px;
  color: var(--h-ink-quiet);
}
/* pinned: while the Sandbox is lit, its bar replaces the chips, and the slot may yield room to the four views */
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  #spaces .spaces-frame[data-active='sandbox'] .spaces-bar__slot {
    flex: 0 1 auto;
  }
  #spaces .spaces-frame[data-active='sandbox'] .spaces-bar__meta {
    flex: none;
  }
}
/* while the Sandbox is lit */
#spaces .spaces-frame[data-active='sandbox'] .spaces-bar__tabs {
  opacity: 0;
  translate: 0 -8px;
  pointer-events: none;
}
#spaces .spaces-frame[data-active='sandbox'] .spaces-bar__lockup {
  opacity: 1;
  translate: 0 0;
}

/* the right of the bar: what the open space shows, cross-fading with it */
#spaces .spaces-bar__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  color: var(--h-ink-faint);
  white-space: nowrap;
}
#spaces .spaces-bar__meta > * {
  grid-area: 1 / 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity var(--h-dur) var(--h-ease);
}
#spaces .spaces-frame[data-active='atlas'] [data-for='atlas'],
#spaces .spaces-frame[data-active='corpus'] [data-for='corpus'],
#spaces .spaces-frame[data-active='replica'] [data-for='replica'],
#spaces .spaces-frame[data-active='memoria'] [data-for='memoria'],
#spaces .spaces-frame[data-active='sandbox'] [data-for='sandbox'] {
  opacity: 1;
}
/* the Sandbox's four views of one item; Shape is the one open */
#spaces .spaces-bar__views {
  display: flex;
  align-items: center;
  gap: 2px;
}
#spaces .spaces-bar__views > * {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 500;
}
#spaces .spaces-bar__views > b {
  color: var(--h-ink-strong);
  border-color: color-mix(in srgb, var(--hue) 70%, transparent);
  background: var(--hue-faint);
}

/* ── the shots: stacked, the lit one on top ── */
#spaces .spaces-view {
  position: relative;
  flex: none;
  /* the app's window below its top bar: 1200 x 705 of every shot */
  aspect-ratio: 1200 / 705;
  overflow: hidden;
  background: var(--h-ground);
}
/*
 * The incoming shot fades in on top and settles from 1.02 with the spring; the outgoing one stays opaque beneath it
 * until the fade is done, then drops away, so the cross-fade never dips to the ground.
 */
#spaces .spaces-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  scale: 1.02;
  /* each shot is a link that opens it enlarged (js/zoom.js): a shot that is not lit takes no click and no Tab */
  visibility: hidden;
  transition:
    opacity 0s linear var(--h-dur-slow),
    scale 0s linear var(--h-dur-slow),
    visibility 0s linear var(--h-dur-slow);
}
#spaces .spaces-shot.is-active {
  z-index: 1;
  opacity: 1;
  scale: 1;
  visibility: visible;
  transition:
    opacity var(--h-dur-slow) var(--h-ease),
    scale 0.7s var(--h-spring),
    visibility 0s;
}
/* anchored at the bottom: the shot's own top bar (42 of 747 px; 45 of 750 for the Sandbox) sits above the view */
#spaces .spaces-shot img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}

/*
 * ── the fifth space, ghosted: Synthesis waits under the window, not in its bar ──
 *
 * Drawn like a chip of the bar but with nothing lit: a dashed outline (the house mark for "planned"), quiet ink,
 * no hue, no hover, no pointer. The small "Later" capsule says the rest. It rides the pin with the window, so it
 * stays a fixed, quiet footnote while the steps scroll past.
 */
#spaces .spaces-later {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}
/* the lead-in: says the chip is one more space, not a caption for the shot above */
#spaces .spaces-later__lead {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--h-ink-quiet);
  white-space: nowrap;
}
#spaces .spaces-later__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 5px 0 11px;
  border: 1px dashed var(--h-line-3);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--h-ink-quiet);
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
#spaces .spaces-later__chip svg {
  flex: none;
  width: 14px;
  height: 14px;
}
/* the capsule: the one word that matters, a step brighter than the name it qualifies */
#spaces .spaces-later__mark {
  padding: 4px 7px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--h-ink) 6%, transparent);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--h-ink-faint);
}

/* ── a narrow window: the chips fold to icons, the meta steps aside ── */
@container spaces-frame (max-width: 620px) {
  #spaces .spaces-bar__meta {
    display: none;
  }
}
@container spaces-frame (max-width: 600px) {
  #spaces .spaces-bar .appbar__space:not([aria-current]) .spaces-bar__label {
    grid-template-columns: 0fr;
  }
  #spaces .spaces-bar .appbar__space:not([aria-current]) {
    padding: 0 8px;
  }
}

/* ───────────────────────────── pinned (wide) ─────────────────────────── */
/*
 * Every step is the same height, and the column is shifted so step 0 sits on the window's centre when the pin
 * engages and step 4 sits there when it lets go; the module maps the scroll to the step nearest that centre.
 */
@media (min-width: 961px) {
  #spaces .spaces-scrolly {
    --spaces-step: clamp(380px, 62vh, 620px);
  }
  #spaces .spaces-steps {
    margin-top: min(0px, calc(var(--spaces-fh, 460px) / 2 - var(--spaces-step) / 2));
    padding-bottom: max(0px, calc(100vh - var(--pin-top) - var(--spaces-fh, 460px) / 2 - var(--spaces-step) / 2));
  }
  #spaces .spaces-step,
  #spaces .spaces-step:first-child,
  #spaces .spaces-step:last-child {
    min-height: var(--spaces-step);
  }
}

/* reduced motion on a wide screen: nothing scrubs, so the chips (Sandbox too) switch the window directly */
@media (prefers-reduced-motion: reduce) {
  #spaces .spaces-bar__sandbox-tab {
    display: inline-flex;
  }
  #spaces .spaces-bar__meta {
    display: none;
  }
  #spaces .spaces-bar__lockup {
    display: none;
  }
  #spaces .spaces-frame[data-active='sandbox'] .spaces-bar__tabs {
    opacity: 1;
    translate: none;
    pointer-events: auto;
  }
}

/* ───────────────────────────── stacked (narrow) ──────────────────────── */
@media (max-width: 960px) {
  /* the window leads; its chips are the switch, the Sandbox among them, with room for a thumb */
  #spaces .spaces-pin {
    margin-bottom: 40px;
  }
  #spaces .spaces-bar {
    height: 56px;
  }
  #spaces .spaces-bar .appbar__space {
    height: 36px;
  }
  #spaces .spaces-bar__sandbox-tab {
    display: inline-flex;
  }
  #spaces .spaces-bar__lockup {
    display: none;
  }
  #spaces .spaces-frame[data-active='sandbox'] .spaces-bar__tabs {
    opacity: 1;
    translate: none;
    pointer-events: auto;
  }
  /* the steps: five plain blocks, a hairline between them */
  #spaces .spaces-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
  }
  #spaces .spaces-step {
    align-content: start;
    padding-block: 28px;
    border-top: 1px solid var(--h-line-1);
  }
  #spaces .spaces-step:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  #spaces .spaces-bar {
    gap: 8px;
    padding: 0 10px 0 14px;
  }
  #spaces .spaces-bar .appbar__n {
    font-size: 21px;
    margin-right: 0;
  }
  #spaces .spaces-steps {
    grid-template-columns: 1fr;
  }
  #spaces .spaces-step {
    gap: 12px;
    padding-block: 24px;
  }
  #spaces .spaces-step__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
  #spaces .spaces-step__icon svg {
    width: 26px;
    height: 26px;
  }
}

/* ==== sections/62-sysmap.css ==== */
/* ==== sysmap: Corpus's System map, the demo's real constellation (owner: the spaces section) ====
 *
 * Mirrors the app's src/renderer/sysmap/sysmap.css, the same class names, so the bubbles and cables read the same
 * as they do in Corpus: each glyph lit in its kind's hue over a glass tint of it (a system, an assembly or a board shows
 * the app's own picture of it there once the picture lands), the ring the verdict (green, red) or a faint ring in its
 * own hue, the selection Corpus's amber as an outline with a soft glow, cables in the harness hue.
 * Everything here that moves is a transform or an opacity; nothing is written per frame.
 *
 * The site has no --font-display: names drawn in the app's display face use the sans here, because the serif is only
 * for the wordmark and the Latin.
 */

#spaces .smap-block {
  margin-top: clamp(88px, 11vw, 160px);
}
#spaces .smap-block__head {
  margin-bottom: 40px;
}

/* ── under the map: two claims side by side from 961 px, stacked below; neutral icons ── */
#spaces .smap-block__rows {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}
#spaces .smap-block__rows .row {
  border-top: 0;
  padding: 22px 24px;
}
#spaces .smap-block__rows .row:nth-child(even) {
  border-left: 1px solid var(--h-line-1);
}
#spaces .smap-block__rows .row__icon {
  color: var(--h-ink-faint);
}
#spaces .smap-block__rows .row__title,
#spaces .smap-block__rows .row__note {
  margin: 0;
}
/* ── and the app's two pictures under the claims ── */
#spaces .smap-block__shots {
  margin-top: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  #spaces .smap-block__rows {
    grid-template-columns: minmax(0, 1fr);
  }
  #spaces .smap-block__rows .row:nth-child(even) {
    border-left: 0;
    border-top: 1px solid var(--h-line-1);
  }
}

/* ── the frame: the bar floats over the stage's top edge, the picture gets the whole height ── */
#spaces .smap {
  --h-sel: var(--h-space-corpus);
  --h-ink-ghost: #6e7177;
  --h-focus: rgba(233, 232, 228, 0.78);
  --h-shadow-float: 0 18px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  border-color: var(--h-line-2);
  background: var(--h-well);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--h-ink);
}

#spaces .smap__bar {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  pointer-events: none;
}
#spaces .smap__bar > * {
  pointer-events: auto;
}
#spaces .smap__back {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 9px;
  border: var(--h-stroke) solid var(--h-line-2);
  border-radius: var(--h-r-control);
  background: var(--h-surface-2);
  color: var(--h-ink-dim);
  font: inherit;
  cursor: pointer;
  transition: background var(--h-dur-fast) var(--h-ease), border-color var(--h-dur-fast) var(--h-ease), transform var(--h-dur) var(--h-spring);
}
#spaces .smap__back:hover {
  background: var(--h-surface-3);
  border-color: var(--h-line-hover);
  color: var(--h-ink);
}
#spaces .smap__back:active {
  transform: scale(0.97);
}
#spaces .smap__back[hidden] {
  display: none;
}
#spaces .smap__where {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  flex: 1 1 auto;
  pointer-events: none;
}
#spaces .smap__title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--h-ink-strong);
}
#spaces .smap__sum {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--h-ink-quiet);
  font-size: 11px;
}

/* ── the stage: a breath lighter behind the centre, the ground at the edges ── */
#spaces .smap__stage {
  position: relative;
  flex: none;
  height: 640px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--h-surface-3), transparent 68%);
  contain: layout paint;
  outline: none;
}
#spaces .smap__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#spaces .smap__layer {
  position: absolute;
  inset: 0;
  will-change: transform, opacity;
}

/* the drift: the whole layer breathes up and down by two pixels over nine seconds (composited, no repaint) */
#spaces .smap__drift {
  position: absolute;
  inset: 0;
  animation: smap-drift 9s ease-in-out infinite;
}
#spaces .smap__stage:hover .smap__drift,
#spaces .smap__stage:focus-within .smap__drift,
#spaces .smap[data-paused] .smap__drift {
  animation-play-state: paused;
}
@keyframes smap-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -2px, 0);
  }
}

/* the flight: the old layer falls away past the eye and is gone (0.16 s, front-loaded) before the new one starts
   (0.1 s delay) and settles in on the spring, so two sets of labels are never legible together */
#spaces .smap__layer[data-leave='in'] {
  pointer-events: none;
  animation: smap-away-in 0.16s var(--h-ease) both;
}
#spaces .smap__layer[data-leave='out'] {
  pointer-events: none;
  animation: smap-away-out 0.16s var(--h-ease) both;
}
#spaces .smap__layer[data-enter='in'] {
  animation: smap-settle-in 0.62s var(--h-spring) 0.1s both;
}
#spaces .smap__layer[data-enter='out'] {
  animation: smap-settle-out 0.62s var(--h-spring) 0.1s both;
}
@keyframes smap-away-in {
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}
@keyframes smap-away-out {
  to {
    opacity: 0;
    transform: scale(0.92);
  }
}
@keyframes smap-settle-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}
@keyframes smap-settle-out {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
}

#spaces .smap__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}

/* ── the orbits ── */
#spaces .smap__rings ellipse {
  fill: none;
  stroke: var(--h-line-3);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  vector-effect: non-scaling-stroke;
}

/* ── the links: harness curves, ties between systems in the ghost ink ── */
#spaces .sml {
  cursor: pointer;
  outline: none;
}
#spaces .sml__hit {
  fill: none;
  stroke: transparent;
  stroke-width: 14;
  pointer-events: stroke;
}
#spaces .sml__line {
  fill: none;
  stroke: var(--h-kind-harness);
  stroke-opacity: 0.55;
  stroke-width: var(--h-stroke);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  transition: stroke-opacity var(--h-dur-fast) var(--h-ease), stroke-width var(--h-dur) var(--h-spring), stroke var(--h-dur-fast) var(--h-ease);
}
#spaces .sml--shared {
  cursor: default;
}
#spaces .sml--shared .sml__line {
  stroke: var(--h-ink-ghost);
  stroke-opacity: 0.8;
  stroke-dasharray: 3 5;
}
#spaces .sml__name {
  font-family: var(--font-mono);
  fill: var(--h-ink-quiet);
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--h-well);
  stroke-width: 3px;
  stroke-linejoin: round;
  transition: fill var(--h-dur-fast) var(--h-ease), opacity var(--h-dur-fast) var(--h-ease);
}
#spaces .sml__name--on {
  fill: var(--h-ink-strong);
}
#spaces .sml__name--sel {
  fill: var(--h-sel);
}
#spaces .sml__name--far {
  opacity: 0.35;
}
#spaces .sml--hot .sml__line,
#spaces .sml--near .sml__line {
  stroke-opacity: 1;
  stroke-width: var(--h-stroke-strong);
}
#spaces .sml--far .sml__line {
  stroke-opacity: 0.18;
}
#spaces .sml--sel .sml__line {
  stroke: var(--h-sel);
  stroke-opacity: 1;
  stroke-width: var(--h-stroke-strong);
}
#spaces .sml:focus-visible .sml__line {
  stroke: var(--h-ink-strong);
  stroke-opacity: 1;
  stroke-width: var(--h-stroke-strong);
}
#spaces .sml:focus-visible .sml__hit {
  stroke: var(--h-focus);
  stroke-opacity: 0.22;
  stroke-width: 10;
}

/* ── the bubbles ── */
#spaces .smn {
  cursor: pointer;
  outline: none;
}
#spaces .smn--inert {
  cursor: default;
}
#spaces .smn__lift {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform var(--h-dur-slow) var(--h-spring), filter var(--h-dur) var(--h-ease);
}
#spaces .smn--hot .smn__lift {
  transform: scale(1.06);
  filter: brightness(1.25);
}
#spaces .smn__orb {
  fill: color-mix(in srgb, var(--k) 14%, transparent);
  stroke: color-mix(in srgb, var(--k) 55%, transparent);
  stroke-width: var(--h-stroke);
  vector-effect: non-scaling-stroke;
}
#spaces .smn--pass .smn__orb {
  stroke: var(--h-pass);
  stroke-width: var(--h-stroke-strong);
}
#spaces .smn--fail .smn__orb {
  stroke: var(--h-fail);
  stroke-width: var(--h-stroke-strong);
}
#spaces .smn__glyph {
  color: var(--k);
  overflow: visible;
  pointer-events: none;
  transition: opacity var(--h-dur-slow) var(--h-spring);
}

/* ── the thing's own picture in its bubble (the app's card L01.34). It sits on the glass, clipped to the circle (the
      layer's clipPath), and the verdict ring is drawn again over its edge (.smn__rim) so the picture never hides it.
      It fades in once it is decoded (.smn--pic) while the glyph fades out; a bubble built with its picture decoded
      already starts on it. ── */
#spaces .smn__thumb {
  opacity: 0;
  transition: opacity var(--h-dur-slow) var(--h-spring);
}
#spaces .smn--pic .smn__thumb {
  opacity: 1;
}
#spaces .smn--pic .smn__glyph {
  opacity: 0;
}
#spaces .smn__thumb,
#spaces .smn__pic,
#spaces .smn__tint {
  pointer-events: none;
}
#spaces .smn__rim {
  display: none;
  fill: none;
  stroke: color-mix(in srgb, var(--k) 55%, transparent);
  stroke-width: var(--h-stroke);
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
#spaces .smn--pic .smn__rim {
  display: inline;
}
#spaces .smn--pass .smn__rim {
  stroke: var(--h-pass);
  stroke-width: var(--h-stroke-strong);
}
#spaces .smn--fail .smn__rim {
  stroke: var(--h-fail);
  stroke-width: var(--h-stroke-strong);
}
/* a system's name sits inside its bubble: over a picture it gets the stage's halo, as a name under a bubble has (the
   app's .smn__label--onpic; the only label inside the lift is an inside one) */
#spaces .smn--pic .smn__lift > .smn__label {
  paint-order: stroke;
  stroke: var(--h-well);
  stroke-width: 3px;
  stroke-linejoin: round;
}

/* The colour split under the pointer: the app's Sandbox button colours. Each ghost is the picture with a rectangle of
   its colour multiplied over it, screened onto the picture. A few stepped frames throw the two apart and tear them,
   then each rests a unit and a bit to its side for as long as the pointer stays. The ghosts exist only on the bubble
   under the pointer (js/fig/sysmap.js setSplit mounts them), so the tick plays once per visit and nothing animates at
   rest. */
#spaces .smn__ghost {
  mix-blend-mode: screen;
  isolation: isolate;
  opacity: 0.38;
}
#spaces .smn__tint {
  mix-blend-mode: multiply;
}
#spaces .smn__ghost--c {
  transform: translate(-1.2px, 0);
  animation: smn-split-c 0.42s steps(1, end) both;
}
#spaces .smn__ghost--c .smn__tint {
  fill: #19f0ff;
}
#spaces .smn__ghost--m {
  transform: translate(1.2px, 0);
  animation: smn-split-m 0.42s steps(1, end) both;
}
#spaces .smn__ghost--m .smn__tint {
  fill: #ff2bd6;
}
@keyframes smn-split-c {
  0% {
    opacity: 0.95;
    transform: translate(-4px, 1px);
  }
  16% {
    opacity: 0.95;
    transform: translate(3.5px, -1px) skewX(-7deg);
  }
  32% {
    opacity: 0.9;
    transform: translate(-2px, 0);
  }
  48% {
    opacity: 0.75;
    transform: translate(2.5px, 1px);
  }
  64%,
  100% {
    opacity: 0.38;
    transform: translate(-1.2px, 0);
  }
}
@keyframes smn-split-m {
  0% {
    opacity: 0.95;
    transform: translate(3.5px, -1px);
  }
  16% {
    opacity: 0.95;
    transform: translate(-5px, 1px) skewX(9deg);
  }
  32% {
    opacity: 0.9;
    transform: translate(2.5px, 0);
  }
  48% {
    opacity: 0.75;
    transform: translate(-2.5px, -1px);
  }
  64%,
  100% {
    opacity: 0.38;
    transform: translate(1.2px, 0);
  }
}
#spaces .smn__stale {
  fill: none;
  stroke: var(--h-ink-quiet);
  stroke-width: 1;
  stroke-dasharray: 1.5 3;
  pointer-events: none;
}
#spaces .smn__sel {
  fill: none;
  stroke: var(--h-sel);
  stroke-width: var(--h-stroke-strong);
  vector-effect: non-scaling-stroke;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--h-dur-fast) var(--h-ease);
}
#spaces .smn--sel .smn__sel {
  opacity: 1;
}
#spaces .smn__focus {
  fill: none;
  stroke: var(--h-focus);
  stroke-width: var(--h-stroke-strong);
  vector-effect: non-scaling-stroke;
  opacity: 0;
  pointer-events: none;
}
#spaces .smn:focus-visible .smn__focus {
  opacity: 1;
}
#spaces .smn__label {
  font-family: var(--font-mono);
  fill: var(--h-ink);
  pointer-events: none;
}
#spaces .smn__label--under {
  paint-order: stroke;
  stroke: var(--h-well);
  stroke-width: 3px;
  stroke-linejoin: round;
}
#spaces .smn__label--display {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  fill: var(--h-ink-strong);
}
#spaces .smn--part .smn__label {
  fill: var(--h-ink-dim);
}

/* ── the small card that follows the pointer ── */
#spaces .smap__tip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: max-content;
  max-width: min(300px, calc(100% - 28px));
  padding: 8px 11px 9px;
  border: var(--h-stroke) solid var(--h-line-2);
  border-radius: var(--h-r-row);
  background: color-mix(in srgb, var(--h-surface-2) 94%, transparent);
  box-shadow: var(--h-shadow-float);
  pointer-events: none;
  font-size: 11px;
  animation: smap-card-in var(--h-dur) var(--h-spring) both;
}
#spaces .smap__tip[hidden] {
  display: none;
}
@keyframes smap-card-in {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.97);
  }
}
#spaces .smap__card-kind {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#spaces .smap__card-name {
  color: var(--h-ink-strong);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#spaces .smap__card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  color: var(--h-ink-faint);
}
#spaces .smap__verdict {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--h-ink-quiet);
}
#spaces .smap__verdict::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--h-ink-ghost);
}
#spaces .smap__verdict--pass {
  color: var(--h-pass-ink);
}
#spaces .smap__verdict--pass::before {
  border-color: var(--h-pass);
  background: var(--h-pass);
}
#spaces .smap__verdict--fail {
  color: var(--h-fail-ink);
}
#spaces .smap__verdict--fail::before {
  border-color: var(--h-fail);
  background: var(--h-fail);
}

/* ── the foot of the figure: the legend, or the selection's card in the corner of the stage ── */
/* wide and tablet, the legend and the card float over the stage: the slot has no box of its own */
#spaces .smap__slot {
  position: static;
}
#spaces .smap__legend {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 12px;
  margin: 0;
  text-align: center;
  color: var(--h-ink-ghost);
  font-size: 10.5px;
  white-space: nowrap;
  pointer-events: none;
}
#spaces .smap__legend[hidden] {
  display: none;
}

/* the selection's card, parked in whichever corner hides the least of the picture */
#spaces .smap__info {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(300px, calc(100% - 28px));
  padding: 12px 14px 13px;
  border: var(--h-stroke-strong) solid var(--h-sel);
  border-radius: var(--h-r-card);
  background: color-mix(in srgb, var(--h-surface-2) 96%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--h-sel) 18%, transparent), var(--h-shadow-float);
  animation: smap-info-in var(--h-dur-slow) var(--h-spring) both;
}
#spaces .smap__info[hidden] {
  display: none;
}
#spaces .smap__info[data-corner='br'] {
  right: 14px;
  bottom: 14px;
}
#spaces .smap__info[data-corner='bl'] {
  left: 14px;
  bottom: 14px;
}
#spaces .smap__info[data-corner='tr'] {
  right: 14px;
  /* under the floating bar */
  top: 78px;
}
@keyframes smap-info-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
#spaces .smap__info-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
#spaces .smap__info-glyph {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--h-r-control);
  background: color-mix(in srgb, currentColor 12%, transparent);
  flex: none;
}
#spaces .smap__info-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
#spaces .smap__info-name {
  color: var(--h-ink-strong);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#spaces .smap__info-kind {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--h-ink-quiet);
  font-size: 11px;
}
#spaces .smap__info-close {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: var(--h-r-control);
  background: transparent;
  color: var(--h-ink-quiet);
  cursor: pointer;
}
#spaces .smap__info-close:hover {
  background: var(--h-surface-3);
  color: var(--h-ink);
}
#spaces .smap__info-close:focus-visible,
#spaces .smap__back:focus-visible {
  outline: 2px solid var(--h-focus);
  outline-offset: 2px;
}
#spaces .smap__info-line {
  margin: 0;
  color: var(--h-ink-dim);
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#spaces .smap__info-facts {
  margin: 0;
  color: var(--h-ink-quiet);
  font-size: 11px;
}

/* ── tablet: the same picture, a narrower stage ── */
@media (max-width: 960px) {
  #spaces .smap__stage {
    height: 620px;
  }
}

/* ── phone: the picture keeps its height; the selection's card and the legend move under it ── */
@media (max-width: 640px) {
  #spaces .smap-block__head {
    margin-bottom: 28px;
  }
  #spaces .smap__stage {
    height: 600px;
  }
  /* the bar stacks its two lines so neither gets cut off */
  #spaces .smap__bar {
    top: 10px;
    left: 12px;
    right: 12px;
  }
  #spaces .smap__title {
    font-size: 18px;
  }
  /* the back button folds to its chevron, so the counts beside it fit on one line */
  #spaces .smap__back {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
  #spaces .smap__back span {
    display: none;
  }
  #spaces .smap__sum {
    font-size: 10.5px;
  }
  /* the slot holds the legend or the card, at a fixed height so a tap never moves the page */
  #spaces .smap__slot {
    position: relative;
    display: flex;
    align-items: flex-start;
    height: 132px;
    padding: 12px;
    border-top: 1px solid var(--h-line-1);
  }
  #spaces .smap__legend {
    position: static;
    white-space: normal;
    text-align: center;
    align-self: center;
    margin: 0 auto;
  }
  #spaces .smap__info {
    position: static;
    width: 100%;
    gap: 5px;
    padding: 10px 12px;
    box-shadow: none;
    animation-name: smap-info-in-phone;
  }
  #spaces .smap__info-line {
    -webkit-line-clamp: 2;
  }
}
@keyframes smap-info-in-phone {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ── reduced motion: nothing drifts, lifts, flies or rises; a picture is there when it lands, and its colour split
      does not tear (the steady fringe stays, as on the app's map) ── */
@media (prefers-reduced-motion: reduce) {
  #spaces .smap__drift {
    animation: none;
  }
  #spaces .smn__lift,
  #spaces .smn__thumb,
  #spaces .smn__glyph,
  #spaces .sml__line,
  #spaces .sml__name {
    transition: none;
  }
  #spaces .smn__ghost {
    animation: none;
  }
  #spaces .smn--hot .smn__lift {
    transform: none;
  }
  #spaces .smap__layer[data-leave],
  #spaces .smap__layer[data-enter],
  #spaces .smap__info,
  #spaces .smap__tip {
    animation: none;
  }
}

/* ==== sections/65-prompt.css ==== */
/* the interview's picture under the terminal and the rows */
#prompt .pr__interview {
  margin: 40px 0 0;
}

/* ==== prompt: agents in the loop (owner: the prompt section) ==== */

/*
 * Layout: from 961 px the terminal takes 7/12 on the left and the rows sit beside it; at 960 and below base.css
 * stacks the split (terminal first, rows under it). The override lives inside the min-width query so the base
 * single-column rule still wins on tablets and phones.
 */
@media (min-width: 961px) {
  #prompt .pr {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}
#prompt .pr__copy {
  gap: 16px;
}
#prompt .pr__note {
  padding-inline: 4px;
  color: var(--h-ink-quiet);
}

/* ───────────────────────────── the terminal window ───────────────────────────── */
#prompt .pt {
  --pt-fs: 14px;
  --pt-lh: 1.6;
  --pt-in: 10px; /* the transcript's inner gutter (the user band bleeds into it) */
  height: 560px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: var(--pt-fs);
  line-height: var(--pt-lh);
  font-weight: 400;
  color: var(--h-ink);
  contain: layout paint;
}

/* the app's terminal title row: a live dot, "Terminal · claude", which session is up */
#prompt .pt__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--h-line-1);
  background: color-mix(in srgb, var(--h-surface-1) 94%, transparent);
  font-size: 12.5px;
  line-height: 1;
  color: var(--h-ink-faint);
  white-space: nowrap;
}
#prompt .pt__live {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--h-pass);
  box-shadow: 0 0 8px color-mix(in srgb, var(--h-pass) 55%, transparent);
}
#prompt .pt__name {
  color: var(--h-ink-dim);
}
#prompt .pt__sep {
  color: var(--h-ink-quiet);
}
#prompt .pt__label {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--h-ink-quiet);
  font-variant-numeric: tabular-nums;
}

/* ───────────────────────────── the TUI ───────────────────────────── */
#prompt .pt__screen {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px 8px 12px;
  /* the well, a little open so the stage grid and the bloom read through behind the text */
  background: color-mix(in srgb, var(--h-well) 80%, transparent);
}

/*
 * The transcript scroller. column-reverse puts the scroll origin at the bottom, so new lines stay in view with no
 * scroll writes and no layout reads from JS; the flow's auto bottom margin keeps a short transcript at the top.
 * contain: strict makes it a relayout boundary: appending a token lays out this box and nothing else.
 */
#prompt .pt__log {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden; /* a show, not a pane: it never holds the page's wheel */
  contain: strict;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14px);
}
#prompt .pt__flow {
  margin-bottom: auto;
  display: grid;
  gap: 14px;
  padding: 14px var(--pt-in) 4px;
  overflow-wrap: anywhere;
}
#prompt .pt-x {
  display: grid;
  gap: 10px;
}

/* the welcome box */
#prompt .pt-banner {
  justify-self: start;
  width: min(100%, 50ch);
  display: grid;
  gap: 1px;
  padding: 10px 14px 11px;
  border: 1px solid var(--h-line-3);
  border-radius: var(--h-r-control);
}
#prompt .pt-banner__title {
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--h-ink-strong);
}
#prompt .pt-banner__meta {
  padding-left: 2ch;
  color: var(--h-ink-faint);
}
#prompt .pt-banner__help {
  margin-top: 6px;
  padding-left: 2ch;
  color: var(--h-ink-quiet);
}
#prompt .pt-model {
  color: var(--hue);
}

/* every transcript row: a 2-column gutter for the glyph, the text hanging beside it */
#prompt .pt-row {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  align-items: start;
}

/* the agent's bullet: the one place the hue lives in the transcript; it blinks while its tool runs */
#prompt .pt-dot {
  color: var(--hue);
  transition: opacity 0.12s var(--h-ease);
}
#prompt .pt-dot[data-run][data-off] {
  opacity: 0.18;
}

/* the user's line, a quiet band like Claude Code's own */
#prompt .pt-u {
  margin-inline: calc(-1 * var(--pt-in));
  padding: 7px var(--pt-in);
  border-radius: var(--h-r-control);
  background: color-mix(in srgb, var(--h-ink) 5.5%, transparent);
  color: var(--h-ink-dim);
}
#prompt .pt-u__ps {
  color: var(--h-ink-quiet);
}

/* tool calls: "● Name(arg)" then "⎿" result lines */
#prompt .pt-t__n {
  font-weight: 600;
  color: var(--h-ink-strong);
}
#prompt .pt-t__a {
  color: var(--h-ink-faint);
}
#prompt .pt-ol {
  grid-column: 2;
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr);
  color: var(--h-ink-faint);
}
#prompt .pt-ol__e {
  color: var(--h-ink-quiet);
}
#prompt .pt-ol[data-v='pass'] .pt-ol__t {
  color: var(--h-pass-ink);
}
#prompt .pt-ol[data-v='fail'] .pt-ol__t {
  color: var(--h-fail-ink);
}

/* the options the agent lays out: quiet, a hair inside its text */
#prompt .pt-opts {
  grid-column: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  color: var(--h-ink-dim);
}
#prompt .pt-opt {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
}
#prompt .pt-opt::before {
  content: '-';
  color: var(--h-ink-quiet);
}

/* questions for the owner: one panel, each with its default, what it blocks, its deadline */
#prompt .pt-q {
  grid-column: 2;
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding: 10px 12px 11px;
  border: 1px solid var(--h-line-3);
  border-radius: var(--h-r-control);
  background: color-mix(in srgb, var(--h-surface-2) 82%, transparent);
}
#prompt .pt-qi {
  display: grid;
  gap: 3px;
}
#prompt .pt-qi + .pt-qi {
  padding-top: 10px;
  border-top: 1px solid var(--h-line-1);
}
#prompt .pt-qi__q {
  padding-left: 2ch;
  text-indent: -2ch;
  color: var(--h-ink);
}
#prompt .pt-qi__mark {
  display: inline-block;
  width: 2ch;
  text-indent: 0;
  font-weight: 600;
  color: var(--h-ink-strong);
}
#prompt .pt-qi__id {
  font-weight: 600;
  color: var(--h-ink-strong);
}
#prompt .pt-qi__m {
  padding-left: 2ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--h-ink-dim);
}
#prompt .pt-qi__k {
  color: var(--h-ink-quiet);
}

/* the verdict: base's chip, the words in the serif (the Latin is the only thing that ever is) */
#prompt .pt-v {
  margin-top: 2px;
}
#prompt .pt-v__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-width: 0;
}
#prompt .pt-v__chip {
  height: 30px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
#prompt .pt-v__m {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--h-ink-faint);
}

/* the spinner row: always reserved, so the input never jumps when the agent starts or stops */
#prompt .pt__spin {
  flex: none;
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  height: calc(var(--pt-lh) * 1em);
  margin: 8px 0;
  padding-inline: var(--pt-in);
  white-space: nowrap;
  overflow: hidden;
  color: var(--h-ink-dim);
  visibility: hidden;
}
#prompt .pt__spin[data-on] {
  visibility: visible;
}
#prompt .pt-spin__t {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#prompt .pt-spin__esc {
  color: var(--h-ink-quiet);
}

/* the input box: "›", what the engineer has typed, the block cursor */
#prompt .pt__box {
  flex: none;
  position: relative;
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  padding: 9px 12px 9px var(--pt-in);
  border: 1px solid var(--h-line-3);
  border-radius: var(--h-r-control);
  background: color-mix(in srgb, var(--h-well) 70%, transparent);
}
#prompt .pt__ps {
  color: var(--h-ink-faint);
}
#prompt .pt__line {
  min-width: 0;
  color: var(--h-ink-strong);
}
#prompt .pt__cur {
  display: inline-block;
  width: 1ch;
  height: 1.3em;
  margin-left: 1px;
  vertical-align: -0.28em;
  border-radius: 1px;
  background: var(--h-ink);
}
#prompt .pt__cur[data-off] {
  opacity: 0;
}
/* the status line, as Claude Code draws it: quiet, the mode and nothing else */
#prompt .pt__status {
  flex: none;
  padding: 8px var(--pt-in) 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--h-ink-quiet);
}

/* entrances: a line rises into place on the spring, a token inks in; both compositor-only, one-shot */
#prompt .pt-new {
  animation: pt-rise 0.34s var(--h-spring) both;
}
#prompt .pt-tok {
  animation: pt-ink 0.22s var(--h-ease) both;
}
@keyframes pt-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes pt-ink {
  from {
    opacity: 0.12;
  }
}

/* ───────────────────────────── phones ───────────────────────────── */
@media (max-width: 640px) {
  #prompt .pt {
    --pt-fs: 13px;
    --pt-in: 8px;
    height: 480px;
    border-radius: var(--h-r-card);
  }
  #prompt .pt__bar {
    height: 36px;
    padding: 0 12px;
  }
  #prompt .pt__screen {
    padding: 4px 6px 10px;
  }
  #prompt .pt-banner {
    padding: 8px 12px 9px;
  }
  #prompt .pt__box {
    padding-block: 8px;
  }
}

/* ───────────────── nothing playing: the whole session reads ───────────────── */
/*
 * Reduced motion and no-JS show the finished conversation as a document: the box grows to fit it, nothing is
 * pinned to the bottom, nothing to scroll inside it.
 */
@media (prefers-reduced-motion: reduce) {
  #prompt .pt {
    height: auto;
  }
  #prompt .pt__log {
    contain: none;
    display: block;
    flex: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  #prompt .pt__spin {
    display: none;
  }
}
html:not(.js) #prompt .pt {
  height: auto;
}
html:not(.js) #prompt .pt__log {
  contain: none;
  display: block;
  flex: none;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}
html:not(.js) #prompt .pt__spin {
  display: none;
}

/* ==== sections/70-verdict.css ==== */
/* ==== verdict: nihil obstat / obstat, then the proof rows and the Audit (owner: the verdict section) ==== */

/*
 * The stage holds the moment. Two serif words, each in its verdict colour, a grey hairline between them and a
 * static bloom behind each. The module (js/fig/verdict.js) writes only three things per frame: each word's
 * transform + opacity + letter-spacing, and the hairline's --draw. Everything else here is static or a one-off
 * class flip that CSS transitions.
 *
 *   >= 960   side by side; "nihil obstat" breaks after nihil, so both obstats share one baseline
 *   <  960   stacked, centred; "nihil obstat" stays on one line until the pair is too narrow, then breaks at the
 *            space (decided by a container query, never by the animating letter-spacing, so it cannot jump)
 */
#verdict {
  /* the column gap either side of the hairline */
  --vd-gap: clamp(28px, 4.5vw, 64px);
}

/* ───────────────────────────── the stage ───────────────────────────── */
#verdict .verdict__stage {
  padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 72px);
  margin-bottom: clamp(40px, 5vw, 72px);
  text-align: center;
}

/* the pair: a size container, so the word size can be capped by the width it actually has */
#verdict .verdict__pair {
  container: verdict-pair / inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  row-gap: clamp(36px, 7vw, 56px);
}

#verdict .verdict__side {
  display: grid;
  justify-items: center;
  min-width: 0;
}

/* ───────────────────────────── the words ───────────────────────────── */
#verdict .verdict__word {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  white-space: nowrap;
  /* the stamp scales about the lower middle of the glyphs, where the paper is */
  transform-origin: 50% 62%;
  font-kerning: normal;
}
#verdict .verdict__line {
  display: inline-block;
}
#verdict .verdict__side--pass .verdict__word {
  color: var(--h-pass);
}
/* nihil, the one word that separates the two verdicts, carries the pass ink */
#verdict .verdict__side--pass .verdict__line:first-child {
  color: var(--h-pass-ink);
}
#verdict .verdict__side--fail .verdict__word {
  color: var(--h-fail);
}

/* the pair too narrow for "nihil obstat" on one line (plus its stamp-in tracking): break at the space */
@container verdict-pair (max-width: 420px) {
  #verdict .verdict__side--pass .verdict__line {
    display: block;
  }
}

/* ───────────────────────────── meanings and sources ─────────────────── */
#verdict .verdict__meaning {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--h-ink-faint);
  text-wrap: balance;
}
#verdict .verdict__src {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  height: 26px;
  padding: 0 10px 0 9px;
  border: 1px solid var(--h-line-2);
  border-radius: var(--h-r-chip);
  background: var(--h-surface-1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--h-ink-faint);
  white-space: nowrap;
}
#verdict .verdict__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
#verdict .verdict__side--pass .verdict__dot {
  background: var(--h-pass);
  box-shadow: 0 0 8px color-mix(in srgb, var(--h-pass) 55%, transparent);
}
#verdict .verdict__side--fail .verdict__dot {
  background: var(--h-fail);
  box-shadow: 0 0 8px color-mix(in srgb, var(--h-fail) 55%, transparent);
}

/* ───────────────────────────── the hairline ────────────────────────── */
/* stacked: a short horizontal rule between the two; --draw (0..1) is the module's one write to it */
#verdict .verdict__rule {
  display: block;
  width: min(280px, 64%);
  height: 1px;
  background: var(--h-line-3);
  transform: scaleX(var(--draw, 1));
  transform-origin: 50% 50%;
}

/* ───────────────────────────── the blooms ──────────────────────────── */
/*
 * Two static glows, one per verdict colour (each bloom overrides --hue inline). The gradient reads --hue directly
 * rather than --hue-soft, so the inline override is what colours it. Stacked: one per half, top and bottom.
 */
#verdict .verdict__bloom {
  background: radial-gradient(46% 40% at 50% 54%, color-mix(in srgb, var(--hue) 13%, transparent), transparent 72%);
}
#verdict .verdict__bloom--pass {
  inset: -6% -10% 50% -10%;
}
#verdict .verdict__bloom--fail {
  inset: 50% -10% -6% -10%;
}

/* ───────────────────────────── side by side (>= 960) ───────────────── */
@media (min-width: 960px) {
  #verdict .verdict__pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: var(--vd-gap);
    row-gap: 0;
    align-items: end;
  }
  /*
   * Both columns must hold "obstat" (3.0 em) with room for its 1.12x stamp-in, so the size is capped by the
   * column as well as by the viewport: (pair - two gaps) / 2 columns / 3.05 em (the 1.12x is transform only;
   * its brief overhang falls into the gap, never across the hairline's neighbour).
   */
  #verdict .verdict__word {
    font-size: min(clamp(64px, 11vw, 180px), calc((100cqi - 2 * var(--vd-gap)) / 6.1));
  }
  /* nihil above obstat, so the two obstats share a baseline */
  #verdict .verdict__side--pass .verdict__line {
    display: block;
  }
  #verdict .verdict__rule {
    width: 1px;
    height: auto;
    align-self: stretch;
    transform: scaleY(var(--draw, 1));
  }
  #verdict .verdict__bloom--pass {
    inset: -10% 50% -10% -6%;
  }
  #verdict .verdict__bloom--fail {
    inset: -10% -6% -10% 50%;
  }
  #verdict .verdict__bloom {
    background: radial-gradient(44% 46% at 50% 60%, color-mix(in srgb, var(--hue) 13%, transparent), transparent 72%);
  }
}

/* ───────────────────────────── the figure's states ─────────────────── */
/*
 * With JS off everything above is the finished frame. While the module loads the words wait hidden (no flash of
 * the end state); once it has mounted (data-live) the module owns the words, and the meanings, sources and blooms
 * arrive by class flip as each word lands. Reduced motion zeroes the transitions in base.css.
 */
.js #verdict .verdict__stage[data-fig-state='loading'] .verdict__word,
.js #verdict .verdict__stage[data-fig-state='loading'] .verdict__rule {
  opacity: 0;
}
#verdict .verdict__stage[data-live] .verdict__meaning,
#verdict .verdict__stage[data-live] .verdict__src {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity var(--h-dur-slow) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring);
}
#verdict .verdict__stage[data-live] .verdict__src {
  transition-delay: 90ms;
}
#verdict .verdict__stage[data-live] .verdict__bloom {
  opacity: 0;
  transition: opacity 0.9s var(--h-ease);
}
#verdict .verdict__stage.is-pass-in .verdict__side--pass .verdict__meaning,
#verdict .verdict__stage.is-pass-in .verdict__side--pass .verdict__src,
#verdict .verdict__stage.is-fail-in .verdict__side--fail .verdict__meaning,
#verdict .verdict__stage.is-fail-in .verdict__side--fail .verdict__src {
  opacity: 1;
  transform: none;
}
#verdict .verdict__stage.is-pass-in .verdict__bloom--pass,
#verdict .verdict__stage.is-fail-in .verdict__bloom--fail {
  opacity: 1;
}
/* only the two words move every frame, and only until the stamp has landed */
#verdict .verdict__stage[data-live]:not([data-done]) .verdict__word {
  will-change: transform, opacity;
}

/* ───────────────────────────── the proof ───────────────────────────── */
#verdict .verdict__proof {
  align-items: center;
}
#verdict .verdict__proof .rows {
  margin: 0;
}

@media (max-width: 640px) {
  #verdict .verdict__stage {
    padding-inline: 16px;
  }
  #verdict .verdict__meaning {
    font-size: 13px;
    max-width: 30ch;
  }
}

/* ==== sections/72-team.css ==== */
/* ==== team: how a team works in Nihil, through plain git (owner: the team section) ==== */

/* the card: copy on the left, the lanes and the branch drawing on the right; stacks at 960 */
#team .team {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 64px);
}
#team .team__copy {
  display: grid;
  gap: 20px;
  justify-items: start;
  min-width: 0;
}
#team .team__copy .t-lead {
  max-width: 44ch;
}
#team .team__foot {
  color: var(--h-ink-faint);
}
#team .team__fig {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* ── the lanes: a small list, the app's voice ── */
#team .team__lanes {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-row);
  background: color-mix(in srgb, var(--h-surface-1) 92%, transparent);
  overflow: hidden;
}
#team .team__lane {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto 58px;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--h-line-1);
}
#team .team__lane:first-child {
  border-top: 0;
}
#team .team__ico {
  width: 18px;
  height: 18px;
  color: var(--hue);
}
#team .team__who {
  display: grid;
  gap: 1px;
  min-width: 0;
}
#team .team__who b {
  font-weight: 600;
  font-size: 15px;
  color: var(--h-ink-strong);
  overflow-wrap: anywhere;
}
#team .team__who span {
  font-size: 13px;
  color: var(--h-ink-faint);
}
#team .team__branch {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--hue);
  white-space: nowrap;
}
#team .team__branch--wait {
  color: var(--h-ink-quiet);
}
#team .team__agent {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--h-ink-quiet);
}

/* ── the branch drawing: their branch off dev, yours off theirs ── */
#team .team__graph {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
#team .team__line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
#team .team__line--dev {
  stroke: var(--h-line-3);
}
#team .team__line--theirs {
  stroke: var(--h-kind-board);
}
#team .team__line--yours {
  stroke: var(--h-space-memoria);
}
#team .team__dot--dev {
  fill: var(--h-line-3);
}
#team .team__dot--theirs {
  fill: var(--h-kind-board);
}
#team .team__dot--yours {
  fill: var(--h-space-memoria);
}
#team .team__label {
  font-family: var(--font-mono);
  font-size: 13px;
  fill: var(--h-ink-faint);
}
#team .team__label--theirs {
  fill: var(--h-kind-board);
}
#team .team__label--yours {
  fill: var(--h-space-memoria);
}

/* the branches draw themselves once, on the spring, when the card arrives */
#team .team[data-reveal] .team__line--theirs,
#team .team[data-reveal] .team__line--yours {
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  transition: stroke-dashoffset 1.1s var(--h-ease) 0.2s;
}
#team .team[data-reveal] .team__line--yours {
  transition-delay: 0.55s;
}
#team .team[data-shown] .team__line--theirs,
#team .team[data-shown] .team__line--yours {
  stroke-dashoffset: 0;
}
html:not(.js) #team .team__line--theirs,
html:not(.js) #team .team__line--yours {
  stroke-dashoffset: 0;
}

/* stacked at 960: the copy first */
@media (max-width: 960px) {
  #team .team {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* phones: the branch name drops under the words; the drawing's labels scale back up */
@media (max-width: 640px) {
  #team .team__lane {
    grid-template-columns: 20px minmax(0, 1fr) auto;
    row-gap: 3px;
    padding: 12px 14px;
  }
  #team .team__branch {
    grid-column: 2;
  }
  #team .team__agent {
    grid-column: 3;
    grid-row: 1;
  }
  #team .team__label {
    font-size: 21px;
  }
}

/* ==== sections/73-cta.css ==== */
/* ==== cta: the call to action before the demo (owner: the cta section) ==== */

/* no panel: open ground, one big centred claim, a bloom low behind it */
#cta .cta {
  position: relative;
  padding-block: clamp(24px, 5vw, 72px);
}
#cta .bloom {
  inset: -30% -20%;
  background: radial-gradient(52% 58% at 50% 60%, var(--hue-soft), transparent 72%);
}
#cta .cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
#cta .cta__title {
  max-width: 13.5em;
  text-wrap: balance;
}
#cta .cta__lead {
  max-width: 46ch;
  text-wrap: balance;
}
#cta .cta__actions {
  justify-content: center;
}

/* ==== sections/75-tryit.css ==== */
/* ==== tryit: the real app, in a window (owner: the tryit section; also the Demo page body, #demo) ==== */

/*
 * One component, two hosts: the home page's #tryit and the Demo page's #demo. Every selector is scoped under one of
 * them through :is(#tryit, #demo).
 *
 * The window
 *   .tryit            the frame: 16:10, centred, never taller than the screen can show (--tryit-chrome is the page
 *                     height it leaves for the header and some air); full screen fills the screen edge to edge
 *   .tryit__bar       the miniature Spaces bar. Poster: N, the four spaces (Atlas selected, as the app boots), Demo,
 *                     live sim. Running: the spaces give way to the window's title and the controls slide in
 *   .tryit__view      the viewport: the poster on top of the iframe, the loading line on top of both
 *
 * State lives in data-state on the frame (terms | probing | ready | absent | loading | running), set by js/fig/tryit.js.
 *
 * Colour: sky (the section hue) only on the headline keyword, the live dot and the launch button's glow. The space
 * icons carry their own hues because the bar is the app's, and the cards light only their icon.
 */

/* ───────────────────────────── the frame ─────────────────────────────────── */
:is(#tryit, #demo) .tryit {
  --tryit-chrome: 200px;
  display: flex;
  flex-direction: column;
  width: min(100%, 1400px, max(560px, calc((100svh - var(--tryit-chrome)) * 1.6)));
  aspect-ratio: 16 / 10;
  margin-inline: auto;
  border-color: var(--h-line-2);
  background: var(--h-ground);
}

/* full screen: the whole window, bar included, edge to edge (data-fullscreen is set by the module) */
:is(#tryit, #demo) .tryit[data-fullscreen] {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

/* ───────────────────────────── the bar ───────────────────────────────────── */
:is(#tryit, #demo) .tryit__bar {
  flex: none;
  gap: 10px;
  padding: 0 8px 0 14px;
  min-width: 0;
}
:is(#tryit, #demo) .tryit__bar .appbar__n {
  margin-right: 2px;
}

/* the spaces sit in one group, as in the app's own bar */
:is(#tryit, #demo) .tryit__spaces {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--h-line-2);
  border-radius: 11px;
  background: var(--h-surface-2);
  transition:
    opacity var(--h-dur) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring),
    visibility 0s linear 0s;
}
:is(#tryit, #demo) .tryit__spaces .appbar__space {
  height: 26px;
  padding: 0 9px;
  color: var(--h-ink-dim);
}
:is(#tryit, #demo) .tryit__spaces .appbar__space[aria-current] {
  color: var(--h-ink-strong);
}

/* the window's title, in the spaces' place once the app (with its own bar) is running */
:is(#tryit, #demo) .tryit__title {
  position: absolute;
  left: 46px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--h-ink-dim);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity var(--h-dur) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring);
}
:is(#tryit, #demo) .tryit__title-sep,
:is(#tryit, #demo) .tryit__title-dim {
  color: var(--h-ink-faint);
}

/* chips: Demo (as the app's bar shows it) and live sim, whose dot is the one lit thing in the bar */
:is(#tryit, #demo) .tryit__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px;
  border-radius: var(--h-r-chip);
  border: 1px solid var(--h-line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--h-ink-faint);
  white-space: nowrap;
  flex: none;
}
:is(#tryit, #demo) .tryit__chip--live {
  color: var(--h-ink-dim);
  padding-left: 9px;
}
:is(#tryit, #demo) .tryit__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 10px var(--hue-glow);
}

/* the controls: hidden until the app runs, then they slide in from the right */
:is(#tryit, #demo) .tryit__controls {
  display: none;
  align-items: center;
  gap: 6px;
  flex: none;
  transition:
    opacity var(--h-dur) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring);
}
:is(#tryit, #demo) .tryit__ctl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--h-line-2);
  background: var(--h-surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--h-ink-dim);
  white-space: nowrap;
  transition:
    color var(--h-dur-fast) var(--h-ease),
    border-color var(--h-dur-fast) var(--h-ease),
    background var(--h-dur-fast) var(--h-ease),
    transform var(--h-dur-fast) var(--h-spring);
}
:is(#tryit, #demo) .tryit__ctl:hover {
  color: var(--h-ink-strong);
  border-color: var(--h-line-hover);
  background: var(--h-surface-3);
}
:is(#tryit, #demo) .tryit__ctl:active {
  transform: scale(0.96);
}
:is(#tryit, #demo) .tryit__ctl[hidden] {
  display: none;
}
:is(#tryit, #demo) .tryit__ctl svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* the full screen glyph: corners out to enter, corners in to leave */
:is(#tryit, #demo) .tryit__ico-exit,
:is(#tryit, #demo) .tryit[data-fullscreen] .tryit__ico-enter {
  display: none;
}
:is(#tryit, #demo) .tryit[data-fullscreen] .tryit__ico-exit {
  display: inline;
}

/* ───────────────────────────── the viewport ──────────────────────────────── */
:is(#tryit, #demo) .tryit__view {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--h-ground);
}

/* the app: rendered at its own logical size by the module and scaled to fit from the top-left corner */
:is(#tryit, #demo) .tryit__app {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--h-ground);
  transform-origin: 0 0;
}

/* the loading line: a slim segment swept along the viewport's top edge while the iframe loads */
:is(#tryit, #demo) .tryit__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--h-dur) var(--h-ease);
}
:is(#tryit, #demo) .tryit__line > span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: 2px;
  background: var(--h-ink-strong);
  opacity: 0.85;
  transform: translate3d(-100%, 0, 0);
}

/* ───────────────────────────── the poster ────────────────────────────────── */
:is(#tryit, #demo) .tryit__poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--h-ground);
  transition:
    opacity var(--h-dur-slow) var(--h-ease),
    visibility 0s linear 0s;
}

/* the Atlas screenshot, its own top bar cropped away (55 of 1600 px) so the miniature bar stands in for it */
:is(#tryit, #demo) .tryit__shot {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  max-width: none;
  margin-top: -3.45%;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}

/* the launch affordance's glow: a static sky bloom behind the button, a little brighter on hover */
:is(#tryit, #demo) .tryit__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(28% 38% at 50% 50%, var(--hue-soft), transparent 72%),
    radial-gradient(46% 62% at 50% 50%, color-mix(in srgb, var(--h-ground) 72%, transparent), transparent 80%);
  opacity: 0.85;
  transition: opacity var(--h-dur) var(--h-ease);
}
/*
 * A recording instead of the launch (data-view="clip", js/fig/tryit.js): the clip fills the poster, clear and
 * undimmed, and one line across its top says why it is here and what the live demo needs. The launch, the Terms box
 * and the dimmed screenshot are not shown under it: the recording is the view until the visitor asks for the app.
 */
:is(#tryit, #demo) .tryit__clip {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--h-ground);
}
/* the demo's own tab on an upright phone is far taller than the recording: show all of it, not its middle third */
@media (orientation: portrait) {
  :is(#tryit, #demo) .tryit--tab .tryit__clip {
    object-fit: contain;
  }
}
:is(#tryit, #demo) .tryit__clip[hidden],
:is(#tryit, #demo) .tryit__why[hidden] {
  display: none;
}
:is(#tryit, #demo) .tryit[data-view='clip'] :is(.tryit__shot, .tryit__glow, .tryit__cta, .tryit__absent) {
  display: none;
}
:is(#tryit, #demo) .tryit__why {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 10px 10px 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--h-line-2);
  /* opaque enough to read over any frame of the clip, and no blur: frost over a video is paid for on every frame */
  background: color-mix(in srgb, var(--h-ground) 88%, transparent);
}
:is(#tryit, #demo) .tryit__why-text {
  margin: 0;
  min-width: 0;
  color: var(--h-ink-dim);
  text-wrap: balance;
}
:is(#tryit, #demo) .tryit__anyway {
  flex: none;
}
:is(#tryit, #demo) .tryit__anyway[hidden] {
  display: none;
}
@media (max-width: 640px), (pointer: coarse) {
  :is(#tryit, #demo) .tryit__why {
    left: 8px;
    right: 8px;
    top: 8px;
    padding: 8px 8px 8px 12px;
  }
  /* a finger gets the full 44 px */
  :is(#tryit, #demo) .tryit__anyway {
    min-height: 44px;
  }
}

:is(#tryit, #demo) .tryit__poster:has(.tryit__launch:hover, .tryit__launch:focus-visible) .tryit__glow {
  opacity: 1;
}

:is(#tryit, #demo) .tryit__cta,
:is(#tryit, #demo) .tryit__absent {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 16px;
  text-align: center;
}
:is(#tryit, #demo) .tryit__launch {
  margin-bottom: 4px;
}
:is(#tryit, #demo) .tryit__launch:hover,
:is(#tryit, #demo) .tryit__launch:focus-visible {
  box-shadow: 0 0 0 4px var(--hue-faint), 0 0 36px var(--hue-glow);
}
:is(#tryit, #demo) .tryit__launch[aria-busy='true'] {
  cursor: progress;
  transform: none;
  box-shadow: 0 0 0 4px var(--hue-faint), 0 0 36px var(--hue-glow);
}
/* the Terms box over the button (base.css .tos): until it is ticked the button waits, dimmed, with no glow to promise */
:is(#tryit, #demo) .tryit__tos {
  margin-bottom: -2px;
  /* a quiet plate of the ground under the words, so the screenshot behind never runs through them (no blur: free) */
  padding: 2px 16px 2px 12px;
  border-radius: var(--h-r-row);
  background: color-mix(in srgb, var(--h-ground) 82%, transparent);
  transition:
    grid-template-rows var(--h-dur-slow) var(--h-spring),
    padding var(--h-dur-slow) var(--h-spring);
}
/*
 * While the reason line shows (asking, recording the tick, or why it did not hold) the plate gives it the air the row
 * has above the box: the line's own 6 px (base.css) and these 8 px. Folded away once ticked, the row's air is enough.
 */
:is(#tryit, #demo) .tryit__tos:not([data-tos='ok']) {
  padding-bottom: 8px;
}
/*
 * The reason keeps one measure whatever it says (34 characters: the ask, on one line), so the plate, centred over the
 * button, never changes width under the pointer as the line turns to "Recording your acceptance…" or to why the tick
 * did not hold; a longer line wraps inside it. The plate's one column has no minimum of its own, so on a narrow window
 * the plate gives way to the window instead of the measure pushing it past the edge, and the line wraps in what is left.
 */
:is(#tryit, #demo) .tryit__tos {
  grid-template-columns: minmax(0, auto);
}
:is(#tryit, #demo) .tryit__tos .tos__why {
  width: calc(34ch + var(--tos-indent));
  max-width: 100%;
}
:is(#tryit, #demo) .tryit__launch[aria-disabled='true'],
:is(#tryit, #demo) .tryit__launch[aria-disabled='true']:hover,
:is(#tryit, #demo) .tryit__launch[aria-disabled='true']:focus-visible {
  box-shadow: none;
}
:is(#tryit, #demo) .tryit__launch[aria-disabled='true']:focus-visible {
  outline: 2px solid var(--h-ink-dim);
  outline-offset: 3px;
}
:is(#tryit, #demo) .tryit__poster:has(.tryit__launch[aria-disabled='true']) .tryit__glow {
  opacity: 0.6;
}
:is(#tryit, #demo) .tryit__facts {
  color: var(--h-ink-dim);
}
:is(#tryit, #demo) .tryit__phone {
  display: none;
}

/* no build on this host, or no JS: the button gives way to a plain sentence and the way to the download page */
:is(#tryit, #demo) .tryit__absent {
  display: none;
  max-width: 46ch;
}
:is(#tryit, #demo) .tryit__absent .t-body {
  color: var(--h-ink-dim);
}
:is(#tryit, #demo) .tryit[data-state='absent'] .tryit__absent,
html:not(.js) :is(#tryit, #demo) .tryit__absent {
  display: grid;
}
:is(#tryit, #demo) .tryit[data-state='absent'] .tryit__cta,
html:not(.js) :is(#tryit, #demo) .tryit__cta {
  display: none;
}

/* ───────────────────────────── the states ────────────────────────────────── */
/* loading: the line sweeps; the module moves its segment (one transform per frame, only while loading) */
:is(#tryit, #demo) .tryit[data-state='loading'] .tryit__line {
  opacity: 1;
}
:is(#tryit, #demo) .tryit[data-state='loading'] .tryit__line > span {
  will-change: transform;
}

/* running: the poster fades away, the bar becomes the window's title, the controls come in */
:is(#tryit, #demo) .tryit[data-state='running'] .tryit__poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--h-dur-slow) var(--h-ease),
    visibility 0s linear var(--h-dur-slow);
}
:is(#tryit, #demo) .tryit[data-state='running'] .tryit__spaces {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition:
    opacity var(--h-dur) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring),
    visibility 0s linear var(--h-dur);
}
:is(#tryit, #demo) .tryit[data-state='running'] .tryit__title {
  opacity: 1;
  transform: none;
}
:is(#tryit, #demo) .tryit[data-state='running'] .tryit__chip--demo {
  display: none;
}
:is(#tryit, #demo) .tryit[data-state='running'] .tryit__controls {
  display: inline-flex;
  opacity: 1;
  transform: none;
}
@starting-style {
  :is(#tryit, #demo) .tryit[data-state='running'] .tryit__controls {
    opacity: 0;
    transform: translateX(10px);
  }
}

/* ───────────────────────────── what to look at ───────────────────────────── */
:is(#tryit, #demo) .tryit__look {
  display: grid;
  gap: 20px;
  margin-top: 64px;
  /* the stage above is wide on purpose; the cards fall back in line with every other section */
  width: 100%;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
}
:is(#tryit, #demo) .tryit__look-title {
  margin: 0;
}
:is(#tryit, #demo) .tryit__card {
  padding: 24px;
}
:is(#tryit, #demo) .tryit__card .card__head {
  margin-bottom: 12px;
}
:is(#tryit, #demo) .tryit__card-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--h-ink-strong);
}
:is(#tryit, #demo) .tryit__card-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--h-ink-dim);
  text-wrap: pretty;
}

/* ───────────────────────────── the Demo page ─────────────────────────────── */
#demo {
  padding-top: clamp(56px, 8vw, 112px);
}
#demo .tryit {
  --tryit-chrome: 150px;
}
#demo .tryit__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 24px;
  text-align: center;
}
#demo .tryit__note .t-small {
  max-width: 72ch;
}

/* ───────────────────────────── the demo's own tab ───────────────────────── */
/*
 * The whole viewport is the window. The title bar is the only chrome: it shows the demo's title from the start
 * (there is no spaces row here to hand over from), and the Get the Alpha button stays once the app runs.
 */
#demo.demo-tab {
  padding-top: 0;
  height: 100vh;
  height: 100dvh;
}
#demo.demo-tab .tryit {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
#demo.demo-tab .tryit__title {
  position: static;
  opacity: 1;
  transform: none;
}
#demo.demo-tab .demo-tab__n {
  margin-right: 8px;
  color: var(--h-ink-strong);
  text-decoration: none;
}
#demo.demo-tab .demo-tab__alpha {
  flex: none;
  margin-left: 6px;
  white-space: nowrap;
}
#demo.demo-tab .tryit__chip--live {
  flex: none;
}
@media (max-width: 640px) {
  /* a phone-sized tab: the title and the button stay, the live chip steps aside */
  #demo.demo-tab .tryit__chip--live {
    display: none;
  }
  #demo.demo-tab .tryit__bar {
    gap: 6px;
  }
}

/* ───────────────────────────── reduced motion ────────────────────────────── */
/* no sweep: the loading line simply shows, whole and quiet */
@media (prefers-reduced-motion: reduce) {
  :is(#tryit, #demo) .tryit__line > span {
    width: 100%;
    opacity: 0.5;
    transform: none !important;
  }
}

/* ───────────────────────────── responsive ────────────────────────────────── */
/* a narrower window: the spaces other than the current one keep only their icon, as the app's own bar does */
@media (max-width: 960px) {
  :is(#tryit, #demo) .tryit__spaces .appbar__space:not([aria-current]) .tryit__space-label {
    display: none;
  }
  :is(#tryit, #demo) .tryit__spaces .appbar__space:not([aria-current]) {
    padding: 0 7px;
  }
}

/* phones: the window is small; the poster says where it shines, the controls keep only their icons */
@media (max-width: 640px) {
  :is(#tryit, #demo) .tryit {
    width: 100%;
    border-radius: var(--h-r-card);
  }
  :is(#tryit, #demo) .tryit__bar {
    height: 40px;
    gap: 8px;
    padding: 0 6px 0 12px;
  }
  :is(#tryit, #demo) .tryit__bar .appbar__n {
    font-size: 16px;
  }
  :is(#tryit, #demo) .tryit__chip--demo,
  :is(#tryit, #demo) .tryit__title-sep,
  :is(#tryit, #demo) .tryit__title-dim {
    display: none;
  }
  :is(#tryit, #demo) .tryit__title {
    left: 38px;
  }
  :is(#tryit, #demo) .tryit__ctl {
    width: 30px;
    padding: 0;
    justify-content: center;
  }
  :is(#tryit, #demo) .tryit__ctl-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  :is(#tryit, #demo) .tryit__cta,
  :is(#tryit, #demo) .tryit__absent {
    gap: 8px;
    padding: 12px;
  }
  :is(#tryit, #demo) .tryit__launch {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
    margin-bottom: 2px;
  }
  :is(#tryit, #demo) .tryit__phone {
    display: block;
    color: var(--h-ink-dim);
  }
  /* three short lines over a small screenshot: a little more dim keeps them legible */
  :is(#tryit, #demo) .tryit__shot {
    opacity: 0.2;
  }
  :is(#tryit, #demo) .tryit__absent .t-body {
    font-size: 14px;
    line-height: 1.45;
  }
  :is(#tryit, #demo) .tryit__absent .btn {
    height: 38px;
  }
  :is(#tryit, #demo) .tryit__look {
    margin-top: 40px;
  }
}

/* ==== sections/80-alpha.css ==== */
/* ==== alpha: the invite-only door, and the Download page around it (owner: the alpha section) ==== */

/*
 * One door, two places:
 *   #alpha     the section on the home and demo pages (sections/alpha.html)
 *   #download  the Download page body (sections/download-page.html); its #register block is the same door
 * Door rules are scoped under :is(#alpha, #download); page rules under #download.
 *
 * Colour by meaning. Violet (the section hue, atlas) only on: the headline keyword, the key, the focus glow, the
 * light in the seam and the light running round the code card. Pass green only on the "you are in" and "in line"
 * chips. Fail red only on a rejected code. Everything else is ink on near-black.
 *
 * The code leaf is the way in and gets the room; the waitlist is for people without one, so it steps back: narrower,
 * no card fill, a quieter heading.
 *
 * Layout
 *   >= 960   the two leaves side by side, the seam of light between them
 *   <  960   the leaves stacked, no seam; the bloom pools behind the code card
 *   <  640   tighter stage and card padding; the email and name fields stack (a container query does that anywhere
 *            the card is narrow)
 */

/* ───────────────────────────── the stage: the door ───────────────────────── */
:is(#alpha, #download) .door {
  /* the seam follows the split between the leaves, so these three are named once and used by both */
  --door-pad: clamp(32px, 4.5vw, 64px);
  --door-gap: clamp(48px, 6vw, 88px);
  --door-split: 0.6;
  padding: clamp(40px, 5.5vw, 72px) var(--door-pad) clamp(28px, 3.4vw, 44px);
}

/* the deep bloom: a tall column of violet behind the seam, pooling faintly on the floor (static) */
:is(#alpha, #download) .door > .door__bloom {
  inset: 0;
  background:
    radial-gradient(18% 62% at 58% 46%, var(--hue-soft), transparent 74%),
    radial-gradient(56% 30% at 58% 104%, var(--hue-faint), transparent 72%);
}

/* the seam: a 2 px line of light between the leaves, and the soft spill it throws. Static gradients; the spill
   widens once (transform, on the compositor) when the door opens */
:is(#alpha, #download) .door > .door__beam {
  position: absolute;
  z-index: 0;
  left: calc(var(--door-pad) + (100% - 2 * var(--door-pad) - var(--door-gap)) * var(--door-split) + var(--door-gap) / 2);
  top: 7%;
  bottom: 12%;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--hue) 70%, transparent) 20%,
    var(--hue) 50%,
    color-mix(in srgb, var(--hue) 70%, transparent) 80%,
    transparent
  );
  opacity: 0.75;
  transition: opacity var(--h-dur-slow) var(--h-ease);
}
:is(#alpha, #download) .door > .door__beam::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 140px;
  margin-left: -70px;
  background: radial-gradient(50% 50% at 50% 50%, var(--hue-soft), transparent 78%);
  transition: transform calc(var(--h-dur-slow) * 2) var(--h-spring);
}
:is(#alpha, #download) .door[data-door='open'] > .door__beam {
  opacity: 1;
}
:is(#alpha, #download) .door[data-door='open'] > .door__beam::before {
  transform: scaleX(2.4);
}

/* the opened state applied on load: no transitions for that one frame */
:is(#alpha, #download) .door[data-instant] *,
:is(#alpha, #download) .door[data-instant] *::before {
  transition: none !important;
}

/* ───────────────────────────── the leaves ────────────────────────────────── */
:is(#alpha, #download) .door__leaves {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--door-gap);
  align-items: stretch;
}
:is(#alpha, #download) .door__leaf {
  position: relative;
  display: grid;
  min-width: 0;
  perspective: 2200px;
}

/* both faces share one grid cell, so the leaf is as tall as the taller face */
:is(#alpha, #download) .door__face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 36px);
  container-type: inline-size;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
:is(#alpha, #download) .door__face--front:focus-within {
  border-color: var(--h-line-2);
}

/* ── the register leaf: the front swings open on its outer (left) hinge ── */
:is(#alpha, #download) .door__leaf--key .door__face--front {
  transform-origin: 0 50%;
  transition:
    transform calc(var(--h-dur-slow) * 2) var(--h-spring),
    opacity var(--h-dur) var(--h-ease),
    border-color var(--h-dur-fast) var(--h-ease);
}
:is(#alpha, #download) .door__leaf--key[data-state='open'] .door__face--front {
  transform: rotateY(100deg);
  opacity: 0;
  pointer-events: none;
  /* the fade waits until the leaf is edge-on, so the swing itself is what you see */
  transition:
    transform calc(var(--h-dur-slow) * 2) var(--h-spring),
    opacity var(--h-dur) var(--h-ease) var(--h-dur);
}

/* what is behind the door, lit from the seam */
:is(#alpha, #download) .door__face--back {
  opacity: 0;
  transform: scale(0.965);
  pointer-events: none;
  transition:
    opacity var(--h-dur-slow) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring);
}
:is(#alpha, #download) .door__leaf--key .door__face--back {
  background: radial-gradient(70% 80% at 100% 50%, var(--hue-faint), transparent 72%), var(--h-surface-1);
  border-color: color-mix(in srgb, var(--hue) 28%, var(--h-line-1));
}
:is(#alpha, #download) .door__leaf[data-state='open'] .door__face--back,
:is(#alpha, #download) .door__leaf[data-state='joined'] .door__face--back {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity var(--h-dur-slow) var(--h-ease) 0.12s,
    transform var(--h-dur-slow) var(--h-spring) 0.12s;
}

/* ── the waitlist leaf: the form steps back, the place in line steps up ── */
:is(#alpha, #download) .door__leaf--line .door__face--front {
  transition:
    opacity var(--h-dur) var(--h-ease),
    transform var(--h-dur-slow) var(--h-spring),
    border-color var(--h-dur-fast) var(--h-ease);
}
:is(#alpha, #download) .door__leaf--line[data-state='joined'] .door__face--front {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  pointer-events: none;
}
:is(#alpha, #download) .door__leaf--line .door__face--back {
  transform: translateY(10px);
}

/* ───────────────────────────── a card's head and copy ───────────────────── */
:is(#alpha, #download) .door__head {
  margin-bottom: 12px;
}
:is(#alpha, #download) .door__head .card__icon {
  width: 24px;
  height: 24px;
  color: var(--h-ink-faint);
  transition: color var(--h-dur) var(--h-ease);
}
/* the key lights once the code's shape fits */
:is(#alpha, #download) .door__leaf--key[data-fits] .door__key {
  color: var(--hue);
}
:is(#alpha, #download) .door__sub {
  color: var(--h-ink-dim);
  margin-bottom: 26px;
  max-width: 46ch;
}

/* ───────────────────────────── the forms ─────────────────────────────────── */
:is(#alpha, #download) .door__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
:is(#alpha, #download) .door__fields {
  display: grid;
  gap: 14px;
}
:is(#alpha, #download) .door__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
@container (max-width: 380px) {
  :is(#alpha, #download) .door__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* a malformed email is a note, not a failure: ink, never red (red is kept for a rejected code) */
:is(#alpha, #download) .door__form .input:not(.door__code-input)[aria-invalid='true'] {
  border-color: var(--h-ink-dim);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--h-ink) 8%, transparent);
}
:is(#alpha, #download) .door__form .input:not(.door__code-input)[aria-invalid='true']:focus {
  border-color: var(--hue);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 20px var(--hue-glow);
}
:is(#alpha, #download) .field__hint[data-state='note'] {
  color: var(--h-ink);
}

/* the actions sit at the foot of the card, so both leaves end level */
:is(#alpha, #download) .door__actions {
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 12px;
}
:is(#alpha, #download) .door__submit {
  width: 100%;
}
:is(#alpha, #download) .door__submit[data-busy] {
  cursor: progress;
}

/* the result line: quiet when the door is not there yet, ink when something needs saying */
:is(#alpha, #download) .door__status {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 1.45em;
  color: var(--h-ink-faint);
}
:is(#alpha, #download) .door__status[data-tone]::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h-ink-quiet);
  transform: translateY(-1px);
}
:is(#alpha, #download) .door__status[data-tone='note'] {
  color: var(--h-ink-dim);
}
:is(#alpha, #download) .door__status[data-tone='note']::before {
  background: var(--h-ink-dim);
}

/* ───────────────────────────── the code field: NIHIL and eight slots ──────── */
/* shared with the account page's register form (#account, js/fig/account.js mounts the same field) */
:is(#alpha, #download, #account) .door__code {
  position: relative;
  container-type: inline-size;
  border-radius: var(--h-r-control);
  background: var(--h-well);
}
/* without the module (no JS) it is a plain wide mono field */
:is(#alpha, #download, #account) .door__code-input {
  position: relative;
  z-index: 2;
  height: 68px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
/* with it, the input is the invisible control on top and the slots below show what it holds */
:is(#alpha, #download, #account) .door__code.is-slotted .door__code-input {
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: transparent;
  cursor: text;
}
:is(#alpha, #download, #account) .door__code.is-slotted .door__code-input::placeholder {
  color: transparent;
  -webkit-text-fill-color: transparent;
}
:is(#alpha, #download, #account) .door__code.is-slotted .door__code-input::selection {
  background: transparent;
}

:is(#alpha, #download, #account) .door__slots {
  position: absolute;
  inset: var(--h-stroke);
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto repeat(4, minmax(0, 1fr)) auto repeat(4, minmax(0, 1fr)) auto repeat(4, minmax(0, 1fr));
  align-items: center;
  column-gap: clamp(2px, 0.9cqi, 6px);
  padding: 0 clamp(8px, 2.4cqi, 14px);
  border-radius: calc(var(--h-r-control) - var(--h-stroke));
  overflow: hidden;
  pointer-events: none;
}
:is(#alpha, #download, #account) .door__prefix {
  font-family: var(--font-mono);
  font-size: clamp(14px, 4.4cqi, 21px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--h-ink-faint);
  transition: color var(--h-dur) var(--h-ease);
}
:is(#alpha, #download, #account) .door__code[data-complete] .door__prefix {
  color: var(--h-ink-dim);
}
:is(#alpha, #download, #account) .door__sep {
  width: clamp(6px, 2.2cqi, 12px);
  height: 2px;
  border-radius: 1px;
  background: var(--h-line-hover);
}
:is(#alpha, #download, #account) .door__cell {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(38px, 11cqi, 46px);
  min-width: 0;
  border-radius: 8px;
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-surface-1);
  font-family: var(--font-mono);
  font-size: clamp(11px, 3.3cqi, 20px);
  font-weight: 600;
  line-height: 1;
  color: var(--h-ink-strong);
  transform: scale(0.92);
  transition:
    transform var(--h-dur) var(--h-spring),
    border-color var(--h-dur-fast) var(--h-ease),
    background var(--h-dur-fast) var(--h-ease),
    box-shadow var(--h-dur-fast) var(--h-ease);
}
/* a character lands: the cell springs to full size */
:is(#alpha, #download, #account) .door__cell[data-filled] {
  transform: none;
  border-color: var(--h-line-3);
  background: var(--h-surface-3);
}
/* the slot the next character goes into: the focus glow, in violet */
:is(#alpha, #download, #account) .door__cell[data-caret] {
  transform: none;
  border-color: var(--hue);
  box-shadow: 0 0 0 2px var(--hue-faint), 0 0 14px var(--hue-glow);
}
:is(#alpha, #download, #account) .door__cell[data-caret]::after {
  content: '';
  position: absolute;
  top: 24%;
  bottom: 24%;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--hue);
  animation: alpha-caret 1.1s steps(1) infinite;
}
:is(#alpha, #download, #account) .door__cell[data-filled][data-caret='before']::after {
  left: 3px;
  margin-left: 0;
}
:is(#alpha, #download, #account) .door__cell[data-caret='after']::after {
  left: auto;
  right: 3px;
  margin-left: 0;
}
:is(#alpha, #download, #account) .door__cell[data-sel] {
  background: var(--hue-soft);
  border-color: color-mix(in srgb, var(--hue) 50%, var(--h-line-3));
}
/* a rejected code: the one red on the page */
:is(#alpha, #download, #account) .door__code[data-invalid] .door__cell {
  border-color: color-mix(in srgb, var(--h-fail) 55%, var(--h-line-3));
}
:is(#alpha, #download, #account) .door__code[data-invalid] .door__cell[data-caret] {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--h-fail) 14%, transparent);
}
@keyframes alpha-caret {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* a share word: the slots step aside and the field shows the text as typed (js/fig/alpha.js sets data-word). The
   input is the display here, so it gets its ink, its caret and its selection back; a word reads lower-case, as it is
   stored, at a size that matches the cells. The door's field only: the account page's takes codes alone. */
:is(#alpha, #download) .door__code[data-word] .door__code-input {
  color: var(--h-ink-strong);
  -webkit-text-fill-color: var(--h-ink-strong);
  caret-color: var(--hue);
  font-family: var(--font-mono);
  font-size: clamp(17px, 5cqi, 22px);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding-inline: clamp(14px, 3.4cqi, 20px);
}
:is(#alpha, #download) .door__code[data-word] .door__code-input::selection {
  background: var(--hue-soft);
}
:is(#alpha, #download) .door__code .door__slots {
  transition:
    opacity var(--h-dur) var(--h-ease),
    transform var(--h-dur) var(--h-spring);
}
:is(#alpha, #download) .door__code[data-word] .door__slots {
  opacity: 0;
  transform: scale(0.985);
}
:is(#alpha, #download) .door__code[data-word][data-invalid] .door__code-input {
  border-color: var(--h-fail, #ff6b6b);
}

/* the scanline: one sweep across the slots when the field takes focus (moved by the module, transform only) */
:is(#alpha, #download, #account) .door__scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 72px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hue-faint) 62%, var(--hue-soft));
  border-right: 2px solid var(--hue);
  will-change: transform, opacity;
}

/* the light that runs round the code card while the door is shut (a comet of dashed strokes, no filters) */
:is(#alpha, #download) .door__pulse {
  position: absolute;
  top: calc(-1 * var(--h-stroke));
  left: calc(-1 * var(--h-stroke));
  z-index: 3;
  /* base.css caps every svg at its container's width; this one must cover the border box exactly */
  max-width: none;
  overflow: visible;
  pointer-events: none;
  opacity: 0.6;
}
:is(#alpha, #download) .door__pulse rect {
  fill: none;
  stroke: var(--hue);
  stroke-linecap: round;
}
:is(#alpha, #download) .door__leaf--key[data-state='open'] .door__pulse {
  display: none;
}

/* ───────────────────────────── behind the doors ──────────────────────────── */
:is(#alpha, #download) .door__open {
  margin-block: auto;
  display: grid;
  justify-items: start;
  gap: 14px;
}
:is(#alpha, #download) .door__open .t-h3 {
  margin-top: 4px;
}
/* Focus lands here so a screen reader hears the news. It is not a control and nothing can Tab to it, so it wears no ring. */
:is(#alpha, #download) [data-focus]:focus {
  outline: none;
}
:is(#alpha, #download) .door__line {
  color: var(--h-ink-dim);
  max-width: 44ch;
}
:is(#alpha, #download) .door__email-out,
:is(#alpha, #download) .door__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.94em;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink-strong);
  word-break: break-all;
}
:is(#alpha, #download) .door__note {
  max-width: 48ch;
}
:is(#alpha, #download) .door__go {
  margin-top: 10px;
}

/* the key, lit: it turns into place as the door opens */
:is(#alpha, #download) .door__key-lit {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 18px;
  border: var(--h-stroke) solid color-mix(in srgb, var(--hue) 45%, var(--h-line-2));
  background: radial-gradient(circle at 50% 50%, var(--hue-soft), transparent 72%), var(--h-well);
  color: var(--hue);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 28px var(--hue-glow);
}
:is(#alpha, #download) .door__key-lit svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  transform: rotate(-90deg);
  transition: transform calc(var(--h-dur-slow) * 1.6) var(--h-spring) 0.28s;
}
:is(#alpha, #download) .door__leaf--key[data-state='open'] .door__key-lit svg {
  transform: none;
}

/* the waitlist steps back: no fill and a quieter heading, so the code leaf is plainly the way in */
:is(#alpha, #download) .door__leaf--line .door__face--front {
  background: transparent;
  box-shadow: none;
}
:is(#alpha, #download) .door__leaf--line .door__head .t-h3 {
  font-size: var(--t-body, 1rem);
  font-weight: 500;
}
:is(#alpha, #download) .door__leaf--line .card__icon {
  opacity: 0.6;
}

/* behind the door: the file first, the installers beside it, on the same left edge as everything above them */
:is(#alpha, #download) .door__saves {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 6px;
}
:is(#alpha, #download) .door__saves .door__go {
  margin-top: 0;
}
/* a date breaks at its spaces or not at all, never between the digits of a year */
:is(#alpha, #download) [data-license-date] {
  white-space: nowrap;
}
:is(#alpha, #download) .door__saves .door__go[hidden] {
  display: none;
}
:is(#alpha, #download) .door__reset {
  /* the padding is the hit area; the negative margin keeps the words on the left edge */
  margin: 4px 0 0 -8px;
  padding: 4px 8px;
  border: 0;
  background: none;
  color: var(--h-ink-quiet);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  border-radius: var(--h-r-control);
  transition: color var(--h-dur-fast) var(--h-ease);
}
:is(#alpha, #download) .door__reset:hover {
  color: var(--h-ink);
}
:is(#alpha, #download) .door__reset:focus-visible {
  outline: var(--h-stroke-strong) solid var(--h-focus);
  outline-offset: 1px;
}

/* the person's own code (a share word minted it): a quiet well with the code in mono and one small button */
:is(#alpha, #download) .door__own {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 440px;
  padding: 14px 16px;
  border-radius: var(--h-r-control);
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-well);
}
:is(#alpha, #download) .door__own[hidden] {
  display: none;
}
:is(#alpha, #download) .door__own-label,
:is(#alpha, #download) .door__own-note {
  color: var(--h-ink-faint);
}
:is(#alpha, #download) .door__own-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}
:is(#alpha, #download) .door__own-code {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink-strong);
  white-space: nowrap;
  user-select: all;
}
:is(#alpha, #download) .door__copy {
  flex: none;
  min-width: 72px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-surface-1);
  color: var(--h-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform var(--h-dur) var(--h-spring),
    border-color var(--h-dur-fast) var(--h-ease),
    color var(--h-dur-fast) var(--h-ease);
}
:is(#alpha, #download) .door__copy:hover {
  border-color: var(--h-line-hover);
  color: var(--h-ink-strong);
}
:is(#alpha, #download) .door__copy:active {
  transform: scale(0.96);
}
:is(#alpha, #download) .door__copy[data-done] {
  border-color: color-mix(in srgb, var(--hue) 45%, var(--h-line-2));
  color: var(--hue);
}
:is(#alpha, #download) .door__copy:focus-visible {
  outline: var(--h-stroke-strong) solid var(--h-focus);
  outline-offset: 2px;
}

/* the counter under the button: one quiet centred line, the number in steady digits so it does not jitter as it counts */
:is(#alpha, #download) .door__count {
  margin: 0;
  text-align: center;
  color: var(--h-ink-faint);
}
:is(#alpha, #download) .door__count[hidden] {
  display: none;
}
:is(#alpha, #download) .door__count-n {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--h-ink-dim);
}

/* the waitlist, offered in the status line beside a word that has no place */
:is(#alpha, #download) .door__status-go {
  margin: -4px 0 -4px -2px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--h-r-control);
  background: none;
  color: var(--hue);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
:is(#alpha, #download) .door__status-go:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:is(#alpha, #download) .door__status-go:focus-visible {
  outline: var(--h-stroke-strong) solid var(--h-focus);
  outline-offset: 1px;
}

/* the footnote under the leaves */
:is(#alpha, #download) .door__foot {
  /* the line names what the door keeps, in the Terms' words: held to a readable measure and centred under both cards */
  max-width: 88ch;
  margin: clamp(24px, 3vw, 36px) auto 0;
  text-align: center;
}

/* ───────────────────────────── the Terms box ─────────────────────────────── */
/* the box itself is base.css's (.tos); here, where it sits on the door and what it dims until it is ticked */

/* on the code leaf the box comes first; what it gates rests at the disabled controls' opacity until it is ticked */
:is(#alpha, #download) .door__form > .door__tos {
  margin: -12px 0 12px;
}
:is(#alpha, #download) .door__fields {
  transition: opacity var(--h-dur) var(--h-ease);
}
:is(#alpha, #download) .door__form[data-terms='pending'] .door__fields {
  opacity: 0.45;
}
:is(#alpha, #download, #account) .door__form .input:disabled,
:is(#alpha, #download, #account) .door__code-input:disabled {
  cursor: not-allowed;
}

/* ───────────────────────────── the door, narrower ────────────────────────── */
@media (max-width: 960px) {
  :is(#alpha, #download) .door {
    padding: 28px 24px 24px;
  }
  :is(#alpha, #download) .door__leaves {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  :is(#alpha, #download) .door > .door__beam {
    display: none;
  }
  :is(#alpha, #download) .door > .door__bloom {
    background:
      radial-gradient(70% 34% at 50% 24%, var(--hue-soft), transparent 74%),
      radial-gradient(60% 24% at 50% 102%, var(--hue-faint), transparent 72%);
  }
}
@media (max-width: 640px) {
  :is(#alpha, #download) .door {
    padding: 12px 12px 20px;
  }
  :is(#alpha, #download) .door__face {
    padding: 22px 18px;
  }
  :is(#alpha, #download) .door__sub {
    margin-bottom: 20px;
  }
}

/* ═════════════════════════════ the Download page ═════════════════════════ */
#download {
  padding-top: clamp(56px, 8vw, 112px);
}
#download .dl__head {
  margin-bottom: clamp(40px, 5vw, 64px);
}
#download .dl__register,
#download .dl__builds {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ── the builds ── */
#download .dl__builds {
  margin-top: clamp(72px, 8vw, 112px);
}
#download .dl__builds-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 28px;
}
#download .dl__builds-title {
  display: grid;
  gap: 14px;
}
#download .dl__status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
#download .dl__state.chip--plain {
  padding: 0 12px;
}
/* the Terms box over the cards: close under the head, the cards a breath below */
#download .dl__tos {
  margin: -12px 0 18px;
}
#download .dl__grid {
  align-items: stretch;
}
#download .dl__os {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#download .dl__os .card__head {
  margin-bottom: 2px;
}
#download .dl__os-icon {
  width: 26px;
  height: 26px;
  color: var(--h-ink-dim);
}
#download .dl__arch {
  line-height: 1.4;
}
#download .dl__spec {
  max-width: 40ch;
}
#download .dl__os[data-build-state='ready'],
#download .dl__os[data-build-state='ready']:hover {
  border-color: var(--h-line-3);
}
#download .dl__action {
  margin-top: auto;
  padding-top: 14px;
}
#download .dl__btn {
  width: 100%;
}
/* the Mac's two builds: one under the other, the same size and weight, so neither reads as the default */
#download .dl__pair {
  display: grid;
  /* the column is the card's width and no more: a long label never pushes a button out of its card */
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
/* "Intel: not posted yet" is longer than a narrow card (three across on a tablet): it takes a second line there */
#download .dl__pair .dl__btn {
  height: auto;
  min-height: 48px;
  padding-block: 8px;
  line-height: 1.25;
  white-space: normal;
}
/* the lock: its shackle swings on its right post */
#download .dl__lock {
  overflow: visible;
}
#download .dl__shackle {
  transform-box: fill-box;
  transform-origin: 100% 100%;
}

/* ── after the download: a numbered rail ── */
#download .dl__after {
  margin-top: clamp(88px, 10vw, 140px);
}
#download .dl__subhead {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
#download .dl__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
/* the rail itself, threaded through the numbers */
#download .dl__rail::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--h-line-3), var(--h-line-1));
}
#download .dl__step {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-width: 0;
}
#download .dl__n {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--h-stroke) solid var(--h-line-3);
  background: var(--h-ground);
  color: var(--h-ink-strong);
  font-variant-numeric: tabular-nums;
}
#download .dl__step-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
}

/* ── not ready to install ── */
#download .dl__closing {
  margin-top: clamp(72px, 8vw, 112px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(24px, 3vw, 36px);
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-panel);
  background: var(--h-hatch), var(--h-surface-2);
}
#download .dl__closing-copy {
  display: grid;
  gap: 10px;
}

/* ── the page, narrower ── */
@media (max-width: 1100px) {
  #download .dl__rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  #download .dl__rail::before {
    top: 18px;
    bottom: 18px;
    left: 17px;
    right: auto;
    width: 1.5px;
    height: auto;
    background: linear-gradient(180deg, var(--h-line-3), var(--h-line-1));
  }
  #download .dl__step {
    grid-template-rows: none;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 960px) {
  /* three platforms stay three across while they fit; 2 + 1 reads like a mistake */
  #download .dl__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  #download .dl__os {
    padding: 22px;
  }
}
@media (max-width: 760px) {
  #download .dl__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  #download .dl__builds-head {
    align-items: flex-start;
  }
  #download .dl__step {
    gap: 12px;
  }
  #download .dl__step-card {
    padding: 18px;
  }
  #download .dl__closing .btn-row {
    width: 100%;
  }
}

/* ==== sections/82-account.css ==== */
/* ==== account: register, log in, reset and the signed-in account (owner: the account section) ==== */

/*
 * One page, four screens, one card at a time on the door's dotted stage (sections/account-page.html):
 *   #account   the Account page body; every rule here is scoped under it
 *   #download  two quiet links the account adds to the Download page's builds status line (.dl__auth, at the end)
 * The invite code field is the door's own (NIHIL and eight slots): its styles live in 80-alpha.css, whose code-field
 * block is scoped to #account too, and js/fig/account.js mounts it through js/fig/alpha.js's createCodeField.
 *
 * Colour by meaning. Violet (the section hue, atlas) only on: the headline keyword, the segmented control's thumb
 * (the selection), the focus glow, the Alpha chip and the bloom. The In line chip is ink: waiting is not a hue.
 * Fail red only on a rejected field and a failed request. Pass green only on "long enough" and "a link is on its
 * way". The Google and GitHub marks are drawn in currentColor, never in brand colours. Everything else is ink on
 * near-black.
 *
 * Layout
 *   every width  one column, the card centred on the stage (520 px for the forms, 560 for the account)
 *   <  640       tighter stage and card padding, 44 px segments; inputs stay at 16 px so iOS never zooms
 */

/* ───────────────────────────── the page ──────────────────────────────────── */
#account {
  padding-top: clamp(56px, 8vw, 112px);
  /* #account is also a screen's hash: landing on it must not scroll the page under the sticky header */
  scroll-margin-top: var(--header-h);
}
#account .acct__head {
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
/* every element below that sets its own display still honours [hidden] (the screens, the rows, the control) */
#account [hidden] {
  display: none !important;
}

/* ───────────────────────────── the stage ─────────────────────────────────── */
#account .acct {
  display: grid;
  justify-items: center;
  padding: clamp(28px, 4.5vw, 64px) clamp(16px, 4vw, 56px) clamp(22px, 3vw, 36px);
}
/* a soft column of violet behind the card, pooling faintly on the floor (static) */
#account .acct > .acct__bloom {
  inset: 0;
  background:
    radial-gradient(40% 46% at 50% 40%, var(--hue-soft), transparent 74%),
    radial-gradient(60% 26% at 50% 104%, var(--hue-faint), transparent 72%);
}

/* ───────────────────────────── the segmented control ─────────────────────── */
/*
 * Three equal segments and one thumb under them. The module sets --i (0, 1, 2) on the control; the thumb springs to
 * that column with a transform alone (the compositor's job, no layout). Under reduced motion base.css zeroes the
 * duration, so the thumb simply is where it belongs.
 */
#account .acct__seg {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 400px);
  margin-bottom: clamp(20px, 2.6vw, 28px);
  padding: 4px;
  border-radius: 14px;
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-well);
}
#account .acct__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  /* one column: the padding box less the two 4 px insets, in three */
  width: calc((100% - 8px) / 3);
  border-radius: 10px;
  border: var(--h-stroke) solid color-mix(in srgb, var(--hue) 50%, var(--h-line-3));
  background: var(--h-surface-3);
  box-shadow: 0 0 0 3px var(--hue-faint), 0 0 18px var(--hue-glow);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform var(--h-dur-slow) var(--h-spring);
  pointer-events: none;
}
#account .acct__tab {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--h-ink-faint);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--h-dur-fast) var(--h-ease);
}
#account .acct__tab:hover {
  color: var(--h-ink);
}
#account .acct__tab[aria-selected='true'] {
  color: var(--h-ink-strong);
}
#account .acct__tab:focus-visible {
  outline-offset: 1px;
  border-radius: 10px;
}

/* ───────────────────────────── the cards ─────────────────────────────────── */
#account .acct__deck {
  display: grid;
  justify-items: center;
  width: 100%;
}
#account .acct__card {
  width: 100%;
  max-width: 520px;
  padding: clamp(24px, 3vw, 40px);
  container-type: inline-size;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
#account .acct__card--account {
  max-width: 560px;
}
#account .acct__card-head {
  display: grid;
  justify-items: start;
  gap: 10px;
  margin-bottom: 26px;
}
#account .acct__sub {
  color: var(--h-ink-dim);
  max-width: 46ch;
}
/* a heading that takes focus after a switch: no ring for a pointer, the ink ring for a keyboard */
#account [data-focus]:focus {
  outline: none;
}
#account [data-focus]:focus-visible {
  outline: 2px solid var(--h-ink-strong);
  outline-offset: 4px;
}

/* ───────────────────────────── the forms ─────────────────────────────────── */
#account .acct__form {
  display: grid;
  min-width: 0;
}
/* the fieldset is how the fields are disabled together while a request is out; it draws nothing itself */
#account .acct__fields {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transition: opacity var(--h-dur-fast) var(--h-ease);
}
#account .acct__fields:disabled {
  opacity: 0.55;
}
/* a code field waiting for the Terms box above it (js/fig/account.js), at the disabled controls' opacity */
#account .door__code {
  transition: opacity var(--h-dur) var(--h-ease);
}
#account .acct__form[data-terms='pending'] .door__code {
  opacity: 0.45;
}
/* a field without a hint keeps the rhythm of the ones with (the hint's reserved line plus its gap) */
#account .acct__field--bare {
  padding-bottom: calc(12.5px * 1.4 + 8px);
}
#account .acct__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
/* generous fields, and 16 px type so iOS never zooms into one */
#account .acct__input {
  height: 52px;
  font-size: 16px;
  scroll-margin-top: calc(var(--header-h) + 24px);
  scroll-margin-bottom: 96px;
}
#account .door__code-input {
  scroll-margin-top: calc(var(--header-h) + 24px);
  scroll-margin-bottom: 96px;
}

/* ── social sign-in (drafted): two full-width ghost buttons, their marks in currentColor ── */
#account .acct__social {
  display: grid;
  gap: 10px;
}
#account .acct__provider {
  width: 100%;
  gap: 12px;
}
#account .acct__provider svg {
  width: 18px;
  height: 18px;
}
/* the note under them only takes room once it has something to say (it stays in the tree: it is a live region) */
#account .acct__social .acct__status {
  min-height: 0;
}
#account .acct__social .acct__status:empty {
  margin-top: -10px;
}
/* "or with email": a hairline either side of three quiet words */
#account .acct__or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 20px;
  color: var(--h-ink-quiet);
}
#account .acct__or::before,
#account .acct__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--h-line-2);
}

/* ── the password: the field, the show / hide toggle inside it, the length meter under it ── */
#account .acct__pw {
  position: relative;
}
#account .acct__pw-input {
  padding-right: 56px;
}
/* Edge draws its own reveal eye in a password field; this one replaces it */
#account .acct__pw-input::-ms-reveal,
#account .acct__pw-input::-ms-clear {
  display: none;
}
#account .acct__eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 8px;
  color: var(--h-ink-faint);
  transition: color var(--h-dur-fast) var(--h-ease), background var(--h-dur-fast) var(--h-ease);
}
#account .acct__eye:hover {
  color: var(--h-ink-strong);
  background: color-mix(in srgb, var(--h-ink) 7%, transparent);
}
#account .acct__eye:focus-visible {
  outline-offset: 0;
  border-radius: 8px;
}
#account .acct__eye svg {
  width: 20px;
  height: 20px;
}
#account .acct__eye .acct__eye-hide,
#account .acct__eye[aria-pressed='true'] .acct__eye-show {
  display: none;
}
#account .acct__eye[aria-pressed='true'] .acct__eye-hide {
  display: block;
}
/* the meter: a hairline that fills with the length (scaleX from the module); green once it is long enough */
#account .acct__meter {
  display: block;
  height: 3px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--h-line-1);
  overflow: hidden;
}
#account .acct__meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--h-ink-quiet);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--h-dur) var(--h-spring), background var(--h-dur-fast) var(--h-ease);
}
#account .acct__meter-fill[data-ok] {
  background: var(--h-pass);
}

/* ── the actions: the one button, the result line under it ── */
#account .acct__actions {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
#account .acct__submit {
  width: 100%;
}
/* busy is not disabled-looking: the button holds its colour, shows the dot, and says what it is doing */
#account .acct__submit[data-busy] {
  opacity: 0.88;
  cursor: progress;
}
#account .acct__spin {
  display: none;
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
#account .acct__spin::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.22;
}
/* the dot that runs round the ring (one transform, only while a request is out; still under reduced motion) */
#account .acct__spin::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: currentColor;
}
#account .acct__submit[data-busy] .acct__spin {
  display: block;
  animation: acct-spin 0.9s linear infinite;
}
@keyframes acct-spin {
  to {
    transform: rotate(360deg);
  }
}

/* the result line: quiet when the door is not there yet, red when a request failed */
#account .acct__status {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-height: 1.45em;
  color: var(--h-ink-faint);
}
#account .acct__status[data-tone]::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h-ink-quiet);
  transform: translateY(-1px);
}
#account .acct__status[data-tone='error'] {
  color: var(--h-fail-ink);
}
#account .acct__status[data-tone='error']::before {
  background: var(--h-fail);
}

/* ── the line under a form, and every in-card link ── */
#account .acct__alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--h-line-1);
  text-align: center;
}
#account .acct__link {
  color: var(--h-ink);
  text-decoration: underline;
  text-decoration-color: var(--h-line-hover);
  text-underline-offset: 3px;
  transition: color var(--h-dur-fast) var(--h-ease), text-decoration-color var(--h-dur-fast) var(--h-ease);
}
#account .acct__link:hover {
  color: var(--h-ink-strong);
  text-decoration-color: currentColor;
}
#account .acct__forgot {
  font-family: var(--font-mono);
  font-size: 12.5px;
}
#account .acct__mono-out {
  font-family: var(--font-mono);
  font-size: 0.94em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--h-ink-strong);
  overflow-wrap: anywhere;
}

/* ── reset, sent: the green mark, the same words whatever the address ── */
#account .acct__done {
  display: grid;
  justify-items: start;
  gap: 12px;
}
#account .acct__done-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 16px;
  border: var(--h-stroke) solid color-mix(in srgb, var(--h-pass) 45%, var(--h-line-2));
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--h-pass) 14%, transparent), transparent 72%),
    var(--h-well);
  color: var(--h-pass);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--h-pass) 9%, transparent),
    0 0 24px color-mix(in srgb, var(--h-pass) 24%, transparent);
}
#account .acct__done-mark svg {
  width: 26px;
  height: 26px;
}
#account .acct__done .acct__alt {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
  text-align: left;
}

/* ───────────────────────────── the account (signed in) ───────────────────── */
/* the facts: label left, value right, hairlines between, like a settings list */
#account .acct__facts {
  display: grid;
  margin: 0 0 28px;
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-row);
  background: var(--h-well);
  overflow: hidden;
}
#account .acct__fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--h-line-1);
}
#account .acct__fact:first-child {
  border-top: 0;
}
#account .acct__fact dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--h-ink-faint);
  white-space: nowrap;
}
#account .acct__fact dd {
  margin: 0;
  min-width: 0;
  text-align: right;
  font-size: 15px;
  color: var(--h-ink-strong);
  overflow-wrap: anywhere;
}

/* the builds: one full-width button per platform; the visitor's own platform is the primary one */
#account .acct__builds {
  display: grid;
  gap: 12px;
}
#account .acct__dl-list {
  display: grid;
  /* the column is the card's width and no more: on a phone a long label wraps inside its button, never past the card */
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
#account .acct__dl {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  gap: 12px;
  justify-content: flex-start;
}
#account .acct__dl-name {
  font-weight: 600;
}
#account .acct__dl-arch {
  margin-left: auto;
  /* "Intel, arrives by email" on a phone: two short lines at the right edge, inside the button's 56 px */
  min-width: 0;
  white-space: normal;
  text-align: right;
  line-height: 1.25;
  font-size: 12.5px;
  opacity: 0.68;
}
#account .acct__note,
#account .acct__quiet {
  max-width: 52ch;
}
#account .acct__account-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--h-line-1);
}

/* in line: the chip is ink (waiting is not a hue); the code form sits where the builds will be */
#account .acct__chip[data-line] {
  color: var(--h-ink-dim);
  border-color: var(--h-line-2);
  font-variant-numeric: tabular-nums;
}
#account .acct__unlock {
  padding: 20px;
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-row);
  background: var(--h-surface-2);
}
#account .acct__unlock:focus-within {
  border-color: var(--h-line-2);
}
#account .acct__unlock .acct__actions {
  margin-top: 4px;
}
#account .acct__key {
  width: 18px;
  height: 18px;
}
/* while busy, the spinner dot stands where the key was */
#account .acct__submit[data-busy] .acct__key {
  display: none;
}

/* the stage's footnote */
#account .acct__foot {
  margin-top: clamp(20px, 2.6vw, 32px);
  text-align: center;
}

/* ───────────────────────────── narrower ──────────────────────────────────── */
/* a narrow card stacks each fact: the label over its value */
@container (max-width: 360px) {
  #account .acct__fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  #account .acct__fact dd {
    text-align: left;
  }
}
@media (max-width: 640px) {
  #account .acct {
    padding: 16px 12px 20px;
  }
  #account .acct__seg {
    width: 100%;
    margin-bottom: 16px;
  }
  /* a thumb's width of target at least: 44 px, the touch minimum */
  #account .acct__tab {
    height: 44px;
  }
  #account .acct__card {
    padding: 22px 18px;
  }
  #account .acct__card-head {
    margin-bottom: 20px;
  }
  #account .acct__unlock {
    padding: 16px 14px;
  }
  #account .acct__or {
    margin: 18px 0 16px;
  }
}

/* ═════════════════════════════ on the Download page ══════════════════════ */
/* the account's quiet links in the builds status line (sections/download-page.html): "Log in" / "Sign out" */
#download .dl__auth {
  color: var(--h-ink);
  text-decoration: underline;
  text-decoration-color: var(--h-line-hover);
  text-underline-offset: 3px;
  transition: color var(--h-dur-fast) var(--h-ease), text-decoration-color var(--h-dur-fast) var(--h-ease);
}
#download .dl__auth:hover {
  color: var(--h-ink-strong);
  text-decoration-color: currentColor;
}
#download .dl__auth[hidden] {
  display: none;
}

/* ==== sections/85-guide.css ==== */
/*
 * guide: the long-form pages (what Nihil is, building hardware with AI, firmware simulation, hardware-in-the-loop,
 * AI PCB design, alternatives, how the PCB simulation works). The not-found page borrows the head and the link cards.
 * These are reading pages, not figures: one column of prose at a readable measure, a facts strip, tables, a couple of
 * the app's real screenshots, and a closing door. No motion beyond the site's reveals and a spring on hover. Every
 * selector sits under .guide so nothing here leaks into a section that owns its own look.
 */

.section.guide {
  padding-top: 72px;
}

/* ── the head: eyebrow, one h1, the answer in a lead paragraph ── */
.guide__head {
  display: grid;
  gap: 22px;
  max-width: 900px;
  margin-bottom: 48px;
}
.guide__title {
  font-family: var(--font-sans);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--h-ink-strong);
  text-wrap: balance;
}
.guide__head .t-lead {
  max-width: 68ch;
}

/* ── facts strip: the numbers a reader (or a model) should walk away with ── */
.guide__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 72px;
  background: var(--h-line-1);
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-card);
  overflow: hidden;
}
.guide__fact {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px 24px;
  background: var(--h-surface-1);
}
.guide__fact b {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--hue);
}
.guide__fact span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--h-ink-faint);
}

/* ── on this page: a quiet row of numbered pills for a long guide, so a reader can jump to the part they doubt ── */
.guide__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1040px;
  margin: -40px 0 72px;
}
.guide__toc a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 16px 0 14px;
  border-radius: var(--h-r-chip);
  border: var(--h-stroke) solid var(--h-line-1);
  background: var(--h-surface-1);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--h-ink-dim);
  white-space: nowrap;
  transition:
    transform var(--h-dur) var(--h-spring),
    border-color var(--h-dur-fast) var(--h-ease),
    color var(--h-dur-fast) var(--h-ease);
}
/* the step number, in the page's hue but quieter than the label */
.guide__toc i {
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--hue) 75%, var(--h-ink-faint));
}
.guide__toc a:hover {
  transform: translateY(-2px);
  border-color: var(--hue);
  color: var(--h-ink-strong);
}
.guide__toc a:active {
  transform: translateY(0) scale(0.98);
}

/* ── the body: prose at a reading measure, with a quiet h2 rhythm ── */
.guide__body {
  display: grid;
  gap: 64px;
}
.guide__block {
  display: grid;
  gap: 18px;
  max-width: 760px;
  min-width: 0;
}
.guide__block h2 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--h-ink-strong);
  text-wrap: balance;
  scroll-margin-top: 88px;
}
.guide__block h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--h-ink-strong);
  margin-top: 10px;
}
.guide__block p,
.guide__block li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--h-ink);
  text-wrap: pretty;
}
.guide__block ul,
.guide__block ol {
  display: grid;
  gap: 10px;
  padding-left: 1.3em;
}
.guide__block ul {
  list-style: disc;
}
.guide__block ol {
  list-style: decimal;
}
.guide__block li::marker {
  color: var(--hue);
}
.guide__block a {
  color: var(--h-ink-strong);
  text-decoration: underline;
  text-decoration-color: var(--hue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.guide__block a:hover {
  color: var(--hue);
}
.guide__block code,
.guide__block pre {
  font-family: var(--font-mono);
  font-size: 0.86em;
}
.guide__block code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--h-surface-2);
  border: 1px solid var(--h-line-1);
  color: var(--h-ink-dim);
  overflow-wrap: anywhere;
}
.guide__block pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--h-well);
  border: 1px solid var(--h-line-1);
  color: var(--h-ink-dim);
  line-height: 1.55;
  font-size: 13px;
}
.guide__block pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}

/* the honest part gets its own box, so it is never buried */
.guide__limits {
  padding: 22px 26px;
  border: 1.5px solid var(--h-line-2);
  border-left: 3px solid var(--h-fail);
  border-radius: 12px;
  background: var(--h-surface-1);
}
.guide__limits h3,
.guide__limits h2 {
  margin-top: 0;
}
/* a long limits list reads as a ledger: each lead phrase in strong ink, a hairline between entries */
.guide__limits--ledger ul {
  gap: 0;
}
.guide__limits--ledger li {
  padding: 12px 0;
  border-top: 1px solid var(--h-line-1);
}
.guide__limits--ledger li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.guide__limits--ledger li strong {
  color: var(--h-ink-strong);
  font-weight: 600;
}

/* ── tables: wide ones scroll inside their own box, never the page ── */
.guide__table {
  max-width: 1040px;
  overflow-x: auto;
  border: var(--h-stroke) solid var(--h-line-1);
  border-radius: var(--h-r-card);
  background: var(--h-surface-1);
}
.guide__table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.guide__table--wide table {
  min-width: 760px;
}
/* three columns that fit a desk without the floor above, yet are a column too many for a phone: no minimum here,
   and under 600 px the table stacks into cards with the wide ones (the rules at the foot of this file) */
.guide__table--fit table {
  min-width: 0;
}
.guide__table caption {
  padding: 16px 20px 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h-ink-faint);
}
.guide__table th,
.guide__table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--h-line-1);
}
.guide__table thead th {
  border-top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h-ink-faint);
}
.guide__table tbody th {
  font-weight: 600;
  color: var(--h-ink-strong);
  white-space: nowrap;
}
.guide__table td {
  color: var(--h-ink-dim);
}

/* a table of measured numbers: digits line up, the columns read as a comparison */
.guide__table--num {
  max-width: 760px;
}
.guide__table--num td,
.guide__table--num thead th {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.guide__table--num td {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--h-ink);
}
.guide__table--num tbody th {
  white-space: normal;
}

/* ── a screenshot with a real caption ── */
.guide__fig {
  display: grid;
  gap: 14px;
  max-width: 1040px;
  margin: 0;
}
.guide__fig img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--h-r-card);
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-well);
}
.guide__fig figcaption {
  max-width: 760px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--h-ink-faint);
}

/* a figure that is a door: the picture lifts on a spring, and its caption ends in the way through */
.guide__fig--link > a {
  display: block;
  border-radius: var(--h-r-card);
  transition: transform var(--h-dur) var(--h-spring);
}
.guide__fig--link img {
  transition: border-color var(--h-dur-fast) var(--h-ease);
}
.guide__fig--link > a:hover {
  transform: translateY(-4px);
}
.guide__fig--link > a:hover img {
  border-color: var(--hue);
}
.guide__figcta {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--h-ink-strong);
  border-bottom: 1px solid var(--hue);
  padding-bottom: 2px;
}
.guide__figcta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--h-dur) var(--h-spring);
}
.guide__figcta:hover svg {
  transform: translateX(3px);
}

/* ── FAQ: question as h3, answer as a paragraph, a hairline between ── */
.guide__faq {
  display: grid;
  max-width: 760px;
}
.guide__faq > div {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--h-line-1);
}
.guide__faq > div:last-child {
  border-bottom: 1px solid var(--h-line-1);
}
.guide__faq h3 {
  margin: 0;
}

/* ── related reading ── */
.guide__more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
}
.guide__more a {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 14px;
  border: var(--h-stroke) solid var(--h-line-1);
  background: var(--h-surface-1);
  text-decoration: none;
  transition: transform var(--h-dur) var(--h-spring), border-color var(--h-dur-fast) var(--h-ease);
}
.guide__more a:hover {
  transform: translateY(-3px);
  border-color: var(--hue);
}
.guide__more b {
  font-size: 16px;
  font-weight: 600;
  color: var(--h-ink-strong);
}
.guide__more span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--h-ink-faint);
}

/* ── the closing door, shared by every guide ── */
.guide-cta {
  padding-block: 24px 0;
}
.guide-cta__box {
  display: grid;
  gap: 20px;
  justify-items: start;
  max-width: 1040px;
  padding: 36px;
  border-radius: 20px;
  border: var(--h-stroke) solid var(--h-line-2);
  background: var(--h-hatch), var(--h-surface-1);
}
.guide-cta__box h2 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--h-ink-strong);
  text-wrap: balance;
}
.guide-cta__box p {
  max-width: 60ch;
  color: var(--h-ink-dim);
  line-height: 1.55;
}

/* ── footer: what Nihil is, in one sentence, and the guides ── */
.site-footer__about {
  flex: 1 1 100%;
  max-width: 78ch;
  line-height: 1.55;
}
.site-footer__guides {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.site-footer__guides a:hover {
  color: var(--h-ink-strong);
}

/* ── tablets and phones ── */
@media (max-width: 960px) {
  .guide__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide__more {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  /* a four-column table becomes one card per row, each cell carrying its own column name */
  .guide__table--wide table,
  .guide__table--wide tbody,
  .guide__table--wide tr,
  .guide__table--wide th,
  .guide__table--wide td {
    display: block;
    min-width: 0;
  }
  .guide__table--wide thead {
    display: none;
  }
  /* the caption too: left as a table caption over a block, it shrinks to its longest word and stacks one a line */
  .guide__table--wide caption {
    display: block;
    padding-inline: 18px;
  }
  .guide__table--wide tr {
    padding: 14px 0;
    border-top: 1px solid var(--h-line-1);
  }
  .guide__table--wide tbody tr:first-child {
    border-top: 0;
  }
  .guide__table--wide th,
  .guide__table--wide td {
    border: 0;
    padding: 4px 18px;
  }
  .guide__table--wide td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--h-ink-quiet);
  }
  .section.guide {
    padding-top: 40px;
  }
  .guide__head {
    margin-bottom: 32px;
  }
  .guide__facts {
    margin-bottom: 48px;
  }
  .guide__fact {
    padding: 18px;
  }
  .guide__body {
    gap: 48px;
  }
  .guide__block p,
  .guide__block li {
    font-size: 16px;
  }
  .guide__limits {
    padding: 18px;
  }
  .guide-cta__box {
    padding: 24px;
  }
  /* the pills sit closer to the facts, as the facts sit closer to the head */
  .guide__toc {
    margin: -24px 0 48px;
  }
  /* three numeric columns fit a phone once the cells breathe a little less */
  .guide__table--num th,
  .guide__table--num td {
    padding: 12px 14px;
  }
  .guide__table--num td {
    font-size: 13px;
  }
}

/* ── the Terms of Use page (site/tools/terms.mjs): the guide's reading measure, lettered items as a quiet list ── */
.terms__text ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.4em;
  color: var(--h-ink-dim, inherit);
}
.terms__text li::marker {
  color: var(--h-ink-faint, currentColor);
}
.terms__text h2 {
  font-size: clamp(20px, 2.2vw, 24px);
}

/* ==== sections/86-contact.css ==== */
/* ==== contact: the form on the Contact page and at the foot of the home page (owner: the contact section) ==== */

/*
 * One fragment, two settings (sections/_contact-form.html):
 *   .contact--page   a centred head, then the card on the dotted stage (the Contact page)
 *   .contact--home   two columns, words left and the card right, stacking under 900 px (the home page's last section)
 * Colour by meaning: violet (atlas, the section hue) only on the headline keyword, the focus glow and the bloom; fail
 * red only on a field that is wrong and on a message that did not go; the sent tick is the pass green. Everything else
 * is ink on near-black. Motion is a spring on the sent panel and the button; reduced motion zeroes the durations.
 */

.contact {
  scroll-margin-top: var(--header-h);
}
/* the page's first section: named with .section so this air outranks base.css's ".section:first-of-type", which
   takes a first section's top padding away and, against the lone class, left the head flush under the header */
.section.contact--page {
  padding-top: clamp(56px, 8vw, 112px);
}
.contact [hidden] {
  display: none !important;
}

/* ───────────────────────────── the page setting ──────────────────────────── */
.contact--page .section__head {
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.contact__stage {
  position: relative;
  display: grid;
  justify-items: center;
  padding: clamp(28px, 4.5vw, 64px) clamp(16px, 4vw, 56px);
}
.contact__stage > .contact__bloom {
  inset: 0;
  background:
    radial-gradient(40% 46% at 50% 40%, var(--hue-soft), transparent 74%),
    radial-gradient(60% 26% at 50% 104%, var(--hue-faint), transparent 72%);
}
.contact--page .contact__card {
  position: relative;
  width: 100%;
  max-width: 560px;
}

/* ───────────────────────────── the home setting ──────────────────────────── */
.contact__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.contact__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}
.contact__copy .t-lead {
  max-width: 40ch;
}
.contact--home .contact__card {
  width: 100%;
}
@media (max-width: 900px) {
  .contact__split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ───────────────────────────── the card ──────────────────────────────────── */
.contact__card {
  padding: clamp(22px, 3vw, 36px);
}

/* the form and the sent panel share one grid cell: the card never changes height when one gives way to the other */
.contact__stack {
  position: relative;
  display: grid;
}
.contact__stack > * {
  grid-area: 1 / 1;
  min-width: 0;
}
.contact__form {
  display: grid;
  gap: 18px;
  align-content: start;
  transition: opacity var(--h-dur) var(--h-ease), transform var(--h-dur-slow) var(--h-spring);
}
.contact__stack[data-sent] .contact__form {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}

.contact__fields {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  transition: opacity var(--h-dur-fast) var(--h-ease);
}
.contact__fields:disabled {
  opacity: 0.55;
}
/* 16 px type, so iOS never zooms into a field */
.contact__input {
  height: 52px;
  font-size: 16px;
  scroll-margin-top: calc(var(--header-h) + 24px);
  scroll-margin-bottom: 96px;
}
.contact__textarea {
  height: auto;
  min-height: 132px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
  font-family: var(--font-mono);
}
.contact__hint-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.contact__count {
  flex: none;
  color: var(--h-ink-quiet);
  font-variant-numeric: tabular-nums;
}

/* the honeypot: off the page rather than display:none, because some autofillers skip a hidden field, which is its whole job */
.contact__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile takes room only when it has drawn something */
.contact__turnstile:empty {
  display: none;
}

/* ───────────────────────────── the button and the result line ────────────── */
.contact__actions {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.contact__submit {
  width: 100%;
}
.contact__submit[data-busy] {
  opacity: 0.88;
  cursor: progress;
}
.contact__spin {
  display: none;
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.contact__spin::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.22;
}
/* the dot that runs round the ring; it only exists while a request is out, and the label says Sending besides */
.contact__spin::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: currentColor;
  animation: contact-orbit 0.9s linear infinite;
  transform-origin: 3px 10px;
}
.contact__submit[data-busy] .contact__spin {
  display: block;
}
@keyframes contact-orbit {
  to {
    transform: rotate(360deg);
  }
}
.contact__status {
  min-height: 1.5em;
  color: var(--h-ink-faint);
  text-align: center;
}
.contact__status[data-state='fail'] {
  color: var(--h-fail-ink);
}
.contact__status[data-state='busy'] {
  color: var(--h-ink-dim);
}

/* ───────────────────────────── sent ──────────────────────────────────────── */
.contact__done {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding-block: 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity var(--h-dur) var(--h-ease), transform var(--h-dur-slow) var(--h-spring);
}
.contact__done:focus {
  outline: none;
}
.contact__done:focus-visible {
  outline: 2px solid var(--h-ink-strong);
  outline-offset: 6px;
  border-radius: 12px;
}
.contact__stack[data-sent] .contact__done {
  opacity: 1;
  transform: none;
}
.contact__done-text {
  max-width: 34ch;
  color: var(--h-ink-dim);
}
.contact__tick {
  width: 56px;
  height: 56px;
  padding: 14px;
  border-radius: 50%;
  color: var(--h-pass-ink);
  border: var(--h-stroke) solid color-mix(in srgb, var(--h-pass) 50%, var(--h-line-3));
  background: color-mix(in srgb, var(--h-pass) 10%, transparent);
}

/* ───────────────────────────── the footer's last line (every page) ───────── */
.site-footer__contact {
  flex: 1 1 100%;
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--h-line-1);
}
.site-footer__contact a {
  color: var(--h-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--h-line-3);
  transition: color var(--h-dur-fast) var(--h-ease), text-decoration-color var(--h-dur-fast) var(--h-ease);
}
.site-footer__contact a:hover {
  color: var(--h-ink-strong);
  text-decoration-color: var(--h-ink-strong);
}
/* the legal line under it: who owns Nihil and its terms, one quiet line */
.site-footer__legal {
  flex: 1 1 100%;
  margin: 0;
  color: var(--h-ink-faint);
  font-size: 13px;
}
.site-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--h-line-2);
  transition: color var(--h-dur-fast) var(--h-ease);
}
.site-footer__legal a:hover {
  color: var(--h-ink);
}

/* ==== sections/87-changelog.css ==== */
/*
 * changelog: the page at /changelog/ (its body is made by site/tools/changelog.mjs from resources/WHATS_NEW.md).
 * A reading page, like the guides: no figure, no motion beyond the site's reveals. Each release is a row with the
 * version and its day on the left, staying in view while its notes scroll past, and the notes on the right at the
 * site's reading measure. Below 960 px the row stacks and the version sits on one line above its notes.
 * Every selector sits under #changelog, except the one link the Download page carries (.cl-link).
 */

#changelog.section {
  padding-top: 72px;
}

/* ── the head: eyebrow, the one h1, a lead, the feed ── */
#changelog .cl__head {
  display: grid;
  gap: 22px;
  max-width: 900px;
  margin-bottom: 72px;
}
#changelog .cl__head .t-lead {
  max-width: 60ch;
}
#changelog .cl__feed a {
  color: var(--h-ink-dim);
  text-decoration: underline;
  text-decoration-color: var(--h-line-3);
  text-underline-offset: 4px;
  transition: color var(--h-dur-fast) var(--h-ease), text-decoration-color var(--h-dur-fast) var(--h-ease);
}
#changelog .cl__feed a:hover {
  color: var(--h-ink-strong);
  text-decoration-color: var(--hue);
}

/* ── the releases: a hairline between them, never a box ── */
#changelog .cl__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#changelog .cl__release {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px 56px;
  align-items: start;
  padding-block: 56px;
  border-top: 1px solid var(--h-line-1);
  /* an anchor lands below the fixed header, not under it */
  scroll-margin-top: 88px;
}
/* the page's own bottom margin closes the list; the last release adds none of its own */
#changelog .cl__release:last-child {
  padding-bottom: 0;
}

/* ── when: the version in the section's hue, its day, and "latest" on the newest ── */
#changelog .cl__when {
  position: sticky;
  top: 104px;
  display: grid;
  justify-items: start;
  gap: 14px;
}
#changelog .cl__version {
  color: var(--hue);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-radius: 6px;
  transition: color var(--h-dur-fast) var(--h-ease);
}
#changelog .cl__version:hover {
  color: var(--h-ink-strong);
}
#changelog .cl__version:focus-visible {
  outline: 2px solid var(--hue);
  outline-offset: 4px;
}
/* the release a link pointed at says so for a moment, in its own hue */
#changelog .cl__release:target .cl__version {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ── what: the headline, then each group's label over its items ── */
#changelog .cl__what {
  display: grid;
  gap: 36px;
  max-width: 68ch;
}
#changelog .cl__group {
  display: grid;
  gap: 16px;
}
#changelog .cl__label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--h-ink-faint);
}
/* the label's hairline runs to the edge of the column, so a group reads as a part of the release */
#changelog .cl__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--h-line-1);
}
#changelog .cl__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
#changelog .cl__items li {
  position: relative;
  padding-left: 22px;
  color: var(--h-ink-dim);
}
#changelog .cl__items li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--h-ink-quiet);
}

/* ── the one link the Download page carries to this page ── */
.cl-link {
  margin-top: 20px;
}
.cl-link a {
  color: var(--h-ink-dim);
  text-decoration: underline;
  text-decoration-color: var(--h-line-3);
  text-underline-offset: 4px;
  transition: color var(--h-dur-fast) var(--h-ease);
}
.cl-link a:hover {
  color: var(--h-ink-strong);
}

/* ── tablets and phones: the row stacks; the version, its day and the chip share one line ── */
@media (max-width: 960px) {
  #changelog .cl__head {
    margin-bottom: 48px;
  }
  #changelog .cl__release {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-block: 40px;
  }
  #changelog .cl__when {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
  }
}
@media (max-width: 640px) {
  #changelog.section {
    padding-top: 40px;
  }
  #changelog .cl__what {
    gap: 28px;
  }
}

/* ==== sections/90-offline.css ==== */
/*
 * 90-offline.css: the offline card on the home page. Owner: the lead.
 *
 * One stage, copy on the left and three rows on the right at >= 960, stacked below. System amber is the section hue
 * and shows only where the tokens already put it: the eyebrow, the headline keyword, the bloom and the key row's icon.
 */

#offline .offline {
  padding: clamp(32px, 5vw, 64px);
}
#offline .offline__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
#offline .offline__copy {
  display: grid;
  gap: 18px;
}
/* the keyword in the headline takes the section hue, as every other headline does */
#offline .hue {
  color: var(--hue);
}
/* the joke: body size, a touch warmer than the lead so it reads as an aside, not a feature */
#offline .offline__joke {
  color: var(--h-ink);
  max-width: 52ch;
}
#offline .offline__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ───────────────────────────── responsive ────────────────────────────────── */
@media (max-width: 960px) {
  #offline .offline__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==== sections/95-synthesis.css ==== */
/*
 * 95-synthesis.css: the Synthesis sneak peek on the home page, between Offline and the closing.
 * Owner: the synthesis section.
 *
 *   .synth          the column: a centred head, three lines, one quiet foot
 *   .synth__later   the headline's keyword, "Later", which arrives a beat after its headline
 *   .synth__line    one of the three lines, under a dashed hairline (the ghost chip's "planned" mark)
 *
 * Synthesis is not built, so nothing here is lit. The section's hue is the quiet ink: the eyebrow's hairline and
 * the keyword are grey where every other section's are coloured, which is the point. No stage, no bloom, no
 * figure, so it reads as a breath between the two panels around it.
 */

/* the hue: quiet ink, outranking the data-hue="ink" mapping (an id beats an attribute) */
#synthesis {
  --hue: var(--h-ink-quiet);
}

/* ───────────────────────────── the column ────────────────────────────────── */
#synthesis .synth {
  max-width: 1040px;
  margin-inline: auto;
}
#synthesis .synth__head {
  margin-bottom: 64px;
}
/* centred copy reads best as even lines: no lone word left hanging under a full one */
#synthesis .synth__head .t-lead,
#synthesis .synth__foot {
  text-wrap: balance;
}

/*
 * "Later" arrives later: the headline rises with the shared reveal, and its keyword fades in once the headline has
 * settled. Without JS (no .js) and under reduced motion it is simply there.
 */
.js #synthesis .synth__later {
  opacity: 0;
  transition: opacity 0.9s var(--h-ease) 0.5s;
}
.js #synthesis [data-shown] .synth__later {
  opacity: 1;
}

/* ───────────────────────────── the three lines ───────────────────────────── */
#synthesis .synth__lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}
#synthesis .synth__line {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 22px;
  /* a dashed hairline drawn as a gradient, so the dashes stay crisp and even at any width */
  background: linear-gradient(90deg, var(--h-line-3) 0 4px, transparent 4px 8px) top left / 8px 1px repeat-x;
}
#synthesis .synth__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--h-ink-strong);
}
#synthesis .synth__note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--h-ink-dim);
  /* left-aligned in a column: full lines read best, with no single word left on the last one */
  text-wrap: pretty;
}

/* the foot: the honest line, in the machine's voice, centred under everything */
#synthesis .synth__foot {
  margin-top: 56px;
  text-align: center;
}

/* ───────────────────────────── reduced motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .js #synthesis .synth__later {
    opacity: 1;
    transition: none;
  }
}

/* ───────────────────────────── responsive ────────────────────────────────── */
/* below 960 the three lines stack into one readable column, still centred on the page */
@media (max-width: 960px) {
  #synthesis .synth__lines {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
    gap: 28px;
  }
}
@media (max-width: 640px) {
  #synthesis .synth__head {
    margin-bottom: 44px;
  }
  #synthesis .synth__foot {
    margin-top: 40px;
  }
}

/* ==== sections/99-closing.css ==== */
/* ==== closing: ex nihilo (owner: the lead) ==== */
#closing .closing {
  padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px);
  text-align: center;
}
#closing .closing__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 28px;
}
#closing .closing__title {
  font-size: clamp(64px, 10vw, 152px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--h-ink-strong);
}
#closing .t-lead {
  text-align: center;
}
#closing .btn-row {
  justify-content: center;
}

