/* BAiD. Ink by default, warm cream as the light theme. One accent, used only for live moments. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gut: clamp(20px, 4vw, 40px);
  --nav-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0C0E; --fg: #F1E3CC; --muted: #9F978A;
  --surface: #121315; --surface-2: #1D1E20;
  --line: #26272A; --line-2: #3A3934;
  --mark: #F1E3CC; --echo-1: #66625A; --echo-2: #3A3934;
  --accent: #2FA36B;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F1E3CC; --fg: #0B0C0E; --muted: #5C5850;
  --surface: #EBDCC3; --surface-2: #E1D1B6;
  --line: #DCCDB4; --line-2: #C6BBA8;
  --mark: #0B0C0E; --echo-1: #9F978A; --echo-2: #C6BBA8;
  --accent: #155E3F;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11"; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: currentColor; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--fg); color: var(--bg); }
.mono { font-family: var(--mono); font-feature-settings: "zero", "ss09"; }
.sr, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 550; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- mark ---------- */
.mark-e2 { stroke: var(--echo-2); } .mark-e1 { stroke: var(--echo-1); } .mark-top { stroke: var(--mark); }
.mark-ring { stroke: var(--echo-1); stroke-width: 5; }
.mark-ring.is-live { stroke: var(--accent); }
.mark-comet { stroke: var(--accent); stroke-dasharray: .15 2; }

/* ---------- buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 550; font-size: 16px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background .15s; }
.btn:hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.btn--quiet { background: var(--surface-2); color: var(--fg); }
.btn--quiet:hover { background: var(--line-2); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.wl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; max-width: 460px; position: relative; }
.wl input[type="email"] { height: 46px; min-width: 0; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; }
.wl input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.wl input[type="email"]:focus-visible { outline-offset: 2px; border-color: var(--fg); border-radius: 999px; }
.wl .btn:focus-visible { border-radius: 999px; }
.wl-msg { grid-column: 1 / -1; min-height: 20px; font-size: 13px; color: var(--muted); padding-left: 18px; }
.wl-msg.is-ok { color: var(--fg); } .wl-msg.is-err { color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); }
.wl.is-done input[type="email"], .wl.is-done .btn { opacity: .5; pointer-events: none; }
.wl--big { max-width: 520px; }
.wl--big input[type="email"], .wl--big .btn { height: 54px; font-size: 17px; }
.wl--big .btn { padding: 0 28px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 620; font-size: 19px; letter-spacing: -.035em; text-decoration: none; }
.brand .mark { height: 30px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-right: auto; font-size: 14.5px; }
.nav-links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg button:focus-visible { border-radius: 999px; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; height: 36px; min-width: 36px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--muted); font-size: 12px; }
.tool:hover { color: var(--fg); border-color: var(--muted); }
.tool:focus-visible { border-radius: 999px; }
html:not(.js) .seg, html:not(.js) .tool { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 5vw, 72px); align-items: center; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; letter-spacing: .02em; color: var(--muted); margin-bottom: 28px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--echo-1); flex: none; }
.hero h1 { font-size: clamp(2.6rem, 4.75vw, 4.3rem); line-height: .98; letter-spacing: -.045em; font-weight: 560; color: var(--muted); text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--fg); display: block; }
.lede { margin-top: 28px; max-width: 34em; font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.hero-copy .wl, .hero-copy .actions { margin-top: 36px; }

/* ---------- figure ---------- */
.fig { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); overflow: hidden; min-width: 0; }
.fig-stage { position: relative; aspect-ratio: 5 / 4; border-bottom: 1px solid var(--line); touch-action: pan-y; }
.fig-stage .mark--stage, .fig-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fig-canvas { opacity: 0; transition: opacity .5s; }
.fig.is-3d .fig-canvas { opacity: 1; }
.fig.is-3d .mark--stage { opacity: 0; }
.mark--stage [data-echo], .mark--stage [data-ring] { will-change: transform; }
.fig-state { position: absolute; left: 16px; top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); letter-spacing: .01em; }
.fig-state.is-live { color: var(--fg); } .fig-state.is-live .dot { background: var(--accent); }
.fig-hint { display: none; position: absolute; right: 16px; top: 14px; font-size: 12px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .js .fig-stage { cursor: ns-resize; }
  .js .fig-hint { display: block; }
  .js .fig-hint::after { content: " \2195"; }
}
.fig.is-touched .fig-hint { visibility: hidden; }
.fig-control { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.fig-control label { color: var(--muted); }
.fig-end { color: var(--fg); }
html:not(.js) .fig-control { display: none; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: none; cursor: ew-resize; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--fg); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--fg); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--fg); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--fg), 0 0 0 4px var(--surface), 0 0 0 6px var(--fg); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--fg), 0 0 0 4px var(--surface), 0 0 0 6px var(--fg); }

.trace { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.trace-lane { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; }
.trace-lane + .trace-lane { margin-top: 6px; }
.trace-name { font-size: 12px; color: var(--muted); }
.trace-track { position: relative; height: 16px; }
.tb { position: absolute; top: 0; height: 100%; border-radius: 3px; display: block; }
.tb-think { background: var(--fg); }
.tb-wait { background: repeating-linear-gradient(-55deg, var(--echo-1) 0 1.5px, transparent 1.5px 5px); border-radius: 0; }
.tb-fetch { background: var(--echo-1); overflow: hidden; }
.tb-live { background: var(--accent); }
.tb-fetch > .tb-live { left: 0; border-radius: 0; }
.trace-head { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--accent); border-radius: 1px; pointer-events: none; }
.trace-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0 62px; font-size: 11.5px; color: var(--muted); }
.trace-key li { display: inline-flex; align-items: center; gap: 6px; }
.trace-key .tb { position: static; width: 14px; height: 8px; border-radius: 2px; }
html:not(.js) .key-live { display: none; }

.fig-stats { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.fig-stats > div { padding: 14px 16px 16px; }
.fig-stats > div + div { border-left: 1px solid var(--line); }
.fig-stats dt { font-size: 12px; color: var(--muted); }
.fig-stats dd { margin-top: 2px; font: 500 clamp(1.7rem, 3vw, 2.15rem)/1.1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fig-stats small { font-size: .5em; color: var(--muted); letter-spacing: 0; }
.fig figcaption { padding: 13px 16px 14px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.fig figcaption > .mono { color: var(--fg); margin-right: 6px; font-size: 12px; }
.fig-text { margin-top: 8px; }
.fig-text summary { cursor: pointer; width: fit-content; color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; list-style: none; }
.fig-text summary::-webkit-details-marker { display: none; }
.fig-text summary::after { content: " +"; font-family: var(--mono); }
.fig-text[open] summary::after { content: " \2212"; }
.fig-text .prose { margin-top: 12px; font-size: 14px; max-width: none; }

/* ---------- sections ---------- */
.sec { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 128px); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.sec-head { align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); }
.label { display: flex; gap: 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.label span { color: var(--fg); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.85rem); line-height: 1.05; letter-spacing: -.038em; font-weight: 550; text-wrap: balance; }
.sec-body { min-width: 0; }
.sec-body > p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.sec-body > p + p { margin-top: 1em; }
.sec-body > p strong, .sec-body li strong { color: var(--fg); font-weight: 550; }
.sec-body > p:not(.actions) a, .sec-body li a, .sec-body dd a { color: var(--fg); }
.steps, .points { margin-top: 36px; border-bottom: 1px solid var(--line); }
.sec-body > .steps:first-child, .sec-body > .points:first-child { margin-top: 0; }
.steps li, .points li { display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 22px 0 24px; border-top: 1px solid var(--line); color: var(--muted); }
.points li { grid-template-columns: minmax(0, 1fr); }
.steps .num { font-size: 12px; padding-top: 7px; color: var(--muted); }
.steps li strong:first-child, .points li strong:first-child { display: block; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 6px; }
.steps + p, .points + p { margin-top: 32px; }
.sec-body .actions { margin-top: 28px; }

/* row layout: heading and intro side by side, steps as columns underneath */
.sec--row .sec-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.sec--row .sec-head { position: static; }
.sec--row .sec-body { display: contents; }
.sec--row .sec-body > p { align-self: end; padding-bottom: 6px; }
.sec--row .steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(8px, 2vw, 24px); border-bottom: 0; border-top: 1px solid var(--line); }
.sec--row .steps li { display: block; border-top: 0; padding: 26px 32px 0 0; }
.sec--row .steps li + li { border-left: 1px solid var(--line); padding-left: 32px; }
.sec--row .steps .num { display: block; padding: 0 0 44px; }
.sec--row .steps li strong:first-child { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.035em; margin-bottom: 10px; }
.sec--row .steps li p { max-width: 22em; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.fit h3 { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); padding-bottom: 16px; }
.fit .points { margin-top: 0; }
.fit .points li { padding: 16px 0 18px 26px; position: relative; font-size: 16px; line-height: 1.5; }
.fit .points li::before { position: absolute; left: 0; top: 15px; font-family: var(--mono); color: var(--fg); }
.fit-col--yes li::before { content: "+"; } .fit-col--no li::before { content: "\2212"; }
.fit .points li strong:first-child { font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 4px; }

.log { margin-top: 36px; border-bottom: 1px solid var(--line); }
.log li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; padding: 22px 0 24px; border-top: 1px solid var(--line); align-items: baseline; }
.log time, .log-link { font-size: 12.5px; color: var(--muted); }
.log h3 { font-size: 1.15rem; font-weight: 550; letter-spacing: -.015em; }
.log p { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 34em; }
.log code { font-family: var(--mono); font-size: .9em; color: var(--fg); }
.log-link { color: var(--fg); white-space: nowrap; }

