:root {
  --ink: #102b27;
  --green: #123b35;
  --green-2: #1a4b43;
  --paper: #f2efe6;
  --paper-2: #e5dfd0;
  --acid: #d9ff52;
  --mint: #85e6c5;
  --blue: #70c9e8;
  --orange: #ff8c5a;
  --pink: #ff9fca;
  --gold: #ffcc5b;
  --line: rgba(16, 43, 39, 0.24);
  --light-line: rgba(242, 239, 230, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; margin: 0; overflow-x: hidden; }
a { color: inherit; }
button, input, output { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
main { overflow: hidden; }

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 68px;
  padding: 0 2rem;
}
.brand {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: var(--paper);
  display: flex;
  font: italic 1rem Georgia, serif;
  height: 34px;
  justify-content: center;
  text-decoration: none;
  width: 34px;
}
.back, .site-header > span, .eyebrow, .scroll-cue, .chapter-nav,
.section-head > span, .section-head > p, .amount-switch, .lens-tabs span,
.ledger-detail > span, .journey-node > span, .journey-arrow span, .journey-foot span,
.loop-grid article > span, .rd-ledgers article > span, .pipeline-head > div > p,
.rd-stage-grid, .attrition-key, .attrition-count span,
.cost-time-grid article > span, .section-subhead > span,
.takeaway-grid article > span, .source-grid article > span, .next > span, footer {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}
.back { font-size: 0.68rem; justify-self: center; text-decoration: none; }
.site-header > span { font-size: 0.62rem; justify-self: end; }

.hero {
  min-height: 920px;
  padding: clamp(5rem, 8vw, 8rem) 2rem 3rem;
  position: relative;
}
.hero::before {
  background: var(--mint);
  border-radius: 50%;
  content: "";
  height: 42rem;
  opacity: 0.72;
  position: absolute;
  right: -16rem;
  top: -10rem;
  width: 42rem;
  z-index: -2;
}
.hero::after {
  border: 1px solid var(--ink);
  border-radius: 50%;
  content: "";
  height: 23rem;
  position: absolute;
  right: 4rem;
  top: 2.5rem;
  width: 23rem;
  z-index: -1;
}
.eyebrow { font-size: 0.62rem; margin: 0 0 2rem; }
.hero h1 {
  font-size: clamp(4.5rem, 10.2vw, 9.8rem);
  font-weight: 560;
  letter-spacing: -0.085em;
  line-height: 0.82;
  margin: 0;
  max-width: 1300px;
}
.hero h1 em, .section-head h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.lede {
  font: clamp(1.25rem, 2vw, 1.85rem)/1.28 Georgia, serif;
  margin: 3.5rem 0 0;
  max-width: 760px;
}
.hero-total {
  border: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin: 5rem 0 0 34%;
  max-width: 850px;
}
.hero-total > div { min-height: 160px; padding: 1rem; }
.hero-total > div + div { border-left: 1px solid var(--ink); }
.hero-total span { display: block; font: 0.55rem/1.5 monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.total-main { background: var(--acid); display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-1deg); }
.total-main strong { font: clamp(4rem, 7vw, 6rem)/0.8 Georgia, serif; letter-spacing: -0.07em; }
.total-stat { display: flex; flex-direction: column; justify-content: flex-end; }
.total-stat strong { font: clamp(1.7rem, 3vw, 2.8rem)/1 Georgia, serif; margin-bottom: 0.65rem; }
.hero-loop { align-items: center; display: grid; gap: 1rem; grid-template-columns: auto 1fr auto 1fr auto; margin-top: 4.5rem; }
.hero-loop span { font: 0.55rem/1.3 monospace; letter-spacing: 0.06em; max-width: 160px; text-transform: uppercase; }
.hero-loop i { border-top: 1px dashed var(--ink); position: relative; }
.hero-loop i::after { background: var(--ink); border-radius: 50%; content: ""; height: 8px; position: absolute; right: 0; top: -4px; width: 8px; }
.scroll-cue { align-items: center; border-top: 1px solid var(--ink); display: flex; font-size: 0.57rem; justify-content: space-between; margin-top: 3rem; padding-top: 1rem; text-decoration: none; }
.scroll-cue span { font: 1.4rem Georgia, serif; }

.chapter-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  font-size: 0.57rem;
  grid-template-columns: repeat(5, 1fr);
  position: sticky;
  top: 0;
  z-index: 20;
}
.chapter-nav a { border-right: 1px solid var(--line); padding: 1.1rem 1rem; text-align: center; text-decoration: none; }
.chapter-nav a:last-child { border-right: 0; }
.chapter-nav a:hover { background: var(--acid); }

