/* ============================================================
   Planetary Science Fiction — Shared Design System
   Color palette: Deep Space Dark + Stellar Gold + Nebula Cyan
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600&family=Share+Tech+Mono&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
  --bg-void:      #030710;
  --bg-deep:      #050d1a;
  --bg-card:      #0a1628;
  --bg-card-alt:  #0d1e38;
  --bg-glass:     rgba(10, 22, 40, 0.75);

  --gold:         #f0c843;
  --gold-dim:     #c9a52e;
  --gold-glow:    rgba(240, 200, 67, 0.25);

  --cyan:         #00e5ff;
  --cyan-dim:     #00b8cc;
  --cyan-glow:    rgba(0, 229, 255, 0.2);

  --blue:         #4a9eff;
  --blue-dim:     #2d7fd4;
  --blue-glow:    rgba(74, 158, 255, 0.2);

  --text:         #e8eaf6;
  --text-muted:   #8892b0;
  --text-dim:     #4a5568;

  --border:       rgba(74, 158, 255, 0.18);
  --border-gold:  rgba(240, 200, 67, 0.35);

  --nav-h:        72px;

  --font-display: 'Orbitron', 'Courier New', monospace;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'Share Tech Mono', 'Courier New', monospace;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-void);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a   { color: var(--cyan); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--gold); }

/* ── Starfield Canvas Background ─────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Global Layout Wrapper ────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  background: rgba(3, 7, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.2;
}
.nav-logo span { display: block; font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.3em; font-weight: 400; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  transition: 0.3s;
}

/* ── Section Base ─────────────────────────────────────────── */
section { position: relative; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ── Grid Overlay Texture ─────────────────────────────────── */
.grid-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,158,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Hero Sections ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(74,158,255,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(240,200,67,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 6rem 0 5rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--cyan);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title .highlight {
  color: var(--gold);
  display: block;
}
.hero-title .dim { color: var(--text-muted); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #030710;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn-secondary:hover {
  background: var(--cyan-glow);
  box-shadow: 0 0 24px var(--cyan-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(74,158,255,0.5);
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
  margin-bottom: 3.5rem;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '//';
  opacity: 0.5;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-title span { color: var(--gold); }
.section-lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: rgba(74,158,255,0.4);
  box-shadow: 0 8px 40px rgba(74,158,255,0.1);
  transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }

.card-gold::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card-gold:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 40px var(--gold-glow);
}

/* ── Book Cards ───────────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 40px var(--gold-glow);
  transform: translateY(-3px);
}

.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-card-alt);
  display: block;
}
.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--bg-card-alt) 0%, #0f2a4a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}
.book-cover-placeholder .book-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(240,200,67,0.15);
  line-height: 1;
}
.book-cover-placeholder .book-icon {
  font-size: 2.5rem;
  opacity: 0.4;
}

.book-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.book-series-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.book-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.book-tagline {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 1rem;
}
.book-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}
.book-footer { margin-top: auto; }

/* ── Data Display Elements ────────────────────────────────── */
.data-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.data-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  min-width: 160px;
  flex-shrink: 0;
}
.data-value {
  font-size: 0.9rem;
  color: var(--text);
}
.data-value.highlight { color: var(--gold); font-weight: 600; }

/* ── Stat Blocks ──────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.stat-block {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Feature Grid ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: rgba(74,158,255,0.35);
  box-shadow: 0 4px 30px var(--blue-glow);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  display: block;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Quote/Pull Highlight ─────────────────────────────────── */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.4;
  border-left: 3px solid var(--gold);
  padding: 1rem 0 1rem 2rem;
  letter-spacing: 0.02em;
}

/* ── Horizontal Rule / Divider ────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Section Padding ──────────────────────────────────────── */
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

/* ── Background Variants ──────────────────────────────────── */
.bg-deep   { background: var(--bg-deep); }
.bg-card   { background: var(--bg-card); }

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 100%);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(240,200,67,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
}
.cta-band h2 span { color: var(--gold); }
.cta-band p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ── Form Elements ────────────────────────────────────────── */
.form-group { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

.form-input {
  flex: 1;
  min-width: 240px;
  max-width: 380px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.875rem 1.25rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan-glow); }

/* ── Terminal/Data Block ──────────────────────────────────── */
.terminal {
  background: #02060e;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  line-height: 1.8;
}
.terminal .prompt { color: var(--text-dim); }
.terminal .value  { color: var(--text); }
.terminal .gold   { color: var(--gold); }
.terminal .dim    { color: var(--text-dim); }

/* ── Recommended Books Grid ───────────────────────────────── */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.rec-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  transition: all 0.25s;
}
.rec-card:hover {
  border-color: rgba(74,158,255,0.35);
  transform: translateY(-2px);
}
.rec-card a { color: var(--text); }
.rec-card a:hover { color: var(--gold); }
.rec-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-family: var(--font-mono);
}