.faq { border-bottom: 1px solid var(--line); }
.faq > div { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.faq dt { font-size: 1.15rem; font-weight: 550; letter-spacing: -.015em; }
.faq dd { margin-top: 8px; color: var(--muted); max-width: 36em; }
.faq dd code, .sec-body p code { font-family: var(--mono); font-size: .88em; color: var(--fg); }

.sec--cta .cta { max-width: calc(820px + var(--gut) * 2); margin-inline: auto 0; margin-left: max(var(--gut), calc((100% - var(--wrap)) / 2)); padding-inline: 0 var(--gut); width: auto; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); letter-spacing: -.045em; line-height: 1; max-width: 13em; }
.cta > p:not(.label) { margin: 22px 0 32px; font-size: 1.15rem; color: var(--muted); }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.cta-note a { color: var(--fg); }

/* ---------- code, prose, doc ---------- */
.code { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); overflow: hidden; margin: 20px 0; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; height: 38px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.copy { height: 26px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--fg); font: 500 12px var(--sans); }
.copy:hover { background: var(--line-2); }
.code pre { padding: 16px; overflow-x: auto; font: 400 13.5px/1.6 var(--mono); tab-size: 2; }
.sec--install .code pre { font-size: 16px; padding: 22px 18px; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line-2); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font: 500 11.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td code, .prose code, .doc code { font-family: var(--mono); font-size: .9em; }
.prose > * + * { margin-top: .9em; }
.prose ul { list-style: none; } .prose ul li { padding-left: 18px; position: relative; } .prose ul li + li { margin-top: .5em; }
.prose ul li::before { content: "\2013"; position: absolute; left: 0; }
.prose strong { color: var(--fg); font-weight: 550; }

.doc { max-width: calc(780px + var(--gut) * 2); padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 128px); margin-left: max(0px, calc((100% - var(--wrap) - var(--gut) * 2) / 2)); }
.doc h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; font-weight: 560; margin-bottom: 28px; }
.doc h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); letter-spacing: -.028em; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: var(--muted); }
.doc h1 + p { font-size: 1.2rem; }
.doc > * + * { margin-top: 1em; }
.doc strong { color: var(--fg); font-weight: 550; }
.doc a { color: var(--fg); overflow-wrap: anywhere; }
.doc ul, .doc ol { display: grid; gap: 10px; }
.doc ul li { padding-left: 22px; position: relative; }
.doc ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--fg); font-family: var(--mono); }
.doc ol { counter-reset: n; }
.doc ol li { counter-increment: n; padding-left: 40px; position: relative; }
.doc ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 4px; font: 500 12px var(--mono); color: var(--fg); }

.doc-grid { display: grid; grid-template-columns: minmax(0, 780px) minmax(0, 260px); justify-content: space-between; gap: 48px; align-items: start; }
.doc-grid .doc { max-width: none; margin: 0; padding-inline: 0; }
.doc-aside { position: sticky; top: calc(var(--nav-h) + 32px); margin-top: clamp(48px, 7vw, 96px); padding: 18px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); font-size: 14px; }
.doc-aside h2 { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-aside a { display: block; width: fit-content; padding: 4px 0; font-family: var(--mono); font-size: 13px; }
.doc-aside .btn { margin-top: 14px; width: 100%; font-family: var(--sans); }
.doc-aside p { color: var(--muted); margin-bottom: 10px; }
@media (max-width: 980px) { .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .doc-aside { position: static; order: -1; margin-top: 28px; } .doc-grid .doc { padding-top: 36px; } }

/* ---------- agent view ---------- */
.agent { display: none; padding-block: 28px clamp(64px, 9vw, 112px); }
html[data-view="agent"] [data-human] { display: none; }
html[data-view="agent"] .agent { display: block; }
.agent-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 13px; }
.agent-bar a { color: var(--fg); }
.agent-bar span { color: var(--muted); margin-left: 10px; }
.agent-md { font: 400 14px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 88ch; color: var(--fg); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 72px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; color: var(--muted); max-width: 22em; }
.foot h2 { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot nav a { display: block; width: fit-content; padding: 4px 0; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

/* ---------- command menu ---------- */
.pal { position: fixed; inset: 0; z-index: 60; display: grid; justify-items: center; align-content: start; padding: 16vh 16px 0; background: color-mix(in srgb, var(--bg) 78%, transparent); }
.pal[hidden] { display: none; }
.pal-box { width: min(560px, 100%); border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.pal-box input { width: 100%; height: 54px; padding: 0 18px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 17px; outline: none; }
.pal-list { max-height: min(50vh, 380px); overflow-y: auto; padding: 6px; }
.pal-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 9px; font-size: 15px; cursor: pointer; }
.pal-list li small { font: 400 12px var(--mono); color: var(--muted); }
.pal-list li[aria-selected="true"] { background: var(--fg); color: var(--bg); }
.pal-list li[aria-selected="true"] small { color: inherit; opacity: .7; }
.pal-empty { padding: 18px; color: var(--muted); font-size: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .fig { max-width: 620px; }
  .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sec-head { position: static; }
  .sec--row .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .sec--cta .cta { margin-left: 0; padding-inline: var(--gut); }
}
@media (max-width: 760px) {
  .nav-links, .tool--k, .nav-tools > .btn { display: none; }
  .nav-in { gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .fit { grid-template-columns: 1fr; gap: 40px; }
  .log li { grid-template-columns: 1fr; gap: 6px; }
  .wl { grid-template-columns: 1fr; }
  .wl-msg { padding-left: 4px; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); }
  .sec--row .steps { grid-template-columns: 1fr; }
  .sec--row .steps li, .sec--row .steps li + li { padding: 22px 0 24px; border-left: 0; border-top: 1px solid var(--line); }
  .sec--row .steps li:first-child { border-top: 0; }
  .sec--row .steps .num { padding-bottom: 14px; }
  .fig-control { grid-template-columns: auto minmax(0, 1fr) auto; }
  .fig-control label { grid-column: 1 / -1; }
  .trace-lane { grid-template-columns: 56px minmax(0, 1fr); }
  .trace-key { margin-left: 0; }
}
/* "Reduce motion" in the dock (html.reduce-motion, see motion.js). The OS setting is not used: motion plays by default. */
html.reduce-motion { scroll-behavior: auto; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { transition: none !important; animation: none !important; }

/* Motion, colour and the newer sections. Green means live. Amber means waiting. */
:root, :root[data-theme="dark"] { --wait: #F2A541; --tint-live: rgba(47, 163, 107, .14); --tint-wait: rgba(242, 165, 65, .09); }
:root[data-theme="light"] { --wait: #8F5200; --tint-live: rgba(21, 94, 63, .10); --tint-wait: rgba(143, 82, 0, .09); }
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.c-wait { color: var(--wait); } .c-live { color: var(--accent); }

/* ---------- scroll progress, reveal ---------- */
.nav::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--wait), var(--accent)); transform: scaleX(var(--scroll, 0)); transform-origin: 0 50%; }


/* ---------- pointer spotlight on cards, border beam ---------- */
.spot { position: relative; }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 2;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 68%);
  -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); }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--tint-live), transparent 70%); }
@media (hover: hover) { .spot:hover::before, .spot:hover::after { opacity: 1; } }
.beam { position: relative; border-radius: 16px; }
.beam > .beam-line, .beam::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: conic-gradient(from var(--beam), transparent 0 72%, var(--accent) 86%, transparent 96%);
  -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);
  animation: beam 7s linear infinite; }
@keyframes beam { to { --beam: 360deg; } }

