:root {
  --ink: #1b1b18;
  --paper: #f3f0e7;
  --paper-bright: #fbfaf5;
  --lime: #d9ff57;
  --deep: #2d4a86;          /* 深度工作 */
  --shallow: #dd9042;       /* 浅层工作 */
  --residue: #c8524a;       /* 注意力残留 */
  --deep-dark: #1f3358;
  --line: rgba(27, 27, 24, .2);
  --line-soft: rgba(27, 27, 24, .1);
  --muted: #5f5d54;
  --shadow: 0 24px 70px rgba(27, 27, 24, .13);
  --mono: "DM Mono", "Noto Sans SC", ui-monospace, monospace;
  --sans: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.86;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; }
em { font-family: var(--serif); font-style: normal; font-weight: 600; }

/* ---------- chrome ---------- */
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 3px; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--deep); }

.topbar {
  position: sticky; top: 0; z-index: 50; height: 74px; padding: 0 clamp(18px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line); background: rgba(243,240,231,.9); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 11px/1 var(--mono); letter-spacing: .1em; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-size: 11px; letter-spacing: .04em;
}
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { text-decoration: none; font: 500 13px/1 var(--sans); }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.paper-link {
  padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px;
  text-decoration: none; font: 500 12px/1 var(--sans); white-space: nowrap;
}
.paper-link:hover { background: var(--lime); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
main { overflow-x: clip; }

/* ---------- shared type ---------- */
.eyebrow, .kicker { margin: 0 0 20px; font: 500 10px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.eyebrow span { position: relative; }
.eyebrow span + span::before {
  content: ""; position: absolute; left: -10px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: currentColor;
}
.lead { max-width: 820px; margin: 30px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(56px, 7vw, 110px) clamp(18px, 5vw, 80px) clamp(40px, 5vw, 70px);
  background:
    linear-gradient(rgba(27,27,24,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,27,24,.045) 1px, transparent 1px), var(--paper);
  background-size: 42px 42px;
}
.hero-grid {
  max-width: 1440px; margin: auto; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  align-items: center; gap: clamp(34px, 5vw, 76px);
}
.hero h1 { margin: 0; max-width: 900px; font: 400 clamp(38px, 5.2vw, 82px)/1.1 var(--sans); letter-spacing: -.02em; }
.hero h1 em { color: var(--residue); }
.hero-deck { max-width: 720px; margin: 32px 0 0; color: var(--muted); font-size: clamp(15.5px, 1.4vw, 19px); }
.hero-deck strong { display: block; margin-top: 16px; color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; font: 500 11px/1 var(--mono); letter-spacing: .06em; }
.primary-button, .ghost-button {
  display: inline-flex; align-items: center; gap: 26px; padding: 15px 20px; border-radius: 3px;
  text-decoration: none; font: 500 13px/1 var(--sans);
}
.primary-button { background: var(--ink); color: var(--paper); }
.primary-button span { color: var(--lime); }
.primary-button:hover { background: var(--deep-dark); }
.ghost-button { border: 1px solid var(--ink); }
.ghost-button span { opacity: .55; }
.ghost-button:hover { background: var(--lime); }

.hero-stage { position: relative; }
.hero-stage svg { width: 100%; height: auto; overflow: visible; }
.stage-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font: 500 10px/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); }
.stage-key span { display: inline-flex; align-items: center; gap: 7px; }
.stage-key i { display: block; width: 11px; height: 11px; border-radius: 2px; }
.k-full { background: var(--ink); }
.k-res { background: var(--residue); opacity: .45; }
.k-switch { background: var(--residue); }
.stage-caption { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.hs-label { fill: var(--muted); font: 500 11px var(--mono); letter-spacing: .06em; }
.hs-strong { fill: var(--ink); font: 500 13px var(--mono); letter-spacing: .04em; }
.hs-rule { stroke: var(--line); stroke-width: 1; }
.hs-full { fill: var(--ink); }
.hs-res { fill: var(--residue); opacity: .32; }
.hs-switch { fill: var(--residue); }
.hs-frame { fill: none; stroke: var(--line-soft); stroke-width: 1; }

.hero-facts {
  max-width: 1440px; margin: clamp(46px, 6vw, 92px) auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-facts div { padding: 20px 22px 20px 0; border-right: 1px solid var(--line-soft); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts div + div { padding-left: 22px; }
.hero-facts strong { display: block; font: 400 clamp(24px, 2.2vw, 34px)/1.2 var(--sans); letter-spacing: -.02em; }
.hero-facts span { display: block; margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- chapters ---------- */
.chapter { position: relative; padding: clamp(80px, 10vw, 158px) clamp(18px, 7vw, 110px); }
.section-marker {
  position: absolute; top: 92px; left: clamp(18px, 2.6vw, 44px);
  display: flex; flex-direction: column; align-items: center; gap: 16px; font-family: var(--mono);
}
.section-marker span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.section-marker p { margin: 0; font-size: 9px; letter-spacing: .16em; writing-mode: vertical-rl; }
.chapter-copy, .chapter-heading { max-width: 1080px; margin: 0 auto 64px; }
.chapter-copy p:not(.kicker):not(.lead), .chapter-heading p:not(.kicker):not(.lead) { max-width: 780px; color: var(--muted); }
.chapter h2 { margin: 0; font: 400 clamp(30px, 4.2vw, 60px)/1.16 var(--sans); letter-spacing: -.02em; }
.chapter h3 { margin: 0 0 14px; font: 400 clamp(21px, 2.3vw, 32px)/1.3 var(--sans); letter-spacing: -.015em; }

/* ---------- thesis ---------- */
.thesis { max-width: 1240px; margin: clamp(60px, 8vw, 104px) auto 0; padding: clamp(28px, 5vw, 58px); background: var(--ink); color: var(--paper); }
.thesis > span { color: var(--lime); font: 500 10px/1 var(--mono); letter-spacing: .14em; }
.thesis blockquote { max-width: 980px; margin: 24px 0 44px; font: 400 clamp(21px, 2.9vw, 40px)/1.34 var(--sans); letter-spacing: -.015em; }
.thesis-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(243,240,231,.2); }
.thesis-split > div { padding: 28px; background: var(--ink); }
.thesis-tag { margin: 0 0 14px; font: 500 10px/1 var(--mono); letter-spacing: .12em; color: var(--lime); }
.thesis-split strong { display: block; font: 400 22px/1.4 var(--sans); letter-spacing: -.01em; }
.thesis-split p:not(.thesis-tag) { margin: 12px 0 0; color: rgba(243,240,231,.62); font-size: 14.5px; }

/* ---------- detail grid ---------- */
.detail-grid { max-width: 1240px; margin: clamp(50px, 7vw, 92px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-soft); }
.detail-grid article { padding: 30px; border-right: 1px solid var(--line-soft); background: var(--paper-bright); }
.detail-grid article:last-child { border-right: 0; }
.detail-grid span { font: 500 9.5px/1 var(--mono); letter-spacing: .13em; color: var(--muted); }
.detail-grid h3 { margin: 22px 0 10px; font-size: 20px; }
.detail-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- generic lab shell ---------- */
.lab {
  max-width: 1240px; margin: clamp(52px, 7vw, 96px) auto 0;
  display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(28px, 4vw, 56px); align-items: start;
  padding: clamp(22px, 3.6vw, 42px); border: 1px solid var(--line); background: var(--paper-bright);
}
.lab.dark { background: transparent; border-color: rgba(243,240,231,.25); }
.lab-copy p:not(.kicker):not(.readout) { color: var(--muted); }
.lab-copy h3 { margin-bottom: 14px; }
.readout {
  min-height: 92px; margin: 22px 0 0; padding: 2px 0 2px 16px;
  border-left: 3px solid var(--deep); font-size: 15px; line-height: 1.78;
}
.readout b { font-weight: 500; }
.model-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-soft); color: var(--muted); font: 500 11px/1.7 var(--mono); }
.control-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
  padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer; font: 500 12.5px/1 var(--sans);
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- 01a: the sorter ---------- */
.sorter-tasks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sorter-tasks .pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.sorter-board { display: grid; gap: 0; }
.sorter-axis { display: grid; grid-template-columns: minmax(0, 1fr); }
.sorter-axis svg { width: 100%; height: auto; }
.sorter-board .kicker { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.sorter-stack { min-height: 250px; }
.sorter-rows { margin: 0; padding: 0; list-style: none; }
.sorter-rows li {
  display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 62px; gap: 14px; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--line-soft);
}
.sorter-rows li[hidden] { display: none; }
.sorter-rows .st-name { font-size: 13.5px; line-height: 1.5; }
.sorter-rows .st-track { height: 16px; background: rgba(27,27,24,.06); border-radius: 2px; overflow: hidden; }
.sorter-rows .st-track i { display: block; width: 0; height: 100%; border-radius: 2px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.sorter-rows li.is-shallow .st-track i { background: var(--shallow); }
.sorter-rows li.is-deep .st-track i { background: var(--deep); }
.sorter-rows .st-num { font: 500 12px/1 var(--mono); color: var(--muted); text-align: right; }
.sorter-empty { margin: 0; padding: 4px 0 0; color: var(--muted); font-size: 14px; }
.sorter-scale { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font: 500 10.5px/1.6 var(--mono); letter-spacing: .06em; color: var(--muted); }

/* ---------- 01b: the metric lens ---------- */
.lens-layers { display: grid; gap: 8px; margin-top: 22px; }
.lens-layers label {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer; font-size: 13.5px;
}
.lens-layers label:hover { border-color: var(--ink); }
.lens-layers input { width: 16px; height: 16px; accent-color: var(--deep); flex: none; }
.lens-layers label.hidden-layer { border-style: dashed; border-color: var(--residue); color: var(--residue); }
.lens-layers label.hidden-layer:has(input:checked) { border-style: solid; border-color: var(--deep); color: var(--deep); }
.lens-layers label.hidden-layer:has(input:checked) .layer-hint { display: none; }
.lens-board { border: 1px solid var(--line-soft); background: var(--paper); }
.lens-head { display: grid; grid-template-columns: minmax(0, 1.25fr) 1fr 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font: 500 10px/1.4 var(--mono); letter-spacing: .1em; color: var(--muted); }
.lens-head b { color: var(--ink); font-weight: 500; }
.lens-metric { display: grid; grid-template-columns: minmax(0, 1.25fr) 1fr 1fr; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line-soft); }
.lens-metric[hidden] { display: none; }
.lens-metric:last-child { border-bottom: 0; }
.lens-metric > span { font-size: 13px; line-height: 1.55; color: var(--muted); }
.lens-cell b { display: block; color: var(--muted); font: 500 17px/1.3 var(--mono); letter-spacing: -.01em; }
.lens-cell.win b { color: var(--ink); }
.lens-cell i { display: block; height: 8px; margin-top: 8px; border-radius: 2px; background: rgba(27,27,24,.13); }
.lens-cell i em { display: block; height: 100%; width: var(--w, 0%); border-radius: 2px; background: var(--shallow); font-size: 0; transition: width .5s ease; }
.lens-metric.revenue { background: rgba(45,74,134,.06); }
.lens-metric.revenue .lens-cell i em { background: var(--deep); }
.lens-metric.revenue .lens-cell.win b { color: var(--deep); }

/* ---------- 02: attention residue ---------- */
.residue-section { background: var(--ink); color: var(--paper); }
.residue-section .kicker, .residue-section .section-marker { color: var(--lime); }
.residue-section .lead, .residue-section .chapter-heading p:not(.kicker) { color: rgba(243,240,231,.66); }
.residue-section h3 { color: var(--paper); }
.residue-section .lab-copy p:not(.kicker):not(.readout) { color: rgba(243,240,231,.66); }
.residue-section .readout { border-left-color: var(--lime); color: var(--paper); }
.residue-section .model-note { border-top-color: rgba(243,240,231,.2); color: rgba(243,240,231,.5); }
.residue-section .pill { border-color: rgba(243,240,231,.3); color: var(--paper); }
.residue-section .pill.active { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.slider-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; margin-top: 26px; }
.slider-row span { font: 500 11px/1.5 var(--mono); letter-spacing: .07em; }
.slider-row output { font: 500 15px/1 var(--mono); }
.slider-row input { grid-column: span 2; width: 100%; accent-color: var(--lime); }
.residue-demo { background: rgba(243,240,231,.05); border: 1px solid rgba(243,240,231,.18); padding: clamp(16px, 2.4vw, 26px); }
.residue-demo svg { width: 100%; height: auto; overflow: visible; }
.rd-label { fill: rgba(243,240,231,.55); font: 500 10.5px var(--mono); letter-spacing: .07em; }
.rd-value { fill: var(--paper); font: 500 26px var(--mono); letter-spacing: -.02em; }
.rd-value.warn { fill: var(--residue); }
.rd-frame { fill: none; stroke: rgba(243,240,231,.22); stroke-width: 1; }
.rd-tick { stroke: rgba(243,240,231,.22); stroke-width: 1; }
.rd-full { fill: var(--lime); }
.rd-res { fill: var(--residue); opacity: .42; }
.rd-switch { fill: var(--residue); }
.residue-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font: 500 10px/1.5 var(--mono); letter-spacing: .06em; color: rgba(243,240,231,.6); }
.residue-key span { display: inline-flex; align-items: center; gap: 7px; }
.residue-key i { display: block; width: 11px; height: 11px; border-radius: 2px; }
.rk-full { background: var(--lime); }
.rk-res { background: var(--residue); opacity: .42; }
.rk-switch { background: var(--residue); }
.residue-sums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(243,240,231,.18); }
.residue-sums div span { display: block; font: 500 9.5px/1.5 var(--mono); letter-spacing: .1em; color: rgba(243,240,231,.5); }
.residue-sums div b { display: block; margin-top: 6px; font: 500 21px/1.2 var(--mono); letter-spacing: -.02em; }
.residue-sums div b.warn { color: var(--residue); }
.formula {
  max-width: 1240px; margin: clamp(30px, 4vw, 46px) auto 0; padding: 22px clamp(18px, 3vw, 30px);
  border: 1px dashed rgba(243,240,231,.3); font: 500 12.5px/2 var(--mono); color: rgba(243,240,231,.72);
  overflow-x: auto;
}
.formula b { color: var(--lime); font-weight: 500; }

