/* IndependentSponsorAttorney.com — Design System v3
   Apple product page / architectural minimalism.
   One idea per scroll. Massive type. Generous space. Restraint. */

:root {
  /* Color */
  --ink: #0E1116;
  --ink-soft: #1A1F28;
  --paper: #F4EFE6;
  --paper-warm: #EDE5D2;
  --bone: #E8E1D2;
  --bone-deep: #D9CFB8;
  --graphite: #3A3F47;
  --stone: #7A7E85;
  --ember: #C2541A;
  --ember-hover: #A6451A;
  --ember-soft: #E3B998;

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Architectural type scale */
  --size-mega: clamp(2.75rem, 7vw, 6.5rem);     /* page-hero headline */
  --size-display-xl: clamp(2.5rem, 5.5vw, 5rem); /* section title */
  --size-display-l: clamp(2.25rem, 5vw, 4rem);    /* sub-section */
  --size-display-m: clamp(1.75rem, 3.5vw, 2.5rem);
  --size-headline: 1.5rem;
  --size-subhead: 1.375rem;
  --size-body: 1.125rem;
  --size-small: 1rem;
  --size-micro: 0.8125rem;

  /* Architectural space scale — 1.5-2x v2 */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 40px;
  --s-5: 64px; --s-6: 120px; --s-7: 180px; --s-8: 240px;

  /* Layout */
  --max-page: 1320px;
  --max-prose: 700px;
  --max-display: 1100px;
  --gutter: 48px;
  --gutter-mobile: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.25rem; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* --- Typography ---------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: var(--size-mega); line-height: 0.95; }
h2 { font-size: var(--size-display-xl); line-height: 1.0; letter-spacing: -0.025em; }
h3 { font-size: var(--size-display-m); line-height: 1.1; }
h4 { font-size: var(--size-headline); line-height: 1.25; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--size-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  display: inline-block;
}

.lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.35;
  color: var(--graphite);
  letter-spacing: -0.015em;
  max-width: 28ch;
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

p { max-width: var(--max-prose); }
p + p { margin-top: 1.25em; }

a { color: var(--ink); text-decoration: none; transition: color 200ms ease; }
a:hover { color: var(--ember); }

::selection { background: var(--ember); color: var(--paper); }

/* --- Wrap ---------------------------------------------------------- */
.wrap { max-width: var(--max-page); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Sticky header (minimal, almost invisible) -------------------- */
.site-header {
  padding: var(--s-3) 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}
.site-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.site-mark .seal { width: 26px; height: 26px; }
.site-mark .word .ember { color: var(--ember); }
.site-nav { display: flex; gap: var(--s-4); align-items: center; font-size: var(--size-small); }
.site-nav a { color: var(--graphite); font-weight: 500; }
.site-nav a:hover { color: var(--ember); }
.site-nav .button { color: var(--paper); }

/* --- The page rhythm: massive sections --------------------------- */
section {
  padding: var(--s-8) 0;
  position: relative;
}
section + section { border: none; }

/* Hero — confident but not overwhelming */
.hero {
  min-height: 70vh;
  padding: var(--s-6) 0;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero .wrap { width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
}
.hero .eyebrow { margin-bottom: var(--s-3); }
.hero h1 { margin-bottom: var(--s-4); max-width: 18ch; line-height: 1.0; }
.hero .lede { margin-bottom: var(--s-4); max-width: 32ch; }
.hero-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.hero-decor svg { max-width: 100%; height: auto; }
.hero-decor .dealStageArt { max-width: 540px; }

.hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--size-small);
  color: var(--stone);
  padding-top: var(--s-4);
  border-top: 1px solid var(--bone-deep);
  max-width: 100%;
}
.hero .meta span { display: inline-flex; align-items: baseline; gap: 10px; }
.hero .meta strong {
  color: var(--ink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-family: var(--font-body);
}

/* --- Statement section: a single idea per scroll ----------------- */
.statement {
  padding: var(--s-8) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.statement .wrap { width: 100%; }
.statement .eyebrow { margin-bottom: var(--s-5); }
.statement h2 {
  font-size: var(--size-display-xl);
  max-width: 20ch;
  margin-bottom: var(--s-5);
}
.statement .body {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  line-height: 1.4;
  color: var(--graphite);
  max-width: 38ch;
  letter-spacing: -0.01em;
}

/* --- Asymmetric two-column with illustration -------------------- */
.split {
  padding: var(--s-7) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-7);
  align-items: center;
}
.split-art {
  display: flex;
  align-items: center;
  justify-content: center;
}
.split-art svg { max-width: 100%; height: auto; }
.split-text .eyebrow { margin-bottom: var(--s-4); }
.split-text h2 { margin-bottom: var(--s-4); max-width: 18ch; }
.split-text p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--graphite);
  letter-spacing: -0.01em;
  max-width: 32ch;
}

