/* =========================================================
   StoryOps — pitchpage
   Editorial executive memo. Warm bone + ink + vermilion.
   ========================================================= */

:root {
  /* Palette — warm, hand-pressed paper */
  --paper:       #F4EEE3;
  --paper-2:     #EAE2D2;
  --paper-3:     #DDD3BE;
  --ink:         #1A1614;
  --ink-2:       #3A322C;
  --ink-3:       #6B5F52;
  --ink-4:       #9D9082;
  --rule:        rgba(26, 22, 20, 0.14);
  --rule-strong: rgba(26, 22, 20, 0.32);

  /* Accents */
  --accent:        #C4452C;   /* vermilion */
  --accent-deep:   #8E2B1A;
  --accent-soft:   #E8AD9A;

  /* The single Microsoft tie — used only in the brand mark */
  --brand:         #5A2D8F;

  /* Type stacks */
  --font-display: 'Inria Serif', 'Times New Roman', serif;
  --font-body:    'Inria Serif', 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Rhythm */
  --measure: 64ch;
  --col:     720px;
  --col-wide: 960px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "ss02", "kern";
  font-size: 18.5px;
  line-height: 1.62;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain for paper feel */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.25 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* Selection */
::selection {
  background: var(--ink);
  color: var(--paper);
}

/* Reading progress bar (top) */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 1000;
  transition: width 80ms linear;
}

/* =========================================================
   TOC — sticky left rail
   ========================================================= */
.toc {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  padding: 40px 28px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--paper);
  z-index: 50;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

.toc::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.toc__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.toc__mark {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.toc__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.toc__brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-variation-settings: "opsz" 40, "SOFT" 30;
  letter-spacing: -0.01em;
}

.toc__brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 4px;
}

.toc__list,
.toc__sub {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.toc__list > li {
  position: relative;
}

.toc__list a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  text-decoration: none;
  color: var(--ink-3);
  transition: color 220ms var(--ease-out), transform 280ms var(--ease-out);
  position: relative;
}

.toc__list a:hover {
  color: var(--ink);
}

.toc__list a.is-active {
  color: var(--ink);
}

.toc__list a.is-active::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 1px;
  background: var(--accent);
  animation: nav-mark 320ms var(--ease-out);
}

@keyframes nav-mark {
  from { width: 0; opacity: 0; }
  to   { width: 16px; opacity: 1; }
}

.toc__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}

.toc__list a.is-active .toc__num { color: var(--accent); }

.toc__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 40;
  letter-spacing: -0.005em;
}

.toc__sub {
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 380ms var(--ease-out);
}

.toc__list > li:has(> a.is-active) .toc__sub,
.toc__list > li:has(> a.is-parent-active) .toc__sub {
  max-height: 280px;
}

.toc__sub a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 5px 0;
  display: block;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.toc__sub a:hover { color: var(--ink-2); }
.toc__sub a.is-active { color: var(--accent); }

.toc__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  text-transform: uppercase;
}

.toc__meta-link {
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 0 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.toc__meta-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Mobile TOC trigger */
.toc-trigger {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 12px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(26, 22, 20, 0.18);
}

.toc-trigger__bar {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.toc-trigger__bar::before,
.toc-trigger__bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.toc-trigger__bar::before { top: -5px; }
.toc-trigger__bar::after  { top: 5px; }

/* =========================================================
   Page layout
   ========================================================= */
.page {
  margin-left: 280px;
  padding: 56px 80px 80px;
  max-width: calc(var(--col-wide) + 200px);
  position: relative;
}

/* Section base */
.section {
  padding: 140px 0;
  border-top: 1px solid var(--rule);
  position: relative;
}

.section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.section__rule {
  flex: 0 0 40px;
  height: 1px;
  background: var(--rule-strong);
}

.section__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 24px 0 56px;
  max-width: var(--col);
  position: relative;
}

.hero__topline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 40px;
}

.hero__chip {
  background: var(--ink);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 0.16em;
}

.hero__dot { color: var(--ink-4); }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 25;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
}

.hero__line {
  display: block;
}

.hero__line--em em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--accent);
  font-weight: 400;
}

.hero__sub {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 80;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--ink-2);
  margin: 0 0 48px;
  max-width: 28ch;
  line-height: 1.3;
}

/* Memo (For / From / Re) */
.memo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 56px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: 580px;
}

.memo__row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: baseline;
}

.memo dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}

.memo dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
}

.hero__begin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  transition: gap 280ms var(--ease-out), color 180ms;
}

.hero__begin:hover {
  gap: 16px;
  color: var(--accent);
  border-color: var(--accent);
}

/* =========================================================
   Display type
   ========================================================= */
.display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 35;
  font-weight: 400;
  margin: 0 0 24px;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 18ch;
}

