/* ─────────────────────────────────────────────────────────────────────
   site.css — single source of truth for ClusterOS website styles.
   Edit here, not in individual pages. Page-specific styles belong
   inline in the page (see STYLEGUIDE.md).
   ───────────────────────────────────────────────────────────────────── */

/* ── NAV ─────────────────────────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; height: 56px; background: rgba(247,244,239,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: 'Instrument Serif', serif; font-size: 18px; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; flex-shrink: 0; }
.nav-logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a, .nav-dropdown-toggle { font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--ink-dim); padding: 6px 12px; border-radius: 4px; transition: color 0.2s, background 0.2s; cursor: pointer; white-space: nowrap; background: none; border: none; }
.nav-links > li > a:hover, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--ink); background: rgba(0,0,0,0.05); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--page); border: 1px solid var(--border); border-radius: 6px; padding: 6px; min-width: 210px; list-style: none; margin: 0; box-shadow: 0 8px 32px rgba(0,0,0,0.1); z-index: 200; }
.nav-dropdown-menu.open { display: block; }
.nav-dropdown-menu li a { display: block; font-family: 'Geist', system-ui, sans-serif; font-size: 13px; color: var(--ink-dim); text-decoration: none; padding: 7px 12px; border-radius: 4px; transition: color 0.15s, background 0.15s; white-space: nowrap; }
.nav-dropdown-menu li a:hover { color: var(--ink); background: var(--surface); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 8px; }
.nav-cta { font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: #fff; background: var(--green); padding: 8px 18px; border-radius: 3px; white-space: nowrap; flex-shrink: 0; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.85; }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: 8px; flex-shrink: 0; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink-dim); border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) { .nav-hamburger { display: flex; } .nav-links { display: none; } .nav-cta { display: none; } }
@media (max-width: 480px) { nav { padding: 0 16px; } .nav-logo { font-size: 15px; } }
.nav-mobile-menu { display: none; position: fixed; top: 56px; left: 0; right: 0; z-index: 999; background: rgba(247,244,239,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; flex-direction: column; gap: 2px; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--ink-dim); padding: 10px 0; border-bottom: 1px solid var(--border); transition: color 0.15s; }
.nav-mobile-menu a:hover { color: var(--ink); }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 8px 0; }
/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 32px 32px; margin-top: 80px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid !important; grid-template-columns: 2fr 1fr 1fr 1fr !important; gap: 48px !important; }
.footer-logo { font-family: 'Instrument Serif', serif !important; font-size: 18px !important; color: var(--ink) !important; text-decoration: none; letter-spacing: -0.01em; text-transform: none !important; }
.footer-logo span { color: var(--green); }
.footer-tagline { font-size: 13px; color: var(--ink-muted); margin-top: 8px; line-height: 1.5; }
.footer-copy { font-size: 12px; color: var(--ink-muted); margin-top: 24px; }
.footer-col-label { font-family: 'Geist Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--ink-dim); text-decoration: none; line-height: 1.4; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-base { max-width: 1100px; margin: 24px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-base-links { display: flex; gap: 24px; }
.footer-base-links a { font-size: 12px; color: var(--ink-muted); text-decoration: none; }
.footer-base-links a:hover { color: var(--ink); }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } footer { padding: 40px 20px 24px; } }
/* ── END FOOTER ─────────────────────────────────────────── */

  
  /* ── END NAV ─────────────────────────────────────────────── */



  /* ── TOKENS ─────────────────────────────────────────── */
  :root {
    --ink:       #1a1a1a;
    --ink-dim:   #5a5650;
    --ink-muted: #8c8780;
    --page:      #f7f4ef;
    --surface:   #f0ece4;
    --border:    #ddd8cf;
    --border-2:  #c8c2b7;
    --green:     #2a7a4f;
    --green-dim: #1d5c3a;
    --signal:    #c8f0d0;
    --teal:      #0c9488;
    --amber:     #d97706;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans:  'Geist', system-ui, sans-serif;
    --font-mono:  'Geist Mono', monospace;
  }

  /* ── RESET ───────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth;  overflow-x: hidden; }

  /* ── canonical container widths ─────────────────────── */
  .container-prose   { width: 100%; max-width: 720px;  margin: 0 auto; padding: 0 24px; }
  .container-content { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  /* ── canonical pill (low-saturation, mono-uppercase) ── */
  .pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-dim);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
  }
  .pill--green { color: var(--green); border-color: rgba(42,122,79,0.25); background: rgba(42,122,79,0.06); }
  .pill--amber { color: var(--amber, #d97706); border-color: rgba(217,119,6,0.25); background: rgba(217,119,6,0.06); }
  .pill--ink   { color: var(--ink);   background: var(--page); }

  /* ── text-CTA (demoted button, underlined-arrow) ────── */
  .text-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--green);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
  }
  .text-cta:hover { color: var(--green-dim); }
  body {
    font-family: var(--font-sans);
    background: var(--page);
    color: var(--ink);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* ── MAP SECTION ─────────────────────────────────────── */
  #map-section {
    margin-top: 52px;
    position: relative;
    width: 100%;
    height: 62vh;
    min-height: 340px;
    max-height: 680px;
    overflow: hidden;
    touch-action: pan-y;
  }
  #map {
    width: 100%;
    height: 100%;
  }
  /* Leaflet attribution tidy */
  .leaflet-top.leaflet-left { top: auto; bottom: 40px; left: 12px; }
  .leaflet-control-zoom { border: 1px solid var(--border) !important; border-radius: 4px !important; overflow: hidden; }
  .leaflet-control-zoom a { background: var(--page) !important; color: var(--ink) !important; border-bottom: 1px solid var(--border) !important; font-size: 16px !important; line-height: 26px !important; width: 26px !important; height: 26px !important; }
  .leaflet-control-zoom a:hover { background: var(--surface) !important; }
  .leaflet-control-attribution {
    font-size: 10px;
    opacity: 0.6;
  }
  .panel-open .leaflet-control-attribution {
    display: none;
  }

  /* Map overlay — count + filter bar */
  .map-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
  }
  .map-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-dim);
    background: rgba(247,244,239,0.88);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 2px;
    pointer-events: none;
    letter-spacing: 0.04em;
  }
  .map-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    pointer-events: all;
  }
  .map-filter {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid var(--border-2);
    border-radius: 2px;
    background: rgba(247,244,239,0.88);
    backdrop-filter: blur(8px);
    color: var(--ink-dim);
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.04em;
  }
  .map-filter:hover { border-color: var(--green); color: var(--green); }
  .map-filter.active { background: var(--green); color: #fff; border-color: var(--green); }

  /* Cluster tooltip */
  .cluster-tooltip {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--ink);
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 8px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    white-space: nowrap;
  }
  .cluster-tooltip strong {
    display: block;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 2px;
  }
  .cluster-tooltip span {
    color: var(--ink-muted);
    font-size: 11px;
  }

  /* Custom pin */
  .cluster-pin {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 0 1px 4px rgba(42,122,79,0.4);
    cursor: pointer;
    transition: transform 0.15s;
  }
  .cluster-pin:hover { transform: scale(1.6); }
  .cluster-pin.regime-growing      { background: #2a7a4f; box-shadow: 0 1px 5px rgba(42,122,79,0.5); }
  .cluster-pin.regime-mature       { background: #0c9488; box-shadow: 0 1px 5px rgba(12,148,136,0.5); }
  .cluster-pin.regime-transitioning { background: #d97706; box-shadow: 0 1px 5px rgba(217,119,6,0.5); }
  .cluster-pin.regime-emerging     { background: #3b82f6; box-shadow: 0 1px 5px rgba(59,130,246,0.5); }
  .cluster-pin.regime-stalling     { background: #c0392b; box-shadow: 0 1px 5px rgba(192,57,43,0.5); }
  .cluster-pin.regime-unknown      { background: #8c8780; box-shadow: 0 1px 5px rgba(140,135,128,0.4); }
  /* Supercluster pins — hollow ring matching the legend green, slightly larger
     than cluster pins so the regional level reads at a glance without
     introducing a new colour outside the existing palette. */
  .cluster-pin.regime-supercluster {
    width: 14px; height: 14px;
    background: var(--page);
    border: 2.5px solid #2a7a4f;
    box-shadow: 0 1px 4px rgba(42,122,79,0.45);
  }
  .cluster-pin.regime-supercluster:hover { transform: scale(1.35); }
  #sc-back-btn { position: absolute; top: 12px; right: 12px; z-index: 1000; font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 6px 12px; background: var(--page); color: var(--ink); border: 1px solid var(--border); border-radius: 2px; cursor: pointer; display: none; }
  #sc-back-btn:hover { background: var(--surface); }
  .map-count-secondary { color: var(--ink-muted); }

  /* Supercluster side panel — mirrors #cluster-panel positioning and chrome
     (320px right rail, slide-in animation) but renders region-level content
     when a supercluster pin is clicked. Only one of the two panels is open
     at a time. */
  #supercluster-panel {
    display: none; position: fixed; right: 0; top: 52px; bottom: 0;
    width: 360px; background: var(--page); border-left: 1px solid var(--border);
    overflow-y: auto; z-index: 900; box-shadow: -8px 0 32px rgba(0,0,0,0.06);
    animation: slideIn 0.25s ease; padding-bottom: 60px;
  }
  #supercluster-panel.open { display: block; }
  .scp-header { padding: 1.4rem 1.4rem 1rem; border-bottom: 1px solid var(--border); }
  .scp-close { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); background: none; border: none; cursor: pointer; text-transform: uppercase; letter-spacing: 0.1em; padding: 0; margin-bottom: 0.8rem; }
  .scp-close:hover { color: var(--ink); }
  .scp-eyebrow { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.4rem; }
  .scp-name { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.2; color: var(--ink); margin-bottom: 0.6rem; }
  .scp-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .scp-tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 2px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-dim); }
  .scp-body { padding: 1.2rem 1.4rem; }
  .scp-section-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 0.5rem; }
  .scp-summary { font-size: 13px; color: var(--ink-dim); line-height: 1.65; margin-bottom: 1.4rem; }
  .scp-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); margin-bottom: 1.4rem; }
  .scp-stat-cell { background: var(--page); padding: 0.8rem 1rem; }
  .scp-stat-num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--green); line-height: 1; margin-bottom: 0.2rem; }
  .scp-stat-label { font-family: var(--font-mono); font-size: 9px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.1em; }
  .scp-config { font-family: var(--font-mono); font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 1.4rem; padding: 0.6rem 0.8rem; background: rgba(200,240,208,0.18); border-left: 3px solid var(--signal); }
  .scp-actions { display: flex; flex-direction: column; gap: 0.6rem; }
  .scp-cta { display: block; text-align: center; font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.7rem 1rem; text-decoration: none; }
  .scp-cta-primary { background: var(--green); color: #fff; }
  .scp-cta-primary:hover { background: var(--green-dim); }
  .scp-cta-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); cursor: pointer; }
  .scp-cta-secondary:hover { background: var(--page); border-color: var(--green); color: var(--green); }
  @media (max-width: 768px) {
    #supercluster-panel { width: 100%; top: auto; bottom: 0; height: 60vh; border-left: none; border-top: 1px solid var(--border); }
  }

  .map-legend { display: flex; gap: 12px; flex-wrap: wrap; padding: 4px 12px 6px; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); align-items: center; }
  .legend-item { display: flex; align-items: center; gap: 5px; }
  .legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

  /* ── OPENING STATEMENT ───────────────────────────────── */
  #opening {
    max-width: 780px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
  }
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
  }
  .eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--border-2);
    vertical-align: middle;
    margin-right: 10px;
  }
  h1 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 1.8rem;
    letter-spacing: -0.015em;
  }
  h1 em {
    font-style: normal;
    color: var(--ink-dim);
  }
  .lede {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    font-weight: 300;
    color: var(--ink-dim);
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 3.5rem;
  }

  /* ── FORK THREADS ────────────────────────────────────── */
  #forks {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
  }
  .fork-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.2rem;
  }
  .fork-threads {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid var(--border-2);
    padding-left: 1.4rem;
  }
  .fork-thread {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    transition: all 0.15s;
  }
  .fork-thread:last-child { border-bottom: none; }
  .fork-thread:hover .fork-arrow { transform: translateX(4px); }
  .fork-thread:hover .fork-title { color: var(--ink); }
  .fork-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-muted);
    flex-shrink: 0;
    letter-spacing: 0.06em;
  }
  .fork-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    color: var(--ink-dim);
    transition: color 0.15s;
    flex: 1;
  }
  .fork-arrow {
    font-size: 14px;
    color: var(--border-2);
    transition: transform 0.2s;
    flex-shrink: 0;
  }

  /* ── JOURNEY PANELS ─────────────────────────────────── */
  .journey-panel {
    display: none;
    background: var(--page);
    border-top: 1px solid var(--border);
    animation: panelIn 0.3s ease;
  }
  .journey-panel.open { display: block; }

  @keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .panel-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
  }
  .panel-close {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-bottom: 3rem;
    border: none;
    background: none;
    padding: 0;
    transition: color 0.15s;
  }
  .panel-close:hover { color: var(--ink); }
  .panel-close::before { content: '←'; font-size: 13px; }

  .panel-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
  }
  .panel-h {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 400;
    line-height: 1.22;
    margin-bottom: 1.6rem;
  }
  .panel-h em { font-style: italic; color: var(--green); }
  .panel-body {
    font-size: 15px;
    font-weight: 300;
    color: var(--ink-dim);
    line-height: 1.75;
    max-width: 600px;
    margin-bottom: 1.6rem;
  }
  .panel-body strong { font-weight: 500; color: var(--ink); }
  .panel-pull {
    border-left: 3px solid var(--signal);
    padding: 1rem 1.4rem;
    margin: 2.4rem 0;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.5;
    background: rgba(200,240,208,0.12);
  }

  /* Principle grid */
  .principle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    margin: 2.4rem 0;
  }
  .principle-cell {
    padding: 1.4rem 1.6rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .principle-cell:nth-child(2n) { border-right: none; }
  .principle-cell:nth-last-child(-n+2) { border-bottom: none; }
  .principle-num {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
  }
  .principle-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.4rem;
  }
  .principle-body {
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-dim);
    line-height: 1.55;
  }

  /* Stall list */
  .stall-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    margin: 2rem 0;
  }
  .stall-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.12s;
  }
  .stall-row:last-child { border-bottom: none; }
  .stall-row:hover { background: var(--surface); }
  .stall-id {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-muted);
    flex-shrink: 0;
    width: 2rem;
  }
  .stall-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-dim);
    flex: 1;
  }
  .stall-freq {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
  }

  /* MCP surface */
  .mcp-surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.6rem;
    margin: 2rem 0;
    font-family: var(--font-mono);
    font-size: 12px;
  }
  .mcp-label {
    font-size: 10px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.6rem;
  }
  .mcp-tool {
    color: var(--green);
    padding: 3px 0;
    line-height: 1.8;
  }
  .mcp-tool span { color: var(--ink-muted); }

  /* Reframing table */
  .reframe-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 13px;
  }
  .reframe-table th {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    text-align: left;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-2);
    font-weight: 400;
  }
  .reframe-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--ink-dim);
    vertical-align: top;
    line-height: 1.5;
  }
  .reframe-table tr:last-child td { border-bottom: none; }
  .reframe-table td:first-child {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
    white-space: nowrap;
    font-weight: 600;
  }
  .reframe-table td strong { font-weight: 500; color: var(--ink); display: block; margin-bottom: 2px; }

  /* Timeline (B&H) */
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 2rem 0;
    border-left: 2px solid var(--border-2);
    padding-left: 1.6rem;
  }
  .timeline-item {
    padding-bottom: 2rem;
    position: relative;
  }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -1.9rem;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-2);
    border: 2px solid var(--page);
  }
  .timeline-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
    margin-bottom: 0.3rem;
    letter-spacing: 0.06em;
  }
  .timeline-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.4rem;
  }
  .timeline-body {
    font-size: 14px;
    font-weight: 300;
    color: var(--ink-dim);
    line-height: 1.6;
  }

  /* Panel CTA */
  .panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2.4rem;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
    text-decoration: none;
    border-bottom: 1px solid var(--green);
    padding-bottom: 2px;
    transition: gap 0.2s;
  }
  .panel-cta:hover { gap: 14px; }

  /* Fork links inside panels */
  .sub-forks {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }
  .sub-fork-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
  }
  .sub-fork-link {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    color: var(--ink-dim);
    font-size: 14px;
    transition: color 0.15s;
    text-decoration: none;
  }
  .sub-fork-link:hover { color: var(--ink); }
  .sub-fork-link:last-child { border-bottom: none; }
  .sub-fork-link::after { content: '→'; color: var(--border-2); margin-left: auto; }

  /* ── ADAPTIVE CTA ───────────────────────────────────── */
  .adaptive-cta-wrap {
    display: none;
    margin-top: 2rem;
    border-left: 3px solid var(--signal);
    padding: 1rem 1.2rem;
    background: rgba(200,240,208,0.12);
  }
  .adaptive-cta-wrap.visible { display: block; }
  .adaptive-cta-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
  }
  .adaptive-cta-text {
    font-size: 14px;
    color: var(--ink-dim);
    line-height: 1.7;
    font-weight: 300;
  }

  .adaptive-loading {
    color: var(--ink-muted);
    font-style: italic;
    font-size: 13px;
  }

  /* ── PERSISTENT INTELLIGENCE BAR ───────────────────── */
  #intel-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 950;
    background: rgba(247,244,239,0.97);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0;
    height: 56px;
    padding: 0;
  }
  #intel-bar-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 1.4rem;
    border-right: 1px solid var(--border);
    height: 100%;
    gap: 0.8rem;
    min-width: 0;
  }
  #intel-bar-input-wrap .bar-icon {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
    flex-shrink: 0;
  }
  #intel-bar-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 300;
    color: var(--ink);
    outline: none;
    min-width: 0;
  }
  #intel-bar-input::placeholder { color: var(--ink-muted); }
  #intel-bar-submit {
    display: none;
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
  }
  #intel-bar-submit:hover { opacity: 0.7; }
  #intel-bar-status {
    display: none;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .bar-actions {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
  }
  .bar-action {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.4rem;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-right: 1px solid var(--border);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    cursor: pointer;
  }
  .bar-action-secondary {
    color: var(--ink-dim);
  }
  .bar-action-secondary:hover { background: var(--surface); color: var(--ink); }
  .bar-action-primary {
    color: #fff;
    background: var(--green);
    border-right: none;
  }
  .bar-action-primary:hover { background: var(--green-dim); }
  .bar-action-amber { background: var(--amber, #d97706); color: #fff; }
  .bar-action-amber:hover { opacity: 0.85; }
  @media (max-width: 768px) {
    .bar-action-primary { display: none !important; }
    .bar-action-amber { width: 100%; text-align: center; justify-content: center; border-right: none; }
    .bar-actions { width: 100%; }
  }

  /* push page content above the bar */
  body { padding-bottom: 56px; }

  @media(max-width:680px){
    #intel-bar { height: 52px; }
    #intel-bar-input-wrap .bar-icon { display: none; }
    .bar-action { padding: 0 1rem; font-size: 10px; }
    body { padding-bottom: 52px; }
  }

  /* ── CLUSTER PANEL (from map click) ─────────────────── */
  #cluster-panel {
    display: none;
    position: fixed;
    right: 0; top: 52px; bottom: 0;
    width: 360px;
    background: var(--page);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    z-index: 900;
    box-shadow: -8px 0 32px rgba(0,0,0,0.06);
    animation: slideIn 0.25s ease;
    padding-bottom: 60px;
  }
  #cluster-panel.open { display: block; }
  @keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
  }
  .cp-header {
    padding: 1.4rem 1.4rem 1rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--page);
  }
  .cp-close {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    margin-bottom: 0.8rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.15s;
  }
  .cp-close:hover { color: var(--ink); }
  .cp-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  .cp-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
  }
  .cp-body {
    padding: 1.2rem 1.4rem 2.4rem;
    overflow: visible;
  }
  .cp-section-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin: 1.2rem 0 0.6rem;
  }
  .cp-stall {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--ink-dim);
  }
  .cp-stall:last-of-type { border-bottom: none; }
  .cp-stall-bar {
    height: 3px;
    background: var(--amber);
    border-radius: 2px;
    flex-shrink: 0;
  }
  .cp-summary {
    font-size: 13px;
    font-weight: 300;
    color: var(--ink-dim);
    line-height: 1.65;
    margin-top: 0.4rem;
  }
  .cp-regime {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 0.8rem;
  }
  .cp-regime.emerging { background: rgba(245,217,122,0.3); color: #7a5500; }
  .cp-regime.developing { background: rgba(125,211,200,0.3); color: #1a6060; }
  .cp-regime.mature { background: rgba(200,240,208,0.3); color: var(--green-dim); }
  .cp-regime.unknown { background: rgba(0,0,0,0.04); color: var(--ink-muted); }
  .cp-regime.growing { background: rgba(200,240,208,0.3); color: var(--green-dim); }
  .cp-regime.transitioning { background: rgba(125,211,200,0.2); color: #1a6060; }
  .cp-regime.stalling { background: rgba(240,112,112,0.15); color: #7a2020; }

  #cp-radar { padding: 4px 0 8px; overflow: visible; }
  #cp-radar svg { width: 100% !important; height: auto !important; min-height: 200px; overflow: visible; }
  #cp-radar svg text { font-size: 7.5px; }
  .cp-link {
    display: block;
    margin-top: 1.4rem;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--green);
    padding: 8px 14px;
    text-align: center;
    transition: background 0.15s;
  }
  .cp-full-btn {
    display: block;
    margin: 16px 1.4rem 0;
    padding: 12px 16px;
    background: var(--green);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-align: center;
    border-radius: 3px;
    transition: opacity 0.15s;
  }
  .cp-full-btn:hover { opacity: 0.85; }
  .cp-link:hover { background: var(--green); color: #fff; }
  .cp-section-note {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--ink-muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
  }
  .cp-stall-note {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .cp-stall-link {
    color: var(--green);
    text-decoration: none;
    font-weight: 400;
  }
  .cp-stall-link:hover { text-decoration: underline; }

  /* ── FOOTER ──────────────────────────────────────────── */
  
  .footer-left .fl-logo {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
  }
  .footer-left .fl-sub {
    font-size: 12px;
    color: var(--ink-muted);
  }
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .footer-links a {
    font-size: 13px;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color 0.15s;
  }
  .footer-links a:hover { color: var(--ink); }
  

  /* ── RESPONSIVE ──────────────────────────────────────── */
  @media (max-width: 768px) {
    #map-section { height: 50vh; }
    #cluster-panel { width: 100%; top: auto; bottom: 0; height: 60vh; border-left: none; border-top: 1px solid var(--border); }
    .principle-grid { grid-template-columns: 1fr; }
    .principle-cell:nth-child(2n) { border-right: none; }
    .principle-cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .principle-cell:last-child { border-bottom: none; }
    nav { padding: 0 1rem; }
    
    .nav-links li:not(:last-child) { display: none; }
    #opening, #forks { padding-left: 1.2rem; padding-right: 1.2rem; }
    .reframe-table { font-size: 12px; }
    .reframe-table td, .reframe-table th { padding: 0.6rem 0.6rem; }
  }

  /* ── SIMILAR CLUSTERS GRID ──────────────────────────── */
  .clusters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin: 2rem 0;
  }
  .cluster-match-card {
    background: var(--page);
    padding: 1.4rem;
    text-decoration: none;
    display: block;
    transition: background 0.15s;
  }
  .cluster-match-card:hover { background: var(--surface); }
  .cmc-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.3rem;
    line-height: 1.2;
  }
  .cmc-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
  }
  .cmc-regime {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 0.8rem;
  }
  .cmc-regime.emerging { background: rgba(245,217,122,0.3); color: #7a5500; }
  .cmc-regime.cycling  { background: rgba(125,211,200,0.3); color: #1a6060; }
  .cmc-regime.active   { background: rgba(200,240,208,0.3); color: var(--green); }
  .cmc-stalls { margin-bottom: 0.8rem; }
  .cmc-stall-row {
    display: flex; align-items: center; gap: 8px;
    padding: 3px 0;
  }
  .cmc-stall-bar {
    height: 3px; border-radius: 2px; flex-shrink: 0;
  }
  .cmc-stall-name {
    font-size: 11px; color: var(--ink-dim); line-height: 1.3;
  }
  .cmc-leverage {
    font-size: 12px; font-weight: 300;
    color: var(--ink-muted); line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem; margin-top: 0.6rem;
    font-style: italic;
  }
  .cmc-link {
    font-family: var(--font-mono);
    font-size: 10px; color: var(--green);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-top: 0.8rem; display: block;
  }

  /* ── DASHBOARD PANEL ─────────────────────────────────── */
  #dashboard-panel {
    display: none;
    position: fixed;
    left: 0; top: 52px; bottom: 56px;
    width: 280px;
    background: var(--page);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 800;
    box-shadow: 4px 0 24px rgba(0,0,0,0.04);
    flex-direction: column;
  }
  #dashboard-panel.open { display: flex; }
  #dashboard-panel.minimised {
    display: flex;
    width: 32px;
    overflow: hidden;
  }
  #dashboard-panel.minimised #dashboard-body,
  #dashboard-panel.minimised .db-header { display: none; }

  /* Minimised tab — always visible when dashboard has been activated */
  #dashboard-tab {
    display: none;
    position: fixed;
    left: 0; top: 50%;
    transform: translateY(-50%);
    z-index: 801;
    background: var(--green);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 14px 8px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    border: none;
    transition: background 0.15s;
  }
  #dashboard-tab:hover { background: var(--green-dim); }
  #dashboard-tab.visible { display: block; }
  body.dashboard-open #dashboard-tab { display: none; }
  #page-wrap {
    transition: margin-left 0.3s ease;
  }
  body.dashboard-open #page-wrap {
    margin-left: 280px;
  }
  body.dashboard-open {
    overflow-x: hidden;
  }
  .db-header {
    padding: 1.2rem 1.2rem 0.8rem;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: var(--page);
    z-index: 1;
  }
  .db-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.5rem;
  }
  #dashboard-opening {
    display: none;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--ink);
    line-height: 1.5;
    margin-top: 0.3rem;
  }
  #dashboard-recal {
    display: none;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0;
  }
  #dashboard-branch-note {
    display: none;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  .db-close {
    position: absolute; top: 0.8rem; right: 0.8rem;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-mono); font-size: 10px;
    color: var(--ink-muted); text-transform: uppercase;
    letter-spacing: 0.1em; padding: 2px 0;
  }
  .db-close:hover { color: var(--ink); }
  #dashboard-body { padding: 1rem 1.2rem; flex: 1; overflow-y: auto; }

  /* Steps */
  .db-step {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
  }
  .db-step:last-child { border-bottom: none; }
  .db-step-head {
    display: flex; align-items: flex-start; gap: 0.6rem;
    margin-bottom: 0.3rem;
  }
  .db-step-icon {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    width: 1.4rem; flex-shrink: 0;
    padding-top: 1px;
  }
  .step-complete .db-step-icon { color: var(--green); }
  .step-current  .db-step-icon { color: var(--green); }
  .step-ahead    .db-step-icon { color: var(--ink-muted); }
  .db-step-title {
    font-size: 13px; font-weight: 500; line-height: 1.3;
  }
  .step-complete .db-step-title { color: var(--ink-muted); }
  .step-current  .db-step-title { color: var(--ink); }
  .step-ahead    .db-step-title { color: var(--ink-muted); font-weight: 300; }
  .db-step-desc {
    font-size: 12px; font-weight: 300;
    color: var(--ink-dim); line-height: 1.6;
    margin-left: 2rem; margin-top: 0.3rem;
  }
  .db-branches {
    margin-left: 2rem; margin-top: 0.6rem;
    display: flex; flex-direction: column; gap: 4px;
  }
  .db-branches-label {
    font-family: var(--font-mono); font-size: 9px;
    color: var(--ink-muted); text-transform: uppercase;
    letter-spacing: 0.12em; margin-bottom: 2px;
  }
  .db-branch {
    background: none; border: none; cursor: pointer;
    font-family: var(--font-mono); font-size: 10px;
    color: var(--green); text-align: left; padding: 2px 0;
    letter-spacing: 0.06em; transition: opacity 0.15s;
  }
  .db-branch:hover { opacity: 0.7; }
  .db-continue {
    display: block; margin-left: 2rem; margin-top: 0.6rem;
    background: var(--green); color: #fff; border: none;
    font-family: var(--font-mono); font-size: 11px;
    font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; padding: 6px 12px;
    cursor: pointer; transition: background 0.15s;
  }
  .db-continue:hover { background: var(--green-dim); }

  /* Skeleton */
  .db-skeleton { padding: 0.5rem 0; }
  .db-skel-line {
    height: 10px; background: var(--border);
    border-radius: 2px; margin-bottom: 8px;
    animation: skel-pulse 1.4s ease-in-out infinite;
  }
  .db-skel-wide   { width: 90%; }
  .db-skel-med    { width: 70%; }
  .db-skel-narrow { width: 50%; }
  .db-skel-gap    { height: 16px; }
  @keyframes skel-pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.4; }
  }

  /* Pills strip above bar */
  #intel-pills {
    position: fixed; bottom: 56px; left: 0; right: 0;
    background: var(--page);
    border-top: 2px solid var(--green);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
    padding: 0.8rem 1.4rem;
    z-index: 960;
    transition: opacity 0.3s, transform 0.3s;
  }
  #intel-pills.dismissed {
    opacity: 0; transform: translateY(8px); pointer-events: none;
  }
  .pills-label {
    font-family: var(--font-mono); font-size: 9px;
    color: var(--ink-muted); text-transform: uppercase;
    letter-spacing: 0.14em; margin-bottom: 0.5rem;
  }
  .pills-row {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .pill {
    font-family: var(--font-sans); font-size: 12px;
    font-weight: 300; color: var(--ink-dim);
    background: var(--surface); border: 1px solid var(--border);
    padding: 5px 12px; cursor: pointer; border-radius: 2px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.3;
  }
  .pill:hover { background: var(--border); color: var(--ink); }
  .pill.selected {
    background: var(--green); color: #fff;
    border-color: var(--green);
  }
  .pill-other {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--green); background: none;
    border-color: var(--green);
  }

  /* adjust body padding for pills */
  body { padding-bottom: calc(56px + 72px); }

  @media(max-width:1024px) {
    #dashboard-panel.open { display: none; }
    body.dashboard-open #page-wrap { margin-left: 0; }
  }
  @media(max-width:680px) {
    .pills-row { flex-direction: column; }
    .pill { font-size: 11px; }
  }


  /* ── ONBOARDING GATE ─────────────────────────────────── */
  #onboarding-gate {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(26,26,26,0.75); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    transition: opacity 0.3s ease;
  }
  #onboarding-gate.hidden {
    opacity: 0; pointer-events: none;
  }
  .gate-card {
    background: var(--page); border: 1px solid var(--border);
    border-radius: 6px; padding: 48px 52px; max-width: 540px; width: 100%;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
  }
  .gate-eyebrow {
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--green);
    margin: 0 0 18px;
  }
  .gate-heading {
    font-family: var(--font-serif); font-size: clamp(22px,3.5vw,28px);
    line-height: 1.15; color: var(--ink); margin: 0 0 10px;
  }
  .gate-heading em { font-style: italic; color: var(--green); }
  .gate-sub {
    font-size: 14px; color: var(--ink-dim); line-height: 1.65;
    margin: 0 0 28px; font-weight: 300;
  }
  .gate-field-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 8px; display: block;
  }
  #gate-textarea {
    width: 100%; min-height: 96px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 3px; font-family: var(--font-sans); font-size: 14px;
    font-weight: 300; color: var(--ink); line-height: 1.6; resize: none;
    transition: border-color 0.15s; margin-bottom: 16px;
    box-sizing: border-box;
  }
  #gate-textarea:focus { outline: none; border-color: var(--green); }
  #gate-textarea::placeholder { color: var(--ink-muted); font-style: italic; }
  .gate-actions {
    display: flex; align-items: center; justify-content: space-between;
  }
  #gate-submit {
    background: var(--green); color: #fff; border: none;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 13px 22px; border-radius: 3px; cursor: pointer;
    transition: background 0.15s;
  }
  #gate-submit:hover:not(:disabled) { background: var(--green-dim); }
  #gate-submit:disabled { opacity: 0.35; cursor: not-allowed; }
  #gate-skip {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--ink-muted); background: none;
    border: none; cursor: pointer; padding: 0; transition: color 0.15s;
  }
  #gate-skip:hover { color: var(--ink); }
  /* ── END GATE ────────────────────────────────────────── */

  /* ── INTEL BAR PATHWAY MODE ──────────────────────────── */
  #intel-bar.ib-pathway-mode {
    height: auto; min-height: 56px; padding: 0;
    align-items: stretch;
  }
  .ib-loading {
    display: flex; align-items: center; gap: 10px;
    padding: 0 24px; height: 56px;
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-muted); letter-spacing: 0.06em;
  }
  .ib-loading-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    animation: ib-pulse 1.2s ease-in-out infinite;
  }
  @keyframes ib-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1); }
  }
  .ib-thread {
    display: flex; align-items: center; gap: 20px;
    padding: 12px 24px; flex-wrap: wrap;
    width: 100%; box-sizing: border-box;
  }
  .ib-observation {
    font-family: var(--font-sans); font-size: 13px; font-weight: 300;
    color: var(--ink-dim); line-height: 1.4; margin: 0;
    flex: 1; min-width: 200px; max-width: 500px;
  }
  .ib-invitations {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  }
  .ib-inv {
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--green); background: rgba(42,122,79,0.08);
    border: 1px solid rgba(42,122,79,0.25); border-radius: 2px;
    padding: 7px 12px; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
  }
  .ib-inv:hover {
    background: rgba(42,122,79,0.15); border-color: var(--green);
  }
  /* ── END INTEL BAR PATHWAY ───────────────────────────── */

  /* ── BRIEFING PRINT STYLES ───────────────────────────── */
  #briefing-print-container { display: none; }

  @media print {
    /* Hide everything except the briefing */
    body > *:not(#briefing-print-container) { display: none !important; }
    #briefing-print-container { display: block !important; }

    @page {
      size: A4;
      margin: 18mm 18mm 18mm 18mm;
    }

    .bp-page {
      font-family: 'Geist', 'DM Sans', sans-serif;
      color: #1a1a1a;
      max-width: 100%;
    }
    .bp-header {
      display: flex; justify-content: space-between; align-items: baseline;
      border-bottom: 1.5px solid #1a1a1a; padding-bottom: 10px;
      margin-bottom: 28px;
    }
    .bp-brand {
      font-family: 'Instrument Serif', Georgia, serif;
      font-size: 18px; font-weight: 400; letter-spacing: -0.01em;
    }
    .bp-brand span {
      font-family: 'Geist Mono', monospace;
      font-size: 13px; font-weight: 600; color: #2a7a4f;
    }
    .bp-meta {
      font-family: 'Geist Mono', monospace;
      font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
      color: #8c8780;
    }
    .bp-title-block { margin-bottom: 20px; }
    .bp-title {
      font-family: 'Instrument Serif', Georgia, serif;
      font-size: 26px; font-weight: 400; line-height: 1.15;
      margin: 0 0 6px; letter-spacing: -0.02em;
    }
    .bp-subtitle {
      font-size: 11px; color: #5a5650; margin: 0;
      font-family: 'Geist Mono', monospace; letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    .bp-visitor-input {
      background: #f0ece4; border-left: 2px solid #2a7a4f;
      padding: 10px 14px; margin-bottom: 22px;
    }
    .bp-input-label {
      font-family: 'Geist Mono', monospace; font-size: 8px;
      text-transform: uppercase; letter-spacing: 0.14em;
      color: #2a7a4f; display: block; margin-bottom: 4px;
    }
    .bp-input-text {
      font-size: 12px; color: #1a1a1a; margin: 0;
      font-style: italic; line-height: 1.5;
    }
    .bp-sections { margin-bottom: 28px; }
    .bp-section { margin-bottom: 18px; }
    .bp-section-heading {
      font-family: 'Geist Mono', monospace; font-size: 9px;
      font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
      color: #2a7a4f; margin: 0 0 6px;
    }
    .bp-section-body {
      font-size: 12px; line-height: 1.65; color: #1a1a1a;
      margin: 0; font-weight: 300;
    }
    .bp-footer {
      border-top: 1px solid #ddd8cf; padding-top: 12px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .bp-cta {
      font-family: 'Geist Mono', monospace; font-size: 10px;
      font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
      color: #2a7a4f; text-decoration: none;
    }
    .bp-footer-note {
      font-family: 'Geist Mono', monospace; font-size: 9px;
      color: #8c8780; letter-spacing: 0.08em;
    }
  }
  /* ── END BRIEFING PRINT ──────────────────────────────── */
  /* ── BRIEFING DOWNLOAD BUTTON ────────────────────────── */
  #briefing-btn {
    display: none;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-dim); background: transparent;
    border: 1px solid var(--border-2); border-radius: 2px;
    padding: 8px 14px; cursor: pointer; white-space: nowrap;
    transition: all 0.15s; margin-left: auto;
  }
  #briefing-btn.visible { display: block; }
  #briefing-btn:hover { color: var(--ink); border-color: var(--ink-dim); }
  /* ── END BRIEFING BUTTON ─────────────────────────────── */

  /* ── PATHWAY INVITATION BUTTONS ─────────────────────── */
  .db-invitations {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: 10px;
  }
  .db-inv-btn {
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--green); background: rgba(42,122,79,0.06);
    border: 1px solid rgba(42,122,79,0.2); border-radius: 2px;
    padding: 8px 12px; cursor: pointer; text-align: left;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.3;
  }
  .db-inv-btn:hover {
    background: rgba(42,122,79,0.12);
    border-color: var(--green);
  }
  /* ── END INVITATION BUTTONS ──────────────────────────── */

  /* ── GUIDED JOURNEY STYLES ───────────────────────────── */

  /* Behaviour list — Stage 1 */
  .jny-behaviours {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 16px;
  }
  .jny-behaviour {
    font-family: var(--font-sans); font-size: 13px; font-weight: 300;
    color: var(--ink-dim); background: var(--surface);
    border: 1px solid var(--border); border-radius: 3px;
    padding: 11px 14px; cursor: pointer; text-align: left;
    line-height: 1.45; transition: all 0.15s;
  }
  .jny-behaviour:hover {
    border-color: var(--green); color: var(--ink);
  }
  .jny-behaviour.selected {
    background: rgba(42,122,79,0.08);
    border-color: var(--green); color: var(--ink);
  }

  /* Stall reveals — Stage 2 */
  .jny-stalls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .jny-stall-reveal {
    padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid var(--green); border-radius: 2px;
  }
  .jny-stall-name {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--green); margin-bottom: 6px;
  }
  .jny-stall-def {
    font-size: 13px; color: var(--ink-dim); line-height: 1.6;
    margin: 0; font-weight: 300;
  }
  .jny-multi-note {
    font-family: var(--font-mono); font-size: 10px; color: var(--amber);
    letter-spacing: 0.04em; margin: 0 0 16px; line-height: 1.5;
  }

  /* Stack — Stage 3 */
  .jny-stack {
    padding: 16px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 3px;
    margin-bottom: 16px;
  }
  .jny-stack-name {
    font-family: var(--font-serif); font-size: 17px;
    color: var(--ink); margin-bottom: 10px; line-height: 1.2;
  }
  .jny-stack-stalls {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; margin-bottom: 12px;
  }
  .jny-stack-tag {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green); background: rgba(42,122,79,0.1);
    border: 1px solid rgba(42,122,79,0.2);
    padding: 3px 8px; border-radius: 2px;
  }
  .jny-stack-plus {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--ink-muted);
  }
  .jny-stack-desc {
    font-size: 13px; color: var(--ink-dim); line-height: 1.65;
    margin: 0; font-weight: 300;
  }
  .jny-ai-loading {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--ink-muted); padding: 8px 0;
  }
  .jny-loading-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    animation: ib-pulse 1.2s ease-in-out infinite;
  }

  /* Leverage — Stage 4 */
  .jny-leverage { margin-bottom: 16px; }
  .jny-leverage-text {
    font-size: 14px; color: var(--ink); line-height: 1.7;
    margin: 0 0 14px; font-weight: 400;
    border-left: 2px solid var(--green); padding-left: 12px;
  }
  .jny-leverage-principle {
    padding: 12px 14px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 3px;
  }
  .jny-lev-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 6px;
  }
  .jny-lev-body {
    font-size: 12px; color: var(--ink-dim); line-height: 1.6;
    margin: 0; font-weight: 300;
  }

  /* Tech — Stage 5 */
  .jny-tech { margin-bottom: 16px; }
  .jny-tech-text {
    font-size: 13px; color: var(--ink-dim); line-height: 1.65;
    margin: 0 0 14px; font-weight: 300;
  }
  .jny-tech-components {
    display: flex; flex-direction: column; gap: 6px;
  }
  .jny-tech-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 4px;
  }
  .jny-tech-component {
    display: block; padding: 10px 12px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 2px;
  }
  .jny-tech-component-name {
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.06em; color: var(--green);
    display: block; margin-bottom: 3px;
  }
  .jny-tech-component-desc {
    font-size: 11px; color: var(--ink-muted); line-height: 1.45;
    display: block;
  }
  .jny-tech-component-desc {
    font-size: 11px; color: var(--ink-muted); line-height: 1.4;
  }

  /* Final CTA — Stage 6 */
  .jny-final { margin-bottom: 8px; }
  .jny-final-text {
    font-size: 14px; color: var(--ink); line-height: 1.7;
    margin: 0 0 10px;
  }
  .jny-final-sub {
    font-size: 13px; color: var(--ink-dim); line-height: 1.6;
    margin: 0 0 20px; font-weight: 300;
  }
  .jny-cta {
    display: block; background: var(--green); color: #fff;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 14px 20px; border-radius: 3px; text-decoration: none;
    text-align: center; margin-bottom: 10px;
    transition: background 0.15s;
  }
  .jny-cta:hover { background: var(--green-dim); }
  .jny-restart {
    width: 100%; padding: 10px; background: none;
    border: 1px solid var(--border); border-radius: 3px;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-muted); cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
  }
  .jny-restart:hover { color: var(--ink); border-color: var(--border-2); }

  /* Shared action row */
  .jny-actions {
    display: flex; gap: 8px; align-items: center;
    padding-top: 4px;
  }
  .jny-next {
    flex: 1; background: var(--green); color: #fff; border: none;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 12px 16px; border-radius: 3px; cursor: pointer;
    transition: background 0.15s;
  }
  .jny-next:hover:not(:disabled) { background: var(--green-dim); }
  .jny-next:disabled { opacity: 0.35; cursor: not-allowed; }
  .jny-back {
    background: none; border: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-muted); padding: 12px 14px;
    border-radius: 3px; cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
  }
  .jny-back:hover { color: var(--ink); border-color: var(--border-2); }
  /* ── END JOURNEY STYLES ──────────────────────────────── */

  /* ── JOURNEY CLUSTER CARDS ───────────────────────────── */
  .jny-clusters-intro {
    font-size: 12px; color: var(--ink-dim); line-height: 1.6;
    margin: 0 0 12px; font-weight: 300;
  }
  .jny-cluster-grid {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 16px;
  }
  .jny-cluster-card {
    display: block; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 3px;
  }
  .jny-cc-link {
    font-family: var(--font-mono); font-size: 9px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
    text-decoration: none; display: inline-block; margin-top: 4px;
  }
  .jny-cc-link:hover { text-decoration: underline; }  .jny-cc-name {
    font-size: 13px; font-weight: 500; color: var(--ink);
    margin-bottom: 2px; line-height: 1.3;
  }
  .jny-cc-meta {
    font-size: 11px; color: var(--ink-muted);
    margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
  }
  .jny-cc-regime {
    font-family: var(--font-mono); font-size: 8px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--teal); background: rgba(125,211,200,0.1);
    border: 1px solid rgba(125,211,200,0.2);
    padding: 2px 6px; border-radius: 2px;
  }
  .jny-cc-stalls { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
  .jny-cc-stall  { display: flex; align-items: center; gap: 8px; }
  .jny-cc-bar    { height: 3px; border-radius: 2px; flex-shrink: 0; }
  .jny-cc-stall-name {
    font-size: 10px; color: var(--ink-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .jny-cc-link {
    font-family: var(--font-mono); font-size: 9px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
  }
  /* ── END CLUSTER CARDS ───────────────────────────────── */

  /* ── PATHWAY TRIGGER SECTION ─────────────────────────── */
  #pathway-trigger {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 2rem 8rem;
    min-height: 480px;
  }

  /* The blurred background content */
  #pathway-blur-target {
    transition: filter 0.5s ease, opacity 0.5s ease;
  }
  #pathway-trigger.triggered #pathway-blur-target {
    filter: blur(4px);
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
  }

  /* The prompt — hidden until triggered */
  #pathway-prompt {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, 90%);
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 36px 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translate(-50%, -46%);
    z-index: 10;
  }
  #pathway-trigger.triggered #pathway-prompt {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%);
  }

  .pathway-prompt-eyebrow {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--green); margin: 0 0 14px;
  }
  .pathway-prompt-heading {
    font-family: var(--font-serif); font-size: clamp(20px, 3vw, 26px);
    line-height: 1.15; color: var(--ink); margin: 0 0 8px;
  }
  .pathway-prompt-heading em { font-style: italic; color: var(--green); }
  .pathway-prompt-sub {
    font-size: 13px; color: var(--ink-dim); line-height: 1.6;
    margin: 0 0 20px; font-weight: 300;
  }
  .pathway-prompt-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 8px; display: block;
  }
  #pathway-textarea {
    width: 100%; min-height: 80px; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 3px; font-family: var(--font-sans); font-size: 13px;
    font-weight: 300; color: var(--ink); line-height: 1.6;
    resize: none; transition: border-color 0.15s;
    margin-bottom: 14px; box-sizing: border-box;
  }
  #pathway-textarea:focus { outline: none; border-color: var(--green); }
  #pathway-textarea::placeholder { color: var(--ink-muted); font-style: italic; }
  .pathway-prompt-actions {
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
  }
  #pathway-submit {
    background: var(--green); color: #fff; border: none;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 12px 18px; border-radius: 3px; cursor: pointer;
    transition: background 0.15s; white-space: nowrap;
  }
  #pathway-submit:hover:not(:disabled) { background: var(--green-dim); }
  #pathway-submit:disabled { opacity: 0.35; cursor: not-allowed; }
  #pathway-skip {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--ink-muted); background: none;
    border: none; cursor: pointer; transition: color 0.15s;
    white-space: nowrap;
  }
  #pathway-skip:hover { color: var(--ink); }

  /* Full-page blur when prompt is active */
  body.pathway-active #page-wrap > *:not(#pathway-trigger):not(#map-section):not(#opening) {
    filter: blur(3px);
    opacity: 0.4;
    pointer-events: none;
    transition: filter 0.5s, opacity 0.5s;
  }
  #pathway-trigger.collapsed {
    display: none;
  }
  /* ── END PATHWAY TRIGGER ─────────────────────────────── */

  /* ── JOURNEY INTRO ───────────────────────────────────── */
  .jny-intro { padding-bottom: 4px; }
  .jny-intro-frame {
    font-size: 12px; color: var(--ink-dim); line-height: 1.6;
    margin: 0 0 16px; padding: 10px 14px;
    background: rgba(42,122,79,0.06); border-left: 2px solid var(--green);
    border-radius: 2px; font-weight: 300;
  }
  .jny-intro-what {
    font-size: 13px; color: var(--ink); line-height: 1.65;
    margin: 0 0 20px; font-weight: 400;
  }
  .jny-intro-steps {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 16px;
  }
  .jny-intro-step {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 2px;
  }
  .jny-intro-step-num {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    color: var(--green); background: rgba(42,122,79,0.1);
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .jny-intro-step-label {
    font-size: 12px; color: var(--ink-dim); font-weight: 300;
  }
  .jny-intro-note {
    font-size: 11px; color: var(--ink-muted); line-height: 1.5;
    margin: 0 0 16px; font-style: italic;
  }

  /* ── STAGE 5 FORK CARDS ──────────────────────────────── */
  .jny-fork-intro {
    font-size: 13px; color: var(--ink-dim); line-height: 1.6;
    margin: 0 0 16px; font-weight: 300;
  }
  .jny-fork-cards {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 12px;
  }
  .jny-fork-card {
    text-align: left; padding: 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 3px; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
  }
  .jny-fork-card:hover {
    border-color: var(--green);
    background: rgba(42,122,79,0.04);
  }
  .jny-fork-card-infra:hover {
    border-color: var(--teal);
    background: rgba(125,211,200,0.04);
  }
  .jny-fork-card-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--green); margin-bottom: 6px;
  }
  .jny-fork-card-infra .jny-fork-card-label { color: var(--teal); }
  .jny-fork-card-title {
    font-size: 13px; font-weight: 500; color: var(--ink);
    line-height: 1.3; margin-bottom: 5px;
  }
  .jny-fork-card-sub {
    font-size: 11px; color: var(--ink-muted); line-height: 1.5;
    margin-bottom: 10px; font-weight: 300;
  }
  .jny-fork-card-cta {
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--green);
  }
  .jny-fork-card-infra .jny-fork-card-cta { color: var(--teal); }

  /* ── INFRASTRUCTURE STAGES ───────────────────────────── */
  .jny-infra { margin-bottom: 16px; }
  .jny-infra-text {
    font-size: 13px; color: var(--ink-dim); line-height: 1.65;
    margin: 0 0 16px; font-weight: 300;
  }
  .jny-infra-contrast {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin-bottom: 14px;
  }
  .jny-infra-col {
    padding: 12px; border-radius: 3px; font-size: 11px;
    line-height: 1.55; color: var(--ink-muted); font-weight: 300;
  }
  .jny-infra-col p { margin: 0; }
  .jny-infra-col-bad {
    background: rgba(0,0,0,0.03); border: 1px solid var(--border);
  }
  .jny-infra-col-good {
    background: rgba(42,122,79,0.06); border: 1px solid rgba(42,122,79,0.2);
  }
  .jny-infra-col-label {
    font-family: var(--font-mono); font-size: 8px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    margin-bottom: 6px; display: block;
  }
  .jny-infra-col-bad .jny-infra-col-label { color: var(--ink-muted); }
  .jny-infra-col-good .jny-infra-col-label { color: var(--green); }
  .jny-infra-pull {
    font-family: var(--font-serif); font-size: 14px; font-style: italic;
    color: var(--ink); line-height: 1.5; margin: 0 0 14px;
    padding-left: 12px; border-left: 2px solid var(--green);
  }
  .jny-reframings {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 14px;
  }
  .jny-reframing {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 10px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 2px;
  }
  .jny-reframing-actor {
    font-family: var(--font-mono); font-size: 8px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 2px;
    white-space: nowrap; flex-shrink: 0; margin-top: 1px;
  }
  .jny-actor-founder  { background: rgba(245,217,122,0.15); color: #b8860b; }
  .jny-actor-researcher { background: rgba(240,128,128,0.12); color: #c0392b; }
  .jny-actor-steward  { background: rgba(125,211,200,0.15); color: #0d7377; }
  .jny-actor-anchor   { background: rgba(42,122,79,0.1); color: var(--green); }
  .jny-reframing-text {
    font-size: 11px; color: var(--ink-dim); line-height: 1.5;
    font-weight: 300;
  }
  .jny-mcp-tools {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-bottom: 14px;
  }
  .jny-mcp-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-muted); width: 100%; margin-bottom: 4px;
  }
  .jny-mcp-tool {
    font-family: var(--font-mono); font-size: 9px; font-weight: 600;
    color: var(--green); background: rgba(42,122,79,0.08);
    border: 1px solid rgba(42,122,79,0.2);
    padding: 3px 8px; border-radius: 2px;
  }
  .jny-infra-sovereign {
    font-size: 11px; color: var(--ink-muted); line-height: 1.55;
    padding: 10px 12px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 2px;
    margin-top: 12px;
  }
  .jny-infra-sov-label {
    font-family: var(--font-mono); font-size: 8px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--teal); display: block; margin-bottom: 4px;
  }
  /* ── END INFRA STYLES ────────────────────────────────── */

  /* ── JOURNEY FRAME LAYOUT ────────────────────────────── */
  #journey-frame {
    display: none;
    position: fixed;
    left: 280px; top: 52px; bottom: 56px;
    right: 0;
    background: var(--page);
    overflow-y: auto;
    z-index: 790;
    padding: 48px 64px;
    box-sizing: border-box;
    border-left: 1px solid var(--border);
  }
  body.journey-active #journey-frame { display: block; }
  body.journey-active #page-wrap     { display: none; }

  /* Panel becomes narrower navigator when journey active */
  body.journey-active #dashboard-panel { width: 260px; }
  body.journey-active #journey-frame   { left: 260px; }

  /* Panel navigator mode */
  body.journey-active .db-header {
    padding: 1rem 1rem 0.6rem;
  }
  body.journey-active #dashboard-body {
    padding: 0.8rem 1rem;
  }

  /* Journey frame content */
  .jf-section { max-width: 680px; margin: 0 auto; }

  /* ── INTRO TIMELINE ──────────────────────────────────── */
  .jf-intro-head {
    margin-bottom: 48px;
  }
  .jf-intro-eyebrow {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--green); margin: 0 0 16px;
  }
  .jf-intro-heading {
    font-family: var(--font-serif); font-size: clamp(28px,4vw,40px);
    line-height: 1.1; color: var(--ink); margin: 0 0 16px;
  }
  .jf-intro-heading em { font-style: italic; color: var(--green); }
  .jf-intro-sub {
    font-size: 15px; color: var(--ink-dim); line-height: 1.7;
    margin: 0; font-weight: 300; max-width: 520px;
  }
  .jf-timeline {
    display: flex; flex-direction: column;
    gap: 0; position: relative; margin-bottom: 48px;
  }
  .jf-timeline::before {
    content: '';
    position: absolute; left: 19px; top: 20px;
    bottom: 20px; width: 1px;
    background: var(--border);
  }
  .jf-timeline-step {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 20px 0; position: relative;
    cursor: pointer;
  }
  .jf-timeline-step:hover .jf-tl-title { color: var(--green); }
  .jf-tl-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--page); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    color: var(--ink-muted); flex-shrink: 0; z-index: 1;
    transition: all 0.2s;
  }
  .jf-timeline-step.active .jf-tl-num {
    background: var(--green); border-color: var(--green);
    color: #fff;
  }
  .jf-timeline-step.complete .jf-tl-num {
    background: var(--surface); border-color: var(--green);
    color: var(--green);
  }
  .jf-tl-content { padding-top: 8px; }
  .jf-tl-title {
    font-size: 17px; font-weight: 500; color: var(--ink);
    margin-bottom: 4px; transition: color 0.2s;
    line-height: 1.2;
  }
  .jf-tl-desc {
    font-size: 13px; color: var(--ink-muted); line-height: 1.55;
    font-weight: 300;
  }
  .jf-intro-cta {
    display: flex; gap: 12px; align-items: center;
  }

  /* ── JOURNEY FRAME HEADING RESET ────────────────────── */
  #journey-frame h1, #journey-frame h2, #journey-frame h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--ink);
    margin: 0;
  }
  #journey-frame h2 { font-size: clamp(22px,3vw,32px); line-height: 1.12; margin-bottom: 8px; }
  #journey-frame h3 { font-size: 20px; line-height: 1.2; }
  #journey-frame em { font-style: italic; color: var(--green); }

  /* Multi-note — softer than amber */
  .jf-multi-note {
    font-size: 13px; color: var(--ink-dim); line-height: 1.6;
    margin: 0 0 24px; font-weight: 300;
    padding: 12px 16px; background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green); border-radius: 2px;
  }
  .jf-stage-heading {
    font-family: var(--font-serif); font-size: clamp(22px,3vw,30px);
    line-height: 1.15; color: var(--ink); margin: 0 0 8px;
  }
  .jf-stage-heading em { font-style: italic; color: var(--green); }
  .jf-stage-sub {
    font-size: 14px; color: var(--ink-dim); line-height: 1.65;
    margin: 0 0 32px; font-weight: 300; max-width: 560px;
  }

  /* Behaviour grid — Stage 1 */
  .jf-behaviour-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 32px;
  }
  .jf-behaviour {
    font-family: var(--font-sans); font-size: 14px; font-weight: 300;
    color: var(--ink-dim); background: var(--surface);
    border: 1px solid var(--border); border-radius: 4px;
    padding: 16px 18px; cursor: pointer; text-align: left;
    line-height: 1.5; transition: all 0.15s; min-height: 72px;
    display: flex; align-items: flex-start;
  }
  .jf-behaviour:hover { border-color: var(--green); color: var(--ink); }
  .jf-behaviour.selected {
    background: rgba(42,122,79,0.08);
    border-color: var(--green); color: var(--ink);
  }

  /* Stall reveals — Stage 2 */
  .jf-stall-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 16px; margin-bottom: 32px;
  }
  .jf-stall-card {
    padding: 20px 22px; background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--green); border-radius: 3px;
  }
  .jf-stall-name {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--green); margin-bottom: 10px;
  }
  .jf-stall-def {
    font-size: 14px; color: var(--ink-dim); line-height: 1.7;
    margin: 0; font-weight: 300;
  }


  /* Stack — Stage 3 */
  .jf-stack-card {
    padding: 28px 32px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 4px;
    margin-bottom: 24px;
  }
  .jf-stack-name {
    font-family: var(--font-serif); font-size: 24px;
    color: var(--ink); margin-bottom: 14px; line-height: 1.15;
  }
  .jf-stack-tags {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 20px;
  }
  .jf-stack-tag {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--green); background: rgba(42,122,79,0.1);
    border: 1px solid rgba(42,122,79,0.2);
    padding: 4px 10px; border-radius: 2px;
  }
  .jf-stack-plus { font-family: var(--font-mono); color: var(--ink-muted); }
  .jf-stack-desc {
    font-size: 15px; color: var(--ink-dim); line-height: 1.75;
    margin: 0; font-weight: 300;
  }
  .jf-ai-loading {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--ink-muted); padding: 20px 0;
  }

  /* Cluster cards — Stage 3.5 */
  .jf-cluster-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 32px;
  }
  .jf-cluster-card {
    padding: 18px 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 4px;
  }
  .jf-cc-name {
    font-size: 14px; font-weight: 500; color: var(--ink);
    margin-bottom: 3px; line-height: 1.3;
  }
  .jf-cc-meta {
    font-size: 11px; color: var(--ink-muted);
    margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
  }
  .jf-cc-regime {
    font-family: var(--font-mono); font-size: 8px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--teal); background: rgba(125,211,200,0.1);
    border: 1px solid rgba(125,211,200,0.2); padding: 2px 6px; border-radius: 2px;
  }
  .jf-cc-stalls { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
  .jf-cc-stall  { display: flex; align-items: center; gap: 8px; }
  .jf-cc-bar    { height: 3px; border-radius: 2px; flex-shrink: 0; min-width: 20px; }
  .jf-cc-stall-name { font-size: 11px; color: var(--ink-muted); }
  .jf-cc-link {
    font-family: var(--font-mono); font-size: 9px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
    text-decoration: none; display: inline-block;
  }
  .jf-cc-link:hover { text-decoration: underline; }

  /* Leverage — Stage 4 */
  .jf-leverage-text {
    font-size: 18px; color: var(--ink); line-height: 1.7;
    margin: 0 0 28px; font-weight: 400;
    border-left: 3px solid var(--green); padding-left: 20px;
    max-width: 580px;
  }
  .jf-leverage-principle {
    padding: 20px 24px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 4px;
    margin-bottom: 32px; max-width: 560px;
  }
  .jf-lev-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 8px;
  }
  .jf-lev-body {
    font-size: 13px; color: var(--ink-dim); line-height: 1.65;
    margin: 0; font-weight: 300;
  }

  /* Fork cards — Stage 5 */
  .jf-fork-intro {
    font-size: 15px; color: var(--ink-dim); line-height: 1.7;
    margin: 0 0 32px; font-weight: 300; max-width: 560px;
  }
  .jf-fork-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 32px;
  }
  .jf-fork-card {
    text-align: left; padding: 24px 26px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 4px; cursor: pointer;
    transition: all 0.15s; width: 100%;
  }
  .jf-fork-card:hover { border-color: var(--green); background: rgba(42,122,79,0.04); }
  .jf-fork-card-infra:hover { border-color: var(--teal); background: rgba(125,211,200,0.04); }
  .jf-fork-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--green); margin-bottom: 10px; display: block;
  }
  .jf-fork-card-infra .jf-fork-label { color: var(--teal); }
  .jf-fork-title {
    font-family: var(--font-serif); font-size: 18px;
    color: var(--ink); line-height: 1.2; margin-bottom: 10px;
  }
  .jf-fork-desc {
    font-size: 13px; color: var(--ink-muted); line-height: 1.55;
    margin-bottom: 16px; font-weight: 300;
  }
  .jf-fork-steps {
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 16px;
  }
  .jf-fork-step {
    font-size: 11px; color: var(--ink-muted); line-height: 1.4;
    padding-left: 12px; position: relative;
  }
  .jf-fork-step::before {
    content: '→'; position: absolute; left: 0;
    color: var(--green); font-size: 10px;
  }
  .jf-fork-card-infra .jf-fork-step::before { color: var(--teal); }
  .jf-fork-cta {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
  }
  .jf-fork-card-infra .jf-fork-cta { color: var(--teal); }

  /* Infrastructure content */
  .jf-contrast {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 28px;
  }
  .jf-contrast-col {
    padding: 20px 22px; border-radius: 4px;
    font-size: 13px; line-height: 1.65; color: var(--ink-dim); font-weight: 300;
  }
  .jf-contrast-col p { margin: 0; }
  .jf-contrast-bad  { background: rgba(0,0,0,0.025); border: 1px solid var(--border); }
  .jf-contrast-good { background: rgba(42,122,79,0.06); border: 1px solid rgba(42,122,79,0.2); }
  .jf-contrast-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    display: block; margin-bottom: 8px;
  }
  .jf-contrast-bad .jf-contrast-label  { color: var(--ink-muted); }
  .jf-contrast-good .jf-contrast-label { color: var(--green); }
  .jf-pull {
    font-family: var(--font-serif); font-size: 18px; font-style: italic;
    color: var(--ink); line-height: 1.55; margin: 0 0 28px;
    padding-left: 20px; border-left: 3px solid var(--green);
    max-width: 520px;
  }
  .jf-reframings {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 28px;
  }
  .jf-reframing {
    padding: 16px 18px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 4px;
  }
  .jf-reframing-actor {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 2px;
    display: inline-block; margin-bottom: 8px;
  }
  .jf-reframing-text {
    font-size: 12px; color: var(--ink-dim); line-height: 1.55; font-weight: 300;
  }
  .jf-actor-founder    { background: rgba(245,217,122,0.15); color: #8b6914; }
  .jf-actor-researcher { background: rgba(240,128,128,0.12); color: #c0392b; }
  .jf-actor-steward    { background: rgba(125,211,200,0.15); color: #0d7377; }
  .jf-actor-anchor     { background: rgba(42,122,79,0.1); color: var(--green); }

  /* Actor journey selector */
  .jf-actor-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 32px;
  }
  .jf-actor-card {
    padding: 20px 22px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 4px;
    cursor: pointer; text-align: left; width: 100%;
    transition: all 0.15s;
  }
  .jf-actor-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
  .jf-actor-card.active { border-color: var(--green); background: rgba(42,122,79,0.04); }
  .jf-actor-icon  { font-size: 20px; margin-bottom: 8px; display: block; }
  .jf-actor-name  { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
  .jf-actor-desc  { font-size: 12px; color: var(--ink-muted); line-height: 1.5; font-weight: 300; }

  .jf-mcp-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 6px; margin-bottom: 24px;
  }
  .jf-mcp-tool {
    font-family: var(--font-mono); font-size: 9px; font-weight: 600;
    color: var(--green); background: rgba(42,122,79,0.08);
    border: 1px solid rgba(42,122,79,0.2);
    padding: 6px 8px; border-radius: 2px; text-align: center;
  }
  .jf-sovereign {
    padding: 16px 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 4px;
    font-size: 13px; color: var(--ink-muted); line-height: 1.6;
    margin-bottom: 28px;
  }
  .jf-sovereign-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--teal); display: block; margin-bottom: 6px;
  }

  /* CTA stage */
  .jf-cta-stage {
    max-width: 520px; margin: 0 auto; text-align: center; padding-top: 40px;
  }
  .jf-cta-heading {
    font-family: var(--font-serif); font-size: 30px;
    color: var(--ink); margin-bottom: 16px; line-height: 1.15;
  }
  .jf-cta-heading em { font-style: italic; color: var(--green); }
  .jf-cta-body {
    font-size: 15px; color: var(--ink-dim); line-height: 1.7;
    margin: 0 0 12px; font-weight: 300;
  }
  .jf-cta-sub {
    font-size: 13px; color: var(--ink-muted); line-height: 1.6;
    margin: 0 0 32px; font-weight: 300;
  }
  .jf-cta-btn {
    display: inline-block; background: var(--green); color: #fff;
    font-family: var(--font-mono); font-size: 12px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 16px 32px; border-radius: 3px; text-decoration: none;
    transition: background 0.15s; margin-bottom: 12px;
  }
  .jf-cta-btn:hover { background: var(--green-dim); }
  .jf-cta-restart {
    display: block; font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-muted); background: none; border: none;
    cursor: pointer; margin: 16px auto 0;
  }
  .jf-cta-restart:hover { color: var(--ink); }

  /* Panel navigator mode */
  .jnav-stage {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 4px; display: block;
  }
  .jnav-title {
    font-size: 13px; font-weight: 500; color: var(--ink);
    margin-bottom: 6px; line-height: 1.3;
  }
  .jnav-context {
    font-size: 11px; color: var(--ink-dim); line-height: 1.55;
    margin-bottom: 14px; font-weight: 300;
  }
  .jnav-steps {
    display: flex; flex-direction: column; gap: 2px;
    margin-bottom: 16px;
  }
  .jnav-step {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px; border-radius: 3px;
    font-size: 11px; color: var(--ink-muted);
    cursor: pointer; transition: background 0.1s;
  }
  .jnav-step:hover { background: var(--surface); }
  .jnav-step.active { background: var(--surface); color: var(--ink); font-weight: 500; }
  .jnav-step.complete { color: var(--green); }
  .jnav-step-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); flex-shrink: 0;
  }
  .jnav-step.active .jnav-step-dot { background: var(--green); }
  .jnav-step.complete .jnav-step-dot { background: var(--green); }
  .jnav-actions { display: flex; flex-direction: column; gap: 6px; }
  .jnav-btn-primary {
    background: var(--green); color: #fff; border: none;
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 10px 14px; border-radius: 3px; cursor: pointer;
    transition: background 0.15s; text-align: center;
  }
  .jnav-btn-primary:hover { background: var(--green-dim); }
  .jnav-btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }
  .jnav-btn-secondary {
    background: none; border: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-muted); padding: 8px 14px;
    border-radius: 3px; cursor: pointer; transition: all 0.15s;
  }
  .jnav-btn-secondary:hover { color: var(--ink); border-color: var(--border-2); }

  @media (max-width: 900px) {
    #journey-frame {
      left: 0 !important;
      top: 56px !important;
      right: 0 !important;
      bottom: 0 !important;
      z-index: 1100 !important;
    }
    body.journey-active #page-wrap { display: none; }
    #dashboard-panel { display: none !important; }
  }
  /* ── END JOURNEY FRAME ───────────────────────────────── */

  /* ── SIGNALS-SYSTEMS COMPAT VARS (for embedded demo) ── */
  #journey-frame {
    --chalk:      #1a1a1a;
    --slate:      #5a5650;
    --slate-2:    #8c8780;
    --slate-3:    #8c8780;
    --ink-2:      #5a5650;
    --mono:       'Geist Mono', monospace;
    --serif:      'Instrument Serif', Georgia, serif;
    --sans:       'Geist', system-ui, sans-serif;
    --steward:    #7dd3c8;
    --corporate:  #c8f0d0;
    --founder:    #f5d97a;
    --researcher: #f08080;
    --bg:         #f7f4ef;
    --signal:     #c8f0d0;
  }
  /* Scope demo styles so they don't bleed into the page */
  #journey-frame .demo-inner { padding: 0; }
  #journey-frame .window-chrome { border-radius: 6px; overflow: hidden; }
  #journey-frame .panel-left { background: var(--surface); }
  #journey-frame .role-card { border-radius: 4px; }
  /* ── END COMPAT VARS ─────────────────────────────────── */

  /* ── JOURNEY FRAME STICKY BOTTOM ─────────────────────── */
  .jf-sticky-bottom {
    position: sticky;
    bottom: 0;
    background: var(--page);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    margin-top: 32px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
  }
  /* ── END STICKY BOTTOM ───────────────────────────────── */

  /* ── SIGNALS-SYSTEMS DEMO CSS (scoped to journey frame) ── */
  #journey-frame .demo-inner {
    max-width: 1100px; margin: 0 auto;
  }
  #journey-frame .demo-intro {
    max-width: 680px; margin-bottom: 56px;
  }
  #journey-frame .app-window {
    border: 1px solid var(--slate-2);
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  }
  #journey-frame .window-chrome {
    background: #1a1a1a;
  border-bottom: 1px solid #d1d3d8;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  flex-shrink: 0;
  }
  #journey-frame .chrome-dot {
    width: 12px; height: 12px; border-radius: 50%;
  }
  #journey-frame .chrome-dot.red {
    background: #ff5f57;
  }
  #journey-frame .chrome-dot.amber {
    background: #febc2e;
  }
  #journey-frame .chrome-dot.green {
    background: #28c840;
  }
  #journey-frame .chrome-address {
    flex: 1; margin: 0 12px;
  background: #fff; border: 1px solid #c8c9cc;
  border-radius: 4px; height: 22px;
  display: flex; align-items: center; padding: 0 10px;
  font-family: var(--mono); font-size: 10px; color: #8c8780;
  }
  #journey-frame .window-body {
    display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  }
  #journey-frame .panel-left {
    background: #f0ece4;
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(0,0,0,0.04);
  }
  #journey-frame .role-selector {
    padding: 28px 24px;
  flex: 1;
  display: flex; flex-direction: column;
  }
  #journey-frame .role-selector-label {
    font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal);
  margin-bottom: 16px;
  }
  #journey-frame .role-selector-title {
    font-family: var(--serif); font-size: 22px; color: var(--chalk);
  line-height: 1.2; margin-bottom: 8px;
  }
  #journey-frame .role-selector-sub {
    font-size: 12px; color: var(--slate-3); line-height: 1.6; margin-bottom: 24px;
  }
  #journey-frame .role-cards {
    display: flex; flex-direction: column; gap: 8px;
  }
  #journey-frame .role-card {
    background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px; padding: 14px 16px; cursor: pointer;
  transition: all 0.15s; display: flex; align-items: center; gap: 12px;
  position: relative; overflow: hidden;
  }
  #journey-frame .role-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  opacity: 0; transition: opacity 0.15s;
  }
  #journey-frame .role-card:hover {
    background: rgba(0,0,0,0.04);
  }
  #journey-frame .role-card:hover::before {
    opacity: 1;
  }
  #journey-frame .role-card.steward::before {
    background: var(--steward);
  }
  #journey-frame .role-card.corporate::before {
    background: var(--corporate);
  }
  #journey-frame .role-card.founder::before {
    background: var(--founder);
  }
  #journey-frame .role-card.researcher::before {
    background: var(--researcher);
  }
  #journey-frame .role-card-icon {
    width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  }
  #journey-frame .role-card.steward .role-card-icon {
    background: rgba(125,211,200,0.15);
  }
  #journey-frame .role-card.corporate .role-card-icon {
    background: rgba(200,240,208,0.15);
  }
  #journey-frame .role-card.founder .role-card-icon {
    background: rgba(245,217,122,0.15);
  }
  #journey-frame .role-card.researcher .role-card-icon {
    background: rgba(240,128,128,0.15);
  }
  #journey-frame .role-card-name {
    font-size: 13px; font-weight: 600; color: var(--chalk);
  }
  #journey-frame .role-card-desc {
    font-size: 11px; color: var(--slate-3); margin-top: 2px;
  }
  #journey-frame .role-card-arrow {
    margin-left: auto; font-size: 14px; color: var(--slate-3); opacity: 0; transition: opacity 0.15s;
  }
  #journey-frame .role-card:hover .role-card-arrow {
    opacity: 1;
  }
  #journey-frame .chat-panel {
    padding: 20px;
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden;
  }
  #journey-frame .chat-actor-header {
    display: flex; align-items: center; gap: 10px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  #journey-frame .chat-actor-dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  }
  #journey-frame .chat-actor-name {
    font-size: 12px; font-weight: 600; color: var(--chalk);
  }
  #journey-frame .chat-actor-role {
    font-size: 11px; color: var(--slate-3); font-family: var(--mono);
  }
  #journey-frame .chat-back {
    margin-left: auto; font-family: var(--mono); font-size: 9px;
  color: var(--slate-3); background: none; border: none;
  cursor: pointer; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 3px;
  transition: color 0.15s, background 0.15s;
  }
  #journey-frame .chat-back:hover {
    color: var(--chalk); background: rgba(0,0,0,0.04);
  }
  #journey-frame .chat-messages {
    flex: 1; overflow-y: auto; display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--slate-2) transparent;
  }
  #journey-frame .msg-ai-bubble {
    background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05);
  border-radius: 4px 12px 12px 12px; padding: 12px 14px;
  font-size: 12px; color: #5a5650; line-height: 1.7; white-space: pre-line;
  max-width: 90%;
  }
  #journey-frame .msg-ai-bubble .arr {
    color: var(--signal);
  }
  #journey-frame .msg-user-bubble {
    align-self: flex-end;
  background: rgba(200,240,208,0.08); border: 1px solid rgba(200,240,208,0.15);
  border-radius: 12px 4px 12px 12px; padding: 10px 14px;
  font-size: 12px; color: #2a7a4f; line-height: 1.6;
  max-width: 88%;
  }
  #journey-frame .chat-options {
    display: flex; flex-direction: column; gap: 6px;
  }
  #journey-frame .chat-option {
    background: rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.05);
  border-radius: 8px; padding: 10px 14px;
  font-size: 12px; color: #5a5650; cursor: pointer;
  text-align: left; transition: all 0.15s; line-height: 1.5;
  font-family: 'Geist', sans-serif;
  }
  #journey-frame .chat-option:hover {
    background: rgba(200,240,208,0.08); border-color: rgba(200,240,208,0.35); color: var(--chalk);
  }
  #journey-frame .chat-option:hover::before {
    content: '→ '; color: var(--signal);
  }
  #journey-frame .chat-prompt-hint {
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--signal); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  }
  #journey-frame .chat-prompt-hint::before {
    display: inline-block; width: 14px; height: 1px; background: var(--signal);
  }
  #journey-frame .panel-right {
    background: #1a1a1a;
  display: flex; flex-direction: column;
  overflow: hidden;
  }
  #journey-frame .panel-right-waiting {
    flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px; text-align: center; gap: 12px;
  }
  #journey-frame .panel-right-building {
    flex: 1; display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px; gap: 16px;
  }
  #journey-frame .building-spinner {
    width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #5a5650; border-top-color: #6366f1;
  animation: spin 0.9s linear infinite;
  }
  #journey-frame }
