:root {
    --ink: #F8F6F1;
    --paper-2: #F0EDE7;
    --hairline: rgba(10,10,10,0.10);
    --hairline-strong: rgba(10,10,10,0.20);
    --text: #1A1A1A;
    --text-muted: #5B5B57;
    --text-soft: #6E6E69;
    --accent: #0057FF;
    --accent-bright: #2a72ff;
    --accent-dim: rgba(0,87,255,0.08);
    --red: #b8002e;
    --green: #0a7d3d;
    --gold: #8a5a00;
    --cyan: #006a8a;
    --aurora: #6c3aa8;
    --navy-1: #001540;
    --navy-2: #00205b;
    --navy-3: #0057FF;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --serif: 'Spectral', Georgia, 'Times New Roman', serif;
    --mono: 'JetBrains Mono', monospace;
    /* Dock heights — tuned in JS too. */
    --dock-collapsed: 48px;
    --dock-peek: 38vh;
    --dock-full: calc(100vh - 56px);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font);
    color: var(--text);
    background: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  ::selection { background: var(--accent-dim); color: var(--text); }
  a { color: var(--accent); text-decoration: none; }
  a:hover { color: var(--accent-bright); text-decoration: underline; }

  /* === ACCESSIBILITY === */
  /* Skip link: hidden until focused, then jumps to top of main content */
  .skip-link {
    position: fixed; top: 0; left: 0;
    z-index: 100;
    padding: 0.85rem 1.25rem;
    background: var(--accent); color: #fff;
    font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none;
    transform: translateY(-110%);
    transition: transform 0.15s ease;
  }
  .skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #fff; outline-offset: 2px;
    color: #fff; text-decoration: none;
  }
  /* Visible focus rings for keyboard users on every interactive surface.
     We rely on :focus-visible so mouse clicks don't show a ring. */
  :focus { outline: none; }
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
  }
  .hero a:focus-visible,
  .hero button:focus-visible {
    outline-color: #fff;
  }
  .topnav-link:focus-visible,
  .topnav-brand:focus-visible {
    outline-offset: 1px;
  }
  .signon-form input:focus,
  .signon-form textarea:focus { outline: none; } /* border colour change is the indicator */
  .signon-form input:focus-visible,
  .signon-form textarea:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 1px;
    border-color: var(--accent);
  }
  /* Honor user's motion preference: kill decorative animation. Charts also
     check this at runtime and stop their requestAnimationFrame loops. */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
    .hero-arrow { animation: none; }
    .hero-eyebrow .dot { animation: none; opacity: 1; }
  }
  /* sr-only utility for visually-hidden but screen-reader-readable text */
  .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
  }

  /* === TOP NAV === */
  .topnav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: 56px;
    background: rgba(248,246,241,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
  }
  .topnav-brand {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
    text-decoration: none;
  }
  .topnav-brand svg { width: 22px; height: 22px; color: var(--accent); }
  .topnav-links { display: flex; gap: 0.25rem; }
  .topnav-link {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.5rem 0.8rem; border-radius: 4px;
    text-decoration: none; transition: color 0.2s, background 0.2s;
  }
  .topnav-link:hover { color: var(--text); background: var(--paper-2); text-decoration: none; }
  .topnav-link[aria-current="page"] { color: var(--accent); background: var(--accent-dim); }
  .topnav-link-cta {
    background: var(--accent);
    color: #fff !important;
    border-radius: 4px;
    padding: 0.55rem 0.85rem;
    font-weight: 700;
  }
  .topnav-link-cta:hover { background: var(--accent); filter: brightness(1.1); color: #fff !important; }
  .topnav-link.is-external::after { content: ' \2197'; opacity: 0.5; }
  .topnav-link.is-placeholder {
    color: var(--text-soft);
    cursor: not-allowed;
    opacity: 0.7;
  }
  .topnav-link.is-placeholder::after {
    content: ' \B7 Soon';
    font-size: 0.58rem;
    opacity: 0.6;
    margin-left: 0.2rem;
  }
  .topnav-link.is-placeholder:hover {
    color: var(--text-soft);
    background: transparent;
  }

  /* Outline dropdown: minimalist chapter index hung from the topnav. */
  @keyframes outlineMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* === HERO === */
  .hero {
    min-height: 70vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 6rem 2rem 5rem;
    background: linear-gradient(170deg, var(--navy-1) 0%, var(--navy-2) 40%, var(--navy-3) 100%);
    color: #ffffff; position: relative; overflow: hidden;
    border-bottom: 1px solid var(--hairline);
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255,255,255,0.7); margin-bottom: 1.75rem;
  }
  .hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%; background: #00b4d8;
    animation: blink 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
  @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
  .hero h1 {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2.4rem, 5.5vw, 4.75rem);
    line-height: 1.05; letter-spacing: -0.02em;
    margin-bottom: 1.4rem; color: #ffffff;
    max-width: 14ch;
  }
  .hero-sub {
    font-size: clamp(0.95rem, 1.35vw, 1.1rem);
    color: rgba(255,255,255,0.78);
    max-width: 60ch;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }
  .hero-cta {
    display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 1.25rem;
  }
  .hero .btn-ghost.hero-btn {
    color: #fff; border-color: rgba(255,255,255,0.35);
  }
  .hero .btn-ghost.hero-btn:hover {
    border-color: #fff; color: #fff; background: rgba(255,255,255,0.1);
    text-decoration: none;
  }
  .hero-meta {
    display: flex; gap: 0.5rem 1.1rem; justify-content: center; flex-wrap: wrap;
    font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    max-width: 880px;
  }
  .hero-meta a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    display: inline-flex; align-items: baseline; gap: 0.45rem;
    transition: color 0.2s;
    white-space: nowrap;
  }
  .hero-meta a:hover { color: #ffffff; text-decoration: none; }
  .hero-meta-num {
    color: rgba(255,255,255,0.35);
    font-weight: 700;
  }
  .hero-meta a:hover .hero-meta-num { color: #00b4d8; }
  .hero-arrow {
    margin-top: 2.25rem;
    font-size: 1.3rem; color: rgba(255,255,255,0.45);
    animation: bob 2.5s ease-in-out infinite;
  }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

  /* === EXPERIENCE SHELL (story + viz as centered pair) === */
  .experience-shell {
    max-width: min(1280px, 94vw);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .experience-columns {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* === STORY ARTICLE === */
  .story {
    max-width: 70ch; margin: 0 auto;
    padding: 5rem 0 var(--dock-peek);
    width: 100%;
  }
  .story.dock-collapsed { padding-bottom: var(--dock-collapsed); }
  .story.dock-full { padding-bottom: var(--dock-full); }

  .scene {
    margin-bottom: 6rem; scroll-margin-top: 80px;
  }
  .scene-header { margin-bottom: 2rem; }
  .scene-kicker {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.75rem;
  }
  .scene-dateline {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-soft); margin-bottom: 1rem;
    display: block; line-height: 1.55;
  }
  .scene-prose .tktk {
    font-family: var(--mono); font-size: 0.85rem;
    color: var(--text-soft);
    padding: 1rem 1.2rem; border: 1px dashed var(--hairline-strong);
    border-radius: 4px;
    background: var(--paper-2);
    text-align: center;
    text-transform: uppercase; letter-spacing: 0.12em;
  }
  /* Digital Liberty Act nested bullets inside doc-inset */
  .doc-inset ul.doc-bullets, .doc-inset ul.doc-bullets ul {
    margin: 0.5rem 0 0.5rem 1.1rem; padding: 0; list-style: disc;
  }
  .doc-inset ul.doc-bullets li {
    font-size: 0.83rem; color: var(--text); line-height: 1.55;
    margin-bottom: 0.35rem;
  }
  .doc-inset ul.doc-bullets ul li {
    font-size: 0.8rem; color: var(--text-muted);
  }
  .scene-title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.05; letter-spacing: -0.02em;
    color: var(--text);
  }
  .scene-prose p {
    font-family: var(--serif); font-weight: 400;
    font-size: 1.125rem; line-height: 1.75;
    color: var(--text);
    margin-bottom: 1.4rem;
    text-wrap: pretty;
  }
  .scene-prose p:first-of-type::first-letter {
    /* Subtle drop-cap on the opening paragraph of each scene. */
  }
  .scene-prose .dialogue {
    font-style: italic;
  }

  /* Document inset (used inside Berlin chapter for the Digital Liberty Act fragment) */
  .doc-inset {
    margin: 2.25rem 0;
    padding: 1.5rem 1.75rem;
    background: var(--paper-2);
    border: 1px solid var(--hairline-strong);
    border-radius: 4px;
    font-family: var(--font);
  }
  .doc-inset h4 {
    font-family: var(--mono); font-size: 0.75rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text); margin-bottom: 0.5rem;
  }
  .doc-inset .doc-subtitle {
    font-family: var(--font); font-size: 0.85rem;
    color: var(--text-muted); margin-bottom: 1.25rem;
    line-height: 1.55;
  }
  .doc-inset .doc-section {
    font-family: var(--mono); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin: 1.1rem 0 0.4rem;
  }
  .doc-inset .doc-item {
    font-size: 0.83rem; color: var(--text); margin-bottom: 0.5rem;
    line-height: 1.55;
  }
  .doc-inset .doc-list-intro {
    font-size: 0.83rem; color: var(--text-muted); margin-bottom: 0.5rem;
  }
  .doc-inset p { margin-bottom: 0.5rem; }

  /* === BRIEFING (executive summary + PDF link) === */
  .briefing {
    background: var(--paper-2);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 5rem 1.5rem;
  }
  .briefing-inner {
    max-width: 78ch; margin: 0 auto;
  }
  .briefing-kicker {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.75rem;
  }
  .briefing-title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1; letter-spacing: -0.02em;
    color: var(--text); margin-bottom: 0.75rem;
  }
  .briefing-lede {
    font-size: 1.05rem; color: var(--text-muted);
    margin-bottom: 2.5rem;
  }
  .briefing-list {
    list-style: none; padding: 0; margin: 0 0 2.5rem;
    counter-reset: brief;
  }
  .briefing-list li {
    counter-increment: brief;
    position: relative;
    padding: 1.1rem 0 1.1rem 3.4rem;
    border-top: 1px solid var(--hairline);
    font-size: 0.98rem; line-height: 1.65;
    color: var(--text);
  }
  .briefing-list li:last-child { border-bottom: 1px solid var(--hairline); }
  .briefing-list li::before {
    content: counter(brief, decimal-leading-zero);
    position: absolute; left: 0; top: 1.15rem;
    font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
  }
  .briefing-list strong { color: var(--text); font-weight: 700; display: block; margin-bottom: 0.25rem; }
  .briefing-cta {
    display: flex; gap: 0.85rem; flex-wrap: wrap;
    margin-bottom: 1.25rem;
  }
  .briefing-credit {
    font-size: 0.78rem; color: var(--text-soft);
    line-height: 1.5;
  }

  /* === OUTRO === */
  .outro {
    max-width: 70ch; margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    text-align: center;
  }
  .outro-line {
    font-family: var(--serif); font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.4; color: var(--text);
    margin-bottom: 2.5rem;
  }
  .outro-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  }
  .btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.6rem; border-radius: 4px;
    font-family: var(--font); font-size: 0.9rem; font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .btn-primary {
    background: var(--accent); color: #fff; border: 1px solid var(--accent);
  }
  .btn-primary:hover {
    background: var(--accent-bright); border-color: var(--accent-bright);
    color: #fff; text-decoration: none;
  }
  .btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--hairline-strong);
  }
  .btn-ghost:hover {
    border-color: var(--accent); color: var(--accent);
    text-decoration: none;
  }

