:root {
  --paper: #f3f1eb;
  --paper-2: #ebe8df;
  --white: #fbfaf6;
  --ink: #101114;
  --ink-2: #33352f;
  --muted: #6c6d66;
  --line: #d6d2c6;
  --line-soft: #e3e0d6;
  --accent: #2b45f2;
  --accent-soft: #e2e6ff;
  --signal: #d4f15a;
  --danger: #d6452c;
  --orange: var(--accent);
  --sans: 'Schibsted Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, 'PingFang SC', monospace;
  --serif: var(--sans);
  --wrap: 1240px;
  --gutter: 32px;
  --gap: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 auto 0 50%;
  width: min(var(--wrap), calc(100% - var(--gutter)));
  transform: translateX(-50%);
  border-inline: 1px solid var(--line-soft);
  pointer-events: none;
  z-index: 0;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
figure { margin: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(44px, 6.4vw, 90px); line-height: 0.98; letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.18; letter-spacing: -0.02em; }
h4 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
h1 em, h2 em { display: inline-block; font-style: normal; color: var(--muted); }

.wrap { position: relative; width: min(var(--wrap), calc(100% - var(--gutter))); margin-inline: auto; padding-inline: 28px; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main { position: relative; z-index: 1; }

.mono, .eyebrow, .section-label, .tag, .page-index > span {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.eyebrow::before { content: '['; color: var(--accent); }
.eyebrow::after { content: ']'; color: var(--accent); }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); display: inline-block; flex: none; }
.tag { display: inline-flex; align-items: center; padding: 3px 7px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-size: 10px; white-space: nowrap; }
.tag.ai, .tag.orange { color: var(--accent); border-color: #c7cefd; background: var(--accent-soft); }
.tag.code, .tag.green { color: var(--ink); background: var(--paper-2); }
.tag.human { color: #4d4300; background: #f1f6d2; border-color: #d9e39b; }

/* A section line, with crosshairs where it meets the page rails. */
.band { position: relative; border-top: 1px solid var(--line); }
.band::before, .band::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 11px;
  height: 11px;
  background: linear-gradient(var(--ink), var(--ink)) center / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) center / 100% 1px no-repeat;
  z-index: 2;
}
.band::before { left: calc(50% - min(var(--wrap), 100% - var(--gutter)) / 2 - 5px); }
.band::after { right: calc(50% - min(var(--wrap), 100% - var(--gutter)) / 2 - 5px); }

.button {
  --cut: 9px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--ink);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.button:active { transform: scale(0.97); }
.button-dark, .button-orange { background: var(--ink); color: var(--paper); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.button-small { min-height: 36px; padding: 0 14px; font-size: 11px; --cut: 7px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--paper); }
  .button-dark:hover, .button-orange:hover { background: var(--accent); }
}
.text-link { display: inline-flex; gap: 8px; align-items: center; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 5px; border-bottom: 1px solid currentColor; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--accent); } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  width: min(var(--wrap), calc(100% - var(--gutter)));
  margin-inline: auto;
  padding-inline: 28px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.045em; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); gap: 2px; flex: none; }
.brand-mark i { width: 7px; height: 7px; background: var(--ink); }
.brand-mark::after { content: ''; width: 7px; height: 7px; background: var(--accent); }
.brand-mark.small { grid-template-columns: repeat(2, 5px); }
.brand-mark.small i, .brand-mark.small::after { width: 5px; height: 5px; }
#site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
#site-nav a { color: var(--ink-2); transition: color 160ms ease; }
#site-nav a[aria-current] { color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { #site-nav a:hover { color: var(--accent); } }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; padding: 8px 2px; border: 0; background: none; font-size: 15px; color: var(--ink); cursor: pointer; }
.menu-toggle span { display: inline-block; transition: transform 200ms var(--ease-out); }
.menu-toggle[aria-expanded='true'] span { transform: rotate(45deg); }

