/* Onepharos marketing site.
   Tokens follow the app's "Verkeerstoren" visual language (onepharos/docs/ui/visuele-taal.md):
   layers instead of borders, one signal colour for "waits for a human", and the brand
   gradient for progress. Geist and Geist Mono, SIL OFL 1.1 (static/fonts/OFL.txt). */

@font-face {
  font-family: "Geist";
  src: url("/static/fonts/Geist.woff2?v=40c8e2cf6e") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/GeistMono.woff2?v=40c8e2cf6e") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --canvas: #e6eaee;
  --surface-1: #f1f3f5;
  --surface-2: #fbfcfd;
  --surface-3: #dde3e8;
  --ink: #0b2a44;
  --ink-muted: #536475;
  --ink-faint: #6f7d8b;
  --line: rgba(11, 42, 68, .08);
  --signal: #4f6100;
  --signal-mark: #9bbf00;
  --done: #138a6c;
  --brand-blue: #0070b4;
  --brand-teal: #1a9aa6;
  --brand-green: #4fbf83;
  --mark-ink: #022c4c;
  --glow-blue: rgba(0, 112, 180, .10);
  --glow-green: rgba(79, 191, 131, .10);
  --art-opacity: .34;
  --art-blend: multiply;
  --art-filter: saturate(.85) contrast(1.05);
  --noise-opacity: .25;
  --band: var(--surface-1);
  --band-card: var(--surface-2);

  --grad: linear-gradient(90deg, var(--brand-blue), var(--brand-teal) 55%, var(--brand-green));
  --r-chip: 6px;
  --r-card: 12px;
  --r-panel: 16px;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}


/* Dark: its own palette, not an inverted light theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #06090d;
    --surface-1: #10151b;
    --surface-2: #181e25;
    --surface-3: #232b34;
    --ink: #e8eef3;
    --ink-muted: #95a2ae;
    --ink-faint: #7a8793;
    --line: rgba(255, 255, 255, .10);
    --signal: #d9ff4d;
    --signal-mark: #d9ff4d;
    --done: #57d3a4;
    --brand-blue: #2f86f0;
    --brand-teal: #22b8bf;
    --brand-green: #6ad69a;
    --mark-ink: #ffffff;
    --glow-blue: rgba(47, 134, 240, .13);
    --glow-green: rgba(106, 214, 154, .08);
    --art-opacity: .3;
    --art-blend: luminosity;
    --art-filter: contrast(1.1) brightness(.9);
    --noise-opacity: .55;
  --band: var(--surface-2);
  --band-card: var(--surface-3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #06090d;
  --surface-1: #10151b;
  --surface-2: #181e25;
  --surface-3: #232b34;
  --ink: #e8eef3;
  --ink-muted: #95a2ae;
  --ink-faint: #7a8793;
  --line: rgba(255, 255, 255, .10);
  --signal: #d9ff4d;
  --signal-mark: #d9ff4d;
  --done: #57d3a4;
  --brand-blue: #2f86f0;
  --brand-teal: #22b8bf;
  --brand-green: #6ad69a;
  --mark-ink: #ffffff;
  --glow-blue: rgba(47, 134, 240, .13);
  --glow-green: rgba(106, 214, 154, .08);
  --art-opacity: .3;
  --art-blend: luminosity;
  --art-filter: contrast(1.1) brightness(.9);
  --noise-opacity: .55;
  --band: var(--surface-2);
  --band-card: var(--surface-3);
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
html, body { background: var(--canvas); margin: 0; }
body {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Brand glow and noise live on body only. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  background:
    radial-gradient(900px 500px at 8% -10%, var(--glow-blue), transparent 70%),
    radial-gradient(800px 500px at 100% 0%, var(--glow-green), transparent 70%);
}
body::after {
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
}
body > * { position: relative; z-index: 1; }

a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 600; }
em { font-style: normal; color: var(--ink); font-weight: 500; }

.mono { font-family: var(--font-mono); letter-spacing: 0; font-feature-settings: "zero", "ss01"; font-variant-numeric: tabular-nums; }
.faint { color: var(--ink-faint); }
.signal { color: var(--signal); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 8px 12px; border-radius: var(--r-chip); }
.skip:focus { left: 8px; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* ── Brand ──────────────────────────────────────────────────────────── */
.mark, .wordmark { display: inline-block; background: var(--mark-ink); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mark { --m: url("/static/img/mark.svg?v=40c8e2cf6e"); width: 30px; height: 30px; }
.mark-sm { width: 20px; height: 20px; }
.mark-xl { width: 72px; height: 72px; margin: 0 auto 20px; }
.wordmark { --m: url("/static/img/wordmark.svg?v=40c8e2cf6e"); width: 112px; height: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

/* ── Top bar ───────────────────────────────────────────────────────── */
.glass {
  background: color-mix(in oklab, var(--canvas) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.topbar { position: sticky; top: 0; z-index: 50; box-shadow: inset 0 -1px 0 var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--ink-muted); }
.nav a { text-decoration: none; transition: color .15s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { all: unset; cursor: pointer; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink-muted); transition: background .15s, color .15s; }
.theme-toggle:hover { background: var(--surface-3); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 1080px) { .nav { display: none; } }
@media (max-width: 480px) { .topbar .btn-sm { display: none; } }

/* Language switch: same pill as the app (mono 11px, active on surface-3). */
.lang { display: flex; align-items: center; border-radius: 999px; background: var(--surface-1); padding: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.lang button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: 999px; color: var(--ink-muted); }
.lang button:hover { color: var(--ink); }
.lang button[aria-current="true"] { background: var(--surface-3); color: var(--ink); font-weight: 600; }
.lang button:focus-visible { outline: 1.5px solid currentColor; outline-offset: -3px; }
.lang svg { box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent); }
@media (max-width: 640px) { .lang .code { display: none; } .lang button { padding: 0 7px; } .lang svg { width: 18px; height: 12px; } }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-ink { background: var(--ink); color: var(--canvas); }
.btn-ink:hover { box-shadow: 0 8px 30px -8px color-mix(in oklab, var(--brand-teal) 60%, transparent); }
.btn-ghost { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface-3); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
/* Status badges under the hero buttons: label | value, like the README badges, in the site's own style. */
.badges { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { display: inline-flex; border-radius: 6px; overflow: hidden; font-family: var(--font-mono); font-size: 11.5px; line-height: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.badges span { padding: 0 8px; background: var(--surface-3); color: var(--ink-muted); }
.badges b { padding: 0 8px; font-weight: 500; background: var(--surface-2); color: var(--ink); }
.badges b.ok { color: var(--done); }

/* ── Small atoms ───────────────────────────────────────────────────── */
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 0 var(--done); animation: pulse 2.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--done) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.sigdot { display: inline-block; width: 7px; height: 7px; flex-shrink: 0; border-radius: 2px; background: var(--signal-mark); transform: rotate(45deg); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-chip); background: var(--surface-3); font-size: 12px; }


/* ── Type ──────────────────────────────────────────────────────────── */
.display { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.display .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
/* The one human in the headline is in the signal mark colour: lime on light, yellow on dark. */
.display .accent .human { color: var(--signal-mark); -webkit-text-fill-color: var(--signal-mark); }
.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.03; font-weight: 600; letter-spacing: -.04em; max-width: 18ch; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; letter-spacing: -.015em; color: var(--ink-muted); max-width: 37em; margin: 26px 0 34px; text-wrap: pretty; }
.sub { font-size: 18px; line-height: 1.5; color: var(--ink-muted); max-width: 40em; margin-top: 20px; letter-spacing: -.01em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 40px; position: relative; overflow-x: clip; }
.hero-in { position: relative; }

/* The Pharos of Alexandria, faded in behind the hero. */
.hero-art {
  position: absolute; top: 0; right: -12%; width: min(1040px, 70vw); aspect-ratio: 1577 / 997;
  pointer-events: none; z-index: 0;
}
.hero-art picture, .hero-art img { display: block; width: 100%; height: 100%; }
.hero-art picture {
  opacity: var(--art-opacity); mix-blend-mode: var(--art-blend); filter: var(--art-filter);
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 58%), linear-gradient(to bottom, #000 50%, transparent 92%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 4%, #000 58%), linear-gradient(to bottom, #000 50%, transparent 92%);
  mask-composite: intersect;
}
.hero-in { z-index: 1; }
/* Plate label, like the caption under an engraving in an old atlas. */
.plate {
  position: absolute; right: calc(12vw + 32px); top: 71%; margin: 0; font-size: 11.5px; letter-spacing: .02em;
  color: var(--ink-faint); white-space: nowrap;
}
.plate span:first-child { color: var(--ink-muted); font-style: italic; font-family: Georgia, "Times New Roman", serif; font-size: 13px; letter-spacing: 0; margin-right: 6px; }
@media (max-width: 1200px) { .plate { display: none; } }
@media (max-width: 900px) {
  .hero-art { top: 0; right: -30%; width: 130vw; }
  .hero-art picture { opacity: calc(var(--art-opacity) * .6); }
  .plate { display: none; }
}

/* ── Board (mirrors /p/SDM: pulse, status bar, lanes, item cards) ─────── */
.wrap-wide { max-width: 1440px; }
.app {
  margin: 72px 0 0; border-radius: 20px; overflow: hidden; position: relative;
  background:
    radial-gradient(700px 300px at 0% 0%, var(--glow-blue), transparent 70%),
    radial-gradient(600px 300px at 100% 0%, var(--glow-green), transparent 70%),
    var(--canvas);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px color-mix(in oklab, var(--brand-blue) 30%, transparent);
}
.app-top { display: flex; align-items: center; gap: 18px; height: 52px; padding: 0 22px; box-shadow: inset 0 -1px 0 var(--line); font-size: 13.5px; }
.brand-sm .mark { width: 20px; height: 20px; }
.brand-sm .wordmark { width: 86px; height: 15px; }
.brand-sm { gap: 7px; }
.crumbs { font-size: 12.5px; color: var(--ink-faint); }
.crumbs i { font-style: normal; margin: 0 4px; }
.crumbs b { font-weight: 400; color: var(--ink); }
.app-nav { margin-left: auto; display: flex; gap: 22px; color: var(--ink-muted); }
.app-nav .on { color: var(--ink); box-shadow: 0 1.5px 0 var(--ink); padding-bottom: 2px; }
.app-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-muted); }