/* --- The Moves — numbered list, oversized ----------------------- */
.moves-section { padding: var(--s-8) 0; }
.moves-section .eyebrow { margin-bottom: var(--s-4); }
.moves-section h2 { margin-bottom: var(--s-6); max-width: 16ch; }
.moves {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  counter-reset: move;
  max-width: 1000px;
}
.moves li {
  counter-increment: move;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--bone-deep);
  align-items: start;
}
.moves li:first-child { border-top: 1px solid var(--ink); }
.moves li:last-child { border-bottom: 1px solid var(--ink); }
.moves li::before {
  content: counter(move, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--ember);
  letter-spacing: -0.04em;
  line-height: 1;
}
.moves li p, .moves li > span:not(.mono) {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  padding-top: 8px;
}

/* --- Pull quote — full-bleed editorial moment ------------------- */
.pullquote-section {
  padding: var(--s-8) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.pullquote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(194, 84, 26, 0.12) 0, transparent 50%);
  pointer-events: none;
}
.pullquote-section .wrap { position: relative; }
.pullquote-section .eyebrow {
  color: var(--ember-soft);
  margin-bottom: var(--s-4);
}
.pullquote-section blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.05;
  color: var(--paper);
  max-width: 24ch;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-5);
}
.pullquote-section cite {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-soft);
  font-style: normal;
  font-weight: 600;
}

/* --- Mistake callout — restrained editorial ------------------- */
.mistake-section { padding: var(--s-8) 0; }
.mistake-section .eyebrow { margin-bottom: var(--s-4); color: var(--ember); }
.mistake-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  max-width: 22ch;
  line-height: 1.15;
}

/* --- Capital after close — dark full-bleed -------------------- */
.capital-section {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-8) 0;
  position: relative;
  overflow: hidden;
}
.capital-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(194, 84, 26, 0.15) 0, transparent 55%);
  pointer-events: none;
}
.capital-section .wrap { position: relative; }
.capital-section .eyebrow { color: var(--ember-soft); margin-bottom: var(--s-4); }
.capital-section h2 {
  color: var(--paper);
  max-width: 22ch;
  margin-bottom: var(--s-5);
}
.capital-section p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  line-height: 1.35;
  color: var(--bone);
  max-width: 30ch;
  letter-spacing: -0.005em;
}
.capital-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--graphite);
}
.capital-timeline .point {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding-left: var(--s-3);
  border-left: 2px solid var(--ember);
}
.capital-timeline .label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--ember);
  font-weight: 500;
}
.capital-timeline .value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.6vw, 1.625rem);
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* --- Ticker strip (used on landing pages) ------------------- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
}
.ticker .wrap {
  display: flex;
  justify-content: center;
}
.ticker-track {
  display: inline-flex;
  gap: var(--s-5);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--size-small);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-wrap: wrap;
  justify-content: center;
}
.ticker-track span { display: inline-flex; align-items: baseline; gap: 12px; }
.ticker-track span::after {
  content: "◆";
  color: var(--ember);
  font-size: 8px;
  margin-left: var(--s-4);
  opacity: 0.6;
  position: relative;
  top: -2px;
}
.ticker-track span:last-child::after { display: none; }
.ticker-track strong { color: var(--ember); font-weight: 500; }

