/* ============================================================
   DRIFT · 星辰大业  — deep-space speculative field guide
   Palette: void black, oxide red (中国红), plasma cyan, gold
   ============================================================ */

:root {
  --void: #05060a;
  --void-2: #0a0c14;
  --panel: #0e1018;
  --ink: #eef1f7;
  --ink-dim: #9aa3b8;
  --ink-faint: #5a6178;
  --red: #e8233a;       /* 中国红 */
  --red-deep: #8f0f1f;
  --cyan: #3fe3ff;
  --gold: #f4c95d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Noto Serif SC", serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }

/* ---------- Background canvas + overlays ---------- */
#starfield {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  background:
    radial-gradient(1200px 800px at 78% -8%, rgba(232,35,58,0.18), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(63,227,255,0.10), transparent 60%),
    var(--void);
}
.scan-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, transparent 0 3px, rgba(0,0,0,0.20) 3px 4px);
  mix-blend-mode: overlay; opacity: 0.35;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(5,6,10,0.85), rgba(5,6,10,0));
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(5,6,10,0.9); }
.brand { display: flex; align-items: center; gap: 12px; letter-spacing: 0.14em; }
.brand-mark {
  font-family: var(--serif); font-weight: 900; font-size: 22px;
  width: 38px; height: 38px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep));
  border-radius: 9px; box-shadow: 0 0 24px rgba(232,35,58,0.5);
}
.brand-mark.small { width: 30px; height: 30px; font-size: 17px; }
.brand-text { font-weight: 700; font-size: 15px; }
.brand-text i { color: var(--ink-faint); font-style: normal; font-weight: 400; margin-left: 6px; }
.nav-links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.nav-links a {
  font-size: 13px; letter-spacing: 0.08em; color: var(--ink-dim);
  text-transform: uppercase; position: relative; padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--red); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* Mobile hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; margin: -8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(5,6,10,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); padding: 8px clamp(20px,5vw,56px) 18px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px clamp(20px, 5vw, 56px) 80px;
  max-width: var(--maxw); margin: 0 auto;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 30% 40%, #000 30%, transparent 80%);
  opacity: 0.5;
}
.kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 26px;
  display: flex; align-items: center; gap: 10px;
}
.kicker .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }

.hero-title {
  font-weight: 600; font-size: clamp(34px, 6.6vw, 78px); line-height: 1.04;
  letter-spacing: -0.02em; margin-bottom: 30px;
}
.grad {
  background: linear-gradient(100deg, var(--red), var(--gold) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.strike { color: var(--ink-faint); position: relative; }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 4px;
  background: var(--red); transform: rotate(-2deg);
  box-shadow: 0 0 16px var(--red);
}
.hero-sub {
  max-width: 660px; font-size: clamp(15px, 1.9vw, 19px); color: var(--ink-dim);
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.btn {
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 14px 26px; border-radius: 10px; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  border: 1px solid transparent;
}
.btn.primary {
  background: linear-gradient(120deg, var(--red), var(--red-deep));
  color: #fff; box-shadow: 0 10px 40px -12px rgba(232,35,58,0.7);
}
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -12px rgba(232,35,58,0.85); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: rgba(255,255,255,0.05); transform: translateY(-3px); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 760px; border-top: 1px solid var(--line); padding-top: 28px;
}
.hero-stats b {
  font-family: var(--mono); font-weight: 600; font-size: clamp(24px, 4vw, 40px);
  color: var(--ink); display: block; letter-spacing: -0.02em;
}
.hero-stats span { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 0.02em; }
@media (max-width: 620px) { .hero-stats { grid-template-columns: 1fr; gap: 16px; } }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--ink-faint);
  animation: float 2.4s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 56px); }
