/* 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%); }
/* Small screens: the nav folds into a native <details> menu (no script needed). */
.menu { display: none; position: relative; margin-left: auto; }
.menu__btn { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; cursor: pointer; }
.menu__btn:hover { border-color: var(--ink3); }
.menu__icon { width: 14px; height: 10px; border-block: 1.5px solid currentColor; position: relative; }
.menu__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.menu[open] .menu__btn { border-color: var(--accent); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 220px; padding: 8px; display: grid; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -20px rgb(0 0 0 / .5); }
.menu__panel a { display: block; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--ink2); font-size: 16px; }
.menu__panel a:hover { background: var(--bg3); color: var(--ink); }
.nav a[aria-current="page"], .menu__panel a[aria-current="page"] { color: var(--ink); background: var(--bg2); box-shadow: inset 0 -2px 0 var(--accent); }
.menu__panel a[aria-current="page"] { background: var(--bg3); box-shadow: inset 2px 0 0 var(--accent); }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 420px) {
  .hd__in { gap: 10px; }
  .theme-btn { padding: 0 10px; }
  .theme-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- hero ---- */
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px); }
@media (min-width: 900px) {
  .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(calc(100svh - 140px), 760px); }
}
.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; }
.where__later { margin-top: 12px; }
@media (max-width: 640px) { .where__list li { display: flex; flex-wrap: wrap; } .where__name { min-width: 0; } .where__what { flex: 1 1 100%; } }
.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; } }

/* ---- pages: shared intro, short home sections, links row ---- */
.page-hd { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.h2--page { max-width: 18ch; }
.page-hd .lede { max-width: 40em; }
.sec__in--top { padding-top: clamp(40px, 5vw, 56px); }
.sec--tight .sec__in { padding-block: clamp(48px, 6vw, 80px); }
.go { margin-top: 24px; font-weight: 600; }
.go a { text-decoration-color: var(--accent); }
.price-line__note { margin-top: 10px; color: var(--ink3); font-size: 15px; }
.ft__nav--ext { margin-top: 14px; font-size: 14px; }
.pair--one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.where__rust--agents { margin-top: 20px; }
/* integrations: one row per kind */
.intg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px 48px; padding-block: 28px; border-top: 1px solid var(--line2); }
.intg:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 860px) { .intg { grid-template-columns: 260px minmax(0, 1fr); } }
.intg__head p { margin-top: 6px; color: var(--ink3); font-size: 15px; }
.intg__list { display: grid; gap: 14px; }
.intg__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.intg__name { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.015em; color: var(--ink); }
.intg__name a { color: inherit; }
.intg__what { flex: 1 1 100%; color: var(--ink2); line-height: 1.55; }
/* security: short lists */
.checks { margin-top: 20px; display: grid; gap: 14px; max-width: 46em; }
.checks li { position: relative; padding-left: 20px; color: var(--ink2); line-height: 1.6; }
.checks li::before { content: ''; position: absolute; left: 0; top: .72em; width: 9px; height: 1.5px; background: var(--accent); }
.checks strong { color: var(--ink); font-weight: 600; }
.rings-sec .privacy { margin-top: 28px; }
/* faq groups */
.faq__group { margin-top: 48px; }
.faq__group:first-child { margin-top: 0; }
.faq__group + .faq { margin-top: 12px; }
.plans--first { margin-top: 0; }

/* ---- 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 */
#tokens .features { margin-top: 28px; }
#tokens .pair { margin-top: 16px; }
#tokens .sec__in > .card { margin-top: 16px; }
#tokens .card { padding: 22px 24px 24px; }
#tokens .card .row-head { align-items: center; gap: 12px; }
#tokens .card ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink2); line-height: 1.55; }
#tokens .card p { margin: 10px 0 0; color: var(--ink2); line-height: 1.6; max-width: 70em; }
#tokens .card .row-head { margin: 0; }
#tokens .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; }

