/* zeror.ca — operations schematic
   Layout: a working pipeline opens the page; below it, quiet ledger-like sections on ruled paper.
   Cobalt marks system flow. Amber marks human judgment. Evidence state is encoded by glyph shape. */

:root {
  --paper: #EDEFEA;
  --paper-2: #E3E6DF;
  --card: #F8F9F6;
  --ink: #14161B;
  --ink-2: #363C46;
  --muted: #5E6570;
  --rule: #CCD0C6;
  --cobalt: #2A45D4;
  --cobalt-deep: #1C32A6;
  --cobalt-wash: #DDE3F8;
  --on-cobalt: #FFFFFF;
  --amber: #D38A00;
  --amber-wash: #F7E7BF;
  --amber-ink: #6A4600;
  --inverse: #15171D;
  --inverse-2: #1E2129;
  --inverse-rule: #343946;
  --on-inverse: #EDEFEA;
  --inverse-muted: #A5ABB7;
  --inverse-accent: #97A8FF;
  --shadow: 0 1px 0 rgba(20, 22, 27, .04), 0 28px 60px -34px rgba(20, 22, 27, .38);

  --f-display: "Archivo", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --wrap: 1180px;
  --read: 70ch;
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1115;
    --paper-2: #14171E;
    --card: #191C24;
    --ink: #E9ECF1;
    --ink-2: #C4C9D2;
    --muted: #969DAA;
    --rule: #2A2F3A;
    --cobalt: #8C9DFF;
    --cobalt-deep: #B4BFFF;
    --cobalt-wash: #1C2344;
    --on-cobalt: #0B0E1C;
    --amber: #F0B23A;
    --amber-wash: #30260F;
    --amber-ink: #F5D38B;
    --inverse: #161C33;
    --inverse-2: #1C2340;
    --inverse-rule: #2C3558;
    --on-inverse: #E9ECF1;
    --inverse-muted: #9EA7C6;
    --inverse-accent: #A9B6FF;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1115;
  --paper-2: #14171E;
  --card: #191C24;
  --ink: #E9ECF1;
  --ink-2: #C4C9D2;
  --muted: #969DAA;
  --rule: #2A2F3A;
  --cobalt: #8C9DFF;
  --cobalt-deep: #B4BFFF;
  --cobalt-wash: #1C2344;
  --on-cobalt: #0B0E1C;
  --amber: #F0B23A;
  --amber-wash: #30260F;
  --amber-ink: #F5D38B;
  --inverse: #161C33;
  --inverse-2: #1C2340;
  --inverse-rule: #2C3558;
  --on-inverse: #E9ECF1;
  --inverse-muted: #9EA7C6;
  --inverse-accent: #A9B6FF;
  --shadow: none;
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lang-zh { font-size: 16.5px; line-height: 1.82; }
img { max-width: 100%; height: auto; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--ink); }
h3 { font-family: var(--f-body); font-weight: 600; font-size: 19px; line-height: 1.3; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.hl { display: inline-block; }

.label, .eyebrow {
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.eyebrow { color: var(--cobalt); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; }
.lang-zh .label, .lang-zh .eyebrow { font-size: 13px; letter-spacing: .06em; text-transform: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px;
  background: var(--ink); color: var(--paper); font-weight: 600; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 4px; border: 1.5px solid transparent;
  font-family: var(--f-body); font-size: 15.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn span[aria-hidden] { transition: transform .15s; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn-primary:hover { background: var(--cobalt-deep); color: var(--on-cobalt); }
.btn-quiet, .btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-quiet:hover, .btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-invert { background: var(--on-inverse); color: var(--inverse); }
.btn-invert:hover { background: var(--inverse-accent); color: var(--inverse); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--f-display); font-stretch: 120%; font-weight: 800; font-size: 20px; letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 38px; height: auto; flex: none; object-fit: contain; }
.footer-brand .brand img { width: 35px; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding-block: 6px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--cobalt); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 4px; padding: 3px; background: var(--card); }
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 2px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none;
}
.lang-switch a[lang="zh-Hans"] { font-family: var(--f-body); font-size: 13px; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang-switch a:not([aria-current]):hover { color: var(--ink); }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none; cursor: pointer; min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center;
  border: 1px solid var(--ink); border-radius: 4px; font-size: 14.5px; font-weight: 600;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(300px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
}
.mobile-panel a:not(.btn) { padding: 11px 10px; color: var(--ink); text-decoration: none; border-radius: 4px; }
.mobile-panel a[aria-current="page"] { background: var(--cobalt-wash); }
.mobile-panel .btn { margin-top: 8px; }
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .header-inner { justify-content: space-between; gap: 12px; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding-block: clamp(48px, 7vw, 88px) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.display {
  font-family: var(--f-display); font-stretch: 118%; font-weight: 800;
  font-size: clamp(46px, 6.4vw, 92px); line-height: .94; letter-spacing: -.025em;
}
.lang-zh .display { font-weight: 900; font-size: clamp(44px, 6vw, 84px); line-height: 1.1; letter-spacing: 0; }
.lede { font-size: clamp(18.5px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 28px 0 10px; max-width: 34em; }
.lede-2 { color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* the run panel: one orchestrated moment on the page */
.run {
  margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow);
  overflow: hidden; min-width: 0;
}
.run-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--rule);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--muted);
}
.run-name { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.run-name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); }
.run-rows { list-style: none; margin: 0; padding: 0; }
.run-rows li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) auto 22px; gap: 14px; align-items: center;
  padding: 13px 18px; border-bottom: 1px dashed var(--rule);
  animation: run-row .5s ease both; animation-delay: calc(var(--i) * .42s + .25s);
}
.run-step { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.run-desc { font-size: 15px; color: var(--ink); min-width: 0; }
.run-val { font-family: var(--f-mono); font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.run-rows li.gate { background: var(--amber-wash); }
.run-rows li.gate .run-step, .run-rows li.gate .run-val { color: var(--amber-ink); font-weight: 500; }
.run-rows li.final .run-val { color: var(--cobalt); font-weight: 600; }
.run-st { position: relative; width: 20px; height: 20px; }
.run-st i { position: absolute; inset: 0; border-radius: 50%; }
.run-st .p { border: 1.5px solid var(--rule); inset: 3px; }
.run-st .d { background: var(--cobalt); animation: run-done .3s ease both; animation-delay: calc(var(--i) * .42s + .55s); }
.run-st .d::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px;
  border: solid var(--on-cobalt); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.gate .run-st .d { background: var(--amber); }
.gate .run-st .d::after { border-color: var(--inverse); }
.run-bar { height: 3px; background: var(--rule); }
.run-bar span { display: block; height: 100%; background: var(--cobalt); transform-origin: left; animation: run-bar 2.9s cubic-bezier(.3, .1, .3, 1) both .25s; }
.run-note { padding: 12px 18px 14px; font-size: 13px; color: var(--muted); margin: 0; }
@keyframes run-row { from { opacity: .4; } to { opacity: 1; } }
@keyframes run-done { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes run-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* production figures under the hero */
.ledger {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(48px, 7vw, 80px); border-top: 2px solid var(--ink);
}
.ledger > div { padding: 18px 20px 20px 0; min-width: 0; }
.ledger > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.ledger-num {
  font-family: var(--f-display); font-stretch: 116%; font-weight: 750; font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.05; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; margin-bottom: 8px;
}
.lang-zh .ledger-num { font-weight: 800; }
.ledger-label { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin: 0; }
.ledger-note { font-family: var(--f-mono); font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 0; }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--rule); }
.hero + .section { margin-top: clamp(48px, 6vw, 80px); }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 800px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2, .col-text h2, .cta-inner h2 {
  font-family: var(--f-display); font-stretch: 116%; font-weight: 780;
  font-size: clamp(30px, 3.9vw, 50px); line-height: 1.02; letter-spacing: -.02em;
}
.lang-zh .section-head h2, .lang-zh .col-text h2, .lang-zh .cta-inner h2 { font-weight: 800; line-height: 1.22; letter-spacing: 0; }
.section-intro { font-size: 18px; color: var(--muted); margin: 18px 0 0; max-width: 38em; }
.section-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; max-width: none; }
.section-head-row .section-intro { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.col-text h2 + p { margin-top: 20px; }
.big { font-size: 19.5px; line-height: 1.55; color: var(--ink-2); }
.more { margin: 36px 0 0; }
.more a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--cobalt); padding-bottom: 2px; }
.more a:hover { color: var(--cobalt); }

