/* ==========================================================================
   The Holographic Developmental Model — site stylesheet
   Shared by every page. Sections:
   1 Tokens · 2 Base · 3 Header & navigation · 4 Hero · 5 Homepage sections
   6 Chapter page · 7 Collaborate band & footer · 8 Responsive
   ========================================================================== */

/* 1 — Tokens ---------------------------------------------------------------- */
:root {
  --ink: #0A0D14;
  --ink-2: #121724;
  --deep-blue: #22316B;
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --text: #121724;
  --text-2: #2A3142;
  --muted: #4E586E;
  --line: #D5D9E2;
  --line-soft: #E6E9EF;
  --blue: #2747C7;
  --blue-dark: #16308F;
  --sky: #A9C1FF;
  --amber: #F0C98A;
  --on-dark: #EEF1F7;
  --on-dark-2: #C9D0E0;
  --on-dark-muted: #A9B2C7;
  --rule-dark: rgba(255, 255, 255, 0.14);
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1344px;
}

/* 2 — Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); }
.on-dark a { color: var(--sky); }
.on-dark a:hover { color: var(--white); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.on-dark .label { color: var(--amber); }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--white); color: var(--text); font-family: var(--sans); font-size: 15px;
}
.skip:focus { left: 12px; top: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 2px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; transition: background-color 0.15s ease;
}
.btn--light, .on-dark .btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover, .on-dark .btn--light:hover { background: var(--white); color: var(--ink); }
.btn--ink { background: var(--ink-2); color: var(--paper); }
.btn--ink:hover { background: var(--blue); color: var(--white); }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
}

/* 3 — Header & navigation --------------------------------------------------- */
.site-header { position: relative; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--rule-dark); }
.site-header .bar { display: flex; align-items: stretch; justify-content: space-between; gap: 32px; min-height: 76px; }
.wordmark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.wordmark, .on-dark .wordmark, .wordmark:hover { color: var(--on-dark); }
.wordmark svg { flex: none; }
.wordmark-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.wordmark-name { font-size: 19px; font-weight: 500; letter-spacing: 0.01em; }
.wordmark-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }

.nav { display: flex; align-items: stretch; gap: 26px; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-btn {
  position: relative; display: flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  color: #DDE2EE; font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap;
}
.nav-btn::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amber); opacity: 0; }
.nav-item:hover .nav-btn, .nav-item:focus-within .nav-btn, .nav-item.is-open .nav-btn, .nav-btn[aria-current="true"] { color: var(--white); }
.nav-item:hover .nav-btn::after, .nav-item:focus-within .nav-btn::after, .nav-item.is-open .nav-btn::after, .nav-btn[aria-current="true"]::after { opacity: 1; }

.panel {
  display: none; position: absolute; top: 100%; left: -24px; width: 320px;
  background: var(--white); border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 24px 48px -16px rgba(10, 13, 20, 0.45); padding: 22px 24px 20px;
}
.panel--wide { width: 600px; }
.panel--right { left: auto; right: -24px; }
.nav-item:hover .panel, .nav-item:focus-within .panel, .nav-item.is-open .panel { display: block; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--text); }
.panel-title { font-size: 21px; font-style: italic; color: var(--text); }
.panel-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.panel-items { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; }
.panel--wide .panel-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel-link, .on-dark .panel-link {
  display: flex; align-items: baseline; gap: 14px; min-height: 44px; padding: 10px 0;
  border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none; font-size: 17px; line-height: 1.3;
}
.panel-link:hover, .on-dark .panel-link:hover, .panel-link[aria-current="page"] { color: var(--blue); }
.panel-num { flex: 0 0 22px; font-family: var(--mono); font-size: 11px; font-style: normal; color: var(--muted); }
.panel-divider {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 18px 0 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.panel-divider::after { content: ''; flex: 1 1 auto; height: 1px; background-image: repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 7px); }
.panel-soon {
  display: flex; align-items: baseline; gap: 14px; min-height: 44px; padding: 10px 0;
  border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 17px; line-height: 1.3; font-style: italic;
}

