/* ===== Design tokens ===== */
:root {
  --dark-bg: #0a1410;
  --dark-bg-2: #0e1c16;
  --dark-panel: #111f19;
  --neon: #7CFF6B;
  --neon-dim: #4fbf43;
  --orange: #c9683b;
  --orange-2: #b85a30;
  --cream: #f3e3ce;
  --cream-2: #fbf3e7;
  --ink: #1c140d;
  --text-dark-primary: #eef7ee;
  --text-dark-muted: #9fb8ab;
  --text-light-primary: #2a1c10;
  --text-light-muted: #6b503b;

  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;

  --shadow-neon: 0 0 24px rgba(124, 255, 107, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-dark-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.01em; }
p { margin: 0; }
button { font-family: inherit; }

@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; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--neon);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-neon {
  background: var(--neon);
  color: var(--ink);
  box-shadow: var(--shadow-neon);
}
.btn-neon:hover { box-shadow: 0 0 34px rgba(124, 255, 107, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--text-dark-primary);
  border-color: rgba(238, 247, 238, 0.35);
}
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-dark {
  background: var(--ink);
  color: var(--cream);
}
.btn-dark:hover { background: #000; }
.btn-small { padding: 10px 18px; font-size: 0.78rem; }
.btn-full { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 20, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(124, 255, 107, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text-dark-primary);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--neon);
  letter-spacing: 0.25em;
}
.main-nav ul {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark-muted);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--neon); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(124,255,107,0.3);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--neon);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 60px;
  background: var(--dark-bg);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 900px 500px at 80% 10%, rgba(124,255,107,0.16), transparent 60%),
    linear-gradient(180deg, rgba(10,20,16,0.72) 0%, rgba(10,20,16,0.88) 55%, var(--dark-bg-2) 100%);
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(124,255,107,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,255,107,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 18px;
  font-weight: 600;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
  animation: pulse 2.4s infinite ease-in-out;
}
.dot-dark { background: var(--orange); box-shadow: 0 0 10px rgba(201,104,59,0.6); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-dark-muted);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 48px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 20px rgba(124,255,107,0.4);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-dark-muted);
  max-width: 20ch;
}

.hero-art { position: relative; }
.orbit-svg { width: 100%; height: auto; }
.orbit-ring { animation: spin 40s linear infinite; }
.orbit-ring-2 { animation: spin 60s linear infinite reverse; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.station { animation: orbitmove 12s ease-in-out infinite; }
@keyframes orbitmove {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-14px, 10px); }
}
.astronaut { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-3deg); }
}

.scroll-cue {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.scroll-cue span {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--neon), transparent);
  animation: scrolldown 1.8s infinite;
}
@keyframes scrolldown {
  0% { opacity: 0; transform: translateY(-6px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ===== Mission statement band ===== */
.mission-band {
  padding: 70px 0;
  background: var(--dark-panel);
  border-top: 1px solid rgba(124,255,107,0.1);
  border-bottom: 1px solid rgba(124,255,107,0.1);
}
.mission-band-inner { max-width: 820px; text-align: center; }
.mission-statement {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 500;
  text-transform: none;
  color: var(--text-dark-primary);
  line-height: 1.5;
}
.mission-attrib {
  display: block;
  margin-top: 22px;
  color: var(--neon);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== Section head shared ===== */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 16px;
}
.section-sub { color: var(--text-dark-muted); font-size: 1.02rem; }
.eyebrow-dark { color: var(--neon); }
.eyebrow-light { color: var(--orange-2); }
.section-head-light h2 { color: var(--text-light-primary); }
.section-sub-light { color: var(--text-light-muted); }

/* ===== Programs (dark) ===== */
.programs { padding: 100px 0; background: var(--dark-bg); }
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program-card {
  background: var(--dark-panel);
  border: 1px solid rgba(124,255,107,0.14);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,255,107,0.5);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.program-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dark-bg);
}
.program-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.program-card:hover .program-card-media img { transform: scale(1.06); }
.program-card-body { padding: 24px 28px 28px; }
.program-icon { margin-bottom: 18px; }
.program-icon svg { width: 40px; height: 40px; }
.program-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text-dark-primary);
}
.program-card p { color: var(--text-dark-muted); font-size: 0.96rem; }
.program-card-cta {
  padding: 32px;
  background: linear-gradient(160deg, rgba(124,255,107,0.14), rgba(124,255,107,0.03));
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.program-card-cta h3 { color: var(--neon); }

/* ===== Missions (warm) ===== */
.missions {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--orange) 0%, #d9955f 45%, var(--cream) 100%);
  color: var(--text-light-primary);
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.mission-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mission-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60,30,10,0.18); }
.mission-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.mission-status {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.status-active { background: #2c4a2f; color: #b6ffb0; }
.status-prep { background: #6b3a1a; color: #ffd9b0; }
.status-transit { background: #1a3a4a; color: #b0e6ff; }
.mission-code { font-family: var(--font-display); font-size: 0.78rem; color: var(--text-light-muted); }
.mission-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.mission-type { font-size: 0.82rem; font-weight: 600; color: var(--orange-2); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.mission-card p:not(.mission-type) { font-size: 0.92rem; color: var(--text-light-primary); opacity: 0.85; margin-bottom: 16px; }
.mission-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light-muted);
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 14px;
}

/* ===== Journey / timeline (dark) ===== */
.journey { padding: 100px 0; background: var(--dark-bg-2); }
.journey-photo {
  position: relative;
  margin: 0 0 56px;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(124,255,107,0.14);
}
.journey-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.journey-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,12,9,0.85) 0%, rgba(6,12,9,0.05) 55%);
}
.journey-photo figcaption {
  position: absolute;
  left: 24px;
  bottom: 18px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-primary);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,255,107,0.4), transparent);
  z-index: 0;
}
.timeline-step {
  position: relative;
  padding-top: 8px;
}
.timeline-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-bg);
  border: 1.5px solid var(--neon);
  color: var(--neon);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 16px rgba(124,255,107,0.3);
}
.timeline-step h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text-dark-primary); }
.timeline-step p { color: var(--text-dark-muted); font-size: 0.92rem; }

