/* ==========================================================================
   SHING CIVITAS — public site, design system v2
   Ink (dark chrome, hero) + Paper (long-form reading). One set of components;
   surfaces swap colour tokens (--fg, --fg-2, --fg-3, --hair) instead of
   duplicating rules.
   ========================================================================== */

:root {
  /* Ink */
  --bg: #07090e;
  --bg-1: #0b0e15;
  --bg-2: #10141d;
  /* Paper */
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --ink: #15181d;
  /* Accents */
  --brass: #c9a96e;
  --brass-2: #e3c99a;
  --cream: #efe2c8;
  --mineral: #8fb6cf;

  /* Active surface tokens (dark by default) */
  --fg: #ece7dc;
  --fg-2: #aeb3ba;
  --fg-3: #7d848d;
  --hair: rgba(236, 231, 220, .10);
  --hair-2: rgba(236, 231, 220, .20);

  --serif: 'Instrument Serif', 'Noto Serif SC', 'Songti SC', Georgia, serif;
  --sans: 'Inter', 'Noto Sans SC', 'PingFang SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --brand: 'Quantico', var(--sans);

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

.paper {
  background: var(--paper);
  color: var(--ink);
  --fg: #15181d;
  --fg-2: #464b53;
  --fg-3: #62666d;
  --hair: #ddd6c6;
  --hair-2: #c7bfad;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="zh"] body { line-height: 1.8; }
html[lang="zh"] { --serif: 'Noto Serif SC', 'Songti SC', 'Instrument Serif', Georgia, serif; }
.hero-lead, .lead, .page-lead, .entry p, .prose p { text-wrap: pretty; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
main { min-height: 55vh; }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 2px; }
.paper :focus-visible { outline-color: #8a6a33; }
::selection { background: rgba(201, 169, 110, .38); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--bg); font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 14px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 920px; }

/* ---------- Type primitives ---------- */
.label {
  display: inline-block;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--brass); }
.eyebrow i, .entry-meta i { font-style: normal; margin: 0 .6em; color: var(--brass); }
html[lang="zh"] .label, html[lang="zh"] .eyebrow { letter-spacing: .12em; }
.display {
  margin: 0;
  font: 400 clamp(2.4rem, 4.6vw, 4.25rem)/1.04 var(--serif);
  letter-spacing: -.012em;
  color: var(--fg);
  text-wrap: balance;
}
html[lang="zh"] .display { font-weight: 500; line-height: 1.25; letter-spacing: .01em; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.lead { margin: 28px 0 0; max-width: 34em; font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--fg-2); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 15px/1 var(--sans);
  white-space: nowrap;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn .arr, .link-arrow .arr, .entry-read .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr, .link-arrow:hover .arr { transform: translateX(4px); }
.btn:hover .arr.ext { transform: translate(2px, -2px); }
.btn-primary { background: var(--cream); color: #0b0e14; }
.btn-primary:hover { background: #fff5e3; }
.btn-ghost { border-color: var(--hair-2); color: var(--fg); }
.btn-ghost:hover { border-color: rgba(236, 231, 220, .55); background: rgba(236, 231, 220, .04); }
.paper .btn-primary { background: var(--ink); color: var(--paper); }
.paper .btn-primary:hover { background: #2a2f37; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--hair-2);
  font: 500 14px/1.2 var(--sans);
  color: var(--fg);
  transition: border-color .25s;
}
.link-arrow:hover { border-color: var(--brass); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 60;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
}
.site-header.scrolled {
  height: 64px;
  background: rgba(7, 9, 14, .9);
  border-bottom-color: rgba(236, 231, 220, .08);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.wordmark { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; font: 400 15px/1 var(--brand); letter-spacing: .28em; color: #ece7dc; white-space: nowrap; }
.logo { width: 28px; height: 28px; flex: none; color: #ece7dc; }
.micro-brand { padding-left: 24px; border-left: 1px solid rgba(236, 231, 220, .16); font: 400 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: #7d848d; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(20px, 2.6vw, 38px); font-size: 14px; }
.site-nav > a { position: relative; padding: 6px 0; color: #aeb3ba; white-space: nowrap; transition: color .2s; }
.site-nav > a:hover, .site-nav > a[aria-current] { color: #ece7dc; }
.site-nav > a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); }
.language-toggle { display: inline-flex; align-items: center; gap: 8px; padding-left: 26px; border-left: 1px solid rgba(236, 231, 220, .16); font: 500 12px/1 var(--mono); letter-spacing: .06em; color: #7d848d; }
.language-toggle a { padding: 6px 0; transition: color .2s; }
.language-toggle a:hover, .language-toggle a[aria-current] { color: #ece7dc; }
.language-toggle i { font-style: normal; opacity: .5; }
.menu-button { display: none; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(700px, 100svh);
  overflow: hidden;
  background:
    radial-gradient(900px 700px at 72% 46%, rgba(46, 82, 128, .22), transparent 62%),
    radial-gradient(600px 400px at 85% 90%, rgba(201, 169, 110, .05), transparent 70%),
    var(--bg);
}
.hero::after {
  /* keeps the headline legible where the brain bleeds left */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 9, 14, .82) 26%, rgba(7, 9, 14, 0) 50%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 14, 0) 18%);
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .55;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(214, 226, 240, .75) 0 .6px, transparent 1.3px),
    radial-gradient(circle at 70% 80%, rgba(214, 226, 240, .5) 0 .5px, transparent 1.1px),
    radial-gradient(circle at 45% 60%, rgba(233, 200, 150, .65) 0 .7px, transparent 1.4px);
  background-size: 230px 190px, 340px 290px, 560px 430px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 85%);
}
.hero-art { position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; width: min(66vw, 1240px); }
#brain-canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
#brain-canvas.ready { opacity: 1; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 140px var(--gutter) 150px; }
.hero-copy { max-width: 560px; }
.hero h1 {
  margin: 0;
  font: 400 clamp(3rem, 4.9vw, 5.3rem)/1.02 var(--serif);
  letter-spacing: -.018em;
  color: #f2ede3;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--brass-2); }
html[lang="zh"] .hero h1 { font-weight: 500; font-size: clamp(2.3rem, 3.6vw, 3.6rem); line-height: 1.3; letter-spacing: .03em; }
html[lang="zh"] .hero h1 em { font-style: normal; }
html[lang="zh"] .hero h1 { text-wrap: wrap; }
html[lang="zh"] .hero-lead { max-width: 15em; }
.hero-lead { margin: 32px 0 0; max-width: 27em; font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.65; color: #b9bdc3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.hero-actions.center { justify-content: center; }
.hero-foot {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 30px;
  font: 400 10.5px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6f767f;
}
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; color: #8a9099; transition: color .2s; }
.scroll-cue:hover { color: #ece7dc; }
.scroll-cue i { position: relative; width: 1px; height: 44px; overflow: hidden; background: rgba(236, 231, 220, .15); }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--brass-2); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Home sections ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 176px) var(--gutter); }
.section-ruled > .container { border-top: 1px solid var(--hair); padding-top: clamp(56px, 7vw, 88px); }
.section-ruled { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: clamp(28px, 5vw, 72px); }
.split-label { padding-top: 10px; }
.question-list { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.question-list li {
  margin: 0 0 .5em;
  font: 400 clamp(1.75rem, 3.1vw, 2.85rem)/1.16 var(--serif);
  letter-spacing: -.01em;
  color: var(--fg);
  text-wrap: balance;
}
.question-list li:nth-child(2) { color: #d6d1c7; }
.question-list li:nth-child(3) { color: #bdb9b1; }
.question-list li:nth-child(4) { color: var(--brass-2); font-style: italic; }
html[lang="zh"] .question-list li { font-size: clamp(1.45rem, 2.4vw, 2.2rem); line-height: 1.45; font-weight: 500; }
html[lang="zh"] .question-list li:nth-child(4) { font-style: normal; }
.question-list + .lead { margin-top: 44px; }

.principles { list-style: none; margin: clamp(64px, 8vw, 104px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.principles li { padding-top: 26px; border-top: 1px solid var(--hair-2); }
.p-no { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--brass); }
.principles h3 { margin: 22px 0 12px; font: 400 clamp(1.6rem, 2.2vw, 2rem)/1.1 var(--serif); color: var(--fg); }
html[lang="zh"] .principles h3 { font-weight: 500; font-size: 1.45rem; }
.principles p { margin: 0; max-width: 30em; color: var(--fg-2); line-height: 1.7; }

.lineage { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.lineage ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.lineage li { display: flex; flex-direction: column; gap: 6px; }
.lineage strong { font: italic 400 1.3rem/1.15 var(--serif); color: var(--fg); }
html[lang="zh"] .lineage strong { font-style: normal; font-weight: 500; font-size: 1.05rem; }
.lineage span { font-size: 13px; line-height: 1.5; color: var(--fg-3); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 56px; }
.section-head .display { margin-top: 22px; }
.section-head > p { flex: 0 1 380px; margin: 0; color: var(--fg-2); line-height: 1.7; }

.closing { text-align: center; padding-bottom: clamp(110px, 14vw, 190px); }
.closing blockquote { margin: 0; }
.closing blockquote p { margin: 0 auto; max-width: 18em; font: 400 clamp(2.2rem, 4.6vw, 4.1rem)/1.1 var(--serif); letter-spacing: -.012em; color: var(--fg); text-wrap: balance; }
html[lang="zh"] .closing blockquote p { font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.4; }
.closing blockquote footer { margin-top: 28px; font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.closing .hero-actions { margin-top: 52px; }

/* ---------- Research entry list (works on ink and paper) ---------- */
.entry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair-2); }
.entry { border-bottom: 1px solid var(--hair); }
.entry > a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 170px;
  gap: clamp(20px, 3vw, 40px);
  padding: 40px 0;
  transition: background-color .3s var(--ease);
}
.entry-no { padding-top: 4px; font: 500 12px/1 var(--mono); color: var(--fg-3); }
.entry-meta { font: 500 11px/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.entry h3 {
  margin: 14px 0 12px;
  max-width: 24em;
  font: 400 clamp(1.7rem, 2.6vw, 2.35rem)/1.12 var(--serif);
  letter-spacing: -.008em;
  color: var(--fg);
  text-wrap: balance;
  transition: color .25s;
}
html[lang="zh"] .entry h3 { font-weight: 500; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.4; }
.entry p { margin: 0; max-width: 40em; color: var(--fg-2); line-height: 1.7; }
.entry-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; text-align: right; font: 400 12px/1.4 var(--mono); color: var(--fg-3); }
.entry-read { display: inline-flex; gap: 10px; color: var(--fg); font: 500 14px/1 var(--sans); }
.entry > a:hover h3 { color: var(--brass-2); }
.paper .entry > a:hover h3 { color: #7a5a24; }
.entry > a:hover .entry-read .arr { transform: translateX(5px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  font: 500 10.5px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-3); }
.tag-hypothesis::before { background: var(--mineral); }
.tag-exploratory::before { background: var(--brass); }
.tag-supported_in_model::before { background: #7fb28f; }
.tag-mixed::before { background: #c79a5a; }
.tag-not_supported::before { background: #c46f62; }
.tag-superseded::before { background: #8b8f96; }

/* ---------- Interior page hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(104px, 9vw, 124px) var(--gutter) clamp(36px, 4vw, 52px);
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(46, 82, 128, .2), transparent 65%),
    var(--bg);
  overflow: hidden;
}
.page-hero h1 {
  margin: 0;
  max-width: 16em;
  font: 400 clamp(2.4rem, 4.4vw, 3.9rem)/1.06 var(--serif);
  letter-spacing: -.018em;
  color: var(--fg);
  text-wrap: balance;
}
html[lang="zh"] .page-hero h1 { font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.25; letter-spacing: .02em; }
.title-dot { color: var(--brass); }
.page-lead { margin: 16px 0 0; max-width: 36em; font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.7; color: var(--fg-2); }
.page-hero.tall { min-height: 60vh; display: flex; align-items: center; }
.page-hero.tall h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }

/* About table of contents */
.toc { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.toc a { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 4px 0; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); transition: color .2s; }
.toc a span { color: var(--brass); }
.toc em { font: 400 1.25rem/1.25 var(--serif); letter-spacing: 0; text-transform: none; color: var(--fg-2); transition: color .2s; }
html[lang="zh"] .toc em { font-style: normal; font-size: 1.05rem; }
.toc a:hover em { color: var(--fg); }

/* ---------- Long-form prose (paper) ---------- */
.prose { font: 400 1.125rem/1.78 var(--sans); color: #262a31; overflow-wrap: break-word; }
html[lang="zh"] .prose { font-size: 1.08rem; line-height: 1.95; letter-spacing: .01em; }
.prose > * { max-width: 680px; }
.prose p { margin: 0 0 1.4em; }
.prose h1 { margin: 0 0 .9em; font: 400 clamp(2.3rem, 4vw, 3.4rem)/1.06 var(--serif); letter-spacing: -.012em; color: var(--fg); text-wrap: balance; }
.prose h2 { margin: 2.4em 0 .7em; font: 400 clamp(1.8rem, 2.6vw, 2.3rem)/1.15 var(--serif); color: var(--fg); }
.prose h3 { margin: 2em 0 .6em; font: 600 1.12rem/1.35 var(--sans); color: var(--fg); }
html[lang="zh"] .prose h1, html[lang="zh"] .prose h2 { font-weight: 500; line-height: 1.35; }
.prose strong { font-weight: 600; color: var(--fg); }
.prose em { font-style: italic; }
.prose a { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.prose a:hover { color: #7a5a24; }
.prose ul { margin: 0 0 1.5em; padding-left: 1.3em; }
.prose li { margin: .45em 0; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin: 2em 0; padding: 0 0 0 26px; border-left: 2px solid var(--brass); font: italic 400 1.6rem/1.35 var(--serif); color: var(--fg); }
.prose code { padding: 2px 6px; border-radius: 3px; background: #e5dfd1; font: .86em var(--mono); }
.prose pre { margin: 0 0 1.6em; padding: 22px 24px; overflow: auto; border-radius: 6px; background: #12161e; color: #e3e6ea; font-size: .9rem; line-height: 1.65; }
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose hr { width: 64px; margin: 3em 0; border: 0; border-top: 1px solid var(--hair-2); }
.prose .research-figure { margin: 2.2em 0 2.6em; }
.prose .research-figure img { width: 100%; height: auto; max-height: 560px; object-fit: contain; border: 1px solid var(--hair); border-radius: 4px; background: #fff; }

/* About chapters */
.chapter {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 700px);
  justify-content: center;
  gap: clamp(32px, 7vw, 112px);
  padding: clamp(48px, 6vw, 80px) var(--gutter);
}
.chapter + .chapter { border-top: 1px solid var(--hair); }
.chapter-aside { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.chapter-no { font: 400 3.4rem/1 var(--serif); color: #b08d50; }

/* ---------- Research index ---------- */
.research-index { padding: clamp(36px, 4vw, 56px) var(--gutter) clamp(96px, 11vw, 150px); }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; margin-bottom: clamp(48px, 6vw, 72px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 16px; border: 1px solid var(--hair-2); border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: border-color .2s, color .2s, background-color .2s; }
.chip:hover { border-color: var(--fg-2); color: var(--fg); }
.chip[aria-current] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.search-field { display: flex; align-items: center; gap: 12px; flex: 0 1 380px; border-bottom: 1px solid var(--hair-2); color: var(--fg-3); transition: border-color .2s; }
.search-field:focus-within { border-color: var(--ink); }
.search-field svg { width: 18px; height: 18px; flex: none; }
.search-field input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 15px; }
.search-field input::placeholder { color: var(--fg-3); }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-field button { padding: 8px 0 8px 12px; border: 0; background: none; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.result-count { font: 400 12px/1 var(--mono); color: var(--fg-3); }
.empty-results { padding: 56px 0; border-top: 1px solid var(--hair-2); color: var(--fg-2); }
.method-note { display: grid; grid-template-columns: minmax(150px, 3fr) 9fr; gap: clamp(20px, 5vw, 72px); margin-top: clamp(64px, 8vw, 104px); padding-top: 28px; border-top: 1px solid var(--hair); }
.method-note p { margin: 0; max-width: 44em; color: var(--fg-2); line-height: 1.7; }

/* ---------- Article ---------- */
.article-hero h1 { max-width: 20em; font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
.article-hero .page-lead { font-size: 1.1rem; }
.breadcrumb { display: inline-block; margin-bottom: 24px; font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--fg-3); transition: color .2s; }
.breadcrumb:hover { color: var(--fg); }
.byline { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hair); font: 400 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--fg-3); }
.byline span:first-child { color: var(--fg); }
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 700px);
  justify-content: center;
  gap: clamp(40px, 7vw, 112px);
  padding: clamp(36px, 4vw, 56px) var(--gutter) 40px;
}
.article-side { position: sticky; top: 104px; align-self: start; }
.evidence { margin: 18px 0 0; border-top: 1px solid var(--fg); }
.evidence > div { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.evidence dt { font: 500 10.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.evidence dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; color: var(--fg); }
.side-note { margin: 22px 0; font-size: 13px; line-height: 1.6; color: var(--fg-3); }
.copy-link { padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--hair-2); background: none; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; color: var(--fg); }
.copy-link:hover { border-color: var(--fg); }
.article-body > h1:first-child { display: none; }
.article-body > p:first-of-type { font-size: 1.3rem; line-height: 1.6; color: var(--fg); }
html[lang="zh"] .article-body > p:first-of-type { font-size: 1.2rem; line-height: 1.85; }
.article-end { padding: 24px var(--gutter) clamp(96px, 11vw, 140px); max-width: calc(220px + 700px + 112px + 2 * var(--gutter)); margin: 0 auto; }
.article-end .link-arrow { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-section { padding: 0 var(--gutter); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 128px); padding: clamp(40px, 5vw, 64px) 0 clamp(96px, 11vw, 150px); }
.pull { margin: 0 0 40px; font: italic 400 clamp(1.8rem, 2.8vw, 2.5rem)/1.2 var(--serif); color: var(--fg); }
html[lang="zh"] .pull { font-style: normal; font-weight: 500; font-size: 1.6rem; line-height: 1.6; }
.contact-info .link-arrow { margin-top: 0; }
.contact-form { display: flex; flex-direction: column; gap: 34px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label > span { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--hair-2);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font-size: 17px;
  transition: border-color .2s;
}
.contact-form textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--ink); }
.contact-form .hp { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-foot .btn { border: 0; }
#contact-result { margin: 0; font-size: 14px; color: var(--fg-2); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px var(--gutter) 36px; background: var(--bg); border-top: 1px solid rgba(236, 231, 220, .08); --fg: #ece7dc; --fg-2: #aeb3ba; --fg-3: #7d848d; color: var(--fg); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 48px; align-items: start; padding-bottom: 56px; }
.footer-brand p { margin: 18px 0 0; max-width: 26em; color: var(--fg-3); font-size: 14px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 48px; font-size: 14px; }
.footer-nav a, .footer-meta a { color: var(--fg-2); transition: color .2s; }
.footer-nav a:hover, .footer-meta a:hover { color: var(--fg); }
.footer-meta { display: flex; gap: 24px; font: 500 12px/1.6 var(--mono); letter-spacing: .08em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 26px; border-top: 1px solid rgba(236, 231, 220, .08); font: 400 11px/1.5 var(--mono); letter-spacing: .06em; color: var(--fg-3); }

/* ---------- Reveal on scroll ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.visible { opacity: 1; transform: none; }
.js-reveal .question-list li:nth-child(2) { transition-delay: .08s; }
.js-reveal .question-list li:nth-child(3) { transition-delay: .16s; }
.js-reveal .question-list li:nth-child(4) { transition-delay: .24s; }
.js-reveal .principles li:nth-child(2) { transition-delay: .1s; }
.js-reveal .principles li:nth-child(3) { transition-delay: .2s; }

/* Hero entrance */
.js .hero-copy > * { animation: rise 1.1s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .1s; }
.js .hero-copy > :nth-child(3) { animation-delay: .22s; }
.js .hero-copy > :nth-child(4) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .micro-brand { display: none; }
  .lineage ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}

@media (max-width: 1024px) {
  .hero-art { width: 78vw; right: -10vw; }
  .hero::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(7, 9, 14, .86) 34%, rgba(7, 9, 14, .1) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 14, 0) 18%); }
  .entry > a { grid-template-columns: 48px minmax(0, 1fr); }
  .entry-side { grid-column: 2; flex-direction: row; align-items: center; text-align: left; }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .menu-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid rgba(236, 231, 220, .2);
    border-radius: 999px;
    background: transparent;
  }
  .menu-button i { display: block; height: 1px; background: #ece7dc; transition: transform .3s var(--ease); }
  .menu-button[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  /* a backdrop-filter would trap the fixed overlay inside the header */
  .site-header.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(7, 9, 14, .95); }
  .site-nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 96px var(--gutter) 64px;
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .site-nav.expanded { opacity: 1; visibility: visible; }
  .site-nav > a { font: 400 2.6rem/1.25 var(--serif); color: #ece7dc; }
  html[lang="zh"] .site-nav > a { font-size: 2rem; font-weight: 500; }
  .site-nav > a[aria-current]::after { display: none; }
  .site-nav > a[aria-current] { color: var(--brass-2); }
  .language-toggle { margin-top: 32px; padding: 0; border: 0; font-size: 14px; }
  body.nav-open { overflow: hidden; }

  .hero { justify-content: flex-end; min-height: max(640px, 100svh); }
  .hero-art { top: 56px; bottom: auto; left: -4vw; right: -4vw; width: auto; height: 62svh; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 0%, var(--bg) 30%, rgba(7, 9, 14, .55) 50%, rgba(7, 9, 14, 0) 68%); }
  .hero-inner { padding-top: 46svh; padding-bottom: 110px; }
  .hero h1 { font-size: clamp(2.6rem, 9vw, 3.8rem); }
  html[lang="zh"] .hero h1 { font-size: clamp(2.1rem, 8vw, 3rem); }
  .hero-lead { margin-top: 22px; font-size: 1.02rem; }
  .hero-actions { margin-top: 32px; }
  .fig-caption { max-width: 60%; }

  .split, .lineage, .method-note { grid-template-columns: 1fr; gap: 24px; }
  .principles { grid-template-columns: 1fr; gap: 36px; }
  .lineage ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-head > p { flex: none; }
  .toc { grid-template-columns: 1fr; }
  .toc a { flex-direction: row; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .chapter, .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .chapter-aside { position: static; flex-direction: row; align-items: baseline; gap: 16px; }
  .chapter-no { font-size: 2.4rem; }
  .article-side { position: static; order: 2; padding-top: 32px; border-top: 1px solid var(--hair); }
  .evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); column-gap: 20px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-field { flex: none; }
}

@media (max-width: 520px) {
  .site-header { height: 64px; }
  .wordmark { font-size: 13px; letter-spacing: .22em; gap: 10px; }
  .logo { width: 24px; height: 24px; }
  .btn { height: 48px; padding: 0 20px; font-size: 14px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .entry > a { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .entry-no { display: none; }
  .entry-side { grid-column: auto; }
  .prose { font-size: 1.06rem; }
  .article-body > p:first-of-type { font-size: 1.16rem; }
  .fig-caption { display: none; }
  .hero-copy .eyebrow { display: none; }
  .hero-foot { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}


/* ---------- Immersive landing + fish-eye navigation dock ---------- */
/* Electric-blue neural system: used by the homepage and the shared dock. */
:root {
  --nb-bg: #030509;
  --nb-bg-2: #070d18;
  --nb-blue: #087bff;
  --nb-blue-2: #168fff;
  --nb-cyan: #28d8ff;
  --nb-violet: #625bff;
  --nb-text: #f2f5fa;
  --nb-text-2: #8d9bac;
}
.site-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
body:not(.home) .site-header {
  background: rgba(7, 9, 14, .76);
  border-bottom-color: rgba(236, 231, 220, .07);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}
.site-header.scrolled {
  background: rgba(7, 9, 14, .92);
  border-bottom-color: rgba(236, 231, 220, .1);
}
.site-header .wordmark { flex: none; }
.micro-brand {
  display: block;
  padding-left: 22px;
  border-left: 1px solid rgba(236, 231, 220, .15);
  color: #858c96;
  font: 400 9px/1.4 var(--mono);
  letter-spacing: .16em;
}
.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 13px;
  border: 1px solid rgba(236, 231, 220, .13);
  border-radius: 999px;
  background: rgba(14, 19, 28, .48);
  color: #9299a2;
  font: 500 10px/1 var(--mono);
  letter-spacing: .08em;
}
.language-toggle a { padding: 3px 0; transition: color .2s ease; }
.language-toggle a:hover,
.language-toggle a[aria-current="true"] { color: #eee8dc; }
.language-toggle span { opacity: .42; }

/* Dock: dark translucent glass with a thin blue edge, shared by every page. */
.site-dock {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 8px 12px;
  border: 1px solid rgba(22, 143, 255, .2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 19, 34, .74), rgba(4, 8, 15, .86));
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(150, 200, 255, .07);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  transform: translateX(-50%);
}
.site-dock::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px 10%;
  border-radius: inherit;
  background: radial-gradient(ellipse, rgba(8, 123, 255, .14), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}
.site-dock::after {
  /* a filament of light along the top edge ties the dock to the brain */
  content: "";
  position: absolute;
  top: -1px;
  left: 22%;
  right: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 216, 255, .55), transparent);
  pointer-events: none;
}
.dock-item {
  --dock-scale: 1;
  --dock-push: 0px;
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 66px;
  height: 66px;
  color: #a9b6c6;
  transform: translate3d(var(--dock-push), 0, 0) scale(var(--dock-scale));
  transform-origin: 50% 80%;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.dock-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(120, 170, 255, .16);
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(30, 48, 78, .55), rgba(7, 12, 22, .9));
  color: #9cc2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: color .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.dock-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dock-label {
  position: static;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--nb-text-2);
  font: 500 10px/1.2 var(--sans);
  letter-spacing: .02em;
  white-space: nowrap;
  opacity: .9;
  pointer-events: none;
  transform: none;
  transition: color .18s ease, opacity .18s ease;
}
.dock-item[data-near="true"] .dock-label,
.dock-item[aria-current="page"] .dock-label,
.dock-item:focus-visible .dock-label {
  color: #dcecff;
  opacity: 1;
}
.dock-item:hover,
.dock-item[aria-current="page"] { color: var(--nb-text); }
.dock-item:hover .dock-icon,
.dock-item[data-near="true"] .dock-icon,
.dock-item[aria-current="page"] .dock-icon {
  border-color: rgba(40, 216, 255, .5);
  background: linear-gradient(160deg, rgba(8, 123, 255, .36), rgba(6, 14, 30, .92));
  color: #e6f6ff;
  box-shadow: 0 0 22px rgba(8, 123, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.dock-item[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--nb-cyan);
  box-shadow: 0 0 6px var(--nb-cyan);
}
.dock-item:focus-visible { outline: none; }
.dock-item:focus-visible .dock-icon {
  outline: 2px solid var(--nb-cyan);
  outline-offset: 4px;
}
.skip-link:focus { z-index: 120; }

body:not(.home) .site-footer {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}
body:not(.home) main.page-enter { animation: page-arrive .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-arrive {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Homepage: pure black + electric-blue neural brain ---------- */
body.home,
body.home #main {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
}
body.home {
  overscroll-behavior: none;
  background: var(--nb-bg);
  color: var(--nb-text);
}
body.home ::selection { background: rgba(8, 123, 255, .45); }
body.home :focus-visible { outline-color: var(--nb-cyan); }
body.home .site-footer { display: none; }

/* header */
body.home .site-header { height: 84px; }
body.home .wordmark { color: var(--nb-text); }
body.home .logo path { stroke: var(--nb-cyan); }
.wordmark-stack { display: flex; flex-direction: column; gap: 8px; }
.wordmark-stack small {
  font: 400 9px/1 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--nb-text-2);
}
html[lang="zh"] .wordmark-stack small { letter-spacing: .3em; }
body.home .language-toggle {
  border-color: rgba(22, 143, 255, .22);
  background: rgba(7, 13, 24, .55);
  color: var(--nb-text-2);
}
body.home .language-toggle a:hover { color: var(--nb-cyan); }
body.home .language-toggle a[aria-current="true"] { color: var(--nb-text); }

/* stage */
body.home .hero {
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(42vw 38vw at 60% 46%, rgba(8, 92, 210, .17), transparent 70%),
    radial-gradient(30vw 24vw at 72% 64%, rgba(98, 91, 255, .06), transparent 70%),
    var(--nb-bg);
}
body.home .hero::after {
  background:
    linear-gradient(90deg, rgba(3, 5, 9, .92) 0%, rgba(3, 5, 9, .7) 26%, rgba(3, 5, 9, .18) 42%, rgba(3, 5, 9, 0) 52%),
    linear-gradient(0deg, rgba(3, 5, 9, .9) 0%, rgba(3, 5, 9, 0) 16%);
}
body.home .hero-sky {
  opacity: .7;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(170, 205, 255, .7) 0 .6px, transparent 1.3px),
    radial-gradient(circle at 70% 80%, rgba(120, 180, 255, .5) 0 .5px, transparent 1.1px),
    radial-gradient(circle at 45% 60%, rgba(40, 216, 255, .55) 0 .7px, transparent 1.4px);
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 62% 46%, #000 25%, transparent 88%);
  mask-image: radial-gradient(ellipse 75% 85% at 62% 46%, #000 25%, transparent 88%);
}
body.home .hero-art {
  top: 0;
  right: 0;
  bottom: 0;
  left: 24vw;
  width: auto;
}

/* copy */
body.home .hero-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 112px var(--gutter) 150px;
}
body.home .hero-copy {
  position: relative;
  z-index: 2;
  width: min(520px, 38vw);
  max-width: 520px;
  margin-top: -6px;
}
body.home .hero-copy::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 30px;
  background: var(--nb-blue);
  box-shadow: 0 0 14px rgba(8, 123, 255, .55);
}
body.home .hero h1 {
  font-size: clamp(2.9rem, 4.6vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--nb-text);
}
body.home .hero h1 em {
  padding-right: .06em;
  color: var(--nb-blue-2);
  background: linear-gradient(100deg, #6fe6ff 0%, var(--nb-blue-2) 45%, #7b75ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[lang="zh"] body.home .hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.6rem); line-height: 1.3; letter-spacing: .03em; }
body.home .hero-lead {
  max-width: 28em;
  margin-top: 26px;
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.65;
  color: var(--nb-text-2);
}
html[lang="zh"] body.home .hero-lead { max-width: 21em; }
body.home .hero-actions { margin-top: 36px; gap: 12px; }
body.home .hero-actions .btn {
  height: 50px;
  padding: 0 24px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
html[lang="zh"] body.home .hero-actions .btn { font: 500 14px/1 var(--sans); letter-spacing: .12em; }
body.home .btn-primary {
  background: var(--nb-blue);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(40, 216, 255, .28), 0 10px 32px rgba(8, 123, 255, .28);
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
body.home .btn-primary:hover {
  background: var(--nb-blue-2);
  box-shadow: inset 0 0 0 1px rgba(40, 216, 255, .5), 0 12px 40px rgba(22, 143, 255, .42);
}
body.home .btn-ghost {
  border-color: rgba(140, 180, 255, .26);
  background: rgba(7, 13, 24, .35);
  color: var(--nb-text);
}
body.home .btn-ghost:hover {
  border-color: rgba(40, 216, 255, .6);
  background: rgba(8, 123, 255, .1);
}

/* right-hand editorial note */
.hero-aside {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: var(--gutter);
  width: 196px;
  transform: translateY(-58%);
  font: 500 10px/1.9 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c9d4e3;
}
.hero-aside p { margin: 0; }
.hero-aside mark { padding: 0 .35em; background: var(--nb-blue); color: #fff; }
.aside-rule {
  position: relative;
  display: block;
  width: 72px;
  height: 1px;
  margin: 26px 0 24px;
  background: var(--nb-blue);
}
.aside-rule::after { content: ""; position: absolute; left: 80px; width: 10px; height: 1px; background: var(--nb-blue); }
.hero-aside .aside-sub { color: var(--nb-text-2); }
html[lang="zh"] .hero-aside { letter-spacing: .2em; font-size: 11px; }
.js body.home .hero-aside { animation: rise 1.2s var(--ease) .5s both; }

/* bottom rail: honest caption left, note right, dock centred between */
body.home .hero-foot {
  bottom: calc(46px + env(safe-area-inset-bottom));
  align-items: center;
  padding-bottom: 0;
  color: #5d6a7b;
}
body.home .fig-caption { display: inline-flex; align-items: center; gap: 12px; }
body.home .fig-caption::before { content: ""; width: 22px; height: 1px; background: var(--nb-blue); }
.hero-note {
  color: rgba(141, 155, 172, .55);
  font: 400 9px/1.3 var(--mono);
  letter-spacing: .16em;
}
body.home .hero-note { display: inline-flex; align-items: center; gap: 12px; }
body.home .hero-note::after { content: ""; width: 10px; height: 1px; background: var(--nb-blue); }

@media (max-width: 1180px) {
  .hero-aside { display: none; }
  body.home .hero-art { left: 18vw; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  body.home .hero-copy { width: min(480px, 44vw); }
  body.home .hero-foot { display: none; }
}

@media (max-width: 860px) {
  .site-header {
    height: 66px;
    padding: 0 20px;
    gap: 12px;
  }
  body.home .site-header { height: 66px; }
  .micro-brand { display: none; }
  .wordmark-stack { gap: 6px; }
  .wordmark-stack small { font-size: 8px; letter-spacing: .2em; }
  .language-toggle {
    gap: 8px;
    padding: 8px 11px;
    font-size: 10px;
  }
  .site-dock {
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    justify-content: space-around;
    gap: 0;
    padding: 7px 6px 6px;
    border-radius: 22px;
    transform: none;
  }
  .dock-item {
    width: min(22vw, 76px);
    height: 55px;
    gap: 3px;
    transform: none !important;
  }
  .dock-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }
  .dock-icon svg { width: 17px; height: 17px; }
  .dock-label {
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a9b6c6;
    font-size: 9.5px;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }
  .dock-item[aria-current="page"] .dock-label { color: #dcecff; }
  .dock-item[aria-current="page"]::after { bottom: -4px; }

  body.home .hero {
    justify-content: flex-end;
    min-height: 0;
    background:
      radial-gradient(70vw 60vw at 50% 30%, rgba(8, 92, 210, .2), transparent 70%),
      var(--nb-bg);
  }
  body.home .hero-art {
    top: 56px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 47svh;
  }
  body.home .hero::after {
    background:
      linear-gradient(0deg, var(--nb-bg) 0%, var(--nb-bg) 24%, rgba(3, 5, 9, .6) 44%, rgba(3, 5, 9, 0) 60%);
  }
  body.home .hero-sky {
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 25%, transparent 85%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 30%, #000 25%, transparent 85%);
  }
  body.home .hero-inner {
    align-items: flex-end;
    padding: 0 24px calc(100px + env(safe-area-inset-bottom));
  }
  body.home .hero-copy {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }
  body.home .hero-copy::before { width: 26px; height: 2px; margin-bottom: 18px; }
  body.home .hero h1 {
    font-size: clamp(2.15rem, 8.6vw, 3rem);
    line-height: 1.04;
  }
  html[lang="zh"] body.home .hero h1 {
    font-size: clamp(2rem, 7.6vw, 2.8rem);
    line-height: 1.27;
  }
  body.home .hero-lead {
    max-width: 31em;
    margin-top: 14px;
    font-size: .96rem;
    line-height: 1.55;
  }
  body.home .hero-actions { margin-top: 22px; gap: 9px; flex-wrap: nowrap; }
  body.home .hero-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    gap: 8px;
    font-size: 10.5px;
    letter-spacing: .1em;
  }
  html[lang="zh"] body.home .hero-actions .btn { font-size: 13.5px; }
  /* the disclaimer stays visible, tucked under the brain */
  body.home .hero-foot {
    top: calc(56px + 47svh - 30px);
    bottom: auto;
    justify-content: center;
    padding: 0 24px;
    font-size: 8.5px;
    letter-spacing: .1em;
    white-space: nowrap;
  }
  body.home .hero-note { display: none; }
}
@media (max-width: 520px) {
  .site-header { height: 62px; }
  body.home .site-header { height: 62px; }
  .wordmark { font-size: 13px; letter-spacing: .2em; gap: 9px; }
  .logo { width: 24px; height: 24px; }
  .language-toggle { font-size: 9px; padding: 8px 10px; }
  body.home .hero-inner { padding-right: 22px; padding-left: 22px; }
  body.home .fig-caption { display: inline-flex; }
}
@media (max-width: 860px) and (max-height: 700px) {
  body.home .hero-art { top: 48px; height: 40svh; }
  body.home .hero-foot { top: calc(48px + 40svh - 24px); }
  body.home .hero-inner { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  body.home .hero-copy::before { display: none; }
  body.home .hero h1 { font-size: clamp(1.9rem, 7.4vw, 2.5rem); }
  html[lang="zh"] body.home .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  body.home .hero-lead { margin-top: 10px; font-size: .9rem; }
  body.home .hero-actions { margin-top: 16px; }
  body.home .hero-actions .btn { height: 42px; }
}
@media (min-width: 861px) and (max-height: 800px) {
  body.home .hero-inner { padding-top: 90px; padding-bottom: 132px; }
  body.home .hero-copy::before { margin-bottom: 22px; }
  body.home .hero h1 { font-size: clamp(2.6rem, 4.3vw, 4.1rem); }
  body.home .hero-lead { margin-top: 18px; }
  body.home .hero-actions { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.home) main.page-enter { animation: none; }
  .dock-item { transform: none !important; }
  .dock-label { transition: none; }
  body.home .hero-art { transition: none; }
}