.burger {
  display: none; align-self: center; align-items: center; justify-content: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 0 14px; background: none; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 2px;
  color: var(--on-dark); font-family: var(--sans); font-size: 14px; font-weight: 500;
}
.mobile-nav { display: none; border-top: 1px solid var(--rule-dark); padding: 8px var(--pad) 24px; }
.mobile-group { border-bottom: 1px solid var(--rule-dark); }
.mobile-btn {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0; background: none; border: 0; cursor: pointer; text-align: left;
  color: var(--on-dark); font-family: var(--serif); font-size: 22px;
}
.mobile-btn .panel-note { color: var(--on-dark-muted); }
.mobile-items { display: none; padding: 0 0 14px; }
.mobile-group.is-open .mobile-items { display: block; }
.mobile-items .panel-link, .on-dark .mobile-items .panel-link { color: #DDE2EE; border-bottom: 0; font-size: 18px; }
.mobile-items .panel-link:hover { color: var(--white); }
.mobile-items .panel-num { color: var(--on-dark-muted); }
.mobile-items .panel-divider { color: var(--amber); padding: 14px 0 4px; }
.mobile-items .panel-divider::after { display: none; }
.mobile-items .panel-soon { color: var(--on-dark-muted); border-bottom: 0; font-size: 18px; }

/* 4 — Hero (homepage and chapter header share the interference field) ------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); min-height: 780px; display: flex; align-items: center; }
.hero-rings {
  position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle at 78% 34%, transparent 0, transparent 13px, rgba(169, 193, 255, 0.26) 13.6px, rgba(169, 193, 255, 0.26) 14.4px, transparent 15px),
    repeating-radial-gradient(circle at 78% 66%, transparent 0, transparent 13px, rgba(169, 193, 255, 0.26) 13.6px, rgba(169, 193, 255, 0.26) 14.4px, transparent 15px);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.22) 38%, #000 78%, rgba(0, 0, 0, 0.5) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.22) 38%, #000 78%, rgba(0, 0, 0, 0.5) 100%);
}
.hero-boundary { position: absolute; top: 0; bottom: 0; left: 78%; width: 1px; background: rgba(255, 255, 255, 0.28); }
.hero-source {
  position: absolute; left: 78%; width: 9px; height: 9px; margin: -4.5px 0 0 -4px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 5px rgba(240, 201, 138, 0.18), 0 0 28px 6px rgba(240, 201, 138, 0.35);
}
.hero-source--a { top: 34%; }
.hero-source--b { top: 66%; }
.hero-anno { position: absolute; font-family: var(--mono); font-size: 10.5px; color: var(--on-dark-muted); }
.hero-anno--boundary { left: 78%; top: 28px; padding-left: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-anno--caption { right: var(--pad); bottom: 28px; max-width: 250px; text-align: right; line-height: 1.6; letter-spacing: 0.08em; }
.hero-inner { position: relative; width: 100%; padding-top: 96px; padding-bottom: 112px; }
.hero-copy { max-width: 800px; display: flex; flex-direction: column; gap: 32px; }
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
}
.eyebrow .dash { width: 28px; height: 1px; background: var(--amber); }
.eyebrow .quiet { color: var(--on-dark-muted); }
.hero h1 { font-size: clamp(44px, 6.5vw, 96px); line-height: 1; font-weight: 300; letter-spacing: -0.022em; color: var(--white); text-wrap: balance; }
.hero h1 em { font-weight: 300; }
.hero-sub { max-width: 620px; font-size: clamp(21px, 2vw, 27px); line-height: 1.4; font-weight: 300; color: #DDE2EE; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 12px; }

.fringe-band {
  height: 30px; background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, var(--ink) 0, var(--ink) 3px, transparent 3px, transparent 13px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 20%, #000 50%, rgba(0, 0, 0, 0.15) 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 20%, #000 50%, rgba(0, 0, 0, 0.15) 80%, transparent 100%);
}
.paper { background: var(--paper); }

/* 5 — Homepage sections ----------------------------------------------------- */
.split { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.split-side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 14px; }
.split-main { flex: 4 1 560px; min-width: 0; display: flex; flex-direction: column; }
.side-title { font-size: 34px; line-height: 1.1; font-weight: 400; font-style: italic; }
.section-title { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; font-weight: 300; letter-spacing: -0.015em; text-wrap: balance; }

.premise { padding-top: 96px; padding-bottom: 120px; }
.premise .split-main { gap: 28px; }
.premise-lead { max-width: 880px; font-size: clamp(26px, 3vw, 40px); line-height: 1.24; font-weight: 300; letter-spacing: -0.012em; text-wrap: pretty; }
.premise-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px 48px; max-width: 960px; padding-top: 8px; color: var(--text-2); }
.premise-cols p { text-wrap: pretty; }
.fig { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--text); max-width: 960px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption, .caption { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; letter-spacing: 0.04em; color: var(--muted); }

