:root {
  --paper: #eee9d6;
  --ink: #212528;
  --sun: #efae1e;
  --ink-72: rgba(33, 37, 40, 0.72);
  --ink-48: rgba(33, 37, 40, 0.48);
  --ink-18: rgba(33, 37, 40, 0.18);
  --ink-08: rgba(33, 37, 40, 0.08);
  --paper-88: rgba(238, 233, 214, 0.88);
  --paper-64: rgba(238, 233, 214, 0.64);
  --paper-18: rgba(238, 233, 214, 0.18);
  --sun-22: rgba(239, 174, 30, 0.22);
  --sun-10: rgba(239, 174, 30, 0.1);
  --shadow: 0 22px 64px rgba(33, 37, 40, 0.13);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shell: 1180px;
  --font-sans: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(var(--ink-08) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-08) 1px, transparent 1px),
    var(--paper);
  background-size: 52px 52px;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  top: -18vw;
  right: -15vw;
  width: 48vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun-22);
  content: "";
  filter: blur(12px);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--sun);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4 {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  color: var(--ink);
  background: var(--sun);
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--ink-18);
  background: rgba(238, 233, 214, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--ink-48);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.desktop-nav a,
.mobile-nav a {
  position: relative;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 11px;
  bottom: 4px;
  left: 11px;
  height: 3px;
  background: var(--sun);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-action,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.header-action,
.button--dark {
  color: var(--paper);
  background: var(--ink);
}

.button--light {
  color: var(--ink);
  background: var(--paper);
}

.button--sun {
  color: var(--ink);
  background: var(--sun);
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.button--dark:hover {
  color: var(--ink);
  background: var(--sun);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span {
  opacity: 0;
}

.nav-open .nav-toggle::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle::after {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero-wrap {
  padding: 48px 0 34px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 610px;
  align-items: center;
  gap: 38px;
  padding: clamp(36px, 6vw, 78px);
  overflow: hidden;
  background: var(--sun);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  top: -180px;
  left: 42%;
  width: 460px;
  height: 460px;
  border: 1px solid var(--ink-18);
  border-radius: 50%;
  box-shadow:
    0 0 0 62px var(--paper-18),
    0 0 0 124px var(--paper-18);
  content: "";
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--sun);
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.hero h1,
.page-hero h1 {
  max-width: 11em;
  margin-bottom: 28px;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.hero h1 em,
.page-hero h1 em {
  position: relative;
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after,
.page-hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -0.03em;
  bottom: 0.06em;
  left: -0.03em;
  height: 0.22em;
  background: var(--paper);
  content: "";
  transform: rotate(-1deg);
}

.hero-lead,
.page-lead {
  max-width: 620px;
  color: var(--ink-72);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--ink-72);
  font-size: 13px;
  font-weight: 700;
}

.hero-note::before {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  content: "✓";
  font-size: 12px;
}

.route-board {
  padding: 18px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(33, 37, 40, 0.24);
  transform: rotate(1.2deg);
}

.route-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 5px 16px;
}

.route-board-title {
  display: grid;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.route-board-title strong {
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.route-switch {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: var(--paper-18);
  border-radius: 999px;
}

.route-switch button {
  min-height: 34px;
  padding: 6px 12px;
  color: var(--paper-64);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.route-switch button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--sun);
}

.route-stage {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background:
    linear-gradient(var(--paper-18) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-18) 1px, transparent 1px),
    var(--ink);
  background-size: 30px 30px;
  border: 1px solid var(--paper-18);
  border-radius: 20px;
}

.route-map {
  width: 100%;
  height: auto;
  min-height: 290px;
}

.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-line--public {
  stroke: var(--paper-64);
  stroke-width: 4;
  stroke-dasharray: 10 10;
}

.route-line--fast {
  stroke: var(--sun);
  stroke-width: 8;
}

.route-node circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 4;
}

.route-node--accent circle {
  fill: var(--sun);
}

.route-node text {
  fill: var(--paper);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}

.route-node text.node-code {
  fill: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
}

.route-board[data-mode="optimized"] .route-line--public {
  opacity: 0.16;
}

.route-board[data-mode="public"] .route-line--fast {
  opacity: 0.12;
}

.route-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.route-metric {
  padding: 12px;
  background: var(--paper-18);
  border-radius: 13px;
}

.route-metric small {
  display: block;
  color: var(--paper-64);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-metric strong {
  font-family: var(--font-mono);
  font-size: 20px;
}

.quick-truths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  overflow: hidden;
  background: rgba(238, 233, 214, 0.52);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius-lg);
}

.quick-truth {
  padding: 24px 28px;
}

.quick-truth + .quick-truth {
  border-left: 1px solid var(--ink-18);
}

.quick-truth strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.quick-truth span {
  color: var(--ink-72);
  font-size: 14px;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section--dark {
  color: var(--paper);
  background: var(--ink);
}

.section--sun {
  background: var(--sun);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.section-kicker {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-kicker::before {
  display: inline-block;
  width: 30px;
  height: 3px;
  margin: 0 10px 3px 0;
  background: var(--sun);
  content: "";
}

.section-head h2 {
  max-width: 13em;
  margin-bottom: 0;
  font-size: clamp(35px, 4.5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-head p {
  color: var(--ink-72);
  font-size: 16px;
}

.section--dark .section-head p {
  color: var(--paper-64);
}

.truth-grid,
.card-grid,
.metric-grid,
.symptom-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.truth-card,
.metric-card,
.symptom-card,
.related-card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius-lg);
}

.section--dark .truth-card,
.section--dark .metric-card,
.section--dark .related-card {
  color: var(--ink);
}

.card-code {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--ink-48);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.truth-card h3,
.metric-card h3,
.symptom-card h3,
.related-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.truth-card p,
.metric-card p,
.symptom-card p,
.related-card p {
  color: var(--ink-72);
  font-size: 15px;
}

.metric-value {
  display: block;
  margin: 12px 0 10px;
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}

.metric-value small {
  margin-left: 4px;
  font-size: 0.32em;
  letter-spacing: 0;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.lesson-card {
  position: relative;
  grid-column: span 4;
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.lesson-card:nth-child(1),
.lesson-card:nth-child(4) {
  grid-column: span 7;
}

.lesson-card:nth-child(2),
.lesson-card:nth-child(3) {
  grid-column: span 5;
}

.lesson-card::after {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--sun);
  border-radius: 50%;
  content: "↗";
  font-size: 18px;
  font-weight: 800;
  transition: transform 180ms ease;
}

.lesson-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.lesson-card:hover::after {
  transform: rotate(45deg);
}

.lesson-card--dark {
  color: var(--paper);
  background: var(--ink);
}

.lesson-number {
  color: var(--ink-48);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.lesson-card--dark .lesson-number {
  color: var(--paper-64);
}

.lesson-card h3 {
  max-width: 10em;
  margin: 54px 0 12px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.lesson-card p {
  max-width: 35em;
  margin-bottom: 0;
  color: var(--ink-72);
  font-size: 14px;
}

.lesson-card--dark p {
  color: var(--paper-64);
}

.route-explainer {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
}

.route-stack {
  display: grid;
  gap: 14px;
}

.route-step {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: var(--paper-18);
  border: 1px solid var(--paper-18);
  border-radius: var(--radius-md);
}

.route-step-index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--ink);
  background: var(--sun);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.route-step h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.route-step p {
  margin: 0;
  color: var(--paper-64);
  font-size: 13px;
}

.route-step-code {
  color: var(--paper-64);
  font-family: var(--font-mono);
  font-size: 11px;
}

.manifesto {
  position: relative;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  background: var(--sun);
  border-radius: var(--radius-xl);
}

.manifesto::after {
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border: 70px solid var(--paper-18);
  border-radius: 50%;
  content: "";
}

.manifesto blockquote {
  position: relative;
  z-index: 1;
  max-width: 790px;
  margin: 0;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.manifesto p {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-top: 26px;
  color: var(--ink-72);
}

.page-hero {
  padding: clamp(46px, 7vw, 90px) 0 50px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 42px;
  color: var(--ink-48);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  text-decoration: none;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 25px;
}

.page-lead {
  max-width: 760px;
}

.page-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 800px;
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--ink-18);
  border-radius: var(--radius-md);
}

.page-stat {
  padding: 18px 20px;
  background: var(--paper-64);
}

.page-stat + .page-stat {
  border-left: 1px solid var(--ink-18);
}

.page-stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
}

.page-stat span {
  color: var(--ink-48);
  font-size: 12px;
}

.article-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
  padding-bottom: 90px;
}

.article-aside {
  position: sticky;
  top: 110px;
}

.toc {
  padding: 22px;
  background: var(--paper-64);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius-md);
}

.toc h2 {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.toc nav {
  display: grid;
  gap: 4px;
}

.toc a {
  padding: 6px 0;
  color: var(--ink-72);
  font-size: 13px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.article-main {
  min-width: 0;
}

.article-section {
  padding: 0 0 54px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--ink-18);
}

.article-section h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.article-section h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.article-section p,
.article-section li {
  color: var(--ink-72);
}

.article-section strong {
  color: var(--ink);
}

.article-section a {
  text-decoration-color: var(--sun);
}

.lead-answer {
  padding: 26px 30px;
  margin-bottom: 34px;
  background: var(--sun);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
}

.callout {
  padding: 24px 26px;
  margin: 28px 0;
  background: var(--paper-64);
  border: 1px solid var(--ink-18);
  border-left: 7px solid var(--sun);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.formula {
  padding: 24px;
  margin: 28px 0;
  overflow-x: auto;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 18px);
  white-space: nowrap;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 18px 18px 18px 46px;
  background: var(--paper-64);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius-md);
}

.feature-list li::before {
  position: absolute;
  top: 20px;
  left: 18px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  content: "✓";
  font-size: 10px;
  font-weight: 900;
}

.table-wrap {
  max-width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: var(--paper-64);
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--ink-18);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.big-number-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.big-number {
  padding: 22px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-md);
}

.big-number strong {
  display: block;
  color: var(--sun);
  font-family: var(--font-mono);
  font-size: 36px;
  line-height: 1;
}

.big-number span {
  display: block;
  margin-top: 10px;
  color: var(--paper-64);
  font-size: 12px;
}

.checklist {
  padding: 0;
  margin: 26px 0;
  list-style: none;
  counter-reset: checklist;
}

.checklist li {
  position: relative;
  padding: 16px 0 16px 54px;
  border-bottom: 1px solid var(--ink-18);
  counter-increment: checklist;
}

.checklist li::before {
  position: absolute;
  top: 15px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--sun);
  border-radius: 50%;
  content: counter(checklist, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--paper-64);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius-md);
}

