/* ==========================================================================
   Festival of Spaceflight — landing page styles
   ========================================================================== */

:root {
  --navy-900: #050d1f;
  --navy-800: #0b1e3f;
  --navy-700: #102a55;
  --navy-600: #1a3a6f;
  --navy-500: #24528f;
  --gold-500: #d4a437;
  --gold-400: #e8bf5c;
  --gold-300: #f4d98a;
  --cream: #f6efdc;
  --white: #ffffff;
  --text: #e8eef8;
  --text-muted: #aab8cf;
  --text-dim: #7d8cab;
  --border: rgba(212, 164, 55, 0.18);
  --border-strong: rgba(212, 164, 55, 0.4);
  --card-bg: rgba(16, 32, 64, 0.55);
  --card-bg-strong: rgba(20, 40, 80, 0.85);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-pad-y: clamp(4rem, 9vw, 7rem);
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(36, 82, 143, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(26, 58, 111, 0.4) 0%, transparent 50%),
    linear-gradient(180deg, #04091a 0%, #050d1f 30%, #07142e 70%, #050d1f 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-400); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-300); }
a:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--gold-500); color: var(--navy-900); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold-500);
  color: var(--navy-900);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ==========================================================================
   Starfield (decorative)
   ========================================================================== */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.9) 0, transparent 100%),
    radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,0.7) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 47% 8%, rgba(255,255,255,0.95) 0, transparent 100%),
    radial-gradient(1px 1px at 63% 67%, rgba(244,217,138,0.8) 0, transparent 100%),
    radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,0.85) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 80%, rgba(255,255,255,0.9) 0, transparent 100%),
    radial-gradient(1px 1px at 35% 88%, rgba(232,191,92,0.7) 0, transparent 100%),
    radial-gradient(1px 1px at 7% 72%, rgba(255,255,255,0.6) 0, transparent 100%),
    radial-gradient(1px 1px at 55% 33%, rgba(255,255,255,0.5) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 55%, rgba(255,255,255,0.85) 0, transparent 100%);
  opacity: 0.85;
  animation: twinkle 6s ease-in-out infinite alternate;
}
.starfield::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 19% 85%, rgba(255,255,255,0.6) 0, transparent 100%),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 41% 60%, rgba(244,217,138,0.7) 0, transparent 100%),
    radial-gradient(1px 1px at 83% 41%, rgba(255,255,255,0.55) 0, transparent 100%);
  opacity: 0.5;
  animation: twinkle 9s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
  from { opacity: 0.4; }
  to { opacity: 0.95; }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(5, 13, 31, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(5, 13, 31, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-family: var(--font-display);
}
.brand:hover { color: var(--white); }
.brand-mark { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 480px) {
  .brand-text { display: none; }
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.primary-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.primary-nav a:hover { color: var(--white); }

.nav-cta {
  background: var(--gold-500);
  color: var(--navy-900) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-400); }

.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--gold-400);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(5, 13, 31, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.is-open { max-height: 480px; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .primary-nav li { border-bottom: 1px solid rgba(212, 164, 55, 0.08); }
  .primary-nav li:last-child { border-bottom: 0; padding-top: 0.5rem; }
  .primary-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1rem;
  }
  .nav-cta { display: inline-block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: clamp(140px, 24vw, 220px);
  height: auto;
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 1rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #d4a437 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-location {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--white);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.hero-dates {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  color: var(--gold-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.hero-tagline {
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/* Countdown */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 540px;
}

.countdown-unit {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(0.75rem, 2vw, 1.25rem) 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  backdrop-filter: blur(8px);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.01em;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.countdown.is-launched {
  grid-template-columns: 1fr;
}
.countdown.is-launched .countdown-unit { display: none; }
.countdown.is-launched::before {
  content: "🚀  We have liftoff.";
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--gold-300);
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}

/* Hero CTAs */

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 8px 24px rgba(212, 164, 55, 0.25);
}
.btn-primary:hover {
  background: var(--gold-400);
  color: var(--navy-900);
  box-shadow: 0 10px 28px rgba(212, 164, 55, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(212, 164, 55, 0.08);
  color: var(--gold-300);
  border-color: var(--gold-400);
}

.btn-block { display: block; width: 100%; }
.btn-large { padding: 1.05rem 2rem; font-size: 1rem; }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.section {
  position: relative;
  z-index: 1;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section + .section { border-top: 1px solid var(--border); }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 0.85rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1.5rem;
  max-width: 32ch;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0 0 2rem;
}
.lede.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   About
   ========================================================================== */

.mission {
  margin: 2.5rem 0;
  padding: 1.75rem 1.75rem 1.75rem 2rem;
  border-left: 3px solid var(--gold-500);
  background: var(--card-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
}
.mission p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--white);
  margin: 0 0 0.75rem;
  line-height: 1.5;
  font-weight: 500;
}
.mission footer {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.key-facts {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.key-facts li {
  background: rgba(11, 30, 63, 0.65);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.key-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.key-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 500;
}

/* ==========================================================================
   Weekend / day cards
   ========================================================================== */

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.day-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}
.day-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.day-card-feature {
  background: linear-gradient(165deg, rgba(36, 82, 143, 0.4) 0%, rgba(11, 30, 63, 0.7) 100%);
  border-color: var(--border-strong);
}

.day-card header { border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.day-date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 0.4rem;
  font-weight: 500;
}
.day-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
}

