/* livingbrain.wiki: the whole design system, ported from the Claude Design
   file `Living Brain.dc.html`. Tokens first. The inline script in <head> sets
   <html data-theme> from the stored choice, else the system preference; with
   no script the system preference decides (the media query below), dark by
   default.

   Colours (oklch)        dark                 light
     --bg       page      0.16  0.014 215      0.975 0.006 190
     --bg2      surface   0.195 0.016 215      0.995 0.003 190
     --ink      text      0.95  0.008 200      0.22  0.02  220
     --ink2     body      0.80  0.014 205      0.40  0.02  215
     --ink3     labels    0.68  0.016 210      0.47  0.02  215
     --accent   alive     0.86  0.16  162      0.48  0.11  165
   The accent is reserved for alive moments: pulses, new links, the live node,
   the primary action. Entity colours (--t-*) only label graph nodes.
   Light-theme --ink3, --accent and the entity inks are a little darker than
   the design file so small text clears WCAG AA (see COPY.md, Port notes). */

/* Fonts, self-hosted (OFL; latin subsets, variable). No third-party font requests. */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400 700;font-stretch:100%;font-display:swap;src:url(/assets/fonts/bricolage-grotesque.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/hanken-grotesk.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(/assets/fonts/jetbrains-mono.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1180px;
  --gutter: 20px;
  --sec-pad: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* dark (default) */
  color-scheme: dark;
  --bg: oklch(0.16 0.014 215); --bg2: oklch(0.195 0.016 215); --bg3: oklch(0.235 0.018 215);
  --ink: oklch(0.95 0.008 200); --ink2: oklch(0.8 0.014 205); --ink3: oklch(0.68 0.016 210);
  --line: oklch(0.34 0.018 215); --line2: oklch(0.265 0.016 215); --field-line: oklch(0.5 0.02 215);
  --accent: oklch(0.86 0.16 162); --accent-ink: oklch(0.2 0.05 165); --accent-soft: oklch(0.86 0.16 162 / 0.13);
  --graph-edge: oklch(0.72 0.04 200);
  --t-person: oklch(0.8 0.075 235); --t-project: oklch(0.79 0.075 295); --t-decision: oklch(0.85 0.085 85); --t-customer: oklch(0.8 0.08 25); --t-fact: oklch(0.55 0.02 210);
  --glow: 0 0 10px var(--accent);
  --header-bg: oklch(0.16 0.014 215 / 0.84);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: oklch(0.975 0.006 190); --bg2: oklch(0.995 0.003 190); --bg3: oklch(0.945 0.009 190);
    --ink: oklch(0.22 0.02 220); --ink2: oklch(0.4 0.02 215); --ink3: oklch(0.47 0.02 215);
    --line: oklch(0.84 0.012 200); --line2: oklch(0.9 0.01 200); --field-line: oklch(0.62 0.015 210);
    --accent: oklch(0.48 0.11 165); --accent-ink: oklch(0.99 0.01 165); --accent-soft: oklch(0.48 0.11 165 / 0.1);
    --graph-edge: oklch(0.45 0.03 210);
    --t-person: oklch(0.5 0.11 240); --t-project: oklch(0.48 0.12 300); --t-decision: oklch(0.58 0.12 75); --t-customer: oklch(0.5 0.13 30); --t-fact: oklch(0.72 0.02 210);
    --glow: none;
    --header-bg: oklch(0.975 0.006 190 / 0.86);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: oklch(0.975 0.006 190); --bg2: oklch(0.995 0.003 190); --bg3: oklch(0.945 0.009 190);
  --ink: oklch(0.22 0.02 220); --ink2: oklch(0.4 0.02 215); --ink3: oklch(0.47 0.02 215);
  --line: oklch(0.84 0.012 200); --line2: oklch(0.9 0.01 200); --field-line: oklch(0.62 0.015 210);
  --accent: oklch(0.48 0.11 165); --accent-ink: oklch(0.99 0.01 165); --accent-soft: oklch(0.48 0.11 165 / 0.1);
  --graph-edge: oklch(0.45 0.03 210);
  --t-person: oklch(0.5 0.11 240); --t-project: oklch(0.48 0.12 300); --t-decision: oklch(0.58 0.12 75); --t-customer: oklch(0.5 0.13 30); --t-fact: oklch(0.72 0.02 210);
  --glow: none;
  --header-bg: oklch(0.975 0.006 190 / 0.86);
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .3s; }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--f-mono); font-size: .875em; color: var(--ink); }
input::placeholder { color: var(--ink3); opacity: 1; }
svg text { font-family: var(--f-mono); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
html:not(.js) [data-js-only] { display: none; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 8px; color: var(--accent-ink); }

/* small utilities used inside mocks */
.mono { font-family: var(--f-mono); }
.mono-s { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }
.ink { color: var(--ink); } .ink2 { color: var(--ink2); } .ink3 { color: var(--ink3); }
.accent { color: var(--accent); }
.wl { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---- layout ---- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.sec { border-top: 1px solid var(--line2); }
.sec__in { padding-block: var(--sec-pad); }
.sub { margin-top: clamp(56px, 7vw, 80px); }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); }
.split--center { align-items: center; }
.split__text { flex: 1 1 320px; min-width: 0; }
.pair { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.pair--top { margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.pair--stretch { align-items: stretch; }
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.row-head--center { align-items: center; }

/* ---- type ---- */
.display { font-family: var(--f-display); font-weight: 600; font-size: clamp(46px, 7.6vw, 96px); line-height: .95; letter-spacing: -0.045em; text-wrap: balance; font-variation-settings: 'opsz' 96; }
.eyebrow { margin: 0 0 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.eyebrow-row .eyebrow { margin: 0; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.h2--narrow { max-width: 14ch; }
.h2--mid { max-width: 16ch; }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.h3--sm { font-size: clamp(22px, 3vw, 32px); }
.h4 { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; line-height: 1.2; }
.lede { margin-top: 20px; max-width: 36em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
.lede--sm { margin-top: 14px; font-size: 17px; max-width: 32em; }
.lede--wide { max-width: 40em; }
.cap { margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.cap a { color: var(--ink2); }
.cap--in { margin: 0; padding: 10px 20px 14px; }
.fine { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }

/* ---- components ---- */
.card { background: var(--bg2); border: 1px solid var(--line2); border-radius: 16px; }
.card--xl { border-radius: 18px; }
.card--line { background: transparent; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px dashed var(--line); border-radius: 999px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
.tag--solid { background: var(--bg); }
.dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--c, var(--line)); }
.dot--person { --c: var(--t-person); } .dot--project { --c: var(--t-project); } .dot--decision { --c: var(--t-decision); } .dot--customer { --c: var(--t-customer); }
.live-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), filter .15s, border-color .15s, background-color .15s, box-shadow .2s; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { filter: brightness(1.08); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { cursor: progress; filter: saturate(.6); }
.btn--ghost { height: 44px; padding: 0 16px; border-color: var(--line); color: var(--ink); font-weight: 600; font-size: 15px; }
.btn--ghost:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.btn--ghost:hover .mono { transform: translateY(2px); }
.btn--ghost .mono { transition: transform .2s var(--ease); }

/* ---- header ---- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line2); }
.hd__in { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; border-radius: 6px; }
.brand:hover { color: var(--ink); }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.mark span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); }
.brand__word { font-family: var(--f-display); font-weight: 650; font-size: 19px; letter-spacing: -0.02em; }
.brand__word span { font-family: var(--f-mono); font-weight: 400; font-size: 13px; color: var(--ink3); }
.brand__word--sm { font-size: 17px; color: var(--ink); }
.brand__word--sm span { font-size: 12px; }
.nav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; gap: 4px; white-space: nowrap; font-size: 14px; }
.nav a { padding: 6px 9px; border-radius: 7px; text-decoration: none; color: var(--ink2); }
.nav a:hover { color: var(--ink); background: var(--bg2); }
.theme-btn { flex-shrink: 0; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink2); font-size: 13px; transition: color .15s, border-color .15s; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink3); }
.theme-btn__icon { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
@media (max-width: 720px) {
  .nav { display: none; }
  .hd__in { justify-content: space-between; }
}

/* ---- hero ---- */
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(36px, 6vw, 80px) clamp(56px, 7vw, 96px); }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(calc(100svh - 59px), 860px); }
}
.hero__copy { min-width: 0; max-width: 620px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 28px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--ink2); }
.hero__lede { margin-top: 26px; max-width: 32em; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.hero__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.hero__fig { min-width: 0; width: 100%; max-width: 620px; margin: 0 auto; }
@media (max-width: 899px) { .hero__fig { max-width: 420px; } }

.join-box { margin-top: 34px; max-width: 520px; }
.join { display: flex; flex-wrap: wrap; gap: 10px; }
.join input { flex: 1 1 220px; min-width: 0; height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--field-line); background: var(--bg2); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.join input:hover { border-color: var(--ink3); }
.join input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.join input[aria-invalid="true"] { border-color: var(--t-customer); }
.join .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .join .btn { flex: 1 1 100%; } }
.join__note { margin-top: 10px; font-size: 15px; color: var(--ink2); }
.join__note::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 2px; border-radius: 50%; background: var(--t-decision); }
.joined { padding: 14px 16px; border: 1px solid var(--accent); border-radius: 10px; color: var(--ink); background: var(--accent-soft); }