/* ---------- buttons ---------- */
.btn { transition: background .15s, transform .25s var(--ease); will-change: transform; }
.btn:not(.btn--quiet):not(.btn--sm) { position: relative; overflow: hidden; }
.btn:not(.btn--quiet):not(.btn--sm)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--accent) 55%, transparent) 50%, transparent 65%); transform: translateX(-120%); }
.btn:not(.btn--quiet):not(.btn--sm):hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(46% 60% at 80% 42%, var(--tint-live), transparent 70%), radial-gradient(40% 55% at 6% 96%, var(--tint-wait), transparent 70%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.fig-wrap { min-width: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.caret { display: inline-block; width: .075em; height: .78em; margin-left: .07em; vertical-align: -.04em; background: var(--wait); border-radius: 1px; animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.status .dot { background: var(--wait); box-shadow: 0 0 0 0 var(--wait); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wait) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* figure: stage light follows the state, waits are amber */
.fig-stage { background: radial-gradient(58% 62% at 50% 52%, color-mix(in srgb, var(--wait) calc((1 - var(--lead, 0)) * 11%), transparent), transparent 72%), radial-gradient(58% 62% at 50% 46%, color-mix(in srgb, var(--accent) calc(var(--lead, 0) * 13%), transparent), transparent 72%); }
.fig-state.is-wait { color: var(--wait); } .fig-state.is-wait .dot { background: var(--wait); animation: blink .7s steps(1) infinite; }
.tb-wait { background: repeating-linear-gradient(-55deg, var(--wait) 0 1.5px, transparent 1.5px 5px); }
.tb-think, .tb-wait, .tb-fetch { transition: filter .2s; }
.trace-key .tb-wait { background: repeating-linear-gradient(-55deg, var(--wait) 0 1.5px, transparent 1.5px 4px); }
.fig-stats dd { transition: color .3s; }
.fig[data-state="ahead"] [data-stat="pct"], .fig[data-state="ahead"] [data-stat="total"] { color: var(--accent); }
.fig[data-state="behind"] [data-stat="pct"] { color: var(--wait); }
.fig.is-auto .fig-hint::before { content: "auto \00b7  "; }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); padding-block: 22px; }
.ticker-in { display: flex; align-items: center; gap: 28px; }
.ticker-lead { flex: none; font-size: 12px; letter-spacing: .04em; color: var(--muted); max-width: 16em; }
.ticker-view { flex: 1; overflow: hidden; min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker-view:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 520; letter-spacing: -.02em; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--echo-1); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sub { margin-top: 20px; font-size: clamp(1.02rem, 1.3vw, 1.14rem); line-height: 1.55; color: var(--muted); max-width: 30em; text-wrap: pretty; }
.sub em { font-style: normal; color: var(--accent); }
.sec-head--wide { position: static; max-width: 46em; }
.sec-head--wide .sub { max-width: 38em; }

/* problem: the loop plays across the three columns */
.sec--row .steps li { position: relative; }
.sec--row .steps li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; animation: loop1 7.5s linear infinite; }
.sec--row .steps li:nth-child(2)::before { background: var(--wait); animation-name: loop2; }
.sec--row .steps li:nth-child(3)::before { background: var(--accent); animation-name: loop3; }
.sec--row .steps li:nth-child(2) strong:first-child { color: var(--wait); }
@keyframes loop1 { 0% { transform: scaleX(0); } 22%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes loop2 { 0%, 22% { transform: scaleX(0); } 36% { transform: scaleX(.42); } 50% { transform: scaleX(.5); } 64%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes loop3 { 0%, 64% { transform: scaleX(0); } 86%, 92% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- live trace console ---------- */
.console { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.console-dots { display: inline-flex; gap: 6px; } .console-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.console-name { color: var(--fg); }
.console-tag, .code-tag { padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.console-bar .seg { margin-left: auto; }
.seg--sm { padding: 2px; } .seg--sm button { height: 24px; padding: 0 10px; font: 500 11.5px var(--mono); }
.console-lines { position: relative; height: 356px; padding: 14px 16px; font-size: 13px; line-height: 1; overflow: hidden; }
.console-lines::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.tl { display: grid; grid-template-columns: 44px 52px minmax(0, 1.3fr) minmax(40px, 1fr) 52px; align-items: center; gap: 10px; height: 30px; color: var(--muted); animation: tl-in .35s var(--ease) both; }
@keyframes tl-in { from { opacity: 0; transform: translateY(8px); } }
.tl-k { color: var(--fg); } .tl-m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tl-d { text-align: right; font-variant-numeric: tabular-nums; }
.tl-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; } .tl-bar i { display: block; height: 100%; width: 0; background: var(--fg); border-radius: 2px; }
.tl-wait, .tl-wait .tl-k { color: var(--wait); } .tl-wait .tl-bar i { background: var(--wait); }
.tl-hit, .tl-hit .tl-k { color: var(--accent); } .tl-hit .tl-bar i { background: var(--accent); }
.tl-done { color: var(--fg); } .tl-done .tl-bar { visibility: hidden; }
.tl.is-active .tl-k::after { content: "\2588"; margin-left: 4px; font-size: .7em; animation: blink .8s steps(1) infinite; }
.console-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.console-foot b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; } .console-foot .c-wait b { color: var(--wait); }
.sec--trace .fig-text { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- architecture flow ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1.15fr) 96px minmax(0, 1fr); align-items: stretch; margin-top: clamp(36px, 5vw, 64px); }
.node { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); padding: 22px 22px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.node .num { display: block; font-size: 12px; margin-bottom: 40px; }
.node-text strong:first-child { display: block; color: var(--fg); font-size: 1.45rem; font-weight: 550; letter-spacing: -.03em; line-height: 1.2; margin-bottom: 8px; }
.node--baid { border-color: var(--accent); background: linear-gradient(180deg, var(--tint-live), transparent 60%), var(--surface); }
.node--baid .num { margin-bottom: 0; }
.node-mark { display: block; height: 76px; margin: 2px 0 6px -6px; } .node-mark .mark { height: 100%; width: auto; }
.wire { position: relative; align-self: center; height: 44px; display: grid; align-content: space-between; }
.wire i { display: block; height: 2px; background: repeating-linear-gradient(90deg, var(--echo-1) 0 6px, transparent 6px 14px); background-size: 14px 2px; animation: wire 0.9s linear infinite; }
.wire i:nth-child(2) { background-image: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 14px); animation-direction: reverse; animation-duration: .6s; }
.wire--a i:nth-child(3) { animation-duration: 1.4s; }
.wire--b i:nth-child(1), .wire--b i:nth-child(3) { background-image: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 14px); animation-direction: reverse; }
.wire--b i:nth-child(2) { background-image: repeating-linear-gradient(90deg, var(--echo-1) 0 6px, transparent 6px 14px); animation-direction: normal; animation-duration: 1.3s; }
@keyframes wire { to { background-position: 14px 0; } }
.points--cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 56px); border-bottom: 0; }
.points--cols li { padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 16px; }
.points--cols li strong:first-child { font-size: 1.15rem; letter-spacing: -.015em; color: var(--fg); font-weight: 550; display: block; margin-bottom: 6px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 5vw, 56px); }
.stat { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); padding: 22px 22px 20px; display: flex; flex-direction: column; min-height: 230px; }
.stat-n { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.06em; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--fg); }
.stat-n small { font-size: .42em; letter-spacing: -.02em; margin-left: .08em; color: var(--muted); }
.stat:nth-child(1) .stat-n { color: var(--wait); } .stat:nth-child(2) .stat-n { color: var(--accent); }
.stat-l { margin-top: 18px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.stat-l code { font-family: var(--mono); font-size: .9em; color: var(--fg); }
.stat-tag { margin-top: auto; padding-top: 18px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; border: 1px solid var(--muted); vertical-align: 1px; }
.stat-tag--fact::before { background: var(--muted); }

/* ---------- stories ---------- */
.story-tabs { display: grid; margin-top: 32px; border-top: 1px solid var(--line); }
.story-tabs button { position: relative; display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 1.15rem; font-weight: 520; letter-spacing: -.02em; color: var(--muted); transition: color .2s, padding .3s var(--ease); }
.story-tabs button .mono { font-size: 12px; font-weight: 400; letter-spacing: 0; }
.story-tabs button:hover { color: var(--fg); }
.story-tabs button[aria-selected="true"] { color: var(--fg); padding-left: 10px; }
.story-prog { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.story-tabs.is-auto button[aria-selected="true"] .story-prog { animation: prog 6.5s linear forwards; }
.story-tabs:not(.is-auto) button[aria-selected="true"] .story-prog { transform: scaleX(1); }
@keyframes prog { to { transform: scaleX(1); } }
.story { border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.story[hidden] { display: none; }
html:not(.js) .story[hidden] { display: block; margin-top: 14px; }
.story-name { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.story-line { margin-top: 14px; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -.025em; color: var(--fg); text-wrap: pretty; max-width: 24em; }
.story-mem { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.sbars { margin-top: 32px; display: grid; gap: 14px; }
.sbar { display: grid; grid-template-columns: 58px minmax(0, 1fr) 62px; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.sbar b { font-weight: 500; font-size: 14px; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; }
.sbar--ahead b { color: var(--accent); }
.sbar-track { display: flex; gap: 2px; height: 18px; transform-origin: 0 50%; }
.sg { display: block; min-width: 2px; border-radius: 3px; }
.sg-think { background: var(--fg); } .sg-wait { background: repeating-linear-gradient(-55deg, var(--wait) 0 1.5px, transparent 1.5px 5px); }
.sg-hit { background: var(--accent); border-radius: 2px; }
.story.is-on .sbar-track { animation: grow .9s var(--ease) both; } .story.is-on .sbar--ahead .sbar-track { animation-delay: .25s; }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } }
.story-note { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.story-illus { margin-left: auto; color: var(--muted); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- code tabs ---------- */
.codetabs { margin: 0; }
.codetabs .code-bar { height: 46px; padding-left: 8px; gap: 10px; }
.ctabs { display: flex; gap: 2px; margin-right: auto; }
.ctabs button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 500 12.5px var(--mono); }
.ctabs button:hover { color: var(--fg); }
.ctabs button[aria-selected="true"] { background: var(--surface-2); color: var(--fg); }
.codetabs pre { min-height: 232px; font-size: 14px; line-height: 1.65; padding: 20px 18px; }
.codetabs pre[hidden] { display: none; }
.codetabs pre code::after { content: "\2588"; color: var(--accent); margin-left: 1px; animation: blink 1s steps(1) infinite; font-size: .8em; }
.tk-k { color: var(--accent); } .tk-s { color: var(--wait); } .tk-n { color: var(--fg); font-weight: 600; } .tk-p { color: var(--muted); }
.sec--code .sec-body > p { margin-top: 20px; font-size: 15px; }

/* ---------- roadmap ---------- */
.road { position: relative; margin: 34px 0 30px; display: grid; }
.road li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding-bottom: 28px; color: var(--muted); }
.road li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: -6px; width: 1px; background: var(--line-2); }
.road li:last-child::before { display: none; } .road li:last-child { padding-bottom: 0; }
.road-dot { width: 13px; height: 13px; margin-top: 6px; border-radius: 50%; border: 1px solid var(--muted); background: var(--bg); position: relative; z-index: 1; }
.road .is-now .road-dot { border-color: var(--accent); background: var(--accent); animation: ping-live 2.2s var(--ease) infinite; }
@keyframes ping-live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.road li strong:first-child { display: block; color: var(--fg); font-size: 1.25rem; font-weight: 550; letter-spacing: -.02em; margin-bottom: 4px; }
.road .is-now strong:first-child { color: var(--accent); }
.fx .road li::before { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1s var(--ease) .3s; }
.fx .road li.in::before { transform: scaleY(1); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.member { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); padding: 20px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--fg); color: var(--bg); font-size: 24px; font-weight: 620; letter-spacing: -.04em; box-shadow: 0 5px 0 var(--echo-1), 0 10px 0 var(--echo-2); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.member:hover .avatar { transform: translateY(-5px); box-shadow: 0 10px 0 var(--echo-1), 0 20px 0 var(--echo-2); }
.member h3 { color: var(--fg); font-size: 1.2rem; font-weight: 550; letter-spacing: -.02em; margin-bottom: 4px; }
.member-link { display: inline-block; margin-top: 12px; font-size: 12.5px; color: var(--fg); }
.avatar { font-size: 21px; }
.member-social { display: flex; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.member-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.member-social a:hover { color: var(--fg); border-color: var(--fg); background: var(--surface-2); }
.member-social a:focus-visible { border-radius: 50%; }
.team-cta { margin-top: 22px; }
.team-cta a { display: inline-flex; align-items: center; gap: 10px; font: 500 14px var(--mono); color: var(--fg); text-decoration: none; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .2s, background .2s; }
.team-cta a:hover { border-color: var(--fg); background: var(--surface-2); }
.team-cta a:focus-visible { border-radius: 999px; }
.team-cta a > span:last-child { color: var(--muted); }

/* ---------- faq accordion ---------- */
.faq { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 1.15rem; font-weight: 550; letter-spacing: -.015em; }
.qa-mark { position: relative; flex: none; width: 26px; height: 26px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .35s var(--ease), background .2s, border-color .2s; }
.qa-mark::before, .qa-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; background: currentColor; }
.qa-mark::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.qa[open] .qa-mark { transform: rotate(180deg); background: var(--fg); color: var(--bg); border-color: var(--fg); } .qa[open] .qa-mark::after { transform: rotate(0); }
.qa summary:hover .qa-mark { border-color: var(--fg); }
.qa-body { padding: 0 46px 24px 0; color: var(--muted); max-width: 36em; }
.qa-body a { color: var(--fg); } .qa-body code { font-family: var(--mono); font-size: .88em; color: var(--fg); }
.qa[open] .qa-body { animation: rise .45s var(--ease) both; }

/* ---------- CTA with the mark that follows the pointer ---------- */
.sec--cta { position: relative; overflow: hidden; }
.sec--cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 84% 50%, var(--tint-live), transparent 70%); }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.sec--cta .cta { max-width: none; margin: 0; padding: 0; width: auto; }
.cta-mark { justify-self: center; width: min(100%, 340px); }
.cta-mark .mark { width: 100%; height: auto; }
.mark--follow [data-echo] { transition: transform .5s var(--ease); }
.mark--follow [data-echo="1"] { transform: translate(calc(var(--px, 0) * -26px), calc(36px + var(--py, 0) * -20px)); }
.mark--follow [data-echo="2"] { transform: translate(calc(var(--px, 0) * -52px), calc(72px + var(--py, 0) * -40px)); }

/* ---------- footer wordmark ---------- */
.foot { overflow: hidden; }
.foot-word { margin-bottom: 40px; line-height: .8; user-select: none; }
.foot-word span { display: block; font-size: clamp(7rem, 27vw, 25rem); font-weight: 640; letter-spacing: -.075em; color: var(--fg); margin-left: -.05em;
  text-shadow: calc(var(--px, 0) * -14px) calc(.035em + var(--py, 0) * -8px) 0 var(--echo-1), calc(var(--px, 0) * -28px) calc(.07em + var(--py, 0) * -16px) 0 var(--echo-2); transition: text-shadow .5s var(--ease); }

/* ---------- nav ---------- */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.brand .mark [data-echo] { transition: transform .35s var(--ease); }
.brand:hover .mark [data-echo="1"] { transform: translateY(58px) !important; } .brand:hover .mark [data-echo="2"] { transform: translateY(116px) !important; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) { .nav-links a:nth-child(-n+4) { display: none; } }
@media (max-width: 980px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .wire { height: 56px; width: 44px; justify-self: center; grid-auto-flow: column; justify-content: space-between; align-content: stretch; }
  .wire i { width: 2px; height: 100%; background-image: repeating-linear-gradient(180deg, var(--echo-1) 0 6px, transparent 6px 14px) !important; background-size: 2px 14px; animation-name: wire-v; }
  .wire i:nth-child(2), .wire--b i:nth-child(1), .wire--b i:nth-child(3) { background-image: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 14px) !important; }
  .wire--b i:nth-child(2) { background-image: repeating-linear-gradient(180deg, var(--echo-1) 0 6px, transparent 6px 14px) !important; }
  .node .num { margin-bottom: 18px; }
  .points--cols { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-mark { width: 200px; justify-self: start; order: -1; }
}
@keyframes wire-v { to { background-position: 0 14px; } }
@media (max-width: 560px) {
  .ticker-in { flex-direction: column; align-items: flex-start; gap: 12px; } .ticker-view { width: 100%; }
  .stat { min-height: 190px; padding: 16px; } .stats { gap: 10px; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .tl { grid-template-columns: 40px 44px minmax(0, 1fr) 46px; gap: 8px; font-size: 12px; } .tl-bar { display: none; }
  .console-lines { height: 330px; padding: 12px; }
  .console-name { display: none; }
  .sbar { grid-template-columns: 50px minmax(0, 1fr) 52px; }
  .qa-body { padding-right: 0; }
  .codetabs .code-tag { display: none; } .ctabs button { padding: 0 9px; white-space: nowrap; font-size: 12px; } .codetabs pre { font-size: 12.5px; }
}
/* "Reduce motion" in the dock (html.reduce-motion, see motion.js). The OS setting is not used: motion plays by default. */
.reduce-motion.fx [data-reveal] { opacity: 1; transform: none; }
.reduce-motion .ticker-track { animation: none; } .reduce-motion .caret { opacity: 1; }
.reduce-motion .sec--row .steps li::before { transform: scaleX(1); }
.reduce-motion.fx .road li::before { transform: none; }

/* ---------- words that arrive ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .08em .02em .16em; margin: -.08em -.02em -.16em; }
.wi { display: inline-block; transform: translateY(112%) rotate(5deg); transform-origin: 0 100%; }
.in .wi, .in.is-split .wi { transform: none; transition: transform 1s var(--ease); transition-delay: calc(var(--w, 0) * 60ms + var(--i, 0) * 60ms); }
.c { display: inline-block; transition: transform .35s var(--ease), color .35s; }
/* hiding is instant; only the arrival is animated */
.fx [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(10px); }
.fx [data-reveal].in { opacity: 1; transform: none; filter: none; transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.fx .hero-copy > [data-reveal], .fx .fig-wrap[data-reveal], .fx .pagehead [data-reveal] { animation: none; }
.fx .fig-wrap[data-reveal] { transform: translateY(40px) scale(.965); } .fx .fig-wrap[data-reveal].in { transform: none; transition-duration: 1.2s; transition-delay: .25s; }
/* until the motion layer is ready the hero stays hidden; if it never arrives, show it anyway */
.js:not(.fx) .hero-copy, .js:not(.fx) .fig-wrap, .js:not(.fx) .pagehead .wrap { opacity: 0; animation: show-anyway 0s linear 2.5s forwards; }
@keyframes show-anyway { to { opacity: 1; } }
.nav-in > * { animation: drop .8s var(--ease) both; } .nav-in > :nth-child(2) { animation-delay: .08s; } .nav-in > :nth-child(3) { animation-delay: .16s; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
.stat, .node, .plan, .member, .story, .console, .codetabs { transition: transform .3s var(--ease), border-color .3s; }
/* section rules draw themselves in */
.sec, .ticker, .scrolly { border-top-color: transparent; position: relative; }
.sec::before, .ticker::before, .scrolly::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease); pointer-events: none; }
.sec--cta::before { background: radial-gradient(40% 70% at 84% 50%, var(--tint-live), transparent 70%); inset: 0; height: auto; transform: none; }
.sec.is-seen::before, .ticker.is-seen::before, .scrolly.is-seen::before, html:not(.fx) .sec::before, html:not(.fx) .ticker::before, html:not(.fx) .scrolly::before { transform: scaleX(1); }
.sec--plans::before { display: none; }

/* ---------- pointer: page light and cursor ring ---------- */
.aura { position: fixed; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px; border-radius: 50%; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .6s; background: radial-gradient(closest-side, var(--tint-live), transparent 72%); }
.cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; z-index: 100; opacity: 0; transition: opacity .3s; }
.cursor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--fg); opacity: .45; transition: transform .35s var(--ease), background .25s, opacity .25s, border-color .25s; }
.cursor::after { content: "drag"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.6); font: 500 10.5px var(--mono); letter-spacing: .04em; color: var(--bg); opacity: 0; transition: opacity .2s, transform .3s var(--ease); }
.has-pointer .aura { opacity: 1; } .has-pointer .cursor { opacity: 1; }
.cursor.is-hot::before { transform: scale(1.7); background: var(--tint-live); border-color: var(--accent); opacity: 1; }
.cursor.is-drag::before { transform: scale(1.9); background: var(--accent); border-color: var(--accent); opacity: 1; }
.cursor.is-drag::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-down::before { transform: scale(.7); }
.cursor.is-drag.is-down::before { transform: scale(1.5); }
.js .fig-stage { cursor: grab; } .js .fig-stage:active { cursor: grabbing; }
.fig-hint { display: none !important; }

