:root {
  --bg: #0b0d11;
  --panel: #11151d;
  --panel-2: #141925;
  --text: #f4f2ea;
  --muted: #b6c0cb;
  --muted-2: #95a1ae;
  --line: rgba(244, 242, 234, 0.09);
  --line-strong: rgba(244, 242, 234, 0.16);
  --accent: #7be4ff;
  --violet: #9b82ff;
  --lime: #d9ff72;
  --warning: #ffb86b;
  --danger: #ff6d7a;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max-content: 900px;
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(123, 228, 255, 0.08), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(155, 130, 255, 0.08), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 12%, rgba(123, 228, 255, 0.06), transparent 30%),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
  z-index: -2;
}

.site-gridlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 96px, 96px 100%;
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent 95%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 650;
}

sup a {
  color: var(--muted);
  font-size: 0.9em;
  text-decoration: none;
}

sup a:hover {
  color: var(--accent);
}

.progress-shell {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 50;
  pointer-events: none;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  box-shadow: 0 0 18px rgba(123, 228, 255, 0.45);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem clamp(1rem, 2vw, 2rem);
  backdrop-filter: blur(20px);
  background: rgba(11, 13, 17, 0.76);
  border-bottom: 1px solid var(--line);
}

.topbar-shortcuts {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: min(640px, 100%);
}

.topbar-shortcuts a {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
}

.topbar-shortcuts a:hover,
.topbar-shortcuts a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  text-decoration: none;
}
.brand-block {
  min-width: 0;
}

.brand-eyebrow,
.eyebrow,
.card-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--muted-2);
}

.brand-title {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.03rem;
  letter-spacing: -0.02em;
}

.depth-switch {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.32rem;
  border-radius: 999px;
  background: rgba(244, 242, 234, 0.04);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.depth-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.68rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

.depth-button:hover,
.depth-button:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.depth-button.is-active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #d5fbff);
  font-weight: 650;
}

.page-shell {
  width: min(1680px, calc(100vw - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, var(--max-content)) 280px;
  gap: clamp(1.2rem, 2.2vw, 2.4rem);
  align-items: start;
  padding: 2.2rem 0 6rem;
}

.left-rail,
.right-rail {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
}

.content {
  min-width: 0;
}

.section {
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

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

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.4rem;
  align-items: start;
  padding-top: 1.5rem;
}

.hero-copy {
  min-width: 0;
}

.display-title,
.section-title,
h3,
h4 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 0.98;
}

.display-title {
  font-size: clamp(2.45rem, 7vw, 3.95rem);
  max-width: 12ch;
  margin-top: 0.5rem;
}

.hero-lede,
.section-deck {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero-lede {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  margin: 1.2rem 0 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.button:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(123, 228, 255, 0.18), rgba(155, 130, 255, 0.18));
  border-color: rgba(123, 228, 255, 0.28);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.metric-card {
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.92), rgba(17, 21, 29, 0.72));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 128px;
}

.metric-card-alert {
  border-color: rgba(255, 184, 107, 0.25);
  background: linear-gradient(180deg, rgba(48, 33, 18, 0.45), rgba(17, 21, 29, 0.8));
}

.metric-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
  margin-bottom: 0.55rem;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  background:
    linear-gradient(180deg, rgba(17, 21, 29, 0.94), rgba(17, 21, 29, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual,
.figure-card,
.art-card,
.roadmap-figure {
  padding: 0.9rem;
}

.hero-visual img,
.figure-card img,
.art-card img,
.roadmap-figure img {
  border-radius: 16px;
  background: #0f1218;
}

.caption {
  color: var(--muted-2);
  font-size: 0.86rem;
  margin-top: 0.7rem;
}

.section-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.8rem;
}

.section-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.96rem;
  color: var(--accent);
  padding-top: 0.45rem;
}

.section-title {
  font-size: clamp(1.72rem, 3.4vw, 3rem);
  max-width: 13ch;
}