section:not(.hero) { padding: clamp(5rem, 8vw, 8rem) 2rem; }
.section-dark { background: var(--green); color: var(--paper); }
.section-acid { background: var(--acid); }
.section-head { display: grid; gap: 1.5rem; grid-template-columns: 4rem 1fr 2.3fr; margin-bottom: clamp(4rem, 7vw, 7rem); }
.section-head > span, .section-head > p { font-size: 0.58rem; margin: 0; padding-top: 0.8rem; }
.section-head h2 { font-size: clamp(3.2rem, 6.8vw, 7rem); font-weight: 560; letter-spacing: -0.075em; line-height: 0.88; margin: 0; }
.section-head.light { border-color: var(--light-line); }

.ledger-intro { align-items: end; display: grid; gap: 3rem; grid-template-columns: 1.4fr 1fr; margin: 0 0 3rem 29%; }
.ledger-intro > p { font: 1.2rem/1.48 Georgia, serif; margin: 0; }
.amount-switch { display: grid; grid-template-columns: 1fr 1fr; }
.amount-switch button { background: transparent; border: 1px solid var(--paper); cursor: pointer; font-size: 0.53rem; min-height: 52px; padding: 0.7rem; }
.amount-switch button + button { border-left: 0; }
.amount-switch button.active { background: var(--acid); color: var(--ink); }
.ledger-lab { border: 1px solid var(--paper); }
.lens-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
.lens-tabs button { background: transparent; border: 0; border-bottom: 1px solid var(--paper); border-right: 1px solid var(--paper); color: var(--paper); cursor: pointer; display: flex; flex-direction: column; min-height: 105px; padding: 1rem; text-align: left; }
.lens-tabs button:last-child { border-right: 0; }
.lens-tabs span { font-size: 0.5rem; opacity: 0.6; }
.lens-tabs b { font: 1.8rem Georgia, serif; margin-top: 0.55rem; }
.lens-tabs button.active { background: var(--paper); color: var(--ink); }
.ledger-stage { display: grid; grid-template-columns: 1.05fr 2.2fr 0.9fr; min-height: 660px; }
.ledger-question { border-right: 1px solid var(--paper); padding: 2rem; }
.ledger-question .eyebrow { opacity: 0.58; }
.ledger-question h3 { font: clamp(2.2rem, 4vw, 4.2rem)/0.95 Georgia, serif; letter-spacing: -0.045em; margin: 0; }
.ledger-question > p:last-child { font-size: 0.8rem; line-height: 1.55; margin: 2rem 0 0; opacity: 0.72; }
.ledger-rows { align-content: center; display: flex; flex-direction: column; gap: 0.75rem; padding: 2rem; }
.ledger-row { background: transparent; border: 0; color: var(--paper); cursor: pointer; display: grid; gap: 0.8rem; grid-template-columns: minmax(130px, 1fr) 4fr auto; min-height: 42px; padding: 0; text-align: left; }
.ledger-row > span { font-size: 0.7rem; line-height: 1.2; }
.ledger-row > i { align-self: start; background: var(--mint); display: block; height: 24px; min-width: 3px; opacity: 0.72; position: relative; width: var(--share); }
.ledger-row > i::after { border-right: 1px solid rgba(242, 239, 230, 0.4); bottom: -6px; content: ""; position: absolute; right: 0; top: -6px; }
.ledger-row > b { font: 1rem Georgia, serif; min-width: 74px; text-align: right; }
.ledger-row.active > i { background: var(--acid); opacity: 1; }
.ledger-row.active > span { color: var(--acid); }
.ledger-detail { background: var(--paper); color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem; }
.ledger-detail > span { font-size: 0.5rem; }
.ledger-detail strong { font: 2rem/1 Georgia, serif; letter-spacing: -0.04em; margin-top: 0.75rem; }
.ledger-detail p { font-size: 0.75rem; line-height: 1.5; margin: 1.2rem 0 0; }
.accounting-warning, .overlap-note, .research-warning, .method-note { align-items: baseline; border-top: 1px solid currentColor; display: grid; gap: 2rem; grid-template-columns: 1fr 3fr; margin-top: 2.5rem; padding-top: 1.5rem; }
.accounting-warning b, .overlap-note b, .research-warning b, .method-note b { font: 0.62rem/1.4 monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.accounting-warning p, .overlap-note p, .research-warning p, .method-note p { font: 1.05rem/1.45 Georgia, serif; margin: 0; }

.sankey-intro { align-items: end; display: grid; gap: 3rem; grid-template-columns: 1.5fr 1fr; margin: -2rem 0 3rem 29%; }
.sankey-intro > p { font: 1.25rem/1.48 Georgia, serif; margin: 0; }
.sankey-intro > div { border-top: 1px solid var(--paper); display: flex; flex-direction: column; padding-top: 1rem; }
.sankey-intro > div span, .sankey-column-title span, .payment-rails span, .route-ledger > article > span {
  font: .51rem "SFMono-Regular", Consolas, monospace;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.sankey-intro > div b { font: 1.1rem Georgia, serif; margin-top: .55rem; }
.health-sankey {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(150px, .58fr) minmax(240px, 1.15fr);
  column-gap: clamp(5rem, 11vw, 11rem);
  min-height: 790px;
  margin: 0;
  position: relative;
}
#sankeyCanvas { inset: 0; pointer-events: none; position: absolute; z-index: 0; }
.sankey-column { display: flex; flex-direction: column; gap: .55rem; min-width: 0; position: relative; z-index: 2; }
.sankey-column-title { border-bottom: 1px solid var(--paper); display: flex; flex: 0 0 50px; flex-direction: column; justify-content: flex-start; }
.sankey-column-title span { opacity: .56; }
.sankey-column-title b { font: 1.05rem Georgia, serif; margin-top: .28rem; }
.sankey-node {
  background: #173f39;
  border-left: 9px solid var(--node-color);
  display: flex;
  flex: var(--share) 1 0;
  flex-direction: column;
  justify-content: center;
  min-height: 47px;
  padding: .65rem .75rem;
}
.sankey-node > div { align-items: baseline; display: flex; gap: .75rem; justify-content: space-between; }
.sankey-node > div b { font: 1rem/1.05 Georgia, serif; }
.sankey-node > div span { font: .75rem Georgia, serif; }
.sankey-node small { font: .48rem/1.35 monospace; margin-top: .35rem; opacity: .66; }
.sankey-pool {
  align-items: center;
  align-self: stretch;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 50px;
  padding: 1rem;
  position: relative;
  text-align: center;
  z-index: 2;
}
.sankey-pool span { font: .53rem/1.45 monospace; letter-spacing: .08em; }
.sankey-pool strong { font: clamp(3rem, 5.2vw, 5.8rem)/.8 Georgia, serif; letter-spacing: -.07em; margin: 1rem 0; }
.sankey-pool small { font: .5rem/1.45 monospace; }
.health-sankey figcaption { bottom: -3rem; font: .49rem/1.5 monospace; grid-column: 1 / -1; left: 29%; opacity: .58; position: absolute; }
.payment-rails { border: 1px solid var(--paper); display: grid; gap: 3rem; grid-template-columns: 1fr 2fr; margin-top: 7rem; padding: 1.5rem; }
.rails-copy span { opacity: .58; }
.rails-copy h3 { font: 2.25rem/1 Georgia, serif; letter-spacing: -.04em; margin: 1rem 0 0; }
.rails-copy p { font-size: .7rem; line-height: 1.45; margin: 1.2rem 0 0; opacity: .68; }
.rails-chart { align-self: center; }
.rails-bar { display: flex; height: 62px; }
.rails-bar i { background: var(--rail-color); display: block; flex: var(--rail) 1 0; }
.rails-legend { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1rem; }
.rails-legend span { align-items: center; display: flex; font-size: .45rem; gap: .35rem; }
.rails-legend span > i { background: var(--rail-color); display: inline-block; height: 9px; width: 9px; }
.rails-legend b { font-family: Georgia, serif; font-size: .7rem; }

.route-ledger { border: 1px solid var(--ink); }
.route-ledger > article { display: grid; gap: 1.5rem; grid-template-columns: .55fr 2.3fr 1fr; min-height: 145px; padding: 1.2rem; }
.route-ledger > article + article { border-top: 1px solid var(--ink); }
.route-ledger > article > span { padding-top: .35rem; }
.route-ledger > article > div { align-items: center; display: grid; gap: .7rem; grid-template-columns: 1.2fr .65fr 1fr .65fr 1fr; }
.route-ledger > article > div b { font: 1.15rem/1.1 Georgia, serif; }
.route-ledger > article > div i { border-top: 1px dashed var(--ink); font: normal .45rem/1.3 monospace; padding-top: .45rem; position: relative; text-align: center; text-transform: uppercase; }
.route-ledger > article > div i::after { background: var(--ink); border-radius: 50%; content: ""; height: 7px; position: absolute; right: -1px; top: -4px; width: 7px; }
.route-ledger > article > p { font-size: .68rem; line-height: 1.45; margin: 0; }

.journey-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 0 29%; }
.journey-tabs button { background: transparent; border: 1px solid var(--ink); cursor: pointer; min-height: 58px; padding: 0.8rem; }
.journey-tabs button + button { border-left: 0; }
.journey-tabs button.active { background: var(--ink); color: var(--paper); }
.journey-stage { align-items: stretch; border: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 0.28fr 1fr 0.28fr 1fr; margin-top: 2rem; min-height: 390px; }
.journey-node { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.2rem, 3vw, 2.5rem); }
.journey-node > span { font-size: 0.5rem; }
.journey-node strong { font: clamp(2rem, 3vw, 3.4rem)/0.95 Georgia, serif; letter-spacing: -0.045em; margin-top: 1rem; }
.journey-node p { font-size: 0.75rem; line-height: 1.45; margin: 1.4rem 0 0; }
.source-node { background: var(--mint); }
.channel-node { background: var(--acid); }
.destination-node { background: var(--orange); }
.journey-arrow { align-items: center; display: flex; flex-direction: column; justify-content: center; position: relative; }
.journey-arrow i { border-top: 1px dashed var(--ink); position: relative; width: 100%; }
.journey-arrow i::after { border-bottom: 5px solid transparent; border-left: 9px solid var(--ink); border-top: 5px solid transparent; content: ""; position: absolute; right: 0; top: -5px; }
.journey-arrow span { font-size: 0.48rem; margin-top: 1rem; text-align: center; }
.journey-foot { border-bottom: 1px solid var(--ink); display: grid; gap: 2rem; grid-template-columns: 0.8fr 0.8fr 1.7fr; padding: 1.5rem 0; }
.journey-foot > div { display: flex; flex-direction: column; }
.journey-foot span { font-size: 0.48rem; }
.journey-foot b { font: 1.1rem Georgia, serif; margin-top: 0.5rem; }
.journey-foot p { font-size: 0.7rem; line-height: 1.45; margin: 0; }