.pillars { padding-bottom: 128px; }
.pillars-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 48px; padding-bottom: 40px; }
.pillars-head > div { display: flex; flex-direction: column; gap: 14px; }
.pillars-aside { max-width: 360px; font-size: 17px; font-style: italic; color: var(--muted); }
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.pillar { display: flex; flex-direction: column; gap: 22px; min-height: 440px; padding: 40px 36px 36px; }
.pillar-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.phase { display: flex; gap: 6px; }
.phase i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid currentColor; }
.phase i.on { border-color: transparent; background: var(--amber); }
.pillar h3 { font-size: 34px; line-height: 1.1; font-weight: 300; }
.pillar p { flex: 1 1 auto; font-size: 18px; text-wrap: pretty; }
.pillar--past { background: var(--ink); color: var(--on-dark-2); }
.pillar--past .pillar-top { color: var(--on-dark-muted); }
.pillar--present { background: var(--deep-blue); color: #DCE3F7; }
.pillar--present .pillar-top { color: #C9D6FF; }
.pillar--present a { color: #DCE3F7; }
.pillar--past h3, .pillar--present h3 { color: var(--white); }
.pillar--future { background: var(--white); border: 1px solid var(--line); color: var(--text-2); }
.pillar--future .pillar-top { color: var(--muted); }
.pillar--future h3 { color: var(--text); }
.pillar--future .phase i.on { background: var(--blue); }

.principles { padding-bottom: 128px; }
.principles-intro { margin-bottom: 40px; max-width: 760px; font-size: 23px; line-height: 1.45; font-weight: 300; text-wrap: pretty; }
.principle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.principle:first-of-type { border-top-color: var(--text); }
.principle:last-of-type { border-bottom: 1px solid var(--line); }
.principle-num { flex: 0 0 48px; font-family: var(--mono); font-size: 12px; color: var(--blue); }
.principle h3 { flex: 1 1 260px; font-size: 28px; line-height: 1.15; font-weight: 400; }
.principle p { flex: 2 1 380px; color: var(--text-2); text-wrap: pretty; }

.archive { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.archive-rings {
  position: absolute; inset: 0;
  background-image:
    repeating-radial-gradient(circle at 8% 110%, transparent 0, transparent 17px, rgba(169, 193, 255, 0.16) 17.6px, rgba(169, 193, 255, 0.16) 18.4px, transparent 19px),
    repeating-radial-gradient(circle at 22% 110%, transparent 0, transparent 17px, rgba(169, 193, 255, 0.16) 17.6px, rgba(169, 193, 255, 0.16) 18.4px, transparent 19px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(0deg, #000 0%, transparent 55%);
}
.archive-inner { position: relative; display: flex; flex-wrap: wrap; gap: 56px 80px; padding-top: 120px; padding-bottom: 128px; }
.archive-intro { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.archive-intro h2 { color: var(--white); }
.archive-intro > p { max-width: 520px; color: var(--on-dark-2); text-wrap: pretty; }
.legend { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--rule-dark); font-family: var(--sans); font-size: 14px; color: var(--on-dark-2); }
.legend-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.legend span { display: flex; align-items: center; gap: 12px; }
.mark { flex: none; display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.mark--established { background: currentColor; }
.mark--proposal { border: 2px solid var(--blue); }
.mark--question { border: 1.5px dashed #9A6A1C; }
.on-dark .mark--established { background: var(--on-dark); }
.on-dark .mark--proposal { border-color: var(--sky); }
.on-dark .mark--question { border-color: var(--amber); }
.archive-list { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; }
.archive-row, .on-dark .archive-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; padding: 34px 0;
  border-top: 1px solid var(--rule-dark); color: var(--on-dark); text-decoration: none;
}
.archive-row:first-child { border-top-color: rgba(255, 255, 255, 0.4); }
.archive-row:last-child { border-bottom: 1px solid var(--rule-dark); }
.archive-letter { flex: 0 0 32px; font-family: var(--mono); font-size: 12px; color: var(--on-dark-muted); }
.archive-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.archive-name { font-size: 32px; line-height: 1.15; font-weight: 300; transition: color 0.15s ease; }
.archive-row:hover .archive-name { color: var(--sky); }
.archive-desc { font-size: 17.5px; color: var(--on-dark-2); }

/* 6 — Chapter page ---------------------------------------------------------- */
.hero--chapter { min-height: 460px; align-items: flex-end; }
.hero--chapter .hero-inner { padding-top: 72px; padding-bottom: 72px; }
.hero--chapter .hero-copy { gap: 24px; max-width: 860px; }
.hero--chapter h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumbs [aria-current] { color: var(--amber); }
.chapter-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 20px; border-top: 1px solid var(--rule-dark); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.chapter-meta span { display: inline-flex; align-items: center; gap: 10px; }

.chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px 56px; padding-top: 72px; padding-bottom: 112px; }
.toc { font-family: var(--sans); font-size: 14.5px; }
.toc-title { display: block; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--text); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; }
.toc a { display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--text-2); text-decoration: none; line-height: 1.35; }
.toc a span { flex: 0 0 26px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.toc a:hover, .toc a.is-active { color: var(--blue); }
.toc a.is-active span { color: var(--blue); }
.toc-key { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; font-size: 13.5px; color: var(--text-2); }
.toc-key span { display: flex; align-items: center; gap: 10px; }

.prose { min-width: 0; max-width: 680px; font-size: 20px; line-height: 1.65; color: var(--text-2); }
.prose > * + * { margin-top: 1.25em; }
.prose p { text-wrap: pretty; }
.prose .lead { font-size: 27px; line-height: 1.38; font-weight: 300; letter-spacing: -0.008em; color: var(--text); }
.prose h2 { display: flex; align-items: baseline; gap: 18px; margin-top: 2.6em; padding-top: 28px; border-top: 1px solid var(--text); font-size: 34px; line-height: 1.15; font-weight: 400; color: var(--text); scroll-margin-top: 24px; }
.prose h2 .num { flex: none; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--blue); }
.prose h3 { margin-top: 2em; font-size: 24px; line-height: 1.25; font-weight: 500; font-style: italic; color: var(--text); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { font-family: var(--mono); font-size: 0.7em; color: var(--muted); }
.prose sup { line-height: 0; }
.prose sup a { font-family: var(--mono); font-size: 0.62em; text-decoration: none; padding: 0 2px; }

.passage { margin-top: 1.8em; }
.passage-tag { display: flex; align-items: center; gap: 10px; margin-bottom: 0.6em; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.passage--question { margin-top: 2.2em; padding: 26px 0 28px; border-top: 1px dashed var(--muted); border-bottom: 1px dashed var(--muted); }
.passage--question p { font-size: 24px; line-height: 1.4; font-style: italic; color: var(--text); }
.passage--question .text-link { margin-top: 6px; font-style: normal; }

.axiom { margin-top: 2em; padding: 26px 28px 28px; background: var(--white); border: 1px solid var(--text); }
.axiom-tag { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.axiom p { font-size: 22px; line-height: 1.45; color: var(--text); }

.equation { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 2em; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow-x: auto; }
.equation-body { flex: 1 1 auto; text-align: center; font-size: 26px; line-height: 1.45; font-style: italic; color: var(--text); white-space: normal; text-wrap: balance; }
.equation-num { flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }

.pullquote { margin-top: 2.4em; margin-bottom: 2.4em; font-size: 34px; line-height: 1.22; font-weight: 300; letter-spacing: -0.012em; color: var(--text); text-wrap: balance; }
.pullquote::before { content: ''; display: block; width: 104px; height: 14px; margin-bottom: 22px; background-image: repeating-linear-gradient(90deg, var(--blue) 0, var(--blue) 2px, transparent 2px, transparent 8px); -webkit-mask-image: linear-gradient(90deg, #000, transparent); mask-image: linear-gradient(90deg, #000, transparent); }

.figure { margin-top: 2.4em; }
.figure-frame {
  aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
  background-color: var(--ink);
  background-image:
    repeating-radial-gradient(circle at 30% 50%, transparent 0, transparent 11px, rgba(169, 193, 255, 0.22) 11.6px, rgba(169, 193, 255, 0.22) 12.4px, transparent 13px),
    repeating-radial-gradient(circle at 70% 50%, transparent 0, transparent 11px, rgba(169, 193, 255, 0.22) 11.6px, rgba(169, 193, 255, 0.22) 12.4px, transparent 13px);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark);
}
.figure-frame span { padding: 10px 16px; background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.3); }

.sidenote { margin-top: 1.4em; padding: 16px 0 0; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--muted); }
.sidenote b { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }

.notes { margin-top: 3.4em; padding-top: 28px; border-top: 1px solid var(--text); }
.notes h2 { all: unset; display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.notes ol { padding-left: 1.6em; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--text-2); }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); border-top: 1px solid var(--text); }
.pager a { display: flex; flex-direction: column; gap: 10px; padding: 36px 0 44px; color: var(--text); text-decoration: none; }
.pager a + a { text-align: right; align-items: flex-end; }
.pager .label { color: var(--muted); }
.pager strong { font-size: 30px; line-height: 1.15; font-weight: 300; transition: color 0.15s ease; }
.pager a:hover strong { color: var(--blue); }

/* 7 — Collaborate band & footer --------------------------------------------- */
.collab { border-top: 1px solid var(--line); }
.collab-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 64px; padding-top: 112px; padding-bottom: 112px; }
.collab-copy { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.collab-copy p { max-width: 780px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.18; font-weight: 300; letter-spacing: -0.012em; text-wrap: balance; }
.collab-side { flex: 1 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.collab-side .caption { margin-top: 0; line-height: 1.7; }

.site-footer { background: var(--ink); color: var(--on-dark-2); border-top: 1px solid var(--rule-dark); }
.footer-inner { display: flex; flex-direction: column; gap: 40px; padding-top: 64px; padding-bottom: 56px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px 48px; }
.footer-name { font-size: 24px; font-style: italic; font-weight: 300; color: var(--on-dark); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-family: var(--sans); font-size: 14px; }
.footer-nav a, .on-dark .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-2); text-decoration: none; }
.footer-nav a:hover, .on-dark .footer-nav a:hover { color: var(--white); }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 48px; padding-top: 24px; border-top: 1px solid var(--rule-dark); font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.06em; color: var(--on-dark-muted); }

/* 8 — Responsive ------------------------------------------------------------ */
@media (min-width: 1000px) {
  .chapter { grid-template-columns: 200px minmax(0, 680px); justify-content: start; }
  .toc { position: sticky; top: 32px; align-self: start; }
}
@media (min-width: 1400px) {
  /* Margin notes move out of the text column into the right margin. */
  .sidenote { float: right; clear: right; width: 220px; margin: 0.3em -256px 1em 0; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav.is-open { display: block; }
}
@media (max-width: 720px) {
  body { font-size: 18px; }
  .wordmark-sub, .hero-anno, .hero-source, .hero-boundary { display: none; }
  .hero-rings { opacity: 0.6; }
  .hero { min-height: 640px; }
  .hero-inner { padding-top: 72px; padding-bottom: 88px; }
  .hero--chapter { min-height: 0; }
  .hero--chapter .hero-inner { padding-top: 48px; padding-bottom: 56px; }
  .premise { padding-top: 64px; padding-bottom: 88px; }
  .pillars, .principles { padding-bottom: 88px; }
  .pillar { min-height: 0; padding: 32px 24px; }
  .archive-inner, .collab-inner { padding-top: 80px; padding-bottom: 88px; }
  .archive-name { font-size: 27px; }
  .chapter { padding-top: 48px; padding-bottom: 80px; }
  .prose { font-size: 18.5px; }
  .prose .lead { font-size: 23px; }
  .prose h2 { font-size: 28px; }
  .pullquote { font-size: 27px; }
  .equation { flex-direction: column; align-items: stretch; gap: 10px; padding: 22px 0; }
  .equation-body { white-space: normal; font-size: 21px; line-height: 1.5; overflow-wrap: anywhere; }
  .equation-num { align-self: flex-end; }
  .pager a + a { text-align: left; align-items: flex-start; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .toc, .collab, .site-footer, .hero-rings, .hero-boundary, .hero-source, .hero-anno, .fringe-band { display: none; }
  body, .hero { background: #fff; color: #000; }
  .hero { min-height: 0; }
  .hero h1 { color: #000; }
}