/* ---------------------------------------------------------------- home: next-gen sections
   How it works (bento of three looping illustrations), Use it anywhere (one
   switcher, four surfaces), Pricing (three tiers), the link tiles and the
   footer glow. The markup is the final frame: without JS, or under reduced
   motion, nothing hides, loops or advances. Only opacity and transform move. */
.hs { position: relative; isolation: isolate; overflow: clip; border-top-color: transparent; }
.hs::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--line2) 1px, transparent 1px), linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 72%), linear-gradient(to bottom, transparent 0, #000 160px); -webkit-mask-composite: source-in; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 0%, transparent 72%), linear-gradient(to bottom, transparent 0, #000 160px); mask-composite: intersect; opacity: .55; }
.hs::after { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 900px; height: 600px; top: -60px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent); opacity: .7; }
.hs--where::after { left: 85%; top: 10%; }
.hs--price::after { left: 80%; top: 30%; }
.hs .sec__in { padding-block: clamp(64px, 8vw, 112px); }
#how.hs .sec__in { padding-top: clamp(48px, 6vw, 80px); }
.hs__head { max-width: 760px; }
.hs__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hs__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6.2vw, 76px); line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }
.kick { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.kick__n { color: var(--accent); padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; letter-spacing: .06em; }
.hs .go { margin-top: 32px; }

/* scroll reveal: fade and rise, staggered by --i */
.rv-wait { opacity: 0; transform: translateY(22px); }
.rv-in { transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .2s, background-color .2s; transition-delay: calc(var(--i, 0) * 90ms); }

/* ---- bento ---- */
.bento { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 980px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; }
  .bento__cell--listen { grid-column: 1 / 6; grid-row: 1 / 3; }
  .bento__cell--write { grid-column: 6 / 13; }
  .bento__cell--evolve { grid-column: 6 / 13; }
  .bento__cell--listen .mini { flex: 1 1 auto; min-height: 340px; }
}
.bento__cell { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; border: 1px solid var(--line2);
  background: linear-gradient(180deg, color-mix(in oklch, var(--bg2) 100%, transparent), var(--bg)); }
/* gradient border and cursor spotlight on hover (fine pointers, motion allowed) */
.bento__cell::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: linear-gradient(140deg, var(--accent), transparent 40%, transparent 65%, color-mix(in oklch, var(--accent) 50%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.bento__cell::after { content: ''; position: absolute; left: 0; top: 0; z-index: -1; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); opacity: 0; transform: translate(var(--mx, 50%), var(--my, 0px)); transition: opacity .35s; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bento__cell:hover::before { opacity: .8; }
  .bento__cell:hover::after { opacity: 1; }
}
.bento__text { position: relative; padding: 4px 26px 26px; }
.bento__n { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.bento__text h3 { margin: 6px 0 8px; font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.bento__text p { color: var(--ink2); line-height: 1.55; max-width: 34em; text-wrap: pretty; }
.mini { position: relative; height: 220px; margin: 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg); overflow: hidden; container-type: size; }
.mini::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--line2) 1px, transparent 1.2px); background-size: 16px 16px; opacity: .8; }
.mini__tag { position: absolute; top: 24px; right: 26px; z-index: 3; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); background: var(--bg); padding: 2px 7px; border: 1px solid var(--line2); border-radius: 999px; }
@media (min-width: 980px) { .bento__cell--listen .mini { height: auto; } }
@media (max-width: 979px) { .bento__cell--listen .mini { height: 280px; } }