/* brain frames: a still SVG paints first; the canvas fades in over it */
.brain-frame { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.brain-still, .brain-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.brain-canvas { opacity: 0; transition: opacity 1.2s ease; }
[data-brain="hero"] { touch-action: pan-y; cursor: grab; }
[data-brain="hero"].is-dragging { cursor: grabbing; }
.brain-canvas:focus-visible, .demo__canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.brain-still { transition: opacity 1.2s ease; }
.is-live > .brain-canvas, .is-live .agents-fig__brain { opacity: 1; }
.is-live > .brain-still { opacity: 0; }
.bs-e { fill: none; stroke: var(--graph-edge); stroke-width: .7; }
.bs-e0 { opacity: .08; } .bs-e1 { opacity: .15; } .bs-e2 { opacity: .26; }
:root[data-theme="light"] .bs-e0 { opacity: .12; } :root[data-theme="light"] .bs-e1 { opacity: .2; } :root[data-theme="light"] .bs-e2 { opacity: .32; }
.bs-0 { fill: var(--t-person); } .bs-1 { fill: var(--t-project); } .bs-2 { fill: var(--t-decision); } .bs-3 { fill: var(--t-customer); }
.bs-glow { opacity: .9; }
.bs-s0 { stop-color: var(--t-person); } .bs-s1 { stop-color: var(--t-project); } .bs-s2 { stop-color: var(--t-decision); } .bs-s3 { stop-color: var(--t-customer); }
.tick { position: absolute; width: 16px; height: 16px; border: 0 solid var(--line); }
.tick--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.tick--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.tick--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.tick--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.frame-label { position: absolute; top: 4px; z-index: 1; font-family: var(--f-mono); font-size: 11px; color: var(--ink3); }
.frame-label--l { left: 24px; } .frame-label--r { right: 24px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--ink3); }
.legend > span { display: flex; align-items: center; gap: 6px; }
.legend .dot { width: 8px; height: 8px; }
.legend__link { width: 14px; height: 2px; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.legend__capsule { width: 14px; height: 6px; border-radius: 3px; background: var(--accent); }

/* ---- use it from anywhere ---- */
.where { border-top: 1px solid var(--line2); background: linear-gradient(var(--bg2), var(--bg)); }
.where__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 56px; align-items: center; padding-block: clamp(40px, 6vw, 64px); }
@media (min-width: 900px) { .where__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.where__h { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.where__list { margin-top: 18px; display: grid; gap: 14px; }
.where__list li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 4px 12px; }
.where__name { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.where__name code { font-size: .9em; }
.where__st { justify-self: start; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); padding: 2px 8px; border: 1px dashed var(--line); border-radius: 999px; }
.where__st--first { color: var(--accent); border: 1px solid var(--accent); }
.where__what { color: var(--ink2); font-size: 15px; }
@media (max-width: 640px) { .where__list li { grid-template-columns: auto minmax(0, 1fr); } .where__what { grid-column: 1 / -1; } }
.where__rust { margin-top: 22px; max-width: 36em; color: var(--ink2); line-height: 1.6; }
.where__rust strong { color: var(--ink); font-weight: 600; }
.cli { overflow: hidden; }
.cli__bar, .session__bar, .mdfile__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 47px; padding: 0 18px; border-bottom: 1px solid var(--line2); font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }
.cli__body { padding: 18px 20px 10px; font-family: var(--f-mono); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.cli__gap { height: 10px; }

/* ---- Slack moment ---- */
.slack { flex: 1 1 520px; min-width: 0; overflow: hidden; }
.slack__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.slack__ch { font-weight: 700; font-size: 15px; } .slack__ch span { color: var(--ink3); }
.slack__body { position: relative; padding: 22px 20px 24px 34px; display: flex; flex-direction: column; gap: 20px; }
.slack__trail { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.slack__trail path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.slack__trail circle { fill: var(--accent); }
.msg { position: relative; display: flex; gap: 12px; }
.msg--src { padding: 8px; margin: -8px; border-radius: 10px; }
.msg__hl { position: absolute; inset: 0; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent); }
.msg__body { position: relative; min-width: 0; }
.msg__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg__meta strong { font-size: 15px; }
.msg p { margin-top: 3px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.msg p.msg__answer { color: var(--ink); line-height: 1.55; }
.time { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }
.app { padding: 1px 5px; border-radius: 4px; background: var(--bg3); font-size: 10px; font-weight: 700; color: var(--ink3); }
.unprompted { font-family: var(--f-mono); font-size: 11px; color: var(--accent); }
.avatar { position: relative; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: var(--bg3); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.avatar--lg { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; font-size: 15px; }
.avatar--person { color: var(--t-person); } .avatar--customer { color: var(--t-customer); }
.avatar--bot { border: 1px solid var(--line); }
.avatar--bot span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.avatar--live span { box-shadow: var(--glow); }
.slack__gap { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }
.slack__gap span { flex: 1; height: 1px; background: var(--line2); }
.msg-wrap { position: relative; }
.msg__typing { position: absolute; left: 0; top: 0; display: flex; gap: 12px; align-items: center; opacity: 0; }
.msg__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cite-chip, .wiki-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-family: var(--f-mono); font-size: 12px; text-decoration: none; }
.cite-chip { border: 1px solid var(--accent); color: var(--accent); }
.cite-chip:hover { background: var(--accent-soft); }
.wiki-chip { border: 1px solid var(--line); color: var(--ink2); }

/* ---- how it works ---- */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.step { padding: 20px; transition: border-color .2s; }
.step:hover { border-color: var(--line); }
.step p { margin-top: 8px; color: var(--ink2); line-height: 1.55; text-wrap: pretty; }
.step__h { margin-top: 20px; display: flex; gap: 10px; align-items: baseline; font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.step__h span { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--ink3); }
.step__art { height: 156px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line2); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.step__art--listen { gap: 11px; }
.bar-row { display: flex; gap: 9px; align-items: center; }
.sq { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 5px; }
.sq--person { background: var(--t-person); } .sq--customer { background: var(--t-customer); } .sq--project { background: var(--t-project); }
.bar { height: 9px; border-radius: 5px; background: var(--line); }
.step__out { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.step__art--write { gap: 2px; font-family: var(--f-mono); font-size: 13px; line-height: 1.75; color: var(--ink2); }
.typed { white-space: nowrap; }
.typed--h { color: var(--ink); font-weight: 500; }
.step__art--evolve { padding: 18px 12px; gap: 18px; }
.merge { position: relative; height: 58px; }
.page-mini { position: absolute; top: 0; width: 96px; height: 58px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); padding: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--ink2); }
.page-mini span { display: block; margin-top: 8px; height: 5px; border-radius: 3px; background: var(--line); }
.page-mini--l { left: calc(50% - 104px); } .page-mini--r { left: calc(50% + 8px); }
.page-mini--m { left: calc(50% - 48px); border-color: var(--accent); color: var(--accent); opacity: 0; }
.page-mini--m span { background: var(--accent); }
.spark { position: absolute; left: calc(50% - 16px); top: 13px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; }
.stale { position: relative; display: inline-block; color: var(--ink2); opacity: .4; }
.strike { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink2); transform-origin: left; }