/* ---------- Human / Agent dock (appears once you scroll) ---------- */
.dock { position: fixed; left: 50%; bottom: 22px; z-index: 39; transform: translate(-50%, 170%); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.is-deep .dock, .dock:focus-within, html[data-view="agent"] .dock { transform: translate(-50%, 0); opacity: 1; }
.dock .seg { background: var(--surface); border-color: var(--line-2); box-shadow: 0 5px 0 var(--echo-2), 0 18px 34px -12px rgba(0, 0, 0, .6); padding: 4px; }
.dock .seg button { height: 32px; padding: 0 16px; font: 500 12.5px var(--mono); letter-spacing: .02em; transition: background .25s, color .25s; }
html:not(.js) .dock { display: none; }
@media (max-width: 560px) { .dock { bottom: 14px; } .dock .seg button { height: 30px; padding: 0 13px; } }

/* ---------- a little parallax on scroll ---------- */
.fx .hero-bg { transform: translateY(calc(var(--sy, 0) * .12px)); }
.fx .hero::before { transform: translateY(calc(var(--sy, 0) * .2px)); }

/* "Reduce motion" in the dock */
.reduce-motion .wi { transform: none; } .reduce-motion.fx [data-reveal] { opacity: 1; transform: none; filter: none; }
.reduce-motion .sec::before, .reduce-motion .ticker::before, .reduce-motion .scrolly::before { transform: scaleX(1); }
.reduce-motion .nav-in > * { animation: none; } .reduce-motion .aura, .reduce-motion .cursor { display: none; }
.reduce-motion.fx .hero-bg, .reduce-motion.fx .hero::before { transform: none; }
.reduce-motion.js:not(.fx) .hero-copy, .reduce-motion.js:not(.fx) .fig-wrap, .reduce-motion.js:not(.fx) .pagehead .wrap { opacity: 1; animation: none; }

/* ---------- intro: the mark is pulled apart and the page opens between its strokes ----------
   Markup: introCurtain() in templates.mjs. Timing: html.intro (head script) shows the curtain
   while the page loads; html.intro-go (intro.js) plays it. If the script never runs, the
   curtain lets go by itself after 4 s. */
.intro-curtain { display: none; }
.intro .intro-curtain { display: block; position: fixed; inset: 0; z-index: 200; --w: clamp(104px, 12vw, 168px); animation: intro-bail .4s ease 4s forwards; }
.intro-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); }
.intro-half--a { top: 0; background: linear-gradient(180deg, var(--bg) 45%, color-mix(in srgb, var(--bg) 93%, var(--accent))); }
.intro-half--b { bottom: 0; background: linear-gradient(0deg, var(--bg) 45%, color-mix(in srgb, var(--bg) 93%, var(--accent))); }
/* when the halves part, the seam splits into two lines that ride on their edges */
.intro-half::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent) 28%, var(--accent) 72%, transparent); opacity: 0; }
.intro-half--a::after { bottom: 1%; } .intro-half--b::after { top: 1%; }
.intro-go .intro-half::after { animation: intro-edge 1.8s linear both; }
@keyframes intro-edge { 0%, 44% { opacity: 0; } 44.5% { opacity: 1; } 100% { opacity: .35; } }
.intro-seam { position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: linear-gradient(90deg, transparent, var(--accent) 28%, var(--accent) 72%, transparent); transform: scaleX(0); opacity: 0; }
.intro-mark { position: absolute; left: calc(50% - var(--w) / 2); top: calc(50% - var(--w) * .5898); width: var(--w); height: calc(var(--w) * 1.3228); overflow: visible; }
.intro-go .intro-curtain { animation: none; }
.intro-go .intro-e1 { animation: intro-e1 .6s cubic-bezier(.2, .8, .2, 1) .05s both; }
.intro-go .intro-e2 { animation: intro-e2 .6s cubic-bezier(.2, .8, .2, 1) .14s both; }
.intro-go .intro-seam { animation: intro-seam .5s var(--ease) .3s both, intro-out .01s linear .8s forwards; }
.intro-go .intro-mark--a { animation: intro-up 1s .72s both; } .intro-go .intro-half--a { animation: intro-up 1s .8s both; }
.intro-go .intro-mark--b { animation: intro-down 1s .72s both; } .intro-go .intro-half--b { animation: intro-down 1s .8s both; }
.intro-skip .intro-curtain { opacity: 0; transition: opacity .25s; pointer-events: none; }
@keyframes intro-e1 { from { transform: translateY(0); } to { transform: translateY(36px); } }
@keyframes intro-e2 { from { transform: translateY(0); } to { transform: translateY(72px); } }
@keyframes intro-seam { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes intro-out { to { opacity: 0; } }
/* a small squeeze toward each other first, then the pull */
@keyframes intro-up { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.45, 0, .55, 1); } 16% { transform: translateY(8px); animation-timing-function: cubic-bezier(.7, 0, .12, 1); } 100% { transform: translateY(-64vh); } }
@keyframes intro-down { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.45, 0, .55, 1); } 16% { transform: translateY(-8px); animation-timing-function: cubic-bezier(.7, 0, .12, 1); } 100% { transform: translateY(64vh); } }
@keyframes intro-bail { to { opacity: 0; visibility: hidden; } }
:root[data-theme="light"] .intro-half--a { background: linear-gradient(180deg, var(--bg) 50%, color-mix(in srgb, var(--bg) 97%, var(--accent))); }
:root[data-theme="light"] .intro-half--b { background: linear-gradient(0deg, var(--bg) 50%, color-mix(in srgb, var(--bg) 97%, var(--accent))); }