.claim-grid,
.strategy-grid,
.question-grid,
.glossary-grid,
.three-up,
.benchmark-grid {
  display: grid;
  gap: 1rem;
}

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

.claim-card,
.strategy-card,
.question-card,
.glossary-card,
.benchmark {
  padding: 1.15rem 1.15rem 1.2rem;
}

.claim-card h3,
.strategy-card h3,
.glossary-card h3,
.benchmark h3 {
  font-size: 1.65rem;
  margin: 0.45rem 0 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid transparent;
}

.pill-fact {
  color: #bff7ff;
  background: rgba(123, 228, 255, 0.1);
  border-color: rgba(123, 228, 255, 0.2);
}

.pill-evidence {
  color: #d7cbff;
  background: rgba(155, 130, 255, 0.1);
  border-color: rgba(155, 130, 255, 0.2);
}

.pill-inference {
  color: #f3f0d7;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.pill-strategic {
  color: #efffbe;
  background: rgba(217, 255, 114, 0.1);
  border-color: rgba(217, 255, 114, 0.2);
}

.two-col,
.specs-layout,
.figure-layout,
.compare-strip,
.figure-pair {
  display: grid;
  gap: 1rem;
}

.two-col {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.two-col.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.specs-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.specs-grid {
  display: grid;
  gap: 0.9rem;
}

.spec-card {
  padding: 1rem;
}

.ordered {
  margin: 0.8rem 0 1rem 1.1rem;
  padding: 0;
}

.ordered li + li {
  margin-top: 0.55rem;
}

.bullets {
  margin: 0.9rem 0 1rem 1.1rem;
  padding: 0;
}

.bullets li + li {
  margin-top: 0.5rem;
}

.bullets.compact li + li {
  margin-top: 0.38rem;
}

.compare-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.compare-card,
.mini-card,
.rail-card {
  padding: 1rem 1.05rem;
}

.note {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.028);
}

.note p {
  margin: 0.25rem 0 0;
}

.note-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.note-warning {
  border-color: rgba(255, 184, 107, 0.28);
  background: rgba(255, 184, 107, 0.07);
}

.note-strong {
  border-color: rgba(123, 228, 255, 0.22);
  background: linear-gradient(180deg, rgba(123, 228, 255, 0.06), rgba(155, 130, 255, 0.03));
}

.equation-card {
  padding: 1rem 1.1rem;
}

.equation-card pre {
  margin: 0.7rem 0 1rem;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  color: var(--text);
}

.equation-grid {
  display: grid;
  gap: 0.7rem;
}

.equation-grid > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.equation-grid strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
}

.pipeline-stack,
.annotation-stack {
  display: grid;
  gap: 0.9rem;
}

.pipeline-card,
.annotation-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 1rem;
}

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

.pipeline-step {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(123, 228, 255, 0.15);
  border: 1px solid rgba(123, 228, 255, 0.25);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.figure-layout {
  grid-template-columns: 1.18fr 0.82fr;
  align-items: start;
}

.figure-layout.reverse {
  grid-template-columns: 0.82fr 1.18fr;
}

.figure-card.wide {
  padding: 0.9rem;
}

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

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
  margin: 1rem 0 0.8rem;
}

.mini-metrics > div {
  display: grid;
  gap: 0.16rem;
  padding: 0.72rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}

.mini-metrics span {
  color: var(--muted-2);
  font-size: 0.8rem;
}

.mini-metrics strong {
  font-size: 1.05rem;
}

.figure-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.table-wrap {
  overflow-x: auto;
  padding: 0.4rem;
}