.display em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  color: var(--accent);
}

.display--xl { font-size: clamp(56px, 8vw, 96px); }
.display--lg { font-size: clamp(44px, 6vw, 72px); }

.display__sub {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--ink-2);
  margin: 0 0 56px;
  max-width: 40ch;
  line-height: 1.34;
}

/* Body prose */
.section p {
  max-width: 60ch;
  margin: 0 0 1.4em;
}

.lede {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 70;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 56px;
  max-width: 42ch;
}

/* Pullquote */
.pullquote {
  margin: 0 0 56px;
  padding: 0;
  border-left: 2px solid var(--accent);
  padding-left: 32px;
  max-width: 56ch;
}

.pullquote blockquote { margin: 0; }

.pullquote--question p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48, "SOFT" 90;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 16px;
}

.pullquote figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Moonshot statement block */
.moonshot-stmt {
  padding: 48px 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.moonshot-stmt .display { margin-bottom: 12px; }

/* Duet (Ambition / Constraint) */
.duet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin: 40px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--rule);
}

.duet__col { position: relative; }

.duet__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.duet__body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}

.duet__body strong {
  font-weight: 600;
  color: var(--ink);
}

/* Callout / quote */
.callout {
  padding: 32px 36px;
  margin: 32px 0 56px;
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 90;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.32;
  color: var(--ink);
  max-width: 52ch;
}

/* =========================================================
   Figure / diagrams
   ========================================================= */
.figure {
  margin: 64px 0 56px;
  max-width: var(--col-wide);
}

.figure__caption-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}

.figure__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.figure__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18, "SOFT" 30;
  font-size: 15px;
  color: var(--ink-2);
}

.figure__art {
  background: var(--paper);
  padding: 32px 24px;
  border: 1px solid var(--rule);
}

.figure__art--wide { padding: 24px 16px; }

.figure__art svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--ink);
}

.figure__caption {
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 62ch;
}

/* SVG label styles */
.svg-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 500;
  fill: var(--ink-3);
}

.svg-axis text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--ink-3);
  font-weight: 500;
}

.svg-anno text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.svg-anno--bad text { fill: var(--accent); }
.svg-anno--good text { fill: var(--ink); }

.svg-legend {
  font-family: var(--font-body);
  font-size: 11px;
  fill: var(--ink);
}

.svg-stack-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: 18px;
  font-weight: 500;
  fill: var(--ink);
}

.svg-stack-sub {
  font-family: var(--font-body);
  font-size: 12px;
  fill: var(--ink-3);
}

.svg-stack-cadence {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 500;
  fill: var(--ink-3);
}

.svg-stack-axis {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  fill: var(--accent);
}

.svg-ring-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  font-weight: 500;
  fill: var(--ink-3);
}

.svg-ring-center {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 60;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.svg-ring-center-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.svg-loop-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 500;
  fill: var(--ink);
}

.svg-loop-return {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "SOFT" 60;
  font-style: italic;
  font-size: 12px;
  fill: var(--accent);
}

/* SVG text modifiers: invert fill to paper for text sitting on dark fills.
   text.is-inverted has specificity (0,1,1) so it beats the base .svg-* class rules. */
text.is-inverted { fill: var(--paper); }
text.is-soft     { opacity: 0.75; }

/* =========================================================
   Fig. 05 — 70/20/10 inversion chart
   ========================================================= */
.inv-seg--foundation { fill: var(--ink); }
.inv-seg--modules    { fill: var(--paper-3); }
.inv-seg--custom     { fill: var(--accent); }

.inv-header {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  fill: var(--ink);
  font-weight: 600;
}

.inv-sub {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "SOFT" 30;
  font-size: 12px;
  fill: var(--ink-3);
}

.inv-tick {
  stroke: var(--ink-3);
  stroke-width: 0.75;
}

.inv-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--ink);
  font-weight: 500;
}

.inv-pct--big {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 30;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  fill: var(--ink);
}

.inv-pct-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-3);
}

.inv-legend {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  fill: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
}

/* Inversion bars animate in on view, bidirectional like the Story Stack */
.figure--inversion .inv-seg {
  transform-origin: bottom center;
  transform-box: fill-box;
  transform: scaleY(0);
  opacity: 0;
  transition:
    transform 700ms var(--ease-out),
    opacity 500ms var(--ease-out);
}

.figure--inversion.is-visible .inv-seg {
  transform: scaleY(1);
  opacity: 1;
}

/* Stagger: foundation first (it's the base, both columns), then modules, then custom */
.figure--inversion .inv-seg--foundation { transition-delay: 80ms; }
.figure--inversion .inv-seg--modules    { transition-delay: 280ms; }
.figure--inversion .inv-seg--custom     { transition-delay: 480ms; }