/* problems: each break names where the flow breaks */
.breaks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 36px; }
.breaks article { border-top: 1.5px solid var(--ink); padding-top: 18px; min-width: 0; }
.where {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--f-mono); font-size: 12px; color: var(--cobalt); letter-spacing: .04em;
}
.where::before {
  content: ""; width: 26px; height: 2px; flex: none;
  background: linear-gradient(to right, currentColor 0 9px, transparent 9px 17px, currentColor 17px);
}
.breaks h3 { margin-bottom: 8px; }
.breaks p:not(.where) { color: var(--muted); font-size: 15.5px; margin: 0; }

/* who it's for */
.checklist { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 28px 14px; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--rule); color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 19px; width: 16px; height: 16px; border: 1.5px solid var(--ink-2); border-radius: 2px; }
.checklist li::after {
  content: ""; position: absolute; left: 5.5px; top: 21px; width: 5px; height: 9px;
  border: solid var(--cobalt); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* services: a shared-border module grid */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 1px solid var(--rule); }
.module {
  position: relative; min-width: 0; padding: 24px 26px 28px;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: background-color .15s;
}
.module:hover { background: var(--card); }
.module-kind { font-family: var(--f-mono); font-size: 12px; color: var(--cobalt); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px; }
.lang-zh .module-kind { text-transform: none; font-size: 13px; }
.module h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: 21px; line-height: 1.18; letter-spacing: -.01em; margin-bottom: 10px; padding-right: 24px; }
.lang-zh .module h3 { font-weight: 700; }
.module h3 a { color: var(--ink); text-decoration: none; }
.module-line { color: var(--muted); font-size: 15px; margin: 0; }
.module-proof { position: relative; z-index: 2; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 14px; }
.module-proof span { display: block; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.lang-zh .module-proof span { text-transform: none; font-size: 12.5px; }
.module-proof a { position: relative; z-index: 2; }
.stretch::after { content: ""; position: absolute; inset: 0; }
.go { position: absolute; top: 22px; right: 22px; font-family: var(--f-mono); color: var(--muted); transition: transform .15s, color .15s; }
.module:hover .go { transform: translateX(4px); color: var(--cobalt); }

/* method: a real sequence, drawn as a pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--cobalt); }
.pipeline li { position: relative; min-width: 0; }
.node { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--paper-2); border: 2.5px solid var(--cobalt); margin-bottom: 18px; position: relative; }
.pipeline .step-no { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pipeline h3 { font-family: var(--f-display); font-stretch: 114%; font-weight: 720; font-size: 22px; margin-bottom: 8px; }
.pipeline p:not(.step-no) { color: var(--muted); font-size: 15px; margin: 0; }

.rules { margin-top: clamp(40px, 5vw, 64px); }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rule-list li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.rule-no { font-family: var(--f-mono); font-size: 12px; color: var(--cobalt); margin-bottom: 12px; }
.rule-list h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: 20px; margin-bottom: 8px; }
.rule-list p:not(.rule-no) { color: var(--muted); font-size: 15px; margin: 0; }

/* homepage: numbered case index, one row per case */
.caselist-head, .caserow {
  display: grid; grid-template-columns: 64px minmax(0, 1.7fr) minmax(0, 1fr) 170px 24px; gap: 28px;
}
.caselist-head {
  padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.caselist { list-style: none; margin: 0; padding: 0; }
.caserow { position: relative; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.caserow-no {
  font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: 34px; line-height: 1;
  color: var(--muted); font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px;
}
.caserow-kind { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 6px; }
.caserow h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 740; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.2; margin-bottom: 8px; }
.lang-zh .caserow h3 { font-weight: 800; line-height: 1.35; }
.caserow h3 a { color: var(--ink); text-decoration: none; transition: color .15s; }
.caserow-problem { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.5; }
.caserow-num {
  font-family: var(--f-display); font-stretch: 116%; font-weight: 780; font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; margin: 0 0 4px;
}
.lang-zh .caserow-num { font-weight: 800; }
.caserow-label { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0; }
.caserow .go { position: static; font-size: 18px; }
.caserow:hover h3 a { color: var(--cobalt); }
.caserow:hover .caserow-no { color: var(--cobalt); }
.caserow:hover .go { transform: translateX(4px); color: var(--cobalt); }

/* cases overview: story cards (problem, what we built, result) */
.index-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px;
  padding-bottom: 16px; margin-bottom: 24px; border-bottom: 2px solid var(--ink);
}
.index-count { font-size: 18px; margin: 0; }
.index-hint { color: var(--muted); font-size: 15px; margin: 0; }
.casecards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.casecard {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 22px 26px 20px;
  transition: border-color .15s;
}
.casecard:hover { border-color: var(--ink); }
.casecard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.casecard-no {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt);
}
.casecard-no span { color: var(--muted); text-transform: none; letter-spacing: 0; }
.casecard-no span::before { content: "·"; margin-right: 10px; color: var(--muted); }
.casecard h3 {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 740; font-size: clamp(21px, 2vw, 25px);
  line-height: 1.18; margin-bottom: 16px;
}
.lang-zh .casecard h3 { font-weight: 800; line-height: 1.35; }
.casecard h3 a { color: var(--ink); text-decoration: none; }
.casecard-body { display: flex; flex-direction: column; flex: 1; margin: 0; }
.casecard-body > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.casecard-body dt {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px;
}
.casecard-body dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.casecard-body > .casecard-result { margin-top: auto; border-top: 2px solid var(--ink); align-items: baseline; padding-top: 14px; }
.casecard-result dd { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.casecard-num {
  font-family: var(--f-display); font-stretch: 116%; font-weight: 780; font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.lang-zh .casecard-num { font-weight: 800; }
.casecard-label { font-size: 15px; color: var(--muted); }
.casecard-go { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--cobalt); }
.casecard-go span { display: inline-block; transition: transform .15s; }
.casecard:hover .casecard-go span { transform: translateX(4px); }

.legend { margin-top: 48px; padding: 24px 26px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; }
.legend-head { font-family: var(--f-body); font-size: 17px; font-weight: 600; margin: 0 0 16px; }
.legend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; margin: 0; }
@media (max-width: 1040px) { .legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* an odd last case card spans the row and lays problem / built / result side by side */
@media (min-width: 761px) {
  .casecards > .casecard:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .casecards > .casecard:last-child:nth-child(odd) .casecard-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .casecards > .casecard:last-child:nth-child(odd) .casecard-body > div { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 0; }
  .casecards > .casecard:last-child:nth-child(odd) .casecard-result { border-top-width: 1px; border-top-color: var(--rule); padding-top: 12px; }
}
.legend-grid dt { margin-bottom: 6px; }
.legend-grid dd { margin: 0; color: var(--muted); font-size: 15px; }
.self-built { margin-top: 48px; }
.self-built .wide-card { margin-top: 0; }
.other-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wide-kind { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 8px; }
.lang-zh .wide-kind { font-family: var(--f-body); font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.cap-table { min-width: 620px; }
.cap-table th:first-child { width: 24% !important; }
.cap-table th:last-child { width: 26%; }
.cap-table td:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }
.cap-table td:nth-child(2) { color: var(--ink-2); }
@media (max-width: 760px) { .other-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .cap-table { min-width: 0; }
  .cap-table thead { display: none; }
  .cap-table, .cap-table tbody, .cap-table tr, .cap-table td { display: block; width: auto !important; }
  .cap-table tr { padding: 14px 16px; border-top: 1px solid var(--rule); }
  .cap-table tr:first-child { border-top: 0; }
  .cap-table td { border: 0; padding: 0; }
  .cap-table td:first-child { margin-bottom: 4px; }
  .cap-table td:nth-child(2) { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
  .cap-table td:last-child { font-family: var(--f-mono); font-size: 13.5px; color: var(--cobalt); }
}

/* evidence glyphs: shape carries the state */
.ev {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; vertical-align: middle;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.lang-zh .ev { font-size: 12.5px; letter-spacing: .02em; text-transform: none; }
.ev::before { content: ""; width: 9px; height: 9px; flex: none; box-sizing: border-box; }
.ev-measured::before { background: currentColor; }
.ev-production::before { background: currentColor; border-radius: 50%; }
.ev-estimate::before { border: 1.5px solid currentColor; background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.ev-tested::before { border: 1.5px solid currentColor; background: radial-gradient(currentColor 0 1.6px, transparent 2px); }
.ev-progress::before { border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(to right, currentColor 50%, transparent 50%); }
.ev-designed::before { border: 1.5px dashed currentColor; }
.ev-progress { color: var(--cobalt); }
h2 .ev, .eyebrow .ev { font-size: 12px; }
.eyebrow .ev { color: var(--ink-2); }
.eyebrow .ev::before { width: 9px; height: 9px; }

/* inverse (ink) section */
.section-ink { background: var(--inverse); color: var(--on-inverse); border-top: 0; }
.section-ink h2, .section-ink strong { color: var(--on-inverse); }
.section-ink .eyebrow { color: var(--inverse-accent); }
.section-ink .big { color: var(--inverse-muted); }
.section-ink .ev { color: var(--on-inverse); }
.board { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--inverse-rule); }
.board li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--inverse-rule); }
.board li span:not(.ev) { color: var(--inverse-muted); font-size: 15.5px; }

.statement {
  font-family: var(--f-display); font-stretch: 114%; font-weight: 720; font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14; letter-spacing: -.015em; color: var(--ink); border-top: 2px solid var(--ink); padding-top: 20px; margin: 0;
}
.lang-zh .statement { font-weight: 800; line-height: 1.35; letter-spacing: 0; }

/* systems vs people */
.split-duty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.duty { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 24px 8px; min-width: 0; }
.duty-system { border-top: 3px solid var(--cobalt); }
.duty-human { border-top: 3px solid var(--amber); }
.duty-head { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.lang-zh .duty-head { text-transform: none; font-size: 13px; letter-spacing: .04em; }
.duty-system .duty-head { color: var(--cobalt); }
.duty-human .duty-head { color: var(--amber-ink); }
.duty ul { list-style: none; margin: 0; padding: 0; }
.duty li { padding: 12px 0; border-top: 1px solid var(--rule); display: flex; gap: 12px; align-items: baseline; }
.duty li::before { content: ""; width: 7px; height: 7px; flex: none; transform: translateY(-2px); }
.duty-system li::before { background: var(--cobalt); }
.duty-human li::before { background: var(--amber); border-radius: 50%; }
.tech { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.tech .label { display: block; margin-bottom: 6px; }

/* closing band */
.cta-band { background: var(--inverse); color: var(--on-inverse); padding-block: clamp(64px, 8vw, 104px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; }
.cta-inner h2 { color: var(--on-inverse); font-size: clamp(36px, 5vw, 64px); }
.cta-body p { color: var(--inverse-muted); font-size: 18px; margin-bottom: 24px; }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 {
  font-family: var(--f-display); font-stretch: 116%; font-weight: 800;
  font-size: clamp(34px, 4.9vw, 64px); line-height: 1.01; letter-spacing: -.022em; max-width: 19ch;
}
.lang-zh .page-head h1 { font-weight: 900; line-height: 1.2; letter-spacing: 0; max-width: 17em; }
.summary { font-size: clamp(18px, 1.7vw, 20.5px); line-height: 1.55; color: var(--ink-2); margin: 24px 0 0; max-width: 40em; }
.status-line { margin: 16px 0 0; font-family: var(--f-mono); font-size: 13px; color: var(--muted); max-width: 72ch; }
.status-line strong { color: var(--cobalt); font-weight: 500; }
.page-body { padding-block: clamp(40px, 5vw, 64px) 24px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); min-width: 0; }
.side-card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 20px 20px 20px; }
.kv { margin: 0 0 18px; }
.kv > div { padding: 11px 0; border-top: 1px solid var(--rule); }
.kv dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.lang-zh .kv dt { text-transform: none; font-size: 12.5px; letter-spacing: .02em; }
.kv dd { margin: 0; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.side-proof { font-size: 15.5px; margin-bottom: 18px; padding-top: 12px; border-top: 1px solid var(--rule); }

.prose { max-width: var(--read); min-width: 0; }
.split .prose { max-width: 74ch; }
.prose h2 {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 740; font-size: clamp(23px, 2.3vw, 29px);
  line-height: 1.15; letter-spacing: -.01em; margin: 56px 0 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}
.lang-zh .prose h2 { font-weight: 800; letter-spacing: 0; line-height: 1.35; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.prose ul > li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; background: var(--cobalt); }
.prose ol.numbered { counter-reset: n; }
.prose ol.numbered > li { counter-increment: n; position: relative; padding-left: 36px; margin-bottom: 10px; }
.prose ol.numbered > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .18em;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--cobalt);
}
.results > li { margin-bottom: 11px; }

/* flows inside cases: a pipeline of stages; the human gate is amber */
.prose ol.flow { display: flex; flex-wrap: wrap; gap: 10px 32px; counter-reset: f; margin: 8px 0 28px; }
.prose ol.flow > li {
  counter-increment: f; position: relative; padding: 8px 12px 8px 36px; margin: 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px; font-size: 15px; line-height: 1.4;
}
.prose ol.flow > li::before {
  content: counter(f, decimal-leading-zero); position: absolute; left: 11px; top: 10px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--muted);
}
.prose ol.flow > li:not(:last-child)::after {
  content: "→"; position: absolute; right: -24px; top: 50%; transform: translateY(-50%); color: var(--cobalt); font-family: var(--f-mono);
}
.prose ol.flow > li.human { background: var(--amber-wash); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; }
.prose ol.flow > li.human::before { color: var(--amber-ink); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); margin: 8px 0 22px; }
.facts > div { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); min-width: 0; }
.fact-num {
  font-family: var(--f-display); font-stretch: 118%; font-weight: 760; font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05; font-variant-numeric: tabular-nums; margin-bottom: 6px;
}
.facts p:not(.fact-num) { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.45; }