.day-lede {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.day-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.day-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: 0.95rem;
}
.day-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 8px rgba(212, 164, 55, 0.6);
}

/* ==========================================================================
   Experience grid
   ========================================================================== */

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.experience-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.experience-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--card-bg-strong);
}

.experience-card h3 {
  font-family: var(--font-display);
  color: var(--gold-300);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.experience-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Speakers section
   ========================================================================== */

.section-speakers .container { text-align: center; }
.section-speakers .section-title { margin-left: auto; margin-right: auto; }

.placeholder-note {
  display: inline-block;
  margin: 1.5rem auto 0;
  padding: 1rem 1.75rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  background: var(--card-bg);
}
.placeholder-note strong { color: var(--gold-300); }

/* ==========================================================================
   Donate section
   ========================================================================== */

.section-donate {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 164, 55, 0.04) 50%, transparent 100%);
}
.section-donate .container { text-align: center; }
.section-donate .section-title { margin-left: auto; margin-right: auto; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.support-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.support-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.support-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-300);
  margin: 0;
  font-weight: 600;
}

.support-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}
.support-card p a {
  color: var(--gold-300);
  text-decoration: underline;
}

.support-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}
.support-tiers { gap: 0.6rem; }

.support-card-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   Heritage Partners section
   - Default: simple responsive grid (works on every viewport)
   - Desktop (>= 900px): rendered as a true circle with 5 equidistant nodes
   ========================================================================== */

.section-partners .container { text-align: center; }
.section-partners .section-title { margin-left: auto; margin-right: auto; }

.partner-circle {
  margin: 3rem auto 0;
  width: 100%;
  max-width: 560px;
}

.partner-circle-center {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-300);
  margin: 0 0 1.75rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
}

.partner-orbit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.partner-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.partner-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--card-bg-strong);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.partner-node:hover .partner-logo {
  transform: scale(1.05);
  border-color: var(--gold-400);
  box-shadow: 0 8px 24px rgba(212, 164, 55, 0.25);
}
.partner-logo span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.06em;
}

.partner-name {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 120px;
}

/* Desktop circle layout — only kicks in when there's enough room to draw it. */
@media (min-width: 900px) {
  .partner-circle {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin-top: 3.5rem;
  }

  .partner-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    max-width: 9rem;
    font-size: 1.15rem;
  }

  .partner-orbit {
    position: absolute;
    inset: 0;
    display: block;
    border: 1px dashed var(--border-strong);
    border-radius: 50%;
    padding: 0;
  }

  .partner-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    margin-left: -60px;
    margin-top: -60px;
  }

  /* 5 nodes spaced 72° apart (starting at 12 o'clock).
     Offsets are percentages of the node's own size — orbit radius ≈ 220px
     on a 520px-wide circle (520/2 - 60px node half-size for inset). */
  .partner-node:nth-child(1) { transform: translate(0, -190%); }
  .partner-node:nth-child(2) { transform: translate(181%, -59%); }
  .partner-node:nth-child(3) { transform: translate(112%, 154%); }
  .partner-node:nth-child(4) { transform: translate(-112%, 154%); }
  .partner-node:nth-child(5) { transform: translate(-181%, -59%); }
}

/* ==========================================================================
   Get Involved
   ========================================================================== */

.involved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.involved-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.involved-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.involved-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-300);
  margin: 0;
  font-weight: 600;
}

.involved-card p {
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
  font-size: 0.95rem;
}

.involved-card .btn { align-self: flex-start; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 56rem;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  position: relative;
  font-size: 1.05rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-400);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item summary:focus-visible { outline: 2px solid var(--gold-400); outline-offset: -2px; }

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
}

/* ==========================================================================
   Final CTA (email signup)
   ========================================================================== */

.section-cta {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(212, 164, 55, 0.06));
  border-top: 1px solid var(--border);
}
.cta-inner { max-width: 42rem; margin-left: auto; margin-right: auto; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin: 0 0 1rem;
  font-weight: 700;
}
.cta-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 32rem;
  margin: 0 auto;
}

.signup-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: var(--card-bg-strong);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup-input::placeholder { color: var(--text-dim); }
.signup-input:focus-visible {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212, 164, 55, 0.2);
}

