/* Spec 21 mock-ups. Part 1 is a copy of packages/design-tokens/tokens.css (the single token source, ADR 0042),
   light :root and the dark values as a .dark scope. Part 2 is the few landing-only tokens these mock-ups propose
   (to be added to tokens.css in phase 2, nowhere else). Part 3 is mock layout that uses only those variables. */

/* ---------- 1. tokens.css (copy) ---------- */
:root {
  --bg: #f2f0eb; --paper: #ffffff; --surface: #fbfaf7; --surface-2: #e8e5dd; --border: #d9d5cb; --border-strong: #8c877c;
  --fg: #151515; --fg-muted: #5f5b53;
  --accent: #fa402d; --accent-fg: #151515; --accent-ink: #b3261a; --accent-soft: #fbe3de;
  --primary: #151515; --primary-fg: #f2f0eb; --primary-hover: #33312e;
  --ok: #1e6b47; --warn: #7a5200; --danger: #a8201a; --info: #1f5a99;
  --ok-soft: #dcebe2; --warn-soft: #f1e6cc; --danger-soft: #f6dedb; --info-soft: #dbe6f2;
  --focus: #fa402d;
  --ff-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-serif: 'IBM Plex Serif', ui-serif, Georgia, serif;
  --ff-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --fs-2xs: 0.6875rem; --fs-xs: 0.75rem; --fs-sm: 0.8125rem; --fs-base: 0.875rem; --fs-md: 1rem; --fs-lg: 1.25rem;
  --fs-xl: 1.625rem; --fs-2xl: 2rem;
  --lh-2xs: 1rem; --lh-xs: 1rem; --lh-sm: 1.25rem; --lh-base: 1.25rem; --lh-md: 1.5rem; --lh-lg: 1.75rem; --lh-xl: 2rem; --lh-2xl: 2.25rem;
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem;
  --r-sm: 2px; --r-md: 4px; --control-h: 2rem; --control-h-sm: 1.75rem; --header-h: 3rem; --content-w: 1200px;
  --elev-panel: 0 6px 24px rgb(21 21 21 / 0.14);
}
.dark {
  --bg: #151515; --surface: #1e1d1b; --surface-2: #2a2927; --border: #3a3936; --border-strong: #77736b;
  --fg: #e9e6df; --fg-muted: #a8a39a; --accent-fg: #151515; --accent-ink: #ff6a55; --accent-soft: #3a211d;
  --primary: #e9e6df; --primary-fg: #151515; --primary-hover: #ffffff;
  --ok: #5fbf8f; --warn: #e0b050; --danger: #ff8a7a; --info: #8ab8ee;
  --ok-soft: #1c2c24; --warn-soft: #30281a; --danger-soft: #36201d; --info-soft: #1c2733;
  --elev-panel: 0 6px 24px rgb(0 0 0 / 0.5);
  background: var(--bg); color: var(--fg);
}

/* ---------- 2. proposed additions for the landing (phase 2: into tokens.css) ---------- */
:root {
  --fs-display: 3.5rem; --lh-display: 3.875rem;   /* 56 / 62 hero H1 */
  --fs-3xl: 2.5rem; --lh-3xl: 2.875rem;           /* 40 / 46 section titles */
  --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;
  --measure: 70ch;
  --r-lg: 8px;
  --dur-trace: 2.8s;
}
@media (max-width: 767px) {
  :root { --fs-display: 2.25rem; --lh-display: 2.625rem; --fs-3xl: 1.75rem; --lh-3xl: 2.25rem; --space-24: 4rem; --fs-xl: 1.375rem; --lh-xl: 1.75rem; }
}