.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.loop-grid article { border: 1px solid var(--ink); display: flex; flex-direction: column; min-height: 410px; padding: 1.4rem; }
.loop-grid article:nth-child(2), .loop-grid article:nth-child(3), .loop-grid article:nth-child(5), .loop-grid article:nth-child(6) { border-left: 0; }
.loop-grid article:nth-child(n+4) { border-top: 0; }
.loop-grid article > span { font-size: 0.51rem; }
.loop-grid h3 { font: 2rem/1 Georgia, serif; letter-spacing: -0.04em; margin: 1.5rem 0 0; }
.loop-grid p { font-size: 0.76rem; line-height: 1.5; margin: 1.2rem 0 2rem; }
.mini-flow { align-items: center; display: flex; gap: 0.7rem; justify-content: center; margin-top: auto; }
.mini-flow i { border-top: 1px dashed var(--ink); font: normal 0.48rem monospace; padding-top: 0.5rem; text-align: center; width: 30%; }
.mini-flow b { align-items: center; border: 1px solid var(--ink); border-radius: 50%; display: flex; font: 0.65rem monospace; height: 70px; justify-content: center; width: 70px; }
.mini-flow.reverse b { border-radius: 0; transform: rotate(-3deg); }
.mini-stack { align-items: end; display: flex; gap: 4px; height: 90px; justify-content: center; margin-top: auto; }
.mini-stack i { background: var(--ink); display: block; width: 13%; }
.mini-stack i:nth-child(1) { height: 90%; }.mini-stack i:nth-child(2) { height: 70%; }.mini-stack i:nth-child(3) { height: 52%; }.mini-stack i:nth-child(4) { height: 35%; }.mini-stack i:nth-child(5) { height: 18%; }
.mini-build { align-items: end; display: flex; gap: 10px; justify-content: center; margin-top: auto; }
.mini-build i { border: 1px solid var(--ink); display: block; height: 70px; width: 24%; }
.mini-build i:nth-child(2) { height: 110px; }.mini-build i:nth-child(3) { height: 86px; }
.mini-orbit { align-items: center; display: flex; height: 130px; justify-content: center; margin-top: auto; position: relative; }
.mini-orbit b { align-items: center; background: var(--ink); border-radius: 50%; color: var(--acid); display: flex; font: 0.6rem monospace; height: 60px; justify-content: center; width: 60px; }
.mini-orbit i { border: 1px solid var(--ink); border-radius: 50%; height: 18px; position: absolute; width: 18px; }
.mini-orbit i:nth-child(2) { left: 18%; top: 18%; }.mini-orbit i:nth-child(3) { right: 17%; top: 22%; }.mini-orbit i:nth-child(4) { bottom: 10%; left: 24%; }.mini-orbit i:nth-child(5) { bottom: 12%; right: 22%; }
.mini-loop { font: 7rem/0.8 Georgia, serif; margin-top: auto; text-align: center; }