.audit-table,
.landscape-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.audit-table th,
.audit-table td,
.landscape-table th,
.landscape-table td {
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.audit-table th,
.landscape-table th {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  position: sticky;
  top: 0;
  background: rgba(17, 21, 29, 0.95);
  backdrop-filter: blur(10px);
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.strategy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

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

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

.question-card p,
.glossary-card p,
.strategy-card p,
.claim-card p,
.benchmark p,
.compare-card p,
.spec-card p,
.annotation-card p,
.pipeline-card p,
.rail-card p,
.small-copy {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.toc {
  padding: 1rem;
}

.toc-link {
  display: block;
  color: var(--muted);
  padding: 0.46rem 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), transform var(--transition);
}

.toc-link:hover {
  text-decoration: none;
  color: var(--text);
  transform: translateX(2px);
}

.toc-link.is-active {
  color: var(--text);
}

.signal-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.signal-list > div,
.legend-stack > div {
  display: grid;
  gap: 0.2rem;
}

.signal-list span {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.legend-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.legend-stack > div {
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.references-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 1rem;
}

.references-list li {
  padding-left: 0.35rem;
  color: var(--muted);
}

.footer-note {
  padding: 1rem 1.05rem;
  margin-top: 1.2rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 8, 10, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  appearance: none;
  border: 1px solid var(--line-strong);
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox-caption {
  color: var(--muted);
  text-align: center;
  max-width: 78ch;
  margin: 1rem 0 0;
}

[data-lightbox] {
  cursor: zoom-in;
}

body[data-depth="1"] .depth-2,
body[data-depth="1"] .depth-3,
body[data-depth="2"] .depth-3 {
  display: none !important;
}

@media (max-width: 1450px) {
  .page-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .right-rail {
    position: static;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    top: auto;
  }
}

@media (max-width: 1180px) {
  .page-shell {
    width: min(1200px, calc(100vw - 1.2rem));
    grid-template-columns: minmax(0, 1fr);
  }

  .left-rail,
  .right-rail {
    position: static;
    top: auto;
  }

  .left-rail {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content {
    order: 1;
  }

  .right-rail {
    order: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-section,
  .two-col,
  .two-col.reverse,
  .specs-layout,
  .figure-layout,
  .figure-layout.reverse,
  .benchmark-grid,
  .figure-pair,
  .three-up,
  .strategy-grid,
  .question-grid,
  .glossary-grid,
  .claim-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem clamp(1rem, 2vw, 2rem);
  backdrop-filter: blur(20px);
  background: rgba(11, 13, 17, 0.76);
  border-bottom: 1px solid var(--line);
}

.topbar-shortcuts {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: min(640px, 100%);
}

.topbar-shortcuts a {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
}

.topbar-shortcuts a:hover,
.topbar-shortcuts a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  text-decoration: none;
}
  .brand-title {
    font-size: 1.05rem;
  }

  .depth-switch {
    align-self: flex-start;
    flex-wrap: wrap;
  }

  .metrics-grid,
  .mini-metrics,
  .left-rail,
  .right-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .section-number {
    padding-top: 0;
  }

  .display-title {
    max-width: 10.5ch;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100vw, calc(100vw - 0.6rem));
  }

  .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem clamp(1rem, 2vw, 2rem);
  backdrop-filter: blur(20px);
  background: rgba(11, 13, 17, 0.76);
  border-bottom: 1px solid var(--line);
}

.topbar-shortcuts {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: min(640px, 100%);
}

.topbar-shortcuts a {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
}

.topbar-shortcuts a:hover,
.topbar-shortcuts a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  text-decoration: none;
}
  .section {
    padding: 3rem 0;
  }

  .hero-section {
    padding-top: 0.8rem;
  }

  .metrics-grid,
  .mini-metrics,
  .left-rail,
  .right-rail {
    grid-template-columns: 1fr;
  }

  .claim-card h3,
  .strategy-card h3,
  .benchmark h3 {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: clamp(1.7rem, 10vw, 2.45rem);
  }

  .display-title {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .equation-grid > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}



/* === 2026-03 update: clearer reader modes, scrollytelling, simulator, roadmap === */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem clamp(1rem, 2vw, 2rem);
  backdrop-filter: blur(20px);
  background: rgba(11, 13, 17, 0.76);
  border-bottom: 1px solid var(--line);
}

.topbar-shortcuts {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: min(640px, 100%);
}

.topbar-shortcuts a {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
}

.topbar-shortcuts a:hover,
.topbar-shortcuts a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  text-decoration: none;
}
.topbar-controls {
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: 0.28rem;
}