/* Shell: fuller nav, mobile sheet, chat launcher, framed footer, inner pages, the scroll explainer. */

/* ---------- nav ---------- */
.nav { transition: box-shadow .3s; }
.is-scrolled .nav { box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .7); }
.nav-in { gap: 22px; }
.nav-links { gap: 20px; align-items: center; }
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 14.5px; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--fg); }
.menu-btn svg { transition: transform .25s var(--ease); } .menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-panel { position: absolute; left: -16px; top: calc(100% + 14px); width: 320px; padding: 8px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55); animation: pop .22s var(--ease); z-index: 30; }
.menu-panel[hidden] { display: none; }
.menu-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--fg); }
.menu-panel a::after { display: none; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--surface-2); }
.menu-panel b { font-weight: 550; font-size: 14.5px; } .menu-panel span { font-size: 13px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.gh { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 6px 0 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: border-color .2s; }
.gh:hover { border-color: var(--fg); } .gh:hover svg { fill: var(--wait); stroke: var(--wait); transform: rotate(72deg) scale(1.1); }
.gh svg { transition: transform .5s var(--ease), fill .2s, stroke .2s; }
.gh-tag { padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.nav-login { padding: 0 6px; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.nav-login:hover, .nav-login[aria-current] { color: var(--fg); }
.nav-burger { display: none; }

.sheet { position: fixed; inset: var(--nav-h) 0 0; z-index: 19; background: var(--bg); overflow-y: auto; padding-block: 12px 40px; }
.sheet[hidden] { display: none; }
.sheet nav { display: grid; }
.sheet a:not(.btn) { display: flex; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.5rem; font-weight: 540; letter-spacing: -.03em; text-decoration: none; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 35ms); }
.sheet a .mono { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.sheet .btn { margin-top: 24px; height: 54px; font-size: 17px; }

@media (max-width: 1140px) { .nav-links { display: none; } .nav-burger { display: inline-flex; } }
@media (max-width: 760px) { .gh, .nav-login { display: none; } }
@media (max-width: 420px) { .seg button { padding: 0 9px; } .brand span { display: none; } }

/* ---------- chat launcher ---------- */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; justify-items: end; gap: 12px; }
.chat-btn { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--fg); color: var(--bg); box-shadow: 0 5px 0 var(--echo-1), 0 10px 0 var(--echo-2), 0 18px 34px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.chat-btn:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--echo-1), 0 18px 0 var(--echo-2), 0 26px 40px -10px rgba(0, 0, 0, .6); }
.chat-btn[aria-expanded="true"] { transform: translateY(5px); box-shadow: 0 0 0 var(--echo-1), 0 0 0 var(--echo-2); }
.chat-btn:focus-visible { border-radius: 50%; }
.chat-panel { width: min(330px, calc(100vw - 44px)); padding: 16px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); animation: pop-up .28s var(--ease); }
.chat-panel[hidden] { display: none; }
@keyframes pop-up { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.chat-title { font-size: 1.25rem; font-weight: 560; letter-spacing: -.02em; }
.chat-text { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.chat-panel a { display: grid; gap: 2px; padding: 11px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .2s, background .2s; }
.chat-panel a:hover { border-color: var(--accent); background: var(--tint-live); }
.chat-panel b { font-weight: 550; font-size: 14.5px; } .chat-panel span { font-size: 12.5px; color: var(--muted); }
html[data-view="agent"] .chat { display: none; }
html:not(.js) .chat { display: none; }

/* ---------- scroll explainer ---------- */
.scrolly { position: relative; border-top: 1px solid var(--line); }
.scrolly-sticky { padding-block: clamp(56px, 8vw, 110px); }
.scrolly.is-live { height: 400vh; }
.scrolly.is-live .scrolly-sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); display: grid; align-items: center; padding-block: 20px; overflow: hidden; }
.scrolly-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.chapters { margin-top: 26px; border-top: 1px solid var(--line); }
.chapters li { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 15px 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; line-height: 1.45; transition: opacity .45s var(--ease), padding .45s var(--ease); }
.chapters .num { font-size: 12px; padding-top: 5px; }
.chapters li strong:first-child { display: block; color: var(--fg); font-size: 1.2rem; font-weight: 550; letter-spacing: -.02em; margin-bottom: 3px; }
.scrolly.is-live .chapters li { opacity: .34; }
.scrolly.is-live .chapters li.is-on { opacity: 1; padding-left: 8px; }
.scrolly.is-live .chapters li.is-on .num { color: var(--accent); }
.scrolly.is-live .chapters li:nth-child(2).is-on strong:first-child, .scrolly.is-live .chapters li:nth-child(3).is-on strong:first-child { color: var(--wait); }
.scrolly.is-live .chapters li:nth-child(4).is-on strong:first-child { color: var(--accent); }
.scrolly-stage { position: relative; border: 1px solid var(--line-2); border-radius: 18px; background: radial-gradient(70% 60% at 50% 30%, var(--tint-live), transparent 70%), var(--surface); padding: 16px 16px 14px; min-width: 0; }
.scrolly-stage svg { display: block; width: 100%; height: auto; max-height: calc(100svh - var(--nav-h) - 190px); }
.scene-hud { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: 12.5px; color: var(--muted); padding: 2px 4px 8px; border-bottom: 1px solid var(--line); }
.scene-hud b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; } .scene-hud .c-wait b { color: var(--wait); }
.scene-state { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; min-width: 16em; }
.scene-state .dot { background: var(--accent); } .scene-state[data-s="wait"] .dot { background: var(--wait); animation: blink .7s steps(1) infinite; } .scene-state[data-s="wait"] b { color: var(--wait); }
.scene-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 4px 0; border-top: 1px solid var(--line); }
.scene-rail i { display: grid; gap: 6px; font-style: normal; cursor: pointer; }
.scene-rail b { display: block; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--fg) calc(var(--f, 0) * 100%), var(--line-2) 0); }
.scene-rail i:nth-child(2) b, .scene-rail i:nth-child(3) b { background: linear-gradient(90deg, var(--wait) calc(var(--f, 0) * 100%), var(--line-2) 0); }
.scene-rail i:nth-child(4) b { background: linear-gradient(90deg, var(--accent) calc(var(--f, 0) * 100%), var(--line-2) 0); }
.scene-rail span { font-size: 11px; color: var(--muted); }
.scene-note { margin-top: 8px; text-align: right; font-size: 11px; color: var(--muted); }
.scrolly.is-still .scene-note, .scrolly.is-still .scene-rail { display: none; }
html:not(.js) .scrolly-stage { display: none; }
html:not(.js) .scrolly-grid { grid-template-columns: minmax(0, 720px); }
.sc-rail { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 1 9; stroke-linecap: round; }
.sc-think { stroke: var(--fg); stroke-width: 26; stroke-linecap: round; transition: opacity .3s; }
.sc-wait { stroke: var(--wait); stroke-width: 7; stroke-dasharray: 2 13; stroke-linecap: round; transition: opacity .3s, stroke .4s; } .sc-wait.is-ahead { stroke: var(--accent); }
.sc-wire { stroke: var(--echo-1); stroke-width: 2; stroke-dasharray: 5 7; transition: opacity .3s, stroke .4s; } .sc-wire.is-ahead { stroke: var(--accent); }
.sc-store rect { fill: var(--surface-2); stroke: var(--echo-1); stroke-width: 2; transition: stroke .4s; } .sc-store { transition: opacity .3s; }
.sc-store.is-ahead rect { stroke: var(--accent); }
.sc-label { font: 500 21px var(--mono); fill: var(--muted); } .sc-store text { fill: var(--fg); font-size: 19px; }
.sc-packet { fill: var(--wait); transition: opacity .15s; } .sc-packet.is-ahead { fill: var(--accent); }
.sc-body { fill: var(--bg); stroke: var(--fg); stroke-width: 7; } .sc-core { fill: var(--accent); }
.sc-halo { fill: none; stroke: var(--wait); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sc-agent.is-wait .sc-core { fill: var(--wait); } .sc-agent.is-wait .sc-body { stroke: var(--wait); }
.sc-agent.is-wait .sc-halo { animation: halo 1s ease-out infinite; }
@keyframes halo { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.sc-flag line { stroke: var(--fg); stroke-width: 2; } .sc-flag text { fill: var(--fg); } .sc-flag, .sc-back { transition: opacity .3s; }
.sc-backline { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; } .sc-backtext { fill: var(--accent); }
@media (max-height: 820px) and (min-width: 981px) { .scrolly.is-live .sub { display: none; } .scrolly.is-live .chapters li { font-size: 14.5px; padding-block: 11px 12px; } }
@media (max-width: 980px) {
  .scrolly-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .scrolly.is-live .scrolly-copy header .sub { display: none; }
  .scrolly.is-live h2 { font-size: 1.55rem; }
  .scrolly.is-live .chapters { margin-top: 14px; border-top: 0; display: grid; }
  .scrolly.is-live .chapters li { grid-area: 1 / 1; border-bottom: 0; padding: 0; opacity: 0; min-height: 6.6em; }
  .scrolly.is-live .chapters li.is-on { padding-left: 0; }
  .scrolly-stage { order: -1; padding: 10px; }
  .scrolly-stage svg { max-height: 38svh; }
  .sc-label { font-size: 27px; } .sc-store text { font-size: 24px; }
  .scene-note { display: none; } .scene-state { min-width: 100%; }
}

/* ---------- inner pages ---------- */
.pagehead { position: relative; padding-block: clamp(56px, 9vw, 128px) clamp(40px, 6vw, 72px); overflow: hidden; }
.pagehead::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 80% at 88% 20%, var(--tint-live), transparent 70%), radial-gradient(34% 70% at 0% 100%, var(--tint-wait), transparent 70%); }
.pagehead .wrap { position: relative; }
.pagehead .label span { color: var(--muted); }
.pagehead h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: .98; letter-spacing: -.045em; font-weight: 560; color: var(--muted); max-width: 13em; text-wrap: balance; }
.pagehead h1 em { font-style: normal; color: var(--fg); }
.pagehead .lede { max-width: 38em; }
.pagehead .actions { margin-top: 32px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); padding: clamp(22px, 3vw, 34px); }
.plan--main { border-color: var(--accent); background: linear-gradient(180deg, var(--tint-live), transparent 55%), var(--surface); }
.plan-name { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan-price { margin-top: 26px; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; font-weight: 560; }
.plan--main .plan-price { color: var(--accent); }
.plan-text { margin-top: 16px; color: var(--muted); max-width: 30em; }
.plan-list { margin: 24px 0 28px; border-top: 1px solid var(--line); }
.plan-list li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.plan-list li::before { content: "+"; position: absolute; left: 2px; font-family: var(--mono); color: var(--fg); }
.plan:not(.plan--main) .plan-list li::before { content: "\2212"; }
.plan .actions { margin-top: auto; }
.sec--plans { border-top: 0; padding-top: 0; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ: ask anything else ---------- */
.qa-ask { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 22px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 1.15rem; font-weight: 550; letter-spacing: -.015em; text-align: left; transition: color .2s, padding .3s var(--ease); }
.qa-ask:hover { color: var(--fg); padding-left: 10px; } .qa-ask span:last-child { transition: transform .3s var(--ease); } .qa-ask:hover span:last-child { transform: translateX(6px); color: var(--accent); }

/* ---------- footer ---------- */
.foot { border-top: 0; padding-block: 0 0; font-size: 14.5px; }
.foot-rule { height: 56px; border-block: 1px solid var(--line); background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 34px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.foot-rule:last-child { border-bottom: 0; height: 72px; }
.foot-frame { border-inline: 1px solid var(--line); padding: clamp(28px, 5vw, 64px) clamp(18px, 3vw, 40px) 0; }
.foot-word { margin: 0 0 clamp(20px, 3vw, 40px); padding: 0; }
.foot-mission { font-size: clamp(.8rem, 1.5vw, 1.05rem); letter-spacing: .34em; text-transform: uppercase; color: var(--fg); }
.foot-dwell { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 46em; line-height: 1.6; }
.foot-dwell b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; } .foot-dwell b.c-wait { color: var(--wait); } .foot-dwell span { opacity: .8; }
.foot-grid { margin-top: clamp(36px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line); }
.foot-brand p { display: flex; align-items: center; gap: 9px; }
.foot-brand .dot { background: var(--wait); }
.foot nav a { transition: transform .25s var(--ease), color .2s; color: var(--muted); } .foot nav a:hover { transform: translateX(4px); color: var(--fg); text-decoration: none; }
.foot-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; margin-top: 44px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot-base button { height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--muted); font: inherit; } .foot-base button:hover { color: var(--fg); border-color: var(--fg); }
html:not(.js) .foot-dwell, html:not(.js) .foot-base button { display: none; }
.foot-tools { display: inline-flex; gap: 8px; align-items: center; }
.foot-base .foot-motion[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.foot-base button:focus-visible { border-radius: 999px; }
@media (max-width: 560px) { .foot-mission { letter-spacing: .18em; } .chat { right: 14px; bottom: 14px; } }
.foot-gh { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; } .foot-gh:hover { color: var(--fg); }

/* Calm pass: more room, fewer boxes, one big headline. Loaded last, so it has the final say. */

/* ---------- the light that follows the pointer: green on ink, warm orange on cream ---------- */
:root, :root[data-theme="dark"] { --glow: rgba(47, 163, 107, .16); --spot: #2FA36B; --ambient: rgba(47, 163, 107, .12); }
:root[data-theme="light"] { --glow: rgba(243, 124, 32, .24); --spot: #D5651A; --ambient: rgba(243, 124, 32, .13); }
.aura { width: 680px; height: 680px; margin: -340px 0 0 -340px; background: radial-gradient(closest-side, var(--glow), transparent 72%); }
.spot::before { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 68%); }
.spot::after { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 70%); }
.hero::before { background: radial-gradient(50% 55% at 50% 12%, var(--ambient), transparent 72%); }
.pagehead::before { background: radial-gradient(44% 80% at 86% 14%, var(--ambient), transparent 70%); }
.sec--cta::before { background: radial-gradient(40% 70% at 84% 50%, var(--ambient), transparent 70%); }
.chat-panel a:hover { border-color: var(--spot); background: var(--glow); }

/* ---------- the cursor circle moves on its own: it orbits, breathes, and stretches as it travels ---------- */
.cursor::before { content: none; }
.cursor-ring { position: absolute; inset: 0; display: block; will-change: transform; }
.cursor-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--spot); opacity: .8; transition: transform .35s var(--ease), background .25s, opacity .25s; }
.cursor-ring i { position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed var(--spot); opacity: .55; animation: orbit 7s linear infinite, breathe 2.4s ease-in-out infinite; transition: opacity .25s; }
@keyframes orbit { to { rotate: 360deg; } }
@keyframes breathe { 50% { scale: 1.22; opacity: .18; } }
.cursor.is-hot .cursor-ring::before { transform: scale(1.7); background: var(--glow); opacity: 1; }
.cursor.is-hot .cursor-ring i { animation-duration: 2.2s, 1.2s; }
.cursor.is-drag .cursor-ring::before { transform: scale(1.9); background: var(--spot); opacity: 1; }
.cursor.is-drag .cursor-ring i { inset: -18px; opacity: .9; animation-duration: 3s, 1.4s; }
.cursor.is-down .cursor-ring::before { transform: scale(.7); }
.cursor.is-drag.is-down .cursor-ring::before { transform: scale(1.5); }
.cursor::after { color: #0B0C0E; }
/* the round chat button floats and sends out a ring now and then */
.chat-btn { animation: bob 5s ease-in-out infinite; }
.chat-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--spot); opacity: 0; animation: ring-out 4.5s var(--ease) infinite; pointer-events: none; }
.chat-btn { position: relative; }
.chat-btn:hover, .chat-btn[aria-expanded="true"] { animation-play-state: paused; }
@keyframes bob { 50% { translate: 0 -5px; } }
@keyframes ring-out { 0%, 55% { transform: scale(1); opacity: 0; } 60% { opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* ---------- room to breathe ---------- */
.sec { padding-block: clamp(88px, 12.5vw, 192px); }
.sec-grid { gap: clamp(40px, 7vw, 128px); }
.label { margin-bottom: 30px; }
h2 { font-size: clamp(2rem, 3.9vw, 3.2rem); }
.sub { margin-top: 26px; max-width: 28em; }
.sec-head--wide .sub { max-width: 34em; }
.ticker { padding-block: 34px; }
.flow { margin-top: clamp(56px, 7vw, 104px); }
.node { padding: 28px 28px 32px; border-color: var(--line); }
.node--baid { border-color: var(--spot); }
.story, .member, .console, .codetabs, .plan, .code, .table-wrap { border-color: var(--line); }
.story { padding: clamp(24px, 3.4vw, 44px); }
.story-tabs { margin-top: 44px; } .story-tabs button { padding: 20px 0; }
.sbars { margin-top: 44px; gap: 18px; }
.chapters li { padding: 20px 0 22px; }
.fit { gap: clamp(32px, 5vw, 72px); } .fit .points li { padding: 20px 0 22px 26px; }
.road li { padding-bottom: 36px; } .road { margin: 44px 0 40px; }
.team { gap: 18px; margin-top: 40px; } .member { padding: 26px; }
.qa summary { padding: 26px 0; } .qa-ask { padding: 28px 0; }
.foot-frame { padding-top: clamp(40px, 7vw, 96px); }
.foot-grid { margin-top: clamp(48px, 7vw, 96px); padding-top: 44px; gap: 40px; }
.foot nav a { padding: 6px 0; }

/* numbers without boxes: a single ruled row */
.stats { gap: 0; margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); }
.stat { border: 0; border-radius: 0; background: none; padding: 40px 32px 4px 0; min-height: 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 32px; }
.stat::before, .stat::after { display: none; }
.stat-n { font-size: clamp(3rem, 6vw, 5.2rem); }
.stat-l { margin-top: 24px; max-width: 17em; }
.stat-tag { padding-top: 28px; }

/* ---------- hero ---------- */
/* Desktop: headline and waitlist on the left, the figure beside them. Phones: one centred stack. */
.trace-key { display: none; }
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(72px, 10vw, 136px); }
.fig { border-color: var(--line); }
.lede { margin-top: clamp(24px, 3vw, 34px); }
.status { margin-bottom: clamp(24px, 3vw, 34px); }
.hero-copy .wl, .hero-copy .actions { margin-top: clamp(32px, 4vw, 44px); }
@media (min-width: 981px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(48px, 5vw, 76px); align-items: center; }
  .hero h1 { font-size: clamp(2.9rem, 5.2vw, 4.7rem); line-height: .98; }
  .lede { max-width: 27em; font-size: clamp(1.06rem, 1.45vw, 1.24rem); }
  .fig-control { padding: 16px 20px; } .trace { padding: 20px 20px 18px; } .trace-lane + .trace-lane { margin-top: 9px; } .trace-track { height: 18px; }
  .fig-stats > div { padding: 16px 20px 18px; } .fig figcaption { padding: 14px 20px 16px; }
  .fig-state { left: 20px; top: 18px; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(44px, 9vw, 72px); }
  .hero-copy { display: grid; justify-items: center; text-align: center; max-width: 640px; }
  .hero h1 { font-size: clamp(2.1rem, 9.1vw, 5rem); line-height: .98; }
  .lede { max-width: 30em; }
  .hero-copy .wl { width: min(460px, 100%); text-align: left; }
  .hero-copy .actions { justify-content: center; }
  .fig-wrap { width: 100%; max-width: 560px; } .fig { max-width: none; text-align: left; }
}