.research-lede { font: clamp(1.3rem, 2.1vw, 1.9rem)/1.38 Georgia, serif; margin: -2rem 0 4rem 29%; max-width: 850px; }
.rd-ledgers { display: grid; grid-template-columns: repeat(3, 1fr); }
.rd-ledgers article { border: 1px solid var(--paper); display: flex; flex-direction: column; min-height: 390px; padding: 1.4rem; }
.rd-ledgers article + article { border-left: 0; }
.rd-ledgers article:nth-child(1) { background: var(--blue); color: var(--ink); transform: rotate(-1deg); }
.rd-ledgers article:nth-child(2) { background: var(--acid); color: var(--ink); }
.rd-ledgers article:nth-child(3) { background: var(--orange); color: var(--ink); transform: rotate(1deg); }
.rd-ledgers article > span { font-size: 0.51rem; }
.rd-ledgers strong { font: clamp(3.8rem, 6vw, 6.5rem)/0.85 Georgia, serif; letter-spacing: -0.07em; margin-top: auto; }
.rd-ledgers h3 { font: 1.55rem/1 Georgia, serif; margin: 1.2rem 0 0; }
.rd-ledgers p { font-size: 0.7rem; line-height: 1.45; margin: 1rem 0 0; }
.overlap-note { color: var(--paper); margin-bottom: 7rem; }
.pipeline-head { align-items: end; display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; margin-bottom: 2rem; }
.pipeline-head h3 { font: clamp(2.8rem, 5vw, 5rem)/0.9 Georgia, serif; letter-spacing: -0.055em; margin: 0; }
.pipeline-head > p { font-size: 0.75rem; line-height: 1.55; margin: 0; }
.rd-pipeline-table { border: 1px solid var(--paper); overflow-x: auto; }
.rd-stage-grid { border-collapse: collapse; min-width: 1040px; table-layout: fixed; width: 100%; }
.rd-stage-grid th, .rd-stage-grid td { border-bottom: 1px solid var(--light-line); border-right: 1px solid var(--light-line); padding: 1rem; text-align: left; vertical-align: top; }
.rd-stage-grid tr > :last-child { border-right: 0; }
.rd-stage-grid tbody tr:last-child > * { border-bottom: 0; }
.rd-stage-grid thead th { color: var(--acid); font-size: 0.48rem; font-weight: 500; }
.rd-stage-grid thead th:first-child { width: 20%; }
.rd-stage-grid thead th:nth-child(2) { width: 19%; }
.rd-stage-grid tbody th { background: rgba(242, 239, 230, 0.07); }
.rd-stage-grid tbody th span { color: var(--acid); display: block; font-size: 0.46rem; margin-bottom: 0.55rem; }
.rd-stage-grid tbody th b { display: block; font: 1.45rem/1 Georgia, serif; letter-spacing: 0; text-transform: none; }
.rd-stage-grid tbody th small { display: block; font-size: 0.49rem; font-weight: 400; line-height: 1.4; margin-top: 0.65rem; opacity: 0.65; }
.rd-stage-grid td { font: 0.7rem/1.45 Arial, Helvetica, sans-serif; letter-spacing: 0; text-transform: none; }
.rd-stage-grid .clinical-stage th { background: var(--acid); color: var(--ink); }
.rd-stage-grid .clinical-stage th span { color: var(--ink); }
.attrition-lab { background: var(--paper); color: var(--ink); display: grid; grid-template-columns: 1fr 1.4fr; margin-top: 7rem; }
.attrition-copy { padding: clamp(2rem, 4vw, 4rem); }
.attrition-copy h3 { font: clamp(2.8rem, 5vw, 5.2rem)/0.9 Georgia, serif; letter-spacing: -0.055em; margin: 0; }
.attrition-copy > p:not(.eyebrow) { font-size: 0.85rem; line-height: 1.55; margin: 2rem 0; }
.attrition-key { border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; font-size: 0.48rem; gap: 1rem 1.5rem; margin-top: 3rem; padding-top: 1rem; }
.attrition-key span { align-items: center; display: flex; gap: 0.45rem; }
.attrition-key i { border: 1px solid var(--ink); border-radius: 50%; display: block; height: 9px; width: 9px; }
.attrition-key span:first-child i { background: var(--ink); }
.attrition-visual { background: var(--pink); display: flex; flex-direction: column; padding: clamp(2rem, 4vw, 4rem); }
.attrition-count { align-items: end; display: grid; grid-template-columns: 1fr auto; }
.attrition-count span { font-size: 0.52rem; }.attrition-count strong { font: clamp(5rem, 10vw, 9rem)/0.7 Georgia, serif; grid-row: span 2; letter-spacing: -0.08em; }
.attrition-count small { font-size: 0.62rem; margin-top: 0.5rem; }
.cohort-grid { display: grid; gap: 4px; grid-template-columns: repeat(20, 1fr); margin-top: auto; padding-top: 3rem; }
.cohort-grid i { aspect-ratio: 1; border: 1px solid var(--ink); border-radius: 50%; display: block; min-width: 3px; }
.cohort-grid i.approved { background: var(--ink); }
.cost-time-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1px; }
.cost-time-grid article { border: 1px solid var(--paper); min-height: 280px; padding: 1.4rem; }
.cost-time-grid article + article { border-left: 0; }
.cost-time-grid article > span { font-size: 0.51rem; }
.cost-time-grid strong { display: block; font: clamp(2.4rem, 4vw, 4.5rem)/0.9 Georgia, serif; letter-spacing: -0.055em; margin-top: 4rem; }
.cost-time-grid p { font-size: 0.72rem; line-height: 1.5; margin: 1.2rem 0 0; }
.rd-motives { margin-top: 7rem; }
.section-subhead { align-items: end; border-bottom: 1px solid var(--paper); display: grid; gap: 2rem; grid-template-columns: 1fr 2fr; padding-bottom: 1.5rem; }
.section-subhead > span { font-size: 0.52rem; }
.section-subhead h3 { font: clamp(2.5rem, 4.5vw, 4.7rem)/0.94 Georgia, serif; letter-spacing: -0.045em; margin: 0; }
.motive-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.motive-grid article { border-right: 1px solid var(--paper); min-height: 260px; padding: 1.4rem; }
.motive-grid article:last-child { border-right: 0; }
.motive-grid b { color: var(--acid); font: 1.45rem Georgia, serif; }
.motive-grid p { font-size: 0.75rem; line-height: 1.5; margin: 1.5rem 0 0; }
.research-warning { margin-top: 5rem; }