.pulse { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 40px; padding: 26px 26px 22px; }
.pulse-title { display: flex; flex-direction: column; gap: 4px; }
.pulse-title .mono { font-size: 12.5px; }
.pulse-title strong { font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.pulse-stats { display: flex; gap: 34px; margin: 0; padding-bottom: 2px; }
.pulse-stats div { display: flex; flex-direction: column; }
.pulse-stats dd { margin: 0; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.pulse-stats dt { margin-top: 7px; font-size: 12.5px; color: var(--ink-muted); }
.pulse-stats .sig dd { color: var(--signal); }
.sbar { flex: 1; min-width: 16rem; padding-bottom: 4px; }
.sbar-track { display: flex; gap: 3px; height: 8px; }
.sbar-track span { border-radius: 2px; background-image: var(--grad); transition: flex .8s var(--ease); }
.sbar-labels { display: flex; gap: 3px; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.sbar-labels span { height: 1lh; overflow: hidden; white-space: nowrap; transition: flex .8s var(--ease); }

.board {
  display: grid; gap: 10px; padding: 0 22px 22px;
  grid-template-columns: 44px repeat(5, minmax(200px, 1fr)) 44px;
  overflow-x: auto; scrollbar-width: none;
}
.board::-webkit-scrollbar { display: none; }
.col { background: var(--surface-1); border-radius: var(--r-panel); padding: 8px; height: 500px; overflow: hidden; position: relative; }
.col::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(transparent, var(--surface-1)); pointer-events: none; }
.col-head { padding: 8px 8px 12px; }
.col-name { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.col-name b { font-weight: 600; line-height: 1.2; }
.col-name .n { color: var(--ink-muted); font-size: 13px; }
.col-name .lim { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.col-name .pt { flex-shrink: 0; margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; }
.col-policy { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-policy img { width: 14px; height: 14px; border-radius: 50%; }
.col-policy b { font-weight: 400; color: var(--ink-muted); }
.col-note { padding: 2px 8px 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.col-cards { display: flex; flex-direction: column; gap: 8px; }
.col-name .fold, .col.collapsed .fold { font-family: var(--font-mono); font-size: 12px; letter-spacing: -.1em; color: var(--ink-faint); }
.col-name .fold { margin-left: 4px; }
.col-policy .nb { font-size: 13px; color: var(--ink-muted); }
.col-empty { padding: 4px 8px; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }

.col.collapsed { padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.col.collapsed::after { display: none; }
.col.collapsed .n { font-family: var(--font-mono); font-size: 13px; }
.col.collapsed .v { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 14px; font-weight: 600; }
.col.collapsed .v small { font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--ink-faint); margin-top: 10px; }
.col.collapsed .bump { animation: bump .8s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); color: var(--done); } }

.card { background: var(--surface-2); border-radius: var(--r-card); padding: 14px; animation: cardIn .6s var(--ease) both; }
.card.fresh { animation: cardIn .6s var(--ease) both, fresh 2.4s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes fresh { 0%, 30% { box-shadow: 0 0 0 1.5px color-mix(in oklab, var(--brand-teal) 70%, transparent); } 100% { box-shadow: 0 0 0 1.5px transparent; } }
.card-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.card-meta .k.hot { color: var(--ink); }
.card-meta { align-items: center; }
.card-meta .rank { color: var(--ink); font-weight: 600; }
.card-meta .epic { padding: 0 5px; border-radius: 4px; background: var(--surface-3); color: var(--ink-muted); }
.card-meta .flag { color: var(--ink-muted); }
.card-meta .reorder { margin-left: auto; display: inline-flex; gap: 1px; padding: 1px 3px; border-radius: 6px; background: var(--surface-3); font-style: normal; }
.card-meta .reorder i { font-style: normal; width: 13px; text-align: center; color: var(--ink-faint); }
.card-line.ok { display: flex; gap: 6px; }
.card-line.ok .tick { color: var(--done); }
.card-foot .more { margin-left: 4px; color: var(--ink-muted); }
.card-title { margin-top: 6px; font-size: 14.5px; line-height: 1.38; font-weight: 500; letter-spacing: -.012em; }
.card-line { margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }
.card-line b { font-weight: 500; color: var(--ink); }
.card-line.wait .w { font-weight: 500; color: var(--signal); }
.card-line.wait .sigdot { margin-right: 6px; vertical-align: 1px; }
h3 > .sigdot { margin-right: 4px; vertical-align: .2em; }
.card-line.live { display: flex; align-items: center; gap: 6px; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; }
.card-foot .pts { padding: 2px 6px; border-radius: 5px; background: var(--surface-3); }
.card-foot .risk { color: var(--ink); }
.card-foot .risk.lo { color: var(--ink-faint); }
.card-foot .stack { margin-left: auto; }

.stack { display: flex; }
.av { position: relative; width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-2); background: var(--surface-3) center / cover; flex-shrink: 0; }
.stack .av + .av { margin-left: -6px; }
.av .rt { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--surface-2); }

.glyph { display: inline-flex; color: var(--ink); }
.glyph svg { display: block; }

.board-foot { padding: 14px 4px 0; text-align: right; }
.board-note { font-size: 12px; color: var(--ink-faint); }

/* Trusted-by row: --h is each logo's optical height, so marks and wordmarks sit level. */
.trusted { margin-top: 72px; text-align: center; }
.trusted-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 64px; }
.logos li { display: flex; align-items: center; gap: 8px; height: 36px; }
/* Grey by default; on hover the brand layers (one mask per colour) fade in over it. */
.logo { position: relative; display: block; height: var(--h); aspect-ratio: var(--ar); }
.logo i { position: absolute; inset: 0; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo > i { background: var(--ink-faint); opacity: .85; transition: opacity .3s var(--ease); }
.logo-c { position: absolute; inset: 0; opacity: 0; transition: opacity .3s var(--ease); }
.logo-c i { background: var(--c); }
.logos li:hover .logo > i { opacity: 0; }
.logos li:hover .logo-c { opacity: 1; }
.c-ow-ring { --c: linear-gradient(165deg, #006eb4 15%, #3c9aad 55%, #6fbd96 90%) 0 0 / 24% 100% no-repeat; }
.c-ow-ink { --c: var(--mark-ink); }
.c-stu-icon, .c-stu-text { --c: #1a4d3a; }
.c-ictu { --c: url("/static/img/logos/ictu-color.svg?v=40c8e2cf6e") center / contain no-repeat; }
.c-kk-plate { --c: #f08325; }
.c-kk-crown { --c: #000; }
.c-kk-text { --c: var(--ink); }
/* Sports Tech United's dark green disappears on the dark canvas: use their lime accent instead. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .c-stu-icon { --c: #d4ff50; }
  :root:not([data-theme="light"]) .c-stu-text { --c: var(--ink); }
}
:root[data-theme="dark"] .c-stu-icon { --c: #d4ff50; }
:root[data-theme="dark"] .c-stu-text { --c: var(--ink); }
@media (max-width: 640px) { .trusted { margin-top: 56px; } .logos { gap: 24px 40px; } .logo { height: calc(var(--h) * .85); } }

@media (max-width: 1000px) {
  .app-nav { display: none; }
  .app-live { margin-left: auto; }
  .board { scroll-snap-type: x mandatory; scroll-padding: 0 22px; }
  .col { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .app { margin-top: 48px; border-radius: 16px; }
  .app-top { padding: 0 14px; gap: 12px; }
  .crumbs { display: none; }
  .pulse { padding: 20px 14px 18px; gap: 16px 24px; }
  .pulse-stats { gap: 22px; }
  .board { padding: 0 14px 14px; grid-template-columns: 44px repeat(5, 240px) 44px; }
}

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 120px 0; }
.section-head { margin-bottom: 56px; }
@media (max-width: 640px) { .section { padding: 80px 0; } .hero { padding-top: 56px; } }

/* Status line in the app's own voice: glyph plus a plain sentence. */
.state { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 15px; color: var(--ink-muted); }
.state svg { flex-shrink: 0; color: var(--ink); }
.state b { color: var(--ink); font-weight: 500; }
.state b.mono { font-size: 14px; }

/* Problem */
.question { margin: 56px 0 0; padding: 0; max-width: 900px; }
.question p { font-size: clamp(24px, 3vw, 36px); line-height: 1.25; letter-spacing: -.03em; font-weight: 500; }
.question cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); }
/* Problem: what each tool answers */
/* Full-width bands alternate with the canvas, so sections break without lines.
   Inside a band, surface-1 panels step up one layer so they stay visible. */
.band { background: var(--band); --surface-1: var(--band-card); }
.problem { padding: 104px 0; }
.problem + .section { padding-top: 112px; }
@media (max-width: 640px) { .problem { padding: 72px 0; } .problem + .section { padding-top: 80px; } }
.gap { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gap li { display: grid; grid-template-rows: auto 1fr; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 22px; border-radius: var(--r-panel); background: var(--band-card); }
.gap-tool { grid-column: 1; font-size: 12px; color: var(--ink-faint); }
.gap-q { grid-column: 1; font-size: 17px; line-height: 1.35; font-weight: 500; letter-spacing: -.015em; }
.gap-a { grid-column: 2; grid-row: 1 / 3; align-self: start; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in oklab, var(--ink) 8%, transparent); font-size: 14px; }
.gap-a.ok { color: var(--done); }
.gap li.open { background: var(--band-card); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--signal-mark) 70%, transparent); }
.gap li.open .gap-a { background: var(--signal-mark); color: #0b1a05; font-weight: 600; }
@media (max-width: 800px) { .gap { grid-template-columns: 1fr; } }

/* How: the layer diagram under the heading. Three equal cards on one track; the
   middle card is the gate (gradient edge, soft glow), a dot travels along the track. */
.layers { --gap: 32px; position: relative; list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.layers::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--grad); opacity: .55; }
.layers::after { content: ""; position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brand-teal); box-shadow: 0 0 10px var(--brand-teal); opacity: 0; }
.layers li { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-panel); }
.layers li.mid { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box; border-color: transparent; box-shadow: 0 24px 60px -28px color-mix(in oklab, var(--brand-teal) 60%, transparent); }
.ly-step { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); }
.layers li.mid .ly-step { color: var(--brand-teal); }
.ly-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -.015em; }
.ly-what { font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
@media (max-width: 800px) {
  .layers { --gap: 20px; grid-template-columns: 1fr; }
  .layers::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(var(--brand-blue), var(--brand-teal) 55%, var(--brand-green)); }
  .layers::after { left: 50%; top: 0; margin: -3px 0 0 -3px; }
}