.depth-title,
.depth-help {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.depth-help {
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.78rem;
  max-width: 28rem;
  text-align: right;
}

.depth-switch {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.depth-button {
  min-width: 7.6rem;
  text-align: center;
  font-weight: 600;
}

.mode-callout {
  margin: 1rem 0 1.2rem;
  background:
    linear-gradient(135deg, rgba(123, 228, 255, 0.08), rgba(155, 130, 255, 0.06)),
    rgba(255,255,255,0.02);
}

.mode-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mode-subtitle,
.section-status {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0.25rem 0 0;
}

.reader-pathways {
  margin-top: 0.9rem;
}

.reader-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin-top: 0.48rem;
}

.reader-path-button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 0.62rem 0.8rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.reader-path-button:hover,
.reader-path-button:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.mobile-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.52rem;
}

.mobile-jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
}

.mobile-jump-nav a:hover,
.mobile-jump-nav a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  text-decoration: none;
}

.depth-hidden {
  display: none !important;
}

.toc-link.is-hidden {
  display: none;
}

.depth-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(14, 18, 25, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  color: var(--text);
  max-width: min(28rem, calc(100vw - 2rem));
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 0.94rem;
}

.depth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scrolly-story-section .section-deck {
  max-width: 80ch;
}

.scrolly-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  align-items: start;
}

.scrolly-steps {
  display: grid;
  gap: 0;
}

.scrolly-step {
  position: relative;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem 0 1.2rem 3rem;
  border-top: 1px dashed var(--line);
  opacity: 0.46;
  transform: translateX(0);
  transition: opacity var(--transition), transform var(--transition);
}

.scrolly-step:first-child {
  border-top: 0;
}

.scrolly-step.is-active {
  opacity: 1;
  transform: translateX(4px);
}

