/* ============================================================
   CHERI — Landing Site
   black → gray → white scroll gradient, elegant lunar aesthetic
   ============================================================ */

:root {
  /* palette */
  --c-void:        #050507;
  --c-deep:        #0a0a0e;
  --c-iron:        #1b1b21;
  --c-graphite:    #3a3a42;
  --c-ash:         #6e6e75;
  --c-dust:        #b0b0b3;
  --c-bone:        #e6e5e2;
  --c-paper:       #f5f4f1;
  --c-snow:        #ffffff;

  --c-lunar:       #6bb6e5;   /* the patch blue */
  --c-lunar-deep:  #2d6b9c;
  --c-lunar-faint: rgba(107, 182, 229, 0.12);

  /* type */
  --f-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --maxw:      1240px;
  --pad-x:     clamp(1.5rem, 4vw, 4rem);
  --pad-y:     clamp(5rem, 10vw, 9rem);

  /* easing */
  --ease-out:  cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-snow);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;

  /* Black → gray only — never reaches white.
     Smooth lunar-regolith gradient anchored at the page tail. */
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(15, 18, 24, 0.85) 0%, transparent 22%),
    linear-gradient(
      180deg,
      #050507   0%,
      #08090d  14%,
      #0d0f16  26%,
      #15171e  38%,
      #1e2027  48%,
      #2a2c33  58%,
      #3a3c43  68%,
      #4e5057  77%,
      #5f6168  85%,
      #6e7077  93%,
      #797b82 100%
    );
  background-attachment: scroll;
}

/* ────────────────────────────────────────────
   Page-wide gradient backdrop
   The body itself is the canvas — sections are transparent.
   ──────────────────────────────────────────── */
/* Subtle film grain over the whole page */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.4) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  background-position: 0 0, 1px 1px;
}

/* ────────────────────────────────────────────
   Navigation
   ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 4vw, 3rem);
  font-family: var(--f-display);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-snow);
  transition: background-color 600ms var(--ease-out),
              backdrop-filter 600ms var(--ease-out),
              color 600ms var(--ease-out),
              border-color 600ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* page is now all dark — light nav theme retained as no-op for future use */