/* Connector ticks + text fade in after the bars settle */
.figure--inversion .inv-tick,
.figure--inversion .inv-pct,
.figure--inversion .inv-pct--big,
.figure--inversion .inv-pct-label {
  opacity: 0;
  transition: opacity 420ms var(--ease-out) 680ms;
}

.figure--inversion.is-visible .inv-tick,
.figure--inversion.is-visible .inv-pct,
.figure--inversion.is-visible .inv-pct--big,
.figure--inversion.is-visible .inv-pct-label {
  opacity: 1;
}
.figure--inversion.is-visible .inv-tick { opacity: 0.7; }

/* Customs in tomorrow column don't scale from bottom (they're at top, small) —
   keep the same animation since scaleY origin handles it visually */

/* =========================================================
   Fig. 06 — Self-sustaining loop (Make ↔ Deliver)
   ========================================================= */
.loop-arrow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  opacity: 0.85;
}

.loop-circle {
  fill: var(--ink);
}

.loop-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  fill: var(--paper);
  opacity: 0.55;
  font-weight: 500;
}

.loop-title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48, "SOFT" 40;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  fill: var(--paper);
}

.loop-sub {
  font-family: var(--font-body);
  font-size: 12.5px;
  fill: var(--paper);
  opacity: 0.78;
}

.loop-edge-label {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14, "SOFT" 70;
  font-style: italic;
  font-size: 12px;
  fill: var(--accent);
  letter-spacing: 0.02em;
}

.loop-pulse {
  fill: var(--accent);
  /* Path traces: top arrow → into Deliver → bottom arrow → into Make → close.
     Diagonals into circle centers pass behind the dark circle fill, so the
     pulse vanishes for the "work happens in the dark" beat. */
  offset-path: path("M 310 130 Q 360 50 410 130 L 480 200 L 410 270 Q 360 350 310 270 L 240 200 Z");
  offset-distance: 0%;
  animation: loop-travel 8s linear infinite;
  /* Slight glow on the pulse for emphasis */
  filter: drop-shadow(0 0 4px rgba(196, 69, 44, 0.45));
}

@keyframes loop-travel {
  to { offset-distance: 100%; }
}

/* Figure entrance: fade + lift, bidirectional via [data-animate] */
.figure--loop {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms var(--ease-out),
    transform 800ms var(--ease-out);
}
.figure--loop.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* When the figure is off-screen, pause the pulse to save GPU + avoid
   the pulse "jumping" when scrolled back into view */
.figure--loop:not(.is-visible) .loop-pulse {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .loop-pulse { animation: none; }
  .figure--loop { opacity: 1; transform: none; }
}

/* =========================================================
   Back of the napkin (business case in Stakes)
   ========================================================= */
.napkin {
  background: var(--paper);
  color: var(--ink);
  padding: 40px 44px 44px;
  margin: 64px 0 0;
  border: 1px solid var(--paper-3);
  position: relative;
  clear: both;
}

/* corner mark — small graphic cue, like a paper clip or fold */
.napkin::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, transparent 50%, var(--paper-2) 50%);
  border-right: 1px solid var(--paper-3);
  border-bottom: 1px solid var(--paper-3);
}

.napkin__top {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.napkin__chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 14px;
}

.napkin__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 40;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
  max-width: 60ch;
  letter-spacing: -0.005em;
}

