/* The Rocket City Brief — dark "situation-room" system.
   Restrained navy + orange; avoids neon-glow-on-dark cliches. */
:root {
  --bg: #061128;
  --surface: #122a4a;
  --surface-alt: #0d2140;
  --line: #294a70;
  --text: #f6f3ec;
  --muted: #a9b6cd;
  --primary: #fb5a1c;
  --primary-strong: #d6480f;
  --accent: #f6b73c;
  --accent-weak: color-mix(in srgb, var(--primary) 16%, transparent);

  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  --shell: 1120px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.38);
  --heading: 'Space Grotesk', 'Segoe UI Semibold', 'Trebuchet MS', Arial, sans-serif;
  --body: 'IBM Plex Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--primary); }

.shell { width: min(var(--shell), 92vw); margin: 0 auto; }
.block { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.block > * + * { margin-top: var(--space-lg); }

/* Typography */
h1, h2, h3 { font-family: var(--heading); line-height: 1.14; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.35rem); letter-spacing: -0.02em; max-width: 18ch; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
.lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.24rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 64ch;
  margin: 0;
}
p { max-width: 70ch; }
.kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}
.meta {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

/* Header + nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.brand-lockup { display: grid; gap: 0.1rem; }
.site-brand { font-family: var(--heading); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--text); }
.site-brand:hover { color: var(--text); }
.site-subbrand { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; }
.site-nav { display: flex; gap: 0.1rem; flex-wrap: wrap; }
.nav-link {
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-weight: 500; font-size: 0.96rem;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); text-decoration: none; }
.nav-link.is-active { color: var(--text); background: var(--accent-weak); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 34%, transparent); }

main { display: block; }

/* Hero */
.hero { padding: clamp(2.4rem, 1.5rem + 3vw, 4rem) 0 clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 340px);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}
.hero-copy > * + * { margin-top: var(--space-md); }
.hero-copy h1 { margin-top: 0.2rem; }
.hero-cover-wrap { justify-self: end; }
.hero-cover {
  width: min(340px, 100%); height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  padding: 0.68rem 1.15rem;
  font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.button-primary:hover { background: var(--primary-strong); color: #fff; box-shadow: 0 8px 20px rgba(251, 90, 28, 0.34); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button-secondary:hover { color: var(--text); border-color: var(--accent); }

/* Trust chips */
.trust-points { list-style: none; padding: 0; margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.trust-points li {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.72rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

/* Section head + intros */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.section-head + * { margin-top: var(--space-lg); }
.section-link { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.page-intro > * + * { margin-top: var(--space-sm); }

/* Full-bleed band */
.band { padding: clamp(2.2rem, 1.5rem + 2vw, 3rem) 0; }
.band-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .section-head { margin-bottom: 1.3rem; }

/* Deliverable modules (numbered, left-rule) */
.module-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.module { padding-left: 1.1rem; border-left: 3px solid var(--primary); }
.module-index { font-family: var(--heading); font-size: 1.1rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; }
.module h3 { margin: 0.3rem 0 0.45rem; }
.module p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Cards */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.card > * + * { margin-top: 0.75rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.episode-card {
  display: grid; align-content: start; gap: 0.35rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.episode-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.episode-card > * + * { margin-top: 0; }
.episode-card h2, .episode-card h3 { margin: 0.12rem 0 0.1rem; }
.episode-card h2 a, .episode-card h3 a { color: var(--text); }
.episode-card h2 a:hover, .episode-card h3 a:hover { color: var(--accent); }
.episode-card p { color: var(--muted); }
.card-link { margin: 0.35rem 0 0; font-size: 0.92rem; font-weight: 600; }

/* Value cards (episode detail) */
.episode-detail > * + * { margin-top: var(--space-lg); }
.back-link { margin: 0; font-size: 0.92rem; font-weight: 600; }
.value-card .kicker { margin-bottom: 0.35rem; }
.value-card h2 { margin-bottom: 0.6rem; }

.numbered-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.numbered-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: baseline; }
.ol-index { font-family: var(--heading); font-weight: 700; color: var(--accent); font-size: 0.95rem; font-variant-numeric: tabular-nums; }

.stack { margin: 0; padding-left: 1.15rem; display: grid; gap: 0.6rem; }
.stack li { color: var(--muted); }
.stack li strong { color: var(--text); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.check-list li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.split h3 { margin-bottom: 0.6rem; color: var(--text); }
.detail { color: var(--muted); font-size: 0.94rem; }

/* Tables */
.snapshot-table { width: 100%; border-collapse: collapse; }
.snapshot-table th, .snapshot-table td { border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; text-align: left; vertical-align: top; }
.snapshot-table thead th { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; font-weight: 700; }
.snapshot-table td:first-child { color: var(--text); font-weight: 600; }

/* Follow links */
.follow-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.7rem; }
.follow-link {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.62rem 0.8rem;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text); font-weight: 500;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.follow-link:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.follow-link.is-disabled { opacity: 0.55; cursor: default; }
.platform-icon {
  width: 1.7rem; height: 1.7rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); background: #fff;
  border: 1px solid color-mix(in srgb, var(--line) 60%, #fff); flex: none;
}
.platform-logo { width: 0.95rem; height: 0.95rem; display: block; }
.todo-note { color: var(--accent); font-size: 0.92rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.1rem; align-items: start; }
.contact-form { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.contact-form label { font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 0.62rem 0.7rem;
  font: inherit;
  color: #14213a;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-weak); }
.contact-form textarea { resize: vertical; }
.contact-form button { margin-top: 0.3rem; justify-self: start; }
audio { width: 100%; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding: var(--space-xl) 0 var(--space-2xl); background: var(--surface-alt); margin-top: var(--space-3xl); }
.footer-shell p { margin: 0; }
.copyright { margin-top: 0.3rem; font-size: 0.88rem; }

@media (max-width: 820px) {
  .header-shell { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
  .site-nav { width: 100%; margin-left: -0.55rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-cover-wrap { justify-self: start; }
  .section-head { align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
