@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=IBM+Plex+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --deep-bg: #f4efe7;
  --deep-paper: rgba(255, 250, 242, 0.86);
  --deep-paper-strong: #fcf8f1;
  --deep-ink: #11161d;
  --deep-muted: #5f6d78;
  --deep-border: rgba(17, 22, 29, 0.12);
  --deep-accent: #006266;
  --deep-copper: #c6703e;
  --deep-signal: #2f8cff;
  --deep-energy: #f7a24c;
  --deep-shadow: 0 24px 70px rgba(16, 22, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.deep-dives-body {
  background:
    radial-gradient(circle at top left, rgba(47, 140, 255, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(247, 162, 76, 0.2), transparent 22%),
    linear-gradient(180deg, #f7f1e8 0%, #f4efe7 26%, #ece7de 100%);
  color: var(--deep-ink);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  min-height: 100vh;
}

.deep-site-header {
  backdrop-filter: blur(14px);
  background: rgba(252, 248, 241, 0.62);
  border-bottom: 1px solid rgba(17, 22, 29, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.deep-site-header--reading {
  background: rgba(252, 248, 241, 0.5);
}

.deep-site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
  padding: 18px 28px;
}

.deep-site-brand-block {
  align-items: baseline;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.deep-site-brand {
  color: var(--deep-accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.deep-site-meta {
  color: var(--deep-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.deep-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.deep-site-links a {
  color: rgba(17, 22, 29, 0.74);
  font-weight: 500;
  text-decoration: none;
}

.deep-site-links a.active {
  color: var(--deep-accent);
}

.deep-main {
  box-sizing: border-box;
  display: block;
  margin: 0 auto;
  max-width: 1280px;
  padding: 40px 28px 96px;
  width: 100%;
}

.deep-dives-hub .deep-main {
  max-width: 1180px;
  padding-top: 56px;
}

.eyebrow {
  color: var(--deep-accent);
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.page-title,
.chapter-title,
.metric-value,
.sim-output-value,
.waste-value {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.deep-hero,
.page-hero {
  background:
    linear-gradient(135deg, rgba(10, 17, 26, 0.98), rgba(22, 34, 40, 0.95) 54%, rgba(0, 98, 102, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  box-shadow: var(--deep-shadow);
  color: #fdf8f1;
  overflow: hidden;
  padding: 48px;
  position: relative;
}

.deep-hero::before,
.page-hero::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 5%, transparent 6% 100%) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  content: '';
  inset: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 80%);
  opacity: 0.18;
  position: absolute;
}

.deep-hero::after,
.page-hero::after {
  animation: signalPulse 8s linear infinite;
  background:
    radial-gradient(circle at 30% 40%, rgba(47, 140, 255, 0.34), transparent 22%),
    radial-gradient(circle at 72% 26%, rgba(247, 162, 76, 0.32), transparent 18%),
    radial-gradient(circle at 78% 76%, rgba(255, 255, 255, 0.12), transparent 14%);
  content: '';
  inset: -12%;
  position: absolute;
}

.hero-content,
.page-hero-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  position: relative;
  z-index: 1;
}

.hero-title,
.page-title {
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  margin: 16px 0 20px;
}

.hero-subtitle,
.page-subtitle {
  color: rgba(253, 248, 241, 0.78);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
  max-width: 720px;
}

.hero-note,
.page-note {
  color: rgba(253, 248, 241, 0.68);
  font-size: 0.92rem;
  margin-top: 18px;
}

.hero-stats,
.hero-panels {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.hero-stat,
.panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 18px 20px;
}

.panel {
  min-height: 132px;
  overflow: hidden;
  position: relative;
}

.panel::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  content: '';
  height: 1px;
  left: 0;
  opacity: 0.7;
  position: absolute;
  top: 50%;
  width: 100%;
}

.signal-ribbons {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.signal-ribbon {
  animation: drift 9s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(47, 140, 255, 0.18), rgba(247, 162, 76, 0.72), rgba(47, 140, 255, 0.18));
  border-radius: 999px;
  height: 14px;
  position: relative;
}

.signal-ribbon::before {
  animation: flow 4.6s linear infinite;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  content: '';
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 20%;
}

.signal-ribbon:nth-child(2) {
  animation-delay: -2s;
}

.signal-ribbon:nth-child(3) {
  animation-delay: -4s;
}

.hero-stat-label {
  color: rgba(253, 248, 241, 0.64);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-label,
.mini-label,
.sim-output-label,
.source-list-title {
  color: var(--deep-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-stat-value {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 8px;
}

.hero-stat-copy,
.metric-copy,
.mini-copy,
.sim-output-copy,
.surface-copy,
.section-copy,
.waste-copy,
.source-copy,
.chapter-intro {
  line-height: 1.7;
}

.hero-stat-copy {
  color: rgba(253, 248, 241, 0.72);
}

.metric-copy,
.mini-copy,
.sim-output-copy,
.surface-copy,
.section-copy,
.waste-copy,
.source-copy,
.chapter-intro {
  color: var(--deep-muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.deep-button,
.ghost-button,
.jump-pill,
.lens-button,
.waste-button,
.token-button {
  border: 0;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.deep-button {
  background: linear-gradient(135deg, var(--deep-energy), var(--deep-copper));
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(198, 112, 62, 0.22);
  color: #0f1317;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  padding: 14px 22px;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 600;
  padding: 14px 20px;
}

.deep-button:hover,
.ghost-button:hover,
.jump-pill:hover,
.lens-button:hover,
.waste-button:hover,
.token-button:hover {
  transform: translateY(-2px);
}

.section-block {
  margin-top: 30px;
}

.hub-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 30px;
}

.featured-dive-card,
.process-card,
.future-card,
.chapter,
.chapter-card,
.surface-card,
.metric-card,
.token-card,
.playbook-card,
.compare-card,
.source-card,
.waste-panel,
.simulator-card,
.power-card,
.scorecard,
.quick-card {
  background: var(--deep-paper);
  border: 1px solid var(--deep-border);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(17, 22, 29, 0.06);
}

.featured-dive-card {
  color: var(--deep-ink);
  display: grid;
  gap: 24px;
  grid-column: span 12;
  grid-template-columns: minmax(0, 1fr) 220px;
  overflow: hidden;
  padding: 32px;
  text-decoration: none;
}

.featured-dive-card:hover {
  color: var(--deep-ink);
}

.featured-gradient {
  background:
    radial-gradient(circle at 22% 30%, rgba(47, 140, 255, 0.75), transparent 24%),
    radial-gradient(circle at 72% 60%, rgba(247, 162, 76, 0.8), transparent 20%),
    linear-gradient(145deg, #11161d, #20343d 60%, #23494b);
  border-radius: 24px;
  min-height: 220px;
  position: relative;
}

.featured-gradient::before,
.featured-gradient::after {
  content: '';
  position: absolute;
}

.featured-gradient::before {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  inset: 18px;
}

.featured-gradient::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  height: 2px;
  left: 18px;
  top: 50%;
  width: calc(100% - 36px);
}

.featured-kicker {
  color: var(--deep-accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.featured-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  margin: 14px 0;
}

.featured-meta {
  color: var(--deep-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.featured-arrow {
  color: var(--deep-copper);
  font-weight: 700;
  margin-top: 20px;
}

.process-card,
.future-card {
  padding: 24px;
}

.card-title,
.chapter-title {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1;
  margin: 12px 0 16px;
}

.section-title {
  font-size: 1.9rem;
  margin: 0 0 18px;
}

.page-hero {
  margin-bottom: 28px;
}

.page-hero-grid {
  align-items: start;
}

.quick-facts {
  display: grid;
  gap: 14px;
}

.quick-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  padding: 18px;
}

.quick-title {
  color: rgba(253, 248, 241, 0.74);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quick-value {
  color: #fdf8f1;
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  line-height: 1;
  margin: 10px 0;
}

.quick-card .mini-copy {
  color: rgba(253, 248, 241, 0.72);
}

.read-progress {
  background: rgba(17, 22, 29, 0.08);
  height: 4px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1035;
}

.read-progress-bar {
  background: linear-gradient(90deg, var(--deep-signal), var(--deep-energy));
  height: 100%;
  width: 0;
}

.article-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 280px minmax(0, 1fr);
}

.toc-panel {
  align-self: start;
  position: sticky;
  top: 90px;
}

.toc-card,
.chapter,
.source-card,
.scorecard {
  padding: 28px;
}

.toc-card {
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid var(--deep-border);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(17, 22, 29, 0.05);
}

.toc-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.toc-link {
  border-left: 2px solid transparent;
  color: var(--deep-muted);
  padding: 8px 0 8px 12px;
  text-decoration: none;
}

.toc-link.active {
  border-color: var(--deep-accent);
  color: var(--deep-ink);
  font-weight: 700;
}

.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.jump-pill {
  background: rgba(17, 22, 29, 0.06);
  border-radius: 999px;
  color: var(--deep-ink);
  padding: 10px 14px;
}

.page-hero .jump-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fdf8f1;
}

.chapters {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.chapters > * {
  width: 100%;
}

.chapter {
  background: var(--deep-paper);
  border: 1px solid var(--deep-border);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(17, 22, 29, 0.06);
  overflow: hidden;
  position: relative;
}

.chapter::before {
  background: linear-gradient(180deg, rgba(247, 162, 76, 0.16), transparent 70%);
  content: '';
  inset: 0 0 auto 0;
  height: 140px;
  position: absolute;
}

.chapter-header,
.chapter-grid,
.chapter-stack,
.sources-grid {
  position: relative;
  z-index: 1;
}

.chapter-header {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.chapter-number {
  color: var(--deep-copper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.chapter-summary {
  color: var(--deep-muted);
  font-size: 1rem;
  max-width: 260px;
}

.chapter-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 22px;
}

.chapter-card,
.surface-card,
.metric-card,
.token-card,
.playbook-card,
.compare-card,
.power-card,
.simulator-card,
.waste-panel {
  padding: 24px;
}

.chapter-card--wide,
.simulator-card,
.waste-panel,
.scorecard {
  grid-column: span 12;
}

.chapter-card--half,
.power-card,
.compare-card {
  grid-column: span 6;
}

.chapter-card--third,
.surface-card,
.metric-card,
.token-card,
.playbook-card,
.source-card {
  grid-column: span 4;
}

.surface-title,
.metric-title,
.token-title,
.playbook-title,
.compare-title,
.source-title {
  color: var(--deep-ink);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 10px;
}

.flow-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.flow-step {
  background: linear-gradient(180deg, rgba(17, 22, 29, 0.05), rgba(17, 22, 29, 0.02));
  border: 1px solid rgba(17, 22, 29, 0.08);
  border-radius: 18px;
  min-height: 180px;
  padding: 18px;
  position: relative;
}

.flow-step::after {
  display: none;
}

.flow-step strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 12px;
}

.mini-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.mini-metric {
  background: rgba(17, 22, 29, 0.04);
  border-radius: 20px;
  padding: 18px;
}

.mini-value {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  line-height: 1;
  margin: 10px 0 8px;
}

.lens-controls,
.waste-grid,
.token-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.lens-button,
.waste-button,
.token-button {
  background: rgba(17, 22, 29, 0.05);
  border-radius: 999px;
  color: var(--deep-ink);
  padding: 10px 15px;
}

.lens-button.active,
.waste-button.active,
.token-button.active {
  background: var(--deep-ink);
  color: #fff;
}

.lens-output,
.token-output,
.waste-output {
  background: rgba(17, 22, 29, 0.04);
  border-radius: 22px;
  margin-top: 20px;
  padding: 22px;
}

.lens-kpi,
.token-focus,
.waste-value {
  color: var(--deep-accent);
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 10px;
}

.token-grid {
  margin-top: 0;
}

.simulator-shell {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  margin-top: 18px;
}

.sim-controls {
  display: grid;
  gap: 18px;
}

.control-group {
  background: rgba(17, 22, 29, 0.04);
  border-radius: 20px;
  padding: 18px;
}

.control-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.control-row label {
  font-weight: 600;
}

.control-value {
  color: var(--deep-accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
}

.slider,
.select-input {
  width: 100%;
}

.slider {
  accent-color: var(--deep-accent);
}

.select-input {
  background: white;
  border: 1px solid rgba(17, 22, 29, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}

.checkbox-row {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.sim-output-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sim-output {
  background: rgba(17, 22, 29, 0.05);
  border-radius: 22px;
  padding: 20px;
}

.sim-output-value {
  color: var(--deep-ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 12px 0 10px;
}

.sim-breakdown {
  margin-top: 24px;
}

.stacked-bar {
  border-radius: 999px;
  display: flex;
  height: 18px;
  overflow: hidden;
}

.stack-segment {
  height: 100%;
}

.stack-segment.input {
  background: var(--deep-signal);
}

.stack-segment.output {
  background: var(--deep-energy);
}

.stack-segment.tools {
  background: var(--deep-copper);
}

.stack-segment.overhead {
  background: var(--deep-accent);
}

.legend {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.legend-item {
  align-items: center;
  display: flex;
  gap: 10px;
}

.legend-swatch {
  border-radius: 999px;
  height: 12px;
  width: 12px;
}

.legend-copy {
  color: var(--deep-muted);
  font-size: 0.94rem;
}

.power-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.power-output {
  background: rgba(17, 22, 29, 0.04);
  border-radius: 22px;
  padding: 20px;
}

.power-value {
  font-family: 'Instrument Serif', serif;
  font-size: 2.2rem;
  line-height: 1;
  margin: 10px 0;
}

.waste-shell {
  display: grid;
  gap: 20px;
  grid-template-columns: 320px minmax(0, 1fr);
  margin-top: 20px;
}

.waste-meter {
  background: rgba(17, 22, 29, 0.05);
  border-radius: 22px;
  overflow: hidden;
}

.waste-meter-fill {
  background: linear-gradient(90deg, var(--deep-signal), var(--deep-energy), var(--deep-copper));
  height: 20px;
  transition: width 220ms ease;
  width: 0;
}

.playbook-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.playbook-step {
  color: var(--deep-copper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-grid,
.sources-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.score-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.score-item {
  align-items: start;
  background: rgba(17, 22, 29, 0.04);
  border-radius: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 18px;
}

.score-index {
  align-items: center;
  background: var(--deep-ink);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.source-list {
  color: var(--deep-muted);
  display: grid;
  gap: 10px;
  line-height: 1.7;
  margin-top: 18px;
}

.source-list a {
  color: var(--deep-accent);
}

.deep-footer {
  background: transparent;
  border: 0;
  color: var(--deep-muted);
  font-size: 0.92rem;
  margin-top: 28px;
  padding: 0 0 40px;
  text-align: inherit;
  width: auto;
}

@keyframes flow {
  from {
    transform: translateX(-20%);
  }

  to {
    transform: translateX(420%);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

@keyframes signalPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 1080px) {
  .hero-content,
  .page-hero-grid,
  .article-layout,
  .simulator-shell,
  .waste-shell {
    grid-template-columns: 1fr;
  }

  .toc-panel {
    position: static;
  }

  .featured-dive-card {
    grid-template-columns: 1fr;
  }

  .chapter-card--half,
  .power-card,
  .compare-card {
    grid-column: span 12;
  }

  .playbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step::after {
    display: none;
  }
}

@media (max-width: 800px) {
  .deep-site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .deep-site-brand-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .deep-main {
    padding: 24px 16px 72px;
  }

  .deep-hero,
  .page-hero,
  .toc-card,
  .chapter,
  .source-card,
  .scorecard {
    border-radius: 24px;
    padding: 24px;
  }

  .hub-grid,
  .chapter-grid,
  .mini-metrics,
  .power-grid,
  .playbook-grid,
  .compare-grid,
  .sources-grid,
  .legend,
  .sim-output-grid {
    grid-template-columns: 1fr;
  }

  .chapter-card--third,
  .surface-card,
  .metric-card,
  .token-card,
  .playbook-card,
  .source-card {
    grid-column: span 12;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }
}

.deep-dives-hub {
  background:
    radial-gradient(circle at top left, rgba(58, 101, 154, 0.18), transparent 28%),
    linear-gradient(180deg, #f0ebe2 0%, #ebe6dd 100%);
}

.archive-masthead {
  margin: 0 auto 36px;
  max-width: 1040px;
  padding-bottom: 22px;
  position: relative;
}

.archive-masthead::before {
  background: var(--deep-copper);
  border-radius: 999px;
  bottom: -3px;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  width: 6px;
}

.archive-masthead::after {
  background: linear-gradient(90deg, rgba(17, 22, 29, 0.22), rgba(17, 22, 29, 0.04));
  bottom: 0;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  width: min(420px, 100%);
}

.archive-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(3.2rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin: 0;
}

.archive-list {
  margin: 0 auto;
  max-width: 1040px;
}

.archive-entry {
  align-items: center;
  border-bottom: 1px solid rgba(17, 22, 29, 0.12);
  color: var(--deep-ink);
  display: grid;
  gap: 30px;
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 32px 0;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.archive-entry:hover {
  border-color: rgba(0, 98, 102, 0.32);
  color: var(--deep-ink);
  transform: translateY(-1px);
}

.archive-entry-index {
  display: grid;
  gap: 8px;
}

.archive-volume,
.archive-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-volume {
  color: var(--deep-accent);
}

.archive-status {
  color: var(--deep-muted);
}

.archive-entry-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0 0 12px;
}

.archive-entry-dek {
  color: #2b3641;
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
  max-width: 680px;
}

.archive-entry-tags {
  color: var(--deep-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.archive-footer {
  align-items: center;
  border-top: 1px solid rgba(17, 22, 29, 0.1);
  display: flex;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  justify-content: space-between;
  letter-spacing: 0.04em;
  margin: 84px auto 0;
  max-width: 1040px;
  padding-top: 22px;
}

.archive-footer p {
  margin: 0;
}

.archive-footer nav {
  display: flex;
  gap: 18px;
}

.archive-footer a {
  color: var(--deep-muted);
  text-decoration: none;
}

.archive-footer a:hover {
  color: var(--deep-accent);
}

@media (max-width: 700px) {
  .archive-entry {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .archive-entry-index {
    display: flex;
    gap: 12px;
  }

  .archive-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

.atlas-article {
  background:
    radial-gradient(circle at top left, rgba(80, 122, 176, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(202, 132, 62, 0.12), transparent 24%),
    linear-gradient(180deg, #efe9df 0%, #ece6dd 42%, #e8e3da 100%);
}

.atlas-article .deep-site-header {
  background: transparent;
  border-bottom: 1px solid rgba(17, 22, 29, 0.08);
  position: static;
}

.atlas-article .deep-site-header--reading {
  background: transparent;
}

.atlas-article .deep-site-nav {
  max-width: 1080px;
  padding: 16px 28px 14px;
}

.atlas-article .page-hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--deep-ink);
  margin-bottom: 24px;
  overflow: visible;
  padding: 12px 0 24px;
}

.atlas-article .page-hero::before,
.atlas-article .page-hero::after {
  display: none;
}

.atlas-hero {
  margin: 0 auto;
  max-width: 980px;
}

.atlas-hero-copy {
  max-width: 760px;
}

.atlas-overline {
  color: var(--deep-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin: 14px 0 0;
  text-transform: uppercase;
}

.atlas-article .page-title {
  color: var(--deep-ink);
  font-size: clamp(3.6rem, 8vw, 5.8rem);
  line-height: 0.92;
  margin: 8px 0 20px;
}

.atlas-article .page-subtitle {
  color: #2b3641;
  font-size: 1.18rem;
  line-height: 1.8;
  max-width: 760px;
}

.atlas-thesis {
  border-left: 0;
  color: #112330;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.22;
  margin: 26px 0 18px;
  max-width: 680px;
  padding-left: 0;
}

.atlas-article .page-note {
  color: var(--deep-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 0;
  max-width: 640px;
}

.atlas-layers {
  border-bottom: 1px solid rgba(17, 22, 29, 0.12);
  border-top: 1px solid rgba(17, 22, 29, 0.12);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 30px 0 0;
}

.atlas-layer {
  min-height: 96px;
  padding: 14px 14px 16px;
  position: relative;
}

.atlas-layer + .atlas-layer {
  border-left: 1px solid rgba(17, 22, 29, 0.1);
}

.atlas-layer strong,
.atlas-layer span {
  display: block;
}

.atlas-layer strong {
  color: var(--deep-ink);
  font-size: 0.96rem;
  margin-bottom: 8px;
}

.atlas-layer span {
  color: var(--deep-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.atlas-layer-label {
  display: none;
}

.atlas-article .article-layout {
  align-items: start;
  gap: 42px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.atlas-article .toc-panel {
  position: static;
  top: auto;
}

.atlas-article .toc-card {
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(17, 22, 29, 0.1);
  border-radius: 0;
  box-shadow: none;
  padding: 2px 0 0 18px;
}

.atlas-article .toc-list {
  gap: 12px;
}

.atlas-article .toc-link {
  border-left: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0;
}

.atlas-article .toc-link.active {
  color: var(--deep-ink);
  font-weight: 500;
}

.atlas-article .chapters {
  gap: 0;
}

.atlas-article .chapters > * {
  width: 100%;
}

.atlas-article .chapter,
.atlas-article .source-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 84px 0;
  position: relative;
}

.atlas-article .chapter::before {
  background: linear-gradient(90deg, rgba(202, 132, 62, 0.38), rgba(202, 132, 62, 0));
  height: 1px;
  inset: 0 auto auto 0;
  width: 120px;
}

.atlas-article .chapter + .chapter,
.atlas-article .chapter + .source-card {
  border-top: 1px solid rgba(17, 22, 29, 0.1);
}

.atlas-article .source-card {
  border-top: 1px solid rgba(17, 22, 29, 0.1);
}

.atlas-article .chapter-header {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.atlas-article .chapter-title {
  font-size: clamp(2.25rem, 4.8vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin-bottom: 0;
}

.atlas-article .chapter-summary {
  align-self: start;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 720px;
}

.atlas-article .chapter-intro {
  color: #2b3641;
  font-size: 1.12rem;
  line-height: 1.9;
  margin: 0 0 34px;
  max-width: 760px;
}

.atlas-article .chapter-grid,
.atlas-article .compare-grid,
.atlas-article .playbook-grid,
.atlas-article .power-grid,
.atlas-article .mini-metrics,
.atlas-article .sources-grid {
  gap: 28px 22px;
}

.atlas-article .chapter-card,
.atlas-article .surface-card,
.atlas-article .metric-card,
.atlas-article .token-card,
.atlas-article .playbook-card,
.atlas-article .compare-card,
.atlas-article .source-card,
.atlas-article .mini-metric {
  background: transparent;
  border: 0;
  border-radius: 0;
  border-top: 1px solid rgba(17, 22, 29, 0.1);
  box-shadow: none;
  padding: 18px 0 0;
}

.atlas-article .waste-panel,
.atlas-article .simulator-card,
.atlas-article .power-card,
.atlas-article .scorecard {
  background: rgba(255, 252, 247, 0.62);
  border: 1px solid rgba(17, 22, 29, 0.08);
  border-radius: 22px;
  box-shadow: none;
  padding: 28px;
}

.atlas-article .flow-grid {
  gap: 22px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.atlas-article .flow-step {
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(17, 22, 29, 0.12);
  border-radius: 0;
  min-height: 0;
  padding: 0 0 0 16px;
}

.atlas-article .metric-value,
.atlas-article .lens-kpi,
.atlas-article .token-focus,
.atlas-article .waste-value,
.atlas-article .power-value,
.atlas-article .sim-output-value {
  color: var(--deep-ink);
}

.atlas-article .simulator-shell {
  align-items: start;
  gap: 28px;
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
}

.atlas-article .control-group,
.atlas-article .sim-output,
.atlas-article .power-output,
.atlas-article .lens-output,
.atlas-article .token-output,
.atlas-article .waste-output,
.atlas-article .score-item {
  background: rgba(17, 22, 29, 0.03);
}

.atlas-article .sim-output-grid {
  gap: 18px;
}

.atlas-article .legend {
  gap: 14px;
}

.atlas-article .deep-footer {
  border-top: 1px solid rgba(17, 22, 29, 0.1);
  margin-top: 10px;
  padding-top: 24px;
}

.atlas-article #north-star .chapter-header {
  border-bottom: 0;
  margin-bottom: 18px;
  padding-bottom: 0;
}

.atlas-article #north-star .chapter-card--wide {
  background: rgba(255, 252, 247, 0.5);
  border: 1px solid rgba(17, 22, 29, 0.08);
  border-radius: 20px;
  padding: 24px;
}

.atlas-article #stack {
  background:
    linear-gradient(180deg, rgba(17, 22, 29, 0.02), transparent 32%),
    linear-gradient(90deg, transparent 0 12%, rgba(17, 22, 29, 0.03) 12% 12.2%, transparent 12.2% 100%);
}

.atlas-article #stack .chapter-intro {
  max-width: 760px;
}

.atlas-article #stack .chapter-card--wide {
  background:
    linear-gradient(180deg, rgba(250, 164, 78, 0.04), rgba(255, 252, 247, 0.2) 36%);
  border: 0;
  border-top: 1px solid rgba(17, 22, 29, 0.1);
  border-radius: 0;
  padding: 18px 0 0;
}

.atlas-article #tokens .chapter-grid {
  align-items: start;
}

.atlas-article #tokens .token-card {
  padding-top: 18px;
}

.atlas-article #simulator .chapter-header,
.atlas-article #waste .chapter-header,
.atlas-article #playbook .chapter-header {
  margin-bottom: 24px;
}

.atlas-article #simulator .simulator-card {
  background:
    linear-gradient(145deg, rgba(15, 24, 31, 0.97), rgba(19, 43, 48, 0.94));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(15, 24, 31, 0.12);
  color: #fdf8f1;
}

.atlas-article #simulator .simulator-card .eyebrow,
.atlas-article #simulator .simulator-card .surface-title,
.atlas-article #simulator .simulator-card .sim-output-value,
.atlas-article #simulator .simulator-card .metric-label,
.atlas-article #simulator .simulator-card .legend-copy,
.atlas-article #simulator .simulator-card .control-row label,
.atlas-article #simulator .simulator-card .sim-output-label {
  color: #fdf8f1;
}

.atlas-article #simulator .simulator-card .surface-copy,
.atlas-article #simulator .simulator-card .sim-output-copy,
.atlas-article #simulator .simulator-card .legend-copy {
  color: rgba(253, 248, 241, 0.72);
}

.atlas-article #simulator .control-group,
.atlas-article #simulator .sim-output {
  background: rgba(255, 255, 255, 0.06);
}

.atlas-article #simulator .select-input {
  background: rgba(255, 255, 255, 0.96);
}

.atlas-article #waste .waste-panel {
  background:
    linear-gradient(180deg, rgba(198, 112, 62, 0.05), rgba(255, 252, 247, 0.72) 32%);
}

.atlas-article #training .compare-card {
  min-height: 0;
}

.atlas-article #training .mini-metric {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(17, 22, 29, 0.1);
}

.atlas-article #training .mini-value {
  color: var(--deep-ink);
  font-size: 1.68rem;
  line-height: 1.18;
}

.atlas-article #scorecard .scorecard {
  background: rgba(255, 252, 247, 0.84);
  border-left: 2px solid rgba(0, 98, 102, 0.24);
}

.atlas-article .metric-card .metric-value,
.atlas-article .token-title,
.atlas-article .playbook-title,
.atlas-article .compare-title,
.atlas-article .mini-value {
  font-size: 1.4rem;
  line-height: 1.15;
}

.atlas-article .metric-card .metric-copy,
.atlas-article .token-card .section-copy,
.atlas-article .playbook-card .section-copy,
.atlas-article .compare-card .section-copy,
.atlas-article .mini-copy,
.atlas-article .source-copy {
  max-width: 36rem;
}

.atlas-article .lens-controls,
.atlas-article .waste-grid,
.atlas-article .token-grid {
  border-bottom: 1px solid rgba(17, 22, 29, 0.1);
  gap: 18px;
  margin-top: 18px;
  padding-bottom: 12px;
}

.atlas-article .lens-button,
.atlas-article .waste-button,
.atlas-article .token-button {
  background: transparent;
  border-radius: 0;
  color: var(--deep-muted);
  font-size: 0.98rem;
  padding: 0 0 6px;
  position: relative;
}

.atlas-article .lens-button::after,
.atlas-article .waste-button::after,
.atlas-article .token-button::after {
  background: var(--deep-accent);
  bottom: -13px;
  content: '';
  height: 1px;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
}

.atlas-article .lens-button.active,
.atlas-article .waste-button.active,
.atlas-article .token-button.active {
  background: transparent;
  color: var(--deep-ink);
}

.atlas-article .lens-button.active::after,
.atlas-article .waste-button.active::after,
.atlas-article .token-button.active::after {
  opacity: 1;
}

.atlas-article .lens-output,
.atlas-article .token-output,
.atlas-article .waste-output {
  border-radius: 0;
  margin-top: 18px;
  padding: 18px 0 0;
}

.atlas-article .score-item,
.atlas-article .sim-output,
.atlas-article .power-output {
  border-radius: 14px;
}

.metric-list,
.token-notes {
  display: grid;
  gap: 0;
}

.metric-row,
.token-note,
.playbook-item,
.bridge-item {
  border-top: 1px solid rgba(17, 22, 29, 0.1);
  padding-top: 18px;
}

.metric-row:first-child,
.token-note:first-child,
.playbook-item:first-child,
.bridge-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.metric-row {
  display: grid;
  gap: 12px 22px;
  grid-template-columns: 140px minmax(0, 1fr);
}

.metric-body {
  display: grid;
  gap: 6px;
}

.token-note {
  display: grid;
  gap: 8px;
}

.playbook-list {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.playbook-item {
  display: grid;
  gap: 12px 24px;
  grid-template-columns: 92px minmax(0, 1fr);
}

.playbook-body {
  display: grid;
  gap: 6px;
}

.compare-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

.compare-column {
  border-top: 1px solid rgba(17, 22, 29, 0.1);
  padding-top: 18px;
}

.bridge-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.bridge-item {
  display: grid;
  gap: 8px;
}

.bridge-item .mini-value {
  max-width: 44rem;
}

@media (max-width: 1180px) {
  .atlas-layers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atlas-article .flow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .atlas-article .article-layout,
  .atlas-article .chapter-header,
  .atlas-article .simulator-shell {
    grid-template-columns: 1fr;
  }

  .metric-row,
  .playbook-item,
  .compare-columns {
    grid-template-columns: 1fr;
  }

  .atlas-article .toc-card {
    border-left: 0;
    border-top: 1px solid rgba(17, 22, 29, 0.14);
    padding: 18px 0 0;
  }

  .atlas-layers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .atlas-article .page-title {
    font-size: clamp(3.1rem, 16vw, 4.6rem);
  }

  .atlas-thesis {
    padding-left: 16px;
  }

  .atlas-layers,
  .atlas-article .flow-grid {
    grid-template-columns: 1fr;
  }
}

.book-article {
  background:
    linear-gradient(180deg, #f6f6f2 0%, #efeee8 100%);
  color: #15191d;
  font-family: 'Space Grotesk', sans-serif;
}

.book-article .deep-site-header {
  background: rgba(246, 246, 242, 0.92);
  border-bottom: 1px solid rgba(21, 25, 29, 0.08);
  position: static;
}

.book-article .deep-site-nav {
  max-width: 980px;
  padding: 16px 24px;
}

.book-article .deep-site-brand {
  color: #006266;
  letter-spacing: 0;
}

.book-article .deep-site-meta,
.book-article .deep-site-links a {
  letter-spacing: 0;
}

.book-main {
  margin: 0 auto;
  max-width: 980px;
  padding: 58px 24px 80px;
}

.book-shell {
  margin: 0 auto;
  max-width: 760px;
}

.book-hero {
  border-bottom: 1px solid rgba(21, 25, 29, 0.12);
  padding-bottom: 42px;
}

.book-kicker,
.book-chapter-number {
  color: #006266;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.book-hero h1,
.book-chapter h2,
.book-sources h2 {
  color: #11161d;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: 0;
}

.book-hero h1 {
  font-size: clamp(4rem, 10vw, 6.4rem);
  line-height: 0.95;
  margin: 0 0 24px;
}

.book-dek {
  color: #27313a;
  font-size: 1.28rem;
  line-height: 1.8;
  margin: 0;
}

.book-thesis {
  color: #11161d;
  font-family: 'Instrument Serif', serif;
  font-size: 2.05rem;
  font-style: italic;
  line-height: 1.2;
  margin: 34px 0 18px;
}

.book-image-plate {
  margin: 42px 0 0;
}

.book-image-plate img {
  aspect-ratio: 16 / 9;
  display: block;
  filter: saturate(0.82) contrast(0.96);
  object-fit: cover;
  width: 100%;
}

.book-image-plate figcaption,
.book-figure figcaption {
  border-bottom: 1px solid rgba(21, 25, 29, 0.1);
  color: #68737a;
  font-size: 0.86rem;
  line-height: 1.6;
  margin-top: 10px;
  padding-bottom: 12px;
}

.book-contents {
  border-bottom: 1px solid rgba(21, 25, 29, 0.12);
  padding: 28px 0 34px;
}

.book-contents ol {
  columns: 2;
  list-style-position: inside;
  margin: 0;
  padding: 0;
}

.book-contents li {
  break-inside: avoid;
  color: #68737a;
  line-height: 1.85;
  padding-right: 20px;
}

.book-contents a {
  color: #27313a;
  text-decoration: none;
}

.book-contents a:hover {
  color: #006266;
}

@media (min-width: 1080px) {
  .book-main {
    max-width: 1160px;
  }

  .book-shell {
    align-items: start;
    column-gap: 58px;
    display: grid;
    grid-template-columns: 190px minmax(0, 760px);
    max-width: none;
  }

  .book-shell > * {
    grid-column: 2;
  }

  .book-contents {
    align-self: start;
    border-bottom: 0;
    border-top: 1px solid rgba(21, 25, 29, 0.12);
    grid-column: 1;
    grid-row: 1 / span 30;
    max-height: calc(100vh - 54px);
    overflow: auto;
    padding: 14px 0 0;
    position: sticky;
    top: 26px;
  }

  .book-contents::before {
    color: #006266;
    content: 'Chapters';
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    text-transform: uppercase;
  }

  .book-contents ol {
    columns: 1;
    counter-reset: book-chapter;
    list-style: none;
  }

  .book-contents li {
    border-top: 1px solid rgba(21, 25, 29, 0.08);
    break-inside: auto;
    color: #68737a;
    counter-increment: book-chapter;
    display: grid;
    font-size: 0.86rem;
    gap: 10px;
    grid-template-columns: 24px minmax(0, 1fr);
    line-height: 1.35;
    padding: 10px 0;
  }

  .book-contents li::before {
    color: rgba(0, 98, 102, 0.72);
    content: counter(book-chapter, decimal-leading-zero);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    line-height: 1.55;
  }

  .book-contents a {
    color: #46535b;
  }
}

.book-chapter {
  border-bottom: 1px solid rgba(21, 25, 29, 0.1);
  padding: 72px 0;
}

.book-chapter h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  margin: 0 0 28px;
}

.book-chapter p,
.book-chapter li,
.book-sources p,
.book-sources li {
  color: #303b43;
  font-size: 1.06rem;
  line-height: 1.9;
}

.book-chapter p {
  margin: 0 0 22px;
}

.book-chapter em {
  color: #11161d;
}

.book-rule-list {
  border-top: 1px solid rgba(21, 25, 29, 0.12);
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.book-rule-list div {
  border-bottom: 1px solid rgba(21, 25, 29, 0.1);
  display: grid;
  gap: 18px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 18px 0;
}

.book-rule-list span {
  color: #006266;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.book-rule-list p {
  margin: 0;
}

.book-sequence,
.book-list {
  margin: 30px 0 0;
  padding-left: 1.2rem;
}

.book-sequence li,
.book-list li {
  margin-bottom: 16px;
  padding-left: 0.4rem;
}

.book-sequence--wide {
  padding-left: 1.3rem;
}

.book-figure {
  margin: 34px 0;
}

.book-stack-line {
  border-bottom: 1px solid rgba(21, 25, 29, 0.14);
  border-top: 1px solid rgba(21, 25, 29, 0.14);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.book-stack-line span {
  color: #1f2a30;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  line-height: 1.35;
  padding: 16px 12px;
  text-transform: uppercase;
}

.book-stack-line span + span {
  border-left: 1px solid rgba(21, 25, 29, 0.1);
}

.book-definition-grid,
.book-cost-breakdown {
  border-bottom: 1px solid rgba(21, 25, 29, 0.1);
  border-top: 1px solid rgba(21, 25, 29, 0.12);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px 0;
}

.book-definition-grid div,
.book-cost-breakdown div {
  padding: 18px 20px 18px 0;
}

.book-definition-grid div:nth-child(even),
.book-cost-breakdown div:nth-child(even) {
  border-left: 1px solid rgba(21, 25, 29, 0.1);
  padding-left: 20px;
}

.book-definition-grid div:nth-child(n + 3),
.book-cost-breakdown div:nth-child(n + 3) {
  border-top: 1px solid rgba(21, 25, 29, 0.08);
}

.book-definition-grid span,
.book-cost-breakdown span {
  color: #006266;
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.book-definition-grid p,
.book-cost-breakdown p {
  font-size: 0.98rem;
  margin: 0;
}

.book-ledger {
  border-top: 1px solid rgba(21, 25, 29, 0.12);
  margin: 34px 0 0;
}

.book-ledger div {
  border-bottom: 1px solid rgba(21, 25, 29, 0.1);
  display: grid;
  gap: 24px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 20px 0;
}

.book-ledger span {
  color: #11161d;
  font-family: 'Instrument Serif', serif;
  font-size: 1.55rem;
  line-height: 1;
}

.book-ledger p {
  margin: 0;
}

.book-pricing-table {
  border-bottom: 1px solid rgba(21, 25, 29, 0.12);
  border-top: 1px solid rgba(21, 25, 29, 0.14);
  margin: 34px 0 10px;
}

.book-pricing-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) repeat(3, minmax(84px, 1fr));
}

.book-pricing-row + .book-pricing-row {
  border-top: 1px solid rgba(21, 25, 29, 0.08);
}

.book-pricing-row span {
  color: #303b43;
  font-size: 0.98rem;
  padding: 14px 12px 14px 0;
}

.book-pricing-row span + span {
  border-left: 1px solid rgba(21, 25, 29, 0.08);
  padding-left: 12px;
}

.book-pricing-row--head span {
  color: #006266;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-caption-copy {
  color: #6a747b !important;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
  line-height: 1.6 !important;
  margin: 0 0 30px !important;
  text-transform: uppercase;
}

.book-number-strip {
  border-bottom: 1px solid rgba(21, 25, 29, 0.12);
  border-top: 1px solid rgba(21, 25, 29, 0.14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px 0;
}

.book-number-strip div {
  padding: 20px 18px 18px 0;
}

.book-number-strip div + div {
  border-left: 1px solid rgba(21, 25, 29, 0.08);
  padding-left: 18px;
}

.book-number-strip span {
  color: #11161d;
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  margin-bottom: 10px;
}

.book-number-strip p {
  color: #5a666e;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0;
  text-transform: uppercase;
}

.book-article blockquote {
  border-left: 2px solid rgba(0, 98, 102, 0.36);
  color: #11161d;
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  font-style: italic;
  line-height: 1.2;
  margin: 34px 0 0;
  padding-left: 22px;
}

.book-equation {
  background: rgba(21, 25, 29, 0.04);
  border-left: 2px solid rgba(0, 98, 102, 0.32);
  color: #11161d;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 28px 0;
  overflow-x: auto;
  padding: 18px 20px;
  white-space: pre-wrap;
}

.book-interactive {
  border-bottom: 1px solid rgba(21, 25, 29, 0.12);
  border-top: 1px solid rgba(21, 25, 29, 0.14);
  margin: 42px 0;
  padding: 26px 0 30px;
}

.book-interactive-head {
  margin-bottom: 24px;
}

.book-interactive-head span,
.efficiency-index span,
.efficiency-path span {
  color: #006266;
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-interactive-head h3 {
  color: #11161d;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1;
  margin: 10px 0 12px;
}

.book-interactive-head p,
.efficiency-index p,
.efficiency-path p {
  color: #5a666e;
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0;
}

.efficiency-model {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.15fr);
}

.efficiency-controls {
  display: grid;
  gap: 18px;
}

.efficiency-controls label {
  border-top: 1px solid rgba(21, 25, 29, 0.08);
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 1fr auto;
  padding-top: 14px;
}

.efficiency-controls label > span {
  color: #27313a;
  font-size: 0.98rem;
}

.efficiency-controls output {
  color: #006266;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}

.efficiency-controls input[type='range'] {
  accent-color: #006266;
  grid-column: 1 / -1;
  width: 100%;
}

.efficiency-output {
  display: grid;
  gap: 24px;
}

.efficiency-index {
  border-top: 1px solid rgba(21, 25, 29, 0.1);
  padding-top: 14px;
}

.efficiency-index strong {
  color: #11161d;
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(4rem, 10vw, 6.4rem);
  font-weight: 400;
  line-height: 0.9;
  margin: 8px 0 12px;
}

.efficiency-bars {
  display: grid;
  gap: 12px;
}

.efficiency-bar-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr) 44px;
}

.efficiency-bar-row span,
.efficiency-bar-row em {
  color: #46535b;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
}

.efficiency-bar-row div {
  background: rgba(21, 25, 29, 0.08);
  height: 5px;
  overflow: hidden;
}

.efficiency-bar-row i {
  background: #006266;
  display: block;
  height: 100%;
  min-width: 2px;
  width: 0;
}

.efficiency-path {
  border-top: 1px solid rgba(21, 25, 29, 0.1);
  padding-top: 18px;
}

.efficiency-path > div:first-child {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.efficiency-path strong {
  color: #11161d;
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
}

.efficiency-path svg {
  display: block;
  height: auto;
  margin: 4px 0 8px;
  overflow: visible;
  width: 100%;
}

.efficiency-grid-line {
  stroke: rgba(21, 25, 29, 0.08);
  stroke-width: 1;
}

.efficiency-path polyline {
  stroke: #006266;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.efficiency-path circle {
  fill: #f6f6f2;
  stroke: #006266;
  stroke-width: 2;
}

.efficiency-axis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 12px;
}

.efficiency-axis span {
  color: #6a747b;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.efficiency-axis span:not(:first-child) {
  text-align: center;
}

.efficiency-axis span:last-child {
  text-align: right;
}

.physical-cost-model {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.15fr);
}

.physical-cost-controls {
  display: grid;
  gap: 18px;
}

.physical-cost-controls label {
  border-top: 1px solid rgba(21, 25, 29, 0.08);
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 1fr auto;
  padding-top: 14px;
}

.physical-cost-controls label > span {
  color: #27313a;
  font-size: 0.98rem;
}

.physical-cost-controls output {
  color: #006266;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
}

.physical-cost-controls input[type='range'] {
  accent-color: #006266;
  grid-column: 1 / -1;
  width: 100%;
}

.physical-cost-output {
  display: grid;
  gap: 24px;
}

.physical-cost-index {
  border-top: 1px solid rgba(21, 25, 29, 0.1);
  padding-top: 14px;
}

.physical-cost-index span,
.physical-cost-path span {
  color: #006266;
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.physical-cost-index strong {
  color: #11161d;
  display: block;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(4rem, 10vw, 6.4rem);
  font-weight: 400;
  line-height: 0.9;
  margin: 8px 0 12px;
}

.physical-cost-index p,
.physical-cost-path p {
  color: #5a666e;
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0;
}

.physical-cost-bars {
  display: grid;
  gap: 12px;
}

.physical-cost-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 96px minmax(0, 1fr) 44px;
}

.physical-cost-row span,
.physical-cost-row em {
  color: #46535b;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
}

.physical-cost-row div {
  background: rgba(21, 25, 29, 0.08);
  height: 5px;
  overflow: hidden;
}

.physical-cost-row i {
  background: #006266;
  display: block;
  height: 100%;
  min-width: 2px;
  width: 0;
}

.physical-cost-path {
  border-top: 1px solid rgba(21, 25, 29, 0.1);
  padding-top: 18px;
}

.physical-cost-path > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.physical-cost-path strong {
  color: #11161d;
  font-family: 'Instrument Serif', serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
}

.physical-cost-path svg {
  display: block;
  height: auto;
  margin: 4px 0 8px;
  overflow: visible;
  width: 100%;
}

.physical-cost-grid {
  stroke: rgba(21, 25, 29, 0.08);
  stroke-width: 1;
}

.physical-cost-path polyline {
  stroke: #006266;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.physical-cost-path circle {
  fill: #f6f6f2;
  stroke: #006266;
  stroke-width: 2;
}

.physical-cost-axis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 12px;
}

.physical-cost-axis span {
  color: #6a747b;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.physical-cost-axis span:not(:first-child) {
  text-align: center;
}

.physical-cost-axis span:last-child {
  text-align: right;
}

.book-sources {
  padding: 64px 0 20px;
}

.book-sources h2 {
  font-size: 2.4rem;
  margin: 0 0 18px;
}

.book-sources ul {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.book-sources li {
  border-top: 1px solid rgba(21, 25, 29, 0.1);
  padding: 12px 0;
}

.book-sources a {
  color: #006266;
  text-decoration: none;
}

.book-article .deep-footer {
  border-top: 1px solid rgba(21, 25, 29, 0.1);
  margin: 60px auto 0;
  max-width: 760px;
  padding-top: 20px;
}

@media (max-width: 760px) {
  .book-main {
    padding: 40px 18px 64px;
  }

  .book-hero h1 {
    font-size: 3.5rem;
  }

  .book-dek {
    font-size: 1.12rem;
  }

  .book-thesis {
    font-size: 1.72rem;
  }

  .book-contents ol {
    columns: 1;
  }

  .book-chapter {
    padding: 56px 0;
  }

  .book-rule-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .book-ledger div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .book-pricing-table {
    overflow-x: auto;
  }

  .book-pricing-row {
    min-width: 560px;
  }

  .efficiency-model {
    grid-template-columns: 1fr;
  }

  .physical-cost-model {
    grid-template-columns: 1fr;
  }

  .efficiency-path > div:first-child {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .physical-cost-path > div:first-child {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .efficiency-bar-row {
    grid-template-columns: 66px minmax(0, 1fr) 42px;
  }

  .physical-cost-row {
    grid-template-columns: 84px minmax(0, 1fr) 42px;
  }

  .book-number-strip {
    grid-template-columns: 1fr;
  }

  .book-number-strip div + div {
    border-left: 0;
    border-top: 1px solid rgba(21, 25, 29, 0.08);
    padding-left: 0;
  }

  .book-stack-line,
  .book-definition-grid,
  .book-cost-breakdown {
    grid-template-columns: 1fr;
  }

  .book-stack-line span + span,
  .book-definition-grid div:nth-child(even),
  .book-cost-breakdown div:nth-child(even) {
    border-left: 0;
  }

  .book-stack-line span + span,
  .book-definition-grid div + div,
  .book-cost-breakdown div + div {
    border-top: 1px solid rgba(21, 25, 29, 0.08);
  }

  .book-definition-grid div,
  .book-definition-grid div:nth-child(even),
  .book-cost-breakdown div,
  .book-cost-breakdown div:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }
}