.faq-item summary {
  padding: 20px 52px 20px 22px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  float: right;
  margin-right: -32px;
  content: "+";
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 22px 20px;
}

.source-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  padding: 18px 20px;
  background: var(--paper-64);
  border: 1px solid var(--ink-18);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.source-list span {
  display: block;
  margin-top: 4px;
  color: var(--ink-48);
  font-size: 12px;
}

.lab {
  padding: 28px;
  margin: 30px 0;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.lab-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.lab-head h3 {
  margin: 0;
  color: var(--paper);
  font-size: 24px;
}

.lab-head span {
  color: var(--paper-64);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.range-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 20px;
  align-items: center;
}

.range-grid label {
  font-size: 14px;
}

.range-grid output {
  min-width: 70px;
  color: var(--sun);
  font-family: var(--font-mono);
  text-align: right;
}

.range-grid input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--sun);
}

.latency-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  padding-top: 24px;
  margin-top: 26px;
  border-top: 1px solid var(--paper-18);
}

.latency-result small {
  display: block;
  color: var(--paper-64);
}

.latency-number {
  color: var(--sun);
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.07em;
}

.latency-number span {
  font-size: 0.3em;
  letter-spacing: 0;
}

.route-bars {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

.route-bar {
  height: 8px;
  overflow: hidden;
  background: var(--paper-18);
  border-radius: 999px;
}

.route-bar span {
  display: block;
  width: 30%;
  height: 100%;
  background: var(--sun);
  border-radius: inherit;
  transition: width 180ms ease;
}

.protocol-tabs {
  margin: 30px 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.protocol-tablist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
}

.protocol-tab {
  padding: 16px 18px;
  color: var(--paper-64);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--paper-18);
  font-family: var(--font-mono);
  font-weight: 800;
  cursor: pointer;
}