.section.alt { max-width: none; background: linear-gradient(to bottom, transparent, rgba(14,16,24,0.6), transparent); }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--red);
  text-transform: uppercase; margin-bottom: 18px;
}
.section-head h2 {
  font-weight: 600; font-size: clamp(28px, 4.6vw, 50px); line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.lede { font-size: clamp(15px, 1.9vw, 18px); color: var(--ink-dim); }

/* ---------- Mandate cards ---------- */
.mandates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .mandates { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mandates { grid-template-columns: 1fr; } }

.card {
  position: relative; background: linear-gradient(180deg, var(--panel), rgba(10,12,20,0.5));
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 30px;
  overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  opacity: 0; transform: translateY(26px);
}
.card.in { opacity: 1; transform: none; }
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(232,35,58,0.16), transparent 60%);
  transition: opacity 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 24px 60px -30px rgba(232,35,58,0.5); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.card-num { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.1em; }
.card-cn { font-family: var(--serif); font-weight: 900; font-size: 30px; color: var(--red); line-height: 1; opacity: 0.92; }
.card h3 { font-weight: 600; font-size: 20px; line-height: 1.25; margin-bottom: 6px; }
.card .en-sub { font-size: 12.5px; color: var(--cyan); font-family: var(--mono); letter-spacing: 0.04em; margin-bottom: 14px; }
.card p { font-size: 14.5px; color: var(--ink-dim); }
.card .tag {
  display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--gold); border: 1px solid rgba(244,201,93,0.3);
  border-radius: 6px; padding: 4px 10px;
}