.building-lines {
    display: flex; flex-direction: column; gap: 8px; width: 180px;
  }
  #journey-frame .building-line {
    height: 8px; border-radius: 4px; background: #5a5650;
  animation: shimmer 1.5s ease-in-out infinite;
  }
  #journey-frame .building-line:nth-child(2) {
    width: 75%; animation-delay: 0.2s;
  }
  #journey-frame .building-line:nth-child(3) {
    width: 55%; animation-delay: 0.4s;
  }
  #journey-frame }
.building-label {
    font-size: 12px; color: #8c8780; font-family: 'Geist', sans-serif; font-weight: 500;
  }
  #journey-frame .panel-right-dashboard {
    flex: 1; display: none; flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  }
  #journey-frame .dash-chrome-left {
    display: flex; align-items: center; gap: 6px;
  }
  #journey-frame .dash-tab-pane {
    display: none;
  }
  #journey-frame .dash-tab-pane.active {
    display: block;
  }
  #journey-frame .switch-strip {
    display: none;
  background: var(--ink-2); border-top: 1px solid var(--slate);
  padding: 12px 20px; align-items: center; gap: 12px; flex-shrink: 0;
  }
  #journey-frame .switch-strip-label {
    font-family: var(--mono); font-size: 9px; color: var(--slate-3);
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  }
  #journey-frame .switch-strip-btns {
    display: flex; gap: 6px; flex-wrap: wrap;
  }
  #journey-frame .window-body {
    grid-template-columns: 1fr;
  }
  #journey-frame .panel-right {
    min-height: 400px; border-top: 1px solid #1a1a1a;
  }
  #journey-frame .switch-strip {
    flex-wrap: wrap;
  }
  #journey-frame .demo-stage {
    grid-template-columns: 1fr;
  }
  #journey-frame .demo-output {
    min-height: 400px;
  }
  #journey-frame .window-body {
    grid-template-columns: 1fr; min-height: auto;
  }
  #journey-frame .panel-left {
    min-height: 420px;
  }
  #journey-frame .panel-right {
    min-height: 0; max-height: 480px; overflow-y: auto; border-top: 1px solid #1a1a1a;
  }
  #journey-frame .switch-strip {
    flex-wrap: wrap;
  }
  /* ── END DEMO CSS ────────────────────────────────────────── */

  /* ══ HERO ══════════════════════════════════════════════ */
  #hero {
    max-width: 860px; margin: 0 auto;
    padding: 3rem 2rem 2.5rem;
  }
  .hero-eyebrow {
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--green); margin: 0 0 20px;
  }
  .hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 400; line-height: 1.1;
    color: var(--ink); margin: 0 0 20px;
    letter-spacing: -0.015em;
  }
  .hero-heading em { font-style: normal; color: var(--ink-dim); }
  .hero-lede {
    font-size: 16px; color: var(--ink-dim); line-height: 1.75;
    margin: 0 0 40px; font-weight: 300; max-width: 680px;
  }
  .hero-choice {
    display: flex; gap: 12px; flex-wrap: wrap;
  }
  .hero-btn-primary {
    background: var(--amber); color: #fff; border: none;
    font-family: var(--font-mono); font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 16px 24px; border-radius: 3px; cursor: pointer;
    transition: background 0.15s; text-align: left;
    min-width: 240px;
  }
  .hero-btn-primary span {
    display: block; font-family: var(--font-sans); font-size: 12px;
    font-weight: 300; text-transform: none; letter-spacing: 0;
    color: rgba(255,255,255,0.7); margin-top: 4px; line-height: 1.4;
  }
  .hero-btn-primary:hover { background: var(--amber-dim, #b45309); }
  .hero-btn-secondary {
    background: transparent; color: var(--ink-dim);
    border: 1px solid var(--border-2);
    font-family: var(--font-mono); font-size: 12px; font-weight: 400;
    letter-spacing: 0.08em; text-transform: uppercase;
    padding: 16px 24px; border-radius: 3px; cursor: pointer;
    transition: all 0.15s; text-align: left; min-width: 200px;
  }
  .hero-btn-secondary span {
    display: block; font-family: var(--font-sans); font-size: 12px;
    font-weight: 300; text-transform: none; letter-spacing: 0;
    color: var(--ink-muted); margin-top: 4px; line-height: 1.4;
  }
  .hero-btn-secondary:hover {
    color: var(--ink); border-color: var(--ink-dim);
  }

  /* ══ AUDIENCE DIRECTORY ════════════════════════════════ */
  #platform-bridge { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 64px 24px; }
.bridge-inner { max-width: 640px; margin: 0 auto; }
.bridge-eyebrow { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.bridge-h { font-family: var(--font-serif); font-size: clamp(24px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px; }
.bridge-p { font-size: 16px; color: var(--ink-dim); line-height: 1.75; font-weight: 300; margin-bottom: 28px; }
.bridge-link { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); text-decoration: none; border-bottom: 1px solid var(--green); padding-bottom: 2px; transition: opacity 0.15s; }
.bridge-link:hover { opacity: 0.7; }
.dir-intro { max-width: 640px; margin: 0 auto 32px; padding: 0 24px; text-align: center; }
.dir-intro-eyebrow { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.dir-intro-text { font-size: 15px; color: var(--ink-dim); font-weight: 300; line-height: 1.6; }
#audience-directory {
    padding: 4rem 2rem 6rem;
    border-top: 1px solid var(--border);
  }
  #audience-directory.hidden { display: none; }
  .dir-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 2px; background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px; overflow: hidden;
  }
  .dir-card {
    background: var(--page); padding: 36px 40px;
    transition: background 0.15s;
  }
  @media (max-width: 640px) {
    .dir-card { padding: 28px 24px; }
  }
  .dir-card:hover { background: var(--surface); }
  .dir-card-eyebrow {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--green); margin: 0 0 14px;
  }
  .dir-card-heading {
    font-family: var(--font-serif);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 400; line-height: 1.15;
    color: var(--ink); margin: 0 0 12px;
  }
  .dir-card-heading em { font-style: italic; color: var(--green); }
  .dir-card-body {
    font-size: 13px; color: var(--ink-dim); line-height: 1.7;
    margin: 0 0 20px; font-weight: 300;
  }
  .dir-card-links {
    display: flex; flex-direction: column; gap: 6px;
  }
  .dir-card-links a {
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--ink-dim); text-decoration: none;
    transition: color 0.15s;
  }
  .dir-card-links a:hover { color: var(--green); }
  .dir-card-links a.dir-cta {
    color: var(--green); margin-top: 6px; padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .dir-card-links a.dir-cta:hover { color: var(--green-dim); }

  /* ══ BAR JOURNEY STATE ═════════════════════════════════ */
  #bar-default-state {
    display: flex; align-items: center; gap: 20px; flex: 1;
  }
  .bar-icon span { color: var(--green); }
  #bar-journey-state {
    display: flex; align-items: center; gap: 16px; flex: 1;
  }
  .bar-journey-label {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
    white-space: nowrap;
  }
  .bar-journey-steps {
    display: flex; gap: 4px; align-items: center; flex: 1;
    overflow: hidden;
  }
  .bar-journey-step {
    font-family: var(--font-mono); font-size: 9px;
    color: var(--ink-muted); white-space: nowrap;
    padding: 3px 8px; border-radius: 2px;
    transition: all 0.15s;
  }
  .bar-journey-step.active {
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--border);
  }
  .bar-journey-step.complete { color: var(--green); }

  @media (max-width: 768px) {
    .dir-inner { grid-template-columns: 1fr; }
    .hero-choice { flex-direction: column; }
    .hero-btn-primary, .hero-btn-secondary { min-width: 0; width: 100%; }
  }
  /* ══ END NEW INDEX CSS ══════════════════════════════════ */

  /* ── INTRO FORK CARDS ────────────────────────────────── */
  .jf-fork-grid-intro {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 16px; margin-bottom: 32px;
  }
  @media (max-width: 900px) { .jf-fork-grid-intro { grid-template-columns: 1fr; } }
  .jf-fork-intro-card {
    text-align: left; padding: 24px 26px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 4px; cursor: pointer; width: 100%;
    transition: all 0.15s; display: flex; flex-direction: column;
  }
  .jf-fork-intro-card:hover { border-color: var(--green); background: rgba(42,122,79,0.04); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
  .jf-fork-intro-card-infra:hover { border-color: var(--teal); background: rgba(125,211,200,0.04); }
  .jf-fork-intro-card-cas:hover { border-color: var(--amber); background: rgba(245,217,122,0.04); }
  .jf-fork-intro-num {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    color: var(--green); margin-bottom: 10px; display: block;
  }
  .jf-fork-intro-card-infra .jf-fork-intro-num { color: var(--teal); }
  .jf-fork-intro-card-cas .jf-fork-intro-num { color: #8b6914; }
  .jf-fork-intro-label {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--green); margin-bottom: 8px;
  }
  .jf-fork-intro-card-infra .jf-fork-intro-label { color: var(--teal); }
  .jf-fork-intro-card-cas .jf-fork-intro-label { color: #8b6914; }
  .jf-fork-intro-title {
    font-family: var(--font-serif); font-size: 17px;
    color: var(--ink); line-height: 1.2; margin-bottom: 10px;
  }
  .jf-fork-intro-desc {
    font-size: 12px; color: var(--ink-muted); line-height: 1.6;
    margin-bottom: 14px; font-weight: 300; flex: 1;
  }
  .jf-fork-intro-steps {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .jf-fork-intro-steps span {
    font-family: var(--font-mono); font-size: 9px;
    color: var(--ink-muted); letter-spacing: 0.04em;
  }
  .jf-fork-intro-cta {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
    margin-top: auto;
  }
  .jf-fork-intro-card-infra .jf-fork-intro-cta { color: var(--teal); }
  .jf-fork-intro-card-cas .jf-fork-intro-cta { color: #8b6914; }

  /* ── PANEL FORK LIST ─────────────────────────────────── */
  .jnav-fork-list {
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 16px;
  }
  .jnav-fork-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 3px;
    cursor: pointer; text-align: left; width: 100%;
    transition: all 0.15s;
  }
  .jnav-fork-item:hover { border-color: var(--green); }
  .jnav-fork-infra:hover { border-color: var(--teal); }
  .jnav-fork-cas:hover { border-color: var(--amber); }
  .jnav-fork-num {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    color: var(--green); flex-shrink: 0;
  }
  .jnav-fork-infra .jnav-fork-num { color: var(--teal); }
  .jnav-fork-cas .jnav-fork-num { color: #8b6914; }
  .jnav-fork-name {
    font-size: 12px; font-weight: 500; color: var(--ink);
  }

  /* ── ESCAPE HATCH ────────────────────────────────────── */
  .jnav-escape {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .jnav-escape-btn {
    font-family: var(--font-mono); font-size: 9px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-muted); background: none; border: none;
    cursor: pointer; padding: 0; transition: color 0.15s;
  }
  .jnav-escape-btn:hover { color: var(--ink); }
  /* ── END FORK/ESCAPE CSS ─────────────────────────────── */

/* ── MOBILE OVERFLOW FIX ─────────────────────────────── */
img, video, svg, canvas, iframe { max-width: 100%; }
table { width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-all; }

/* ── MAP MOBILE ──────────────────────────────────────── */
@media (max-width: 600px) {
  .map-filter { font-size: 10px; padding: 3px 8px; }
  #map-section { height: 50vh; margin-top: 52px; }
}

/* ── NAV MOBILE FIX ─────────────────────────────────── */
@media (max-width: 480px) {
  nav { padding: 0 16px !important; }
  .nav-logo { font-size: 16px !important; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; margin-left: auto; }
}

  .pipeline-cta { display: flex; gap: 12px; justify-content: center; padding: 28px 0 8px; flex-wrap: wrap; }
  .pipeline-cta-amber { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 24px; border-radius: 3px; background: var(--amber); color: #fff; text-decoration: none; transition: opacity 0.15s; }
  .pipeline-cta-amber:hover { opacity: 0.85; }
  .pipeline-cta-green { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 24px; border-radius: 3px; background: var(--green); color: #fff; text-decoration: none; transition: opacity 0.15s; }
  .pipeline-cta-green:hover { opacity: 0.85; }
  .pipeline-note {
    margin-top: 2px;
    border: 1px solid var(--border);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    background: var(--border);
  }
  .pipeline-note-inner {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    background: var(--surface);
  }
  .pipeline-note-col {
    padding: 20px 24px;
    background: var(--surface);
  }
  .pipeline-note-divider {
    background: var(--border);
    width: 1px;
  }
  .pipeline-note-label {
    font-family: var(--font-mono);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--green); display: block; margin-bottom: 8px;
  }
  .pipeline-note-text {
    font-size: 12px; color: var(--ink-dim);
    line-height: 1.65; font-weight: 300;
  }
  .pipeline-note-text strong { color: var(--ink); font-weight: 500; }
  @media(max-width:900px) {
    .pipeline-note-inner { grid-template-columns: 1fr; }
    .pipeline-note-divider { display: none; }
  }

  .entry-ctas {
    padding: 48px 2rem;
    border-top: 1px solid var(--border);
    background: var(--page);
  }
  .entry-ctas-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  @media(max-width:600px) {
    .entry-ctas-inner { flex-direction: column; }
  }

  /* ── PIPELINE SECTION ──────────────────────────────── */
  #pipeline {
    padding: 72px 2rem;
    border-top: 1px solid var(--border);
    background: var(--page);
  }
  .pipeline-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  .pipeline-header {
    max-width: 640px;
    margin-bottom: 56px;
  }
  .pipeline-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--green); margin-bottom: 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .pipeline-eyebrow::before {
    content: ''; width: 24px; height: 1px; background: var(--green);
  }
  .pipeline-headline {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400; line-height: 1.15;
    color: var(--ink); margin-bottom: 16px;
    letter-spacing: -0.02em;
  }
  .pipeline-headline em { font-style: italic; color: var(--green); }
  .pipeline-sub {
    font-size: 15px; color: var(--ink-dim);
    line-height: 1.72; font-weight: 300;
  }
  .pipeline-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2px;
  }
  .pipeline-step {
    background: var(--page);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }
  .pipeline-step:hover { background: var(--surface); }
  .pipeline-step:hover .pipeline-step-name { color: var(--green); }
  .pipeline-step-num {
    font-family: var(--font-mono);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--green);
  }
  .pipeline-step-name {
    font-family: var(--font-serif);
    font-size: 18px; font-weight: 400;
    color: var(--ink); line-height: 1.2;
    text-decoration: none;
  }
  .pipeline-step-name:hover { color: var(--green); }
  .pipeline-step-desc {
    font-size: 12px; color: var(--ink-muted);
    line-height: 1.6; font-weight: 300;
  }
  .pipeline-step-tag {
    font-family: var(--font-mono);
    font-size: 8px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-muted);
    border: 1px solid var(--border-2);
    padding: 2px 7px; border-radius: 2px;
    display: inline-block; margin-top: auto;
  }
  /* Contrast block */
  .pipeline-contrast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 0 0 4px 4px;
    overflow: hidden;
  }
  .contrast-col {
    padding: 24px 28px;
    background: var(--surface);
  }
  .contrast-col.contrast-col--full {
    background: var(--green-dim);
  }
  .contrast-label {
    font-family: var(--font-mono);
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-muted); margin-bottom: 10px;
  }
  .contrast-col--full .contrast-label {
    color: rgba(255,255,255,0.5);
  }
  .contrast-title {
    font-family: var(--font-serif);
    font-size: 16px; color: var(--ink);
    margin-bottom: 8px; line-height: 1.25;
  }
  .contrast-col--full .contrast-title {
    color: #fff;
  }
  .contrast-body {
    font-size: 12px; color: var(--ink-dim);
    line-height: 1.65; font-weight: 300;
  }
  .contrast-col--full .contrast-body {
    color: rgba(255,255,255,0.75);
  }
  .contrast-body strong {
    color: var(--ink); font-weight: 500;
  }
  .contrast-col--full .contrast-body strong {
    color: #fff;
  }
  @media (max-width: 900px) {
    .pipeline-steps { grid-template-columns: 1fr 1fr; }
    .pipeline-contrast { grid-template-columns: 1fr; }
  }
  @media (max-width: 600px) {
    .pipeline-steps { grid-template-columns: 1fr; }
    #pipeline { padding: 60px 1.5rem; }
  }

/* ── MOBILE CAROUSEL SYSTEM ─────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Wrapper that enables carousel mode */
  .carousel-mobile {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding-bottom: 4px !important;
    margin: 0 -1.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .carousel-mobile::-webkit-scrollbar { display: none !important; }

  /* Each card inside a carousel */
  .carousel-mobile > * {
    flex: 0 0 85vw !important;
    max-width: 85vw !important;
    scroll-snap-align: start !important;
    border-radius: 4px !important;
    margin-right: 12px !important;
    border: 1px solid var(--border) !important;
  }

  /* Dot indicator track */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
  }
  .carousel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border-2);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
  }
  .carousel-dot.active {
    background: var(--green);
    transform: scale(1.3);
  }

  /* Swipe hint label */
  .carousel-hint {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-muted);
    margin-bottom: 8px;
    padding-left: 0;
  }
}

/* Hide carousel hints on desktop */
@media (min-width: 641px) {
  .carousel-dots { display: none; }
  .carousel-hint { display: none; }
}