.protocol-tab:last-child {
  border-right: 0;
}

.protocol-tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--sun);
}

.protocol-panel {
  min-height: 220px;
  padding: 26px;
  background: var(--paper-64);
}

.protocol-panel[hidden] {
  display: none;
}

.protocol-panel h3 {
  margin-top: 0;
  font-size: 25px;
}

.protocol-panel p {
  margin-bottom: 0;
}

.protocol-panel code {
  display: block;
  padding: 15px;
  margin-top: 18px;
  overflow-x: auto;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.next-section {
  padding: 72px 0;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.next-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  color: var(--ink);
  background: var(--sun);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  text-decoration: none;
}

.next-card--dark {
  color: var(--paper);
  background: var(--ink);
}

.next-card small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.next-card strong {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  font-size: 28px;
  line-height: 1.15;
}

.next-card strong span {
  font-size: 30px;
}

.site-footer {
  padding: 54px 0 28px;
  color: var(--paper);
  background: var(--ink);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.65fr);
  gap: 36px;
  padding-bottom: 44px;
}

.footer-brand p {
  max-width: 360px;
  margin-top: 15px;
  color: var(--paper-64);
  font-size: 14px;
}

.footer-column h2 {
  margin-bottom: 13px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.footer-column nav {
  display: grid;
  gap: 7px;
}

.footer-column a {
  color: var(--paper-64);
  font-size: 13px;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--sun);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: var(--paper-64);
  border-top: 1px solid var(--paper-18);
  font-family: var(--font-mono);
  font-size: 10px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 82px);
  place-items: center;
  padding: 60px 0;
}