/* --- Book section (the field manual) ----------------- */
.book-section {
  padding: var(--s-8) 0;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.book-section .book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--s-7);
  align-items: center;
}
.book-section .book-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-section .book-cover {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.book-section .eyebrow { margin-bottom: var(--s-3); }
.book-section h2 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  margin-bottom: var(--s-3);
  max-width: 14ch;
}
.book-section .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  color: var(--graphite);
  line-height: 1.35;
  margin-bottom: var(--s-5);
  max-width: 30ch;
  letter-spacing: -0.01em;
}
.book-section .book-meta {
  display: flex;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--stone);
  letter-spacing: 0.04em;
  padding-top: var(--s-3);
  border-top: 1px solid var(--bone-deep);
}
.book-section .book-meta strong {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-right: 6px;
}
.book-section .book-pitch {
  font-size: var(--size-body);
  line-height: 1.55;
  color: var(--graphite);
  max-width: 42ch;
  margin-bottom: var(--s-5);
}
.book-section .book-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color 200ms ease, border-color 200ms ease, gap 200ms ease;
}
.book-section .book-cta:hover {
  color: var(--ember);
  border-bottom-color: var(--ember);
  gap: 18px;
}
.book-section .book-cta::after { content: "→"; font-family: var(--font-display); font-style: normal; }

@media (max-width: 960px) {
  .book-section .book-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .book-section .book-visual { order: 2; }
  .book-section .book-cover { max-width: 240px; }
}

/* --- Data section (the IS world in numbers) ----------------- */
.data-section {
  padding: var(--s-7) 0 var(--s-8);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.data-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 50%, rgba(194, 84, 26, 0.12) 0, transparent 55%);
  pointer-events: none;
}
.data-section .wrap { position: relative; }
.data-section .eyebrow { color: var(--ember-soft); margin-bottom: var(--s-3); }
.data-section h2 {
  color: var(--paper);
  margin-bottom: var(--s-4);
  max-width: 20ch;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}
.data-section .lede {
  color: var(--bone-deep);
  font-style: italic;
  margin-bottom: var(--s-6);
  max-width: 36ch;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.data-stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-3);
  position: relative;
}
.data-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--ember);
  transition: width 800ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 200ms;
}
.data-stat.in::before { width: 60%; }
.data-stat .stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ember);
  font-feature-settings: "tnum" 1;
}
.data-stat .stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  margin-top: var(--s-1);
}
.data-stat p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--bone-deep);
  margin-top: var(--s-2);
  max-width: 24ch;
}

@media (max-width: 960px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}
@media (max-width: 640px) {
  .data-grid { grid-template-columns: 1fr; }
}

/* --- Value pillars (homepage) -------------------- */
.pillars-section { padding: var(--s-8) 0; }
.pillars-section .eyebrow { margin-bottom: var(--s-4); }
.pillars-section h2 { margin-bottom: var(--s-6); max-width: 18ch; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.pillar {
  border-top: 1px solid var(--ink);
  padding-top: var(--s-4);
}
.pillar .pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--ember);
  font-weight: 600;
  display: block;
  margin-bottom: var(--s-3);
}
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.625rem, 2.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--s-3);
  max-width: 14ch;
}
.pillar p {
  font-size: var(--size-body);
  line-height: 1.5;
  color: var(--graphite);
  margin: 0;
}

/* --- Engagement steps (homepage) ------------------- */
.steps-section { padding: var(--s-8) 0; background: var(--paper-warm); }
.steps-section .eyebrow { margin-bottom: var(--s-4); }
.steps-section h2 { margin-bottom: var(--s-6); max-width: 18ch; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  color: var(--ember);
  line-height: 0.9;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 16ch;
}
.step p {
  font-size: var(--size-body);
  line-height: 1.5;
  color: var(--graphite);
  margin: 0;
  max-width: 32ch;
}

/* --- Browse summary tiles (homepage) -------------- */
.summary-section { padding: var(--s-7) 0; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.summary-tile {
  border: 1px solid var(--ink);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: background 240ms ease, transform 240ms ease;
  color: var(--ink);
  background: transparent;
}
.summary-tile:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.summary-tile:hover .arrow { color: var(--paper); transform: translateX(6px); }
.summary-tile .count {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ember);
}
.summary-tile h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.summary-tile p {
  font-size: var(--size-body);
  line-height: 1.5;
  color: var(--graphite);
  margin: 0;
  max-width: 40ch;
}
.summary-tile:hover p { color: var(--bone); }
.summary-tile .arrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ember);
  align-self: flex-start;
  margin-top: var(--s-3);
  transition: transform 240ms ease, color 240ms ease;
}