.nav.is-light {
  color: var(--c-snow);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.nav-mark {
  font-size: 0.85rem;
  color: var(--c-lunar);
  text-shadow: 0 0 12px rgba(107, 182, 229, 0.6);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.nav-name {
  font-weight: 600;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-links a {
  position: relative;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 300ms var(--ease-out);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 400ms var(--ease-out);
}

.nav-links a:hover::after {
  width: 100%;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
  transition: opacity 300ms var(--ease-out), gap 300ms var(--ease-out);
}

.nav-cta:hover {
  opacity: 1;
  gap: 0.9rem;
}

.nav-cta-arrow {
  transition: transform 300ms var(--ease-out);
}
.nav-cta:hover .nav-cta-arrow {
  transform: translateX(3px);
}

/* ────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem clamp(1.5rem, 4vw, 4rem) 4rem;
  overflow: hidden;
}

.moon-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#moon-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(0,0,0,0.55) 0%, transparent 45%),
    linear-gradient(180deg, transparent 65%, rgba(5,5,7,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-lunar);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(107, 182, 229, 0.3);
  border-radius: 999px;
  background: rgba(107, 182, 229, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-lunar);
  box-shadow: 0 0 8px rgba(107, 182, 229, 0.9);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(4.5rem, 14vw, 11rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.title-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: titleIn 1.1s var(--ease-out) forwards;
  background: linear-gradient(180deg, #ffffff 0%, #c4d5e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-letter:nth-child(1) { animation-delay: 0.30s; }
.title-letter:nth-child(2) { animation-delay: 0.40s; }
.title-letter:nth-child(3) { animation-delay: 0.50s; }
.title-letter:nth-child(4) { animation-delay: 0.60s; }
.title-letter:nth-child(5) { animation-delay: 0.70s; }

@keyframes titleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.01em;
  color: var(--c-dust);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 3rem;
}

.hero-lead em {
  font-style: normal;
  color: var(--c-snow);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 2rem;
  max-width: 640px;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.meta-value {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--c-snow);
}

.meta-value em {
  font-style: normal;
  font-weight: 300;
  color: var(--c-lunar);
  font-size: 0.85em;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.scroll-cue-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 1px;
  height: 30px;
  background: var(--c-lunar);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(80px); opacity: 0; }
}

/* ────────────────────────────────────────────
   Generic section
   ──────────────────────────────────────────── */
.section {
  position: relative;
  padding: var(--pad-y) 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-head {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 800px;
}

.section-label {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-lunar);
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(107, 182, 229, 0.35);
}

.section-title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-sub {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
}

/* ────────────────────────────────────────────
   Section: Mission
   ──────────────────────────────────────────── */
.section-mission {
  color: var(--c-bone);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
}

.mission-lead {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  max-width: 880px;
  letter-spacing: -0.01em;
}

.mission-lead em {
  font-style: normal;
  color: var(--c-lunar);
  font-weight: 400;
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 3rem;
}

.pillar {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.pillar-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--c-lunar);
  margin-bottom: 0.7rem;
}

.pillar h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  color: var(--c-snow);
  letter-spacing: -0.01em;
}

.pillar p {
  color: rgba(255,255,255,0.62);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ────────────────────────────────────────────
   Section: Rover
   ──────────────────────────────────────────── */
.section-rover {
  color: var(--c-bone);
}

.rover-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: stretch;
}

@media (max-width: 900px) {
  .rover-frame {
    grid-template-columns: 1fr;
  }
}

.rover-image-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a1a20 0%, #050507 70%);
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 16 / 10;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6),
              0 0 0 1px rgba(107,182,229,0.04);
}

.rover-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-out);
}

.rover-image-wrap:hover img {
  transform: scale(1.03);
}

.rover-image-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.8rem;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-lunar);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rover-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1.5rem;
  align-content: center;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.2rem 1rem 0;
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 1.2rem;
}

.spec-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.spec-value {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--c-snow);
  letter-spacing: -0.005em;
}

/* ────────────────────────────────────────────
   Section: Systems
   ──────────────────────────────────────────── */
.section-systems { color: var(--c-bone); }

.section-systems .section-title { color: var(--c-snow); }
.section-systems .system h3 { color: var(--c-void); }

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

.system {
  position: relative;
  padding: 2rem 1.8rem;
  border-radius: 12px;
  background: rgba(245, 244, 241, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5),
              inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 500ms var(--ease-out),
              border-color 500ms var(--ease-out),
              background 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
}

.system:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 182, 229, 0.4);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55),
              inset 0 1px 0 rgba(255,255,255,0.4);
}

.system-id {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--c-lunar-deep);
  margin-bottom: 1rem;
}

.system h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.005em;
}

.system p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(20, 20, 25, 0.7);
}

/* ────────────────────────────────────────────
   Section: Vision (video)
   ──────────────────────────────────────────── */
.section-vision { color: var(--c-bone); }

.section-vision .section-title { color: var(--c-snow); }

.vision-frame {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  /* Wrapper aspect matches the live content area inside the source video
     (content sits between y=356 and y=888 of a 1920×1080 frame).
     Aspect: 1920 / 532 ≈ 3.61. */
  aspect-ratio: 1920 / 532;
}

.video-wrap video {
  position: absolute;
  left: 0;
  /* The raw video is 16:9. Sliding it up by 67 % of the wrapper height
     puts native y = 356 (top of the real stereo footage) exactly at the
     wrapper's top edge — and overflow:hidden masks the grey letterbox
     on top + bottom. */
  top: -67%;
  width: 100%;
  height: auto;
  display: block;
}

.video-corner {
  position: absolute;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lunar);
  padding: 0.35rem 0.7rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(107,182,229,0.25);
  border-radius: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-corner.tl { top: 1rem; left: 1rem; }