/* Micro animations for the gap tiles and the layer diagram (start when revealed). */
.js .gap li, .js .layers li { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .gap.in li, .js .layers.in li { opacity: 1; transform: none; }
.gap li:nth-child(2), .layers li:nth-child(2) { transition-delay: .15s; }
.gap li:nth-child(3), .layers li:nth-child(3) { transition-delay: .3s; }
.js .gap-a { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.gap.in .gap-a { transform: scale(1); }
.gap li:nth-child(1) .gap-a { transition-delay: .45s; }
.gap li:nth-child(2) .gap-a { transition-delay: .65s; }
.gap li:nth-child(3) .gap-a { transition-delay: .95s; }
.gap.in li.open .gap-a { animation: ask 2.6s ease-in-out 1.6s infinite; }
@keyframes ask { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal-mark) 55%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
.layers li.mid .mark { transition: transform .6s var(--ease); }
.layers li.mid:hover .mark { transform: rotate(-8deg) scale(1.08); }
.layers.in::after { animation: travel 4.5s ease-in-out 1s infinite; }
@keyframes travel { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes travel-v { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@media (max-width: 800px) { .layers.in::after { animation-name: travel-v; } }
@media (prefers-reduced-motion: reduce) { .js .gap-a { transform: none; } .js .gap li, .js .layers li { opacity: 1; transform: none; } .layers.in::after { animation: none; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feature { background: var(--surface-1); border-radius: var(--r-panel); padding: 28px; display: flex; flex-direction: column; gap: 4px; overflow: hidden; transition: background .3s; }
.feature:hover { background: var(--surface-2); }
.feature p { color: var(--ink-muted); }
.f-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.f-tall { grid-row: span 2; }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } .f-tall { grid-row: auto; } }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } .f-wide { grid-column: auto; grid-template-columns: 1fr; } }

.mcp { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: repeat(3, 1fr); align-items: center; min-height: 170px; }
.mcp-node { grid-column: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 500; z-index: 1; justify-self: start; }
.mcp-node img { width: 20px; height: 20px; border-radius: 50%; }
.faint-node { color: var(--ink-faint); font-weight: 400; padding-left: 12px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.mcp-lines { grid-column: 2; grid-row: 1 / 4; width: 100%; height: 100%; }
.mcp-lines path { fill: none; stroke: var(--brand-teal); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow 1.2s linear infinite; vector-effect: non-scaling-stroke; }
.mcp-lines path.dashed { stroke: var(--ink-faint); opacity: .5; animation: none; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.mcp-hub { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: var(--r-card); background: var(--surface-2); font-size: 11px; color: var(--ink-faint); }
.mcp-hub .mark { width: 34px; height: 34px; }

.team { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.team li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-card); background: var(--surface-2); font-size: 14px; }
.team .av { width: 30px; height: 30px; }
.team .who b { display: block; font-weight: 500; }
.team .who span { font-size: 12.5px; color: var(--ink-muted); }
.team .lane-tag { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }

.decision { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.decision-row { display: flex; align-items: center; gap: 10px; background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-card); font-size: 13.5px; }
.decision-row.refused { justify-content: space-between; font-size: 11.5px; color: var(--ink-faint); background: var(--canvas); flex-wrap: wrap; }
.refuse { color: var(--signal); }

.flow { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.flow-row { display: grid; grid-template-columns: 96px 1fr 56px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-muted); }
.flow-row .mono { text-align: right; color: var(--ink); font-size: 12px; }
.wip { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.wip i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width 1.4s var(--ease); }
.in .wip i { width: var(--w); }

.commit { margin: auto 0 0; padding: 14px; border-radius: var(--r-card); background: var(--canvas); font-size: 12px; line-height: 1.6; white-space: pre-wrap; color: var(--ink); overflow-x: auto; }
.feature .commit { margin-top: 18px; }
.derive { list-style: none; margin: auto 0 0; padding: 14px; border-radius: var(--r-card); background: var(--canvas); display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--ink-muted); }
.feature .derive { margin-top: 18px; }
.derive li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 10px; }
.derive b { font-weight: 500; color: var(--ink); }
.derive li.res { display: block; padding-top: 8px; box-shadow: inset 0 1px 0 var(--line); color: var(--done); }
.c-hash { color: var(--ink-faint); }
.c-key { color: var(--brand-teal); }
.c-ok { color: var(--done); }

.infra { margin-top: auto; padding-top: 18px; }
.infra-box { display: block; font-size: 11px; color: var(--ink-faint); padding: 14px 14px 0; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--canvas); }
.infra-row { display: flex; gap: 6px; padding: 10px 14px 14px; background: var(--canvas); border-radius: 0 0 var(--r-card) var(--r-card); }
.infra-row .chip:first-child { background: var(--ink); color: var(--canvas); }