/* --- Browse cards — restrained, focused -------------------- */
.browse-section { padding: var(--s-8) 0; }
.browse-section .eyebrow { margin-bottom: var(--s-4); }
.browse-section h2 { margin-bottom: var(--s-6); max-width: 18ch; }
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--s-3);
}
.browse-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: transparent;
  border-top: 1px solid var(--ink);
  color: var(--ink);
  transition: background 240ms ease, transform 240ms ease;
  min-height: 200px;
}
.browse-card .eyebrow { color: var(--ember); margin-bottom: var(--s-2); font-size: 0.6875rem; }
.browse-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-2);
  flex: 0;
}
.browse-card p {
  font-size: var(--size-small);
  color: var(--graphite);
  margin: 0;
  flex: 1;
}
.browse-card .arrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ember);
  margin-top: var(--s-3);
  align-self: flex-start;
  transition: transform 240ms ease;
  line-height: 1;
}
.browse-card:hover { background: var(--paper-warm); transform: translateY(-2px); color: var(--ink); }
.browse-card:hover .arrow { transform: translateX(6px); }

/* --- Index cards (deal-types grouped by stage) ------------- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-3);
}
.index-card {
  border-top: 1px solid var(--ink);
  padding: var(--s-3) var(--s-3) var(--s-4);
  background: transparent;
}
.index-card .eyebrow { color: var(--ember); margin-bottom: var(--s-2); font-size: 0.6875rem; }
.index-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.index-card ul { list-style: none; padding: 0; }
.index-card li {
  font-size: var(--size-small);
  padding: 10px 0;
  border-bottom: 1px solid var(--bone);
}
.index-card li:last-child { border-bottom: none; }
.index-card li a {
  color: var(--graphite);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}
.index-card li a:hover { color: var(--ember); }

/* --- CTA section — singular, oversized -------------------- */
.cta-section {
  padding: var(--s-8) 0;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}
.cta-section .eyebrow { margin-bottom: var(--s-4); }
.cta-section h2 { margin-bottom: var(--s-5); max-width: 18ch; }
.cta-section .lede { margin-bottom: var(--s-6); max-width: 32ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--size-small);
  padding: 16px 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
  letter-spacing: 0.01em;
}
.button::after {
  content: "→";
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 200ms ease;
}
.button:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--paper);
  transform: translateY(-1px);
}
.button:hover::after { transform: translateX(4px); }
.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.button.secondary:hover { background: var(--ink); color: var(--paper); }

/* --- Footer — editorial sign-off ---------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--bone);
  padding: var(--s-8) 0 var(--s-5);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 100%, rgba(194, 84, 26, 0.18) 0, transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(194, 84, 26, 0.08) 0, transparent 45%);
  pointer-events: none;
}
.site-footer .wrap { position: relative; }
.footer-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--paper);
  margin-bottom: var(--s-7);
  max-width: 18ch;
}
.footer-statement .ember { color: var(--ember); }

/* Editorial block: portrait + quote */
.footer-editorial {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--graphite);
  border-bottom: 1px solid var(--graphite);
}
.footer-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.footer-portrait .portrait-plate {
  width: 180px;
  height: 180px;
}
.footer-portrait .portrait-frame {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
}
.footer-portrait .portrait-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ember);
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
}
.footer-portrait .portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, transparent 40%, rgba(14, 17, 22, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}
.footer-portrait .portrait-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 400ms ease;
}
.footer-portrait:hover .portrait-photo {
  filter: grayscale(40%) contrast(1.05);
}
.portrait-caption {
  text-align: center;
}
.portrait-caption .caption-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 4px;
}
.portrait-caption .caption-role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--stone);
  letter-spacing: 0.08em;
}
.footer-quote {
  position: relative;
  padding-left: var(--s-5);
}
.footer-quote .quote-mark {
  position: absolute;
  top: -28px;
  left: -8px;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: var(--ember);
  opacity: 0.22;
  pointer-events: none;
}
.footer-quote blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.625rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  color: var(--paper);
  letter-spacing: -0.015em;
  max-width: 28ch;
  margin-bottom: var(--s-3);
}
.footer-quote .quote-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ember);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer Disclaimer */
.footer-disclaimer {
  padding-top: var(--s-5);
  margin-top: 0;
}
.footer-disclaimer .disclaimer-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: var(--s-1);
}
.footer-disclaimer .disclaimer-text {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--stone);
  max-width: none;
  margin: 0;
}