/* ---------- 03: philosophies ---------- */
.philo-lab { max-width: 1240px; margin: auto; border: 1px solid var(--line); background: var(--paper-bright); }
.philo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
.philo-tab {
  padding: 18px 14px; border: 0; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); background: transparent; cursor: pointer;
  font: 500 14px/1.4 var(--sans); text-align: center;
}
.philo-tab:last-child { border-right: 0; }
.philo-tab small { display: block; margin-top: 5px; font: 500 9.5px/1.4 var(--mono); letter-spacing: .1em; color: var(--muted); }
.philo-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.philo-tab[aria-selected="true"] small { color: var(--lime); }
.philo-panel { display: grid; grid-template-columns: .92fr 1.08fr; }
.philo-panel[hidden] { display: none; }
.philo-copy { padding: clamp(24px, 3.4vw, 40px); border-right: 1px solid var(--line); }
.philo-copy h4 { margin: 0 0 14px; font: 400 clamp(20px, 2.1vw, 28px)/1.3 var(--sans); letter-spacing: -.015em; }
.philo-copy p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.philo-who { margin: 20px 0 0; padding: 14px 16px; background: rgba(27,27,24,.05); font-size: 13.5px; color: var(--ink); }
.philo-who b { font-weight: 500; }
.philo-visual { padding: clamp(20px, 3vw, 32px); background: var(--paper); }
.philo-visual svg { width: 100%; height: auto; }
.pv-label { fill: var(--muted); font: 500 10px var(--mono); letter-spacing: .06em; }
.pv-day { fill: var(--muted); font: 500 10px var(--mono); letter-spacing: .04em; }
.pv-frame { fill: rgba(27,27,24,.05); stroke: var(--line-soft); stroke-width: 1; }
.pv-deep { fill: var(--deep); }
.pv-shallow { fill: var(--shallow); opacity: .55; }
.autonomy { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.autonomy span { display: block; font: 500 9.5px/1.6 var(--mono); letter-spacing: .1em; color: var(--muted); }
.autonomy-meter { display: flex; gap: 5px; margin-top: 9px; }
.autonomy-meter i { flex: 1; height: 9px; border-radius: 2px; background: rgba(27,27,24,.11); }
.autonomy-meter i.on { background: var(--ink); }
.autonomy b { display: block; margin-top: 10px; font-weight: 500; font-size: 13.5px; }

/* ---------- 03b: plan, not completion ---------- */
.plan-list { display: grid; gap: 8px; margin-top: 22px; }
.plan-item {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 3px;
}
.plan-item.done { border-color: var(--deep); background: rgba(45,74,134,.06); }
.plan-item > span { font-size: 13.5px; line-height: 1.5; }
.plan-item .pill { padding: 8px 13px; font-size: 12px; white-space: nowrap; }
.plan-bars { display: grid; gap: 26px; }
.plan-bar span { display: block; font: 500 10px/1.6 var(--mono); letter-spacing: .1em; color: var(--muted); }
.plan-bar strong { display: block; margin: 6px 0 10px; font: 400 clamp(20px, 2vw, 27px)/1.2 var(--sans); letter-spacing: -.02em; }
.plan-track { height: 30px; background: rgba(27,27,24,.07); border-radius: 3px; overflow: hidden; }
.plan-track i { display: block; height: 100%; width: 100%; border-radius: 3px; transition: width .55s cubic-bezier(.4,0,.2,1); }
.plan-track i.thoughts { background: var(--residue); }
.plan-track i.anxiety { background: var(--shallow); }
.plan-source { margin: 22px 0 0; padding: 16px 18px; background: rgba(27,27,24,.05); color: var(--muted); font-size: 13.5px; }
.plan-source b { color: var(--ink); font-weight: 500; }

/* ---------- 04: evidence beats ---------- */
.beat {
  max-width: 1240px; margin: clamp(48px, 6.5vw, 88px) auto 0;
  display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 4vw, 58px); align-items: center;
}
.beat.reverse .beat-copy { order: 2; }
.beat-copy p:not(.kicker) { color: var(--muted); }
.beat-copy h3 { margin-bottom: 16px; }
.beat-figure { margin: 0; padding: clamp(16px, 2.4vw, 24px); background: var(--paper-bright); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.beat-figure svg { width: 100%; height: auto; }
.beat-figure figcaption {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 13.5px; line-height: 1.72;
}
.beat-figure figcaption b { color: var(--ink); font-weight: 500; }
.fc-flag { display: block; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--residue); font-size: 12.5px; }
.bf-bar-a { fill: var(--shallow); }
.bf-bar-b { fill: rgba(27,27,24,.22); }
.bf-bar-c { fill: var(--deep); }
.bf-label { fill: var(--ink); font: 500 12px var(--mono); letter-spacing: .02em; }
.bf-sub { fill: var(--muted); font: 500 10.5px var(--mono); letter-spacing: .05em; }
.bf-axis { stroke: var(--line); stroke-width: 1; }
.bf-grid { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.bf-note { fill: var(--muted); font: 500 10.5px var(--mono); letter-spacing: .05em; }
.bf-inbar { fill: var(--paper-bright); font: 500 10.5px var(--mono); letter-spacing: .05em; }
.bf-call { fill: var(--residue); font: 500 11px var(--mono); letter-spacing: .05em; }
.bf-anno { opacity: 0; transition: opacity .4s ease; }
.bf-anno.on { opacity: 1; }
.bf-brace { fill: none; stroke: var(--residue); stroke-width: 1.6; }
.bf-brace-b { fill: none; stroke: var(--deep); stroke-width: 1.6; }
.bf-call-b { fill: var(--deep); font: 500 11px var(--mono); letter-spacing: .05em; }
.bf-curve { fill: none; stroke: var(--deep); stroke-width: 2.5; }
.bf-cap { fill: none; stroke: var(--residue); stroke-width: 2; stroke-dasharray: 6 5; }
.bf-area { fill: var(--deep); opacity: .12; }

/* ---------- 05: edges ---------- */
.edges-section { background: #101010; color: var(--paper); }
.edges-section .kicker, .edges-section .section-marker { color: var(--shallow); }
.edges-section .lead { color: rgba(243,240,231,.6); }
.limit-list { max-width: 1080px; margin: auto; }
.limit-list article { display: grid; grid-template-columns: 62px 1fr; gap: 22px; padding: 30px 0; border-top: 1px solid rgba(243,240,231,.16); }
.limit-list article > span { font: 500 12px/1.9 var(--mono); color: var(--shallow); }
.limit-list h3 { margin: 0 0 10px; font-size: 20px; color: var(--paper); }
.limit-list p { margin: 0 0 12px; color: rgba(243,240,231,.58); font-size: 15px; }
.limit-list p:last-child { margin-bottom: 0; }
.limit-list a { color: var(--shallow); }
.limit-list blockquote {
  margin: 16px 0 0; padding: 2px 0 2px 18px; border-left: 2px solid rgba(243,240,231,.3);
  color: rgba(243,240,231,.78); font-size: 15px;
}

/* ---------- takeaway + sources ---------- */
.takeaway { padding: clamp(76px, 11vw, 158px) clamp(18px, 8vw, 130px); background: var(--lime); }
.takeaway h2 { max-width: 1180px; margin: 0; font: 400 clamp(26px, 3.9vw, 55px)/1.24 var(--sans); letter-spacing: -.02em; }
.takeaway-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 50px 0 40px; }
.takeaway-flow span { padding: 13px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; }
.takeaway-flow i { font-style: normal; font-size: 20px; opacity: .5; }
.takeaway > p:last-child { max-width: 940px; margin: 0; font-size: clamp(15.5px, 1.4vw, 18px); }

.sources { padding: clamp(70px, 9vw, 124px) clamp(18px, 8vw, 130px); }
.sources-intro { max-width: 1240px; margin: 0 auto 46px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px, 5vw, 70px); align-items: end; }
.sources h2 { margin: 0; font: 400 clamp(30px, 3.9vw, 52px)/1.2 var(--sans); letter-spacing: -.02em; }
.sources-note { max-width: 560px; margin: 0; color: var(--muted); font-size: 14.5px; }
.paper-cards { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 760px); }
.paper-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); background: var(--paper-bright); border: 1px solid var(--line); box-shadow: var(--shadow); }
.paper-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; font: 500 9.5px/1 var(--mono); letter-spacing: .12em; }
.paper-badge { padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.paper-pages { color: var(--muted); }
.paper-card h3 { margin: 0 0 14px; font: 400 clamp(20px, 1.9vw, 26px)/1.36 var(--sans); letter-spacing: -.015em; }
.paper-authors { margin: 0 0 6px; font-size: 14px; }
.paper-meta { margin: 0 0 26px; color: var(--muted); font: 500 11.5px/1.8 var(--mono); }
.paper-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.paper-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font: 500 12.5px/1 var(--sans); }
.paper-btn span { opacity: .55; }
.paper-btn:hover { border-color: var(--ink); background: rgba(27,27,24,.05); }
.paper-btn.primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.paper-btn.primary span { color: var(--lime); opacity: 1; }
.paper-btn.primary:hover { background: var(--deep-dark); border-color: var(--deep-dark); }
.source-links { max-width: 1240px; margin: 46px auto 0; border-top: 1px solid var(--line); }
.source-links a { display: grid; grid-template-columns: 46px 1.1fr .9fr; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.source-links a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.source-links span, .source-links small { color: var(--muted); font: 500 11px/1.7 var(--mono); }
.source-links strong { font-weight: 500; font-size: 15.5px; }

.colophon { padding: 0 clamp(18px, 8vw, 130px) clamp(50px, 7vw, 90px); }
.colophon > div { max-width: 940px; padding-top: 34px; border-top: 1px solid var(--line); }
.colophon p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.colophon p:last-child { margin-bottom: 0; }

footer { padding: 26px clamp(18px, 5vw, 70px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); font: 500 9.5px/1.8 var(--mono); letter-spacing: .1em; }
footer p { margin: 0; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .topbar nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lab { grid-template-columns: 1fr; }
  .beat { grid-template-columns: 1fr; }
  .beat.reverse .beat-copy { order: 0; }
  .thesis-split { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid article { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .detail-grid article:last-child { border-bottom: 0; }
  .philo-panel { grid-template-columns: 1fr; }
  .philo-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-marker { position: static; flex-direction: row; align-items: center; margin-bottom: 36px; }
  .section-marker p { writing-mode: initial; }
  .sources-intro { grid-template-columns: 1fr; align-items: start; }
  .paper-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 74px; }
  body { line-height: 1.82; }
  .topbar { height: 64px; padding: 0 14px; }
  .brand > span:last-child { display: none; }
  .paper-link { padding: 8px 12px; font-size: 11px; }
  .hero { padding-inline: 16px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div + div { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .hero-facts div:last-child { border-bottom: 0; }
  .chapter { padding-inline: 16px; }
  .philo-tabs { grid-template-columns: 1fr 1fr; }
  .philo-tab:nth-child(2) { border-right: 0; }
  .residue-sums { grid-template-columns: 1fr; }
  .sorter-rows li { grid-template-columns: minmax(0, 1fr) 54px; }
  .sorter-rows .st-track { grid-column: 1 / -1; }
  .lens-head, .lens-metric { grid-template-columns: 1fr 1fr; }
  .lens-head > span:first-child, .lens-metric > span:first-child { grid-column: 1 / -1; }
  .source-links a { grid-template-columns: 34px 1fr; }
  .source-links small { grid-column: 2; }
  .takeaway, .sources, .colophon { padding-inline: 16px; }
}

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