.napkin__givens {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.napkin__given {
  padding: 18px 24px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.napkin__given:last-child {
  border-left: 1px solid var(--rule);
  padding-left: 28px;
  padding-right: 0;
}

.napkin__given dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}

.napkin__given dd {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
}

.napkin__given dd strong {
  color: var(--ink);
  font-weight: 600;
}

.napkin__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.napkin__col {
  padding: 24px 24px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.napkin__col--good {
  border-left: 1px solid var(--rule);
  padding-left: 28px;
  padding-right: 0;
}

.napkin__col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.napkin__col--bad .napkin__col-label  { color: var(--accent); }
.napkin__col--good .napkin__col-label { color: var(--ink); }

.napkin__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.napkin__steps li {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.45;
}

.napkin__steps strong {
  color: var(--ink);
  font-weight: 600;
}

.napkin__big {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin: 12px 0 0;
}

.napkin__big--bad { color: var(--accent); }

.napkin__big span {
  font-size: 0.34em;
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 100;
  color: var(--ink-3);
  margin-left: 0.1em;
  letter-spacing: 0;
  font-weight: 500;
}

.napkin__big--bad span { color: var(--accent); opacity: 0.7; }

.napkin__col-sub {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-3);
  margin: 0;
  max-width: 26ch;
}

.napkin__delta {
  padding: 20px 28px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.napkin__delta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 500;
}

.napkin__delta-value {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 60;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.napkin__delta-value strong {
  color: var(--paper);
  font-weight: 500;
}

.napkin__scale {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 68ch;
}

.napkin__scale strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 720px) {
  .napkin { padding: 32px 28px; }
  .napkin__givens { grid-template-columns: 1fr; }
  .napkin__given:last-child {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 16px;
  }
  .napkin__compare { grid-template-columns: 1fr; }
  .napkin__col--good {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 24px;
  }
  .napkin__delta { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Stroke-draw animation for chart curves */
.anim-draw {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}

.is-revealed .anim-draw {
  animation: draw 2200ms var(--ease-out) 200ms forwards;
}

.is-revealed .anim-draw--alt {
  animation: draw 1800ms var(--ease-out) 100ms forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* Loop diagram pulse */
.is-revealed .loop-return path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2400ms var(--ease-out) 600ms forwards;
}

/* =========================================================
   Stakes / Results — Big number grid
   ========================================================= */
.section--dark {
  background: var(--ink);
  color: var(--paper);
  margin: 80px -120px;
  padding: 140px 120px;
  border-top: none;
  border-bottom: none;
}

.section--dark .section__rule { background: rgba(244, 238, 227, 0.2); }
.section--dark .section__kicker { color: var(--paper-3); }
.section--dark .display { color: var(--paper); }

.bignum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 56px;
}

.section--dark .bignum-grid { background: rgba(244, 238, 227, 0.14); }

.bignum {
  padding: 56px 40px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.bignum__value {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 25;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: var(--ink);
}

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

.bignum__value--text {
  font-size: clamp(36px, 5vw, 64px);
  font-variation-settings: "opsz" 96, "SOFT" 35;
  line-height: 1.04;
}

.bignum__plus,
.bignum__unit {
  color: var(--accent);
  font-size: 0.5em;
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100;
  margin-left: 0.08em;
  display: inline-block;
  vertical-align: top;
  line-height: 1.4;
}

.bignum__unit {
  font-size: 0.32em;
  font-family: var(--font-display);
  margin-left: 0.16em;
  letter-spacing: 0;
}

.bignum__sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 28ch;
}

.section--dark .bignum__sub { color: var(--paper-3); }

/* =========================================================
   Solution sub-sections
   ========================================================= */
.section--solution > .display { margin-bottom: 8px; }

.sub {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}

.sub__header { margin-bottom: 40px; }

.sub__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.sub__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 40;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
}

.sub__lead {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18, "SOFT" 40;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 54ch;
  margin: 0;
}

.sub__kicker-line {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 60;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin: 32px 0 0;
}

/* Layer cards */
.layer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 0 32px;
}

.layer-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.layer-card__bar {
  height: 4px;
  width: 48px;
  background: var(--ink);
}

.layer-card__bar[data-tier="1"] { background: var(--ink); }
.layer-card__bar[data-tier="2"] { background: var(--accent); }
.layer-card__bar[data-tier="3"] { background: var(--accent-soft); }

.layer-card__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 30, "SOFT" 50;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

.layer-card__what {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  flex: 1;
}

.layer-card__cadence {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.layer-card__cadence span {
  color: var(--ink-4);
  margin-right: 8px;
}

/* =========================================================
   Audiences (03.2) — 4 role cards in a 2x2 grid
   ========================================================= */
.audiences-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 0 0 40px;
}

.audience {
  background: var(--paper);
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: background 240ms var(--ease-out);
}

.audience:hover { background: var(--paper-2); }

.audience__seg {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-4);
  font-weight: 500;
  margin-bottom: 8px;
}

.audience__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36, "SOFT" 45;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  line-height: 1.05;
  color: var(--ink);
}

.audience__who {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 20px;
}

.audience__jtbd-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  margin: 0 0 8px;
}

.audience__jtbd-quote {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 90;
  font-style: italic;
  font-size: 18px;
  line-height: 1.38;
  color: var(--accent);
  margin: 0 0 8px;
  max-width: none;
  letter-spacing: -0.005em;
}

.audience__nwe {
  margin: 4px 0 0;
  margin-top: auto;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audience__nwe-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: baseline;
}

.audience__nwe-row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  line-height: 1.5;
}

.audience__nwe-row dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Legacy class kept for backwards-compat in case any audience markup still uses it */
.audience__q {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.36;
  color: var(--accent);
  margin: auto 0 0;
}

/* Kit (deliverable formats) */
.kit {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 32px;
}

.kit__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

.kit__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kit__list li {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 40;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 7px 16px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}

.kit__list li:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.kit__sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 60ch;
}

.audiences__closer {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 28, "SOFT" 60;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.38;
  color: var(--ink);
  margin: 16px 0 0;
  max-width: 52ch;
}