/* Listen: messages, a mail and a session log drift into the brain's node */
.ml__wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.ml__wires path { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.ml__src { position: absolute; left: 14px; z-index: 1; max-width: min(250px, 62cqw); padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); font-size: 12px; line-height: 1.35; color: var(--ink2); transform-origin: left center; }
.ml__src b { color: var(--ink); font-weight: 600; margin-right: 4px; font-family: var(--f-mono); font-size: 11px; }
.ml__src > span { display: block; margin-top: 2px; color: var(--ink); }
.ml__src--slack { top: calc(17.7% - 24px); border-left: 3px solid var(--t-project); }
.ml__src--discord { top: calc(40% - 24px); border-left: 3px solid var(--t-person); }
.ml__src--mail { top: calc(62.3% - 16px); display: flex; align-items: center; gap: 8px; }
.ml__src--mail svg { width: 16px; height: 12px; fill: none; stroke: var(--ink3); stroke-width: 1.3; flex: 0 0 16px; }
.ml__src--term { top: calc(83.8% - 15px); font-family: var(--f-mono); font-size: 11.5px; background: var(--bg3); }
.ml__src--term i { font-style: normal; color: var(--accent); margin-right: 4px; }
.ml__node { position: absolute; left: 75%; top: 50%; width: 0; height: 0; z-index: 1; }
.ml__core { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px var(--accent), 0 0 64px var(--accent-soft); }
.ml__ring { position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--accent); opacity: .35; }
.ml__ring--2 { left: -44px; top: -44px; width: 88px; height: 88px; opacity: .15; }
.js .mini--listen.is-on .ml__src { animation: ml-drift 7.2s var(--ease) infinite both; animation-delay: calc(var(--i) * 1.8s - 1.8s); }
.js .mini--listen.is-on .ml__ring { animation: ml-ring 1.8s ease-out infinite; }
.js .mini--listen.is-on .ml__ring--2 { animation-delay: .9s; }
.js .mini--listen.is-on .ml__core { animation: ml-core 1.8s ease-in-out infinite; }
@keyframes ml-drift {
  0% { opacity: 0; transform: translateX(-14px); }
  10%, 50% { opacity: 1; transform: none; }
  72%, 100% { opacity: 0; transform: translate(calc(75cqw - 120px), var(--dy2, 0)) scale(.15); }
}
.ml__src--slack { --dy2: 36cqh; } .ml__src--discord { --dy2: 14cqh; } .ml__src--mail { --dy2: -10cqh; } .ml__src--term { --dy2: -28cqh; }
@keyframes ml-ring { from { transform: scale(.5); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
@keyframes ml-core { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* Write: a Markdown page types itself; the citation lights up and links to its source */
.mini--write { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 0; padding: 18px; }
.mw__page { position: relative; z-index: 1; padding: 12px 14px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); font-family: var(--f-mono); font-size: 12.5px; }
.mw__bar { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.mw__bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.mw__bar em { margin-left: 6px; font-style: normal; font-size: 10.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw__ln { position: relative; margin-top: 6px; color: var(--ink2); white-space: nowrap; overflow: hidden; }
.mw__ln--h { font-size: 15px; color: var(--ink); font-weight: 500; }
.mw__ln--dim { color: var(--ink3); text-overflow: ellipsis; }
.mw__ln i { font-style: normal; color: var(--t-person); }
.mw__ln--h i { color: var(--ink3); }
.mw__txt { position: relative; }
.mw__cite { position: relative; font-weight: 500; color: var(--accent); padding: 0 3px; border-radius: 4px; }
.mw__cite::before { content: ''; position: absolute; inset: -1px -1px; border-radius: 4px; background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); z-index: -1; }
.mw__cover { position: absolute; inset: 0 -2px; background: var(--bg2); transform-origin: right center; transform: scaleX(0); }
.mw__link { position: absolute; left: 52%; top: 46%; width: 18%; height: 26%; overflow: visible; }
.mw__link path { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.mw__src { position: relative; z-index: 1; margin-left: 14%; margin-top: 70px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--accent); background: var(--bg2); font-size: 12px; line-height: 1.4; color: var(--ink3); display: grid; gap: 2px; box-shadow: 0 10px 30px -18px var(--accent); }
.mw__src b { color: var(--ink); font-weight: 600; }
.mw__srcn { font-family: var(--f-mono); color: var(--accent); font-size: 11px; }
.mw__srcq { color: var(--ink); }
.js .mini--write.is-on .mw__ln:nth-of-type(1) .mw__cover { animation: mw-t0 9s steps(10) infinite both; }
.js .mini--write.is-on .mw__ln:nth-of-type(2) .mw__cover { animation: mw-t1 9s steps(30) infinite both; }
.js .mini--write.is-on .mw__ln:nth-of-type(3) .mw__cover { animation: mw-t2 9s steps(34) infinite both; }
.js .mini--write.is-on .mw__cite::before { animation: mw-lit 9s ease infinite both; }
.js .mini--write.is-on .mw__link { animation: mw-lit 9s ease infinite both; }
.js .mini--write.is-on .mw__src { animation: mw-src 9s var(--ease) infinite both; }
@keyframes mw-t0 { 0% { transform: scaleX(1); } 8%, 90% { transform: scaleX(0); } 94%, 100% { transform: scaleX(1); } }
@keyframes mw-t1 { 0%, 11% { transform: scaleX(1); } 28%, 90% { transform: scaleX(0); } 94%, 100% { transform: scaleX(1); } }
@keyframes mw-t2 { 0%, 46% { transform: scaleX(1); } 62%, 90% { transform: scaleX(0); } 94%, 100% { transform: scaleX(1); } }
@keyframes mw-lit { 0%, 29% { opacity: 0; } 34%, 88% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes mw-src { 0%, 32% { opacity: .25; transform: translateY(8px); } 40%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: .25; transform: translateY(8px); } }

/* Evolve: two duplicate pages merge with a soft pulse; a stale fact is struck through */
.mini--evolve { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 18px 22px; gap: 18px; }
.me__stage { position: relative; height: 120px; display: grid; place-items: center; }
.me__tile { grid-area: 1 / 1; position: relative; z-index: 1; width: min(150px, 100%); padding: 10px 12px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); display: grid; gap: 7px; }
.me__tile em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--ink); }
.me__l { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.me__l--s { width: 62%; }
.me__tile--a { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.me__tile--b { opacity: 0; }
.me__pulse { grid-area: 1 / 1; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent); border: 1px solid var(--accent); opacity: 0; transform: scale(.4); }
.me__facts { font-family: var(--f-mono); font-size: 12.5px; display: grid; gap: 10px; }
.me__stale { position: relative; justify-self: start; color: var(--ink3); }
.me__stale span:first-child { opacity: .6; }
.me__strike { position: absolute; left: -2px; right: -2px; top: 52%; height: 1.5px; background: var(--ink3); transform-origin: left center; }
.me__fresh { color: var(--ink); }
.me__fresh b { color: var(--accent); font-weight: 500; }
.js .mini--evolve.is-on .me__tile--a { animation: me-a 8s var(--ease) infinite both; }
.js .mini--evolve.is-on .me__tile--b { animation: me-b 8s var(--ease) infinite both; }
.js .mini--evolve.is-on .me__pulse { animation: me-pulse 8s ease-out infinite both; }
.js .mini--evolve.is-on .me__stale span:first-child { animation: me-stale 8s ease infinite both; }
.js .mini--evolve.is-on .me__strike { animation: me-strike 8s var(--ease) infinite both; }
.js .mini--evolve.is-on .me__fresh { animation: me-fresh 8s var(--ease) infinite both; }
@keyframes me-a { 0%, 30% { transform: translate(-22%, -10%) rotate(-4deg); box-shadow: none; border-color: var(--line); } 46%, 90% { transform: none; } 50%, 90% { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); } 100% { transform: translate(-22%, -10%) rotate(-4deg); } }
@keyframes me-b { 0%, 30% { opacity: 1; transform: translate(22%, 12%) rotate(4deg); } 46% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: none; } }
@keyframes me-pulse { 0%, 44% { opacity: 0; transform: scale(.4); } 50% { opacity: .9; } 68%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes me-stale { 0%, 56% { opacity: 1; } 66%, 92% { opacity: .6; } 100% { opacity: 1; } }
@keyframes me-strike { 0%, 56% { transform: scaleX(0); } 66%, 92% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes me-fresh { 0%, 64% { opacity: 0; transform: translateY(6px); } 74%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---- Use it anywhere: one switcher ---- */
.sw { margin-top: clamp(36px, 5vw, 56px); }
.sw__tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 14px; border: 1px solid var(--line2); background: color-mix(in oklch, var(--bg2) 80%, transparent); }
html:not(.js) .sw__tabs { display: none; }
.sw__tab { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink2); font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s; }
.sw__tab:hover { color: var(--ink); }
.sw__tab[aria-selected="true"] { background: var(--bg3); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sw__tab:focus-visible { outline-offset: -2px; border-radius: 10px; }
.sw__st { font-family: var(--f-mono); font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); padding: 1px 6px; border: 1px dashed var(--line); border-radius: 999px; }
.sw__prog { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.sw.is-auto .sw__tab[aria-selected="true"] .sw__prog { animation: sw-prog 7s linear both; }
.sw.is-hold .sw__prog, .sw:hover .sw__prog, .sw:focus-within .sw__prog { animation-play-state: paused !important; }
@keyframes sw-prog { to { transform: scaleX(1); } }
@media (max-width: 640px) { .sw__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .sw__tab { justify-content: space-between; font-size: 14px; padding: 10px 11px; } }
.sw__panels { margin-top: 18px; display: grid; gap: 18px; }
.sw.is-js .sw__panels { margin-top: 16px; }
.sw.is-js .sw__panel { grid-area: 1 / 1; }
.sw__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 40px; align-items: center; border-radius: 22px; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--line2); background: color-mix(in oklch, var(--bg2) 70%, transparent); position: relative; }
.sw__panel::before, .sw__panel::after { content: ''; position: absolute; width: 12px; height: 12px; border: 0 solid var(--ink3); pointer-events: none; opacity: .7; }
.sw__panel::before { left: -7px; top: -7px; border-left-width: 1px; border-top-width: 1px; }
.sw__panel::after { right: -7px; bottom: -7px; border-right-width: 1px; border-bottom-width: 1px; }
@media (min-width: 900px) { .sw__panel { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); } }
.sw.is-js .sw__panel:not(.is-sel) { visibility: hidden; opacity: 0; }
.sw.is-ready .sw__panel { transition: opacity .45s var(--ease), visibility 0s .45s; }
.sw.is-ready .sw__panel.is-sel { transition: opacity .45s var(--ease); }
.sw__panel:focus-visible { outline-offset: 4px; border-radius: 22px; }
.sw__h { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sw__h code { font-size: .85em; }
.sw__copy p { margin-top: 10px; color: var(--ink2); line-height: 1.55; font-size: 17px; max-width: 26em; }
.sw__later { margin-top: 16px; }
/* device frames */
.dev { position: relative; min-width: 0; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 30px 80px -40px color-mix(in oklch, var(--accent) 45%, transparent), 0 1px 0 var(--line2) inset; overflow: hidden; }
.dev__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line2); background: var(--bg2); }
.dev__dots { display: inline-flex; gap: 6px; }
.dev__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dev__t { font-family: var(--f-mono); font-size: 12px; color: var(--ink3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev__tag { margin-left: auto; flex: 0 0 auto; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); padding: 2px 7px; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg); }
.dev__body { padding: 20px 22px 24px; display: grid; align-content: start; gap: 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.sw.is-js .dev__body { min-height: 300px; }
.dev__body p { margin: 0; }
.tool { padding: 8px 12px; border-left: 2px solid var(--accent); background: var(--bg2); border-radius: 0 8px 8px 0; color: var(--ink2); }
.tool--out { margin-top: -10px; border-left-color: var(--line); }
.tool__k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-right: 8px; }
.cite { display: inline-block; padding: 0 5px; border-radius: 5px; color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 50%, transparent); font-family: var(--f-mono); font-size: .9em; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--accent); }
.js .sw.is-auto .caret { animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat { gap: 14px; font-size: 14.5px; }
.msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; color: var(--ink2); }
.msg__who { font-weight: 650; color: var(--ink); font-size: 14px; }
.msg__app { margin-left: 6px; font-family: var(--f-mono); font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; }
.av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--bg); background: var(--t-customer); }
.av--b { background: var(--bg3); color: var(--ink); border: 1px solid var(--accent); }
.av .mark { width: 18px; height: 18px; }
.msg--bot { padding: 12px; margin: 0 -12px; border-radius: 12px; background: var(--accent-soft); }
.msg__src { margin-left: 46px; font-size: 12px; color: var(--ink3); padding-left: 10px; border-left: 2px solid var(--accent); }
.dev--phone { justify-self: center; width: min(264px, 100%); border-radius: 34px; padding: 10px; background: var(--bg2); }
.phone { border-radius: 26px; border: 1px solid var(--line2); background: var(--bg); padding: 14px 14px 18px; display: grid; gap: 12px; }
.phone__top { display: flex; justify-content: space-between; align-items: center; }
.phone__top::before { content: ''; width: 64px; height: 6px; border-radius: 3px; background: var(--line); }
.phone__search { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--field-line); background: var(--bg2); color: var(--ink3); font-size: 14px; }
.phone__search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.phone__brain { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.phone__hit { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); }
.phone__hit .ink3 { margin-left: -4px; }
/* lines arrive one by one when a surface shows */
.js .sw.is-js .sw__panel.is-sel .ln { animation: ln-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 260ms + 120ms); }
@keyframes ln-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- Pricing: three tiers ---- */
.tiers { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 30px; border-radius: 20px; border: 1px solid var(--line2); background: var(--bg2); }
.tier__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tier h3 { font-family: var(--f-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.tier__run { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.tier__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; color: var(--ink3); font-size: 14px; margin-top: 8px; }
.tier__price span { font-family: var(--f-display); font-size: clamp(56px, 6vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; color: var(--ink); }
.tier__for { color: var(--ink); font-size: 16px; line-height: 1.45; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.tier ul { display: grid; gap: 9px; color: var(--ink2); font-size: 15px; }
.tier li { position: relative; padding-left: 20px; line-height: 1.45; }
.tier li::before { content: ''; position: absolute; left: 0; top: .42em; width: 10px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.tier--on { border-color: var(--accent); background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 7%, var(--bg2)), var(--bg2) 60%); box-shadow: 0 0 0 4px var(--accent-soft), 0 30px 70px -40px var(--accent); }
.tier--on .tier__run { color: var(--accent); }
.hs--price .price-line__note { margin-top: 18px; }

/* ---- the link tiles ---- */
.more { border-top: 1px solid var(--line2); }
.more__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; padding-block: clamp(40px, 6vw, 72px); }
.lt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: baseline; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s; }
.lt:hover { color: var(--ink); border-color: var(--accent); }
.lt__n { grid-row: 1 / 3; font-family: var(--f-mono); font-size: 11px; color: var(--ink3); }
.lt__t { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
.lt__d { grid-column: 2; font-size: 14px; color: var(--ink3); }
.lt__a { grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--ink3); transition: transform .25s var(--ease), color .2s; }
.lt:hover .lt__a, .lt:focus-visible .lt__a { color: var(--accent); transform: translateX(4px); }

/* ---- the closing waitlist glow ---- */
.ft--glow { position: relative; isolation: isolate; overflow: clip; }
.ft--glow::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: 1000px; height: 640px; left: -260px; top: -200px; background: radial-gradient(closest-side, var(--accent-soft), transparent); }