.takeaway { background: var(--blue); }
.takeaway-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.takeaway-grid article { border: 1px solid var(--ink); min-height: 300px; padding: 1.3rem; }
.takeaway-grid article + article { border-left: 0; }
.takeaway-grid article > span { font-size: 0.52rem; }
.takeaway-grid h3 { font: 2rem Georgia, serif; margin: 5rem 0 0; }
.takeaway-grid p { font-size: 0.75rem; line-height: 1.45; margin: 1rem 0 0; }
blockquote { font: clamp(2.8rem, 6vw, 6.4rem)/0.95 Georgia, serif; letter-spacing: -0.06em; margin: 8rem 0 0 16%; max-width: 1100px; }

.sources { background: var(--paper); }
.source-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.source-grid article { border: 1px solid var(--ink); display: flex; flex-direction: column; min-height: 340px; padding: 1.3rem; }
.source-grid article:nth-child(2), .source-grid article:nth-child(3), .source-grid article:nth-child(5), .source-grid article:nth-child(6) { border-left: 0; }
.source-grid article:nth-child(n+4) { border-top: 0; }
.source-grid article > span { font-size: 0.49rem; }
.source-grid h3 { font: 1.6rem/1.05 Georgia, serif; margin: 2rem 0 0; }
.source-grid p { font-size: 0.72rem; line-height: 1.5; margin: 1rem 0 2rem; }
.source-grid a { border-top: 1px solid var(--line); font: 0.55rem/1.3 monospace; margin-top: auto; padding: 0.75rem 0; text-decoration: none; text-transform: uppercase; }
.source-grid a + a { margin-top: 0; }
.source-grid a:hover { color: #08715d; }
.method-note { margin-top: 4rem; }

.next { align-items: end; background: var(--pink); display: grid; gap: 2rem; grid-template-columns: 1fr 2.2fr auto; padding: clamp(5rem, 8vw, 8rem) 2rem; text-decoration: none; }
.next > span { font-size: 0.55rem; }
.next strong { font: clamp(3.4rem, 7vw, 7rem)/0.86 Georgia, serif; letter-spacing: -0.065em; }
.next > b { font: 4rem Georgia, serif; transition: transform 180ms ease; }
.next:hover > b { transform: translate(5px, -5px); }
footer { background: var(--ink); color: var(--paper); display: flex; font-size: 0.55rem; justify-content: space-between; padding: 2rem; }
footer p { margin: 0; }

@media (max-width: 1050px) {
  .health-sankey { column-gap: 4rem; grid-template-columns: minmax(180px, 1fr) 140px minmax(210px, 1fr); }
  .sankey-node > div b { font-size: .86rem; }
  .sankey-node small { font-size: .43rem; }
  .route-ledger > article { grid-template-columns: .45fr 2fr; }
  .route-ledger > article > p { grid-column: 2; }
  .ledger-stage { grid-template-columns: 0.8fr 1.7fr; }
  .ledger-detail { border-top: 1px solid var(--paper); grid-column: 1 / -1; min-height: 180px; }
  .motive-grid { grid-template-columns: repeat(2, 1fr); }
  .motive-grid article:nth-child(2) { border-right: 0; }
  .motive-grid article:nth-child(n+3) { border-top: 1px solid var(--paper); }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: auto 1fr auto; padding: 0 1rem; }
  .back { justify-self: start; margin-left: 1rem; }
  .site-header > span { font-size: 0.5rem; }
  .hero { min-height: 820px; padding: 5rem 1rem 2rem; }
  .hero::before { height: 28rem; right: -19rem; top: -5rem; width: 34rem; }
  .hero::after { display: none; }
  .hero h1 { font-size: clamp(3.8rem, 18vw, 6.2rem); }
  .lede { font-size: 1.2rem; }
  .hero-total { grid-template-columns: 1fr 1fr; margin: 4rem 0 0; }
  .total-main { grid-column: 1 / -1; }
  .hero-total > div { min-height: 120px; }
  .hero-total > div:nth-child(2) { border-left: 0; }
  .hero-total > div:nth-child(3) { border-top: 1px solid var(--ink); }
  .hero-loop { grid-template-columns: 1fr; }
  .hero-loop i { height: 28px; margin-left: 10px; width: 1px; }
  .hero-loop i::after { bottom: 0; left: -3px; right: auto; top: auto; }
  .chapter-nav { grid-template-columns: repeat(5, minmax(105px, 1fr)); overflow-x: auto; }
  section:not(.hero) { padding: 5rem 1rem; }
  .section-head { gap: 1rem; grid-template-columns: 2.5rem 1fr; }
  .section-head h2 { font-size: clamp(3rem, 14vw, 5rem); grid-column: 1 / -1; margin-top: 1rem; }
  .sankey-intro { grid-template-columns: 1fr; margin-left: 0; }
  .health-sankey { column-gap: 0; grid-template-columns: 1fr; min-height: 0; }
  #sankeyCanvas { display: none; }
  .sankey-column { gap: .45rem; }
  .sankey-column-title { flex-basis: auto; margin-bottom: .45rem; padding-bottom: .7rem; }
  .sankey-node { flex: none; min-height: 72px; }
  .sankey-pool { margin: 2rem 0; min-height: 230px; }
  .sankey-pool::before, .sankey-pool::after { border-left: 1px dashed var(--paper); content: ""; height: 33px; left: 50%; position: absolute; }
  .sankey-pool::before { top: -33px; }.sankey-pool::after { bottom: -33px; }
  .health-sankey figcaption { bottom: auto; left: auto; margin-top: 2rem; position: relative; }
  .payment-rails { grid-template-columns: 1fr; margin-top: 5rem; }
  .rails-bar { height: 44px; }
  .route-ledger > article { grid-template-columns: 1fr; }
  .route-ledger > article > div { align-items: start; grid-template-columns: 1fr; }
  .route-ledger > article > div i { border-left: 1px dashed var(--ink); border-top: 0; height: 34px; padding: 0 0 0 .8rem; text-align: left; }
  .route-ledger > article > div i::after { bottom: 0; left: -4px; right: auto; top: auto; }
  .route-ledger > article > p { grid-column: 1; }
  .ledger-intro, .research-lede { grid-template-columns: 1fr; margin-left: 0; }
  .amount-switch { margin-top: 1rem; }
  .lens-tabs { grid-template-columns: 1fr; }
  .lens-tabs button { border-right: 0; min-height: 76px; }
  .ledger-stage { grid-template-columns: 1fr; }
  .ledger-question { border-bottom: 1px solid var(--paper); border-right: 0; min-height: 240px; }
  .ledger-rows { padding: 1.2rem; }
  .ledger-row { gap: 0.5rem; grid-template-columns: minmax(100px, 1fr) 1.4fr auto; }
  .ledger-detail { grid-column: 1; }
  .accounting-warning, .overlap-note, .research-warning, .method-note { gap: 1rem; grid-template-columns: 1fr; }
  .journey-tabs { grid-template-columns: 1fr 1fr; margin-left: 0; }
  .journey-tabs button:nth-child(3) { border-left: 1px solid var(--ink); border-top: 0; }
  .journey-tabs button:nth-child(4) { border-top: 0; }
  .journey-stage { grid-template-columns: 1fr; }
  .journey-arrow { min-height: 70px; }
  .journey-arrow i { height: 70px; width: 1px; }
  .journey-arrow i::after { border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 9px solid var(--ink); bottom: 0; left: -5px; right: auto; top: auto; }
  .journey-arrow span { margin: 0 0 0 1.5rem; position: absolute; }
  .journey-stage .destination-node { grid-column: 1; }
  .journey-node { min-height: 260px; }
  .journey-foot { grid-template-columns: 1fr; }
  .loop-grid, .rd-ledgers, .cost-time-grid, .takeaway-grid, .source-grid { grid-template-columns: 1fr; }
  .loop-grid article, .loop-grid article:nth-child(2), .loop-grid article:nth-child(3), .loop-grid article:nth-child(5), .loop-grid article:nth-child(6),
  .rd-ledgers article, .rd-ledgers article + article, .cost-time-grid article, .cost-time-grid article + article,
  .takeaway-grid article, .takeaway-grid article + article, .source-grid article, .source-grid article:nth-child(2),
  .source-grid article:nth-child(3), .source-grid article:nth-child(5), .source-grid article:nth-child(6) { border: 1px solid currentColor; border-top: 0; }
  .loop-grid article:first-child, .rd-ledgers article:first-child, .cost-time-grid article:first-child, .takeaway-grid article:first-child, .source-grid article:first-child { border-top: 1px solid currentColor; }
  .rd-ledgers article { min-height: 330px; }
  .pipeline-head { align-items: start; grid-template-columns: 1fr; }
  .rd-pipeline-table { margin-right: -1rem; }
  .attrition-lab { grid-template-columns: 1fr; }
  .attrition-visual { min-height: 450px; }
  .cohort-grid { grid-template-columns: repeat(15, 1fr); }
  .motive-grid { grid-template-columns: 1fr; }
  .motive-grid article, .motive-grid article:nth-child(2), .motive-grid article:nth-child(n+3) { border-bottom: 1px solid var(--paper); border-right: 0; border-top: 0; }
  .section-subhead { align-items: start; grid-template-columns: 1fr; }
  blockquote { font-size: clamp(2.8rem, 13vw, 5rem); margin: 6rem 0 0; }
  .next { align-items: start; grid-template-columns: 1fr auto; padding: 5rem 1rem; }
  .next strong { grid-column: 1 / -1; grid-row: 2; }
  .next > b { grid-column: 2; grid-row: 1; }
  footer { flex-direction: column; gap: 0.8rem; padding: 2rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}