/* Minimal fine print */
.footer-fine {
  margin-top: var(--s-4);
  padding-top: 0;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.footer-fine .footer-email {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--paper);
  border-bottom: 1px solid var(--graphite);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.footer-fine .footer-email:hover { color: var(--ember); border-bottom-color: var(--ember); }
.footer-fine p {
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.04em;
  margin: 0;
  max-width: none;
}

@media (max-width: 960px) {
  .footer-editorial { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-portrait { align-items: flex-start; }
  .portrait-caption { text-align: left; }
  .footer-fine { flex-direction: column; align-items: flex-start; }
}

/* --- Framework strip on homepage ----------------------- */
.framework-section { padding: var(--s-8) 0; }
.framework-section .eyebrow { margin-bottom: var(--s-4); }
.framework-section h2 { margin-bottom: var(--s-5); max-width: 14ch; }
.framework-section .body {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  line-height: 1.35;
  color: var(--graphite);
  max-width: 38ch;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-7);
}
.closings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
}
.closing-tile {
  border-top: 1px solid var(--ink);
  padding: var(--s-3) 0 0;
}
.closing-tile .num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  letter-spacing: -0.04em;
  color: var(--ember);
  line-height: 1;
  margin-bottom: var(--s-3);
  display: block;
}
.closing-tile .label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: var(--s-2);
  display: block;
  letter-spacing: -0.01em;
}
.closing-tile p {
  font-size: var(--size-small);
  color: var(--graphite);
  margin: 0;
}

/* --- Track record list (about page) ------------------- */
.tracker {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  max-width: 1000px;
}
.tracker li {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--bone-deep);
  align-items: baseline;
}
.tracker li:first-child { border-top: 1px solid var(--ink); }
.tracker li:last-child { border-bottom: 1px solid var(--ink); }
.tracker .stat {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  color: var(--ember);
  letter-spacing: -0.03em;
  line-height: 1;
}
.tracker .desc {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.5vw, 1.5rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* --- Reveal-on-scroll (used by intersection observer) -- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 100ms; }
.reveal[data-delay="2"] { transition-delay: 200ms; }
.reveal[data-delay="3"] { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   RESOURCES — Book page, Notes, FAQ, Checklist, Tools
   =========================================================== */

/* --- Book page: chapter list --------------------- */
.chapter-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  max-width: 1100px;
}
.chapter-part {
  border-top: 1px solid var(--ink);
  padding-top: var(--s-3);
}
.part-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ember);
  margin-bottom: var(--s-3);
}
.chapter-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.chapter-items li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--bone);
  align-items: baseline;
}
.chapter-items li:last-child { border-bottom: none; }
.chapter-items .ch-num {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--stone);
  font-weight: 500;
}
.chapter-items .ch-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
@media (max-width: 760px) { .chapter-list { grid-template-columns: 1fr; } }

/* --- Notes index --------------------------------- */
.notes-pillar { padding: var(--s-7) 0; border-bottom: 1px solid var(--bone-deep); }
.notes-pillar:last-of-type { border-bottom: none; }
.pillar-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: baseline;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--ink);
}
.pillar-head .pillar-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.75rem;
  color: var(--ember);
}
.pillar-head .pillar-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pillar-head .pillar-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.notes-list { list-style: none; padding: 0; margin: 0; }
.note-item { border-bottom: 1px solid var(--bone-deep); }
.note-item:last-child { border-bottom: none; }
.note-item a {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  color: var(--ink);
  align-items: start;
  transition: background 200ms ease;
}
.note-item a:hover { background: var(--paper-warm); padding-left: var(--s-3); padding-right: var(--s-3); margin: 0 calc(var(--s-3) * -1); }
.note-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  color: var(--ember);
  letter-spacing: -0.04em;
  line-height: 1;
}
.note-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-1);
  line-height: 1.2;
}
.note-summary { font-size: var(--size-small); color: var(--graphite); margin-bottom: var(--s-2); max-width: 60ch; }
.note-meta { display: flex; gap: var(--s-3); font-family: var(--font-mono); font-size: 0.75rem; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase; }
.note-arrow { font-family: var(--font-display); font-size: 1.25rem; color: var(--ember); align-self: center; }
@media (max-width: 640px) {
  .pillar-head { grid-template-columns: auto 1fr; }
  .pillar-head .pillar-count { display: none; }
  .note-item a { grid-template-columns: 60px 1fr; }
  .note-arrow { display: none; }
}