/* ---------- inner pages ---------- */
.pagehead { padding-block: clamp(72px, 11vw, 168px) clamp(48px, 7vw, 96px); }
.pagehead h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
.pagehead .lede { margin-top: 32px; }
.plans { gap: 20px; } .plan { padding: clamp(26px, 3.4vw, 44px); }
.doc h2 { margin-top: 72px; padding-top: 36px; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 28px 20px 24px 0; } .stat + .stat { padding-left: 20px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .sec { padding-block: 80px; } .stat-n { font-size: 2.9rem; } }

/* ---------- one thing at a time ----------
   Each screen has a single piece in motion. Everything else holds still unless the visitor moves it. */
.beam::after { display: none; }
.status .dot { animation: none; box-shadow: none; }
.caret { animation: none; }
.chat-btn { animation: none; } .chat-btn::after { display: none; }
.cursor-ring i { animation: orbit 16s linear infinite; opacity: .4; }
.cursor.is-hot .cursor-ring i, .cursor.is-drag .cursor-ring i { animation-duration: 16s; }
.fig-state.is-wait .dot, .scene-state[data-s="wait"] .dot { animation: none; }
.road .is-now .road-dot { animation: none; box-shadow: 0 0 0 5px var(--tint-live); }
.codetabs pre code::after { animation: none; }
.ticker-track { animation-duration: 90s; }
/* the wires in "what we are building" all flow again, a little slower than at first */
.wire i { animation-duration: 1.5s; } .wire i:nth-child(2) { animation-duration: 1s; } .wire--a i:nth-child(3) { animation-duration: 2.2s; } .wire--b i:nth-child(2) { animation-duration: 2s; }
.foot-brand .dot { animation: ping 2.4s var(--ease) infinite; }
.story-tabs button[aria-selected="true"] .story-prog { animation: none; transform: scaleX(1); }
.fx .hero-bg, .fx .hero::before { transform: none; }
/* arrivals: headings still rise word by word; everything else is a short, plain fade */
.fx [data-reveal] { transform: translateY(12px); filter: none; }
.fx [data-reveal].in { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
.fx .fig-wrap[data-reveal] { transform: translateY(16px); } .fx .fig-wrap[data-reveal].in { transition-duration: .9s; transition-delay: .2s; }
.in .wi, .in.is-split .wi { transition-duration: .8s; transition-delay: calc(var(--w, 0) * 45ms); }
.wi { transform: translateY(105%); }
.nav-in > * { animation: none; }
.c { transition: transform .5s var(--ease); }
/* "Reduce motion" in the dock (html.reduce-motion, see motion.js) */
.reduce-motion .chat-btn, .reduce-motion .chat-btn::after, .reduce-motion .cursor-ring i { animation: none; }

@media (max-width: 420px) { .brand span { display: inline; } }

/* ==========================================================================
   texture.css: the background field and the glass surfaces.
   Loaded last (see CSS in src/build.mjs). Experimental: removing this file from
   that list puts the site back exactly as it was.
   ========================================================================== */

/* ---------- background field ----------
   Two tiles of small marks ( . - + / # and registration crosses ), generated by
   src/field.mjs. They are masks, so the colour is the theme's. The field is calm
   behind the reading column, clearer in the margins, and stays out of the hero,
   which has its own dot grid. Under the pointer a second copy lights up green. */
body { position: relative; }
.field { position: absolute; inset: 0; z-index: -3; pointer-events: none; overflow: hidden;
  --tiles: url(/assets/img/field-a.svg) 0 0 / 336px 336px repeat, url(/assets/img/field-b.svg) 12px 12px / 456px 456px repeat;
  -webkit-mask: linear-gradient(180deg, transparent 0, transparent 62vh, #000 105vh), linear-gradient(90deg, #000 0, rgba(0, 0, 0, .42) 22%, rgba(0, 0, 0, .42) 78%, #000 100%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(180deg, transparent 0, transparent 62vh, #000 105vh), linear-gradient(90deg, #000 0, rgba(0, 0, 0, .42) 22%, rgba(0, 0, 0, .42) 78%, #000 100%);
  mask-composite: intersect; }
.field i { position: absolute; inset: 0; display: block; -webkit-mask: var(--tiles); mask: var(--tiles); }
.field-base { background: var(--muted); opacity: .2; }
.field-lit { position: absolute; left: 0; top: 0; width: 420px; height: 420px; opacity: 0; transition: opacity .5s; will-change: transform;
  -webkit-mask: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, .45) 50%, transparent 100%);
  mask: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, .45) 50%, transparent 100%); }