/* ---------- 3. mock layout ---------- */
.u { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--fs-md)/var(--lh-md) var(--ff-sans); -webkit-font-smoothing: antialiased; }
.u *, .u *::before, .u *::after { box-sizing: border-box; }
.u a { color: inherit; }
.u :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--content-w); margin: 0 auto; padding: 0 var(--space-8); }
.serif { font-family: var(--ff-serif); font-weight: 500; letter-spacing: -0.01em; }
.mono { font-family: var(--ff-mono); }
.muted { color: var(--fg-muted); }
.small { font-size: var(--fs-sm); line-height: var(--lh-sm); }
.tnum { font-variant-numeric: tabular-nums; }
.h1 { margin: 0; font: 500 var(--fs-display)/var(--lh-display) var(--ff-serif); letter-spacing: -0.015em; max-width: 18ch; }
.h2 { margin: 0; font: 500 var(--fs-3xl)/var(--lh-3xl) var(--ff-serif); letter-spacing: -0.01em; }
.h3 { margin: 0; font: 600 var(--fs-lg)/var(--lh-lg) var(--ff-sans); }
.lead { margin: 0; max-width: var(--measure); font-size: var(--fs-lg); line-height: var(--lh-lg); color: var(--fg-muted); }
.p { margin: 0; max-width: var(--measure); color: var(--fg-muted); }
.label { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--fg-muted); }
.label::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.section { padding: var(--space-24) 0; border-top: 1px solid var(--border); }
.section.dark { background: var(--bg); color: var(--fg); border-top: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-6); border-radius: var(--r-md); border: 1px solid var(--border-strong); background: transparent; color: var(--fg); font: 600 var(--fs-base)/1 var(--ff-sans); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn-sm { min-height: 32px; padding: 0 var(--space-3); font-size: var(--fs-sm); }
.link { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.head { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.head .bar { display: flex; align-items: center; gap: var(--space-6); height: 64px; }
.mark { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.mark::before { content: ''; width: 12px; height: 12px; background: var(--accent); }
.head nav { display: flex; gap: var(--space-6); margin-left: auto; font-size: var(--fs-base); }
.head nav a { text-decoration: none; color: var(--fg-muted); }
.head .menu { display: none; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-6); }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

.chip { display: inline-flex; align-items: center; gap: var(--space-2); height: 28px; padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: 999px; font-size: var(--fs-xs); white-space: nowrap; background: var(--surface); color: var(--fg); }
.chip.off { border-style: dashed; color: var(--fg-muted); background: transparent; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-muted); }
.chip.live .dot { background: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--space-6); }
.rv { display: grid; gap: var(--space-3); }
.rv-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-3); align-items: baseline; padding-top: var(--space-3); border-top: 1px solid var(--border); }
.rv-line .k { font-size: var(--fs-sm); color: var(--fg-muted); }
.rv-line .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.warn { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: var(--warn-soft); color: var(--fg); font-size: var(--fs-sm); line-height: var(--lh-sm); }
.warn b { color: var(--warn); }
.err { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: var(--danger-soft); color: var(--fg); font-size: var(--fs-sm); }
.ok { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: var(--ok-soft); color: var(--fg); font-size: var(--fs-sm); }
.info { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: var(--info-soft); color: var(--fg); font-size: var(--fs-sm); }

.field { display: grid; gap: 6px; }
.field label, .field .lab { font-size: var(--fs-sm); font-weight: 500; }
.input { height: 44px; padding: 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--paper); color: var(--fg); font: 400 var(--fs-md) var(--ff-sans); width: 100%; }
.dark .input { background: var(--surface); }
.input.bad { border-color: var(--danger); }
.hint { font-size: var(--fs-sm); color: var(--fg-muted); }
.copybox { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-2) 0 var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); }
.copybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 var(--fs-sm) var(--ff-mono); }

.steps { counter-reset: s; display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); align-items: baseline; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border-strong); border-radius: 50%; font-size: var(--fs-xs); font-weight: 600; }