.result-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-split > div { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 20px 6px; min-width: 0; }
.split-head { margin-bottom: 12px; }
.footnote { font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--rule); padding-top: 12px; }

.principle {
  margin: 40px 0 12px; padding-top: 16px; border-top: 2px solid var(--ink);
  font-family: var(--f-display); font-stretch: 110%; font-weight: 680; font-size: 21px; line-height: 1.4; color: var(--ink);
}
.lang-zh .principle { font-weight: 700; line-height: 1.6; }
.principle span, .example span {
  display: block; margin-bottom: 8px; font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cobalt);
}
.lang-zh .principle span, .lang-zh .example span { text-transform: none; font-size: 13px; letter-spacing: .04em; }
.example { background: var(--paper-2); border-radius: var(--radius); padding: 16px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--f-mono); font-size: 13px; padding: 6px 11px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin: 8px 0 26px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 13px 16px; border-top: 1px solid var(--rule); }
thead th {
  border-top: 0; background: var(--paper-2); font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.lang-zh thead th { text-transform: none; font-size: 12.5px; letter-spacing: .02em; }
td:first-child { font-weight: 600; }
table:not(.split-table) th:first-child { width: 34%; }
.split-table td { width: 50%; font-weight: 400; }

.status-h::before { content: ""; width: 13px; height: 13px; flex: none; box-sizing: border-box; }
.st-production::before { background: var(--ink); border-radius: 50%; }
.st-tested::before { border: 2px solid var(--ink); background: radial-gradient(var(--ink) 0 2px, transparent 2.5px); }
.st-progress::before { border: 2px solid var(--cobalt); border-radius: 50%; background: linear-gradient(to right, var(--cobalt) 50%, transparent 50%); }
.st-designed::before { border: 2px dashed var(--ink-2); }

.faq { margin-top: 56px; }
.faq dl { margin: 0; border-top: 2px solid var(--ink); }
.qa { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.qa dt { font-weight: 600; font-size: 17.5px; margin-bottom: 6px; }
.qa dd { margin: 0; color: var(--muted); }

.note-band { margin-top: 40px; padding: 18px 22px; background: var(--cobalt-wash); border-radius: var(--radius); }
.note-band p { margin: 0; }
.related-service { margin: 56px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15.5px; }
.related-service span { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.lang-zh .related-service span { text-transform: none; font-size: 13px; }
.related-nav { margin-top: 32px; }
.prose .related-nav ul, .related-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.prose .related-nav li { padding: 10px 0 10px 0; margin: 0; border-top: 1px solid var(--rule); }
.prose .related-nav li::before { display: none; }
.related-nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.related-nav a:hover { color: var(--cobalt); }


.wide-card { position: relative; margin-top: 16px; padding: 22px 60px 22px 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.wide-card:hover { border-color: var(--ink); }
.wide-card .card-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); margin-bottom: 10px; }
.lang-zh .wide-card .card-num { text-transform: none; font-size: 13px; }
.wide-card h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: 21px; margin-bottom: 6px; }
.wide-card h3 a { color: var(--ink); text-decoration: none; }
.wide-card p:last-of-type { color: var(--muted); margin: 0; }
.wide-card .arrow { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); color: var(--muted); }