.scrolly-step h3 {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.scrolly-step p {
  margin: 0;
}

.step-index {
  position: absolute;
  left: 0;
  top: calc(50% - 0.72rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

.scrolly-step.is-active .step-index {
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #d5fbff);
  border-color: transparent;
}

.scrolly-visual {
  position: sticky;
  top: 6.5rem;
  min-height: 72vh;
  padding: 1rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(123,228,255,0.03), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.scene,
.figure-panel {
  display: none;
  gap: 1rem;
  height: 100%;
  align-content: start;
}

.scene.is-active,
.figure-panel.is-active {
  display: grid;
}

.scene-svg {
  width: 100%;
  height: auto;
  max-height: 540px;
}

.scene-caption {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--muted);
}

.svg-panel {
  fill: rgba(255,255,255,0.03);
  stroke: rgba(244, 242, 234, 0.1);
  stroke-width: 1.2;
}

.lattice-dots circle {
  fill: rgba(255,255,255,0.18);
}

.svg-soft-ring {
  fill: none;
  stroke: rgba(123,228,255,0.22);
  stroke-width: 1.8;
}

.svg-node {
  stroke-width: 1.6;
}

.svg-node-passive {
  fill: rgba(244,242,234,0.08);
  stroke: rgba(244,242,234,0.22);
}

.svg-node-active {
  fill: rgba(123,228,255,0.18);
  stroke: rgba(123,228,255,0.92);
}

.svg-text {
  fill: var(--muted);
  font-size: 17px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.svg-text.strong {
  fill: var(--text);
  font-weight: 700;
}

.scene-svg text.rotate {
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
}

.svg-axis,
.svg-arrow {
  fill: none;
  stroke: rgba(244,242,234,0.26);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.svg-arrow {
  stroke: rgba(123,228,255,0.6);
  stroke-width: 2.2;
}

.svg-wave,
.svg-wave-alt,
.svg-transfer,
.svg-pulse-trace,
.svg-pulse-trace-strong,
.svg-memory-tail,
.svg-pump,
.svg-leak,
.svg-threshold {
  fill: none;
  stroke-linecap: round;
}

.svg-wave {
  stroke: rgba(123,228,255,0.7);
  stroke-width: 4;
}

.svg-wave-alt {
  stroke: rgba(155,130,255,0.82);
  stroke-width: 3;
}

.svg-transfer {
  stroke: rgba(123,228,255,0.92);
  stroke-width: 5;
}

.svg-pulse-trace {
  stroke: rgba(155,130,255,0.75);
  stroke-width: 4;
}

.svg-pulse-trace-strong {
  stroke: rgba(217,255,114,0.78);
}

.svg-memory-tail {
  stroke: rgba(123,228,255,0.38);
  stroke-width: 3;
  stroke-dasharray: 6 8;
}

.svg-pump {
  stroke: rgba(217,255,114,0.8);
  stroke-width: 4;
}

.svg-leak {
  stroke: rgba(255,109,122,0.75);
  stroke-width: 3;
  stroke-dasharray: 7 8;
}

.svg-threshold {
  stroke: rgba(255,184,107,0.8);
  stroke-width: 2.2;
  stroke-dasharray: 5 7;
}

.svg-pill {
  fill: rgba(255,255,255,0.05);
  stroke: rgba(244,242,234,0.12);
  stroke-width: 1;
}

.svg-bar {
  fill: rgba(123,228,255,0.88);
}

.svg-bar-2 {
  fill: rgba(155,130,255,0.86);
}

.svg-bar-3 {
  fill: rgba(217,255,114,0.82);
}

.scrolly-shell-figures .scrolly-step {
  min-height: 52vh;
}

.figure-panel img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.figure-panel-copy {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}

.figure-panel-copy .bullets.compact {
  margin: 0.4rem 0 0;
}

.simulator-section .note {
  margin-bottom: 1rem;
}

.sim-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.sim-controls {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.sim-control {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.sim-control label,
.sim-pattern-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-weight: 650;
}

.value-chip {
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}

.sim-control input[type="range"] {
  width: 100%;
  margin-top: 0.75rem;
  accent-color: var(--accent);
}

.sim-help,
.sim-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sim-patterns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.sim-pattern-button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.sim-pattern-button:hover,
.sim-pattern-button:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  outline: none;
}

.sim-pattern-button.is-active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #d5fbff);
  border-color: transparent;
}

.sim-readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.sim-stat {
  padding: 0.9rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.22rem;
}

.sim-stat span {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sim-stat strong {
  font-size: 1.05rem;
}

.sim-visuals {
  display: grid;
  gap: 1rem;
}

.sim-network,
.sim-chart,
.sim-modes {
  padding: 1rem;
}

.sim-network-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
}

.sim-edge {
  fill: none;
  stroke: rgba(123,228,255,0.46);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-width 180ms ease, opacity 180ms ease;
}

.sim-edge-weak {
  stroke: rgba(123,228,255,0.26);
}

.sim-node {
  fill: rgba(123,228,255,0.18);
  stroke: rgba(244,242,234,0.7);
  stroke-width: 1.2;
  transition: r 140ms ease;
}

.sim-node-ring {
  fill: none;
  stroke: rgba(123,228,255,0.22);
  stroke-width: 2.2;
  transition: r 140ms ease, opacity 140ms ease;
}

.sim-pump-arrow {
  fill: none;
  stroke: rgba(217,255,114,0.82);
  stroke-width: 3;
  stroke-linecap: round;
  transition: opacity 120ms ease;
}

#sim-chart {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.legend-swatch {
  display: inline-block;
  width: 1.15rem;
  height: 0.18rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.legend-a { background: var(--accent); }
.legend-b { background: var(--violet); }
.legend-c { background: var(--lime); }
.legend-total { background: var(--warning); }

.mode-bars {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.mode-bar-row {
  display: grid;
  gap: 0.45rem;
}

.mode-bar-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.mode-bar-track {
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  border: 1px solid var(--line);
}

.mode-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(123,228,255,0.9), rgba(123,228,255,0.5));
  transition: width 180ms ease;
}

.mode-bar-fill-2 {
  background: linear-gradient(90deg, rgba(155,130,255,0.92), rgba(155,130,255,0.55));
}

.mode-bar-fill-3 {
  background: linear-gradient(90deg, rgba(217,255,114,0.88), rgba(217,255,114,0.48));
}

.roadmap-live-section .section-deck {
  max-width: 82ch;
}

.roadmap-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.roadmap-stack {
  display: grid;
  gap: 0.75rem;
  position: sticky;
  top: 6.5rem;
  padding: 0.9rem;
}

.stack-layer {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-align: left;
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.stack-layer:hover,
.stack-layer:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  outline: none;
}

.stack-layer.is-active {
  background:
    linear-gradient(135deg, rgba(123,228,255,0.1), rgba(155,130,255,0.08)),
    rgba(255,255,255,0.03);
  border-color: rgba(123,228,255,0.42);
  box-shadow: 0 10px 28px rgba(123,228,255,0.08);
}

.stack-stage {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.stack-layer span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.roadmap-detail {
  padding: 1.05rem;
  min-height: 34rem;
}

.roadmap-panel {
  display: none;
  gap: 0.8rem;
}

.roadmap-panel.is-active {
  display: grid;
}

.roadmap-panel h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.14;
}

.roadmap-panel p {
  margin: 0;
}

.company-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.5rem 0 0.3rem;
}

.company-pills a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.company-pills a:hover {
  border-color: rgba(123,228,255,0.38);
  text-decoration: none;
}

.roadmap-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.roadmap-meta-grid div {
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  display: grid;
  gap: 0.32rem;
}

.roadmap-meta-grid span {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1rem;
  margin-top: 1rem;
}

.fit-card {
  padding: 1rem;
}

.fit-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
}

.fit-table th,
.fit-table td {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0.4rem;
  text-align: left;
  vertical-align: top;
}

.fit-table th {
  font-weight: 600;
  color: var(--muted);
}

.fit-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.9rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fit-high {
  background: rgba(123,228,255,0.14);
  color: var(--accent);
}

.fit-med {
  background: rgba(255,184,107,0.12);
  color: var(--warning);
}

.fit-low {
  background: rgba(255,109,122,0.14);
  color: var(--danger);
}

@media (max-width: 1180px) {
  .topbar-controls {
    width: 100%;
    justify-items: start;
  }

  .depth-help {
    text-align: left;
  }

  .scrolly-shell,
  .sim-shell,
  .roadmap-shell,
  .fit-grid {
    grid-template-columns: 1fr;
  }

  .scrolly-visual,
  .roadmap-stack {
    position: static;
    top: auto;
  }

  .scrolly-step,
  .scrolly-shell-figures .scrolly-step {
    min-height: auto;
    padding: 1rem 0 1rem 2.6rem;
  }

  .step-index {
    top: 1.15rem;
  }

  .roadmap-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .depth-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .depth-button {
    min-width: 0;
    padding: 0.8rem 0.55rem;
  }

  .sim-readouts {
    grid-template-columns: 1fr;
  }

  .figure-panel img,
  .scene-svg {
    max-height: none;
  }

  .stack-layer {
    padding: 0.9rem;
  }

  .fit-table th,
  .fit-table td {
    padding: 0.7rem 0.25rem;
    font-size: 0.92rem;
  }

  .mode-callout {
    margin-top: 0.8rem;
  }
}


.depth-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 7.2rem;
  gap: 0.08rem;
  text-align: center;
  line-height: 1.05;
}