/* ---------- Compare (vs Starlink) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 70px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-col { border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; background: var(--panel); }
.compare-col h3 { font-weight: 600; font-size: 20px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; }
.compare-col h3 span { font-family: var(--serif); font-size: 15px; color: var(--ink-faint); }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.compare-col li { font-size: 14.5px; color: var(--ink-dim); padding-left: 22px; position: relative; }
.compare-col li b { color: var(--ink); font-weight: 600; }
.compare-col li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; }
.legacy { opacity: 0.82; }
.legacy li::before { background: var(--ink-faint); }
.future { border-color: rgba(232,35,58,0.35); box-shadow: 0 0 50px -28px rgba(232,35,58,0.6); }
.future li::before { background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ---------- Orbit viz ---------- */
.orbit-viz { position: relative; height: 420px; display: grid; place-items: center; }
.orbit-viz .earth {
  width: 96px; height: 96px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2b6cff, #0a2a6b 60%, #04122e);
  box-shadow: 0 0 60px rgba(43,108,255,0.5), inset -10px -8px 24px rgba(0,0,0,0.6);
  display: grid; place-items: center; z-index: 3;
}
.earth span { font-family: var(--serif); font-size: 15px; color: rgba(255,255,255,0.85); }
.ring { position: absolute; border: 1px dashed; border-radius: 50%; }
.ring-leo { width: 220px; height: 220px; border-color: rgba(63,227,255,0.5); animation: spin 18s linear infinite; }
.ring-meo { width: 330px; height: 330px; border-color: rgba(244,201,93,0.4); animation: spin 30s linear infinite reverse; }
.ring-geo { width: 440px; height: 440px; border-color: rgba(232,35,58,0.45); animation: spin 50s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sat { position: absolute; width: 9px; height: 9px; border-radius: 2px; }
.s1,.s2,.s3 { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.s4,.s5 { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.s6 { background: var(--red); box-shadow: 0 0 12px var(--red); }
.s1 { transform: translate(110px,0); } .s2 { transform: translate(-78px,78px); } .s3 { transform: translate(0,-110px); }
.s4 { transform: translate(165px,40px); } .s5 { transform: translate(-120px,-110px); }
.s6 { transform: translate(0,220px); }
.orbit-caption { position: absolute; bottom: -8px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; }
.leo-l { color: var(--cyan); } .meo-l { color: var(--gold); } .geo-l { color: var(--red); }
@media (max-width: 560px) { .orbit-viz { transform: scale(0.78); } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), var(--cyan)); }
.timeline li {
  position: relative; padding: 0 0 38px 50px; opacity: 0; transform: translateX(-18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.timeline li.in { opacity: 1; transform: none; }
.timeline li::before {
  content: ""; position: absolute; left: 5px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--void); border: 3px solid var(--red);
  box-shadow: 0 0 14px rgba(232,35,58,0.7);
}
.timeline .yr { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.08em; }
.timeline h4 { font-weight: 600; font-size: 19px; margin: 4px 0 6px; }
.timeline p { font-size: 14.5px; color: var(--ink-dim); max-width: 640px; }

/* ---------- Thesis ---------- */
.thesis-inner { max-width: 820px; }
.thesis h2 { font-weight: 600; font-size: clamp(28px, 5vw, 54px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 30px; }
.thesis h2 em { font-style: italic; color: var(--gold); }
.thesis p { font-size: clamp(15px, 2vw, 19px); color: var(--ink-dim); margin-bottom: 24px; }
.thesis strong { color: var(--ink); font-weight: 600; }
.thesis-kicker { font-size: clamp(22px, 4vw, 36px) !important; color: var(--ink) !important; font-weight: 500; margin-top: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 50px clamp(20px,5vw,56px); max-width: var(--maxw); margin: 0 auto; }
.footer-main { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.footer-main p { font-size: 14px; }
.muted { color: var(--ink-faint); }
.muted.small, .footer .small { font-size: 12px; }
.footer-main .muted { max-width: 620px; margin-top: 4px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card, .timeline li { opacity: 1; transform: none; }
}

/* ============================================================
   NET ASSESSMENT  — merged us-china-rivalry data
   ============================================================ */
.exec-loading { font-family: var(--mono); color: var(--ink-faint); padding: 40px 0; }
.exec { margin-bottom: 54px; }
.exec-head { max-width: 860px; margin-bottom: 36px; }
.exec-title { font-weight: 600; font-size: clamp(19px, 2.6vw, 26px); line-height: 1.25; margin-bottom: 14px; color: var(--ink); }
.exec-thesis { font-size: clamp(14.5px, 1.8vw, 17px); color: var(--ink-dim); }

/* Composite power bar */
.cnp { margin-bottom: 40px; }
.cnp-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-dim); margin-bottom: 10px; text-transform: uppercase; }
.cnp-traj { color: var(--gold); }
.power-bar { display: flex; height: 46px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); font-family: var(--mono); font-weight: 600; }
.pb-us { background: linear-gradient(120deg, #1d4ed8, #3b82f6); display: flex; align-items: center; padding-left: 16px; color: #fff; min-width: 60px; }
.pb-cn { background: linear-gradient(120deg, var(--red-deep), var(--red)); display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; color: #fff; min-width: 60px; }

.exec-cols { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; }
@media (max-width: 860px) { .exec-cols { grid-template-columns: 1fr; gap: 26px; } }
.exec h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 24px 0 10px; }
.exec h3:first-child { margin-top: 0; }
.exec-state p { font-size: 14.5px; color: var(--ink-dim); margin-bottom: 8px; }
.inflect { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.inflect li { font-size: 13.5px; color: var(--ink-dim); padding-left: 18px; position: relative; }
.inflect li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }

/* Scoreboard table */
.scoreboard { width: 100%; border-collapse: collapse; font-size: 13px; }
.scoreboard td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sb-domain { color: var(--ink); font-weight: 500; }
.sb-margin, .sb-trend { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; }
.lead-pill { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.lead-pill.us { background: rgba(59,130,246,0.16); color: #7eb0ff; border: 1px solid rgba(59,130,246,0.4); }
.lead-pill.cn { background: rgba(232,35,58,0.16); color: #ff8a96; border: 1px solid rgba(232,35,58,0.4); }
.lead-pill.tie { background: rgba(255,255,255,0.08); color: var(--ink-dim); border: 1px solid var(--line-2); }

/* Scenarios */
.scenarios { display: flex; flex-direction: column; gap: 12px; }
.scenario { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--panel); }
.scenario-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.scenario-top h4 { font-size: 15px; font-weight: 600; }
.prob { font-family: var(--mono); font-weight: 600; color: var(--gold); font-size: 15px; }
.scenario-horizon { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin: 2px 0 6px; }
.scenario-sum { font-size: 13px; color: var(--ink-dim); }

/* Dimension filter controls */
.dim-controls { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.dim-controls-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-faint); }
.dim-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.dim-filter { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-dim); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: all 0.2s; }
.dim-filter:hover { color: var(--ink); border-color: var(--ink-faint); }
.dim-filter.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Dimension cards */
.dimensions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .dimensions { grid-template-columns: 1fr; } }
.dim { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--panel), rgba(10,12,20,0.4)); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.dim:hover { border-color: var(--line-2); }
.dim[open] { border-color: rgba(232,35,58,0.4); box-shadow: 0 20px 50px -30px rgba(232,35,58,0.5); grid-column: 1 / -1; }
.dim summary { list-style: none; cursor: pointer; padding: 22px 24px; position: relative; }
.dim summary::-webkit-details-marker { display: none; }
.dim-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tier { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; }
.tier-critical { background: rgba(232,35,58,0.18); color: #ff8a96; border: 1px solid rgba(232,35,58,0.45); }
.tier-high { background: rgba(244,201,93,0.14); color: var(--gold); border: 1px solid rgba(244,201,93,0.4); }
.tier-standard { background: rgba(63,227,255,0.12); color: var(--cyan); border: 1px solid rgba(63,227,255,0.35); }
.dim-cat { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }
.dim-conf { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-left: auto; }
.dim-title { font-size: 19px; font-weight: 600; margin-bottom: 8px; padding-right: 24px; }
.dim-headline { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }
.dim-expand { position: absolute; top: 22px; right: 22px; color: var(--ink-faint); transition: transform 0.3s; }
.dim[open] .dim-expand { transform: rotate(180deg); color: var(--red); }
.dim-body { padding: 0 24px 26px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 18px; }
.dim-summary { font-size: 14.5px; color: var(--ink-dim); margin-bottom: 18px; }
.dim-body h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin: 18px 0 10px; }
.kf { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.kf li { padding-left: 16px; border-left: 2px solid var(--line-2); }
.kf-claim { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.kf-metric { display: inline-block; font-family: var(--mono); font-size: 11.5px; color: var(--gold); margin: 4px 0; }
.kf-detail { display: block; font-size: 13px; color: var(--ink-dim); margin-top: 2px; }
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
@media (max-width: 540px) { .adv-grid { grid-template-columns: 1fr; } }
.adv, .wildcard, .dim-traj { border-radius: 10px; padding: 13px 15px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.adv-h { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.adv-us { border-left: 3px solid #3b82f6; } .adv-us .adv-h { color: #7eb0ff; }
.adv-cn { border-left: 3px solid var(--red); } .adv-cn .adv-h { color: #ff8a96; }
.adv p, .wildcard p, .dim-traj p { font-size: 13px; color: var(--ink-dim); }
.wildcard { margin-top: 14px; border-left: 3px solid var(--gold); } .wildcard .adv-h { color: var(--gold); }
.dim-traj { margin-top: 14px; border-left: 3px solid var(--cyan); } .dim-traj .adv-h { color: var(--cyan); }
.dim-sources { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 16px; }
.data-credit { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); margin-top: 34px; max-width: 760px; line-height: 1.6; }

/* ============================================================
   ENGINEERING — live calculators
   ============================================================ */
.calcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .calcs { grid-template-columns: 1fr; } }
.calc {
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 24px;
  background: linear-gradient(180deg, var(--panel), rgba(10,12,20,0.45));
  display: flex; flex-direction: column;
}
.calc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.calc-head { margin-bottom: 16px; }
.calc-cn { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--red); }
.calc-head h3 { font-size: 20px; font-weight: 600; margin: 4px 0 6px; }
.calc-blurb { font-size: 13.5px; color: var(--ink-dim); }
.calc-eq {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--cyan);
  background: rgba(63,227,255,0.06); border: 1px solid rgba(63,227,255,0.18);
  border-radius: 9px; padding: 11px 13px; margin-bottom: 20px; white-space: pre-wrap;
  word-break: break-word; overflow-x: auto;
}
.calc-inputs { display: flex; flex-direction: column; gap: 15px; margin-bottom: 22px; }
.calc-input { display: flex; flex-direction: column; gap: 7px; }
.ci-label { font-size: 12.5px; color: var(--ink-dim); display: flex; align-items: baseline; gap: 6px; }
.ci-label b { font-family: var(--mono); font-weight: 600; color: var(--gold); font-size: 13.5px; }
.calc-input input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red), var(--ink-faint)); outline: none; cursor: pointer;
}
.calc-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--red); box-shadow: 0 0 10px rgba(232,35,58,0.6); cursor: pointer;
}
.calc-input input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); cursor: pointer;
}
.calc-input select {
  font-family: var(--sans); font-size: 13.5px; color: var(--ink); background: var(--void-2);
  border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; cursor: pointer;
}
.calc-input select:focus { outline: none; border-color: var(--red); }
.calc-outputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.calc-out {
  background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; display: flex; flex-direction: column; gap: 4px;
}
.co-val { font-family: var(--mono); font-weight: 600; font-size: clamp(18px, 2.4vw, 23px); color: var(--ink); letter-spacing: -0.01em; }
.co-val i { font-style: normal; font-size: 12px; color: var(--ink-faint); margin-left: 3px; }
.co-label { font-size: 11.5px; color: var(--ink-faint); }
.calc-out.good { border-color: rgba(63,227,255,0.4); } .calc-out.good .co-val { color: var(--cyan); }
.calc-out.bad { border-color: rgba(244,201,93,0.4); } .calc-out.bad .co-val { color: var(--gold); }
.calc-take {
  font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; margin-top: auto;
  border-left: 2px solid var(--red); padding-left: 13px;
}