.audiences__closer em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 28, "SOFT" 100;
}

@media (max-width: 600px) {
  .audiences-grid { grid-template-columns: 1fr; }
}

/* Roles grid */
.roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  margin: 0 0 24px;
  border: 1px solid var(--rule);
}

.role {
  background: var(--paper);
  padding: 28px 24px;
}

.role--bridge {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(196, 69, 44, 0.08), transparent 42%),
    var(--paper);
}

.role--bridge .role__what {
  max-width: 76ch;
}

.role__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.role__who {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 28, "SOFT" 40;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
}

.role__what {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pillar {
  padding: 40px 28px;
  border-right: 1px solid var(--rule);
  position: relative;
}

.pillar:last-child { border-right: none; }

.pillar__letter {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-style: italic;
  font-size: 96px;
  line-height: 0.85;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
}

.pillar__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32, "SOFT" 60;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 12px;
}

.pillar__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* Tools grid */
.tools {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 0 0 32px;
}

.tool {
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background 240ms var(--ease-out);
}

.tool:hover { background: var(--paper-2); }

.tool__art {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool:hover .tool__art { background: var(--paper); }

.tool-anim {
  width: 80%;
  height: 80%;
  color: var(--ink-2);
}

.tool__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.tool__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 28, "SOFT" 50;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.tool__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* ----- Tooling micro-animations ----- */

/* Brief: input lines fade, arrow pulses, output lines stagger in */
.tool-anim--brief .brief-input line {
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: 0.6;
  animation: brief-fade 4.5s ease-in-out infinite;
}
.tool-anim--brief .brief-input line:nth-child(2) { animation-delay: 0.15s; }
.tool-anim--brief .brief-input line:nth-child(3) { animation-delay: 0.3s; }
.tool-anim--brief .brief-input line:nth-child(4) { animation-delay: 0.45s; }
.tool-anim--brief .brief-input line:nth-child(5) { animation-delay: 0.6s; }
.tool-anim--brief .brief-input line:nth-child(6) { animation-delay: 0.75s; }
.tool-anim--brief .brief-input line:nth-child(7) { animation-delay: 0.9s; }

@keyframes brief-fade {
  0%, 60%, 100% { opacity: 0.6; }
  30% { opacity: 1; }
}

.tool-anim--brief .brief-arrow { animation: brief-arrow 4.5s ease-in-out infinite; }
@keyframes brief-arrow {
  0%, 30%, 100% { opacity: 0.4; transform: translateX(0); }
  50%, 70% { opacity: 1; transform: translateX(4px); }
}

.tool-anim--brief .brief-out-line {
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: brief-out 4.5s ease-out infinite;
}
.tool-anim--brief .brief-output g:nth-child(1) .brief-out-line,
.tool-anim--brief .brief-output line:nth-of-type(1) { animation-delay: 1.6s; }
.tool-anim--brief .brief-output line:nth-of-type(2) { animation-delay: 1.85s; }
.tool-anim--brief .brief-output line:nth-of-type(3) { animation-delay: 2.1s; }
.tool-anim--brief .brief-output line:nth-of-type(4) { animation-delay: 2.35s; }
.tool-anim--brief .brief-output line:nth-of-type(5) { animation-delay: 2.6s; }

@keyframes brief-out {
  0%, 35% { stroke-dashoffset: 60; }
  60%, 100% { stroke-dashoffset: 0; }
}

/* Intake dots flowing into tier lanes */
.tool-anim--intake .intake-dot {
  opacity: 0;
}
.tool-anim--intake .intake-dot--1 {
  animation: intake-flow-1 4.5s ease-in-out infinite;
}
.tool-anim--intake .intake-dot--2 {
  animation: intake-flow-2 4.5s ease-in-out infinite;
  animation-delay: 1.5s;
}
.tool-anim--intake .intake-dot--3 {
  animation: intake-flow-3 4.5s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes intake-flow-1 {
  0%, 6% { opacity: 0; transform: translate(48px, 70px); }
  10% { opacity: 1; }
  30%, 100% { opacity: 1; transform: translate(168px, 32px); }
}
@keyframes intake-flow-2 {
  0%, 6% { opacity: 0; transform: translate(48px, 70px); }
  10% { opacity: 1; }
  30%, 100% { opacity: 1; transform: translate(168px, 70px); }
}
@keyframes intake-flow-3 {
  0%, 6% { opacity: 0; transform: translate(48px, 70px); }
  10% { opacity: 1; }
  30%, 100% { opacity: 1; transform: translate(168px, 108px); }
}

/* Module library: search frame breathes, two cards pulse */
.tool-anim--library .library-search rect {
  animation: lib-search 4.5s ease-in-out infinite;
}
@keyframes lib-search {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.5; }
  50% { stroke-dashoffset: 20; opacity: 0.9; }
}

.tool-anim--library .library-grid g rect {
  transition: fill 240ms;
}

/* Leave-behind: arrow pulses */
.tool-anim--leave .leave-arrow { animation: leave-arrow 3s ease-in-out infinite; }
@keyframes leave-arrow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}

