/* Innata-0 project page
   Type: XCharter (the report's own face), one family throughout.
   Colour: one dark canvas, the same palette as the release film: near-black ground,
   warm off-white ink, and the four token hues (U / V / A / T). */

@font-face { font-family: "XCharter"; src: url("../fonts/XCharter-Roman.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "XCharter"; src: url("../fonts/XCharter-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "XCharter"; src: url("../fonts/XCharter-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "XCharter"; src: url("../fonts/XCharter-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --paper:   #050505;   /* page ground; equals the film's edge colour, so the film has no visible frame */
  --sheet:   #111114;   /* cards and plot panels */
  --sheet-2: #1b1b1f;   /* chips and raised pieces inside a card */
  --edge:    rgba(243, 239, 230, .09);
  --ink:     #f3efe6;
  --ink-2:   #c5c2bb;
  --muted:   #918f8a;
  --rule:    rgba(243, 239, 230, .22);
  --rule-2:  rgba(243, 239, 230, .10);
  --on-ink:  #0a0a0c;   /* text set on ink or on a token hue */

  /* token hues, always paired with a letter label; -50 is the tinted panel behind each */
  --u: #a493ff;  --u-50: #1a1730;
  --v: #e8a94c;  --v-50: #241b0d;
  --a: #5fd08e;  --a-50: #0f2218;
  --t: #55adf7;  --t-50: #0e1d2b;

  --base: 19px;
  --measure: 34em;
  --serif: "XCharter", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--base)/1.6 var(--serif);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(164, 147, 255, .38); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; }
code { font-family: var(--serif); font-style: italic; }

:focus-visible { outline: 2px solid var(--t); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--on-ink); padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ───── top bar ───── */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(5, 5, 5, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule-2);
  font-size: 16px;
}
.bar-name { font-weight: 700; text-decoration: none; color: var(--ink); }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.bar nav a:hover { color: var(--ink); }
.bar-lang {
  margin-left: 8px; min-height: 34px; padding: 0 14px;
  border: 1px solid var(--rule); border-radius: 17px; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink-2); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.bar-lang:hover { border-color: var(--ink); color: var(--ink); }
.bar-org { display: inline-flex; align-items: center; opacity: .8; transition: opacity .2s; }
.bar-org:hover { opacity: 1; }
.bar-org img { height: 26px; width: auto; display: block; }
/* each language has its own mark: the English wordmark on the English page, the Chinese one on the Chinese page */
.bar-org .logo-en { height: 22px; }

/* ───── layout ───── */
main { padding: 0 clamp(20px, 4vw, 56px); overflow-x: clip; }
.sec { max-width: 1180px; margin: 0 auto; padding: 104px 0 24px; position: relative; }
/* each section opens in a faint wash of its own hue, as the film's shots do. The wash is a whole
   ellipse that dies out before every edge of its box, so it never shows a boundary. */
.sec::before {
  content: ""; position: absolute; z-index: -1; top: -170px; left: 50%; width: 100vw; height: 900px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse closest-side at 50% 50%,
    color-mix(in srgb, var(--glow, transparent) 11%, transparent) 0%,
    color-mix(in srgb, var(--glow, transparent) 6.5%, transparent) 34%,
    color-mix(in srgb, var(--glow, transparent) 2%, transparent) 66%,
    transparent 100%);
}
#system  { --glow: var(--t); }
#data    { --glow: var(--a); }
#model   { --glow: var(--v); }
#agent   { --glow: var(--u); }
#results { --glow: var(--a); }
.sec-head { max-width: var(--measure); margin-bottom: 48px; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.012em; margin-bottom: 20px; }
h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.lede { font-size: 21px; line-height: 1.55; color: var(--ink-2); }
.lede-2 { font-size: 18px; line-height: 1.6; margin-bottom: 0; }
.lede strong { color: var(--ink); font-weight: 700; }
/* read aloud and copied, never drawn: keeps a label from running into the words after it */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* which of the three capabilities a block serves: a small label set before its heading */
.cap-tag {
  display: inline-block; margin-right: 12px; padding: 2px 10px; border-radius: 12px; vertical-align: 0.14em;
  font-size: 13px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase;
  color: var(--u); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u) 55%, transparent);
}
.note { max-width: var(--measure); color: var(--ink-2); }

/* ───── hero: full-bleed film above, title bar below, on the page ground ───── */
.hero-film {
  position: relative; margin: 0 calc(-1 * clamp(20px, 4vw, 56px));   /* cancels main's side padding */
  height: calc(100vh - 59px); height: calc(100svh - 59px); min-height: 520px;
  display: flex; flex-direction: column; justify-content: center;
}
/* The film box is exactly the picture (16:9), and its outer 7% feathers into the page, so there
   is no frame at all: the film's own vignette just runs out into the ground. */
