/* ==========================================================================
   Artemis II Mission Hub — Design System
   Accent: ice-blue on deep space canvas
   Tone: NASA / ESA editorial · science-museum inspiring
   ========================================================================== */

:root {
  --void: #06080f;
  --space: #0b1020;
  --panel: #111829;
  --panel-elevated: #161f33;
  --line: rgba(168, 212, 232, 0.14);
  --line-strong: rgba(168, 212, 232, 0.28);
  --ice: #8ec8e0;
  --ice-bright: #b7dff0;
  --ice-dim: #4a7f96;
  --copper-soft: #c4a574; /* restrained secondary for labels only */
  --text: #e8eef6;
  --text-muted: #9aabbf;
  --text-dim: #6d7f94;
  --success-soft: #7eb89a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(78, 140, 180, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(40, 70, 110, 0.22), transparent 50%),
    var(--void);
  min-height: 100vh;
}

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

a {
  color: var(--ice-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease);
}
a:hover { color: #fff; }
a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ice);
  color: var(--void);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------------------- */
/* Header / Nav                                                               */
/* -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(6, 8, 15, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand-mark {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.brand-mark span { color: var(--ice); }
.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(142, 200, 224, 0.1);
}
.site-nav a[aria-current="page"] {
  color: var(--ice-bright);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: rgba(11, 16, 32, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem 1.25rem 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { padding: 0.85rem 1rem; border-radius: 10px; }
}

/* -------------------------------------------------------------------------- */
/* Layout                                                                     */
/* -------------------------------------------------------------------------- */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}
.section-tight { padding: 3rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ice);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }
.lede {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 42rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------------- */
/* Kid explainer + dual layer                                                 */
/* -------------------------------------------------------------------------- */

.kid-callout {
  background: linear-gradient(145deg, rgba(142, 200, 224, 0.12), rgba(142, 200, 224, 0.04));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.kid-callout::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(183, 223, 240, 0.18), transparent 70%);
  pointer-events: none;
}
.kid-callout h3 {
  color: var(--ice-bright);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.kid-callout p {
  color: var(--text);
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
}
.kid-callout .kid-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.dual-layer {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (max-width: 860px) {
  .dual-layer { grid-template-columns: 1fr; }
}

.deep-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.deep-panel h3 { margin-top: 0; }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--panel);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-media .credit {
  position: absolute;
  left: 0.85rem;
  bottom: 0.75rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.45);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.hero-copy {
  margin-top: 2rem;
  max-width: 46rem;
}
.mission-one-liner {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
  margin: 1rem 0 1.5rem;
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}
.stat-pill {
  background: rgba(142, 200, 224, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  color: var(--text);
}
.stat-pill strong {
  color: var(--ice-bright);
  font-weight: 650;
  margin-right: 0.35rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--ice-bright), var(--ice));
  color: #061018;
}
.btn-primary:hover { color: #061018; }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--ice); color: var(--ice-bright); }

.disclaimer-banner {
  margin: 1.5rem 0 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--ice-dim);
  background: rgba(142, 200, 224, 0.05);
  border-radius: 0 10px 10px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* Cards                                                                      */
/* -------------------------------------------------------------------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0e18;
}
.card-media.wide { aspect-ratio: 16 / 10; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 1.25rem 1.3rem 1.4rem; }
.card-role {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.card-agency {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: -0.35rem;
  margin-bottom: 0.75rem;
}
.card-credit {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

.teaser-card .card-body p { font-size: 0.95rem; }

/* -------------------------------------------------------------------------- */
/* Family / kids strip                                                        */
/* -------------------------------------------------------------------------- */

.family-strip {
  background:
    linear-gradient(180deg, rgba(22, 31, 51, 0.9), rgba(17, 24, 41, 0.95));
  border-block: 1px solid var(--line);
}
.activity-card {
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
}
.activity-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}
}
.activity-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* -------------------------------------------------------------------------- */
/* Timeline                                                                   */
/* -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line-strong);
}
.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 4px rgba(142, 200, 224, 0.15);
}
.timeline .t-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.timeline p { margin-bottom: 0; font-size: 0.98rem; }

/* -------------------------------------------------------------------------- */
/* Gallery                                                                    */
/* -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.gallery-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery-item figure { margin: 0; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #0a0e18;
}
.gallery-item figcaption {
  padding: 1rem 1.15rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.gallery-item .credit {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* -------------------------------------------------------------------------- */
/* Partners (quiet)                                                           */
/* -------------------------------------------------------------------------- */

.partners {
  border-top: 1px solid var(--line);
}
.partner-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) {
  .partner-slots { grid-template-columns: 1fr; }
}
.partner-slot {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  background: rgba(255,255,255,0.015);
  text-align: center;
  padding: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Specs / tables                                                             */
/* -------------------------------------------------------------------------- */

.spec-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.spec-list li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-list dt,
.spec-list .k {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.spec-list .v { color: var(--text); }
@media (max-width: 560px) {
  .spec-list li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
  background: rgba(0,0,0,0.25);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.85rem;
}
.site-footer p,
.site-footer li {
  font-size: 0.88rem;
  color: var(--text-dim);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ice-bright); }

.family-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.family-note a { white-space: nowrap; }

.ftc-disclosure {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 52rem;
}
.legal-line {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* -------------------------------------------------------------------------- */
/* Page hero (inner)                                                          */
/* -------------------------------------------------------------------------- */

.page-hero {
  padding: 3rem 0 1.5rem;
}
.page-hero .lede { margin-bottom: 0; }

/* Reveal motion — subtle, reduced-motion safe */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* AdSense-ready slots (commented in HTML; styled if uncommented later) */
.ad-slot {
  min-height: 90px;
  margin: 2rem 0;
  border: 1px dashed rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .crew-bio { grid-template-columns: 1fr !important; }
  .crew-bio .card-media { min-height: 260px !important; max-height: 360px; }
}