/* Chain */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; position: relative; }
.chain li { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: var(--r-card); background: var(--surface-1); transition: background .5s, transform .5s var(--ease); }
.chain li .glyph { margin-bottom: 12px; }
.chain li b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.chain li span:not(.glyph) { font-size: 12.5px; color: var(--ink-muted); }
.chain li.on { background: var(--surface-2); transform: translateY(-3px); }
.chain li.human .glyph { color: var(--signal-mark); }
.chain li.human b { color: var(--signal); }
.chain li.human.on { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--signal-mark) 60%, transparent); }
.chain-track { margin-top: 14px; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.chain-track span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .6s var(--ease); }
/* The delivery cycle in #how reuses the chain card: eight stages, planned ones outlined and labelled (text, not colour alone). */
.chain.cycle { margin-top: 36px; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.chain li.planned { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.chain li .tag-planned { align-self: flex-start; margin-top: 2px; padding: 1px 7px; border-radius: var(--r-chip); background: var(--surface-3); color: var(--ink-muted); font-size: 10.5px; font-weight: 500; vertical-align: 1px; }
.where-head { margin: 48px 0 0; }
.where-head + .layers { margin-top: 18px; }
@media (max-width: 1000px) { .chain, .chain.cycle { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .chain, .chain.cycle { grid-template-columns: 1fr 1fr; } }

/* Governance */
.gov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gov-list { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.gov-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; color: var(--ink-muted); }
.gov-list b { color: var(--ink); display: block; font-size: 17px; letter-spacing: -.015em; margin-bottom: 2px; }
.gov-list .n { color: var(--ink); padding-top: 4px; }
@media (max-width: 900px) { .gov-grid { grid-template-columns: 1fr; } }

.terminal { margin: 0; position: sticky; top: 96px; border-radius: var(--r-panel); background: #06090d; color: #e8eef3; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 100px -40px rgba(0,0,0,.6); }
.term-head { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #0c1015; font-size: 12px; }
.term-head .faint { color: #67747f; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #1d232a; }
.term-tag { margin-left: auto; color: #d9ff4d; font-size: 11px; }
.term-body { margin: 0; padding: 20px; min-height: 380px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; color: #95a2ae; }
.term-body .p { color: #e8eef3; }
.term-body .x { color: #ff8f7a; }
.term-body .ok { color: #57d3a4; }
.term-body .s { color: #d9ff4d; }
.term-body .cur { display: inline-block; width: 8px; height: 15px; background: #e8eef3; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }


/* Who */
.who-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; padding: 22px 0; box-shadow: inset 0 1px 0 var(--line); }
.who-list li:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.who-list h3 { margin: 0; }
.who-list p { color: var(--ink-muted); }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) { .who-list li { grid-template-columns: 1fr; gap: 6px; } }

/* Dogfood */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.stat { background: var(--surface-1); border-radius: var(--r-panel); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.stat-n { font-size: clamp(34px, 4vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stat-l { color: var(--ink-muted); font-size: 14px; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Metrics preview: the board's team-member metrics with example data (heatmap as SdmWeb.UI.Chart). */
.mx { margin-top: 12px; padding: 20px; border-radius: 20px; background: var(--surface-1); }
.mx-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.mx-title { display: flex; align-items: baseline; gap: 10px; }
.mx-title b { font-size: 16px; }
.mx-title .mono { font-size: 11px; color: var(--ink-faint); }
.mx-who { display: flex; flex-wrap: wrap; gap: 6px; }
.mx-who button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; font-size: 13px; color: var(--ink-muted); background: var(--surface-2); transition: background .15s, color .15s; }
.mx-who button:hover { color: var(--ink); }
.mx-who button[aria-selected="true"] { background: var(--ink); color: var(--canvas); }
.mx-who button:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.mx-who img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.mx-prof { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; margin: 4px 0 18px; padding: 4px; }
.mx-av { position: relative; display: block; flex: none; width: 64px; height: 64px; }
.mx-av > img:first-child { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.mx-av .rt, .mx-av .on { position: absolute; bottom: 0; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--surface-1); }
.mx-av .rt { left: 0; background: var(--surface-1); }
.mx-av .on { right: 0; background: var(--done); }
.mx-id { flex: 1 1 220px; min-width: 0; }
.mx-id .mono { font-size: 11.5px; color: var(--ink-faint); }
.mx-id h3 { margin: 2px 0 0; font-size: 32px; line-height: 1.05; font-weight: 600; letter-spacing: -.04em; }
.mx-id .role { margin-top: 4px; font-size: 15px; color: var(--ink-muted); }
.mx-id .live { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--ink); }
.mx-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 28px; margin: 0; padding: 16px 22px; border-radius: var(--r-panel); background: var(--surface-2); }
.mx-stats dd { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.mx-stats dt { font-size: 12px; color: var(--ink-muted); }
.mx-explain { margin: 0; padding-top: 12px; box-shadow: inset 0 1px 0 var(--line); font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
@media (max-width: 640px) { .mx-stats { grid-template-columns: repeat(2, auto); width: 100%; } .mx-id h3 { font-size: 26px; } }
.mx-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.mx-side { display: grid; gap: 12px; }
.mx-tile { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-panel); background: var(--surface-2); min-width: 0; }
.mx-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.mx-h .mono { font-size: 11.5px; color: var(--ink-faint); text-align: right; }
.mx-plan { padding: 1px 7px; border-radius: var(--r-chip); box-shadow: inset 0 0 0 1px var(--line); }
.mx-big { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.mx-big > div { display: flex; flex-direction: column; gap: 4px; }
.mx-big b { font-size: 32px; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.mx-big span { font-size: 13px; color: var(--ink-muted); }
.mx-heat { display: block; width: 100%; max-width: 440px; height: auto; }
.mx-heat text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-muted); }
.mx-heat .s0, .mx-leg .s0 { fill: var(--surface-3); background: var(--surface-3); }
.mx-heat .s1, .mx-leg .s1 { fill: color-mix(in oklab, var(--done) 22%, var(--surface-2)); background: color-mix(in oklab, var(--done) 22%, var(--surface-2)); }
.mx-heat .s2, .mx-leg .s2 { fill: color-mix(in oklab, var(--done) 45%, var(--surface-2)); background: color-mix(in oklab, var(--done) 45%, var(--surface-2)); }
.mx-heat .s3, .mx-leg .s3 { fill: color-mix(in oklab, var(--done) 72%, var(--surface-2)); background: color-mix(in oklab, var(--done) 72%, var(--surface-2)); }
.mx-heat .s4, .mx-leg .s4 { fill: var(--done); background: var(--done); }
.mx-heat .now { stroke: var(--ink-muted); stroke-width: 1.25; stroke-dasharray: 2 2; }
.mx-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 11px; color: var(--ink-muted); }
.mx-leg span { display: inline-flex; align-items: center; gap: 5px; }
.mx-leg .u { font-family: var(--font-sans); }
.mx-leg i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.mx-leg i.now { box-sizing: border-box; border: 1.25px dashed var(--ink-muted); background: transparent; }
.mx-leg i.in { height: 6px; background: color-mix(in oklab, var(--ink) 34%, transparent); }
.mx-leg i.out { height: 6px; background: var(--ink); }
.mx-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.mx-bars span { flex: 1 1 0; display: flex; flex-direction: column-reverse; gap: 2px; min-height: 4px; }
.mx-bars i { display: block; border-radius: 3px; }
.mx-bars.vel i { background: color-mix(in oklab, var(--ink) 30%, transparent); }
.mx-bars.vel span:nth-last-child(2) i { background: var(--ink); }
.mx-bars.tok i:first-child { background: color-mix(in oklab, var(--ink) 34%, transparent); }
.mx-bars.tok i:last-child { background: var(--ink); }
.mx-bars span.cur { opacity: .45; }
.mx-note { margin: 14px 2px 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-faint); }
@media (max-width: 900px) { .mx-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .mx { padding: 12px; border-radius: 16px; } .mx-tile { padding: 16px; } .mx-big b { font-size: 26px; } .mx-h { flex-direction: column; gap: 2px; } .mx-h .mono { text-align: left; } }

/* Working now, as on the board: one card per team member, one row per run. */
.wn { margin: 12px 0 0; padding: 20px; border-radius: 20px; background: var(--surface-1); }
.wn-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin: 0 4px 14px; font-size: 15px; color: var(--ink-muted); }
.wn-h .mono { font-size: 12px; color: var(--ink-faint); }
.wn-cols { columns: 2 340px; column-gap: 12px; }
.wn-g { break-inside: avoid; margin-bottom: 12px; padding: 14px; border-radius: var(--r-panel); background: var(--surface-2); }
.wn-who { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.wn-av { position: relative; display: block; flex: none; width: 40px; height: 40px; }
.wn-av > img:first-child { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-3); }
.wn-av .rt, .wn-av .on { position: absolute; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-2); }
.wn-av .rt { left: -1px; background: var(--surface-1); }
.wn-av .on { right: -1px; background: var(--done); }
.wn-av .cnt { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--surface-2); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-family: var(--font-mono); font-size: 10px; line-height: 16px; text-align: center; }
.wn-who b { display: block; font-size: 15px; font-weight: 600; }
.wn-who span { font-size: 13px; color: var(--ink-muted); }
.wn-run { display: flex; flex-direction: column; gap: 4px; margin-left: 52px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.wn-run.hl { background: var(--surface-3); }
.wn-r1, .wn-r2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wn-r1 > img { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.wn-run .p { flex: none; padding: 0 5px; border-radius: 4px; background: var(--ink); color: var(--canvas); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; }
.wn-run .k { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.wn-run .t { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-r2 { justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.wn-r2 .tool { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wn-r2 .since { flex: none; white-space: nowrap; }
@media (max-width: 560px) { .wn { padding: 12px; } .wn-run { margin-left: 0; } .wn-r2 { flex-wrap: wrap; gap: 2px 8px; } }

/* CTA */
.cta-panel { text-align: center; padding: 80px 32px; border-radius: 24px; background: var(--surface-1); position: relative; overflow: hidden; }
.cta-panel::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, var(--glow-blue), transparent), radial-gradient(closest-side at 70% 60%, var(--glow-green), transparent); pointer-events: none; }
.cta-panel > * { position: relative; }
.cta-panel .h2 { margin: 0 auto; max-width: none; text-wrap: balance; }
.cta-panel .sub { margin: 20px auto 34px; }
@media (max-width: 640px) { .cta-panel { padding: 56px 20px; } }

/* Footer */
.footer { margin-top: 40px; padding: 72px 0 40px; background: var(--band); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 16px; max-width: 30ch; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.footer .mark { width: 28px; height: 28px; }
.footer .wordmark { width: 112px; height: 20px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col h3 { margin: 0 0 4px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.foot-col a { color: var(--ink-muted); text-decoration: none; transition: color .15s; }
.foot-col a:hover { color: var(--ink); }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; font-size: 12px; color: var(--ink-faint); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }


/* Eyebrow above the hero title */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 4px 14px 4px 4px; border-radius: 999px; background: color-mix(in oklab, var(--surface-2) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--ink-muted); text-decoration: none; transition: color .15s, background .15s; }
.eyebrow:hover { color: var(--ink); background: var(--surface-2); }
.eyebrow .eb-short { display: none; }
@media (max-width: 640px) { .eyebrow .eb-long { display: none; } .eyebrow .eb-short { display: inline; } }
.eb-tag { padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--canvas); font-size: 11.5px; }
.state a, .sub a { color: var(--ink); }

/* Roadmap: rows are tracks, columns are horizons derived from board status. */
.roadmap { position: relative; }
.rm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.rm-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-filter button { all: unset; cursor: pointer; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--ink-muted); background: var(--surface-1); transition: background .15s, color .15s; }
.rm-filter button:hover { color: var(--ink); background: var(--surface-2); }
.rm-filter button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.rm-filter button:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }

.rm { --label: 220px; position: relative; border-radius: 20px; background: var(--surface-1); padding: 10px; overflow: hidden; isolation: isolate; }
.rm-cols, .rm-row { display: grid; grid-template-columns: var(--label) repeat(4, minmax(0, 1fr)); gap: 8px; }
.rm-cols { padding: 12px 0 10px; font-size: 11.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; }
.rm-cols > span { padding: 0 12px; }
.rm-cols .now { position: relative; color: var(--ink); }
.rm-cols .today { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--done); vertical-align: 1px; animation: pulse 2.4s infinite; }

.rm-row { position: relative; padding: 8px 0; box-shadow: inset 0 1px 0 var(--line); transition: opacity .4s var(--ease); }
.rm-row.dim { opacity: .28; }
.rm-track { padding: 12px; }
.rm-track .k { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
.rm-track h3 { margin: 4px 0 6px; font-size: 17px; }
.rm-track p { font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); }
.rm-track .hero-tag { display: inline-block; margin-top: 10px; padding: 2px 8px; border-radius: var(--r-chip); background: color-mix(in oklab, var(--signal-mark) 22%, transparent); color: var(--signal); font-family: var(--font-mono); font-size: 11px; }
.rm-cell { display: flex; flex-direction: column; gap: 6px; padding: 4px; border-radius: var(--r-card); min-width: 0; }
.rm-cell.c-now { background: color-mix(in oklab, var(--surface-2) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--done) 30%, transparent); }
.rm-cell .h { display: none; }
.rm-cell .empty { padding: 10px; font-size: 12.5px; color: var(--ink-faint); }
.ms { display: grid; grid-template-columns: 14px 1fr; gap: 4px 9px; padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; line-height: 1.4; transition: transform .3s var(--ease), box-shadow .3s; }
.ms:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -18px color-mix(in oklab, var(--ink) 60%, transparent); }
.ms svg { margin-top: 2px; color: var(--ink); }
.ms .mk { grid-column: 2; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.c-shipped .ms { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-muted); }
.c-later .ms { background: color-mix(in oklab, var(--surface-2) 55%, transparent); }

/* The lighthouse: a soft band of light sweeps across the roadmap. */
.rm-beam { position: absolute; inset: -20% auto -20% 0; width: 38%; pointer-events: none; z-index: -1;
  background: linear-gradient(100deg, transparent, color-mix(in oklab, var(--brand-teal) 14%, transparent) 45%, color-mix(in oklab, var(--brand-green) 18%, transparent) 55%, transparent);
  filter: blur(18px); transform: translateX(-110%) skewX(-12deg); animation: sweep 9s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes sweep { 0% { transform: translateX(-110%) skewX(-12deg); } 65%, 100% { transform: translateX(310%) skewX(-12deg); } }
.rm-note { margin-top: 14px; }

/* Maintainability preview from the SDM-0527 mock: stars share one brand gradient across the row. */
.mq { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 9px; max-width: 260px; }
.mq-sys { display: flex; align-items: center; gap: 10px; }
.mq-sys .mono { font-size: 22px; font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.mq-prop { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--ink); }
.mq-prop .mono { font-size: 11.5px; color: var(--ink-muted); }
.mq-bar { grid-column: 1 / -1; display: flex; gap: 2px; height: 6px; }
.mq-bar i { display: block; background: var(--ink); }
.mq-bar i:first-child { border-radius: 2px 0 0 2px; } .mq-bar i:last-child { border-radius: 0 2px 2px 0; }
.mq-bar .b0 { opacity: .16; } .mq-bar .b1 { opacity: .36; } .mq-bar .b2 { opacity: .64; } .mq-bar .b3 { opacity: 1; }
.mq-note { margin: 0; font-size: 11px; line-height: 1.4; color: var(--ink-faint); }
.mq-stars { --s: 12px; --g: 2px; display: inline-flex; gap: var(--g); }
.mq-stars.lg { --s: 20px; --g: 3px; }
.mq-stars i { display: block; width: var(--s); height: var(--s); background: color-mix(in oklab, var(--ink) 22%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.3 6.9 1-5 4.9 1.2 6.9L12 17.6l-6.2 3.3L7 14l-5-4.9 6.9-1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l3.1 6.3 6.9 1-5 4.9 1.2 6.9L12 17.6l-6.2 3.3L7 14l-5-4.9 6.9-1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mq-stars i.on { background: var(--grad); background-size: calc(5 * (var(--s) + var(--g))) 100%; }
.mq-stars i.on:nth-child(2) { background-position: calc(-1 * (var(--s) + var(--g))) 0; }
.mq-stars i.on:nth-child(3) { background-position: calc(-2 * (var(--s) + var(--g))) 0; }
.mq-stars i.on:nth-child(4) { background-position: calc(-3 * (var(--s) + var(--g))) 0; }
.mq-stars i.on:nth-child(5) { background-position: calc(-4 * (var(--s) + var(--g))) 0; }

/* The roadmap item a preview belongs to gets a quiet brand outline. */
.ms.hl { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand-teal) 50%, transparent); }
.ms.hl .mk b { font-weight: 500; color: var(--ink-muted); }

/* Shared preview head: a small label with a mono count on the right. */
.pv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink); }
.pv-head .mono { font-size: 11px; font-weight: 400; color: var(--ink-faint); }

/* Token usage from the SDM-0606 mock: fresh tokens per persona, cache kept apart. */
.tk { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 4px 8px; font-size: 12px; }
.tk img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.tk .nm { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.tk .nm small { font-size: 9.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk .n { font-size: 11px; color: var(--ink-muted); }
.tk-bar { grid-column: 2 / -1; display: flex; gap: 2px; height: 4px; }
.tk-bar i { display: block; border-radius: 2px; }
.tk-bar .in, .pv-leg .in { background: color-mix(in oklab, var(--ink) 34%, transparent); }
.tk-bar .out, .pv-leg .out { background: var(--ink); }
.tk-bar .rest { background: transparent; }
.pv-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; color: var(--ink-faint); }
.pv-leg span { display: inline-flex; align-items: center; gap: 4px; }
.pv-leg i { display: inline-block; width: 8px; height: 4px; border-radius: 2px; }
.pv-leg .c { flex-basis: 100%; }

/* Live after Done from the SDM-0614 mock: a fact on the card, never the pulsing work dot. */
.lv { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 9px; border-radius: 8px; background: var(--surface-1); font-size: 12px; line-height: 1.3; }
.lv .k { grid-column: 1; grid-row: 1; align-self: center; font-size: 10px; color: var(--ink-faint); }
.lv .t { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.lv-badge { grid-column: 2; grid-row: 1; align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px; border-radius: var(--r-chip); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: 10px; color: var(--ink); white-space: nowrap; }
.lv-badge svg { color: var(--done); }
.lv.gone .t, .lv.gone .lv-badge { color: var(--ink-faint); }
.lv.gone .lv-badge svg { color: var(--ink-faint); }

/* Review verdict bound to a revision (SDM-0329): a new commit makes the verdict not apply, and landing is refused. */
.mq + .mq { margin-top: 10px; }
.rv { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; padding: 7px 9px; border-radius: 8px; background: var(--surface-1); font-size: 11.5px; }
.rv .sha { font-size: 11px; color: var(--ink); }
.rv-st { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--ink-muted); }
.rv-st svg { flex: none; }
.rv.ok .rv-st svg { color: var(--done); }
.rv.gone .sha { color: var(--ink-muted); }
.rv.gone .rv-st { color: var(--ink-faint); }
.rv-step { padding-left: 9px; font-size: 10px; color: var(--ink-faint); }
.rv-land { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; padding: 7px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 10.5px; color: var(--ink-muted); }
.rv-land b { font-weight: 600; color: var(--ink); }

/* Decision domain from the SDM-0608 mock: the signal dot means it waits on a person. */
.pv-head .wait { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--signal-mark); vertical-align: 1px; }
.dc { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border-radius: 8px; background: var(--surface-1); }
.dc-eb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 10px; color: var(--ink-faint); }
.dc-dom { padding: 1px 6px; border-radius: var(--r-chip); box-shadow: inset 0 0 0 1px var(--line); font-size: 10px; color: var(--ink); }
.dc p { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--ink); }
.dc-act { display: flex; justify-content: flex-end; gap: 6px; font-size: 11px; }
.dc-act span { padding: 3px 9px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-muted); }
.dc-act .ok { background: var(--ink); color: var(--canvas); box-shadow: none; }

@media (max-width: 1100px) and (min-width: 761px) {
  .rm-cols { display: none; }
  .rm-row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 0 14px; }
  .rm-track { grid-column: 1 / -1; padding-bottom: 4px; }
  .rm-cell .h { display: block; padding: 8px 6px 2px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
  .rm-cell.c-now .h { color: var(--ink); }
  .rm-beam { width: 70%; }
}
/* Phones: the roadmap scrolls sideways like the board, with the horizons as column heads. */
@media (max-width: 760px) {
  .rm { padding: 6px; border-radius: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 6px; scrollbar-width: none; }
  .rm::-webkit-scrollbar { display: none; }
  .rm-cols, .rm-row { width: max-content; grid-template-columns: 236px repeat(4, 248px); }
  .mq { max-width: 100%; }
  .mq-sys .mono { font-size: 19px; }
  .mq-stars.lg { --s: 17px; }
  .mq-prop { grid-template-columns: auto 1fr; }
  .mq-prop > span:first-child { grid-column: 1 / -1; }
  .rm-cols > span, .rm-track { scroll-snap-align: start; }
  .rm-cell { scroll-snap-align: start; }
  .rm-beam { width: 60%; }
}

/* Pricing: three offers, the licence first and outlined with the brand gradient. */
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.price-head { max-width: 680px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; border-radius: var(--r-panel); background: var(--surface-1); }
.price.feat { border: 1.5px solid transparent; background: linear-gradient(var(--surface-1), var(--surface-1)) padding-box, var(--grad) border-box; }
.price-tag { position: absolute; top: -11px; left: 24px; padding: 3px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; }
.price h3 { margin: 0; font-size: 19px; letter-spacing: -.015em; }
.price .per { margin: 6px 0 0; font-size: 12px; color: var(--ink-faint); }
.price .amt { margin: 22px 0 20px; font-size: 30px; font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.price ul { list-style: none; margin: 0 0 26px; padding: 18px 0 0; display: flex; flex-direction: column; gap: 10px; box-shadow: inset 0 1px 0 var(--line); }
.price li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-muted); }
.price li svg { margin-top: 3px; color: var(--done); }
.price .btn { margin-top: auto; align-self: flex-start; }
.price-note { margin-top: 22px; font-size: 13.5px; color: var(--ink-faint); }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; gap: 22px; } }