/* ---------- Mandate maturity status (real-only signalling) ---------- */
.status {
  display: block; margin-top: 14px; font-family: var(--mono); font-size: 10.5px;
  line-height: 1.5; letter-spacing: 0.02em; color: var(--ink-faint);
  padding-left: 14px; position: relative;
}
.status::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--ink-faint);
}
.status-real::before, .status-operational::before, .status-inflight::before { background: #34d399; box-shadow: 0 0 8px #34d399; }
.status-real, .status-operational, .status-inflight { color: #6ee7b7; }
.status-proveninlab::before, .status-emerging::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.status-proveninlab, .status-emerging { color: #7fe9ff; }
.status-indevelopment::before, .status-planned::before, .status-early::before { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.status-indevelopment, .status-planned, .status-early { color: #f6d77a; }
.status-speculative::before { background: var(--red); box-shadow: 0 0 8px var(--red); }
.status-speculative { color: #ff9aa5; }

/* ============================================================
   OPTIMAL DESIGNS — optimized recommendations + SVG charts
   ============================================================ */
.opt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .opt-cards { grid-template-columns: 1fr; } }
.opt-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px;
  background: linear-gradient(180deg, var(--panel), rgba(10,12,20,0.45)); display: flex; flex-direction: column; }
.opt-head { margin-bottom: 14px; }
.opt-cn { font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--cyan); }
.opt-head h3 { font-size: 19px; font-weight: 600; margin-top: 4px; }
.opt-obj { font-size: 13px; color: var(--ink-dim); margin-bottom: 16px; }
.opt-obj b { color: var(--ink); font-weight: 600; }
.opt-result { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.opt-r { background: rgba(63,227,255,0.05); border: 1px solid rgba(63,227,255,0.16); border-radius: 9px; padding: 10px 12px; }
.or-val { display: block; font-family: var(--mono); font-weight: 600; font-size: 18px; color: var(--cyan); letter-spacing: -0.01em; }
.or-lbl { display: block; font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; }
.opt-chart-wrap { margin: 4px 0 16px; }
.opt-chart { width: 100%; height: auto; display: block; }
.opt-chart .ax { stroke: var(--line-2); stroke-width: 1; }
.opt-chart .axlbl { fill: var(--ink-faint); font-family: var(--mono); font-size: 9px; }
.opt-chart .tick { fill: var(--ink-faint); font-family: var(--mono); font-size: 8.5px; }
.opt-chart .opt-line { fill: none; stroke: var(--ink-dim); stroke-width: 1.6; }
.opt-chart .opt-mark { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; }
.opt-chart .opt-mark-alt { stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 3 3; }
.opt-chart .opt-dot { fill: var(--gold); }
.opt-chart .opt-dot-alt { fill: var(--cyan); }
.opt-chart .marklbl { fill: var(--gold); font-family: var(--mono); font-size: 9px; }
.opt-chart .marklbl-alt { fill: var(--cyan); font-family: var(--mono); font-size: 9px; }
.opt-rec { font-size: 13px; color: var(--ink-dim); line-height: 1.6; margin-top: auto;
  border-left: 2px solid var(--cyan); padding-left: 12px; }
.opt-rec b { color: var(--cyan); font-weight: 600; }

/* ---------- Optimal: cross-cutting synthesis ---------- */
.opt-synthesis { margin-bottom: 26px; border: 1px solid rgba(63,227,255,0.22);
  border-radius: 16px; padding: 22px 24px; background: rgba(63,227,255,0.04); }
.syn-head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px; }
.syn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
@media (max-width: 760px) { .syn-grid { grid-template-columns: 1fr; } }
.syn-item { display: flex; gap: 12px; }
.syn-n { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--cyan); opacity: 0.6; padding-top: 2px; }
.syn-item b { font-size: 15px; font-weight: 600; color: var(--ink); }
.syn-item p { font-size: 13px; color: var(--ink-dim); margin-top: 3px; line-height: 1.55; }
.syn-item b { color: var(--ink); }
.syn-item p b { color: var(--cyan); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
.faq-item { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
  background: linear-gradient(180deg, var(--panel), rgba(10,12,20,0.4)); }
.faq-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.faq-item p { font-size: 14px; color: var(--ink-dim); line-height: 1.6; }
.faq-item:nth-child(odd):last-child { grid-column: 1 / -1; }

/* ---------- Accessibility: skip link + keyboard focus ---------- */
.skip-link { position: fixed; left: 8px; top: -52px; z-index: 100; background: var(--red);
  color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
  transition: top 0.2s var(--ease); }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px;
}
.hero:focus, .hero:focus-visible { outline: none; }

/* ---------- Methodology & sources ---------- */
.sources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .sources { grid-template-columns: 1fr; } }
.src { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: rgba(255,255,255,0.02); }
.src b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 5px; }
.src p { font-size: 13px; color: var(--ink-dim); line-height: 1.55; }
.src em { color: var(--ink); font-style: italic; }