.video-corner.tr { top: 1rem; right: 1rem; }
.video-corner.bl { bottom: 1rem; left: 1rem; }
.video-corner.br { bottom: 1rem; right: 1rem; }

.video-corner.tl::before {
  content: '● ';
  color: #ff4040;
  margin-right: 4px;
  animation: pulse 1.6s ease-in-out infinite;
}

.vision-caption {
  max-width: 680px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* ────────────────────────────────────────────
   Section: Patch
   ──────────────────────────────────────────── */
.section-patch { color: var(--c-bone); }

.section-patch .section-title { color: var(--c-snow); }

.patch-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 800px) {
  .patch-frame { grid-template-columns: 1fr; }
}

.patch-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.patch-image-wrap::before {
  content: '';
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,182,229,0.35) 0%, transparent 65%);
  filter: blur(50px);
  z-index: 0;
}

.patch-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  border-radius: 50%;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.65),
    0 0 60px -10px rgba(107, 182, 229, 0.35),
    0 0 0 1px rgba(255,255,255,0.06);
  animation: floatSpin 12s ease-in-out infinite;
}

@keyframes floatSpin {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

.patch-text .patch-headline {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  color: var(--c-snow);
}

.patch-text .patch-headline em {
  font-style: normal;
  font-weight: 500;
  color: var(--c-lunar);
}

.patch-text .patch-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 480px;
}

/* ────────────────────────────────────────────
   Section: Team
   ──────────────────────────────────────────── */
.section-team { color: var(--c-bone); }

.section-team .section-title { color: var(--c-snow); }
.section-team .section-sub { color: rgba(255,255,255,0.65); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 400ms var(--ease-out),
              background 400ms var(--ease-out),
              border-color 400ms var(--ease-out),
              box-shadow 400ms var(--ease-out);
}

.team-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(107,182,229,0.35);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 700ms var(--ease-out), filter 700ms var(--ease-out);
}

.team-card:hover .team-photo img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.04);
}

/* Legacy placeholder treatment (kept for any future cards without an <img>) */
.team-photo:not(:has(img)) {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px dashed rgba(255,255,255,0.18);
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 8px),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}

.team-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.3rem;
}

.team-role {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-lunar);
}

.team-name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--c-snow);
}

.team-note {
  margin-top: 2.5rem;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}

/* ────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────── */
.footer {
  position: relative;
  padding: 5rem 0 3rem;
  color: var(--c-bone);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark {
  font-size: 1.6rem;
  color: var(--c-lunar);
  text-shadow: 0 0 12px rgba(107, 182, 229, 0.55);
}

.footer-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--c-snow);
}

.footer-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.footer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-meta > div > span:last-child {
  color: var(--c-snow);
}

.footer-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-row a {
  color: var(--c-snow);
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
  width: max-content;
  transition: color 300ms var(--ease-out);
}

.footer-contact-row a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--c-lunar);
  transition: width 350ms var(--ease-out);
}

.footer-contact-row a:hover {
  color: var(--c-lunar);
}

.footer-contact-row a:hover::after {
  width: 100%;
}

.footer-contact address {
  font-style: normal;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}

.footer-dot {
  color: var(--c-lunar);
}

/* ────────────────────────────────────────────
   Reveal animations
   ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1100ms var(--ease-out),
    transform 1100ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children with `.reveal-stagger` */
.reveal-stagger > * { --reveal-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { --reveal-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { --reveal-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { --reveal-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { --reveal-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { --reveal-delay: 400ms; }

/* ────────────────────────────────────────────
   Small screens
   ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .hero { padding-top: 6rem; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .rover-specs { grid-template-columns: 1fr; }
  /* Corner labels on the stereo video are decorative on desktop —
     at phone width the cropped video is too narrow to host them
     without crowding, so hide all four. */
  .video-corner { display: none; }
}

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