.steps-long { list-style: none; margin: 0 0 16px; padding: 0; border-top: 2px solid var(--ink); }
.prose .steps-long > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.prose .steps-long > li::before { display: none; }
.steps-long .step-num { font-family: var(--f-mono); font-size: 13px; color: var(--cobalt); padding-top: 8px; }
.steps-long h2 { margin: 0 0 6px !important; font-size: clamp(24px, 2.4vw, 30px) !important; }
.step-lead { font-weight: 600; margin-bottom: 6px; }
.steps-long p { margin-bottom: 4px; }

.prose .beliefs { border-top: 2px solid var(--ink); }
.prose .beliefs > li {
  padding: 14px 0; margin: 0; border-bottom: 1px solid var(--rule);
  font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: 22px; line-height: 1.3;
}
.lang-zh .prose .beliefs > li { font-weight: 800; }
.prose .beliefs > li::before { display: none; }
.prose .actions { margin-top: 36px; }

.contact-card { margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--ink); }
.contact-value {
  font-family: var(--f-display); font-stretch: 116%; font-weight: 760; font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.1; word-break: break-all; margin-bottom: 14px;
}
.contact-value a { text-decoration: none; }

.layout-wide .note-band { max-width: 74ch; }
.rule-line { border: 0; border-top: 1px solid var(--rule); margin: 48px 0 32px; }
.page-head .actions { margin-top: 28px; }
.kind-404 .page-head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); }