/* SVG infographics share these */
.panel-fig { margin-top: 56px; padding: clamp(14px, 3vw, 28px); }
.scroll-x { overflow-x: auto; scrollbar-width: thin; border-radius: 8px; }
.pipe { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .pipe { min-width: 600px; } }
.lbl { font-size: 14px; letter-spacing: 2px; fill: var(--ink3); text-anchor: middle; }
.box { fill: var(--bg); stroke: var(--line); }
.box--on { stroke: var(--accent); stroke-width: 1.5; }
.ln { fill: var(--line); }
.dash { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 6; }
.edges line { stroke: var(--graph-edge); stroke-width: 1.2; opacity: .5; }
.t-ink { fill: var(--ink); font-size: 15px; } .t-ink2 { fill: var(--ink2); font-size: 15px; } .t-ink3 { fill: var(--ink3); font-size: 15px; } .t-accent { fill: var(--accent); font-size: 15px; }
.s14 { font-size: 14px; } .s12 { font-size: 12px; } .sm { font-size: 13px; }
.mid { text-anchor: middle; } .end { text-anchor: end; }
.f-person { fill: var(--t-person); } .f-project { fill: var(--t-project); } .f-decision { fill: var(--t-decision); } .f-customer { fill: var(--t-customer); } .f-accent { fill: var(--accent); } .f-ink3 { fill: var(--ink3); } .f-bg { fill: var(--bg); }
.ring-pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.hub { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.msg-dot { fill: var(--ink2); }
.doc { fill: var(--accent); }
.doc__b { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.spark-ring { fill: none; stroke: var(--accent); stroke-width: 2; }
.pulse { fill: var(--accent); }
.pulse__halo { opacity: .2; }

.fact-card { margin-top: 26px; padding: 18px 20px; border-radius: 14px; font-family: var(--f-mono); font-size: 13px; max-width: 420px; }
.fact-card__k { font-size: 11px; letter-spacing: .1em; color: var(--ink3); margin-bottom: 12px; }
.fact-card__new { margin-top: 8px; color: var(--ink); }
.fact-card__src { margin-top: 12px; font-size: 11px; color: var(--ink3); }
.loop-fig { flex: 1 1 320px; min-width: 0; max-width: 420px; margin: 0 auto; }
.loop-fig svg { display: block; width: 100%; height: auto; }
.o-line { fill: none; stroke: var(--line); stroke-width: 1.5; }
.o-thin { stroke-width: 1; }
.o-line2 { fill: none; stroke: var(--line2); stroke-width: 1; stroke-dasharray: 2 5; }
.stage { opacity: .35; }
.stage circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.stage text { font-size: 15px; fill: var(--ink); }
/* With no script, or reduced motion, every stage shows. */
html:not(.js) .stage { opacity: 1; }

/* ---- demo ---- */
.demo { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line2); border: 1px solid var(--line2); border-radius: 20px; overflow: hidden; }
.demo__stage { position: relative; flex: 1 1 520px; min-width: 0; height: clamp(380px, 62vh, 600px); background: var(--bg); }
.demo__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; touch-action: none; cursor: grab; }
.demo__canvas.is-dragging { cursor: grabbing; }
.demo.is-live .demo__canvas { display: block; }
.demo.is-live .demo__static { display: none; }
.demo__static { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg__e line { stroke: var(--graph-edge); stroke-width: 1; opacity: .35; }
.sg__n { cursor: pointer; }
.sg__n text { font-size: 11px; fill: var(--ink2); text-anchor: middle; }
.sg__n:hover text { fill: var(--ink); }
.demo__tag { position: absolute; left: 14px; top: 14px; pointer-events: none; }
.demo__hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 14px 12px; background: linear-gradient(to bottom, transparent, var(--bg) 65%); font-family: var(--f-mono); font-size: 11px; color: var(--ink3); pointer-events: none; }
.demo__panel { flex: 1 1 340px; min-width: 0; max-height: clamp(380px, 62vh, 600px); overflow: auto; padding: 22px; background: var(--bg2); }
.panel__path { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); word-break: break-all; }
.md { margin-top: 16px; font-family: var(--f-mono); font-size: 13px; line-height: 1.7; }
.md__l { min-height: 1.7em; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink2); }
.md__l--meta { color: var(--ink3); }
.md__l--head { color: var(--ink); font-weight: 600; }
.md__link { padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; border-radius: 3px; }
.md__link:hover { color: var(--accent); }
.md__cite { color: var(--accent); }
.panel__h { margin: 22px 0 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.srcs { display: grid; gap: 8px; }
.src { padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); }
.src__label { font-family: var(--f-mono); font-size: 11px; color: var(--accent); }
.src p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.types { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.types__h { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin-right: 4px; }
.type-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink3); font-family: var(--f-mono); font-size: 12px; transition: border-color .15s, color .15s, background-color .15s; }
.type-btn:hover { border-color: var(--ink3); color: var(--ink); }
.type-btn[aria-pressed="true"] { color: var(--ink); background: var(--bg2); }
.type-btn[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.jump { margin-top: 18px; }
.jump__h { margin-bottom: 10px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 14px; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--ink3); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

/* ---- features ---- */
.features { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line2); border: 1px solid var(--line2); border-radius: 18px; overflow: hidden; }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) and (max-width: 1099px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } .feat--last { grid-column: span 2; } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat { padding: 26px 24px 30px; background: var(--bg); transition: background-color .2s; }
.feat:hover { background: var(--bg2); }
.feat .num { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }
.feat h3 { margin: 14px 0 8px; font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.feat p { color: var(--ink2); line-height: 1.55; text-wrap: pretty; }
.feat h3 .opt { margin-left: 6px; white-space: nowrap; }

.night { margin-top: clamp(56px, 7vw, 80px); align-items: flex-start; }
.night .tag { margin-top: 18px; }
.timeline { flex: 1 1 420px; min-width: 0; position: relative; }
.timeline > li { display: grid; grid-template-columns: 56px 24px minmax(0, 1fr); padding: 8px 0 18px; }
.timeline > li.is-last { padding-bottom: 0; }
.timeline > .timeline__rail { position: absolute; left: 68px; top: 14px; bottom: 30px; width: 1px; padding: 0; display: block; }
.timeline__rail span { position: absolute; inset: 0; background: var(--line); }
.timeline__rail span + span { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.timeline__t { font-family: var(--f-mono); font-size: 13px; color: var(--ink3); text-align: right; padding-right: 10px; padding-top: 1px; }
.is-last .timeline__t { color: var(--accent); }
.timeline__dot { justify-self: center; width: 11px; height: 11px; margin-top: 5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); position: relative; }
.timeline__dot--live { background: var(--accent); box-shadow: var(--glow); }
.timeline li > div { padding-left: 12px; }
.timeline strong { font-weight: 600; }
.timeline p { margin-top: 2px; color: var(--ink2); font-size: 15px; }

/* ---- coding agents ---- */
.term { overflow: hidden; display: flex; flex-direction: column; }
.tabs { display: flex; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; }
.tab { flex: 0 0 auto; min-height: 46px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink3); font-size: 14px; font-weight: 600; white-space: nowrap; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab:focus-visible { outline-offset: -4px; }
.term__body { flex: 1; padding: 20px; font-family: var(--f-mono); font-size: 13px; line-height: 1.8; min-height: 176px; }
.term__body:focus-visible { outline-offset: -4px; }
.term__l { display: flex; gap: 10px; overflow-wrap: anywhere; }
.term__p { color: var(--accent); flex: 0 0 auto; }
.term__t { min-width: 0; }
.term__t--cmd { color: var(--ink); } .term__t--out, .term__t--com { color: var(--ink3); } .term__t--ok { color: var(--accent); }
.session { overflow: hidden; }
.session__body { padding: 20px; display: grid; gap: 14px; font-family: var(--f-mono); font-size: 13px; line-height: 1.65; }
.session__answer { padding: 12px 14px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent-soft); }
.session__src { margin-top: 8px; font-size: 11px; color: var(--ink2); }