/* ── Timeline / Series Order ──────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--cyan), var(--gold));
}
.timeline-item {
  display: flex;
  gap: 2rem;
  padding: 2rem 0 2rem 3.5rem;
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: 12px;
  top: 2.5rem;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--cyan);
  transition: all 0.3s;
}
.timeline-item:hover .timeline-dot {
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan-glow);
}
.timeline-cover {
  width: 110px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid var(--border);
  object-fit: cover;
  align-self: flex-start;
  margin-top: 0.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-item:hover .timeline-cover {
  border-color: var(--border-gold);
  box-shadow: 0 4px 20px var(--gold-glow);
}

@media (max-width: 600px) {
  .timeline-cover { width: 80px; }
}

.timeline-num {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.timeline-tagline { font-size: 0.875rem; color: var(--gold); font-style: italic; margin-bottom: 0.75rem; }
.timeline-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ── Omnibus Banner ───────────────────────────────────────── */
.omnibus-banner {
  background: linear-gradient(135deg, #0d1a30 0%, #1a2a0d 100%);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.omnibus-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.omnibus-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.omnibus-desc { font-size: 0.9rem; color: var(--text-muted); max-width: 480px; }
.omnibus-actions { margin-left: auto; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.footer-contact a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.footer-contact a:hover { color: var(--gold); }

/* ── Utility Classes ──────────────────────────────────────── */
.text-gold  { color: var(--gold); }
.text-cyan  { color: var(--cyan); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }

/* ── Page Header (non-hero pages) ────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(74,158,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; }

/* ── Scanline accent lines ────────────────────────────────── */
.scan-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.scan-line::before,
.scan-line::after {
  content: '';
  flex: 1;
  height: 1px;
}
.scan-line::before { background: linear-gradient(to right, transparent, var(--border)); }
.scan-line::after  { background: linear-gradient(to left, transparent, var(--border)); }
.scan-line-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Hero Two-Column Layout ───────────────────────────────── */
.hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-left { min-width: 0; }
.hero-right { min-width: 0; }

.hero-video-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow:
    0 0 0 1px rgba(240,200,67,0.1),
    0 20px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(74,158,255,0.1);
}
.hero-video-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--cyan));
  z-index: 2;
}
.hero-video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.hero-video-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
  padding: 0.6rem 0.25rem 0;
}

@media (max-width: 960px) {
  .hero-two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-right { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ── Responsive Grid Utilities ────────────────────────────── */
/* Used instead of inline style="display:grid;grid-template-columns:1fr 1fr" */
.split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.split-two-lg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Tablet (max 960px) ───────────────────────────────────── */
@media (max-width: 960px) {
  .hero-two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-right { order: -1; max-width: 560px; margin: 0 auto; width: 100%; }

  .split-two-lg { gap: 2.5rem; }
}

/* ── Mobile (max 768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(3,7,16,0.98);
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
    z-index: 99;
  }
  .nav-toggle { display: flex; }

  /* Section spacing */
  .section-pad    { padding: 3.5rem 0; }
  .section-pad-sm { padding: 2rem 0; }
  .cta-band       { padding: 3.5rem 0; }

  /* Hero */
  .hero        { min-height: auto; }
  .hero-inner  { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-title  { font-size: clamp(1.9rem, 8vw, 3rem); }
  .hero-cta    { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; text-align: center; }

  /* Two-column grids → single column */
  .split-two,
  .split-two-lg { grid-template-columns: 1fr; gap: 2rem; }

  /* Books */
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  /* Feature grid */
  .feature-grid { grid-template-columns: 1fr; }

  /* Timeline */
  .timeline::before { left: 10px; }
  .timeline-item    { padding-left: 2.25rem; gap: 1rem; flex-wrap: wrap; }
  .timeline-dot     { left: 2px; }
  .timeline-cover   { width: 80px; }

  /* Stats — 2 × 2 on mobile */
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-block { padding: 1.5rem 1rem; }
  .stat-num   { font-size: 2rem; }

  /* Terminal — horizontal scroll instead of overflow */
  .terminal { overflow-x: auto; font-size: 0.78rem; padding: 1.25rem; }

  /* Omnibus */
  .omnibus-banner  { flex-direction: column; gap: 1.5rem; }
  .omnibus-actions { margin-left: 0; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Recommended reading — 2-col on mobile */
  .rec-grid { grid-template-columns: 1fr 1fr; }

  /* Section headers */
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-lead  { font-size: 0.95rem; }

  /* Pull quote */
  .pull-quote { font-size: 1rem; padding-left: 1rem; }

  /* Page header */
  .page-header { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 2.5rem; }

  /* CTA band buttons */
  .cta-band .btn { display: inline-flex; }
}

/* ── Small phones (max 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  :root { --nav-h: 64px; }

  .container { padding: 0 1.25rem; }

  /* Books — single column on very small screens */
  .books-grid { grid-template-columns: 1fr; }

  /* Rec grid — single column */
  .rec-grid { grid-template-columns: 1fr; }

  /* Stats — keep 2-col but smaller */
  .stat-num { font-size: 1.75rem; }

  /* Timeline — hide cover to save space */
  .timeline-cover { display: none; }
  .timeline-item  { padding-left: 2rem; }

  /* Omnibus image */
  .omnibus-banner img { width: 100px; }

  /* Form group stacked */
  .form-group { flex-direction: column; align-items: stretch; }
  .form-input { max-width: 100%; }

  /* Hero eyebrow */
  .hero-eyebrow { font-size: 0.65rem; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-sub     { font-size: 0.9rem; }

  /* Buttons full-width in some contexts */
  .omnibus-actions .btn { width: 100%; justify-content: center; }

  /* Theme bars — already single col via split-two, but gap */
  .theme-bar-body { padding: 1rem; }
}