/* ---------------------------------------------------------------- flagship product */
.flagship { background: var(--inverse); color: var(--on-inverse); }
.flagship h2, .flagship h3, .flagship strong { color: var(--on-inverse); }
.flagship .eyebrow { color: var(--inverse-accent); }
.flagship .section-intro, .flagship .product-grid p { color: var(--inverse-muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 24px 0 30px; background: var(--inverse-rule); border: 1px solid var(--inverse-rule); border-radius: var(--radius); overflow: hidden; }
.product-grid article { background: var(--inverse-2); padding: 24px; min-height: 220px; }
.product-grid .label { color: var(--inverse-accent); margin-bottom: 28px; }
.product-grid h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 720; font-size: 22px; margin-bottom: 12px; }
.flagship .btn-quiet { border-color: var(--on-inverse); color: var(--on-inverse); }
.flagship .btn-quiet:hover { background: var(--on-inverse); color: var(--inverse); }
@media (max-width: 760px) { .product-grid { grid-template-columns: minmax(0, 1fr); } .product-grid article { min-height: 0; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: 56px 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-brand .brand { font-size: 24px; }
.footer-tag { margin: 14px 0 6px; font-family: var(--f-mono); font-size: 12.5px; color: var(--cobalt); letter-spacing: .04em; }
.footer-brand .muted { max-width: 30em; }
.footer-col { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--cobalt); }
.footer-h { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lang-zh .footer-h { text-transform: none; letter-spacing: .04em; font-size: 13px; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 18px; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted);
  background: linear-gradient(var(--rule), var(--rule)) 24px 0 / calc(100% - 48px) 1px no-repeat;
}
.footer-base p { margin: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .run { max-width: 640px; }
  .modules, .breaks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .pipeline::before { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: -1; }
  .kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); column-gap: 20px; }
}
@media (max-width: 860px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ledger > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .two-col, .section-head-row, .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .rule-list, .split-duty { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding-inline: 16px; }
  .footer-base { background-position: 16px 0; background-size: calc(100% - 32px) 1px; }
  .modules, .breaks, .facts, .result-split, .casecards { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .pipeline li { padding: 0 0 26px 34px; }
  .pipeline li::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--cobalt); }
  .pipeline li:last-child::before { display: none; }
  .node { position: absolute; left: 0; top: 0; margin: 0; }
  .run-rows li { grid-template-columns: 68px minmax(0, 1fr) auto 20px; gap: 10px; padding: 12px 14px; }
  .run-head, .run-note { padding-inline: 14px; }
  .board li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .prose .related-nav ul, .related-nav ul { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  .lang-switch a { padding: 0 8px; }
  .prose ol.flow { flex-direction: column; gap: 22px; }
  .prose ol.flow > li:not(:last-child)::after { content: "↓"; right: auto; left: 16px; top: auto; bottom: -21px; transform: none; }
}
@media (max-width: 420px) {
  .ledger { grid-template-columns: minmax(0, 1fr); }
  .ledger > div, .ledger > div + div { padding-left: 0; border-left: 0; }
  .ledger > div + div { border-top: 1px solid var(--rule); }
  .run-desc { font-size: 14px; }
  .run-rows li { grid-template-columns: 56px minmax(0, 1fr) auto 18px; }
}