/* Optimal → reality cross-link */
.opt-counter { margin-top: 22px; padding: 16px 20px; border: 1px solid rgba(244,201,93,0.3);
  border-radius: 12px; background: rgba(244,201,93,0.05); font-size: 14px; color: var(--ink-dim); line-height: 1.6; }
.opt-counter em { color: var(--gold); font-style: italic; }
.opt-counter a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.opt-counter a:hover { text-decoration: underline; }

/* Calculator jump-nav */
.calc-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 26px; }
.cn-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-faint); margin-right: 4px; }
.calc-nav a { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--ink-dim);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; transition: all 0.2s; }
.calc-nav a:hover { color: var(--cyan); border-color: var(--cyan); }
.calc { scroll-margin-top: 90px; }

/* ============================================================
   PRINT / PDF — render the strategy as a readable document
   ============================================================ */
@media print {
  #starfield, .scan-overlay, .nav, .nav-toggle, .scroll-hint, .hero-grid,
  .skip-link, .calc-nav, .hero-cta { display: none !important; }
  html, body { background: #fff !important; }
  * { color: #111 !important; box-shadow: none !important; text-shadow: none !important;
      background-image: none !important; -webkit-print-color-adjust: exact; }
  .section, .hero, .section.alt > * { max-width: 100% !important; padding: 16px 0 !important; margin: 0 !important; }
  .section { border-bottom: 1px solid #ddd; }
  .section.alt { background: none !important; }
  .hero { min-height: auto !important; padding-top: 0 !important; }
  h1, h2, h3, h4 { color: #000 !important; }
  .grad, .strike { -webkit-text-fill-color: #111 !important; color: #111 !important; }
  .strike::after { display: none !important; }
  a { color: #111 !important; text-decoration: underline; }
  .card, .opt-card, .calc, .dim, .scard, .faq-item, .src, .constraint,
  .scenario, .opt-synthesis, .opt-counter, .calc-out, .opt-r {
    border: 1px solid #ccc !important; background: #fff !important; page-break-inside: avoid; }
  .mandates, .opt-cards, .calcs, .faq, .sources, .dimensions { display: block !important; }
  .card, .opt-card, .calc, .faq-item, .src, .dim { margin-bottom: 10px; }
  details .dim-body { display: block !important; }
  .calc-eq { color: #333 !important; background: #f4f4f4 !important; border-color: #ccc !important; }
}

/* Calculator share button */
.calc-head { position: relative; }
.calc-share { position: absolute; top: 0; right: 0; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.04em; color: var(--ink-dim); background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: all 0.2s; }
.calc-share:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- Strategic advice ---------- */
.advice { display: flex; flex-direction: column; gap: 36px; }
.tier-h { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.advice-item { display: flex; gap: 18px; padding: 14px 0; }
.advice-item + .advice-item { border-top: 1px solid var(--line); }
.ai-n { font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--red); opacity: 0.7; padding-top: 2px; min-width: 28px; }
.advice-item b { font-size: 17px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.advice-item p { font-size: 14.5px; color: var(--ink-dim); line-height: 1.6; max-width: 70ch; }
@media (max-width: 560px) { .advice-item { gap: 12px; } }

/* Strategic-advice apex verdict */
.advice-verdict { border: 1px solid rgba(232,35,58,0.35); border-left: 3px solid var(--red);
  border-radius: 14px; padding: 22px 26px; margin-bottom: 38px;
  background: linear-gradient(110deg, rgba(232,35,58,0.07), transparent 70%); }
.av-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--red); display: block; margin-bottom: 10px; }
.advice-verdict p { font-size: clamp(16px, 2.2vw, 20px); line-height: 1.55; color: var(--ink); }
.advice-verdict em { font-style: italic; color: var(--gold); }
.advice-item em { color: var(--gold); font-style: italic; }

/* Strategic-advice counter-case (steelman) */
.advice-counter { margin-top: 36px; border: 1px solid rgba(63,227,255,0.3); border-left: 3px solid var(--cyan);
  border-radius: 14px; padding: 22px 26px; background: linear-gradient(110deg, rgba(63,227,255,0.06), transparent 70%); }
.ac-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--cyan); display: block; margin-bottom: 10px; }
.advice-counter p { font-size: clamp(14.5px, 1.9vw, 17px); line-height: 1.6; color: var(--ink-dim); }
.advice-item a { color: var(--cyan); } .advice-item a:hover { text-decoration: underline; }

/* ---------- PRC Playbook scaffolding ---------- */
.play-objective { border: 1px solid var(--line-2); border-radius: 16px; padding: 24px 26px; margin-bottom: 30px;
  background: linear-gradient(110deg, rgba(244,201,93,0.06), transparent 70%); }
.po-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--gold); display: block; margin-bottom: 10px; }
.play-objective p { font-size: clamp(15px,2vw,18px); line-height: 1.6; color: var(--ink); }
.play-objective em { color: var(--gold); font-style: italic; }
.play-markers { margin-top: 36px; border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px; background: var(--panel); }
.play-markers ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.play-markers li { font-size: 14px; color: var(--ink-dim); padding-left: 18px; position: relative; }
.play-markers li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }
.play-markers li b { color: var(--ink); font-weight: 600; }
.po-warn { font-size: 13.5px; color: #ff9aa5; border-left: 2px solid var(--red); padding-left: 12px; margin-top: 4px; }

/* Decision triggers (pivot conditions) — red accent vs cyan markers */
.play-triggers { border-left: 3px solid var(--red); }
.play-triggers .po-label { color: var(--red); }
.play-triggers li::before { color: var(--red); }

/* Playbook provenance stamp */
.play-stamp { margin-top: 30px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); line-height: 1.6; }