.tbl-box { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; font-weight: 600; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.tbl td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.na { color: var(--fg-muted); }

.example { display: grid; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.example .tag { justify-self: start; font-size: var(--fs-xs); font-weight: 600; padding: 2px var(--space-2); border: 1px solid var(--border-strong); border-radius: var(--r-sm); }
.example .q { font-weight: 600; }
.example .tool { font: 400 var(--fs-xs) var(--ff-mono); color: var(--fg-muted); }
.example .cannot { font-size: var(--fs-sm); padding-top: var(--space-3); border-top: 1px dashed var(--border-strong); }

/* app screens: centred column, phone class */
.screen { min-height: 100%; display: flex; flex-direction: column; }
.screen .top { display: flex; align-items: center; gap: var(--space-4); height: 56px; padding: 0 var(--space-6); border-bottom: 1px solid var(--border); }
.col { width: 100%; max-width: 640px; margin: 0 auto; padding: var(--space-12) var(--space-6); display: grid; gap: var(--space-6); align-content: start; }
.is-phone .col { padding: var(--space-6) var(--space-4); }
.is-phone .screen .top { padding: 0 var(--space-4); }
.progress { display: flex; gap: var(--space-2); }
.progress span { flex: 1; height: 3px; background: var(--border); }
.progress span.on { background: var(--primary); }
.tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { padding: var(--space-2) var(--space-3); text-decoration: none; color: var(--fg-muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: var(--fs-base); }
.tabs a[aria-current='page'] { color: var(--fg); border-bottom-color: var(--fg); font-weight: 600; }
.choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--surface); }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.choice.on { border-color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.status-line { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); }
.status-line .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--info); animation: pulse 1.4s ease-in-out infinite; }
.status-line .on { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
@keyframes pulse { 50% { opacity: 0.3; } }
.toggle { display: inline-flex; align-items: center; gap: var(--space-3); }
.toggle i { width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; }
.toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }

/* frames for app screens: 1440 × 900 desktop, 390 × 844 phone */
.frame { width: 1440px; min-height: 900px; display: flex; flex-direction: column; }
.frame.is-phone { width: 390px; min-height: 844px; }
.split { width: 1440px; min-height: 900px; display: grid; grid-template-columns: 560px minmax(0, 1fr); }
.split .side { display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-12); }
.split.is-phone { width: 390px; min-height: 844px; display: flex; flex-direction: column; }
.split.is-phone .side { display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-4); }
.app-top { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); padding: 0 var(--space-6); border-bottom: 1px solid var(--border); background: var(--surface); font-size: var(--fs-base); }
.app-top nav { display: flex; gap: var(--space-4); color: var(--fg-muted); }
.is-phone .app-top { padding: 0 var(--space-4); }
.is-phone .app-top nav { display: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--space-12); width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--space-12) var(--space-8); align-items: start; }
.is-phone .two-col { grid-template-columns: minmax(0, 1fr); padding: var(--space-6) var(--space-4); gap: var(--space-6); }
.is-phone .hide-phone { display: none; }
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-12); width: 100%; max-width: 1200px; margin: 0 auto; padding: var(--space-12) var(--space-8); }
.is-phone .settings { grid-template-columns: minmax(0, 1fr); padding: var(--space-6) var(--space-4); gap: var(--space-6); }
.side-nav { display: grid; gap: 2px; align-content: start; }
.side-nav a { padding: 6px var(--space-3); border-radius: var(--r-md); text-decoration: none; color: var(--fg-muted); font-size: var(--fs-base); }
.side-nav a[aria-current='page'] { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.is-phone .side-nav { display: flex; overflow-x: auto; }
.phones { display: flex; gap: 80px; align-items: flex-start; }
.phones > * { flex: none; width: 390px; height: 844px; overflow: hidden; border: 1px solid var(--border); }

/* source trace (hero) */
.trace { position: relative; }
.trace svg { display: block; width: 100%; height: auto; }
.trace .parcel { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.trace .hero-lot { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.trace .wire { fill: none; stroke: var(--fg-muted); stroke-width: 1; stroke-dasharray: 600; stroke-dashoffset: 0; }
.trace .wire.live { stroke: var(--accent); stroke-width: 1.5; }
.trace .wire.off { stroke-dasharray: 3 4; }
.anim .wire { animation: draw var(--dur-trace) ease-out both; }
.anim .rv-line, .anim .warn { animation: fillin 0.4s ease-out both; }
.anim .rv-line:nth-child(2) { animation-delay: 1.2s; } .anim .rv-line:nth-child(3) { animation-delay: 1.5s; }
.anim .rv-line:nth-child(4) { animation-delay: 1.8s; } .anim .rv-line:nth-child(5) { animation-delay: 2.1s; }
.anim .warn { animation-delay: 2.5s; }
@keyframes draw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes fillin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .anim .wire, .anim .rv-line, .anim .warn, .status-line .pulse { animation: none; } }

.hero { padding: var(--space-16) 0 var(--space-24); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); align-content: start; }
.trace-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.trace-stage { position: relative; }
.trace-map { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg); }
.trace-card { position: absolute; right: -8px; bottom: -40px; width: 360px; box-shadow: var(--elev-panel); }
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; row-gap: var(--space-3); }
.ledger .lv { padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.ledger .lv .k { font-size: var(--fs-xs); color: var(--fg-muted); }
.ledger .lv .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger .wire-h { height: 1px; background: var(--fg-muted); }
.ledger .wire-h.live { background: var(--accent); height: 2px; }
.ledger .wire-h.off { background: none; border-top: 1px dashed var(--border-strong); }
.ledger .src { font-size: var(--fs-sm); line-height: var(--lh-sm); }
.ledger .src b { font-weight: 600; }
.anim .ledger > * { animation: fillin 0.4s ease-out both; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); counter-reset: f; }
.flow > li { list-style: none; counter-increment: f; display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-4); border-top: 2px solid var(--fg); }
.flow > li::before { content: counter(f); font: 500 var(--fs-xl)/1 var(--ff-serif); }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4) var(--space-8); margin: 0; padding: 0; list-style: none; }
.rules li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--space-3); align-items: baseline; }
.rules svg { width: 16px; height: 16px; stroke: var(--fg); fill: none; stroke-width: 1.5; }