/* ===== Stats band ===== */
.stats-band {
  padding: 64px 0;
  background: var(--dark-panel);
  border-top: 1px solid rgba(124,255,107,0.1);
  border-bottom: 1px solid rgba(124,255,107,0.1);
}
.stats-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-block-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 20px rgba(124,255,107,0.35);
}
.stat-block-label {
  display: block;
  margin-top: 8px;
  color: var(--text-dark-muted);
  font-size: 0.88rem;
}

/* ===== Crew (warm) ===== */
.crew {
  padding: 100px 0;
  background: linear-gradient(200deg, var(--cream-2) 0%, var(--cream) 55%, #e9c9a4 100%);
  color: var(--text-light-primary);
}
.crew-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.crew-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.crew-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(60,30,10,0.16); }
.crew-avatar { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; border: 2px solid var(--orange); }
.crew-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.crew-role { font-size: 0.8rem; font-weight: 700; color: var(--orange-2); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.crew-card p:not(.crew-role) { font-size: 0.88rem; color: var(--text-light-muted); }

/* ===== CTA / Apply (warm, closing) ===== */
.cta-apply {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--orange) 0%, #a8532c 100%);
  color: var(--cream-2);
}
.cta-apply-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cta-copy .section-head-light h2 { color: var(--cream-2); }
.cta-apply .eyebrow-light { color: #ffd9b0; }
.cta-apply .section-sub-light { color: rgba(251,243,231,0.8); margin-bottom: 28px; }
.cta-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-points li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: rgba(251,243,231,0.92);
}
.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(124,255,107,0.6);
}

.apply-form {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--text-light-primary);
  box-shadow: 0 24px 60px rgba(40,15,0,0.28);
}
.form-title {
  font-size: 1.3rem;
  margin-bottom: 22px;
  color: var(--text-light-primary);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--text-light-primary); }
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #d8c3a8;
  background: #fff;
  color: var(--text-light-primary);
  transition: border-color 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--orange);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: #b3261e;
}
.field-error {
  font-size: 0.78rem;
  color: #b3261e;
  min-height: 1em;
}
.form-success {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #223d24;
  color: #c8ffc0;
  font-size: 0.9rem;
  border: 1px solid rgba(124,255,107,0.4);
}

/* ===== Footer ===== */
.site-footer { background: #06100b; padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(124,255,107,0.12);
}
.footer-brand p { color: var(--text-dark-muted); margin-top: 14px; font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-size: 0.82rem;
  color: var(--neon);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: var(--text-dark-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--neon); }
.footer-bottom {
  padding: 22px 0 26px;
  font-size: 0.78rem;
  color: #4d6259;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before { display: none; }
  .stats-band-inner { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .cta-apply-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 68px 0 0 0; background: var(--dark-bg); padding: 30px 24px; transform: translateX(100%); transition: transform 0.3s var(--ease); overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(124,255,107,0.08); }
  .nav-toggle { display: flex; }
  .header-actions .btn-small { display: none; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto 20px; }
  .hero-stats { gap: 32px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .program-grid, .mission-grid, .crew-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .stats-band-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 70px 0 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .apply-form { padding: 24px; }
}