.agents-fig { margin-top: 56px; }
.agents-fig__box { position: relative; width: 100%; aspect-ratio: 1000 / 560; }
@media (max-width: 640px) { .agents-fig__box { min-width: 600px; } }
.agents-fig__brain, .brain-still--agents { position: absolute; left: 30%; top: 8%; width: 40%; height: 84%; display: block; }
.agents-fig__brain { opacity: 0; transition: opacity 1.2s ease; }
.is-live .brain-still--agents { opacity: 0; transition: opacity 1.2s ease; }
.agents-fig__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.back-threads path { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .35; }
.tbox { fill: var(--bg2); stroke: var(--line); }
.redact { filter: blur(5px); opacity: .7; }

.duo { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.duo .card { padding: 24px; }
.duo p { margin-top: 10px; color: var(--ink2); line-height: 1.6; text-wrap: pretty; }
.opt { font-family: var(--f-mono); font-size: 12px; font-weight: 400; color: var(--ink3); letter-spacing: 0; }

.prompts { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.prompt { padding: 18px; border-radius: 14px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s var(--ease); }
.prompt:hover { border-color: var(--line); transform: translateY(-2px); }
.prompt h4 { font-size: 16px; font-weight: 600; line-height: 1.35; }
.prompt__meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }

.profile, .leader { padding: 22px; }
.profile__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile__who { flex: 1; min-width: 0; }
.profile__name { font-weight: 600; }
.progress { margin-top: 20px; position: relative; height: 4px; border-radius: 2px; background: var(--line2); }
.progress div { position: absolute; inset: 0; border-radius: 2px; background: var(--accent); }
.weeks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--ink3); }
.weeks span:last-child { text-align: right; }
.profile__list { margin-top: 18px; display: grid; gap: 10px; }
.profile__list li { display: flex; gap: 12px; align-items: baseline; }
.wk { font-family: var(--f-mono); font-size: 11px; color: var(--ink3); flex: 0 0 22px; }
.profile__act { color: var(--accent); font-family: var(--f-mono); font-size: 12px; }
.leader h4 { font-size: 16px; font-weight: 600; }
.leader__list { margin-top: 18px; position: relative; height: 224px; }
.leader__list li { position: absolute; left: 0; right: 0; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); transition: transform .45s var(--ease); }
.leader__list li.is-top { border-color: var(--accent); }
.leader__dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--line); }
.is-top .leader__dot { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.leader__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader__warn { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); }
.leader__n { font-family: var(--f-mono); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- Colonizer ---- */
.colony { margin-top: 44px; }
.colony__bar { position: relative; height: 2px; border-radius: 1px; background: var(--line2); margin-bottom: 18px; }
.colony__bar div { position: absolute; inset: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); transform-origin: left; }
.colony__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.cstep { padding: 16px; border-radius: 14px; display: flex; flex-direction: column; gap: 10px; }
.cstep--on { border-color: var(--accent); gap: 8px; }
.cstep__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--ink3); }
.cstep__msg { font-size: 14px; line-height: 1.5; }
.cstep__msg strong { font-weight: 600; }
.cstep__msg .mono-s { font-size: 11px; }
.cstep__msg p { margin-top: 4px; font-size: 13px; }
.cstep__note { font-size: 13px; color: var(--ink3); }
.cstep__brief { display: grid; gap: 4px; font-family: var(--f-mono); font-size: 12px; line-height: 1.5; color: var(--ink2); }
.capsule { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent-soft); box-shadow: 0 0 22px var(--accent-soft); font-family: var(--f-mono); font-size: 11px; color: var(--ink2); }
.capsule .live-dot { width: 9px; height: 9px; flex-basis: 9px; }
.cstep__tick { font-family: var(--f-mono); font-size: 12px; color: var(--ink); min-height: 1.5em; }
.cstep__tick span { display: inline-block; }
.cstep__pr { font-weight: 600; line-height: 1.35; }
.cstep__learn { display: grid; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.cstep__learn li { display: flex; gap: 8px; }
.cstep__learn li span { color: var(--accent); font-family: var(--f-mono); }
.points { flex: 1 1 320px; min-width: 0; display: grid; gap: 22px; }
.points p { margin-top: 6px; color: var(--ink2); line-height: 1.6; }
.colony-fig { flex: 1 1 380px; min-width: 0; max-width: 520px; margin: 0 auto; width: 100%; }
.square { position: relative; aspect-ratio: 1 / 1; width: 100%; }

/* ---- privacy ---- */
.privacy { margin-top: 44px; }
.rings-fig { flex: 1 1 300px; min-width: 0; max-width: 400px; margin: 0 auto; width: 100%; }
.rings-fig svg { display: block; width: 100%; height: auto; }
.ring-fill { fill: var(--accent-soft); }
.ring-stroke { fill: none; stroke: var(--accent); stroke-width: 2; }
.ring-fill.r2, .ring-fill.r3, .ring-stroke.r2, .ring-stroke.r3 { opacity: .08; transition: opacity .6s; }
[data-scope="1"] .r2, [data-scope="2"] .r2, [data-scope="2"] .r3 { opacity: 1; }
.scopes { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.scope { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 48px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; transition: border-color .3s, background-color .3s; }
.scope:hover { border-color: var(--ink3); }
.scope .mono { font-size: 13px; }
.scope span + span { font-size: 11px; color: var(--ink3); }
.scope[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.access { flex: 1 1 440px; min-width: 0; }
.access table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.access caption { text-align: left; padding-bottom: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.access thead tr { border-bottom: 1px solid var(--line); }
.access thead th { text-align: left; padding: 10px 12px; font-weight: 600; color: var(--ink2); font-size: 13px; }
.access tbody tr { border-bottom: 1px solid var(--line2); transition: background-color .5s; }
.access tbody th { text-align: left; padding: 16px 12px; font-weight: 600; }
.access td { padding: 16px 12px; }
.access td.no { color: var(--ink3); }
.yes { display: inline-flex; align-items: center; gap: 7px; }
.yes::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
[data-scope="0"] .row0, [data-scope="1"] .row1, [data-scope="2"] .row2 { background: var(--accent-soft); }
.access__note { margin-top: 16px; color: var(--ink2); font-size: 15px; line-height: 1.6; }

/* ---- you own it ---- */
.mdfile { overflow: hidden; }
.mdfile__bar { min-height: 0; padding: 12px 18px; }
.mdfile__bar span:first-child { overflow-wrap: anywhere; }
.mdfile__body { padding: 20px; font-family: var(--f-mono); font-size: 13px; line-height: 1.75; color: var(--ink2); overflow-wrap: anywhere; }
.md-h { color: var(--ink); font-weight: 600; }
.md-gap { min-height: 1.75em; }
.own-fig { display: flex; flex-direction: column; }
.own-fig__stage { position: relative; flex: 1; min-height: 340px; }
.own-fig__cap { padding: 16px 20px 20px; border-top: 1px solid var(--line2); font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.growth { margin-top: 56px; padding: clamp(20px, 4vw, 32px); border-radius: 18px; }
.stats { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; }
.stats dt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
.stats dd { margin-top: 4px; font-family: var(--f-display); font-size: clamp(36px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.key { width: 14px; height: 2px; }
.key--ink { background: var(--ink); } .key--accent { background: var(--accent); }
.key--dash { height: 0; border-top: 2px dashed var(--t-decision); }
.chart { margin-top: 20px; }
.chart svg { display: block; width: 100%; height: auto; }
.grid line { stroke: var(--line2); stroke-width: 1; }
.g-area { fill: var(--accent-soft); }
.g-links { fill: none; stroke: var(--accent); stroke-width: 2; }
.g-pages { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.g-refreshed { fill: none; stroke: var(--t-decision); stroke-width: 1.5; stroke-dasharray: 4 4; }
.axis { font-size: 11px; fill: var(--ink3); }
.growth__note { margin-top: 10px; font-size: 13px; color: var(--ink3); }

/* ---- pricing ---- */
.plans { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.plan { padding: 28px 26px; border-radius: 18px; display: flex; flex-direction: column; gap: 16px; }
.plan--on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-soft), 0 18px 48px -28px var(--accent); }
.plan__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan h3 { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.plan__run { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--ink3); font-size: 14px; }
.plan__price span { font-family: var(--f-display); font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.plan ul { display: grid; gap: 8px; color: var(--ink2); }
.plan li { position: relative; padding-left: 18px; line-height: 1.5; }
.plan li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 1.5px; background: var(--accent); }
.plans__note { margin-top: 16px; font-size: 14px; color: var(--ink3); }
.cost { margin-top: 56px; padding: clamp(20px, 4vw, 36px); border-radius: 18px; }
.bars { margin-top: 26px; display: grid; gap: 22px; }
.bars__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink2); margin-bottom: 8px; }
.bars__row--us { color: var(--ink); } .bars__row--us span:first-child { font-weight: 600; }
.bars__track { height: 14px; border-radius: 7px; background: var(--bg3); overflow: hidden; }
.bars__fill { height: 100%; border-radius: 7px; background: var(--ink3); }
.bars__fill--us { min-width: 8px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.cost__line { margin-top: 28px; font-family: var(--f-display); font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }

/* ---- FAQ ---- */
.faq { margin-top: 36px; border-top: 1px solid var(--line2); }
.faq details { border-bottom: 1px solid var(--line2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 2px; cursor: pointer; border-radius: 6px; }
.faq summary:hover h3 { color: var(--accent); }
.faq h3 { font-family: var(--f-display); font-size: clamp(19px, 2.4vw, 23px); font-weight: 500; letter-spacing: -0.01em; transition: color .15s; }
.faq__x { position: relative; width: 14px; height: 14px; flex: 0 0 14px; }
.faq__x::before, .faq__x::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: var(--ink3); transition: transform .25s var(--ease); }
.faq__x::after { transform: rotate(90deg); }
.faq details[open] .faq__x::after { transform: rotate(0deg); }
.faq details p { margin: 0 2px 24px; max-width: 44em; color: var(--ink2); font-size: 17px; line-height: 1.6; }

/* ---- footer ---- */
.ft { border-top: 1px solid var(--line2); }
.ft__in { padding-block: var(--sec-pad) 40px; }
.display--ft { font-size: clamp(38px, 6.4vw, 80px); line-height: .98; max-width: 13ch; }
.ft .lede { margin-top: 20px; font-size: 18px; max-width: 30em; }
.ft .join-box { margin-top: 28px; }
.ft__bar { margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; font-size: 14px; color: var(--ink3); }
.ft__brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ft__brand .mono-s { font-size: 11px; letter-spacing: .1em; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft__nav a { color: var(--ink2); }
.ft__nav a:hover { color: var(--accent); }
/* Factory Zero credit, the same mark and wording as the other ventures' footers */
.ft__fz { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink3); }
.fz-credit a { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.fz-credit a:hover { color: #ff5a36; }
.fz-ring { flex: none; transform-origin: 50% 50%; animation: fzRing 12s linear infinite; }
@keyframes fzRing { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fz-ring { animation: none; } }

/* ---- 404 ---- */
.ft--min .ft__bar { margin-top: 0; margin-bottom: 40px; border-top: 0; }
.lost { max-width: 720px; margin: 0 auto; padding: clamp(80px, 14vw, 160px) var(--gutter); }
.lost code { font-size: 13px; color: var(--accent); }
.lost h1 { margin-top: 16px; font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.lost p { margin: 20px 0 32px; font-size: 18px; color: var(--ink2); max-width: 32em; }

/* ---- motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .stage { opacity: 1; }
}

/* ---- small screens ---- */
@media (max-width: 640px) {
  .access th, .access td { padding: 12px 8px; font-size: 14px; }
  .access table { min-width: 380px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stats dt { font-size: 12px; align-items: flex-start; }
  .stats dt .key { margin-top: 7px; flex: 0 0 10px; width: 10px; }
  .stats dd { font-size: 28px; }
}

/* ---------------------------------------------------------------- why: fewer tokens, the open benchmark */
#why .features { margin-top: 28px; }
#why .pair { margin-top: 16px; }
#why > .card { margin-top: 16px; }
#why .card { padding: 22px 24px 24px; }
#why .card .row-head { align-items: center; gap: 12px; }
#why .card ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink2); line-height: 1.55; }
#why .card p { margin: 10px 0 0; color: var(--ink2); line-height: 1.6; max-width: 70em; }
#why .card .row-head { margin: 0; }
#why .card .mono { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- guides */
.guide { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.guide h1 { margin: 10px 0 18px; }
.guide h2 { margin: 52px 0 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.guide p, .guide li { color: var(--ink2); line-height: 1.65; }
.guide p { margin: 0 0 14px; max-width: 40em; }
.guide strong { color: var(--ink); font-weight: 600; }
.guide__status { margin-top: 18px; }
.guide__steps, .guide__list { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 10px; max-width: 42em; }
.guide__note { padding: 14px 16px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); font-size: 15px; }
.guide__cmd { margin: 0 0 18px; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); overflow-x: auto; font-family: var(--f-mono); font-size: 14px; color: var(--ink); }
.guide__back { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.guide__steps { list-style: decimal; }
.guide__list { list-style: disc; }
.guide__steps li::marker, .guide__list li::marker { color: var(--accent); font-family: var(--f-mono); }

/* ---------------------------------------------------------------- pricing: memory meter and reasoning levels */
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.meter, .rs { margin-top: 16px; padding: 22px 24px 24px; }
.meter .row-head, .rs .row-head { margin: 0; align-items: center; gap: 12px; }
.meter__grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px 28px; }
.meter__k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.meter__v { margin-top: 6px; color: var(--ink3); font-size: 14px; }
.meter__v span { font-family: var(--f-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; }
.meter__grid p, .rs__lede, .rs__panel p { margin: 8px 0 0; color: var(--ink2); line-height: 1.55; }
.rs__set { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.rs__track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rs__track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 9px; height: 2px; background: var(--line); border-radius: 2px; }
.rs__in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rs__stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; padding-bottom: 4px; }
.rs__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.rs__name { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink3); transition: color .2s; }
.rs__stop:hover .rs__dot { border-color: var(--accent); }
.rs__in:checked + .rs__stop .rs__dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft), 0 0 18px var(--accent); }
.rs__in:checked + .rs__stop .rs__name { color: var(--ink); }
.rs__in:focus-visible + .rs__stop .rs__dot { outline: 2px solid var(--accent); outline-offset: 4px; }
.rs__panels { margin-top: 18px; }
.rs__panel { display: none; padding: 16px 18px; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); }
.rs__price { color: var(--ink3); font-size: 14px; }
.rs__price span { font-family: var(--f-display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); margin-right: 4px; }
.rs__speed { margin-top: 2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.rs__set:has(#rs-minimal:checked) [data-level="minimal"],
.rs__set:has(#rs-low:checked) [data-level="low"],
.rs__set:has(#rs-medium:checked) [data-level="medium"],
.rs__set:has(#rs-high:checked) [data-level="high"],
.rs__set:has(#rs-max:checked) [data-level="max"] { display: block; }
@supports not selector(:has(*)) { .rs__panels { display: grid; gap: 10px; } .rs__panel { display: block; } }
@media (max-width: 520px) { .rs__name { font-size: 10px; letter-spacing: 0; } }
@media (prefers-reduced-motion: reduce) { .rs__dot, .rs__name { transition: none; } }

/* ---------------------------------------------------------------- encryption diagram */
#encryption .features { margin-top: 16px; }
#encryption .access__note { margin-top: 18px; }
.crypt { margin-top: 24px; padding: 22px 24px; display: grid; gap: 14px; }
.crypt__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.crypt__box { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--f-mono); font-size: 13px; color: var(--ink); background: var(--bg); }
.crypt__box--dark { color: var(--ink3); border-style: dashed; }
.crypt__box--key { border-color: var(--accent); color: var(--accent); }
.crypt__arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink3); }
.crypt__arrow::after { content: ""; width: 28px; height: 1px; background: var(--line); }
.crypt figcaption { margin-top: 4px; color: var(--ink3); line-height: 1.6; }