@media (prefers-reduced-motion: reduce) {
  .rv-wait { opacity: 1; transform: none; }
  .mini *, .sw__prog, .ln, .caret { animation: none !important; }
}
@media (max-width: 560px) {
  .mini--write { height: auto; container-type: normal; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 40px; }
  .mw__link { display: none; }
  .mw__src { margin: 0; }
  .mini--evolve { padding-inline: 14px; gap: 10px; }
}

/* ---------------------------------------------------------------- hero: works-with strip
   Fills the space under the hero with something useful: plain-text names of
   planned integrations (no logos, no implied partnership), edges faded. */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 22px clamp(28px, 4vw, 44px); border-top: 1px solid var(--line2); }
.works__k { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.works__list { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-family: var(--f-display); font-size: clamp(15px, 1.4vw, 17px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink2); }
.works__list li { white-space: nowrap; transition: color .2s; }
.works__list li:hover { color: var(--ink); }
.works__more { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.works__more:hover { color: var(--accent); }
/* The strip wraps instead of fading out at the right edge, so every logo shows. */

/* ---- marks: planned integrations' logos, written by tools/marks.js ----
   Monochrome in --ink2; the brand colour on hover where it clears 3:1 on the
   theme's surfaces (tools/marks.js sets --mk-d / --mk-l only then). A brand with
   no usable mark is its name alone, in the same chip. */
.mk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.mk { display: inline-flex; align-items: center; gap: 8px; min-height: 24px; color: var(--ink2); }
.mk__i { flex: 0 0 auto; width: 20px; height: 20px; fill: currentColor; color: var(--ink2); transition: color .2s; }
.mk__n { white-space: nowrap; }
.mk:hover, .mk:hover .mk__n { color: var(--ink); }
.mk:hover .mk__i { color: var(--mk-d, var(--ink)); }
:root[data-theme="light"] .mk:hover .mk__i { color: var(--mk-l, var(--ink)); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .mk:hover .mk__i { color: var(--mk-l, var(--ink)); } }
.mk__plus { display: inline-grid; place-items: center; width: 20px; height: 20px; font-family: var(--f-mono); font-size: 18px; line-height: 1; color: var(--accent); }
.mk-legal { margin-top: 14px; max-width: 60em; font-size: 13px; line-height: 1.5; color: var(--ink3); }

/* home strip under the hero */
.works__list .mk-row { gap: 10px 24px; }
.works__list .mk__i { width: 18px; height: 18px; }

/* tiles: the home switcher's harness row and the /agents/ grid */
.mk-row--tiles, .mk-row--grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); grid-auto-rows: 1fr; }
.mk-row--grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.mk-row--tiles .mk, .mk-row--grid .mk { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 104px; padding: 16px 8px; border: 1px solid var(--line2); border-radius: 14px; background: var(--bg); text-align: center; transition: border-color .2s; }
.mk-row--tiles .mk:hover, .mk-row--grid .mk:hover { border-color: var(--line); }
.mk-row--tiles .mk__i, .mk-row--grid .mk__i { width: 32px; height: 32px; }
.mk-row--tiles .mk__n, .mk-row--grid .mk__n { font-family: var(--f-display); font-weight: 600; font-size: 14px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); white-space: normal; }
.mk-row--tiles .mk--txt .mk__n, .mk-row--grid .mk--txt .mk__n { font-size: 16px; }
.mk-row--tiles .mk--plus, .mk-row--grid .mk--plus { border-style: dashed; border-color: var(--line); background: transparent; }
.mk-row--tiles .mk__plus, .mk-row--grid .mk__plus { width: 32px; height: 32px; font-size: 28px; }
.mk-row--tiles .mk--plus .mk__n, .mk-row--grid .mk--plus .mk__n { color: var(--ink2); font-size: 14px; }
/* In the switcher's harness panel the tiles sit under the copy, beside the device frame. */
@media (min-width: 900px) {
  .sw__panel:has(.sw__marks) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto auto; }
  .sw__panel:has(.sw__marks) .sw__copy { grid-column: 1; grid-row: 1; align-self: end; }
  .sw__marks { grid-column: 1; grid-row: 2; align-self: start; }
  .sw__marks ~ .dev { grid-column: 2; grid-row: 1 / 3; }
  .sw__marks .mk-row--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mk-wave { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.mk-harnesses { margin-top: 8px; }
.mk-harnesses .mk-wave:first-child { margin-top: 20px; }

/* /integrations/: logos next to the names */
.intg__name .mk-row { gap: 8px 20px; }
.intg__name .mk { color: var(--ink); }
.intg__name .mk__i { position: relative; top: 2px; color: var(--ink2); }

@media (prefers-reduced-motion: reduce) { .mk__i, .mk-row--tiles .mk, .mk-row--grid .mk { transition: none; } }