.tool-anim--leave .leave-web rect:nth-of-type(3) {
  animation: leave-pulse 3s ease-in-out infinite;
}
@keyframes leave-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Phases (rollout timeline) */
.phases {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.phase {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.phase__marker {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phase__num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48, "SOFT" 40;
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.phase__weeks {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.phase__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
}

.phase__body p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
  max-width: 56ch;
}

/* EPPC proof-point */
.proof-point {
  margin: 48px 0;
  padding: 32px 36px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.proof-point::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent);
}

.proof-point__label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.proof-point__label span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.proof-point__label strong {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 50;
  font-size: 22px;
  font-weight: 500;
  color: var(--paper);
}

.proof-point p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--paper-3);
  margin: 0;
  max-width: 64ch;
}

/* Governance */
.governance {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.governance__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 500;
}

.governance__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.governance__list li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 24px;
  position: relative;
  max-width: 60ch;
}

.governance__list li::before {
  content: '·';
  position: absolute;
  left: 8px;
  color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   Closing
   ========================================================= */
.section--closing { text-align: left; }

.closing__statement {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 32px 0 32px;
  max-width: 22ch;
}

.closing__line {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 40;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-2);
  margin: 0 0 80px;
  max-width: 44ch;
  line-height: 1.34;
}

.signoff {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}

.signoff__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 32, "SOFT" 30;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}

.signoff__role,
.signoff__org {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.closing__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-strong);
  transition: gap 280ms, color 180ms;
}

.closing__back:hover {
  color: var(--accent);
  gap: 14px;
  border-color: var(--accent);
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* =========================================================
   Four Points artifact page
   ========================================================= */
.four-points-page {
  --paper: #F7F3EA;
  --paper-2: #ECE3D4;
}

.four-hero {
  min-height: calc(100dvh - 120px);
  padding: 24px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 860px;
}

.four-hero__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 38;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.84;
  letter-spacing: -0.055em;
  margin: 20px 0 28px;
}

.four-hero__title em {
  font-style: italic;
  color: var(--accent);
}

.four-hero__sub {
  max-width: 660px;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.25;
  color: var(--ink-2);
  margin: 0 0 36px;
}

.four-artifact .lede,
.four-point-section .lede,
.four-canvas .lede {
  max-width: 760px;
}

.four-diagram {
  margin: 72px 0 0;
}

.four-diagram__paper {
  background: #fbfaf5;
  border: 1px solid rgba(26, 22, 20, 0.18);
  box-shadow: 0 22px 70px rgba(26, 22, 20, 0.12);
  padding: clamp(14px, 2vw, 28px);
  transform: rotate(-0.35deg);
}

.four-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--ink);
}

.four-svg-kicker,
.four-point__title,
.four-point__copy {
  font-family: var(--font-mono);
  fill: currentColor;
}

.four-svg-kicker {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.four-point__title {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.four-point__title--strategy {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  paint-order: stroke fill;
}

.four-point__copy {
  font-size: 22px;
  letter-spacing: -0.035em;
}

.four-axis__line,
.four-axis__tick,
.four-axis__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.four-axis__line {
  stroke-dasharray: 650;
  stroke-dashoffset: 650;
  transition: stroke-dashoffset 1100ms var(--ease-out);
}

.four-axis__line--horizontal {
  transition-delay: 160ms;
}

.four-axis__tick,
.four-axis__arrow,
.four-point {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms var(--ease-out), transform 720ms var(--ease-out);
}

.four-diagram.is-visible .four-axis__line {
  stroke-dashoffset: 0;
}

.four-diagram.is-visible .four-axis__tick,
.four-diagram.is-visible .four-axis__arrow,
.four-diagram.is-visible .four-point {
  opacity: 1;
  transform: translateY(0);
}

.four-diagram.is-visible .four-point--problem { transition-delay: 360ms; }
.four-diagram.is-visible .four-point--insight { transition-delay: 520ms; }
.four-diagram.is-visible .four-point--advantage { transition-delay: 640ms; }
.four-diagram.is-visible .four-point--strategy { transition-delay: 820ms; }
.four-diagram.is-visible .four-axis__tick { transition-delay: 920ms; }
.four-diagram.is-visible .four-axis__arrow { transition-delay: 1020ms; }

.moonshot-four {
  padding-top: clamp(96px, 13vw, 156px);
}

.moonshot-diagram .four-diagram__paper {
  background:
    linear-gradient(135deg, rgba(196, 69, 44, 0.08), transparent 30%),
    #fbfaf5;
  transform: rotate(0.28deg);
}

.moonshot-svg-note,
.moonshot-point__micro {
  font-family: var(--font-mono);
  fill: var(--accent);
}

.moonshot-svg-note {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.moonshot-point__micro {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.moonshot-node .four-point__copy {
  font-size: 20px;
}

.moonshot-translation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 36px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}

.moonshot-translation article {
  background: var(--paper);
  padding: 28px;
}

.moonshot-translation span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.moonshot-translation p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
}

.moonshot-strategy-line {
  margin-top: 36px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--ink);
  color: var(--paper);
}

.moonshot-strategy-line p {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 38, "SOFT" 44;
  font-size: clamp(27px, 3.3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.four-guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 56px 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.four-guides article {
  padding: 30px 28px;
  border-right: 1px solid var(--rule);
}

.four-guides article:last-child {
  border-right: none;
}

.four-guides__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.four-guides p {
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.45;
}

.four-guides--split {
  background: rgba(255, 255, 255, 0.22);
}

.advantage-lens {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}

.advantage-lens__ring {
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(196, 69, 44, 0.1) 35% 36%, transparent 37%),
    radial-gradient(circle at 50% 50%, transparent 0 62%, rgba(26, 22, 20, 0.12) 63% 64%, transparent 65%);
}

.advantage-lens__ring span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--paper);
  padding: 4px 8px;
}