/* --- Individual note page ----------------------- */
.note-body-section { padding: var(--s-6) 0; }
.note-prose {
  max-width: 680px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
}
.note-prose p { max-width: none; margin-bottom: 1.5rem; }
.note-prose p:first-of-type::first-letter {
  font-size: 3.5rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin-right: 8px;
  margin-top: 4px;
  color: var(--ember);
}
.note-nav-section { padding: var(--s-6) 0; border-top: 1px solid var(--bone-deep); }
.note-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
.note-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-3) 0;
  color: var(--ink);
}
.note-nav-link.next { text-align: right; align-items: flex-end; }
.nav-direction {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--stone);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.note-nav-link:hover .nav-title { color: var(--ember); }
.note-back { margin-top: var(--s-3); }
.note-back a {
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--graphite);
  font-weight: 500;
}
.note-back a:hover { color: var(--ember); }
@media (max-width: 640px) {
  .note-nav { grid-template-columns: 1fr; }
  .note-nav-link.next { text-align: left; align-items: flex-start; }
}

/* --- FAQ ---------------------------------------- */
.faq-section { padding: var(--s-7) 0; border-bottom: 1px solid var(--bone-deep); }
.faq-section:last-of-type { border-bottom: none; }
.faq-section-head { margin-bottom: var(--s-5); }
.faq-section-head h2 { margin-top: var(--s-2); max-width: 22ch; }
.faq-items { display: flex; flex-direction: column; gap: var(--s-5); }
.faq-item { border-top: 1px solid var(--bone-deep); padding-top: var(--s-3); }
.faq-q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  color: var(--ink);
  max-width: 38ch;
}
.faq-a p {
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--graphite);
  max-width: 64ch;
  margin-bottom: 1em;
}
.faq-a p:last-child { margin-bottom: 0; }

/* --- Diligence Checklist ------------------------ */
.checklist-section { padding: var(--s-7) 0; border-bottom: 1px solid var(--bone-deep); }
.checklist-section:last-of-type { border-bottom: none; }
.checklist-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--ink);
  align-items: start;
}
.checklist-head .ws-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--ember);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.checklist-head h2 { margin: var(--s-1) 0 var(--s-2); }
.checklist-head .ws-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--graphite);
  max-width: 60ch;
}
.checklist-items { list-style: none; padding: 0; margin: 0; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  padding: var(--s-2) 0;
  border-bottom: 1px dotted var(--bone-deep);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  margin-right: var(--s-3);
  margin-top: 6px;
  accent-color: var(--ember);
  width: 18px;
  height: 18px;
}
.checklist-item label {
  font-size: var(--size-body);
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
  flex: 1;
}
.checklist-item.critical label { font-weight: 500; }
.crit-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: 0.12em;
  margin-right: var(--s-2);
  padding: 2px 6px;
  border: 1px solid var(--ember);
  border-radius: 2px;
}

@media print {
  .site-header, .site-footer, .cta-section, .hero, .statement { display: none; }
  .checklist-section { page-break-inside: avoid; padding: 16px 0; }
  .checklist-head .ws-num { font-size: 2rem; }
  .checklist-item input[type="checkbox"] { -webkit-print-color-adjust: exact; }
  body { background: white; color: black; }
}

/* --- Tools (calculators) ----------------------- */
.tool-section { padding: var(--s-6) 0; }
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s-6);
  align-items: start;
}
.tool-inputs, .tool-output { border-top: 1px solid var(--ink); padding-top: var(--s-4); }
.tool-inputs h3, .tool-output h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
}
.tool-inputs .eyebrow, .tool-output .eyebrow { margin-bottom: var(--s-1); }
.input-row {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--bone);
  align-items: center;
}
.input-row label {
  font-family: var(--font-body);
  font-size: var(--size-small);
  color: var(--graphite);
  font-weight: 500;
}
.input-row input, .input-row select {
  font-family: var(--font-mono);
  font-size: var(--size-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--bone-deep);
  border-radius: 2px;
  padding: 8px 10px;
  text-align: right;
  width: 100%;
}
.input-row input:focus, .input-row select:focus {
  outline: none;
  border-color: var(--ember);
  background: var(--paper-warm);
}

/* Capital Stack chart */
.stack-chart {
  display: flex;
  flex-direction: column;
  height: 460px;
  border: 1px solid var(--ink);
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.stack-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-3);
  border-bottom: 1px solid rgba(14, 17, 22, 0.15);
  transition: height 360ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.stack-layer:last-child { border-bottom: none; }