.depth-main {
  display: block;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.depth-sub {
  display: block;
  font-size: 0.67rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.depth-button.is-active .depth-sub {
  opacity: 0.88;
}

@media (max-width: 760px) {
  .depth-button {
    min-width: 5.9rem;
    padding-inline: 0.7rem;
  }
  .depth-main {
    font-size: 0.78rem;
  }
  .depth-sub {
    font-size: 0.62rem;
  }
}


@media (max-width: 760px) {
  .depth-button {
    min-width: 0;
    width: 100%;
    padding-inline: 0.55rem;
  }
}

.section-anchor {
  display: block;
}
.reader-path-button,
.sim-pattern-button,
.depth-button,
.topbar-shortcuts a,
.sim-reset-button {
  min-height: 44px;
}.proof-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pill-warning {
  color: #ffe2b8;
  background: rgba(255, 184, 107, 0.1);
  border-color: rgba(255, 184, 107, 0.24);
}

.sim-presets {
  margin-top: 0.85rem;
  padding: 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.sim-control-title {
  display: inline-flex;
  margin-bottom: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.sim-preset-buttons,
.sim-preset-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sim-preset-button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
}

.sim-preset-button:hover,
.sim-preset-button:focus-visible,
.sim-reset-button:hover,
.sim-reset-button:focus-visible {
  outline: none;
  border-color: var(--line-strong);
}

.sim-preset-button.is-active {
  background: linear-gradient(135deg, var(--accent), #d5fbff);
  color: var(--bg);
  border-color: transparent;
}

.sim-reset-button {
  appearance: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.58rem 0.95rem;
  min-height: 44px;
  margin-left: auto;
  cursor: pointer;
  font: inherit;
}

.sim-help#sim-interpretation {
  margin-top: 0.7rem;
}

:root {
  --font-sans: "Avenir Next", "Segoe UI", "SF Pro Text", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Bodoni Moda", "Charter", Georgia, "Times New Roman", serif;
}

body {
  font-family: var(--font-sans);
}

.brand-title {
  font-size: 0.98rem;
  max-width: 14rem;
  line-height: 1.05;
}

.topbar {
  gap: 0.9rem;
  padding: 0.82rem clamp(0.8rem, 2vw, 1.5rem);
}

.topbar-shortcuts a {
  min-height: 44px;
}

.display-title {
  font-size: clamp(2.1rem, 6vw, 3.2rem);
}

.section-title {
  font-size: clamp(1.52rem, 3vw, 2.55rem);
}

.claim-card h3,
.strategy-card h3,
.benchmark h3,
.glossary-card h3 {
  font-size: 1.45rem;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .topbar-shortcuts {
    width: 100%;
    margin: 0.2rem 0 0;
    max-width: 100%;
  }

  .topbar-shortcuts a {
    padding: 0.52rem 0.68rem;
    font-size: 0.78rem;
  }

  .display-title {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .topbar {
    gap: 0.65rem;
    padding: 0.72rem 0.7rem;
  }

  .depth-switch {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .depth-button {
    min-width: 0;
    padding: 0.66rem 0.48rem;
    width: 100%;
  }

  .depth-main {
    font-size: 0.74rem;
  }

  .depth-sub {
    font-size: 0.58rem;
  }

  .display-title {
    font-size: clamp(1.75rem, 10vw, 2.3rem);
  }

  .section-title {
    font-size: clamp(1.3rem, 7vw, 1.98rem);
    max-width: 100%;
  }

  .sim-presets {
    padding: 0.8rem;
  }

  .sim-preset-buttons,
  .sim-preset-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    width: 100%;
  }

  .sim-presets .sim-preset-toolbar {
    margin-top: 0.45rem;
  }
}

@media (max-width: 620px) {
  .brand-title {
    font-size: 0.9rem;
  }

  .topbar-shortcuts {
    gap: 0.35rem;
  }
}

.mobile-jump-nav {
  display: none;
}