.advantage-lens__ring span:nth-child(1) { top: 18px; left: 50%; transform: translateX(-50%); }
.advantage-lens__ring span:nth-child(2) { left: -16px; top: 50%; transform: translateY(-50%) rotate(-6deg); }
.advantage-lens__ring span:nth-child(3) { right: 12px; bottom: 34px; transform: rotate(5deg); }

.advantage-lens__copy {
  max-width: 560px;
}

.advantage-lens__copy p {
  color: var(--ink-2);
  font-size: 21px;
  line-height: 1.44;
}

.strategy-statement {
  margin-top: 52px;
  padding: clamp(30px, 5vw, 56px);
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.strategy-statement::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(244, 238, 227, 0.22);
  pointer-events: none;
}

.strategy-statement__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 22px;
}

.strategy-statement p {
  max-width: 840px;
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 42, "SOFT" 45;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.strategy-statement strong {
  color: var(--accent-soft);
  font-weight: 500;
}

.canvas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 56px 0;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}

.canvas-card {
  min-height: 240px;
  padding: 28px;
  background: var(--paper);
}

.canvas-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 64px;
}

.canvas-card p {
  max-width: 28ch;
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 34, "SOFT" 42;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.canvas-card--strategy {
  background: var(--ink);
  color: var(--paper);
}

.canvas-card--strategy span {
  color: var(--accent-soft);
}

@media (max-width: 900px) {
  .four-guides,
  .canvas-grid,
  .moonshot-translation,
  .advantage-lens {
    grid-template-columns: 1fr;
  }
  .four-guides article {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .four-guides article:last-child {
    border-bottom: none;
  }
  .advantage-lens__ring {
    width: min(320px, 100%);
  }
}

@media (max-width: 640px) {
  .four-diagram__paper {
    overflow-x: auto;
  }
  .four-diagram svg {
    min-width: 820px;
  }
  .canvas-card {
    min-height: 190px;
  }
  .canvas-card span {
    margin-bottom: 42px;
  }
}

/* =========================================================
   Bridge section — quiet interlude
   ========================================================= */
.section--bridge {
  padding: 64px 0 80px;
  border-top: none;
  max-width: 720px;
}

.bridge__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.bridge__rule {
  flex: 0 0 56px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.bridge__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.bridge__lede {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18, "SOFT" 60;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 60ch;
}

.pullquote--bridge {
  margin: 32px 0;
  padding: 0;
  border-left: none;
  padding-left: 0;
  text-align: left;
  max-width: 64ch;
}

.pullquote--bridge blockquote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  font-size: 96px;
  line-height: 0.4;
  color: var(--accent);
  margin-bottom: 16px;
  margin-left: -8px;
}

.pullquote--bridge p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 48, "SOFT" 80;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.32;
  color: var(--ink);
  margin: 0 0 16px;
}

.bridge__close {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24, "SOFT" 60;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  margin: 32px 0 0;
  max-width: 56ch;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.bridge__close em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "opsz" 24, "SOFT" 100;
}

/* =========================================================
   Marginalia pullquotes
   ========================================================= */
.aside-quote {
  float: right;
  clear: right;
  width: clamp(220px, 22vw, 260px);
  margin: 8px 0 28px 36px;
  padding: 16px 0 16px 18px;
  border-left: 2px solid var(--accent);
  position: relative;
}

.aside-quote p {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 16, "SOFT" 80;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: none;
}

.aside-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Marginalia floats only read well when body prose wraps beside them.
   When an aside-quote sits inside a sub-header or stands alone as a direct
   child of a sub-section (nothing flowing to its left), float it as a
   full-width inset block instead — otherwise it leaves a dead gutter. */
.sub__header .aside-quote,
.sub > .aside-quote {
  float: none;
  clear: both;
  width: auto;
  max-width: 60ch;
  margin: 28px 0;
  padding: 4px 0 4px 22px;
}

/* Make sure heavy block elements clear floats */
.figure,
.layer-cards,
.roles,
.pillars,
.tools,
.phases,
.bignum-grid,
.duet,
.moonshot-stmt,
.callout,
.pullquote,
.sub,
.proof-point,
.governance,
.section__header,
.tool-bridge,
.audiences-grid,
.kit,
.audiences__closer {
  clear: both;
}

.tool-bridge {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18, "SOFT" 40;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-2);
  margin: 32px 0 32px;
  max-width: 54ch;
  line-height: 1.45;
}