.signup-submit { flex: 0 0 auto; }

.signup-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Volunteer form (inside Get Involved)
   ========================================================================== */

.volunteer-block {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.volunteer-intro {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 44rem;
}

.volunteer-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin: 0.5rem 0 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.volunteer-lede {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.volunteer-form {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--white);
  background: rgba(5, 13, 31, 0.55);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-input:focus-visible {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212, 164, 55, 0.18);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem 1rem;
  margin-top: 0.5rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
}
.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-500);
  cursor: pointer;
}

.volunteer-form .btn { align-self: flex-start; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(4, 9, 26, 0.85);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 720px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    text-align: left;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
@media (min-width: 720px) { .footer-brand { justify-content: flex-start; } }

.footer-mark { border-radius: 50%; }
.footer-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 0.25rem;
  font-weight: 600;
}
.footer-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
@media (min-width: 720px) { .footer-links { justify-content: flex-end; } }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--gold-400); }

.footer-social {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.social-link:hover {
  color: var(--navy-900);
  background: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}
.social-link svg { display: block; }

.footer-partners {
  grid-column: 1 / -1;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.footer-partners-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.footer-partner-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}

.footer-partner-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 110px;
}

.footer-partner-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(11, 30, 63, 0.7);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.footer-partner-row li:hover .footer-partner-logo {
  border-color: var(--gold-400);
  background: rgba(20, 40, 80, 0.85);
}
.footer-partner-logo span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-300);
  letter-spacing: 0.05em;
}

.footer-partner-row p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.25;
  text-align: center;
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Scroll-driven rocket flight (Saturn V on the left edge)
   ========================================================================== */

.rocket-flight {
  display: none;
}

@media (min-width: 980px) {
  .rocket-flight {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 110px;
    z-index: 2;
    pointer-events: none;
    --progress: 0;
    --shake-x: 0px;
  }

  /* The smoke/heat trail left behind as the rocket climbs */
  .rocket-trail {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 4px;
    margin-left: -2px;
    height: calc(var(--progress) * 100%);
    background: linear-gradient(
      to top,
      transparent 0%,
      rgba(232, 191, 92, 0.0) 2%,
      rgba(232, 191, 92, 0.18) 25%,
      rgba(255, 255, 255, 0.25) 60%,
      rgba(255, 255, 255, 0.05) 95%,
      transparent 100%
    );
    filter: blur(2px);
    opacity: 0.85;
    transition: height 0.05s linear;
  }

  /* The rocket itself — moves from off-screen bottom to off-screen top.
     Box matches the Saturn V image aspect ratio (square) so the engine bell
     sits at the container's bottom edge and the plume connects flush. */
  .rocket-craft {
    position: absolute;
    left: 50%;
    width: 80px;
    height: 80px;
    margin-left: -40px;
    /* Start fully below the viewport, fly up with progress; small horizontal shake */
    bottom: calc(-160px + (100vh + 220px) * var(--progress));
    transform: translateX(var(--shake-x));
    transition: bottom 0.05s linear, transform 0.05s linear;
    will-change: bottom, transform;
  }

  .rocket-craft img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 14px rgba(212, 164, 55, 0.18));
  }

  /* Engine plume — anchored to the rocket's exhaust at the bottom of the craft box */
  .rocket-plume {
    position: absolute;
    top: calc(100% - 8px);
    left: 50%;
    width: 30px;
    height: 110px;
    margin-left: -15px;
    border-radius: 50% 50% 40% 40% / 25% 25% 75% 75%;
    background:
      radial-gradient(ellipse at 50% 0%,
        rgba(255, 255, 230, 0.95) 0%,
        rgba(255, 220, 130, 0.9) 18%,
        rgba(252, 168, 50, 0.78) 38%,
        rgba(232, 90, 30, 0.55) 60%,
        rgba(180, 40, 20, 0.22) 82%,
        transparent 100%);
    transform-origin: top center;
    filter: blur(0.6px);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
  }

  /* Plume burns once the rocket has started climbing */
  .rocket-flight[data-launched="true"] .rocket-plume {
    opacity: 1;
    animation: plume-flicker 0.11s ease-in-out infinite alternate;
  }

  @keyframes plume-flicker {
    0%   { transform: scaleY(0.92) scaleX(1.05); opacity: 0.85; }
    100% { transform: scaleY(1.12) scaleX(0.9);  opacity: 1; }
  }
}

/* Reduced motion — show the rocket statically, no plume animation */
@media (prefers-reduced-motion: reduce) {
  .rocket-craft,
  .rocket-trail {
    transition: none !important;
  }
  .rocket-plume {
    animation: none !important;
    opacity: 0.8 !important;
  }
}