/* ---------- Home: hero ---------- */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center; padding-block: 96px 112px; }
.hero-copy { grid-column: 1 / span 7; }
.hero h1 .caret { display: inline-block; width: 0.09em; height: 0.74em; margin-left: 0.08em; background: var(--accent); vertical-align: -0.02em; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero-lead { max-width: 30em; margin: 32px 0 0; font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.hero-figure { grid-column: 8 / span 5; }
.hero-figure .frame { aspect-ratio: 1; }
.hero-figure canvas { width: 100%; height: 100%; }
.frame { position: relative; border: 1px dashed var(--line); }
.frame > .corner { position: absolute; width: 9px; height: 9px; border: 0 solid var(--ink); }
.frame > .corner:nth-of-type(1) { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.frame > .corner:nth-of-type(2) { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.frame > .corner:nth-of-type(3) { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.frame > .corner:nth-of-type(4) { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }


/* ---------- Section scaffold: a label in three columns, the content in nine ---------- */
.section { padding-block: 112px; }
.section-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); row-gap: 24px; align-items: end; margin-bottom: 56px; }
.section-head h2 { grid-column: 1 / span 8; }
.section-head h2:only-child { grid-column: 1 / -1; }
.section-head .section-aside { grid-column: 9 / span 4; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.section-head .section-aside p:last-child { margin-bottom: 0; }
.section-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
.section-body > * { grid-column: 1 / -1; }
.section-body > .full { grid-column: 1 / -1; }

/* ---------- Film ---------- */
.film {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--paper-2);
  overflow: hidden;
}
.film-top { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.film-title { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.film-top .rec { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.film-top .rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.film[data-playing] .rec i { animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.film-screen { position: relative; height: 540px; }
.scene { position: absolute; inset: 0; display: grid; grid-template-columns: 5fr 7fr; visibility: hidden; }
.scene.active { visibility: visible; }
.feed { display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; border-right: 1px solid var(--line); overflow: hidden; }
.feed-stage { display: flex; justify-content: space-between; margin-bottom: 4px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.feed-stage b { color: var(--accent); font-weight: 500; }
.msg { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.msg .who { width: 26px; height: 26px; display: grid; place-items: center; font: 600 11px/1 var(--mono); background: var(--paper-2); color: var(--ink); }
.msg.bot .who { background: var(--ink); color: var(--signal); }
.msg .name { display: block; margin-bottom: 2px; font: 500 10px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.msg p { margin: 0; }
.log { display: flex; align-items: center; gap: 10px; margin-left: 38px; padding: 8px 10px; border: 1px dashed var(--line); font: 400 12px/1.4 var(--mono); color: var(--ink-2); }
.log::before { content: '›'; color: var(--accent); }
.log.done::after { content: '✓'; margin-left: auto; color: var(--accent); }
.choices { display: grid; gap: 8px; padding-left: 38px; }
.choice { text-align: left; padding: 10px 12px; border: 1px solid var(--line); background: var(--white); font-size: 13.5px; transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.choice.pressed, .switch.pressed { transform: scale(0.97); }
.choice.chosen { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.stage-pane { position: relative; padding: 26px 28px; background: var(--paper) radial-gradient(circle, #cdc8ba 1px, transparent 1.3px) 0 0 / 16px 16px; overflow: hidden; }
.pane-label { display: flex; justify-content: space-between; margin-bottom: 16px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.film [data-at] { opacity: 0; transform: translateY(8px); filter: blur(3px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out), filter 420ms var(--ease-out); }
.film [data-at].on { opacity: 1; transform: none; filter: none; }
.film .node[data-at] { transform: translate(-50%, calc(-50% + 8px)); }
.film .node[data-at].on { transform: translate(-50%, -50%); }
.typing::after { content: ''; display: inline-block; width: 7px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -0.15em; }

.card { position: relative; background: var(--white); border: 1px solid var(--line); padding: 16px 18px; }
.card + .card { margin-top: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.doc-lines { display: grid; gap: 8px; }
.doc-lines i { display: block; height: 7px; background: var(--paper-2); }
.figures { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line-soft); }
.figures > div { padding: 12px 0 2px; }
.figures > div + div { padding-left: 16px; border-left: 1px solid var(--line-soft); }
.figures span { display: block; margin-bottom: 6px; font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.figures strong { font-size: 34px; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.figures .flag strong { color: var(--accent); }
.highlight-box { position: absolute; inset: 6px -6px -4px -6px; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); pointer-events: none; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.graph { position: relative; height: 400px; }
.graph svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.graph path { fill: none; stroke: var(--ink); stroke-opacity: 0.5; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.graph path.key { stroke: var(--accent); stroke-opacity: 1; stroke-dasharray: none; stroke-width: 1.5; }
.node { position: absolute; transform: translate(-50%, -50%); padding: 9px 12px; background: var(--white); border: 1px solid var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; }
.node small { display: block; font: 500 9px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.node.key { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent-soft); }
.node.key small { color: var(--accent); }

.flow { display: grid; gap: 8px; }
.flow-step { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }
.flow-step > span:first-child { font: 500 11px/1 var(--mono); color: var(--muted); }
.flow-step.cut { border-style: dashed; background: transparent; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--danger); }
.criteria { margin-top: 14px; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--white); font: 400 12px/1.7 var(--mono); }
.criteria b { display: block; color: var(--accent); font-weight: 500; letter-spacing: 0.06em; }

.editor { background: #121317; color: #d9dbe2; font: 400 12.5px/1.75 var(--mono); border: 1px solid var(--ink); }
.editor-tabs { display: flex; border-bottom: 1px solid #2a2c33; font-size: 11px; }
.editor-tabs span { padding: 9px 14px; color: #8a8d98; }
.editor-tabs span.on-tab { color: #fff; box-shadow: inset 0 -2px 0 var(--signal); }
.editor pre { margin: 0; padding: 14px 16px; height: 286px; overflow: hidden; white-space: pre-wrap; font: inherit; }
.diffstat { display: flex; gap: 16px; margin-top: 12px; font: 500 11px/1 var(--mono); color: var(--muted); }
.diffstat .plus { color: #2f7d32; }

.tests { display: grid; gap: 8px; }
.test { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; background: var(--white); border: 1px solid var(--line); font-size: 14px; }
.test .mark { width: 20px; height: 20px; display: grid; place-items: center; font: 600 11px/1 var(--mono); border: 1px solid var(--ink); background: var(--ink); color: var(--signal); }
.test.fail { border-color: var(--danger); }
.test.fail .mark { background: var(--danger); border-color: var(--danger); color: #fff; }
.test small { font: 400 11px/1 var(--mono); color: var(--muted); }
.repair { margin-left: 32px; padding: 10px 14px; border: 1px dashed var(--accent); color: var(--accent); font: 400 12px/1.5 var(--mono); }
.summary { display: flex; justify-content: space-between; margin-top: 4px; padding: 12px 14px; background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); letter-spacing: 0.04em; }
.summary b { color: var(--signal); font-weight: 500; }

.release .row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.release .row:first-of-type { padding-top: 0; }
.release .row span { font: 500 10px/1.8 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 10px; border: 1px solid var(--ink); background: var(--white); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; transition: transform 140ms var(--ease-out); }
.switch i { position: relative; width: 36px; height: 20px; background: var(--paper-2); border: 1px solid var(--ink); transition: background-color 220ms ease; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--ink); transition: transform 260ms var(--ease-out); }
.switch.chosen i { background: var(--signal); }
.switch.chosen i::after { transform: translateX(16px); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.stats > div { padding: 14px 16px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 36px; font-weight: 500; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { font: 500 10px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.spark { width: 100%; height: 70px; margin: 14px 0; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark path.area { fill: var(--accent-soft); stroke: none; }
.watch { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); font-size: 13.5px; }
.watch + .watch { margin-top: 8px; }
.watch.key { border-color: var(--accent); }
.watch small { font: 400 11px/1.6 var(--mono); color: var(--muted); white-space: nowrap; }

.cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transition: transform 700ms var(--ease-in-out), opacity 200ms ease; }
.cursor.on { opacity: 1; }
.cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.25)); transition: transform 120ms var(--ease-out); transform-origin: 4px 3px; }
.cursor.down svg { transform: scale(0.82); }

.chapters { display: grid; grid-template-columns: 58px repeat(7, 1fr); border-top: 1px solid var(--ink); }
.play-toggle { display: grid; place-items: center; border: 0; border-right: 1px solid var(--line); background: var(--white); cursor: pointer; transition: background-color 160ms ease; }
.play-toggle svg { width: 14px; height: 14px; transition: transform 140ms var(--ease-out); }
.play-toggle:active svg { transform: scale(0.85); }
.chapter { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 16px; border: 0; background: var(--white); text-align: left; cursor: pointer; transition: background-color 160ms ease; }
.chapter + .chapter { border-left: 1px solid var(--line); }
.chapter span { font: 500 10px/1 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.chapter strong { font-size: 14px; font-weight: 500; color: var(--muted); transition: color 160ms ease; }
.chapter i { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.chapter[aria-current] strong, .chapter.done strong { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chapter:hover, .play-toggle:hover { background: var(--paper); } }

/* ---------- Compare ---------- */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.compare tbody th { width: 20%; padding-left: 0; font-weight: 500; }
.compare td { color: var(--ink-2); }
.compare .us { background: var(--ink); color: var(--paper); border-bottom-color: #2c2e33; }
.compare thead .us { color: var(--signal); border-bottom-color: var(--ink); }

/* ---------- Memory ---------- */
.memory { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.memory-copy { grid-column: 1 / span 5; color: var(--ink-2); font-size: 18px; }
.memory-copy .text-link { margin-top: 8px; color: var(--ink); }
.memory-board { grid-column: 7 / span 6; padding: 22px; background: var(--white); border: 1px solid var(--ink); }
.memory-board-title { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.memory-board-title .float-right { margin-left: auto; color: var(--accent); }
.memory-chain { display: grid; }
.memory-chain button { display: grid; gap: 3px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, transform 140ms var(--ease-out); }
.memory-chain button:active { transform: scale(0.98); }
.memory-chain button span { font: 500 10px/1.2 var(--mono); letter-spacing: 0.08em; color: var(--muted); }
.memory-chain button strong { font-size: 15px; font-weight: 500; }
.memory-chain button small { color: var(--muted); font-size: 12px; }
.memory-chain button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.memory-chain button[aria-pressed='true'] span { color: var(--accent); }
.chain-line { margin-left: 22px; height: 18px; border-left: 1px dashed var(--ink); font-size: 0; }
.memory-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.memory-detail { margin-top: 16px; padding: 14px 16px; min-height: 96px; border-left: 2px solid var(--accent); background: var(--paper); font-size: 14px; color: var(--ink-2); }
.memory-detail strong { color: var(--ink); font-weight: 600; }

/* ---------- Solutions ---------- */
.solution-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.solution-tabs button { position: relative; margin-right: 32px; padding: 14px 0; border: 0; background: none; font-size: 17px; color: var(--muted); cursor: pointer; transition: color 160ms ease; }
.solution-tabs button[aria-pressed='true'] { color: var(--ink); }
.solution-tabs button[aria-pressed='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); }
.solution-panel { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.solution-copy { grid-column: 1 / span 5; }
.solution-copy h3 { margin: 0 0 16px; }
.solution-copy p { color: var(--ink-2); font-size: 18px; }
.solution-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 28px; }
.solution-workspace { grid-column: 7 / span 6; padding: 20px; background: var(--white); border: 1px solid var(--ink); }
.solution-workspace h4 { margin: 0 0 12px; }
.solution-workspace > p { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.panel-label { display: flex; justify-content: space-between; margin-bottom: 14px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.state-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.tabs-row { grid-column: 1 / -1; }

/* ---------- Vision curve ---------- */
.curve-plot { position: relative; height: 210px; background: var(--paper-2); }
.curve-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.curve-plot .zone { stroke: var(--ink); stroke-opacity: 0.3; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.curve-plot .line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.curve-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 14%, transparent); }
.curve-stages { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); margin-top: 36px; }
.curve-stage { opacity: 0.35; transition: opacity 500ms ease; }
.curve-stage.lit { opacity: 1; }
.curve-stage span { display: block; margin-bottom: 14px; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.curve-stage h3 { margin-bottom: 12px; }
.curve-stage p { color: var(--ink-2); font-size: 17px; }

/* ---------- Closing ---------- */
.closing-section { position: relative; z-index: 1; background: var(--ink); color: var(--paper); overflow: hidden; }
.closing-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #ffffff24 1px, transparent 1.3px) 0 0 / 18px 18px; mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.closing-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-block: 120px; }
.closing-inner > * { grid-column: 1 / span 8; }
.closing-inner .eyebrow { justify-self: start; color: #a9aba4; }
.closing-inner h2 { grid-column: 1 / -1; margin-bottom: 40px; }
.clause { display: inline-block; }
.closing-inner h2 em { color: #8d8f88; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.closing-section .button { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px var(--paper); justify-self: start; }
.closing-section .button-dark, .closing-section .button-orange { background: var(--signal); color: var(--ink); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .closing-section .button:hover { background: var(--paper); color: var(--ink); } }
.closing-lead { max-width: 34em; margin-bottom: 32px; color: #c9cac4; font-size: 19px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; padding-block: 48px 28px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
.footer-top .wordmark { grid-column: 1 / span 3; }
.footer-top p { grid-column: 4 / span 4; margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.footer-top nav { grid-column: 8 / span 5; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line-soft); font: 400 11px/1.4 var(--mono); color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-block: 96px 72px; }
.page-hero > * { grid-column: 1 / span 9; }
.page-hero .eyebrow { justify-self: start; }
.page-hero h1 { grid-column: 1 / -1; font-size: clamp(40px, 5.4vw, 78px); margin-bottom: 30px; }
.page-lead { max-width: 34em; margin-bottom: 0; font-size: 21px; line-height: 1.55; color: var(--ink-2); }
.page-hero .button { justify-self: start; }
.page-layout { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding-bottom: 96px; }
.page-layout::before { content: ''; position: absolute; left: 0; right: 0; top: 0; border-top: 1px solid var(--line); }
.page-index { grid-column: 1 / span 3; position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; padding-top: 50px; }
.page-index > span { margin-bottom: 14px; color: var(--muted); }
.page-index a { padding: 7px 0 7px 14px; border-left: 1px solid var(--line); font-size: 15px; color: var(--ink-2); transition: color 160ms ease, border-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .page-index a:hover { color: var(--accent); border-color: var(--accent); } }
.page-article { grid-column: 4 / span 7; padding-top: 44px; }
.page-article section { padding-bottom: 56px; scroll-margin-top: 90px; }
.page-article section + section { padding-top: 48px; border-top: 1px solid var(--line-soft); }
.page-article h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 24px; }
.page-article h3 { font-size: 21px; margin: 32px 0 12px; }
.page-article p, .page-article li { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.page-article ul, .page-article ol { padding-left: 1.2em; }
.page-article li { margin-bottom: 8px; }
.page-article strong { color: var(--ink); font-weight: 600; }
.illustration-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 4px 0 28px; }
.illustration-bar span { font: 500 12px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.illustration-bar span + span::before { content: '→'; margin: 0 12px; color: var(--muted); }
.page-article .example-note { padding: 14px 18px 14px 20px; border-left: 2px solid var(--accent); background: var(--white); font-size: 15px; }
.example-note::before { content: 'Example'; display: block; margin-bottom: 6px; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
:lang(zh) .example-note::before { content: '示例'; }

.about-section { padding-block: 72px 96px; border-top: 1px solid var(--line); }
.about-section h2 { margin-bottom: 40px; }
.section-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 32px; color: var(--muted); }
.section-label > :first-child { color: var(--accent); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.team-card img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; margin-bottom: 14px; border: 1px solid var(--line); }
.team-card figcaption strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.team-card figcaption span { display: block; margin: 4px 0 6px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.team-card figcaption small { display: block; font-size: 15px; color: var(--muted); }
.backer { display: flex; align-items: center; gap: 28px; margin-top: 8px; padding: 24px; border: 1px dashed var(--line); background: var(--white); }
.backer img { width: 160px; height: auto; }
.backer p { margin: 0; color: var(--ink-2); }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 28px 0 0; font-size: 15px; }
.contact-list dt { font: 500 11px/1.8 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: #a9aba4; }
.contact-list dd { margin: 0; }
.contact-list > div { display: contents; }

/* ---------- Dialog ---------- */
dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 36px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 12px 12px 0 rgb(0 0 0 / 0.12); }
dialog::backdrop { background: rgb(16 17 20 / 0.45); backdrop-filter: blur(3px); }
dialog[open] { animation: dialog-in 240ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: scale(0.97); } }
dialog h2 { font-size: 38px; margin-bottom: 14px; }
dialog p { color: var(--ink-2); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); font-size: 18px; cursor: pointer; }
.booking-dialog { width: min(760px, calc(100% - 32px)); }
.booking-dialog iframe { display: block; width: 100%; height: min(62vh, 620px); margin-top: 8px; border: 1px solid var(--line); background: var(--white); }
.booking-alt { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.booking-alt a { color: var(--ink); border-bottom: 1px solid currentColor; white-space: nowrap; }
.noscript { padding: 16px; text-align: center; font: 400 13px var(--mono); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-figure { grid-column: 1 / -1; width: min(520px, 100%); justify-self: center; margin-top: 48px; }
  .section-head h2 { grid-column: 1 / span 8; }
  .section-head .section-aside { grid-column: 9 / span 4; }
  .section-body > *, .tabs-row { grid-column: 1 / -1; }
  .page-article { grid-column: 4 / span 9; }
}
@media (max-width: 860px) {
  :root { --gutter: 0px; --gap: 16px; }
  body::before, .band::before, .band::after { display: none; }
  .wrap, .site-header { padding-inline: 20px; }
  .menu-toggle { display: inline-flex; }
  #site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .header-cta { margin-left: 4px; padding: 0 12px; }
  dialog { padding: 24px 16px 16px; }
  .booking-dialog { width: calc(100% - 12px); max-width: none; max-height: calc(100% - 12px); padding: 20px 10px 14px; }
  .booking-dialog h2 { font-size: 28px; margin: 0 52px 8px 6px; }
  .booking-dialog > p { margin-inline: 6px; font-size: 15px; }
  .booking-dialog iframe { height: calc(100svh - 240px); }
  .site-header { gap: 14px; }
  .hero { padding-block: 44px 40px; min-height: 0; }
  .hero-lead { font-size: 17px; }
        .section { padding-block: 80px; }
  .section-head h2, .section-head .section-aside { grid-column: 1 / -1; }
  .film { box-shadow: none; }
  .film-screen { height: auto; }
  .scene { position: relative; display: none; grid-template-columns: 1fr; }
  .scene.active { display: grid; }
  .feed { border-right: 0; border-bottom: 1px solid var(--line); min-height: 300px; }
  .stage-pane { min-height: 430px; padding: 20px; }
  .chapters { grid-template-columns: 52px repeat(7, minmax(88px, 1fr)); overflow-x: auto; }
  .memory-copy, .memory-board, .solution-copy, .solution-workspace { grid-column: 1 / -1; }
  .memory-board, .solution-workspace { margin-top: 32px; }
  .curve-stages { grid-template-columns: 1fr; row-gap: 28px; }
  .curve-plot { height: 150px; }
  .closing-inner > * { grid-column: 1 / -1; }
  .closing-inner { padding-block: 88px; }
  .footer-top > * { grid-column: 1 / -1 !important; }
  .footer-top p { margin-top: 12px; }
  .footer-top nav { justify-content: flex-start; margin-top: 20px; }
  .page-hero { padding-block: 64px 48px; }
  .page-hero > * { grid-column: 1 / -1; }
  .page-index { display: none; }
  .page-article { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .backer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .site-header { gap: 12px; }
  .site-header > * { white-space: nowrap; flex: none; }
  .menu-toggle { font-size: 0; gap: 0; padding: 8px 4px; }
  .menu-toggle span { font-size: 20px; }
  .lang-trigger > svg { display: none; }
  .header-cta { margin-left: 0; padding: 0 10px; font-size: 10px; }
  .figures strong, .stats strong { font-size: 26px; }
  .release .row { grid-template-columns: 1fr; gap: 2px; }
  .graph { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .film [data-at] { transform: none; filter: none; transition: opacity 200ms ease; }
  .film .node[data-at], .film .node[data-at].on { transform: translate(-50%, -50%); }
  .cursor { display: none; }
  .hero h1 .caret { animation: none; }
}

/* Chinese: break only at punctuation and spaces in display text, so a heading never strands one character or "的 AI。" on its own line. */
:root:lang(zh) { --sans: 'Schibsted Grotesk', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif; --mono: 'IBM Plex Mono', 'PingFang SC', 'Noto Sans SC', monospace; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4, :lang(zh) .chapter strong, :lang(zh) .node { word-break: keep-all; letter-spacing: -0.01em; }
:lang(zh) h1 { line-height: 1.12; }
:lang(zh) h2 { line-height: 1.18; }
:lang(zh) body { line-break: strict; }
:lang(zh) .eyebrow, :lang(zh) .section-label, :lang(zh) .tag, :lang(zh) .button, :lang(zh) .text-link { letter-spacing: 0.04em; }
.test .mark, .log.done::after { font-family: system-ui, -apple-system, sans-serif; }