/* =========================================================
   Story Stack — bidirectional animation
   ========================================================= */
.figure--story-stack .stack-layer,
.figure--story-stack .stack-arrow {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 700ms var(--ease-out),
    transform 850ms var(--ease-out);
}

.figure--story-stack .stack-layer--foundation {
  transform: translateY(28px);
  transition-delay: 80ms;
}
.figure--story-stack .stack-layer--modules {
  transform: translateY(36px);
  transition-delay: 240ms;
}
.figure--story-stack .stack-layer--custom {
  transform: translateY(44px) scale(0.985);
  transition-delay: 420ms;
}
.figure--story-stack .stack-arrow {
  transform: translateY(8px);
  transition-delay: 640ms;
}
.figure--story-stack .stack-arrow__line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 900ms var(--ease-out) 720ms;
}
.figure--story-stack .stack-arrow__head {
  opacity: 0;
  transition: opacity 320ms var(--ease-out) 1500ms;
}

.figure--story-stack.is-visible .stack-layer,
.figure--story-stack.is-visible .stack-arrow {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.figure--story-stack.is-visible .stack-arrow {
  opacity: 0.6;
}
.figure--story-stack.is-visible .stack-arrow__line {
  stroke-dashoffset: 0;
}
.figure--story-stack.is-visible .stack-arrow__head {
  opacity: 1;
}

/* =========================================================
   Reveal animations
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.bignum-grid [data-reveal] {
  transition-delay: calc(var(--i, 0) * 100ms);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .toc { width: 240px; padding: 32px 20px; }
  .page { margin-left: 240px; padding: 80px 56px 56px; }
  .section--dark { margin: 80px -56px; padding: 100px 56px; }
}

@media (max-width: 1000px) {
  .aside-quote {
    float: none;
    width: 100%;
    max-width: 56ch;
    margin: 24px 0 32px;
  }
}

@media (max-width: 860px) {
  .toc {
    transform: translateX(-100%);
    transition: transform 320ms var(--ease-out);
    width: 320px;
    box-shadow: 0 0 32px rgba(26, 22, 20, 0);
  }
  .toc.is-open {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(26, 22, 20, 0.18);
  }
  .toc-trigger { display: inline-flex; }

  .page {
    margin-left: 0;
    padding: 80px 32px 56px;
  }

  .hero__topline { margin-bottom: 40px; }
  .hero { padding: 64px 0 48px; }

  .duet { grid-template-columns: 1fr; gap: 32px; }
  .layer-cards { grid-template-columns: 1fr; }
  .roles, .bignum-grid, .tools { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; border-top: none; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }

  .section--dark { margin: 56px -32px; padding: 80px 32px; }

  .phase { grid-template-columns: 100px 1fr; gap: 20px; }
  .phase__num { font-size: 32px; }

  .section { padding: 96px 0; }
  .sub { margin-top: 64px; padding-top: 40px; }
}

@media (max-width: 480px) {
  .page { padding: 64px 20px 40px; }
  .hero__title { font-size: clamp(44px, 14vw, 64px); }
  .memo__row { grid-template-columns: 48px 1fr; gap: 8px; }
  .section--dark { margin: 40px -20px; padding: 64px 20px; }
  .bignum { padding: 40px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .anim-draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .figure--story-stack .stack-layer,
  .figure--story-stack .stack-arrow {
    opacity: 1;
    transform: none;
  }
  .figure--story-stack .stack-arrow { opacity: 0.6; }
  .figure--story-stack .stack-arrow__line { stroke-dashoffset: 0; }
  .figure--story-stack .stack-arrow__head { opacity: 1; }
}