/* Team: large round portraits, name and role below. Faces are zoomed to the same size;
   Hedde's photo is cropped tighter at the source, so it keeps 100%. */
.crew { list-style: none; margin: 64px auto 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 16px; max-width: 1000px; }
.crew li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.crew-ph { width: 132px; aspect-ratio: 1; border-radius: 50%; margin-bottom: 14px; background: var(--surface-3) center 28% / 128% no-repeat; transition: transform .5s var(--ease); }
.crew li.tight .crew-ph { background-size: cover; background-position: center; }
.crew li.crew-fill .crew-ph { background: none; box-shadow: inset 0 0 0 1.5px var(--surface-3); }
.crew li.crew-fill:hover .crew-ph { transform: none; }
.crew li.is-orch .crew-ph { background-size: 40%; background-position: center; background-color: var(--surface-1); }
.crew li:hover .crew-ph { transform: translateY(-4px); }
.crew b { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.crew-role { margin-top: 2px; font-size: 13px; color: var(--ink-muted); line-height: 1.35; }
.crew-n { margin-top: 6px; font-size: 11px; color: var(--ink-faint); }
.crew-person { color: var(--signal); }
.crew-section .board-note, .dogfood > .wrap > .board-note { margin-top: 40px; }
@media (max-width: 1100px) { .crew { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .crew { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 12px; } .crew-ph { width: 104px; } }
@media (max-width: 480px) { .crew { grid-template-columns: 1fr 1fr; } }

/* ── Reveal on scroll ──────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

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