@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-VF.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F8F8F6;
  --panel: #FFFFFF;
  --soft: #F3F3F0;
  --line: #E6E5E1;
  --line-2: #D6D5D0;
  --ink: #111110;
  --ink-2: #5E5D58;
  --ink-3: #9B9A94;
  --blue: #2E4BFF;
  --blue-d: #1E36D9;
  --blue-2: #EEF1FF;
  --blue-3: #CDD5FF;
  --green: #0B7139;
  --sans: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --g: clamp(18px, 3vw, 40px);
  --r: 16px;
  --shadow: 0 1px 2px rgb(16 18 30 / .04), 0 12px 32px -12px rgb(16 18 30 / .12);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: var(--blue); color: #fff; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--g); }
mark { background: none; color: var(--blue); }

/* Header */
.top { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.mark-g { position: relative; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; }
.mark-g i { display: none; }
.top nav { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; transition: background .15s; }
.btn:hover { background: var(--blue-d); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; background: var(--ink); }
.btn-sm:hover { background: #2a2a28; }
.btn-line { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / .04); }
.btn-line:hover { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 2px rgb(0 0 0 / .04); }
.btn-line code { font-size: 13px; }
.btn-line span { font-size: 12px; color: var(--ink-2); background: var(--soft); padding: 2px 8px; border-radius: 5px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px 56px; align-items: center; padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(72px, 9vw, 120px); }
.hero h1 { font-weight: 500; font-size: clamp(42px, 1rem + 3.3vw, 68px); line-height: 1.03; letter-spacing: -0.035em; }
.lede { margin-top: 24px; max-width: 42ch; font-size: clamp(16.5px, .95rem + .25vw, 18.5px); color: var(--ink-2); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hint { margin-top: 26px; font-size: 13.5px; color: var(--ink-3); max-width: 40ch; }

/* 3D stack */
.stack { position: relative; margin: -40px -10px -10px; }
.stack canvas { display: block; width: 100%; height: clamp(440px, 50vw, 680px); touch-action: pan-y; }
.stack-cap { margin: 0 auto; text-align: center; font-size: 13.5px; color: var(--ink-2); max-width: 50ch; min-height: 3em; }
.stack-cap b { color: var(--ink); font-weight: 600; }
.tag { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 11px; color: #C93A3F; background: rgb(255 255 255 / .9); border: 1px solid #F3C4C5; padding: 2px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; }
.tag.show { opacity: 1; }

/* Provenance graph */
.prov { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.pv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.pv-bar b { color: var(--blue); font-weight: 500; }
.pv-meta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.pv-fit { position: relative; padding: 22px; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px; }
.pv-canvas { position: relative; width: 640px; height: 572px; transform-origin: 0 0; }
.pv-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pv-wires path { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke .2s; }
.pv-wires path.on { stroke: var(--blue); }
.pv-wires circle { fill: var(--blue); }
.nd-g { position: absolute; display: grid; gap: 2px; width: 148px; padding: 10px 12px 11px; background: var(--panel); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 1px 2px rgb(16 18 30 / .05); transition: border-color .2s, box-shadow .2s, opacity .2s; cursor: default; }
.nd-g .k { font-size: 11.5px; color: var(--ink-3); }
.nd-g code { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-g .v { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-g em { position: absolute; right: 9px; top: 9px; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--blue); background: var(--blue-2); padding: 1px 6px; border-radius: 5px; }
.nd-g.tf { width: 250px; }
.nd-g.key { border-style: dashed; }
.nd-g.req { width: 560px; padding: 14px 16px; background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 14px 30px -12px rgb(46 75 255 / .55); }
.nd-g.req .k, .nd-g.req .v { color: rgb(255 255 255 / .75); }
.nd-g.req code { font-size: 14px; }
.nd-g.req em { background: rgb(255 255 255 / .18); color: #fff; }
.prov.focus .nd-g:not(.on) { opacity: .45; }
.nd-g.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-2); }
.nd-g.req.on { box-shadow: 0 0 0 3px var(--blue-3); }
.pv-cap { padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); min-height: 44px; }
.pv-cap b { color: var(--ink); font-weight: 600; }

/* Section heads */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: 36px; }
.head h2 { font-weight: 500; font-size: clamp(32px, 1rem + 2.2vw, 50px); line-height: 1.05; letter-spacing: -0.03em; max-width: 15ch; }
.head p { color: var(--ink-2); font-size: 16.5px; max-width: 48ch; }

/* Trace duo */
.duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.card { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow); }
.card-t { font-weight: 600; font-size: 15px; margin-bottom: 22px; }
.card-t span { color: var(--ink-3); }
.card-f { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--ink-3); }
.tree, .tree ul { display: grid; gap: 8px; }
.tree ul { margin-top: 8px; margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.tree li { position: relative; }
.tree ul > li::before { content: ""; position: absolute; left: -18px; top: 19px; width: 14px; border-top: 1px solid var(--line-2); }
.nd { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); transition: background .15s, border-color .15s, color .15s; cursor: default; }
.nd code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-3); flex: none; }
.nd.leaf { background: var(--soft); }
.nd.on { background: var(--blue-2); border-color: var(--blue-3); color: var(--blue); }
.nd.on em { color: var(--blue); }

