  :root {
    --ink: #0f1419;
    --ink-soft: #2a3138;
    --ink-mute: #5a6470;
    --ink-faint: #8a939e;
    --line: #e4e2dd;
    --line-soft: #efede8;
    --paper: #f5f2eb;
    --paper-warm: #ede9df;
    --card: #ffffff;
    --accent: #c8451e;
    --accent-soft: #e87a52;
    --accent-deep: #8a2d12;
    --gold: #b8924a;
    --sage: #6a7a5c;
    --serif: "Fraunces", "Times New Roman", serif;
    --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
      radial-gradient(ellipse at top right, rgba(200, 69, 30, 0.04) 0%, transparent 50%),
      radial-gradient(ellipse at bottom left, rgba(106, 122, 92, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
  }

  /* ---- Layout shell ---- */
  .shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 56px 32px 120px;
  }

  /* ---- Header strip ---- */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 64px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(200, 69, 30, 0.15);
  }

  /* ---- Hero ---- */
  .hero {
    margin-bottom: 96px;
  }

  .hero-eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .hero-eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--accent);
  }

  h1.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 32px;
    font-variation-settings: "opsz" 144;
  }

  h1.hero-title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
  }

  .hero-lede {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.45;
    color: var(--ink-soft);
    max-width: 720px;
    font-weight: 300;
    font-variation-settings: "opsz" 36;
  }

  .hero-lede strong {
    font-weight: 500;
    color: var(--ink);
    font-style: italic;
  }

  /* ---- Stat row ---- */
  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 56px 0 0;
  }

  .stat {
    background: var(--paper);
    padding: 32px 24px;
    text-align: left;
  }

  .stat-value {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 10px;
    font-variation-settings: "opsz" 144;
  }

  .stat-value .unit {
    font-size: 24px;
    color: var(--ink-mute);
    margin-left: 2px;
  }

  .stat-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mute);
    line-height: 1.5;
  }

  /* ---- Section ---- */
  section.bucket {
    margin-top: 96px;
    scroll-margin-top: 40px;
  }

  .section-header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
  }

  .section-num {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.05em;
    background: rgba(200, 69, 30, 0.08);
    padding: 4px 10px;
    border-radius: 2px;
    flex-shrink: 0;
  }

  h2.section-title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
    font-variation-settings: "opsz" 72;
  }

  h2.section-title em {
    font-style: italic;
    color: var(--accent-deep);
  }

  /* ---- Body prose ---- */
  .prose {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 760px;
  }

  .prose p { margin-bottom: 20px; }
  .prose p:last-child { margin-bottom: 0; }
  .prose strong { color: var(--ink); font-weight: 600; }
  .prose em { font-style: italic; color: var(--accent-deep); }

  /* ---- Bullet list (custom) ---- */
  ul.bullets {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
  }

  ul.bullets li {
    position: relative;
    padding: 14px 0 14px 32px;
    border-bottom: 1px dashed var(--line);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-soft);
  }

  ul.bullets li:last-child { border-bottom: none; }

  ul.bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 18px;
    height: 1px;
    background: var(--accent);
  }

  ul.bullets li strong {
    color: var(--ink);
    font-weight: 600;
    font-family: var(--serif);
    font-size: 17px;
    font-variation-settings: "opsz" 36;
  }

  /* ---- Callout ---- */
  .callout {
    margin: 36px 0 0;
    padding: 28px 32px;
    background: var(--paper-warm);
    border-left: 3px solid var(--accent);
    position: relative;
  }

  .callout-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 600;
  }

  .callout-body {
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.5;
    color: var(--ink);
    font-weight: 300;
    font-variation-settings: "opsz" 36;
  }

  .callout-body strong { font-weight: 500; font-style: italic; color: var(--accent-deep); }

  /* ---- Two-column bucket grid ---- */
  .bucket-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* ---- Trade-off table ---- */
  .tradeoff {
    margin-top: 32px;
    border: 1px solid var(--line);
    background: var(--card);
  }

  .tradeoff-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    border-bottom: 1px solid var(--line-soft);
  }
  .tradeoff-row:last-child { border-bottom: none; }

  .tradeoff-row.head {
    background: var(--paper-warm);
    border-bottom: 1px solid var(--line);
  }

  .tradeoff-row.head .cell {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 600;
  }

  .cell {
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink-soft);
    border-right: 1px solid var(--line-soft);
  }
  .cell:last-child { border-right: none; }

  .cell.label {
    color: var(--ink);
    font-weight: 500;
    font-family: var(--serif);
    font-size: 16px;
    font-variation-settings: "opsz" 36;
  }

  .cell .tag-pos { color: var(--sage); font-weight: 500; }
  .cell .tag-neg { color: var(--accent); font-weight: 500; }
  .cell .tag-neut { color: var(--ink-mute); font-weight: 500; }

  /* ---- Verdict ---- */
  .verdict {
    margin-top: 120px;
    padding: 56px 48px;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
  }

  .verdict::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 69, 30, 0.18) 0%, transparent 60%);
    pointer-events: none;
  }

  .verdict-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 24px;
    position: relative;
  }

  .verdict h3 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    position: relative;
    font-variation-settings: "opsz" 72;
  }

  .verdict h3 em {
    font-style: italic;
    color: var(--accent-soft);
    font-weight: 400;
  }

  .verdict p {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(245, 242, 235, 0.78);
    max-width: 720px;
    margin-bottom: 16px;
    position: relative;
  }

  .verdict p strong { color: var(--paper); font-weight: 500; }

  /* ---- Notion tracker card ---- */
  .notion-card {
    display: block;
    margin-top: 64px;
    text-decoration: none;
    color: inherit;
    background: var(--card);
    border: 1px solid var(--line);
    transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .notion-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ink);
    transition: background 0.25s ease;
  }

  .notion-card:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -16px rgba(15, 20, 25, 0.18);
  }

  .notion-card:hover::before {
    background: var(--accent);
  }

  .notion-card-inner {
    padding: 32px 36px;
  }

  .notion-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--ink-mute);
  }

  .notion-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .notion-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
  }

  h4.notion-title {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.2;
    font-variation-settings: "opsz" 36;
  }

  .notion-desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 560px;
    margin-bottom: 20px;
  }

  .notion-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    transition: gap 0.2s ease;
  }

  .notion-card:hover .notion-cta {
    gap: 14px;
  }

  /* ---- Footer ---- */
  .footer {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  /* ---- Important block ---- */
  .important {
    margin-top: 40px;
    padding: 24px 28px;
    border: 1px solid var(--ink);
    background: var(--card);
    position: relative;
  }

  .important-tag {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    font-weight: 600;
  }

  .important-body {
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink-soft);
    font-weight: 400;
    font-variation-settings: "opsz" 36;
  }

  .important-body strong {
    color: var(--ink);
    font-style: italic;
    font-weight: 500;
  }

  /* ---- Health metrics grid ---- */
  .data-note {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .data-note .pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 0 4px rgba(106, 122, 92, 0.15);
    flex-shrink: 0;
  }

  .metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 16px;
  }

  .metric {
    background: var(--card);
    padding: 28px 24px;
  }

  .metric-value {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 10px;
    font-variation-settings: "opsz" 144;
  }

  .metric-value .unit {
    font-size: 20px;
    color: var(--ink-mute);
    margin-left: 2px;
  }

  .metric-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mute);
    line-height: 1.5;
  }

  /* ---- Phase progress rail ---- */
  .phase-rail {
    margin-top: 40px;
    border: 1px solid var(--line);
    background: var(--card);
  }

  .phase {
    padding: 22px 26px;
    border-bottom: 1px solid var(--line-soft);
  }
  .phase:last-child { border-bottom: none; }

  .phase-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }

  .phase-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
    font-variation-settings: "opsz" 36;
  }

  .phase-status {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .st-done { color: var(--sage); background: rgba(106, 122, 92, 0.12); }
  .st-prog { color: var(--gold); background: rgba(184, 146, 74, 0.15); }
  .st-todo { color: var(--ink-mute); background: var(--paper-warm); }

  .phase-note {
    font-size: 13.5px;
    color: var(--ink-mute);
    line-height: 1.5;
    margin-top: 6px;
    max-width: 660px;
  }

  .phase-note code {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-soft);
    background: var(--paper-warm);
    padding: 1px 5px;
    border-radius: 3px;
  }

  .phase-track {
    height: 4px;
    background: var(--line-soft);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 14px;
  }

  .phase-fill { height: 100%; border-radius: 2px; }
  .fill-done { background: var(--sage); }
  .fill-prog { background: var(--gold); }
  .fill-todo { background: var(--line); }

  /* ---- Health flags ---- */
  ul.bullets.flags li::before { background: var(--gold); }
  ul.bullets.flags li.good::before { background: var(--sage); }

  /* ---- The meter ---- */
  .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 0 4px rgba(106, 122, 92, 0.15);
    flex-shrink: 0;
  }

  .meter-wrap {
    margin-top: 28px;
    border: 1px solid var(--line);
    background: var(--card);
  }

  .gauge-panel {
    display: flex;
    align-items: center;
    gap: 44px;
    padding: 40px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line-soft);
  }

  .gauge-svg { width: 300px; max-width: 100%; height: auto; flex-shrink: 0; }
  .gauge-track { stroke: var(--line); }
  .gauge-hub { fill: var(--ink); }
  #gaugeValue {
    stroke-linecap: round;
    transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  #gaugeNeedle {
    stroke: var(--ink);
    transform-origin: 150px 152px;
    transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .gauge-svg text {
    font-family: var(--mono);
    font-size: 11px;
    fill: var(--ink-faint);
    letter-spacing: 0.04em;
  }

  .gauge-readout { flex: 1; min-width: 220px; }
  .gauge-value {
    font-family: var(--serif);
    font-size: 76px;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variation-settings: "opsz" 144;
  }
  .gauge-value .unit { font-size: 30px; color: var(--ink-mute); margin-left: 2px; }
  .gauge-cap {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 12px;
  }
  .gauge-delta {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.03em;
    margin-top: 16px;
    font-weight: 600;
    color: var(--sage);
  }
  .gauge-delta.down { color: var(--accent); }
  .gauge-delta.flat { color: var(--ink-faint); }

  .live-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-soft);
  }
  .live { background: var(--card); padding: 22px 24px; }
  .live-val {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variation-settings: "opsz" 72;
  }
  .live-lbl {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-top: 8px;
    line-height: 1.4;
  }

  .sync-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--paper-warm);
    border-top: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
  }
  .sync-row .sync-src { margin-left: auto; color: var(--ink-faint); }
  .sync-now {
    margin-left: 14px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  }
  .sync-now:hover:not(:disabled) { background: var(--accent); color: #fff; }
  .sync-now:disabled { opacity: 0.5; cursor: default; }

  /* ---- App layout: sidebar + content ---- */
  .layout {
    display: flex;
    gap: 56px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 32px 100px;
    align-items: flex-start;
  }
  .content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .content > .hero { order: 0; margin-bottom: 72px; }
  .content > #experiment { order: 1; }
  .content > #risk { order: 2; }
  .content > #fallback { order: 3; }
  .content > #milestones { order: 4; }
  .content > .verdict { order: 5; }
  .content > #health { order: 6; }
  .content > .footer { order: 7; }
  .content > section.bucket { margin-top: 88px; }
  .content > .verdict, .content > section.bucket { scroll-margin-top: 32px; }

  /* ---- Visual engagement ---- */
  .scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    z-index: 200; transition: width 0.1s linear;
  }
  #experiment .section-num { color: var(--accent); background: rgba(200, 69, 30, 0.08); }
  #risk .section-num { color: #9a7320; background: rgba(184, 146, 74, 0.16); }
  #fallback .section-num { color: var(--sage); background: rgba(106, 122, 92, 0.16); }
  #health .section-num { color: var(--sage); background: rgba(106, 122, 92, 0.16); }
  ul.bullets li { transition: background 0.18s ease, padding-left 0.18s ease; border-radius: 3px; }
  ul.bullets li:hover { background: var(--paper-warm); padding-left: 38px; }
  ul.bullets li::before { transition: width 0.18s ease, background 0.18s ease; }
  ul.bullets li:hover::before { width: 26px; background: var(--accent); }
  .callout { position: relative; }
  .callout::after {
    content: "\201D"; position: absolute; right: 18px; top: 4px;
    font-family: var(--serif); font-size: 110px; line-height: 1;
    color: var(--accent); opacity: 0.07; pointer-events: none;
  }
  .live { transition: background 0.18s ease; }
  .live:hover { background: var(--paper); }

  .sidebar { width: 288px; flex-shrink: 0; position: sticky; top: 32px; align-self: flex-start; }
  .side-brand {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
  }
  .brand-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); font-weight: 600; line-height: 1.3; }
  .brand-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
  .side-group-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 26px 0 12px; }

  .tracker {
    display: block; border: 1px solid var(--line); background: var(--card);
    margin-bottom: 12px; text-decoration: none; color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  }
  .tracker:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(15, 20, 25, 0.25); }
  .tracker-head {
    display: flex; align-items: center; gap: 13px; width: 100%;
    text-align: left; background: none; border: 0; cursor: pointer;
    padding: 15px 16px; color: inherit; font: inherit;
  }
  .trk-title { font-family: var(--serif); font-size: 16px; font-weight: 500; color: var(--ink); font-variation-settings: "opsz" 36; line-height: 1.15; display: block; }
  .trk-meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); margin-top: 5px; display: block; }
  .trk-meta b { color: var(--accent-deep); font-weight: 700; }
  .trk-ring { flex-shrink: 0; }
  #sideRing { transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .trk-links { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
  .trk-links a {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink-mute); text-decoration: none; padding: 10px 16px;
    border-bottom: 1px solid var(--line-soft);
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    transition: color 0.15s, background 0.15s;
  }
  .trk-links a:last-child { border-bottom: none; }
  .trk-links a:hover { color: var(--accent); background: var(--paper); }
  .trk-links a .arw { color: var(--ink-faint); }
  .trk-links a:hover .arw { color: var(--accent); }

  .side-nav { display: flex; flex-direction: column; }
  .side-nav a {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--ink-mute); text-decoration: none; padding: 9px 0 9px 14px;
    border-left: 2px solid var(--line); transition: color 0.15s, border-color 0.15s;
  }
  .side-nav a:hover { color: var(--ink); border-left-color: var(--ink-faint); }
  .side-nav a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

  @media (max-width: 900px) {
    .layout { flex-direction: column; gap: 28px; padding: 32px 22px 80px; }
    .sidebar { position: static; width: auto; }
    .content > .hero { margin-bottom: 40px; }
    .content > section.bucket { margin-top: 56px; }
    .side-nav { flex-flow: row wrap; }
    .side-nav a { border-left: none; border-top: 2px solid var(--line); padding: 8px 16px 8px 0; margin-right: 16px; }
  }

  /* ---- Responsive ---- */
  @media (max-width: 720px) {
    .shell { padding: 40px 20px 80px; }
    .hero { margin-bottom: 64px; }
    section.bucket { margin-top: 64px; }
    .stats { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .tradeoff-row { grid-template-columns: 1fr; }
    .cell { border-right: none; border-bottom: 1px solid var(--line-soft); }
    .cell:last-child { border-bottom: none; }
    .tradeoff-row.head { display: none; }
    .verdict { padding: 40px 28px; }
    .metrics { grid-template-columns: 1fr; }
    .phase-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  }

  /* ---- Subtle entrance ---- */
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero, section.bucket, .verdict {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  section.bucket:nth-of-type(1) { animation-delay: 0.05s; }
  section.bucket:nth-of-type(2) { animation-delay: 0.1s; }
  section.bucket:nth-of-type(3) { animation-delay: 0.15s; }
  section.bucket:nth-of-type(4) { animation-delay: 0.2s; }
  .verdict { animation-delay: 0.25s; }

  /* ---- Migration milestones timeline ---- */
  .timeline {
    margin-top: 36px;
    border-left: 2px solid var(--line);
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .tl-item { position: relative; }

  .tl-item::before {
    content: "";
    position: absolute;
    left: -35px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--gold);
  }

  .tl-item.gate::before { border-color: var(--accent); }

  .tl-date {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-mute);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tl-chip {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--ink-faint);
    background: var(--card);
  }

  .tl-item.gate .tl-chip { color: var(--accent-deep); border-color: var(--accent-soft); }

  .tl-title {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    margin-top: 6px;
    color: var(--ink);
  }

  .tl-body {
    margin-top: 4px;
    font-size: 14.5px;
    color: var(--ink-mute);
    max-width: 640px;
  }

  .tl-src {
    margin-top: 28px;
    font-size: 13px;
    color: var(--ink-faint);
  }

  .tl-src a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 3px; }

  /* ---- Milestone deliverables (from the sprint plan) ---- */
  .tl-deliv {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-width: 640px;
  }

  .tl-deliv li {
    position: relative;
    padding-left: 20px;
    font-size: 13.5px;
    color: var(--ink-mute);
    line-height: 1.5;
  }

  .tl-deliv li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 600;
  }

  .tl-deliv li.ds::before { content: "✦"; color: var(--accent); }

  .tl-deliv li strong { color: var(--ink-soft); font-weight: 500; }

  .tl-deliv .when {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
    white-space: nowrap;
  }

  /* ---- Build inventory & roadmap (tracker.js: renderScope / renderInventory) ---- */
  .legend {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin: 6px 0 26px;
    font-size: 13px;
    color: var(--ink-mute);
  }
  .legend-item { display: inline-flex; align-items: center; gap: 7px; }
  .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
  .dot.st-done { background: var(--sage); }
  .dot.st-prog { background: var(--gold); }
  .dot.st-todo { background: var(--ink-faint); }

  .scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 36px;
  }
  .scope-cell { background: var(--paper); padding: 16px 18px; }
  .scope-val { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.1; }
  .scope-lbl { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; font-weight: 500; }
  .scope-sub { font-size: 11px; color: var(--ink-faint); margin-top: 3px; line-height: 1.4; }

  .inv-group { margin-bottom: 30px; }
  .inv-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 14px;
  }
  .inv-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
  .inv-count { font-size: 12px; color: var(--ink-mute); font-family: var(--mono); }
  .inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 4px 22px;
  }
  .inv-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    color: var(--ink-soft);
    padding: 5px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .inv-name { flex: 1; }
  .inv-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
  .inv-doc { color: var(--sage); font-size: 12px; margin-left: 6px; }