.field-lit i { background: var(--accent); }
.has-pointer .field-lit { opacity: .4; }
/* the light that follows the pointer, turned down */
.has-pointer .aura { opacity: .5; }
:root[data-theme="light"] .field-base { opacity: .26; }
html[data-view="agent"] .field, html:not(.js) .field-lit, .reduce-motion .field-lit { display: none; }

/* ---------- glass ----------
   Panels sit on the field like frosted glass: a translucent body, a blur of what is
   behind it, a bright top edge and a soft sheen. */
:root, :root[data-theme="dark"] {
  --glass: rgba(22, 23, 26, .34); --glass-strong: rgba(14, 15, 17, .66);
  --glass-edge: rgba(241, 227, 204, .1); --glass-hi: rgba(241, 227, 204, .2); --glass-sheen: rgba(241, 227, 204, .07);
  --glass-shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 24px 48px -28px rgba(0, 0, 0, .8);
}
:root[data-theme="light"] {
  --glass: rgba(250, 241, 226, .38); --glass-strong: rgba(241, 227, 204, .7);
  --glass-edge: rgba(11, 12, 14, .12); --glass-hi: rgba(255, 255, 255, .7); --glass-sheen: rgba(255, 255, 255, .32);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .5), 0 24px 48px -30px rgba(60, 40, 10, .35);
}
.node, .story, .member, .plan, .scrolly-stage, .chat-panel, .menu-panel, .dock .seg {
  background: linear-gradient(135deg, var(--glass-sheen), transparent 38%, transparent 70%, var(--glass-sheen)), var(--glass);
  border-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(5px) saturate(1.6) brightness(1.08); backdrop-filter: blur(5px) saturate(1.6) brightness(1.08);
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 1px 0 0 var(--glass-sheen), var(--glass-shadow);
}
.node--baid, .plan--main { background: linear-gradient(180deg, var(--tint-live), transparent 60%), linear-gradient(135deg, var(--glass-sheen), transparent 38%), var(--glass); border-color: var(--spot); }
.scrolly-stage { background: radial-gradient(70% 60% at 50% 30%, var(--tint-live), transparent 70%), var(--glass); }
.dock .seg { box-shadow: inset 0 1px 0 var(--glass-hi), 0 5px 0 var(--echo-2), 0 18px 34px -12px rgba(0, 0, 0, .6); }
/* the top bar is glass too, so the page slides under it */
.nav { background: var(--glass-strong); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
/* no backdrop-filter support: fall back to the solid surfaces */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .node, .story, .member, .plan, .chat-panel, .menu-panel, .dock .seg { background: var(--surface); }
  .nav { background: var(--bg); }
}
/* floating panels are read over busy content, so they stay more opaque and blur harder */
.chat-panel, .menu-panel, .dock .seg { background: linear-gradient(135deg, var(--glass-sheen), transparent 40%), var(--glass-strong); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
/* phones have no margins to hold the field, so it sits further back behind the text */
@media (max-width: 560px) { .field-base { opacity: .13; } :root[data-theme="light"] .field-base { opacity: .17; } }