@media (max-width: 860px) {
  .caselist-head { display: none; }
  .caselist { border-top: 2px solid var(--ink); }
  .caserow { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; align-items: start; }
  .caserow-no { grid-row: span 3; font-size: 26px; }
  .caserow-result, .caserow-ev { grid-column: 2; }
  .caserow-result { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
  .caserow .go { display: none; }
  .legend-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .casecard { padding: 20px 18px 18px; }
  .casecard-body > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Chinese pages: small labels use the body face, without tracking, so CJK stays crisp */
.lang-zh .label, .lang-zh .eyebrow, .lang-zh .ev, .lang-zh .kv dt, .lang-zh .crumbs, .lang-zh .where,
.lang-zh .module-kind, .lang-zh .module-proof span, .lang-zh .casecard-no, .lang-zh .casecard-body dt,
.lang-zh .caserow-kind, .lang-zh .caselist-head, .lang-zh .run-step, .lang-zh .run-mode, .lang-zh .duty-head,
.lang-zh .footer-h, .lang-zh .related-service span, .lang-zh .principle span, .lang-zh .example span,
.lang-zh .rule-no, .lang-zh thead th, .lang-zh .status-line, .lang-zh .ledger-note, .lang-zh .footer-base,
.lang-zh .footer-tag {
  font-family: var(--f-body); letter-spacing: 0; text-transform: none;
}
.lang-zh .ev, .lang-zh .casecard-body dt, .lang-zh .caserow-kind, .lang-zh .casecard-no { font-size: 13.5px; }
.lang-zh .label, .lang-zh .eyebrow { font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