.not-found-inner {
  max-width: 760px;
  text-align: center;
}

.not-found-code {
  color: var(--sun);
  font-family: var(--font-mono);
  font-size: clamp(100px, 24vw, 240px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.09em;
}

.not-found h1 {
  margin: 32px 0 16px;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.05em;
}

.not-found p {
  color: var(--ink-72);
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-action {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition:
      max-height 220ms ease,
      border-color 220ms ease;
  }

  .nav-open .mobile-nav {
    max-height: 70vh;
    overflow-y: auto;
    border-color: var(--ink-18);
  }

  .mobile-nav nav {
    display: grid;
    padding: 12px 20px 22px;
  }

  .mobile-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--ink-18);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    max-width: 640px;
  }

  .section-head,
  .route-explainer,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

  .lesson-card,
  .lesson-card:nth-child(n) {
    grid-column: span 6;
  }

  .truth-grid,
  .card-grid,
  .metric-grid,
  .symptom-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-aside {
    position: static;
  }

  .toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    background-size: 38px 38px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .hero-wrap {
    padding-top: 24px;
  }

  .hero {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .hero::before {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(41px, 13vw, 58px);
    letter-spacing: -0.06em;
  }

  .hero h1 em {
    white-space: normal;
  }

  .hero h1 em::after,
  .page-hero h1 em::after {
    display: none;
  }

  .page-hero h1.compare-title {
    font-size: clamp(32px, 9.3vw, 40px);
    line-height: 1.05;
  }

  .page-hero h1.measure-title {
    font-size: clamp(32px, 9.5vw, 40px);
    line-height: 1.06;
  }

  .hero-actions .button {
    width: 100%;
  }

  .route-board {
    margin-inline: -6px;
    padding: 12px;
    transform: none;
  }

  .route-board-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .route-switch {
    width: 100%;
  }

  .route-switch button {
    flex: 1;
  }

  .route-stage {
    min-height: 250px;
  }

  .route-map {
    min-height: 240px;
  }

  .route-metrics,
  .quick-truths,
  .truth-grid,
  .card-grid,
  .metric-grid,
  .symptom-grid,
  .related-grid,
  .feature-list,
  .big-number-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .quick-truth + .quick-truth {
    border-top: 1px solid var(--ink-18);
    border-left: 0;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    gap: 18px;
    margin-bottom: 28px;
  }

  .lesson-card,
  .lesson-card:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 235px;
  }

  .lesson-card h3 {
    margin-top: 40px;
  }

  .route-step {
    grid-template-columns: 46px 1fr;
  }

  .route-step-code {
    display: none;
  }

  .route-step-index {
    width: 40px;
    height: 40px;
  }

  .page-hero {
    padding-top: 35px;
  }

  .page-stats {
    grid-template-columns: 1fr;
  }

  .page-stat + .page-stat {
    border-top: 1px solid var(--ink-18);
    border-left: 0;
  }

  .article-shell {
    gap: 30px;
    padding-bottom: 60px;
  }

  .toc nav {
    grid-template-columns: 1fr;
  }

  .article-section {
    padding-bottom: 38px;
    margin-bottom: 38px;
  }

  .lead-answer {
    padding: 20px;
    font-size: 17px;
  }

  .lab {
    padding: 20px;
  }

  .latency-result {
    grid-template-columns: 1fr;
  }

  .protocol-tablist {
    grid-template-columns: 1fr;
  }

  .protocol-tab {
    border-right: 0;
    border-bottom: 1px solid var(--paper-18);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