.card-ink { background: var(--blue); border-color: var(--blue); color: #fff; background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px); background-size: 32px 32px; }
.card-ink .card-t span { color: rgb(255 255 255 / .55); }
.log { display: grid; gap: 14px; font-size: 13px; line-height: 1.6; min-height: 360px; align-content: start; }
.log li { animation: up .35s ease-out; }
.log .q { color: #fff; }
.log .q::before { content: "› "; color: rgb(255 255 255 / .55); }
.log .a { color: rgb(255 255 255 / .72); padding-left: 16px; }
.log .a b { color: var(--blue); background: #fff; font-weight: 500; padding: 0 4px; border-radius: 4px; }
.log .fin { font-family: var(--sans); font-size: 15.5px; color: #fff; line-height: 1.55; background: rgb(10 20 110 / .28); border-radius: 10px; padding: 14px 16px; }
.log .fin mark { color: #fff; font-weight: 600; }
.log .caret::after { content: "▍"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(6px); } }

/* Use cases */
.uc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.uc-tabs, .lab-tabs { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.uc-tabs button, .lab-tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.uc-tabs button[aria-selected="true"], .lab-tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgb(16 18 30 / .08); }
.uc-tabs button span { color: var(--ink-3); font-weight: 400; margin-left: 6px; font-size: 13px; }
.uc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; min-height: 360px; }
.uc-chat { padding: 22px; border-radius: 12px; background: var(--soft); }
.uc-who { font-size: 12.5px; color: var(--ink-3); }
.uc-ask { margin-top: 8px; padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: var(--panel); border: 1px solid var(--line); font-size: 17px; line-height: 1.45; font-weight: 500; }
.uc-steps { margin-top: 18px; display: grid; gap: 10px; }
.uc-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.uc-steps li.in { opacity: 1; transform: none; }
.uc-steps li i { width: 20px; height: 20px; border-radius: 6px; background: var(--blue-2); display: grid; place-items: center; margin-top: 1px; }
.uc-steps li i::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--blue); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.uc-result { padding: 24px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; opacity: 0; transition: opacity .4s; }
.uc-result.in { opacity: 1; }
.uc-result .lbl { font-size: 13px; color: var(--green); font-weight: 600; }
.uc-result .big { margin-top: 8px; font-size: clamp(24px, 1rem + 1vw, 32px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.uc-result .rows { margin-top: 18px; display: grid; gap: 8px; font-size: 15px; }
.uc-result .rows div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.uc-result .rows span { color: var(--ink-2); }
.uc-result table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14.5px; }
.uc-result th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12.5px; padding: 6px 0; }
.uc-result td { padding: 9px 0; border-top: 1px solid var(--line); }
.uc-result tr.best td { color: var(--blue); font-weight: 600; }
.uc-result .note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.uc-result .ev { font-family: var(--mono); font-size: 11.5px; color: var(--blue); background: var(--blue-2); padding: 1px 6px; border-radius: 5px; }

/* Works vs */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs-win { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.vs-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.vs-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.vs-bar span { margin-left: 8px; }
.vs-good .vs-bar span { color: var(--blue); font-weight: 600; }
.vs-page { min-height: 260px; padding: 34px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.vs-bad .vs-page { background: #FBFBFA; align-items: center; text-align: center; }
.vs-big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); }
.vs-small { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); max-width: 34ch; }
.vs-check { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; color: var(--ink-2); background: #fff; }
.vs-check i { width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 4px; }
.vs-site { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.vs-times { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.vs-times span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; }
.vs-times span.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.vs-ok { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--green); background: #E7F5EC; padding: 6px 12px; border-radius: 8px; }
.vs-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 18px; }
.vs-points li { font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.vs-points b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* Research lab */
.lab-tabs { margin-bottom: 16px; }
.lab-panel[hidden] { display: none; }
.uses, .works, .lab { padding-top: clamp(72px, 9vw, 128px); }
.end { padding-top: clamp(96px, 11vw, 160px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.end h2 { font-weight: 500; font-size: clamp(34px, 1rem + 2.6vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }
.end p { color: var(--ink-2); max-width: 46ch; font-size: 17px; }
.end .btn { margin-top: 8px; }

/* Hooks */
.hk { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.hk-probes { padding: 14px; border-right: 1px solid var(--line); background: var(--soft); display: grid; gap: 4px; align-content: start; }
.hk-probes button { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: none; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); transition: background .15s; }
.hk-probes button:hover { background: rgb(255 255 255 / .7); }
.hk-probes button[aria-current="true"] { background: var(--panel); border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px rgb(16 18 30 / .05); }
.hk-probes .n { color: var(--ink-3); font-size: 11px; }
.hk-probes .r { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; }
.hk-probes .r.leak { color: #C93A3F; background: #FDECEC; }
.hk-probes code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-side { display: flex; flex-direction: column; min-width: 0; padding: 18px; }
.hk-side + .hk-side { border-left: 1px solid var(--line); }
.hk-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.hk-h b { font-weight: 600; }
.hk-score { font-family: var(--mono); font-size: 11.5px; color: #C93A3F; background: #FDECEC; padding: 2px 8px; border-radius: 6px; }
.hk-score.ok { color: var(--green); background: #E7F5EC; }
.hk-src { margin: 0; flex: 1; min-height: 210px; max-height: 250px; overflow: hidden; padding: 12px 14px; border-radius: 10px; background: var(--soft); font-size: 11.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.hk-src .patch { display: block; color: #C93A3F; animation: up .35s ease-out; }
.hk-src .patch::before { content: "+ "; }
.hk-out { margin-top: 12px; min-height: 96px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; line-height: 1.6; word-break: break-word; }
.hk-out .q { color: var(--ink-3); }
.hk-out .res { display: block; margin-top: 4px; }
.hk-bad .hk-out.hit { border-color: #F3C4C5; background: #FFF6F6; }
.hk-bad .hk-out.hit .res { color: #C93A3F; }
.hk-good .hk-out.hit { border-color: #BFE3CC; background: #F4FBF6; }
.hk-good .hk-out.hit .res { color: var(--green); }
.hk-out .why { display: block; margin-top: 6px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); }

/* Fingerprint gallery */
.fp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.fp-tabs { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; width: fit-content; max-width: 100%; overflow-x: auto; }
.fp-tabs button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.fp-tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgb(16 18 30 / .08); font-weight: 600; }
.fp-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; margin-top: 16px; }
.fp-stage { min-width: 0; }
.fp-stage canvas { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background-color: #fff; background-image: linear-gradient(45deg, #F1F1EE 25%, transparent 25%, transparent 75%, #F1F1EE 75%), linear-gradient(45deg, #F1F1EE 25%, transparent 25%, transparent 75%, #F1F1EE 75%); background-size: 20px 20px; background-position: 0 0, 10px 10px; }
.fp-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.fp-meta b { color: var(--blue); font-weight: 500; }
.fp-ops { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.fp-ops-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.fp-ops-h b { color: var(--ink); font-weight: 600; }
.fp-play { border: 0; background: var(--blue); color: #fff; border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.fp-play:hover { background: var(--blue-d); }
.fp-ops ol { flex: 1; height: 330px; overflow-y: auto; padding: 6px; font-size: 11.5px; scroll-behavior: smooth; }
.fp-ops li { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 4px 8px; border-radius: 6px; color: var(--ink-3); white-space: nowrap; }
.fp-ops li span:last-child { overflow: hidden; text-overflow: ellipsis; }
.fp-ops li.done { color: var(--ink-2); }
.fp-ops li.now { background: var(--blue-2); color: var(--blue); }
.fp-foot { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

.foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 110px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { .log li { animation: none; } }
@media (max-width: 1000px) {
  .hero, .head, .duo { grid-template-columns: 1fr; }
  .hk { grid-template-columns: 1fr 1fr; }
  .uc-body, .vs { grid-template-columns: 1fr; }
  .vs-points { grid-template-columns: 1fr; gap: 16px; }
  .hk-probes { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(2, 1fr); }
  .fp-body { grid-template-columns: 1fr; }
  .fp-ops ol { height: 220px; }
}
@media (max-width: 600px) {
  .pv-meta { display: none; }
  .pv-fit { padding: 12px; }
  .top nav { display: none; }
  .top .btn-sm { margin-left: auto; }
  .btn-line code { display: none; }
  .hk { grid-template-columns: 1fr; }
  .hk-probes { grid-template-columns: 1fr; }
  .hk-side + .hk-side { border-left: 0; border-top: 1px solid var(--line); }
  .hk-src { min-height: 0; max-height: 170px; }
  .fp { padding: 12px; }
  .card { padding: 18px; }
  .nd code { font-size: 12px; }
}

/* ================= Painted theme ================= */
@font-face { font-family: "Mona Sans"; src: url("fonts/MonaSans-VF.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
:root {
  --bg: #F2EDE3;
  --panel: #FBF8F2;
  --soft: #F2ECE0;
  --line: #DED6C6;
  --line-2: #C9BFAC;
  --ink: #17140F;
  --ink-2: #5A5246;
  --ink-3: #978D7E;
  --poster: "Mona Sans", "Arial Narrow", sans-serif;
  --shadow: none;
  --r: 14px;
}
body { background: var(--bg); }
.poster { font-family: var(--poster); font-stretch: 75%; font-weight: 900; text-transform: uppercase; letter-spacing: -0.012em; line-height: .86; }

/* painted surfaces */
.sky, .band { position: relative; isolation: isolate; }
.sky::before, .band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: multiply; opacity: .55; background: url("tex/swirl.svg"); background-size: 520px; }
.band::before { opacity: .38; }
.sky { background: linear-gradient(180deg, #8EA2FF 0%, #B9B6F4 30%, #EDC0D2 58%, #F8D9BE 82%, #F2EDE3 100%); }
.sky::before { background-image: url("tex/streak.svg"); background-size: 640px; opacity: .42; }
.edge { position: absolute; left: 0; width: 100%; height: 26px; display: block; }
.sky > .edge { bottom: -1px; fill: var(--bg); }
.band > .edge { top: 1px; transform: translateY(-100%); fill: var(--band); }
.band { background: var(--band); padding-bottom: clamp(80px, 9vw, 130px); }
.b-paper { --band: #F2EDE3; }
.b-blue { --band: #DCE2FB; }
.b-amber { --band: #F5D9A6; }
.b-ink { --band: #2235D6; color: #fff; }
.b-ink::before { opacity: .35; }
.uses, .works, .lab, .tune { padding-top: clamp(64px, 8vw, 112px); }

/* header + hero on the sky */
.top { height: 72px; }
.top nav { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.top nav a { opacity: .75; } .top nav a:hover { opacity: 1; }
.mark-g { background: var(--ink); }
.hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(70px, 8vw, 110px); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 5px; border-radius: 99px; background: rgb(251 248 242 / .85); border: 1.5px solid var(--ink); font-size: 11.5px; text-transform: lowercase; }
.badge i { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 4px #9DAEFF; }
.hero h1 { margin-top: 18px; font-size: clamp(60px, 2rem + 5.2vw, 124px); line-height: .84; letter-spacing: -0.01em; }
.lede { color: var(--ink); opacity: .82; font-size: clamp(17px, 1rem + .3vw, 20px); max-width: 36ch; }
.btn { border-radius: 8px; }
.btn-split { padding: 0; gap: 0; background: var(--ink); overflow: hidden; height: 50px; }
.btn-split b { padding: 0 18px; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.btn-split span { align-self: stretch; display: grid; place-items: center; padding: 0 14px; border-left: 1px solid rgb(255 255 255 / .2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.btn-split:hover { background: var(--blue); }
.btn-line { height: 50px; background: rgb(251 248 242 / .7); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .02em; }
.btn-line:hover { background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--ink); }
.stack-cap { color: var(--ink); opacity: .8; }

/* section heads, poster style */
.head { display: block; margin-bottom: 36px; }
.kick { display: flex; align-items: center; gap: 9px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.kick i { width: 18px; height: 11px; border-radius: 60% 40% 55% 45%; background: var(--blue); transform: rotate(-12deg); }
.head h2 { margin-top: 14px; max-width: none; font-size: clamp(56px, 1.5rem + 6vw, 128px); line-height: .84; letter-spacing: -0.01em; }
.head p { margin-top: 18px; max-width: 54ch; color: var(--ink); opacity: .8; font-size: 17px; }

/* cards: cream, ink outline */
.uc, .vs-win, .prov, .card:not(.card-ink), .hk, .fp { background: var(--panel); border: 1.5px solid var(--ink); box-shadow: none; }
.card-ink { border: 1.5px solid var(--ink); }
.uc-tabs, .lab-tabs, .fp-tabs, .xr-tags { background: var(--soft); }
.uc-tabs button, .lab-tabs button, .fp-tabs button { font-family: var(--mono); text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
.uc-tabs button[aria-selected="true"], .lab-tabs button[aria-selected="true"], .fp-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.lab-tabs { background: rgb(251 248 242 / .7); border: 1.5px solid var(--ink); }
.uc-chat { background: var(--soft); }
.uc-ask { border: 1.5px solid var(--ink); }
.uc-result { border: 1.5px dashed var(--line-2); }
.uc-result .big { font-family: var(--poster); font-stretch: 80%; font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: .95; font-size: clamp(28px, 1rem + 1.4vw, 40px); }
.vs-bar, .pv-bar, .xr-url { border-bottom: 1.5px solid var(--ink); }
.vs-big, .vs-site { font-family: var(--poster); font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: 34px; letter-spacing: 0; }
.vs-points b { font-family: var(--mono); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; }
.vs-points li { color: var(--ink); opacity: .85; padding-left: 14px; border-left: 3px solid var(--blue); }
.pv-fit, .xr-agent { background-image: radial-gradient(var(--line-2) 1px, transparent 1px); }
.nd-g, .hk-out { background: var(--panel); }
.hk-probes { background: var(--soft); border-right: 1.5px solid var(--ink); }
.hk-side + .hk-side { border-left: 1.5px solid var(--ink); }
.pv-cap { border-top: 1.5px solid var(--ink); }

/* closing band */
.end { padding-top: clamp(90px, 10vw, 150px); }
.end h2 { font-family: var(--poster); font-size: clamp(60px, 2rem + 6vw, 140px); font-weight: 900; letter-spacing: -0.01em; line-height: .84; color: #fff; }
.end p { color: rgb(255 255 255 / .85); }
.end .btn-split, .end .btn { background: #fff; color: var(--ink); }
.end .btn:hover { background: var(--bg); }
.foot { margin-top: 0; padding: 0; border: 0; background: #17140F; color: rgb(255 255 255 / .7); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 30px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 600px) {
  .hero h1 { font-size: 72px; }
  .head h2 { font-size: 60px; }
  .btn-split span { display: none; }
}

/* Dithered pixel skies */
.dither { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; image-rendering: pixelated; }
.sky { background: #F2EDE3; }
.sky::before { display: none; }
.b-ink::before { display: none; }
.b-ink { --band: #1D2DB8; }
.end { padding-bottom: clamp(110px, 12vw, 170px); }
.hero .lede { opacity: .9; }

/* ---- Rune + Hydra elements ---- */
.strip { display: block; padding: 8px 16px; text-align: center; font-size: 13px; color: #fff; background: var(--blue); background-image: linear-gradient(90deg, rgb(255 255 255 / .16) 1px, transparent 1px); background-size: 120px 100%; position: relative; z-index: 2; }
.strip b { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 99px; background: #fff; color: var(--blue); font-size: 11.5px; font-weight: 700; }
.strip:hover { background-color: var(--blue-d); }
.typer { margin-top: 18px; font-size: clamp(15px, .9rem + .4vw, 20px); color: var(--ink); }
.typer .br { color: var(--blue); font-weight: 700; margin: 0 .35em; }
.typer [data-typer] { background: rgb(255 255 255 / .6); padding: 0 .2em; }
.typer [data-typer]::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--blue); animation: blink 1s steps(1) infinite; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 64px; margin-top: -20px; position: relative; }
.stats div { padding: 18px 22px 4px; border-left: 1px dashed rgb(23 20 15 / .35); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font-family: var(--poster); font-stretch: 75%; font-weight: 900; font-size: clamp(48px, 1.5rem + 3vw, 84px); line-height: .9; letter-spacing: -0.01em; }
.stats small { font-size: .45em; color: var(--ink-2); margin: 0 2px; }
.stats dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); opacity: .75; max-width: 24ch; }


/* pipeline (Hydra) */
.uc-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pipe { display: flex; align-items: center; gap: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.pipe li { padding: 5px 10px; border: 1.5px solid var(--line-2); border-radius: 7px; color: var(--ink-3); transition: all .25s; }
.pipe li + li::before { content: ""; display: inline-block; width: 14px; margin: 0 8px 0 -18px; border-top: 1.5px dotted var(--line-2); vertical-align: middle; position: relative; left: -4px; }
.pipe li { margin-left: 10px; } .pipe li:first-child { margin-left: 0; }
.pipe li.on { border-color: var(--ink); color: var(--ink); background: var(--panel); }
.pipe li.now { background: var(--blue); border-color: var(--blue); color: #fff; }


/* task word grid (Hydra) */
.tasks-k { margin-top: 40px; }
.tasks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.tasks li { padding: 18px 16px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); font-family: var(--poster); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: clamp(18px, .9rem + .7vw, 26px); line-height: 1; transition: background .2s, color .2s; cursor: default; background: rgb(251 248 242 / .5); }
.tasks li:hover, .tasks li.lit { background: var(--blue); color: #fff; }

@media (max-width: 1000px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .tasks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .pipe { display: none; } .strip { font-size: 12px; } }

/* result never sits blank */
.uc-result { opacity: .28; transition: opacity .45s; }
.uc-result.in { opacity: 1; }

/* ---- Rune-style widget row ---- */
.tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.35fr); gap: 16px; align-items: stretch; }
.tool { display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--panel); border: 1.5px solid var(--ink); border-radius: 18px; min-height: 420px; min-width: 0; }
.tool-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tool-t { font-weight: 700; font-size: 15px; }
.tool-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue); background: var(--blue-2); padding: 2px 8px; border-radius: 6px; }
.tool-f { margin-top: auto; font-size: 13.5px; color: var(--ink-2); }
.tool-wide .tool-f { font-family: var(--poster); font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; color: var(--ink); }

.radios { display: grid; gap: 6px; }
.radios button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--soft); text-align: left; font-size: 14.5px; transition: border-color .15s, background .15s; }
.radios button i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--panel); flex: none; transition: all .15s; }
.radios button[aria-checked="true"] { border-color: var(--ink); background: var(--panel); }
.radios button[aria-checked="true"] i { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--blue); }
.cmd { position: relative; border-radius: 12px; background: var(--ink); color: #fff; padding: 14px 14px 40px; }
.cmd pre { margin: 0; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; min-height: 3.4em; }
.cmd pre .p { color: #8FA2FF; }
.cmd-copy { position: absolute; right: 10px; bottom: 10px; border: 0; border-radius: 7px; padding: 4px 10px; font-size: 11px; text-transform: uppercase; background: rgb(255 255 255 / .14); color: #fff; }
.cmd-copy:hover { background: var(--blue); }

.sw { display: grid; gap: 2px; }
.sw li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 4px; font-size: 14.5px; border-bottom: 1px dashed var(--line); }
.sw li:last-child { border-bottom: 0; }
.sw button { position: relative; width: 40px; height: 24px; flex: none; border: 0; border-radius: 99px; background: var(--line-2); transition: background .2s; }
.sw button::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.sw button[aria-checked="true"] { background: var(--blue); }
.sw button[aria-checked="true"]::after { transform: translateX(16px); }
.plan { padding: 12px 14px; border-radius: 12px; background: var(--blue-2); color: var(--ink); font-size: 14px; line-height: 1.5; min-height: 6.2em; }
.plan b { color: var(--blue); }

.tb-ctrls { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.ctrl { display: inline-flex; align-items: center; height: 34px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--soft); overflow: hidden; }
.step button { width: 32px; height: 100%; border: 0; background: none; font-size: 17px; }
.step button:hover { background: var(--panel); }
.step output { min-width: 46px; text-align: center; font-size: 12.5px; border-inline: 1.5px solid var(--ink); height: 100%; display: grid; place-items: center; background: var(--panel); }
.dots { gap: 6px; padding: 0 9px; }
.dots button { width: 18px; height: 18px; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: 0 0 0 2px var(--soft); transition: box-shadow .15s, transform .15s; }
.dots button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--soft), 0 0 0 3.5px var(--ink); }
.dots button:hover { transform: scale(1.12); }
.slide { gap: 10px; padding: 0 12px; }
.slide span { font-size: 10.5px; letter-spacing: .05em; color: var(--ink-2); }
.slide input { width: 110px; accent-color: var(--blue); }
.pace-stage { flex: 1; display: grid; align-content: center; gap: 14px; padding: 20px; border-radius: 14px; background-color: var(--soft); background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 16px 16px; }
.pace-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.pace-box { display: flex; align-items: center; height: 52px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--panel); font-size: 18px; }
.pace-box i { width: 2px; height: 22px; margin-left: 2px; background: var(--blue); animation: blink 1s steps(1) infinite; }
.rhythm { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.rhythm b { flex: 1; max-width: 14px; border-radius: 3px 3px 0 0; background: var(--blue); transform-origin: bottom; animation: grow .25s ease-out; }
.rhythm b.sp { background: var(--ink-3); }
@keyframes grow { from { transform: scaleY(0); } }
.pace-f { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; }
.pace-f b { margin-left: auto; color: var(--green); font-weight: 500; }

@media (max-width: 1000px) { .tools { grid-template-columns: 1fr 1fr; } .tool-wide { grid-column: 1 / -1; } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } .tool { min-height: 0; } }

/* Rune-style line drawing beside the research headline */
.head-iso { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px 48px; align-items: center; }
.iso-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.iso-fig figcaption { margin-top: 8px; text-align: center; font-size: 13.5px; color: var(--ink); opacity: .8; min-height: 2.8em; }
.iso-fig figcaption b { font-weight: 700; }
.iso-p { cursor: default; outline: none; }
.iso-p path { transition: stroke .2s; }
.iso-p.on path, .iso-p:focus-visible path { stroke: #2E4BFF; }
.iso-lin { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease, ease) .3s; }
.drawn .iso-lin { stroke-dashoffset: 0; }
[data-iso]:has(.iso-p[data-p="tok"].on) .iso-lin { stroke-width: 2.2; }
.tasks li.re { background: rgb(255 255 255 / .7); }
@media (max-width: 1000px) { .head-iso { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .iso-lin { stroke-dashoffset: 0; transition: none; } }

/* ---- footer legal nav ---- */
.foot-in { flex-wrap: wrap; align-items: center; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a, .linkish { color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.foot-nav a:hover, .linkish:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---- consent ---- */
.consent { position: fixed; z-index: 50; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); padding: 20px; background: var(--panel); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); opacity: 0; transform: translateY(16px); transition: opacity .25s, transform .25s; }
.consent.in { opacity: 1; transform: none; }
.consent-k { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.consent h2 { margin-top: 6px; font-family: var(--poster); font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; }
.consent > p { margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.consent-list { display: none; margin-top: 14px; border-top: 1px dashed var(--line-2); }
.consent.detail .consent-list { display: block; }
.consent-list li { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.consent-list b { display: block; font-size: 14.5px; }
.consent-list span { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.consent-list button { position: relative; width: 40px; height: 24px; flex: none; border: 0; border-radius: 99px; background: var(--line-2); }
.consent-list button::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.consent-list button[aria-checked="true"] { background: var(--blue); }
.consent-list button[aria-checked="true"]::after { transform: translateX(16px); }
.consent-list button:disabled { opacity: .55; cursor: not-allowed; }
.consent-a { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.consent-a .btn { justify-content: center; padding-inline: 10px; min-height: 42px; font-size: 13px; }
.consent .consent-save { display: none; }
.consent.detail .consent-more { display: none; }
.consent.detail .consent-save { display: inline-flex; }

/* ---- legal pages ---- */
.doc-top { background: var(--bg); border-bottom: 1.5px solid var(--ink); }
.doc { max-width: 760px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: 96px; }
.doc .kick { margin-bottom: 14px; }
.doc h1 { font-size: clamp(52px, 2rem + 4vw, 96px); }
.doc .upd { margin-top: 14px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-2); }
.doc .toc { margin-top: 32px; padding: 16px 20px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--panel); display: grid; gap: 6px; font-size: 14.5px; }
.doc .toc a { color: var(--blue); }
.doc h2 { margin-top: 48px; font-family: var(--poster); font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: clamp(26px, 1rem + 1.2vw, 36px); line-height: 1.05; scroll-margin-top: 24px; }
.doc p, .doc li { margin-top: 12px; font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.doc ul { padding-left: 20px; list-style: square; }
.doc a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.doc table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1.5px solid var(--ink); }
.doc th { background: var(--panel); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.doc .note { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--blue-2); font-size: 14.5px; }
@media (max-width: 600px) { .consent { left: 8px; bottom: 8px; width: calc(100vw - 16px); } .foot-in { flex-direction: column; align-items: flex-start; } }
.consent-a .btn { min-height: 44px; padding: 0 8px; border-width: 1.5px; border-style: solid; border-radius: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.consent-a [data-c="accept"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.consent-a [data-c="accept"]:hover { background: var(--blue); border-color: var(--blue); }
.consent-a .btn { height: 44px; min-height: 0; box-shadow: none; transform: none; }

/* =====================================================================
   Polish pass — one type system, no ornament lines, smooth bar, motion
   ===================================================================== */
:root {
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-s: 14px;      /* small: captions, labels, controls */
  --t-b: 17px;      /* body */
  --t-l: 20px;      /* lead */
  --t-h: clamp(26px, 1rem + 1.1vw, 34px); /* in-widget headings */
  --t-code: 13px;
  --bar: 68px;
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-size: var(--t-b); font-feature-settings: "ss01", "cv11"; text-rendering: optimizeLegibility; }
code, pre, .log, .fp-ops ol, .cmd pre, .hk-src, .hk-out, .nd-g code, .nd-g .v { font-family: var(--mono); font-size: var(--t-code); }
.poster { font-kerning: normal; text-wrap: balance; }

/* ---------- announcement strip: plain, no chip, no rules ---------- */
.strip { background-image: none; font-size: var(--t-s); padding: 9px 16px; transition: background-color .2s var(--ease); }
.strip span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; margin-left: 4px; }
.strip span::after { content: " →"; display: inline-block; transition: transform .25s var(--ease); }
.strip:hover span::after { transform: translateX(3px); }

/* ---------- navigation bar: sticky, hides on scroll down, shows on up ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--bar); display: block; gap: 0;
  background: rgb(242 237 227 / 0); transition: transform .45s var(--ease), background-color .3s var(--ease); will-change: transform; }
.top-in { display: flex; align-items: center; gap: 28px; height: 100%; }
.top.is-solid { background: var(--bg); }
.top.is-hidden { transform: translateY(-100%); }
.sky { margin-top: calc(-1 * var(--bar)); padding-top: var(--bar); }
.top nav { position: relative; display: flex; gap: 4px; margin-left: auto; font-family: var(--sans); font-size: 15px; font-weight: 500; text-transform: none; letter-spacing: -0.005em; color: var(--ink); }
.top nav a { position: relative; z-index: 1; padding: 8px 12px; border-radius: 8px; opacity: .72; transition: opacity .2s var(--ease), color .2s var(--ease); }
.top nav a:hover, .top nav a[aria-current="true"] { opacity: 1; }
.nav-ind { position: absolute; left: 0; bottom: 2px; height: 2px; width: 0; border-radius: 2px; background: var(--blue); opacity: 0;
  transform: translateX(var(--x, 0)); transition: transform .45s var(--ease), width .45s var(--ease), opacity .25s var(--ease); pointer-events: none; }
.nav-ind.on { opacity: 1; }
.mark { transition: opacity .2s var(--ease); }
.mark:hover { opacity: .8; }

/* ---------- buttons: flat, one fill, press feedback ---------- */
.btn { position: relative; border-radius: 10px; font-weight: 600; letter-spacing: -0.005em; text-transform: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .18s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-main { height: 52px; padding: 0 22px; font-size: 16px; background: var(--ink); color: #fff; }
.btn-main:hover { background: var(--blue); }
.btn-ghost { height: 52px; padding: 0 18px; font-size: 16px; background: rgb(23 20 15 / .06); color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: rgb(23 20 15 / .11); }
.btn-ghost .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn-ghost:hover .arr { transform: translateX(4px); }
.btn-sm { height: 38px; font-size: 14px; }
.btn-sm:hover { background: var(--blue); }

/* ---------- hero ---------- */
.hero h1 { margin-top: 0; }
.typer { margin-top: 22px; font-family: var(--sans); font-size: clamp(19px, 1rem + .4vw, 23px); font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.typer .roll { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.3em; line-height: 1.3; }
.typer [data-typer] { display: block; background: none; padding: 0; color: var(--blue); transition: transform .5s var(--ease), opacity .5s var(--ease); }
.typer [data-typer]::after { content: none; }
.typer [data-typer].out { transform: translateY(-100%); opacity: 0; }
.typer [data-typer].pre { transform: translateY(100%); opacity: 0; transition: none; }
.lede { margin-top: 20px; opacity: 1; color: var(--ink); font-size: var(--t-l); line-height: 1.5; }
.hero .lede { opacity: 1; }
.acts { margin-top: 36px; gap: 12px; }
.stack canvas { cursor: grab; }
.stack canvas:active { cursor: grabbing; }
.stack-cap { font-size: var(--t-s); opacity: 1; color: var(--ink-2); transition: opacity .2s var(--ease); }
.tag { font-family: var(--sans); font-size: 13px; font-weight: 600; color: #fff; background: var(--ink); border: 0; padding: 4px 10px; border-radius: 6px; }

/* ---------- stats: no dashed dividers, sentence-case labels ---------- */
.stats { gap: 24px; }
.stats div, .stats div:first-child, .stats div:nth-child(3) { border-left: 0; padding: 18px 0 4px; }
.stats dt { font-family: var(--sans); font-size: 15px; text-transform: none; letter-spacing: 0; opacity: 1; color: var(--ink-2); line-height: 1.4; }
.stats small { color: var(--ink-2); }

/* ---------- section heads ---------- */
.head h2 { margin-top: 0; }
.head p { opacity: 1; color: var(--ink); font-size: var(--t-b); line-height: 1.55; }
.kick { font-family: var(--sans); font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.kick i { display: none; }

/* ---------- surfaces: tone steps instead of hairlines, dot grids, dashes ---------- */
.pv-fit, .xr-agent { background-image: none; background-color: var(--soft); }
.pv-bar, .vs-bar, .xr-url, .fp-ops-h { border-bottom: 0; background: var(--soft); font-size: var(--t-s); }
.pv-bar b { font-weight: 600; }
.pv-meta { font-size: var(--t-s); color: var(--ink-2); }
.pv-cap { border-top: 0; font-size: var(--t-s); background: var(--panel); }
.prov .pv-bar { background: var(--panel); }
.nd-g { border-color: var(--line); box-shadow: none; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), opacity .25s var(--ease), transform .25s var(--ease); }
.nd-g .k { font-size: 13px; color: var(--ink-2); }
.nd-g em { font-size: 12px; }
.nd-g.key { border-style: solid; background: var(--blue-2); border-color: var(--blue-3); }
.nd-g.req { box-shadow: none; }
.nd-g.on { transform: translateY(-2px); }
.pv-wires path { transition: stroke .3s var(--ease), stroke-width .3s var(--ease); }
.pv-wires path.on { stroke-width: 2; }
.card-ink { background-image: none; }
.log { font-size: var(--t-code); }
.log .fin { font-size: 16px; }
.vs-bar i { width: 10px; height: 10px; background: var(--line-2); }
.vs-bar span { font-weight: 500; }
.vs-points li { padding-left: 0; border-left: 0; opacity: 1; color: var(--ink); font-size: 16px; }
.vs-points b { font-family: var(--sans); text-transform: none; font-size: 17px; letter-spacing: -0.01em; font-weight: 700; }
.vs-small { font-size: 15px; color: var(--ink-2); }
.vs-check { border: 0; background: var(--soft); }
.vs-times span { border: 0; background: var(--soft); }
.uc-who { font-size: var(--t-s); color: var(--ink-2); }
.uc-result { border: 0; background: var(--soft); }
.uc-result .rows div { border-bottom: 0; padding-bottom: 0; }
.uc-result .note, .uc-result th { font-size: var(--t-s); color: var(--ink-2); }
.uc-result .ev { font-size: 12px; }
.sw li { border-bottom: 0; padding: 10px 2px; font-size: 15px; }
.fp-ops { border: 0; background: var(--soft); }
.fp-ops-h { background: transparent; }
.fp-meta { font-size: var(--t-s); }
.fp-meta b { font-family: var(--mono); font-size: var(--t-code); }
.fp-foot, .card-f { font-size: var(--t-s); color: var(--ink-2); }
.fp-stage canvas { border: 0; }
.hk-out { border: 0; background: var(--soft); }
.hk-probes .n { font-size: 12px; }
.hk-score { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.hk-out .why { font-size: var(--t-s); }

/* ---------- tabs: sentence case, sliding indicator ---------- */
.uc-tabs, .lab-tabs, .fp-tabs { position: relative; isolation: isolate; }
.uc-tabs button, .lab-tabs button, .fp-tabs button { position: relative; z-index: 1; font-family: var(--sans); text-transform: none; letter-spacing: -0.005em; font-size: 15px; font-weight: 500;
  transition: color .3s var(--ease); }
.uc-tabs button[aria-selected="true"], .lab-tabs button[aria-selected="true"], .fp-tabs button[aria-selected="true"] { color: #fff; font-weight: 600; box-shadow: none; }
.has-ind.sliding button[aria-selected="true"] { background: transparent; }
.has-ind:not(.sliding) .tab-ind { opacity: 0; transition: none; }
.tab-ind { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 9px; background: var(--ink);
  transform: translateX(var(--x, 0)); transition: transform .42s var(--ease), width .42s var(--ease); pointer-events: none; }
.uc-tabs button:not([aria-selected="true"]):hover, .lab-tabs button:not([aria-selected="true"]):hover, .fp-tabs button:not([aria-selected="true"]):hover { color: var(--ink); }

/* ---------- pipeline: a filled track, not dotted connectors ---------- */
.pipe { gap: 4px; font-size: var(--t-s); text-transform: none; letter-spacing: 0; }
.pipe li, .pipe li:first-child { margin-left: 0; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2);
  transition: background-color .35s var(--ease), color .35s var(--ease); }
.pipe li + li::before { content: none; }
.pipe li.on { background: var(--soft); color: var(--ink); }
.pipe li.now { background: var(--blue); color: #fff; }

/* ---------- task tiles: tone fills with gaps, no grid lines, no flicker ---------- */
.tasks-h { margin-top: 56px; font-family: var(--poster); font-stretch: 78%; font-weight: 900; text-transform: uppercase; font-size: var(--t-h); line-height: 1; letter-spacing: 0; }
.tasks { gap: 8px; margin-top: 18px; border: 0; }
.tasks li { border: 0; border-radius: 12px; background: var(--soft); padding: 22px 18px; transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.tasks li.re { background: var(--panel); color: var(--blue); }
.tasks li:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* ---------- tool widgets ---------- */
.tool-t { font-size: 16px; }
.tool-tag { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.tool-f { font-size: var(--t-s); }
.tool-wide .tool-f { font-size: var(--t-h); }
.radios button { border-color: transparent; font-size: 15px; transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease); }
.radios button:active { transform: scale(.985); }
.radios button i { transition: box-shadow .25s var(--ease), border-color .2s var(--ease); }
.cmd pre { font-size: var(--t-code); }
.cmd-copy { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: none; padding: 5px 12px; transition: background-color .2s var(--ease), transform .15s var(--ease); }
.cmd-copy:active { transform: scale(.95); }
.sw button, .consent-list button { transition: background-color .25s var(--ease); }
.sw button::after { box-shadow: none; transition: transform .3s var(--ease); }
.step output { font-size: var(--t-s); font-weight: 600; }
.step button { transition: background-color .15s var(--ease); }
.slide span { font-size: var(--t-s); letter-spacing: 0; color: var(--ink-2); }
.dots button { transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.pace-stage { background-image: none; }
.pace-k { font-family: var(--sans); font-size: var(--t-s); text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); }
.pace-f { font-family: var(--sans); font-size: var(--t-s); text-transform: none; letter-spacing: 0; }
.pace-f b { font-weight: 700; }
.rhythm b { border-radius: 3px 3px 0 0; animation: grow .35s var(--ease); }

/* ---------- 3D-adjacent line drawing ---------- */
.iso-fig figcaption { font-size: var(--t-s); opacity: 1; color: var(--ink-2); }
.iso-p { transition: transform .35s var(--ease); }
.iso-p.on { transform: translateY(-5px); }

/* ---------- closing band + footer ---------- */
.end p { font-size: var(--t-b); }
.end .btn { height: 52px; padding: 0 24px; font-size: 16px; }
.foot-in { font-family: var(--sans); font-size: var(--t-s); text-transform: none; letter-spacing: 0; }

/* ---------- consent: sentence case, only the right buttons ---------- */
.consent-k { font-family: var(--sans); font-size: var(--t-s); font-weight: 600; text-transform: none; letter-spacing: 0; }
.consent-a .btn { font-family: var(--sans); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; border: 0; background: var(--soft); color: var(--ink); }
.consent-a .btn:hover { background: var(--line); }
.consent:not(.detail) .consent-save, .consent.detail .consent-more { display: none; }
.consent-list, .consent-list li { border: 0; }
.consent { transition: opacity .35s var(--ease), transform .35s var(--ease); }

/* ---------- entrance motion (content stays visible without script) ---------- */
.js [data-rv] { opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-rv].in { opacity: 1; transform: none; }
.js .hero h1 .ln { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.js .hero h1 .ln > span { display: block; transform: translateY(105%); transition: transform .55s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .hero.in h1 .ln > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-rv], .js .hero h1 .ln > span { opacity: 1; transform: none; transition: none; }
  .top { transition: none; }
}

@media (max-width: 1000px) { .stats { gap: 16px; } }
@media (max-width: 760px) {
  .top nav { display: none; }
  .top .btn-sm { margin-left: auto; }
  .tasks { grid-template-columns: 1fr 1fr; }
}

.vs-ok { color: #0B7139; }
.nd-g em { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; }
.nd-g .v { display: block; }
@media (max-width: 1000px) { .stack-cap { margin-bottom: 28px; } }
@media (max-width: 600px) { .lab-tabs, .uc-tabs, .fp-tabs { flex-wrap: wrap; overflow: visible; width: auto; } }
.log { font-family: var(--sans); }
.log .a { font-size: 15px; line-height: 1.5; }
.log .a b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pipe li, .pipe li:first-child { transition: background-color .3s var(--ease); }

/* ---------- hero drawing (replaces the WebGL stack) ---------- */
.stack-iso { margin: 0; }
.stack-iso svg { display: block; width: 100%; height: auto; max-height: min(78vh, 720px); overflow: visible; }
.stack-iso .hl { cursor: pointer; outline: none; opacity: 0; transform: translateY(-28px);
  transition: transform .5s var(--ease), opacity .5s var(--ease); }
.stack-iso.built .hl, .stack-iso svg.built .hl { opacity: 1; transform: none; transition-delay: var(--d, 0ms); }
.stack-iso svg.built .hl.on { transform: translateY(-9px); transition-delay: 0ms; }
.stack-iso svg.focus .hl:not(.on) { opacity: .5; transition-delay: 0ms; }
.stack-iso .hl:focus-visible path:first-child { stroke: var(--blue); }
.stack-iso .case, .stack-iso .web, .stack-iso .col { opacity: 0; transition: opacity .6s var(--ease) .7s; }
.stack-iso svg.built .case, .stack-iso svg.built .web { opacity: 1; }
.stack-iso svg.built .case[opacity] { opacity: .45; }
.stack-iso svg.built .col { opacity: 1; }
.stack-iso .pk { pointer-events: none; }
.stack-iso .stack-cap { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .stack-iso .hl, .stack-iso .case, .stack-iso .web, .stack-iso .col { opacity: 1; transform: none; transition: none; } }

/* ---------- round 2: lower sections ---------- */
/* errands: the result is always readable; it rises in when the run finishes */
.uc-result { opacity: 1; transform: translateY(8px); transition: transform .5s var(--ease), background-color .3s var(--ease); }
.uc-result.in { transform: none; }
.uc-result:not(.in) .big { color: var(--ink-3); }
.uc-body { min-height: 0; }
.uc-chat { display: flex; flex-direction: column; }

/* task lists: two named groups instead of a word wall */
.tasks-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 72px; }
.tasks-g .tasks-h { margin-top: 0; }
.tasks { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; }
.tasks li, .tasks li.re { font-family: var(--sans); font-stretch: 100%; font-weight: 600; text-transform: none; font-size: 17px; letter-spacing: -0.01em;
  line-height: 1.3; padding: 16px 18px; border-radius: 10px; background: var(--soft); color: var(--ink); }
.tasks-re li { background: var(--blue-2); color: var(--blue); }
.tasks li:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* tools: two columns, pace as a full-width row */
.tools { grid-template-columns: 1fr 1fr; }
.tool { min-height: 0; }
.tool-wide { grid-column: 1 / -1; }
.tool-wide .tool-f { font-family: var(--sans); font-stretch: 100%; font-weight: 400; text-transform: none; font-size: var(--t-s); color: var(--ink-2); line-height: 1.5; }
.pace-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.pace-row .tb-ctrls { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.pace-row .ctrl { justify-content: space-between; height: 44px; }
.pace-row .slide input { flex: 1; width: auto; }
.pace-row .pace-stage { min-height: 200px; }

/* closing band: room between the headline and the line under it */
.end { gap: 0; }
.end h2 { margin-bottom: 28px; }
.end p { margin-bottom: 28px; font-size: var(--t-l); line-height: 1.5; }
.end .btn { margin-top: 0; }

@media (max-width: 1000px) { .tasks-wrap { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } .pace-row { grid-template-columns: 1fr; } }
.pace-row .step output { flex: 1; }
.pace-row .dots { justify-content: flex-start; gap: 14px; }

/* ---------- Hero proof ribbon (replaces the stats row) ---------- */



/* ---------- Bilibili's stamp: one big, plain widget ---------- */
.sp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1.5px solid var(--ink); }
.sp-try { container-type: inline-size; padding: clamp(22px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.sp-ask { display: grid; gap: 10px; }
.sp-ask span { font-size: 18px; font-weight: 700; }
.sp-ask input { height: 64px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font: 700 28px var(--sans); color: var(--ink); width: 100%; }
.sp-ask input:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
.sp-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.sp-chip { flex: 1 1 0; min-width: 120px; display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.sp-chip span { font-size: 14px; color: var(--ink-2); }
.sp-chip b { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-key { background: var(--blue-2); }
.sp-key b { color: var(--blue); font-size: 16px; white-space: normal; }
.sp-plus { align-self: center; font-size: 26px; font-weight: 800; color: var(--ink-3); }
.sp-eq { font-size: 18px; font-weight: 700; margin-top: 4px; }
.sp-out { display: block; margin-top: -12px; padding: 22px 24px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--mono); font-weight: 600; font-size: max(13px, min(32px, calc((100cqw - 52px) / 20))); letter-spacing: 0; word-break: break-all; white-space: nowrap; overflow: hidden; line-height: 1.2; }
.sp-out.new { animation: sp-new .6s var(--ease); }
@keyframes sp-new { from { color: #9DAEFF; } to { color: #fff; } }
.sp-note { font-size: 16px; color: var(--ink-2); max-width: 56ch; }
.sp-proof { padding: clamp(22px, 3.4vw, 44px); background: var(--blue); color: #fff; display: flex; flex-direction: column; gap: 16px; }
.sp-big { font-family: var(--poster); font-stretch: 75%; font-weight: 900; font-size: clamp(80px, 2rem + 6vw, 150px); line-height: .8; }
.sp-proof h3 { font-size: clamp(20px, .9rem + .8vw, 26px); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.sp-pair { display: grid; gap: 4px; padding: 16px; border-radius: 12px; background: rgb(10 20 120 / .35); }
.sp-pair p { font-size: 14px; color: rgb(255 255 255 / .8); }
.sp-pair code { font-size: 15px; word-break: break-all; margin-bottom: 6px; }
@media (max-width: 900px) { .sp { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sp-plus { display: none; } .sp-chip { flex-basis: 100%; } .sp-ask input { font-size: 22px; height: 56px; } }

/* ---------- Douyin's stamp ---------- */
.dy-lead { font-size: clamp(18px, .9rem + .5vw, 21px); line-height: 1.5; font-weight: 500; max-width: 54ch; }
.dy-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: dy; }
.dy-path li { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 12px; background: var(--soft); }
.dy-path li:nth-child(2) { background: var(--ink); color: #fff; }
.dy-path li:nth-child(2) span { color: rgb(255 255 255 / .75); }
.dy-path b { font-size: 17px; line-height: 1.25; }
.dy-path span { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; }
.dy-tok { display: block; margin-top: -12px; padding: 18px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: max(12px, min(17px, calc((100cqw - 40px) / 39))); line-height: 1.55; word-break: break-all; }
.dy-tok span { color: #9DAEFF; }
@media (max-width: 680px) { .dy-path { grid-template-columns: 1fr; } }
.sp-pair b { font-size: 17px; line-height: 1.3; margin-bottom: 6px; }


/* =====================================================================
   Middle, v4 (23 Nov): after runeicons.com. A ruled page frame, white
   cards, one precise line drawing or real control per card, a title
   and one quiet line. No pills, no glows, no blobs.
   ===================================================================== */
.k-sec { --card: #FFFFFF; --k-line: #E3DED3; --k-line-2: #CFC8BA; --k-guide: #D9D2C3; --k-soft: #F4F1EA; padding: 0; }
.k-sec::before { display: none; }
.k-sec > .wrap { padding-block: clamp(72px, 7vw, 112px); border-inline: 1px dashed var(--k-guide); }
.k-sec + .k-sec { border-top: 1px dashed var(--k-guide); }
.k-plug > .wrap { padding-bottom: clamp(110px, 11vw, 170px); }
.k-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: clamp(40px, 4vw, 56px); }
.k-head h2 { font-size: clamp(36px, 1rem + 2.5vw, 56px); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.k-head p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }

.k-card { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--k-line); border-radius: 20px; overflow: hidden; }
.k-art { position: relative; flex: 1; min-height: 360px; }
.k-txt { padding: 4px 32px 30px; }
.k-txt h3, .k-txt .h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.k-txt > p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.k-bento { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); gap: 16px; }
.k-trace { grid-column: 1; grid-row: 1 / 3; }
.k-read { grid-column: 2 / 4; grid-row: 1; }
.k-pause { grid-column: 2; grid-row: 2; }
.k-pay { grid-column: 3; grid-row: 2; }
.k-trace .k-art { padding: 32px 20px 0; }
.k-trace .iso { max-width: 100%; }
.k-read .k-art, .k-pause .k-art, .k-pay .k-art { min-height: 260px; }
.k-pay .k-art { padding: 20px 16px; }
.k-pause .pz-stage { padding: 24px 28px 18px; }
.k-pause .pz-now { font-size: 20px; min-height: 2.7em; }
.k-pay .py-stack { width: 100%; }

/* toolbar, as in a real editor */
.k-bar { display: flex; align-items: center; gap: 8px; padding: 14px 14px 0; }
.k-bar button, .rd-seg, .rd-nav { height: 34px; border: 1px solid var(--k-line); border-radius: 9px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); }
.k-bar button:hover { border-color: var(--k-line-2); }

/* trace: an exploded isometric stack */
.k-trace .k-art { display: grid; place-items: center; padding: 24px 24px 0; }
.iso { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.iso text { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-2); }
.iso .lab-on { fill: var(--blue); }

/* pause: playhead over a ruler */
.k-pause .k-art { display: flex; flex-direction: column; }
.pz-play { display: grid; place-items: center; width: 34px; padding: 0; }
.pz-play svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pz-play .i-play { display: none; fill: currentColor; stroke: none; }
.paused .pz-play .i-play { display: block; } .paused .pz-play .i-pause { display: none; }
.pz-step { padding: 0 14px; } .pz-step:disabled { color: var(--ink-3); cursor: default; }
.pz-state { margin-left: auto; padding-right: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.pz-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 36px 20px; }
.pz-now { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; min-height: 3.1em; font-size: clamp(20px, 1rem + .5vw, 24px); line-height: 1.3; letter-spacing: -0.015em; }
.pz-now span { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.pz-now b { font-weight: 500; }
.pz-track { position: relative; height: 64px; margin-top: 30px; }
.pz-track svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pz-track line { stroke: var(--k-line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pz-track line.maj { stroke: var(--ink-2); }
.pz-head { position: absolute; top: -10px; bottom: 18px; left: var(--x, 0%); width: 1.5px; margin-left: -.75px; background: var(--blue); transition: left .7s var(--ease); }
.pz-head::before { content: ""; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; transform: translateX(-50%); background: var(--blue); }
.paused .pz-head::before { background: #fff; outline: 1.5px solid var(--blue); outline-offset: -1.5px; }
.pz-labels { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* read */
.k-read .k-art { display: flex; flex-direction: column; }
.rd-seg { display: inline-flex; padding: 3px; gap: 2px; }
.rd-seg button { height: 26px; padding: 0 11px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); }
.rd-seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.rd-nav { display: inline-flex; align-items: center; margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); overflow: hidden; }
.rd-nav button { width: 32px; height: 100%; border: 0; border-radius: 0; font-size: 16px; }
.rd-nav span { padding: 0 8px; border-inline: 1px solid var(--k-line); line-height: 32px; }
.rd-stage { flex: 1; display: grid; align-items: center; padding: 24px 40px; }
.rd-out { font-family: var(--mono); font-size: 14px; line-height: 1.75; color: var(--ink-2); word-break: break-all; }
.rd-out.plain { font-family: var(--sans); font-size: clamp(21px, 1rem + .55vw, 25px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); word-break: normal; text-wrap: balance; }

/* pay: stacked notices */
.k-pay .k-art { display: grid; place-items: center; padding: 24px; }
.py-stack { position: relative; width: min(100%, 330px); height: 98px; }
.py-note { --pos: 0; position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--k-line); border-radius: 14px; background: #fff; z-index: calc(3 - var(--pos)); transform: translateY(calc(var(--pos) * 10px)) scale(calc(1 - var(--pos) * .06)); transform-origin: 50% 100%; transition: transform .5s var(--ease), opacity .5s; }
.py-note:not(.front) > * { opacity: 0; transition: opacity .15s; }
.py-note.leave { transform: translateY(-18px); opacity: 0; transition-duration: .3s; }
.py-ico { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--k-line); border-radius: 10px; }
.py-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.py-t b { display: block; font-size: 15px; font-weight: 500; }
.py-t small { display: block; font-size: 13px; color: var(--ink-2); }

/* the two cases */
.k-duo { display: block; }
.k-dy { flex-direction: row-reverse; }
.k-dy .k-art { flex: 1.35; min-height: 480px; }
.k-dy .k-txt { flex: 1; align-self: center; padding: 48px 8px 48px 56px; }
.k-dy .k-txt h3, .k-dy .k-txt .h3 { font-size: clamp(26px, 1rem + 1.2vw, 34px); letter-spacing: -0.025em; line-height: 1.15; }
.k-dy .k-txt > p { font-size: 16px; margin-top: 12px; }
.k-dy .dy-tok { font-size: 15px; }

/* Bilibili: an open bench, not a box */
.k-play { display: flex; flex-direction: column; align-items: center; margin-top: clamp(96px, 10vw, 150px); text-align: center; }
.k-play h3, .k-play .h3 { margin: 0; font-size: clamp(30px, 1rem + 1.8vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.pl-sub { margin-top: 12px; font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.k-play .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pl-ask { display: block; width: min(100%, 620px); margin-top: 48px; }
.pl-ask input { width: 100%; padding: 6px 0 14px; border: 0; border-bottom: 1.5px solid var(--ink); background: none; text-align: center; font: 500 clamp(32px, 1rem + 2.6vw, 56px)/1.1 var(--sans); letter-spacing: -0.03em; color: var(--ink); caret-color: var(--blue); }
.pl-ask input:focus { outline: none; border-bottom-color: var(--blue); }
.pl-wire { display: block; width: 24px; height: 56px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 3 4; }
.k-play .bl-out { width: 100%; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 5px; margin-top: 0; }
.k-play .bl-out i { aspect-ratio: .78; background: #fff; border-radius: 5px; font-size: clamp(13px, .4rem + .7vw, 19px); }
.k-play .bl-note { width: 100%; }
.k-case .k-art { min-height: 440px; }
.k-case .k-txt { padding: 4px 36px 34px; }
.k-who { margin-bottom: 8px; font-size: 13px; color: var(--ink-3); }

.k-dy .k-art { display: grid; place-items: center; padding: 40px; background:
  linear-gradient(to right, transparent calc(50% - .5px), var(--k-line) 0 calc(50% + .5px), transparent 0),
  linear-gradient(to bottom, transparent calc(50% - .5px), var(--k-line) 0 calc(50% + .5px), transparent 0); }
.dy-fig { position: relative; padding: 0 0 34px; }
.dy-tok { position: relative; display: block; border-radius: 0; white-space: pre; width: auto; padding: 18px 20px; border: 1px solid var(--ink); background: #fff; font-size: 13px; line-height: 1.7; letter-spacing: .14em; color: var(--ink); word-break: break-all; }
.dy-tok i { font-style: normal; transition: color .15s; }
.dy-tok i.wait { color: var(--k-line); }
.dy-h { position: absolute; width: 8px; height: 8px; border: 1px solid var(--ink); background: #fff; }
.dy-h.h1 { left: -4px; top: -4px; } .dy-h.h2 { right: -4px; top: -4px; } .dy-h.h3 { left: -4px; bottom: 30px; } .dy-h.h4 { right: -4px; bottom: 30px; }
.dy-dim { position: absolute; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.dy-dim::before, .dy-dim::after { content: ""; flex: 1; border-top: 1px solid var(--ink-3); }
.dy-dim-x { left: 0; right: 0; bottom: 6px; }
.dy-dim-y { left: 0; top: 0; bottom: 34px; width: 20px; writing-mode: vertical-rl; transform: rotate(180deg); justify-content: center; }
.dy-dim-y::before, .dy-dim-y::after { border-top: 0; border-left: 1px solid var(--ink-3); width: 0; }

.k-bl .k-art { display: flex; flex-direction: column; justify-content: center; padding: 44px 44px 20px; }
.bl-ask span { display: block; margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
.bl-ask input { width: 100%; height: 56px; padding: 0 18px; border: 1px solid var(--k-line-2); border-radius: 12px; background: #fff; font: 500 20px/1 var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.bl-ask input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-2); }
.bl-out { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 28px; }
.bl-out i { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--k-line); border-radius: 6px; font-style: normal; font-family: var(--mono); font-size: clamp(14px, .5rem + .7vw, 18px); color: var(--ink); transition: color .2s; }
.bl-out i.roll { color: var(--ink-3); }
.bl-note { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }

/* agents */
.k-agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ag { display: grid; gap: 4px; min-width: 0; padding: 22px; border: 1px solid var(--k-line); border-radius: 18px; background: var(--card); text-align: left; transition: border-color .2s; }
.ag:hover { border-color: var(--k-line-2); }
.ag-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; }
.ag-ico { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--k-line); border-radius: 10px; }
.ag-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ag-pill { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.ag:hover .ag-pill { color: var(--ink); }
.ag.done .ag-pill { color: var(--green); }
.ag b { font-size: 16px; font-weight: 500; }

@media (max-width: 1000px) {
  .k-sec > .wrap { border-inline: 0; }
  .k-bento { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .k-trace { grid-column: 1 / 3; grid-row: 1; } .k-read { grid-column: 1 / 3; grid-row: 2; }
  .k-pause { grid-column: 1; grid-row: 3; } .k-pay { grid-column: 2; grid-row: 3; }
  .k-trace .iso { max-width: 520px; }
  .k-play .bl-out { grid-template-columns: repeat(16, minmax(0, 1fr)); }
  .k-dy { flex-direction: column; } .k-dy .k-txt { align-self: stretch; padding: 8px 36px 36px; } .k-dy .k-art { min-height: 400px; }
  .k-agents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .k-head { grid-template-columns: 1fr; }
  .k-bento { grid-template-columns: minmax(0, 1fr); } .k-bento > * { grid-column: 1 !important; grid-row: auto !important; }
}
@media (max-width: 600px) {
  .k-art { min-height: 300px; }
  .k-case .k-art { min-height: 0; }
  .k-txt, .k-case .k-txt { padding: 4px 22px 24px; }
  .pz-stage, .rd-stage { padding: 24px 22px; }
  .k-bl .k-art { padding: 28px 22px 16px; }
  .k-dy .k-art { padding: 32px 16px; }
  .dy-tok { font-size: 11px; padding: 14px; letter-spacing: .08em; }
  .k-agents { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .k-play .bl-out { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .k-play .bl-out i { aspect-ratio: 1; }
  .k-dy .k-txt { padding: 4px 22px 26px; } .k-dy .k-art { min-height: 0; } .k-dy .dy-tok { font-size: 11px; }
}

/* proof: how a seal works, in three steps */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(48px, 5vw, 72px); border-block: 1px dashed var(--k-guide); }
.how li { display: grid; gap: 10px; padding: 24px 24px 26px 0; font-size: 16px; line-height: 1.5; }
.how li + li { padding-left: 24px; border-left: 1px dashed var(--k-guide); }
.how b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--blue); }
@media (max-width: 860px) {
  .how { grid-template-columns: 1fr; } .how li + li { padding-left: 0; border-left: 0; border-top: 1px dashed var(--k-guide); }
}

/* hero typer: the rolling verb shares the sentence's baseline */
.typer { line-height: 1.3; white-space: nowrap; }
.typer .roll { display: inline-block; vertical-align: top; height: 1.3em; line-height: 1.3; overflow: hidden; }

/* the brand mark: two triangles, drawn in the text colour */
svg.mark-g, [data-theme="dark"] svg.mark-g, .foot-brand svg.mark-g, .lfoot svg.mark-g, .ft-links svg.mark-g { display: block; flex: none; width: 28px; height: 20px; padding: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; overflow: visible; }
svg.mark-g .m-fill { clip-path: inset(0 0 100% 0); }