/* responsive (landing pages read the viewport; app screens read .is-phone) */
@media (max-width: 767px) {
  .hero { padding: var(--space-8) 0 var(--space-16); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .trace-stage { display: flex; flex-direction: column; }
  .trace-card { position: static; width: auto; order: -1; margin-bottom: var(--space-4); box-shadow: none; }
  .trace-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--space-2); }
  .ledger { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-1); }
  .ledger .wire-h { width: 1px; height: 12px; margin-left: var(--space-4); }
  .ledger .wire-h.off { border-top: 0; border-left: 1px dashed var(--border-strong); }
  .ledger .src { margin-bottom: var(--space-3); }
  .flow, .doors, .rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .wrap { padding: 0 var(--space-4); }
  .head nav { display: none; }
  .head .menu { display: inline-flex; margin-left: auto; }
  .grid2, .grid3, .grid5 { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .hide-phone { display: none; }
}
@media (min-width: 768px) { .only-phone { display: none; } }

/* hero C (after busybox.io): a FIXED stage under the whole page. The photo is animated by a WebGL
   shader (strands sway, part around the mouse); the <img> layers underneath are the poster and the
   no-WebGL fallback. Script drives the parallax (translate3d + scale), the crossfade and the shade. */
.over-page { background: transparent; }
.over-page .section.dark, .over-page footer.dark { background: transparent; }
.hero-c { position: relative; display: flex; align-items: flex-end; min-height: clamp(640px, 100svh, 960px); padding: calc(64px + var(--space-16)) 0 var(--space-16); background: transparent; color: var(--fg); }
.hc-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #0b0b0b; }
.hc-media { position: absolute; inset: 0; transform: translate3d(0, 0, 0) scale(1.05); transform-origin: 50% 45%; will-change: transform; }
.hc-img, .hc-gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hc-img { object-fit: cover; object-position: 70% 60%; }
.hc-img[data-hc-layer='2'] { opacity: 0; }
.hero-c[data-photo='2'] .hc-img[data-hc-layer='2'] { opacity: 1; }
.hc-gl { opacity: 0; transition: opacity 0.8s ease; }
.hc-gl.is-on { opacity: 1; }
.hc-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 11 11 / 0.55) 0%, rgb(11 11 11 / 0) 28%), linear-gradient(90deg, rgb(11 11 11 / 0.8) 0%, rgb(11 11 11 / 0.45) 42%, rgb(11 11 11 / 0) 72%); }
.hc-grain { position: absolute; inset: 0; background: url(assets/img/grain.webp) repeat 0 0 / 72px 72px; mix-blend-mode: soft-light; opacity: 0.5; }
.hc-shade { position: absolute; inset: 0; background: #0b0b0b; opacity: 0; }
.hc-content { position: relative; width: 100%; }
.hc-content .hero-copy { max-width: 640px; }
.hc-cue { position: absolute; left: 50%; bottom: var(--space-8); width: 1px; height: 56px; background: linear-gradient(var(--fg-muted), rgb(168 163 154 / 0)); transform-origin: top; animation: hc-cue 2.4s ease-in-out infinite; }
@keyframes hc-cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.head-over { background: rgb(11 11 11 / 0.45); border-bottom-color: rgb(255 255 255 / 0.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.over { margin-top: -64px; }
@media (max-width: 767px) {
  .hero-c { align-items: flex-end; padding: calc(64px + var(--space-8)) 0 var(--space-16); }
  .hc-img { object-position: 78% 55%; }
  .hc-scrim { background: linear-gradient(180deg, rgb(11 11 11 / 0.5) 0%, rgb(11 11 11 / 0.25) 35%, rgb(11 11 11 / 0.82) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hc-cue { animation: none; } .hc-gl { transition: none; } }

/* hero C preloader (after busybox.io): gradient + grain, logo with growing axes, count; leaves by a GL dissolve */
html.hc-pre { overflow: hidden; }
.hc-pre { position: fixed; inset: 0; z-index: 300; overflow: hidden; pointer-events: none; color: #e9e6df; }
.hc-pre__bg { position: absolute; inset: 0; background: linear-gradient(180deg, #0b0b0b 22.179%, #a3a5ab 141.54%); }
.hc-pre.is-gl .hc-pre__bg, .hc-pre.is-gl .hc-pre__tex { display: none; }
.hc-pre.is-fade .hc-pre__bg, .hc-pre.is-fade .hc-pre__tex { opacity: 0; transition: opacity 0.5s ease; }
/* after loading the mark stays, still, in the middle of the first screen (under the header) */
.hc-pre.is-rest { z-index: 4; }
.hc-pre.is-rest .hc-pre__bg, .hc-pre.is-rest .hc-pre__tex, .hc-pre.is-rest .hc-pre__count, .hc-pre.is-rest .hc-pre__axis { display: none; }
.hc-pre__tex { position: absolute; inset: 0; background: url(assets/img/grain.webp) 0 0 / 72px 72px repeat; mix-blend-mode: soft-light; opacity: 0.5; }
.hc-pre__axis { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: 0.28; transform: scaleX(var(--pk, 0)); -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - 112px), transparent calc(50% - 112px), transparent calc(50% + 112px), #000 calc(50% + 112px)); mask-image: linear-gradient(90deg, #000 calc(50% - 112px), transparent calc(50% - 112px), transparent calc(50% + 112px), #000 calc(50% + 112px)); }
.hc-pre__axis--v { left: calc(50% - 0.5px); right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform: scaleY(var(--pk, 0)); -webkit-mask-image: linear-gradient(180deg, #000 calc(50% - 112px), transparent calc(50% - 112px), transparent calc(50% + 112px), #000 calc(50% + 112px)); mask-image: linear-gradient(180deg, #000 calc(50% - 112px), transparent calc(50% - 112px), transparent calc(50% + 112px), #000 calc(50% + 112px)); }
.hc-pre__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; color: #F2F0EB; animation: hc-pre-in 0.3s ease 0.4s both; }
@keyframes hc-pre-in { from { opacity: 0; } to { opacity: 1; } }
.hc-pre__count { position: absolute; left: var(--space-8); bottom: var(--space-8); font: 500 54px/53px var(--ff-sans); letter-spacing: -3.24px; font-variant-numeric: tabular-nums; }
.hc-pre__logo, .hc-pre__count, .hc-pre__axis { transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.hc-pre.is-leaving .hc-pre__count { opacity: 0; filter: blur(6px); }
.hc-pre.is-leaving .hc-pre__axis { opacity: 0; }
/* page content waits under the preloader, then comes in from a blur (busybox: 1.3 s, power2.out, .12 s stagger) */
.head-over, .hc-content .hero-copy > *, .hc-cue, .over > section:not(.hero-c), .over-page > footer, .hc-scrim { transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), filter 1.3s cubic-bezier(0.16, 1, 0.3, 1); }
.hc-content .hero-copy > :nth-child(2) { transition-delay: 0.12s; }
.hc-content .hero-copy > :nth-child(3) { transition-delay: 0.24s; }
.hc-content .hero-copy > :nth-child(4) { transition-delay: 0.36s; }
/* never the hero itself: it holds the preloader and the fixed stage (a filter on it would break position: fixed) */
html.hc-pre .head-over, html.hc-pre .hc-content .hero-copy > *, html.hc-pre .over > section:not(.hero-c), html.hc-pre .over-page > footer { opacity: 0; transform: translateY(14px); filter: blur(10px); }
html.hc-pre .hc-cue, html.hc-pre .hc-scrim { opacity: 0; }
@media (max-width: 767px) { .hc-pre__count { left: var(--space-4); bottom: var(--space-4); font-size: 40px; line-height: 40px; letter-spacing: -2.4px; } }
@media (prefers-reduced-motion: reduce) { .hc-pre__logo { animation: none; } }
/* CGHRONOS type on the landing (design system): Archivo Expanded 600 for headings, Inter for text, from its files */
@font-face { font-family: 'Archivo Expanded'; src: url('ds/cgh/fonts/ArchivoExpanded-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('ds/cgh/fonts/Inter-Variable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
.over-page { --ff-display: 'Archivo Expanded', Inter, Arial, sans-serif; --ff-serif: var(--ff-display); --ff-sans: Inter, Arial, sans-serif; --fs-display: 61px; --lh-display: 64px; --fs-3xl: 39px; --lh-3xl: 44px; }
.over-page .h1, .over-page .h2 { font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 1023px) { .over-page { --fs-display: 40px; --lh-display: 44px; --fs-3xl: 28px; --lh-3xl: 34px; } }

/* header: the CGHRONOS mark (cgh-logo) in place of the placeholder square; clear space a quarter of its side */
.mark--logo { gap: 10px; }
.mark--logo::before { display: none; }

/* the loader's ball as the cursor (fine pointers; script adds html.hc-cursor once it detaches) */
.hc-ball { position: fixed; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--cinnabar, #FA402D); z-index: 400; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; will-change: transform; }
.hc-ball.is-on { opacity: 1; }
.hc-ball.is-on.is-hidden { opacity: 0; }
html.hc-cursor, html.hc-cursor * { cursor: none !important; }
html.hc-cursor input, html.hc-cursor textarea, html.hc-cursor select, html.hc-cursor [contenteditable="true"] { cursor: auto !important; }

/* second screen and on (after busybox.io): the waves behind go soft (the shader's fog); panels are a faint
   frosted tint with hairlines and corner ticks, the grain shows through; the panel nearest the middle is lit */
.over-page .card, .over-page .example, .over-page .tbl-box, .over-page .grid3 > article {
  position: relative; border: 0; border-radius: 0;
  border-top: 1px solid rgb(255 255 255 / 0.15); border-bottom: 1px solid rgb(255 255 255 / 0.15);
  background: radial-gradient(140% 160% at 30% 20%, rgb(242 240 235 / 0.10), rgb(242 240 235 / 0.05));
}
.over-page .card[style*="sticky"] { position: sticky; }
.over-page .grid3 > article { padding: var(--space-6); }
.over-page .card::after, .over-page .example::after, .over-page .tbl-box::after, .over-page .grid3 > article::after {
  content: ''; position: absolute; inset: -1px 0; pointer-events: none; opacity: 0.7;
  background:
    linear-gradient(#F2F0EB, #F2F0EB) 0 0 / 11px 1px no-repeat, linear-gradient(#F2F0EB, #F2F0EB) 0 0 / 1px 5px no-repeat,
    linear-gradient(#F2F0EB, #F2F0EB) 100% 0 / 11px 1px no-repeat, linear-gradient(#F2F0EB, #F2F0EB) 100% 0 / 1px 5px no-repeat,
    linear-gradient(#F2F0EB, #F2F0EB) 0 100% / 11px 1px no-repeat, linear-gradient(#F2F0EB, #F2F0EB) 0 100% / 1px 5px no-repeat,
    linear-gradient(#F2F0EB, #F2F0EB) 100% 100% / 11px 1px no-repeat, linear-gradient(#F2F0EB, #F2F0EB) 100% 100% / 1px 5px no-repeat;
}
.over-page .section { border-top-color: transparent; }
.hc-glass { transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.hc-glass.is-dim { opacity: 0.35; }
@media (prefers-reduced-motion: reduce) { .hc-glass { transition: none; } }

/* one property, many sources: isometric source cubes threaded into the core; packets run inwards */
.hc-src { padding: var(--space-6); display: grid; gap: var(--space-4); }
.hc-src__stage { position: relative; container-type: inline-size; }
.hc-src__svg { display: block; width: 100%; height: auto; overflow: visible; }
.hc-src .thread { fill: none; stroke: rgb(242 240 235 / 0.35); stroke-width: 1; }
.hc-src .thread.is-off { stroke: rgb(242 240 235 / 0.22); stroke-dasharray: 3 5; }
.hc-src .brk circle { fill: rgb(11 11 11 / 0.6); stroke: rgb(242 240 235 / 0.5); }
.hc-src .brk path { fill: none; stroke: rgb(242 240 235 / 0.75); stroke-width: 1.2; stroke-linecap: round; }
.hc-src .pk circle { fill: #F2F0EB; }
.hc-src .pk .halo { fill: rgb(242 240 235 / 0.18); }
.hc-cube polygon { stroke: rgb(242 240 235 / 0.85); stroke-width: 1; stroke-linejoin: round; }
.hc-cube .f-t { fill: rgb(242 240 235 / 0.2); }
.hc-cube .f-l { fill: rgb(242 240 235 / 0.07); }
.hc-cube .f-r { fill: rgb(242 240 235 / 0.13); }
.hc-cube.is-off polygon { stroke: rgb(242 240 235 / 0.4); stroke-dasharray: 3 4; fill: rgb(242 240 235 / 0.03); }
.hc-core .f-t { fill: rgb(242 240 235 / 0.2); transition: fill 0.5s ease; }
.hc-core.is-hit .f-t { fill: rgb(242 240 235 / 0.5); transition-duration: 0.08s; }
.hc-core__mark .tile { fill: #F2F0EB; fill-opacity: 0.92; }
.hc-core__mark .ball { fill: #FA402D; }
.hc-src__chip rect { fill: rgb(11 11 11 / 0.45); stroke: rgb(242 240 235 / 0.6); }
.hc-src__chip .tab { fill: rgb(242 240 235 / 0.85); stroke: none; }
.hc-src__chip text { font: 500 12px var(--ff-sans); fill: #F2F0EB; }
.hc-src__chip.is-off rect { stroke-dasharray: 3 3; }
.hc-src__chip.is-off text { fill: rgb(242 240 235 / 0.6); }