.layer-name { font-weight: 600; letter-spacing: 0.08em; font-size: 0.6875rem; }
.layer-amount { font-weight: 500; font-size: 0.875rem; }
.stack-math, .econ-summary { border-top: 1px solid var(--bone-deep); padding-top: var(--s-3); }
.math-row, .econ-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--bone);
  font-size: var(--size-small);
  align-items: baseline;
}
.math-row:last-child, .econ-row:last-child { border-bottom: none; }
.mr-label, .er-label { color: var(--graphite); }
.mr-mid, .er-val { color: var(--ember); font-weight: 600; font-family: var(--font-mono); }
.mr-val { color: var(--ink); font-weight: 500; }
.er-note { color: var(--stone); font-size: 0.75rem; }

/* Waterfall (Economics tool) */
.waterfall { display: flex; flex-direction: column; gap: var(--s-3); margin-bottom: var(--s-4); }
.wf-tier { border-left: 2px solid var(--ember); padding-left: var(--s-3); }
.wf-tier-head { display: flex; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-1); }
.wf-tier-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.wf-tier-note { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--stone); letter-spacing: 0.06em; }
.wf-tier-bars { display: flex; gap: 2px; height: 32px; }
.wf-bar {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}
.wf-bar.lp { background: var(--bone); color: var(--ink); }
.wf-bar.sp { background: var(--ember-soft); color: var(--ink); }
.wf-bar.gp { background: var(--ember); color: var(--paper); }

/* 100-day plan timeline */
.plan-timeline { display: flex; flex-direction: column; gap: var(--s-4); }
.plan-phase { border-top: 1px solid var(--ink); padding-top: var(--s-3); }
.phase-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s-2); gap: var(--s-3); }
.phase-name { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); }
.phase-dates { font-size: 0.75rem; color: var(--ember); font-weight: 500; letter-spacing: 0.04em; }
.phase-items { list-style: none; padding: 0; margin: 0; }
.phase-items li {
  padding: 8px 0;
  border-bottom: 1px solid var(--bone);
  font-size: 0.9375rem;
  color: var(--graphite);
  padding-left: 20px;
  position: relative;
}
.phase-items li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ember);
  font-family: var(--font-display);
}
.phase-items li:last-child { border-bottom: none; }

@media (max-width: 960px) {
  .tool-layout { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* --- Skip / focus ----------------------------------- */
.skip { position: absolute; left: -9999px; top: 0; padding: 8px 12px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 16px; top: 16px; z-index: 100; }
a:focus-visible, button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* --- Responsive ------------------------------------- */
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .hero-grid, .split-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero { min-height: auto; padding: var(--s-6) 0; }
  .statement, .split { min-height: auto; padding: var(--s-6) 0; }
  .closings-grid { grid-template-columns: repeat(2, 1fr); }
  .capital-timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .moves li { grid-template-columns: 80px 1fr; }
  .moves li::before { font-size: 2.5rem; }
  .tracker li { grid-template-columns: 1fr; gap: var(--s-2); }
  .pillars-grid, .steps-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .summary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: var(--gutter-mobile); }
  .site-nav { display: none; }
  .site-nav.show-on-mobile { display: flex; gap: var(--s-2); }
  .site-nav .button { padding: 10px 16px; font-size: var(--size-micro); }
  .closings-grid { grid-template-columns: 1fr; }
  .capital-timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .browse-grid { grid-template-columns: 1fr; }
}

/* ---- Mobile nav drawer ---------------------------------------------- */
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-header { position: sticky; }
  .site-header .wrap { position: relative; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px; height: 20px;
    background: none; border: 0; padding: 0; cursor: pointer;
    z-index: 30;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--ink); border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease;
    transform-origin: center;
  }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .site-nav,
  .site-nav.show-on-mobile {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: var(--s-3) var(--gutter);
    box-shadow: 0 8px 24px rgba(14, 17, 22, 0.08);
    border-top: 1px solid var(--bone);
  }
  .site-header.nav-open .site-nav,
  .site-header.nav-open .site-nav.show-on-mobile {
    display: flex;
  }
  .site-nav a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--bone);
    color: var(--ink);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .button {
    margin-top: 8px;
    justify-content: center;
    text-align: center;
    padding: 14px 20px;
  }

  /* Tighten hero for narrow screens */
  .hero { min-height: auto; padding: var(--s-5) 0 var(--s-6); }
}