.hero-film video {
  flex: 1 1 0; min-height: 0; align-self: center;
  aspect-ratio: 16 / 9; width: auto; max-width: 100%; max-height: calc(100vw * 9 / 16);
  object-fit: contain; object-position: center bottom;
  margin-top: 10px;
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.3) 1.5%, rgba(0,0,0,.75) 4%, #000 7%, #000 93%, rgba(0,0,0,.75) 96%, rgba(0,0,0,.3) 98.5%, transparent), linear-gradient(to bottom, transparent, rgba(0,0,0,.3) 1.5%, rgba(0,0,0,.75) 4%, #000 7%, #000 93%, rgba(0,0,0,.75) 96%, rgba(0,0,0,.3) 98.5%, transparent);
  mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.3) 1.5%, rgba(0,0,0,.75) 4%, #000 7%, #000 93%, rgba(0,0,0,.75) 96%, rgba(0,0,0,.3) 98.5%, transparent), linear-gradient(to bottom, transparent, rgba(0,0,0,.3) 1.5%, rgba(0,0,0,.75) 4%, #000 7%, #000 93%, rgba(0,0,0,.75) 96%, rgba(0,0,0,.3) 98.5%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-film-text {
  flex: 0 0 auto; width: min(1180px, 100% - 2 * clamp(20px, 4vw, 56px)); margin: 0 auto;
  padding: 10px 0 clamp(22px, 4vh, 44px);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  column-gap: 32px; align-items: center;
}
.hero-film-text h1 { grid-column: 1; font-size: clamp(36px, 3.8vw, 58px); line-height: 1.05; letter-spacing: -0.02em; }
.hero-sub { grid-column: 1; font-style: italic; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.25; color: var(--ink-2); margin: 6px 0 0; }
.hero-by { grid-column: 2; grid-row: 1; text-align: right; color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }
.hero-links { grid-column: 2; grid-row: 2; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 10px; }
/* the film's control bar: play or pause, time, scrubber, mute; as wide as the title block under it */
.hero-film video { cursor: pointer; }
.film-bar {
  flex: none; width: min(1180px, 100% - 2 * clamp(20px, 4vw, 56px)); margin: 4px auto 0;
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums;
}
.film-btn {
  flex: none; width: 38px; height: 38px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(243, 239, 230, .34); background: transparent; color: var(--ink);
  transition: background .2s, border-color .2s;
}
.film-btn:hover { background: rgba(243, 239, 230, .1); border-color: var(--ink); }
/* play or pause, in the link row: the same height as the links beside it */
.hero-links .film-btn { width: 44px; height: 44px; border-color: rgba(243, 239, 230, .42); }
.hero-links .film-btn svg { width: 15px; height: 15px; }
.film-btn svg { fill: currentColor; display: block; }
.film-btn .wave { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.film-btn .i-play, .film-btn.is-paused .i-pause, .film-btn .i-off, .film-btn.is-muted .i-on { display: none; }
.film-btn.is-paused .i-play, .film-btn.is-muted .i-off { display: block; }
.film-time { flex: none; min-width: 2.4em; text-align: center; }
.film-seek {
  flex: 1 1 auto; min-width: 0; height: 24px; margin: 0; padding: 0;
  -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
.film-seek:disabled { cursor: default; opacity: .45; }
.film-seek::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--ink) var(--pos, 0%), rgba(243, 239, 230, .24) var(--pos, 0%));
}
.film-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; margin-top: -5px; border: 0; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 0 rgba(243, 239, 230, .25); transition: box-shadow .15s;
}
.film-seek:hover::-webkit-slider-thumb, .film-seek:active::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(243, 239, 230, .2); }
.film-seek::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(243, 239, 230, .24); }
.film-seek::-moz-range-progress { height: 3px; border-radius: 2px; background: var(--ink); }
.film-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--ink); }
.film-seek:focus-visible { outline: 2px solid var(--t); outline-offset: 2px; border-radius: 3px; }
/* the sound prompt: a pill over the lower part of the film, there only while sound is held back */
.sound-cue {
  position: absolute; z-index: 3; left: 50%; top: var(--cue-y, 62%); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px 0 18px;
  border: 1px solid rgba(243, 239, 230, .5); border-radius: 23px;
  background: rgba(10, 10, 12, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font: inherit; font-size: 17px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  transition: background .2s, border-color .2s;
}
.sound-cue[hidden] { display: none; }
/* the same prompt, asking for a tap to start the film (browsers that refuse to autoplay at all) */
.sound-cue .i-go, .sound-cue.is-go .i-snd { display: none; }
.sound-cue.is-go .i-go { display: block; }
.sound-cue:hover { background: rgba(30, 30, 34, .8); border-color: var(--ink); }
.sound-cue svg { flex: none; fill: currentColor; }
.sound-cue .wave { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@keyframes cue-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)); } }
@keyframes cue-ring { 0% { box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 0 0 rgba(243, 239, 230, .34); } 70%, 100% { box-shadow: 0 8px 30px rgba(0, 0, 0, .5), 0 0 0 14px rgba(243, 239, 230, 0); } }
html.motion .sound-cue { animation: cue-in .5s cubic-bezier(.33, 1, .68, 1) backwards, cue-ring 2.2s ease-out .6s 3; }
@media (max-width: 1000px) {
  .hero-film-text { grid-template-columns: 1fr; }
  .hero-by { grid-column: 1; grid-row: auto; text-align: left; margin-top: 10px; }
  .hero-links { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
@media (max-width: 720px), (max-aspect-ratio: 5/4) {
  /* phones and portrait tablets: the film is a strip, so the hero is just as tall as its content */
  .sound-cue { position: static; transform: none; align-self: center; flex: none; margin: 14px 0 2px; min-height: 40px; padding: 0 18px 0 14px; font-size: 16px; gap: 8px; }
  html.motion .sound-cue { animation: cue-ring 2.2s ease-out .6s 3; }
  .hero-film { height: auto; min-height: 0; }
  .hero-film video { flex: 0 0 auto; width: 100%; }
  .hero-film-text { padding-top: 18px; padding-bottom: 8px; }
}

.btn {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 20px; border: 1px solid rgba(243, 239, 230, .42); border-radius: 22px;
  background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { background: rgba(243, 239, 230, .09); border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn-primary:hover { background: #fff; border-color: #fff; }
/* a link whose address is not out yet: it says so on its face, and does not react like a live link */
.btn[data-pending] { cursor: default; gap: 10px; }
.btn[data-pending]:hover { background: transparent; border-color: rgba(243, 239, 230, .42); }
.btn[data-pending]:active { transform: none; }
.btn-primary[data-pending], .btn-primary[data-pending]:hover { background: var(--ink); border-color: var(--ink); }
.soon {
  padding: 2px 8px; border-radius: 10px; font-size: 12px; line-height: 1.5; letter-spacing: .03em; white-space: nowrap;
  color: var(--ink-2); background: rgba(243, 239, 230, .1);
}
.btn-primary .soon { color: #4b4a45; background: rgba(5, 5, 5, .09); }
:lang(zh-CN) .soon { letter-spacing: 0; }

/* ───── the loop, drawn as a ring of light beside the section head ───── */
.sys-top { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; margin-bottom: 64px; }
.sys-top .sec-head { margin-bottom: 0; }
.loop { margin: 0; }
.orb { position: relative; aspect-ratio: 1 / 0.8; }
.orb canvas { position: absolute; left: -15%; top: -15%; width: 130%; height: 130%; pointer-events: none; }
.orb-core {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  text-shadow: 0 0 5px rgba(5, 5, 5, .9), 0 0 12px rgba(5, 5, 5, .7);
}
.orb-st {
  position: absolute; left: 0; top: 0; width: 0; height: 0; padding: 0; border: 0; background: none;
  color: var(--ink); font: inherit; cursor: pointer; will-change: transform, opacity;
}
.orb-st::before { content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
.orb-st i {
  position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 700 14px/1 var(--serif); font-style: normal;
  background: var(--paper); border: 1.5px solid var(--ink); transform: scale(var(--p, 1));
  transition: background .3s, color .3s, box-shadow .3s;
}
.orb-st span {
  position: absolute; white-space: nowrap; font-size: 16px; line-height: 1; color: var(--ink-2);
  left: calc(var(--ux, 0) * (var(--p, 1) * 14px + 13px)); top: calc(var(--uy, 0) * (var(--p, 1) * 14px + 13px));
  transform: translate(calc(-50% + var(--ux, 0) * 50%), calc(-50% + var(--uy, 0) * 50%));
  text-shadow: 0 0 6px var(--paper), 0 0 10px var(--paper);
  transition: color .3s;
}
.orb-st.is-wam i { border-color: var(--a); }
.orb-st.on i { background: var(--ink); color: var(--on-ink); box-shadow: 0 0 22px rgba(243, 239, 230, .45); }
.orb-st.is-wam.on i { background: var(--a); box-shadow: 0 0 22px rgba(95, 208, 142, .5); }
.orb-st.on span { color: var(--ink); font-weight: 700; font-size: 18px; }
.orb-st:focus-visible { outline: none; }
.orb-st:focus-visible i { outline: 2px solid var(--t); outline-offset: 3px; }

.loop-cap {
  max-width: 26em; margin: 0 auto; min-height: 7.6em;
  font-size: 16.5px; line-height: 1.5; color: var(--ink-2);
  text-align: center;
}
.loop-cap strong { display: block; font-size: 21px; color: var(--ink); margin-bottom: 4px; }
.loop-cap-who { display: block; font-style: italic; color: var(--muted); }

/* ───── system duo ───── */
.duo {
  display: grid; grid-template-columns: 1fr 72px 1fr; align-items: stretch;
  margin-bottom: 36px;
}
.duo-col { background: var(--sheet); padding: 32px 34px 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--edge); }
.duo-col:first-child { border-top: 4px solid var(--a); }
.duo-col:last-child  { border-top: 4px solid var(--u); }
.duo-verbs { font-style: italic; font-size: 20px; color: var(--ink-2); margin-bottom: 14px; }
.duo-join { position: relative; }
.duo-join span {
  position: absolute; left: 10px; right: 10px; top: 50%; height: 0;
  border-top: 1.5px solid var(--ink);
}
.duo-join span::before, .duo-join span::after {
  content: ""; position: absolute; top: -6px; width: 10px; height: 10px;
  border: 1.5px solid var(--ink); border-left: 0; border-bottom: 0;
}
.duo-join span::before { left: 0; transform: rotate(-135deg); }
.duo-join span::after  { right: 0; transform: rotate(45deg); }
.duo-note { max-width: 46em; color: var(--ink-2); }

/* ───── towers ───── */
.towers { margin: 0 0 40px; }
.towers-plot { position: relative; background: var(--sheet); border-radius: 6px; padding: 28px 28px 20px; box-shadow: inset 0 0 0 1px var(--edge); }
.towers-plot { overflow-x: auto; }
.towers-plot svg { display: block; height: auto; }
.towers figcaption { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 46em; }
.tw-label { font: 700 17px var(--serif); fill: var(--ink); }
.tw-size  { font: italic 400 14.5px var(--serif); fill: var(--muted); }
.tw-tower { fill: var(--sheet); stroke-width: 1.5; }
.tw-u { fill: var(--u-50); stroke: var(--u); }
.tw-v { fill: var(--v-50); stroke: var(--v); }
.tw-a { fill: var(--a-50); stroke: var(--a); }
.tw-tok { font: 700 13px var(--serif); fill: var(--on-ink); }
.tw-block { fill: rgba(5, 5, 5, .55); stroke: var(--rule); stroke-width: 1; }
.tw-block-t { font: 400 15px var(--serif); fill: var(--ink); }
.tw-arrow { stroke: var(--ink-2); stroke-width: 1.4; }
.tw-chip { fill: var(--sheet-2); stroke: var(--rule); stroke-width: 1; }
.tw-chip-out { fill: var(--paper); }
.tw-chip-t { font: 400 15px var(--serif); fill: var(--ink); }
.tw-band { cursor: help; outline: none; }
/* the joint-attention band: a translucent light grey, so it reads as a layer across the towers without glaring on the dark page */
.tw-band-r { fill: rgba(243, 239, 230, .14); stroke: rgba(243, 239, 230, .38); stroke-width: 1; }
.tw-band:focus-visible .tw-band-r, .tw-band:hover .tw-band-r { fill: rgba(243, 239, 230, .2); stroke: rgba(243, 239, 230, .55); }
.tw-band-t { font: 700 16px var(--serif); fill: var(--ink); }
.tw-band-s { font: italic 400 13.5px var(--serif); fill: var(--ink-2); }
.tw-band-n { font: 400 15px var(--serif); fill: var(--ink); }

.tower-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 28px; }
.tower-notes p { font-size: 17px; color: var(--ink-2); }
.chip {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px;
  border-radius: 4px; color: var(--on-ink); font-size: 15px; font-weight: 700; vertical-align: 2px;
}
.chip + .chip { margin-left: -4px; }
.c-u { background: var(--u); } .c-v { background: var(--v); } .c-a { background: var(--a); } .c-t { background: var(--t); }

/* ───── agent ───── */
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 64px; }
.ladder { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: lvl; }
.ladder li {
  position: relative; padding: 14px 0 14px 0; border-top: 1px solid var(--rule);
  font-size: 17px; color: var(--ink-2);
}
.ladder strong { display: block; color: var(--ink); font-size: 18px; }
.agent-block > p { font-size: 18px; color: var(--ink-2); }

.obs { margin: 24px 0 0; padding: 20px 24px; background: var(--sheet); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--edge); }
.obs p { margin: 0 0 8px; font-size: 18px; }
.obs-k { display: inline-block; min-width: 7.2em; font-style: italic; color: var(--muted); }
.obs footer { margin-top: 12px; font-size: 16px; color: var(--ink-2); }

.recovery { margin-bottom: 64px; }
.recovery > p { max-width: var(--measure); color: var(--ink-2); }
.steps {
  list-style: none; padding: 0; margin: 28px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px;
  counter-reset: s;
}
.steps li {
  counter-increment: s; position: relative;
  padding: 16px 12px 0 0; border-top: 2px solid var(--ink);
  font-size: 18px;
}
.steps li::before {
  content: counter(s); display: block; font-size: 15px; color: var(--muted); margin-bottom: 2px;
}
.accept { max-width: 40em; padding-left: 18px; border-left: 3px solid var(--a); }
.accept em { font-style: italic; }

.phases { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.phases li { padding: 18px 22px 18px 0; border-top: 1px solid var(--rule); font-size: 16.5px; color: var(--ink-2); }
.phases li + li { padding-left: 22px; border-left: 1px solid var(--rule-2); }
.phases .ph { display: block; font-style: italic; color: var(--muted); font-size: 15px; }
.phases strong { display: block; color: var(--ink); font-size: 18px; margin: 2px 0 6px; }

/* ───── data ───── */
.clips { margin: 0 0 48px; }
.clip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.clip { margin: 0; background: var(--sheet); border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--edge); }
.clip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.clip figcaption { padding: 14px 18px 18px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.clip figcaption strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.clip .t { float: right; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.clips-cap { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 46em; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin: 0 0 56px; }
.facts > div { border-top: 1px solid var(--ink); padding-top: 14px; }
.fact-n { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.fact-l { display: block; color: var(--ink-2); font-size: 16.5px; margin-top: 6px; }

.data-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.touch p { font-size: 18px; color: var(--ink-2); }

/* ───── charts ───── */
.viz { margin: 0 0 64px; min-width: 0; }
.viz h3 { margin-bottom: 6px; }
.viz-sub { color: var(--ink-2); font-size: 17px; max-width: 42em; }
.viz > figcaption { color: var(--muted); font-size: 15.5px; line-height: 1.5; margin-top: 14px; max-width: 52em; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz svg text { font-family: var(--serif); }
.ax-t { font-size: 13px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ax-g { stroke: var(--rule-2); stroke-width: 1; }
.lab { font-size: 15px; fill: var(--ink); }
.lab-2 { font-size: 14px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.lab-b { font-size: 15px; fill: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; color: var(--ink-2); margin: 10px 0 6px; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.lg-init { border: 2px solid var(--muted); background: transparent; }
.lg-ours { background: var(--ink); }

.dumb { background: var(--sheet); border-radius: 6px; padding: 12px 20px 8px; box-shadow: inset 0 0 0 1px var(--edge); }
.dm-hit { fill: transparent; }
.dm-row:hover .dm-band, .dm-row.hot .dm-band { fill: rgba(243, 239, 230, .06); }
.dm-band { fill: transparent; }
.dm-seg { stroke: var(--ink); stroke-width: 2; }
.dm-seg.down { stroke: var(--muted); stroke-dasharray: 3 3; }
.dm-init { fill: var(--sheet); stroke: var(--muted); stroke-width: 2; }
.dm-ours { fill: var(--ink); stroke: var(--sheet); stroke-width: 2; }
.dm-grp { font-size: 14px; font-style: italic; fill: var(--muted); }
/* labels a grid line or stem passes behind: outlined in the card's colour, so the line is interrupted, not struck through the letters */
.dm-grp, .run-n, .run-k { paint-order: stroke; stroke: var(--sheet); stroke-width: 6px; stroke-linejoin: round; }

.ewm { background: var(--sheet); border-radius: 6px; padding: 18px 20px 8px; box-shadow: inset 0 0 0 1px var(--edge); }
.ew-dot { fill: var(--muted); stroke: var(--sheet); stroke-width: 2; }
.ew-dot.ours { fill: var(--ink); }
.ew-dot.rep { fill: var(--sheet); stroke: var(--muted); }
.gains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 22px; }
.gains-2 { grid-template-columns: repeat(2, 1fr); }
.gains > div { border-top: 1px solid var(--rule); padding-top: 12px; }
.g-n { display: block; font-size: 30px; font-weight: 700; line-height: 1.1; }
.g-l { display: block; font-size: 16px; color: var(--ink-2); margin-top: 4px; }

.emb { background: var(--sheet); border-radius: 6px; padding: 16px 20px 10px; margin-top: 12px; box-shadow: inset 0 0 0 1px var(--edge); }
.emb-bar { fill: var(--a); }
.emb-bar.other { fill: #5d6b62; }
.emb-row:hover .emb-bar { fill: #8ee6b0; }
.emb-row:hover .emb-bar.other { fill: #7d8c83; }

.policy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.tbl-wrap { overflow-x: auto; background: var(--sheet); border-radius: 6px; margin-top: 12px; box-shadow: inset 0 0 0 1px var(--edge); }
.rt { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.rt th, .rt td { padding: 9px 16px; text-align: left; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.rt thead th { font-weight: 400; font-style: italic; color: var(--muted); border-bottom: 1px solid var(--rule); }
.rt .n { text-align: right; }
.rt .best, .rt b { font-weight: 700; }
.rt .second { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* a reference row evaluated under different conditions: set apart, not ranked with the rest */
.rt tr.aside td { color: var(--muted); background: rgba(243, 239, 230, .035); }
/* the eight-column table: tighter cells so it fits the section at desktop width */
.rt-dense { font-size: 15px; }
.rt-dense th, .rt-dense td { padding: 8px 12px; }
.rt tr.ours-first th, .rt tr.ours-first td { border-top: 2px solid var(--rule); }   /* the rule above our own rows */
.rt tr.ours, .rt td.ours-col { background: rgba(95, 208, 142, .12); }
.rt tr.ours th, .rt tr.ours td { border-bottom-color: rgba(95, 208, 142, .22); }
.rt tbody tr:last-child td, .rt tbody tr:last-child th { border-bottom: 0; }
.rt th[scope="row"] { font-weight: 700; }

details.tbl { margin-top: 14px; }
details.tbl summary { cursor: pointer; color: var(--ink-2); font-size: 16px; width: max-content; }
details.tbl summary:hover { color: var(--ink); }

/* tooltip */
.tip {
  position: fixed; z-index: 40; pointer-events: none;
  max-width: 280px; padding: 10px 12px;
  background: #1e1e22; color: var(--ink); border-radius: 4px;
  font-size: 14.5px; line-height: 1.45;
  box-shadow: 0 0 0 1px rgba(243, 239, 230, .16), 0 12px 32px rgba(0, 0, 0, .6);
}
.tip strong { display: block; font-size: 15px; margin-bottom: 2px; }
.tip .tr { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.tip .tr span:first-child { color: var(--muted); }

/* cite */
/* the entry runs the full width of the section, like the tables; copy is an icon in its corner */
.bib { position: relative; }
.bib pre {
  margin: 0; padding: 20px 24px; overflow-x: auto;
  background: var(--sheet); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--edge);
  font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink);
}
.bib-copy {
  position: absolute; top: 10px; right: 10px; height: 40px; min-width: 40px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--edge); border-radius: 8px; background: var(--sheet); color: var(--ink-2);
  font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.bib-copy:hover { color: var(--ink); border-color: rgba(243, 239, 230, .42); background: var(--sheet-2); }
.bib-copy:active { transform: scale(.96); }
.bib-copy svg { display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bib-copy .i-done, .bib-copy.is-done .i-copy { display: none; }
.bib-copy.is-done .i-done { display: block; }
.bib-copy.is-done { color: var(--a); }
.bib-copy-note:empty { display: none; }

/* ── drawn figures: the task interface, one recovery, skill evolution ── */
.iface { margin: 44px 0 28px; }
.iface-plot, .case-plot, .gen-plot { background: var(--sheet); border-radius: 6px; padding: 26px 28px 22px; box-shadow: inset 0 0 0 1px var(--edge); }
.gen-plot { padding: 18px 20px 6px; margin-top: 12px; }
.if-title { font-size: 15px; font-style: italic; fill: var(--muted); }
.if-frame { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 4 5; }
.if-field { fill: var(--sheet-2); stroke: var(--rule); stroke-width: 1; }
.if-f1 { font-size: 17px; font-weight: 700; fill: var(--ink); }
.if-f2 { font-size: 15px; fill: var(--ink-2); }
.if-side-h { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; fill: var(--muted); }
.if-side { font-size: 15.5px; fill: var(--ink-2); }
.if-arrow { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.if-arrow.if-wam { stroke: var(--a); }
.if-arrow.if-agent { stroke: var(--u); }
.if-head { fill: none; stroke: context-stroke; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.if-dot.if-agent { fill: var(--u); }
.if-dot.if-wam { fill: var(--a); }
.case { margin: 36px 0 30px; }
.case-h { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.cs-wam { fill: color-mix(in srgb, var(--a) 62%, var(--sheet)); }
.cs-agent { fill: color-mix(in srgb, var(--u) 72%, var(--sheet)); }
.cs-k { font-size: 14.5px; font-style: italic; }
.cs-k.wam { fill: var(--a); }
.cs-k.agent { fill: var(--u); }
.cs-mark { stroke: var(--u); stroke-width: 1.5; stroke-dasharray: 3 4; }
.cs-stem { stroke: var(--rule); stroke-width: 1; }
.cs-node { fill: var(--sheet); stroke: var(--u); stroke-width: 2; }
.cs-node.first { fill: var(--u); }
.cs-node.last { fill: var(--a); stroke: var(--a); }
.cs-n { font-size: 13px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.cs-node.first + .cs-n, .cs-node.last + .cs-n { fill: var(--on-ink); }
.gn-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.gn-line.rec { stroke: var(--a); }
.gn-line.alone { stroke: var(--muted); stroke-dasharray: 5 5; stroke-width: 2; }
.gn-dot { stroke: var(--sheet); stroke-width: 2; }
.gn-dot.rec { fill: var(--a); }
.gn-dot.alone { fill: var(--muted); }
.gn-k { font-size: 15px; }
.gn-k.rec { fill: var(--a); font-weight: 700; }
.gn-k.alone { fill: var(--muted); }
.gn-k.sm { font-size: 12.5px; font-weight: 400; }

/* ── System, round 2: what each part is spared, and three before-and-after contrasts ── */
.duo-not { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule-2); font-size: 16.5px; color: var(--ink-2); }
.duo-not-k { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.deltas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; margin: 44px 0 0; }
.deltas-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.res-note { margin: -28px 0 0; }
.delta { border-top: 1px solid var(--ink); padding-top: 16px; }
.delta .cap-tag { margin: 0 0 10px; }
.d-n { display: block; font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-from { color: var(--muted); font-weight: 400; }
.d-arrow { margin: 0 .28em; color: var(--muted); font-weight: 400; }
.d-l { display: block; margin-top: 8px; font-size: 16.5px; color: var(--ink-2); max-width: 22em; }
.evo-lead { max-width: 46em; color: var(--ink-2); margin: 4px 0 0; }
@media (max-width: 900px) { .deltas { grid-template-columns: 1fr; gap: 28px; } }

/* ── round 2b: eyebrows over conclusion headings; a marked column in the eight-column table ── */
.eyebrow { margin: 0 0 10px; font-size: 15px; font-style: italic; color: var(--muted); letter-spacing: .01em; }
.rt .col-hi { background: rgba(164, 147, 255, .09); }
.rt thead .col-hi { color: var(--u); }
.rt tr.ours .col-hi { background: rgba(164, 147, 255, .2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--u) 60%, transparent); }
:lang(zh-CN) .eyebrow { font-style: normal; }

/* ── round 3: taken from the third cut of the film ── */
.why { margin: 8px 0 56px; }
.why-h { font-size: 22px; line-height: 1.3; margin-bottom: 14px; font-weight: 400; }
.why-h em { font-style: italic; color: var(--v); }
.why-plot, .run-plot { background: var(--sheet); border-radius: 6px; padding: 26px 28px 20px; box-shadow: inset 0 0 0 1px var(--edge); }
.why-so { margin: 18px 0 0; font-size: 21px; color: var(--ink); }
.why-k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.why-k.wam { fill: var(--a); } .why-k.agent { fill: var(--u); }
.why-blk { fill: color-mix(in srgb, var(--a) 58%, var(--sheet)); }
.why-blk.lost { fill: var(--sheet-2); stroke: var(--rule); stroke-width: 1; }
.why-crack { fill: none; stroke: #e5654f; stroke-width: 2; stroke-linejoin: round; }
.why-wave { fill: none; stroke-width: 2; }
.why-wave.plan { stroke: var(--u); } .why-wave.ctrl { stroke: var(--a); }
.why-gap { stroke: #e5654f; stroke-width: 1.2; stroke-dasharray: 3 3; }
.why-wl { font-size: 13px; font-style: italic; }
.why-wl.plan { fill: var(--u); } .why-wl.ctrl { fill: var(--a); }
.why-l { font-size: 16.5px; fill: var(--ink-2); }
.why-bad { fill: #e5654f; font-weight: 700; }
.if-ex { font-size: 16px; font-style: italic; fill: var(--ink); }
.if-f3 { font-size: 13px; fill: var(--muted); }
.if-ex-s { font-size: 13.5px; font-style: italic; fill: var(--ink); }
.if-note { font-size: 12.5px; fill: var(--muted); font-style: italic; }
.run { margin: 0 0 64px; }
.run-h { font-size: 19px; margin-bottom: 6px; }
.run-k { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.run-k.plan { fill: var(--u); } .run-k.wam { fill: var(--a); } .run-k.ver { fill: var(--v); }
.run-sub { fill: var(--sheet-2); stroke: var(--rule); stroke-width: 1; }
.run-sub.done { fill: color-mix(in srgb, var(--u) 20%, var(--sheet)); stroke: color-mix(in srgb, var(--u) 60%, transparent); }
.run-sub.cur { fill: color-mix(in srgb, var(--u) 38%, var(--sheet)); stroke: var(--u); stroke-width: 1.5; }
.run-sub-t { font-size: 13.5px; fill: var(--muted); letter-spacing: .03em; }
.run-sub-t.on { fill: var(--ink); }
.run-tick { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.run-chunk { fill: var(--a); }
.run-agent { fill: color-mix(in srgb, var(--u) 72%, var(--sheet)); }
.run-n { font-size: 13.5px; font-style: italic; fill: var(--muted); }
.run-n.wam { fill: var(--a); } .run-n.agent { fill: var(--u); }
.run-stem { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.run-chk { fill: var(--sheet); stroke: var(--a); stroke-width: 1.8; }
.run-chk.bad { stroke: #e5654f; fill: color-mix(in srgb, #e5654f 16%, var(--sheet)); }
.run-chk-m { fill: none; stroke: var(--a); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.run-chk-m.bad { stroke: #e5654f; }
.run-take { stroke: var(--ink); stroke-width: 1.5; }
.run-flag { fill: color-mix(in srgb, #e5654f 14%, var(--sheet)); stroke: #e5654f; stroke-width: 1.2; }
.run-flag-t { font-size: 16px; fill: #f08571; }
.gn-model { fill: var(--sheet-2); stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1.2; }
.gn-model-t { font-size: 13px; fill: var(--ink-2); letter-spacing: .02em; }
.gn-eq { font-size: 20px; fill: var(--muted); }
.gn-skill { fill: color-mix(in srgb, var(--u) calc(14% + var(--lvl) * 12%), var(--sheet)); stroke: color-mix(in srgb, var(--u) 70%, transparent); stroke-width: 1.2; }
.gn-skill-t { font-size: 13px; fill: var(--ink); }
.gn-none { font-size: 13px; font-style: italic; fill: var(--muted); }
.gn-carry { fill: none; stroke: color-mix(in srgb, var(--u) 70%, transparent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.gn-carry-h { fill: none; stroke: var(--u); stroke-width: 1.6; }
.gn-gap { fill: color-mix(in srgb, var(--a) 13%, transparent); stroke: none; }
.gn-row { font-size: 13.5px; font-style: italic; fill: var(--muted); }
.gn-row.skill { fill: var(--u); }
.grp { margin: 56px 0 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 24px; line-height: 1.3; color: var(--ink); max-width: 30em; }
.sec-head + .grp { margin-top: 0; }
.grp-k { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--a); margin-bottom: 4px; }

.foot { width: min(1180px, 100% - 2 * clamp(20px, 4vw, 56px)); margin: 96px auto 0; padding: 28px 0 48px; border-top: 1px solid var(--rule-2); color: var(--muted); font-size: 15px; }

/* ───── responsive ───── */
@media (max-width: 1000px) {
  .sys-top { grid-template-columns: 1fr; }
  .loop-cap { margin-top: 22px; }
  .loop { max-width: 520px; margin: 0 auto; width: 100%; }
  .tower-notes, .facts { grid-template-columns: 1fr; gap: 24px; }
  .agent-grid, .data-grid { grid-template-columns: 1fr; gap: 40px; }
  .phases { grid-template-columns: 1fr 1fr; }
  .phases li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  :root { --base: 17px; }
  .bar nav { display: none; }
  .bar-lang { margin-left: auto; }
  .sec { padding-top: 72px; }
  .lede { font-size: 19px; }
  .duo { grid-template-columns: 1fr; }
  .duo-join { height: 44px; }
  .duo-join span { left: 50%; right: auto; top: 6px; bottom: 6px; height: auto; width: 0; border-top: 0; border-left: 1.5px solid var(--ink); }
  .duo-join span::before { left: -6px; top: 0; transform: rotate(-45deg); }
  .duo-join span::after { left: -6px; right: auto; top: auto; bottom: 0; transform: rotate(135deg); }
  .clip-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .phases { grid-template-columns: 1fr; }
  .phases li + li { border-left: 0; padding-left: 0; }
  .gains { grid-template-columns: 1fr; gap: 16px; }
  .towers-plot, .dumb, .ewm, .emb { padding-left: 10px; padding-right: 10px; }
}

/* ───── motion ─────
   Everything here hangs off html.motion, which is only present when the visitor allows motion
   and the script is running; without it the page is fully visible and still.
   Rhythm: fade .9s and rise 30px over .7s, one shared ease-out, items staggered as they arrive. */
.hero-film { overflow: hidden; }
@keyframes hero-media { from { opacity: 0; scale: 1.05; } }
@keyframes hero-rise  { from { opacity: 0; translate: 0 24px; } }
html.motion .hero-film video {
  animation: hero-media 1.5s cubic-bezier(.33, 1, .68, 1) backwards;
  /* scroll-linked: the film settles back and dims as the page moves on (--p runs 0 to 1 across the hero) */
  transform-origin: 50% 100%;
  transform: scale(calc(1 - var(--p, 0) * .1));
  opacity: calc(1 - var(--p, 0) * .7);
  will-change: transform, opacity;
}
html.motion .hero-film-text > *, html.motion .film-bar { animation: hero-rise .9s cubic-bezier(.33, 1, .68, 1) backwards; }
html.motion .film-bar { animation-delay: .25s; }
html.motion .hero-film-text > :nth-child(1) { animation-delay: .35s; }
html.motion .hero-film-text > :nth-child(2) { animation-delay: .47s; }
html.motion .hero-film-text > :nth-child(3) { animation-delay: .59s; }
html.motion .hero-film-text > :nth-child(4) { animation-delay: .71s; }

html.motion .rv {
  opacity: 0; transform: translate3d(0, 30px, 0);
  transition: opacity .9s cubic-bezier(.33, 1, .68, 1) var(--d, 0ms), transform .7s cubic-bezier(.33, 1, .68, 1) var(--d, 0ms);
}
html.motion .rv.rv-s { transform: translate3d(0, 30px, 0) scale(.965); transform-origin: 50% 100%; }
html.motion .rv.in { opacity: 1; transform: none; }

/* charts draw themselves in once their figure has arrived */
.emb-bar, .dm-seg { transform-box: fill-box; transform-origin: 0 50%; }
.dm-seg.down { transform-origin: 100% 50%; }   /* a drop is drawn from the old score down to the new one */
.ew-dot { transform-box: fill-box; transform-origin: 50% 50%; }
html.motion .emb-bar { transition: transform .9s cubic-bezier(.33, 1, .68, 1) calc(var(--i, 0) * 45ms + 250ms); }
html.motion .dm-seg  { transition: transform .7s cubic-bezier(.33, 1, .68, 1) calc(var(--i, 0) * 40ms + 250ms); }
html.motion .dm-ours { transition: opacity .4s linear calc(var(--i, 0) * 40ms + 650ms); }
html.motion .ew-dot  { transition: opacity .5s linear calc(var(--i, 0) * 90ms + 300ms), transform .6s cubic-bezier(.33, 1, .68, 1) calc(var(--i, 0) * 90ms + 300ms); }
html.motion .viz:not(.in) .emb-bar, html.motion .viz:not(.in) .dm-seg { transform: scaleX(0); }
html.motion .viz:not(.in) .dm-ours { opacity: 0; }
html.motion .viz:not(.in) .ew-dot { opacity: 0; transform: scale(.3); }

/* On paper: ink on white, everything present, nothing mid-animation. */
@media print {
  :root {
    color-scheme: light;
    --paper: #fff; --sheet: #fff; --sheet-2: #f3f3f1; --edge: rgba(0, 0, 0, .18);
    --ink: #15212c; --ink-2: #3a444d; --muted: #5d6770; --rule: rgba(0, 0, 0, .32); --rule-2: rgba(0, 0, 0, .14); --on-ink: #fff;
    --u: #5b5ba6; --u-50: #e4e4f3; --v: #a3632a; --v-50: #f2e5d6; --a: #2f7a48; --a-50: #dcebe0; --t: #2d6ca8; --t-50: #dbe7f3;
  }
  .bar { position: static; background: none; }
  .bar-org img { filter: invert(1); }
  .sec::before, .hero-film video, .film-bar, .orb canvas, .sound-cue, .bib-copy { display: none; }
  .bib pre { white-space: pre-wrap; overflow: visible; }
  .hero-film { height: auto; min-height: 0; }
  .tw-block { fill: #fff; }
  .rt tr.ours, .rt td.ours-col { background: #e9f1ec; }
  html.motion .rv, html.motion .rv.rv-s, html.motion .hero-film-text > *,
  html.motion .viz:not(.in) .emb-bar, html.motion .viz:not(.in) .dm-seg, html.motion .viz:not(.in) .dm-ours, html.motion .viz:not(.in) .ew-dot {
    opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb-st i, .orb-st span { transition: none; }
}

/* ── Chinese typography; kept last so it wins specificity ties ── */
:lang(zh-CN) .hero-film-text h1 { letter-spacing: 0; }
:lang(zh-CN) .bar-name { letter-spacing: 0; }
.nb { display: inline-block; }
/* no one-word last lines in running text */
p, li, figcaption, .d-l { text-wrap: pretty; }
:lang(zh-CN) body, body:lang(zh-CN) { line-break: strict; }
/* Chinese body text is set justified, as in print; captions and list rows too.
   Centered pieces (.loop-cap) and table cells stay as they are. */
:lang(zh-CN) .lede, :lang(zh-CN) .duo-col p, :lang(zh-CN) .duo-note,
:lang(zh-CN) .ladder li, :lang(zh-CN) .agent-block > p, :lang(zh-CN) .recovery > p, :lang(zh-CN) .accept,
:lang(zh-CN) .phases li, :lang(zh-CN) .clip figcaption, :lang(zh-CN) .clips-cap, :lang(zh-CN) .touch p,
:lang(zh-CN) .note, :lang(zh-CN) .viz-sub, :lang(zh-CN) .viz > figcaption, :lang(zh-CN) .towers figcaption,
:lang(zh-CN) .obs footer, :lang(zh-CN) .emb + figcaption, :lang(zh-CN) .foot p {
  text-align: justify;
  text-wrap: pretty;
}
:lang(zh-CN) h2, :lang(zh-CN) h3, :lang(zh-CN) .fact-l { text-wrap: balance; }
:lang(zh-CN) .hero-sub, :lang(zh-CN) .duo-verbs, :lang(zh-CN) .loop-cap-who, :lang(zh-CN) .ph,
:lang(zh-CN) .clips-cap, :lang(zh-CN) figcaption, :lang(zh-CN) .obs-k, :lang(zh-CN) code, :lang(zh-CN) .rt thead th,
:lang(zh-CN) .dm-grp, :lang(zh-CN) .tw-size, :lang(zh-CN) .tw-band-s { font-style: normal; }
:lang(zh-CN) em { font-style: normal; font-weight: 700; }