/* dock-body is the scroll container on mobile/tablet. Active pane is a
     normal block child whose content can exceed the dock height — the dock-body
     scrolls. On desktop this is overridden to overflow: visible so the dock
     itself auto-sizes to content. */
  .viz-pane {
    display: none;
    padding: 1.25rem 1.5rem;
    background: var(--ink);
  }
  .viz-pane.is-active {
    display: block;
  }
  .viz-pane-inner {
    max-width: 1100px; margin: 0 auto;
    width: 100%;
    flex: 1; min-height: 0;
    display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem;
    align-items: stretch;
  }
  .viz-pane.is-full .viz-pane-inner { grid-template-columns: 320px 1fr; }
  /* In peek mode, hide the side explainer so the chart fills the dock. */
  /* Peek state always shows both the explainer and the chart; the dock body
     scrolls (mobile) or auto-sizes (desktop). */
  .viz-explainer {
    overflow-y: auto; min-height: 0;
  }
  .viz-explainer h4 {
    font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.4rem;
  }
  .viz-explainer h4 + p {
    font-size: 0.82rem; line-height: 1.6;
    color: var(--text); margin-bottom: 0.85rem;
  }
  .viz-explainer .viz-source {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: var(--mono); font-size: 0.62rem;
    color: var(--text-soft);
    padding: 2px 8px; border: 0.5px solid var(--hairline-strong);
    border-radius: 4px; text-decoration: none;
  }
  .viz-explainer .viz-source + .viz-source { margin-left: 4px; }
  .viz-footnotes {
    margin-top: 0.85rem;
    padding-left: 1.1rem;
    list-style: decimal;
    font-family: var(--font);
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--text-soft);
  }
  .viz-footnotes li { margin-bottom: 0.3rem; }
  .viz-footnotes li::marker {
    color: var(--accent);
    font-family: var(--mono);
    font-weight: 700;
  }
  .viz-footnotes a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--hairline-strong);
    text-underline-offset: 2px;
  }
  .viz-footnotes a:hover { color: var(--accent); text-decoration-color: var(--accent); }
  /* Collapsible sources block (collapsed by default). */
  .viz-sources {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px dashed var(--hairline-strong);
  }
  .viz-sources > summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-soft);
    user-select: none;
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.2rem 0;
  }
  .viz-sources > summary::-webkit-details-marker { display: none; }
  .viz-sources > summary::before {
    content: '+';
    font-family: var(--mono); font-size: 0.85rem;
    width: 0.85rem; display: inline-block;
    color: var(--accent);
  }
  .viz-sources[open] > summary::before { content: '\2212'; }
  .viz-sources > summary:hover { color: var(--text); }
  .viz-sources > .viz-footnotes {
    margin-top: 0.5rem;
    padding-top: 0;
  }
  .viz-canvas-wrap {
    background: var(--paper-2);
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 1rem;
    min-height: 0; min-width: 0;
    display: flex; flex-direction: column;
    overflow: auto;
    position: relative;
    --db-text: var(--text);
    --db-dim: var(--text-soft);
    --db-border: var(--hairline-strong);
    --db-cyan: #006a8a;
    --db-green: #0a7d3d;
    --db-red: #b8002e;
    --db-gold: #8a5a00;
    --db-aurora: #6c3aa8;
    --data-text-muted: var(--text-soft);
  }
  /* Fixed canvas size: predictable on every screen, no flex/100% guessing. */
  .viz-canvas-wrap > canvas {
    width: 100%;
    height: 300px;
    display: block;
  }
  .viz-canvas-wrap[data-tall] > canvas { height: 360px; }

  /* Compute Map (HTML, not canvas — three big stat rows with bars). */
  .compute-stats-wrap { padding: 1rem; }
  .compute-stats {
    display: grid; gap: 1.1rem;
  }
  .compute-stat {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.85rem;
    align-items: start;
  }
  .compute-stat-number {
    font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .compute-stat[data-tone="blue"]  .compute-stat-number { color: #1a6cd4; }
  .compute-stat[data-tone="green"] .compute-stat-number { color: #0a7d3d; }
  .compute-stat[data-tone="red"]   .compute-stat-number { color: #b8002e; }
  .compute-stat-body { min-width: 0; }
  .compute-stat-label {
    font-family: var(--font); font-size: 0.92rem; font-weight: 600;
    color: var(--text); line-height: 1.3;
    margin-bottom: 0.3rem;
  }
  .compute-stat-sub {
    font-family: var(--font); font-size: 0.74rem; line-height: 1.5;
    color: var(--text-soft);
  }
  @media (max-width: 600px) {
    .compute-stat { grid-template-columns: 64px 1fr; gap: 0.65rem; }
    .compute-stat-number { font-size: 1.25rem; }
  }

  /* Compute stack: 11 named EuroHPC contributors as one stacked bar,
     compared with a single US frontier cluster reference bar below it. */
  .compute-pool-wrap { padding: 0.4rem; }
  .compute-stack {
    display: block;
    width: 100%;
    height: 100%;
  }
  .compute-stack .cs-title {
    font-family: var(--mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    fill: var(--text-soft);
  }
  .compute-stack .cs-row-label {
    font-family: var(--mono); font-size: 8.5px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    fill: rgba(10,10,10,0.7);
  }
  .compute-stack .cs-code {
    font-family: var(--mono); font-size: 10px; font-weight: 700;
    fill: #fff;
  }
  .compute-stack .cs-code-sm {
    font-size: 7.5px;
  }
  .compute-stack .cs-total {
    font-family: var(--mono); font-size: 11.5px; font-weight: 700;
    fill: var(--accent);
  }
  .compute-stack .cs-frontier-label {
    font-family: var(--mono); font-size: 11.5px; font-weight: 700;
    fill: #b8002e;
  }
  .compute-stack .cs-axis {
    font-family: var(--mono); font-size: 8.5px; font-weight: 600;
    fill: rgba(10,10,10,0.5);
  }
  .compute-stack .cs-legend {
    font-family: var(--font); font-size: 8.5px;
    fill: rgba(10,10,10,0.65);
  }

  /* HF live cards */
  .hf-cards {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem;
  }
  .hf-cards > div {
    background: var(--ink) !important;
    border: 0.5px solid var(--hairline-strong) !important;
  }

  /* Lang chart: three stacked bars, segments sized by speaker count */
  .viz-canvas-wrap #dbLangHeatmap {
    width: 100%;
  }

  /* Fade scroll padding inside dock body when peeked. Kept as pointer-events:
     none so it doesn't intercept clicks, and explicitly z-index:0 so it never
     stacks over real content. */
  .viz-pane::after {
    content: '';
    position: sticky; bottom: 0; left: 0; right: 0;
    height: 18px;
    background: linear-gradient(transparent, var(--ink));
    pointer-events: none;
    display: block;
    z-index: 0;
  }

  /* === DESKTOP: centered two-column — prose left, viz right === */
  @media (min-width: 1024px) {
    :root {
      --dock-full: calc(100vh - 72px - 16px);
    }
    .experience-columns {
      display: grid;
      grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
      gap: clamp(1.25rem, 3vw, 2.5rem);
      align-items: start;
    }
    .story {
      max-width: none;
      margin: 0;
      padding: 5rem 0 5rem;
    }
    .story.dock-collapsed,
    .story.dock-full { padding-bottom: 5rem; }
    .viz-pane { padding: 1rem 1.15rem; }
    .viz-pane-inner { grid-template-columns: 1fr; gap: 0.85rem; }
    .viz-explainer { overflow: visible; }
    .viz-canvas-wrap {
      flex: 0 0 auto;
      margin-top: 1rem;
      position: relative;
      z-index: 1;
      background: var(--paper-2);
    }
  }

  /* === RESPONSIVE === */
  @media (max-width: 1023px) {
    .experience-shell { padding: 0 1.25rem; }
    .story {
      max-width: 70ch;
      margin: 0 auto;
      padding: 4rem 0 var(--dock-peek);
    }
    .experience-columns {
      display: block;
    }
    /* Mobile: keep bottom-fixed dock so charts stay visible while scrolling chapters */
  }
  @media (max-width: 900px) {
    :root {
      --dock-peek: 42vh;
    }
    .viz-pane-inner { grid-template-columns: 1fr; }
    .viz-pane.is-full .viz-pane-inner { grid-template-columns: 1fr; }
    .viz-explainer { order: 2; }
    .viz-canvas-wrap { order: 1; }
  }

/* Push the viz-pane content down when the decision strip is active */

  /* === COUNTRY MAP (sticky right-side widget that tracks the active chapter) === */
  .country-map { display: none; }
  @media (min-width: 1024px) {
    .country-map {
      display: block;
      position: sticky;
      top: calc(56px + 1.5rem);
      align-self: start;
      width: 220px;
      flex-shrink: 0;
      order: 2;
      margin-left: clamp(1rem, 3vw, 2rem);
    }
    /* Override the old grid: lay story + map side-by-side. */
    .experience-columns {
      display: flex !important;
      flex-direction: row;
      align-items: flex-start;
      gap: clamp(1rem, 3vw, 2.5rem);
    }
    .experience-columns > .story { flex: 1 1 auto; min-width: 0; order: 1; }
  }
  .country-map-frame {
    width: 220px; height: 220px;
    margin: 0 auto;
    background: transparent;
    overflow: visible;
    position: relative;
  }
  .country-map-frame svg {
    display: block;
    width: 100%; height: 100%;
  }

  /* Land: a soft warm tone that reads against the ocean disc. */
  .country-map .cm-country {
    fill: rgba(10,10,10,0.22);
    stroke: rgba(10,10,10,0.55);
    stroke-width: 0.4;
    stroke-linejoin: round;
    transition: fill 0.5s ease, stroke 0.5s ease;
  }
  .country-map .cm-country.is-active {
    fill: var(--accent);
    stroke: #001540;
    stroke-width: 0.6;
    filter: drop-shadow(0 0 2px rgba(0,119,200,0.55));
  }
  /* Whirl: continuously rotates very slowly around the globe. */
  .country-map .cm-whirl {
    transform-box: view-box;
    transform-origin: 100px 100px;
    animation: cm-whirl-spin 40s linear infinite;
  }
  @keyframes cm-whirl-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  /* City dot for the active chapter. */
  .country-map .cm-dot {
    fill: var(--accent);
    stroke: #fff;
    stroke-width: 1;
    transition: opacity 0.3s ease;
    transform-box: fill-box;
    transform-origin: center;
  }
  .country-map .cm-dot.is-hidden { opacity: 0; }
  .country-map .cm-dot.is-visible {
    animation: cm-pulse 1.8s ease-in-out infinite;
  }
  @keyframes cm-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.6); }
  }
  @media (prefers-reduced-motion: reduce) {
    .country-map .cm-whirl { animation: none; }
    .country-map .cm-dot.is-visible { animation: none; }
  }

  /* === OUTCOME SPLIT: Your Coalition (left) + Live Data (right) side by side === */
  .outcome-split {
    display: block;
    margin-top: 2rem;
  }
  .outcome-split-design { min-width: 0; margin-bottom: 2rem; }
  @media (min-width: 1200px) {
    .outcome-split {
      display: grid;
      grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
      gap: 2.25rem;
      align-items: start;
    }
    .outcome-split-design { margin-bottom: 0; }
  }

  /* === SUPPORTING DATA (Live data: dense bento grid of all 8 charts) === */
  .supporting-data {
    padding-top: 0;
    border-top: 0;
    min-width: 0;
  }
  .supporting-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-top: 0.6rem;
    counter-reset: viz;
  }
  /* Side-by-side (>=1200px): 2-col grid in the right column.
     Wide charts (chord, timeline, constellation) span both cols. */
  @media (min-width: 1200px) {
    .supporting-data-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: minmax(0, auto);
      gap: 0.7rem;
    }
    .supporting-data-grid > :nth-child(1) { grid-column: span 2; }
    .supporting-data-grid > :nth-child(2) { grid-column: span 2; }
    .supporting-data-grid > :nth-child(3) { grid-column: span 1; }
    .supporting-data-grid > :nth-child(4) { grid-column: span 1; }
    .supporting-data-grid > :nth-child(5) { grid-column: span 1; }
    .supporting-data-grid > :nth-child(6) { grid-column: span 1; }
    .supporting-data-grid > :nth-child(7) { grid-column: span 2; }
    .supporting-data-grid > :nth-child(8) { grid-column: span 2; }
  }
  /* Intermediate (stacked below coalition): 4-col compact grid. */
  @media (min-width: 700px) and (max-width: 1199px) {
    .supporting-data-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .supporting-data-grid > :nth-child(1),
    .supporting-data-grid > :nth-child(2),
    .supporting-data-grid > :nth-child(7),
    .supporting-data-grid > :nth-child(8) { grid-column: span 2; }
  }
  @media (max-width: 600px) {
    .supporting-data-grid { grid-template-columns: 1fr; gap: 0.55rem; }
  }
  /* Section title compressed to a single thin line */
  .supporting-data-header {
    margin-bottom: 0.1rem;
    max-width: 60ch;
  }
  .supporting-data-title {
    font-family: var(--mono);
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 0;
  }
  .supporting-data-note { display: none; }
  /* Bento tile: clean frame, info button in the top-right corner. */
  .viz-card {
    counter-increment: viz;
    background: var(--ink);
    border: 1px solid var(--hairline);
    border-radius: 5px;
    overflow: hidden;
    padding: 0.7rem 0.85rem 0.6rem;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .viz-card .viz-pane-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }

  /* Info button: tiny "i" in the top-right; opens an overlay with explainer + sources. */
  .viz-info {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
  }
  .viz-info > summary.viz-info-btn {
    pointer-events: auto;
    position: absolute;
    top: 0.45rem; right: 0.45rem;
    z-index: 5; /* always sits above viz-info-body so it stays clickable */
    list-style: none;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    background: var(--ink);
    border: 1px solid var(--hairline-strong);
    border-radius: 50%;
    font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
    font-style: italic;
    color: var(--text-soft);
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .viz-info > summary.viz-info-btn::-webkit-details-marker { display: none; }
  .viz-info > summary.viz-info-btn::marker { content: ''; }
  .viz-info > summary.viz-info-btn:hover {
    background: var(--paper-2);
    color: var(--text);
    border-color: var(--text-soft);
  }
  .viz-info[open] > summary.viz-info-btn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .viz-info[open] > summary.viz-info-btn::before {
    content: '\00d7'; /* multiplication sign as a "close" affordance */
    font-style: normal;
    font-size: 0.95rem;
  }
  .viz-info[open] > summary.viz-info-btn { font-size: 0; }

  /* Overlay body: covers the card, scrollable. */
  .viz-info-body {
    pointer-events: auto;
    position: absolute;
    inset: 0;
    background: var(--ink);
    padding: 2.5rem 1rem 1rem;
    overflow-y: auto;
    font-family: var(--font);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text);
    border-radius: inherit;
  }
  .viz-info-body h4 {
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0.7rem 0 0.25rem;
  }
  .viz-info-body h4:first-child { margin-top: 0; }
  .viz-info-body p { margin: 0 0 0.55rem; }
  .viz-info-body details.viz-sources {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--hairline);
  }
  .viz-info-body details.viz-sources > summary {
    font-family: var(--mono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    cursor: pointer;
    list-style: revert;
    margin-bottom: 0.4rem;
  }
  .viz-info-body .viz-footnotes {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.7rem;
    color: var(--text-soft);
  }
  .viz-info-body .viz-footnotes li { margin-bottom: 0.35rem; line-height: 1.4; }
  .viz-info-body .viz-footnotes a { color: var(--accent); text-decoration: underline; }
  .viz-card .viz-canvas-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0.15rem 0;
    margin-top: 0;
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
  }
  .viz-card .viz-canvas-wrap canvas {
    width: 100%;
    height: 170px;
    display: block;
  }
  .viz-card .viz-canvas-wrap[data-tall] canvas { height: 190px; }
  /* Wide bento tiles (chord, timeline, compute) get more chart height. */
  .supporting-data-grid > :nth-child(1) .viz-canvas-wrap canvas,
  .supporting-data-grid > :nth-child(2) .viz-canvas-wrap canvas,
  .supporting-data-grid > :nth-child(7) .viz-canvas-wrap canvas,
  .supporting-data-grid > :nth-child(8) .viz-canvas-wrap canvas {
    height: 210px;
  }
  .compute-stack { height: 210px; }

  /* Header: date pill + name on a single row, room reserved for the info button */
  .viz-card .viz-header {
    display: flex; align-items: center; gap: 0.45rem;
    margin: 0 0 0.5rem;
    padding-right: 2rem;
    flex-wrap: nowrap;
    min-width: 0;
  }
  .viz-date-pill {
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.5rem;
    background: var(--accent);
    color: #fff;
    border-radius: 3px;
    font-family: var(--mono); font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.13em; text-transform: uppercase;
    flex-shrink: 0;
  }
  .viz-name {
    font-family: var(--mono); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Footer: single line of mini-stats, separated by hairlines */
  .viz-card .viz-footer {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--hairline);
    min-width: 0;
  }
  .viz-mini-stat {
    display: flex; flex-direction: column; gap: 0.1rem;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }
  .viz-mini-stat + .viz-mini-stat {
    border-left: 1px solid var(--hairline);
    padding-left: 0.65rem;
  }
  .viz-mini-value {
    font-family: var(--mono); font-size: 0.92rem; font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .viz-mini-label {
    font-family: var(--mono); font-size: 0.5rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-soft);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* === OUTCOME SCREEN === */
  .outcome {
    background: var(--ink);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    padding: 5rem 1.5rem;
  }
  .outcome-inner {
    max-width: min(1320px, 96vw); margin: 0 auto;
  }
  .outcome-kicker {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    margin-bottom: 0.6rem;
  }
  .outcome[data-tier="forms"] .outcome-kicker { color: var(--accent); }
  .outcome[data-tier="imperfect"] .outcome-kicker { color: var(--gold); }
  .outcome[data-tier="boil"] .outcome-kicker { color: var(--red); }
  .outcome-title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.05; letter-spacing: -0.02em;
    color: var(--text); margin-bottom: 1rem;
  }
  .outcome-synthesis {
    font-family: var(--serif);
    font-size: 1.1rem; line-height: 1.65;
    color: var(--text); margin-bottom: 2.5rem;
    max-width: 60ch;
  }
  .outcome-grid-title {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-soft);
    margin: 0 0 0.85rem; padding-top: 1.5rem;
    border-top: 1px solid var(--hairline);
  }
  .outcome-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  /* === COALITION DESIGN PANEL === */
  .coalition-design {
    display: grid; gap: 2.5rem;
    margin: 2rem 0 2.5rem;
  }

  /* Inline picks embedded inside each design-section. Each pick reads as a
     line of the brief: short label, option chips, and the picked option's
     impact in a hairline-bordered callout. */
  .design-picks {
    display: grid; gap: 1.1rem;
    margin: 1.1rem 0 1.4rem;
  }
  .design-pick {
    padding-top: 0.85rem;
    border-top: 1px dashed var(--hairline);
  }
  .design-pick:first-child {
    border-top: none;
    padding-top: 0;
  }
  .design-pick-label {
    font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-soft);
    display: block; margin-bottom: 0.55rem;
  }
  .design-pick-options {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: 0.5rem;
  }
  .design-pick-option {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    min-height: 36px;
    background: var(--paper-2); color: var(--text);
    border: 1px solid var(--hairline-strong); border-radius: 4px;
    font-family: var(--font); font-size: 0.82rem; font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
  }
  .design-pick-option:hover { border-color: var(--accent); color: var(--accent); }
  .design-pick-option.is-picked {
    background: var(--accent); color: #fff; border-color: var(--accent);
  }
  .design-pick-option .option-tag {
    font-family: var(--mono); font-size: 0.52rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    opacity: 0.7;
  }
  .design-pick-impact {
    font-family: var(--font); font-size: 0.82rem; line-height: 1.5;
    color: var(--text-soft);
    padding: 0.5rem 0.75rem;
    border-left: 3px solid var(--hairline-strong);
    background: var(--paper-2);
    border-radius: 0 4px 4px 0;
    margin: 0;
  }
  .design-pick-impact[data-strength="active"]  { border-left-color: var(--accent); }
  .design-pick-impact[data-strength="mid"]     { border-left-color: var(--gold); }
  .design-pick-impact[data-strength="passive"] { border-left-color: var(--red); }

  /* Per-section split: controls/context on the left, derived result on the
     right. Engages on desktop only; stacks below 1024px. */
  .design-split-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: 1.1rem;
  }
  .design-split-body .design-picks { margin: 0; }
  .design-split-body .design-grid,
  .design-split-body .design-rows { margin: 0; }
  @media (min-width: 1024px) {
    .design-split-body {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
      gap: 2rem;
      align-items: start;
    }
    /* Within a split, the right column has less width; use a 2-column card
       grid so 10 cards lay out as a compact 5x2. */
    .design-split-body .design-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  /* "Derivation" block used on sections that have no inline picks (the left
     column instead carries the static reasoning that shapes the right). */
  .design-derivation {
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-dim);
    border-radius: 0 4px 4px 0;
  }
  .design-derivation-label {
    display: block;
    font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }
  .design-derivation p {
    font-family: var(--font); font-size: 0.85rem; line-height: 1.55;
    color: var(--text);
    margin-bottom: 0.5rem;
  }
  .design-derivation p:last-child { margin-bottom: 0; }
  .design-derivation-quote {
    font-style: italic;
    color: var(--text-soft);
    border-top: 1px dashed var(--hairline-strong);
    padding-top: 0.55rem;
    margin-top: 0.55rem;
  }
  .design-derivation-list {
    list-style: none;
    margin: 0.35rem 0 0.65rem;
    padding: 0;
    display: grid; gap: 0.25rem;
  }
  .design-derivation-list li {
    font-family: var(--mono); font-size: 0.72rem;
    color: var(--text-soft);
    display: flex; gap: 0.5rem; align-items: baseline;
  }
  .design-derivation-list li span:first-child {
    font-weight: 700; color: var(--text);
  }
  .design-derivation-list li[data-active="true"] {
    color: var(--accent);
  }
  .design-derivation-list li[data-active="true"] span:first-child {
    color: var(--accent);
  }
  .design-derivation-list em { font-style: normal; font-weight: 700; }

  /* Summary section: list of "Component  ·  resolved value" rows in the right
     column. */
  .design-section-summary { border-top: 2px solid var(--accent); padding-top: 2rem; }
  .design-summary-stats {
    display: grid; gap: 0.6rem;
    padding: 1rem 0;
    border: 1px solid var(--accent-dim);
    border-radius: 5px;
    background: var(--paper);
  }
  .design-summary-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: baseline;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--hairline);
  }
  .design-summary-row:last-child { border-bottom: none; }
  .design-summary-row-label {
    font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-soft);
  }
  .design-summary-row-value {
    font-family: var(--font); font-size: 0.95rem; font-weight: 600;
    color: var(--text);
  }
  .design-section {
    padding-top: 1.75rem;
    border-top: 1px solid var(--hairline);
  }
  .design-section-kicker {
    font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }
  .design-section-title {
    font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
  }
  .design-section-note {
    font-family: var(--font); font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 1.1rem;
    max-width: 65ch;
  }
  .design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.7rem;
  }
  .design-card {
    padding: 0.85rem 1rem;
    border: 1px solid var(--hairline);
    border-radius: 5px;
    background: var(--paper);
    transition: border-color 0.15s, background 0.15s;
  }
  .design-card.is-active {
    border-color: var(--accent);
    background: var(--accent-dim);
  }
  .design-card.is-anchor { border-style: solid; }
  .design-card-name {
    font-family: var(--font); font-size: 0.95rem; font-weight: 600;
    color: var(--text);
    display: flex; align-items: baseline; gap: 0.4rem;
  }
  .design-card.is-active .design-card-name { color: var(--accent); }
  .design-card-tag {
    font-family: var(--mono); font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-soft); opacity: 0.85;
  }
  .design-card.is-active .design-card-tag { color: var(--accent); opacity: 1; }
  .design-card-gate {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--hairline-strong);
    font-family: var(--font); font-size: 0.72rem; line-height: 1.45;
    color: var(--text-soft);
  }
  .design-card-gate em {
    font-style: italic;
    color: var(--text);
  }
  .design-card-gate strong {
    font-family: var(--mono); font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--text);
  }
  .design-card.is-active .design-card-gate { color: var(--text); }
  .design-card.is-active .design-card-gate em,
  .design-card.is-active .design-card-gate strong { color: var(--accent); }
  .design-card-entity {
    font-family: var(--mono); font-size: 0.68rem;
    color: var(--text-soft);
    margin-top: 2px;
  }
  .design-card-brings {
    font-family: var(--font); font-size: 0.78rem; line-height: 1.45;
    color: var(--text);
    margin-top: 0.45rem;
  }
  .design-card[aria-disabled="true"] {
    opacity: 0.45;
  }

  .design-rows { display: grid; gap: 0.55rem; }
  .design-row {
    padding: 0.85rem 1rem;
    border: 1px solid var(--hairline);
    border-radius: 5px;
    background: var(--paper);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    align-items: baseline;
  }
  .design-row.is-active {
    border-color: var(--accent);
    background: var(--accent-dim);
  }
  .design-row-name {
    font-family: var(--font); font-size: 0.92rem; font-weight: 600;
    color: var(--text);
    display: flex; align-items: baseline; gap: 0.4rem;
  }
  .design-row.is-active .design-row-name { color: var(--accent); }
  .design-row-desc {
    font-family: var(--font); font-size: 0.85rem; line-height: 1.5;
    color: var(--text-soft);
  }
  .design-row.is-active .design-row-desc { color: var(--text); }

  .design-mvp {
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--accent);
    background: var(--accent-dim);
    border-radius: 6px;
  }
  .design-mvp-stats {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    margin-bottom: 0.65rem;
  }
  .design-mvp-stat {
    font-family: var(--mono); font-size: 0.92rem; font-weight: 700;
    color: var(--accent);
  }
  .design-mvp-stat span {
    display: block;
    font-family: var(--font); font-size: 0.65rem; font-weight: 500;
    color: var(--text-soft);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-top: 2px;
  }
  .design-mvp-anti {
    font-family: var(--font); font-size: 0.82rem;
    color: var(--text-soft);
    font-style: italic;
  }
  @media (max-width: 600px) {
    .design-row { grid-template-columns: 1fr; gap: 0.3rem; }
    .design-grid { grid-template-columns: 1fr; }
  }
  /* === DECISIONS PANEL (in the outcome section) === */
  .decisions-panel {
    margin: 0.5rem 0 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--hairline);
  }
  .decisions-panel-title {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 0.45rem;
  }
  .decisions-panel-note {
    font-family: var(--font); font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 1.25rem;
    max-width: 60ch;
  }
  .decisions-list {
    list-style: none;
    display: grid; gap: 1.1rem;
    margin: 0; padding: 0;
  }
  @media (max-width: 600px) {
  }
  .outcome-row {
    display: grid; grid-template-columns: 160px 1fr auto; gap: 1rem;
    align-items: baseline;
    padding: 0.75rem 0;
    border-top: 1px solid var(--hairline);
    font-size: 0.92rem;
  }
  .outcome-row:last-child { border-bottom: 1px solid var(--hairline); }
  .outcome-row-label {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-soft);
  }
  .outcome-row-value { color: var(--text); }
  .outcome-row-tag {
    font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 3px;
  }
  .outcome-row-tag[data-strength="active"] { background: var(--accent-dim); color: var(--accent); }
  .outcome-row-tag[data-strength="mid"] { background: rgba(138,90,0,0.10); color: var(--gold); }
  .outcome-row-tag[data-strength="passive"] { background: rgba(184,0,46,0.08); color: var(--red); }
  .outcome-row-tag[data-strength="observe"] { background: var(--paper-2); color: var(--text-soft); }
  .outcome-actions {
    display: flex; gap: 0.85rem; flex-wrap: wrap;
  }

  /* === SIGN-ON === */
  .signon {
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg, var(--ink) 0%, var(--paper-2) 100%);
  }
  .signon-inner {
    max-width: 56ch; margin: 0 auto; text-align: center;
  }
  .signon-kicker {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 0.6rem;
  }
  .signon-title {
    font-family: var(--serif); font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.1; letter-spacing: -0.02em;
    color: var(--text); margin-bottom: 0.75rem;
  }
  .signon-lede {
    font-size: 1rem; color: var(--text-muted);
    margin-bottom: 2rem;
  }
  .signon-form {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem;
    text-align: left;
  }
  .signon-form .field-full { grid-column: 1 / -1; }
  .signon-form label {
    display: block;
    font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-soft); margin-bottom: 0.3rem;
  }
  .signon-form input,
  .signon-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: var(--ink);
    color: var(--text);
    border: 1px solid var(--hairline-strong); border-radius: 4px;
    font-family: var(--font); font-size: 0.92rem;
    transition: border-color 0.15s;
  }
  .signon-form input:focus,
  .signon-form textarea:focus {
    outline: none; border-color: var(--accent);
  }
  .signon-form textarea { resize: vertical; min-height: 70px; }
  .signon-actions {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 1rem; justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }
  .signon-fallback {
    font-size: 0.78rem; color: var(--text-soft);
  }
  .signon-fallback a { color: var(--text); border-bottom: 1px solid var(--hairline-strong); text-decoration: none; }
  .signon-success {
    grid-column: 1 / -1;
    display: none;
    padding: 1rem 1.2rem;
    border: 1px solid var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.9rem; line-height: 1.5;
    border-radius: 4px;
  }
  .signon.is-submitted .signon-form > :not(.signon-success) { display: none; }
  .signon.is-submitted .signon-success { display: block; }

  @media (max-width: 600px) {
    :root {
      /* Mobile dock: peek a bit taller so the chart still gets ~150px clear of the strip. */
      --dock-peek: 50vh;
      --dock-full: calc(100vh - 56px - env(safe-area-inset-top, 0px));
    }
    .topnav { padding: 0 0.85rem; }
    .topnav-link { padding: 0.55rem 0.7rem; font-size: 0.7rem; min-height: 40px; display: inline-flex; align-items: center; }
    .topnav-brand { font-size: 0.7rem; }
    .topnav-brand-text { display: none; }
    .hero { padding: 4.5rem 1.25rem 3.5rem; min-height: 0; }
    .hero h1 { font-size: clamp(2rem, 9vw, 3rem); margin-bottom: 1rem; }
    .hero-sub { font-size: 0.92rem; line-height: 1.55; margin-bottom: 1.75rem; }
    /* Hero TOC: 2-column grid so 11 items don't sprawl into 6 wrapping rows. */
    .hero-meta {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 0.45rem 0.85rem; font-size: 0.62rem;
      padding-top: 1.25rem;
      max-width: 100%;
    }
    .hero-meta a { white-space: normal; line-height: 1.35; }
    .hero-arrow { margin-top: 1.75rem; }
    .story { padding: 3rem 1.25rem var(--dock-peek); }
    .scene { margin-bottom: 4.5rem; }
    .scene-prose p { font-size: 1.04rem; }
    .scene-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .doc-inset { padding: 1.1rem 1.2rem; }
    .briefing { padding: 3rem 1.25rem; }
    .briefing-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .briefing-list li { padding: 0.9rem 0 0.9rem 2.6rem; font-size: 0.92rem; }
    .briefing-list li::before { font-size: 0.68rem; top: 1rem; }
    .outcome { padding: 3rem 1.25rem; }
    .outcome-title { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .outcome-row { grid-template-columns: 1fr; gap: 0.2rem; padding: 0.6rem 0; }
    .outcome-row-tag { justify-self: start; }
    .outcome-actions .btn { width: 100%; justify-content: center; }
    .signon { padding: 3rem 1.25rem; }
    .signon-title { font-size: clamp(1.5rem, 6vw, 2rem); }
    .signon-form { grid-template-columns: 1fr; }
    .signon-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .signon-actions .btn { width: 100%; justify-content: center; }
    .signon-fallback { text-align: center; }
    .signon-form input,
    .signon-form textarea { font-size: 16px; } /* prevent iOS zoom on focus */
    .outro { padding: 3rem 1.25rem 4rem; }
    .outro-actions .btn { flex: 1 1 200px; justify-content: center; }
    /* iOS notch: keep the dock above the home indicator */
  }
  @media print {
    .story { padding-bottom: 0 !important; max-width: 100%; }
    .scene { page-break-inside: avoid; }
  }
