/* ==========================================================================
   THE SPACE GUYS - Luxury Cinematic Website
   Space-inspired, premium design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-space-black: #0b0f1a;
  --color-deep-navy: #111a2e;
  --color-navy-mid: #1a2542;
  --color-soft-white: #f4f7fb;
  --color-white-muted: #c5d0e0;
  --color-nasa-blue: #2e7cff;
  --color-nasa-blue-glow: rgba(46, 124, 255, 0.4);
  --color-silver: #8b9cb8;
  --color-silver-subtle: rgba(139, 156, 184, 0.6);
  /* Hollywood accents */
  --color-gold: #e8b923;
  --color-gold-glow: rgba(232, 185, 35, 0.35);
  --color-premiere-red: #c41e2a;
  
  /* Typography */
  --font-heading: 'Libre Baskerville', 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Inter', system-ui, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  
  /* Layout */
  --header-height: 72px;
  --container-max: 1200px;
  --container-narrow: 720px;
  /* Footer logo: fine-tune if PNG has uneven transparent margins (try 8px–16px). 0 = none. */
  --footer-logo-optical-shift: 10px;
  
  /* Effects */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 40px var(--color-nasa-blue-glow);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Theme-dependent (overridden in light mode) */
  --header-bg: linear-gradient(180deg, rgba(11, 15, 26, 0.95) 0%, rgba(11, 15, 26, 0.8) 100%);
  --header-bg-scrolled: rgba(11, 15, 26, 0.98);
  --header-border: rgba(255, 255, 255, 0.06);
  --hero-overlay: linear-gradient(180deg, rgba(11, 15, 26, 0.4) 0%, rgba(11, 15, 26, 0.85) 50%, #0b0f1a 100%);
  --card-bg: linear-gradient(145deg, rgba(26, 37, 66, 0.6) 0%, rgba(17, 26, 46, 0.8) 100%);
  --card-border: rgba(255, 255, 255, 0.06);
  --input-bg: rgba(26, 37, 66, 0.5);
  --input-border: rgba(255, 255, 255, 0.1);
  --footer-bg: linear-gradient(180deg, #0b0f1a 0%, #060810 100%);
  --footer-border: rgba(255, 255, 255, 0.06);
  --footer-dots: rgba(255, 255, 255, 0.15);
  --nav-mobile-bg: linear-gradient(180deg, #111a2e 0%, #0b0f1a 100%);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-soft-white);
  background-color: var(--color-space-black);
  min-height: 100vh;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  body {
    font-size: 0.9875rem;
  }
}

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

a {
  color: var(--color-nasa-blue);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-soft-white);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-soft-white);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-lg); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: var(--space-md); }

p {
  margin-bottom: var(--space-md);
  color: var(--color-white-muted);
}

p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  gap: var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-soft-white);
  white-space: nowrap;
  min-width: 0;
}

.logo:hover {
  color: var(--color-soft-white);
  opacity: 0.9;
}

.logo__icon {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

.logo__star {
  color: var(--color-gold);
  font-size: 0.75em;
  margin-left: 0.1em;
  text-shadow: 0 0 10px var(--color-gold-glow);
}

/* Mobile-first: compact header so logo + icons never overlap */
@media (max-width: 991px) {
  .header-inner {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    flex-wrap: nowrap;
  }
  .logo {
    font-size: 1.15rem;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-center {
    display: none !important;
    position: absolute;
    left: -9999px;
  }
}

/* Center nav - visible on desktop */
.nav-center {
  display: none;
}

@media (min-width: 992px) {
  .nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
  }
}

.nav-center a {
  font-size: 0.95rem;
  color: var(--color-white-muted);
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-nasa-blue);
  transition: width var(--transition-smooth);
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--color-soft-white);
}

.nav-center a:hover::after,
.nav-center a.active::after {
  width: 100%;
}

/* CTA in header - desktop only; fully hidden on mobile to prevent overlap */
.header-cta {
  display: none;
}

@media (max-width: 991px) {
  .header-cta {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

@media (min-width: 992px) {
  .header-cta {
    display: inline-block;
    visibility: visible;
    position: static;
    left: auto;
    width: auto;
    height: auto;
    overflow: visible;
  }
}

/* Mobile menu button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-soft-white);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay - above header when open so full menu is visible */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 1002;
  background: var(--nav-mobile-bg);
  overflow: hidden;
  overflow-y: auto;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.nav-mobile.is-open,
body.menu-open .nav-mobile {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 99999 !important;
}

.nav-mobile__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100dvh;
  padding: var(--space-xl) var(--space-lg);
}

@media (max-width: 767px) {
  .nav-mobile__inner {
    padding: var(--space-lg) var(--space-md);
  }
  .nav-mobile__links a {
    font-size: 1.25rem;
  }
}

.nav-mobile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-silver-subtle);
  margin-bottom: var(--space-xl);
}

.nav-mobile__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-soft-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-mobile__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-soft-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile__close:hover {
  color: var(--color-nasa-blue);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-mobile__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-mobile__links {
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: 0 0 var(--space-xl) 0;
  padding: 0;
  overflow-y: auto;
}

.nav-mobile__links a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-soft-white);
  padding: var(--space-md) 0;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.nav-mobile__links a:hover {
  color: var(--color-nasa-blue);
}

.nav-mobile__cta {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-smooth), background var(--transition-fast);
}

.btn--primary {
  background: var(--color-nasa-blue);
  color: var(--color-soft-white);
  box-shadow: 0 0 20px var(--color-nasa-blue-glow);
}

.btn--primary:hover {
  background: #3d8cff;
  box-shadow: 0 0 30px var(--color-nasa-blue-glow);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-soft-white);
  border: 2px solid var(--color-silver-subtle);
}

.btn--outline:hover {
  border-color: var(--color-nasa-blue);
  color: var(--color-soft-white);
  box-shadow: 0 0 20px var(--color-nasa-blue-glow);
}

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.05rem;
}

@media (max-width: 767px) {
  .btn {
    padding: var(--space-md) var(--space-lg);
  }
  .btn--large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--space-4xl)) var(--space-lg) var(--space-4xl);
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--color-deep-navy);
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  transition: opacity 1.2s ease-in-out;
}

.hero__bg-image.active {
  opacity: 0.5;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
}

/* Starfield effect */
.hero__stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.3), transparent),
    radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.35), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(255,255,255,0.25), transparent);
  background-size: 200px 200px;
  animation: twinkle 8s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.8;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-nasa-blue);
  margin-bottom: var(--space-md);
}

.hero__title {
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-white-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

@media (max-width: 767px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Hollywood: Keyframe animations
   -------------------------------------------------------------------------- */
@keyframes spotlight-sweep {
  0% { opacity: 0.15; transform: scale(1.2) translateX(-20%); }
  50% { opacity: 0.25; transform: scale(1.3) translateX(0); }
  100% { opacity: 0.15; transform: scale(1.2) translateX(20%); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--color-nasa-blue-glow), 0 0 40px var(--color-gold-glow); }
  50% { box-shadow: 0 0 32px var(--color-nasa-blue-glow), 0 0 56px var(--color-gold-glow); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes star-burst {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes film-grain {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* Hero spotlight (Hollywood cone of light) */
.hero__spotlight {
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
  animation: spotlight-sweep 12s ease-in-out infinite;
}

.hero__content .hero__label { opacity: 0; animation: fade-in-up 0.7s ease-out 0.2s forwards; }
.hero__content .hero__title { opacity: 0; animation: fade-in-up 0.7s ease-out 0.35s forwards; }
.hero__content .hero__subtitle { opacity: 0; animation: fade-in-up 0.7s ease-out 0.5s forwards; }
.hero__content .hero__subtitle:nth-of-type(2) { animation-delay: 0.65s; }
.hero__content .hero__actions { opacity: 0; animation: fade-in-up 0.7s ease-out 0.85s forwards; }

.hero__label.hero__label--premiere {
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-shadow: 0 0 20px var(--color-gold-glow);
}

.hero__title.hero__title--premiere {
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 2px 20px var(--color-gold-glow);
}

/* Button Hollywood: shimmer on hover, subtle pulse on primary */
.btn {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.15) 45%, transparent 55%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.btn--primary:hover::after {
  opacity: 1;
  animation: shimmer 1.2s ease-in-out;
}

.btn--primary:hover {
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.2em;
  margin-right: 0.35em;
}

/* Card Hollywood: stagger reveal, shimmer on hover */
.card.reveal-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

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

.card.reveal-card:nth-child(1) { transition-delay: 0.1s; }
.card.reveal-card:nth-child(2) { transition-delay: 0.2s; }
.card.reveal-card:nth-child(3) { transition-delay: 0.3s; }

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.06) 45%, transparent 55%);
  background-size: 200% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.card:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out;
}

.card__icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-nasa-blue);
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.card:hover .card__icon svg {
  transform: scale(1.1);
  color: var(--color-gold);
}

/* Section divider: Hollywood stars */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-2xl) 0;
}

.section-divider__star {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--color-gold-glow);
  animation: star-burst 2s ease-in-out infinite;
}

.section-divider__star:nth-child(2) { animation-delay: 0.2s; }
.section-divider__star:nth-child(3) { animation-delay: 0.4s; }

/* As seen in strip */
.as-seen-in {
  text-align: center;
  padding: var(--space-lg) var(--space-lg);
  background: linear-gradient(90deg, transparent 0%, rgba(232, 185, 35, 0.08) 50%, transparent 100%);
  border-top: 1px solid rgba(232, 185, 35, 0.2);
  border-bottom: 1px solid rgba(232, 185, 35, 0.2);
}

@media (max-width: 767px) {
  .as-seen-in {
    padding: var(--space-md) var(--space-md);
  }
  .as-seen-in__label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }
  .as-seen-in__list {
    font-size: 0.85rem;
  }
}

.as-seen-in__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.as-seen-in__list {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: var(--color-white-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Sections (reusable)
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-4xl) 0;
}

@media (max-width: 767px) {
  .section {
    padding: var(--space-3xl) 0;
  }
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }
}

.section--dark {
  background: var(--color-space-black);
}

.section--navy {
  background: var(--color-deep-navy);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-3xl);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__intro {
  font-size: 1.1rem;
  color: var(--color-white-muted);
}

/* Fade-in on scroll */
.section.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --------------------------------------------------------------------------
   Feature Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .card-grid--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .card-grid {
    gap: var(--space-lg);
  }
  .card {
    padding: var(--space-xl);
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-nasa-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 124, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  color: var(--color-nasa-blue);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card__title {
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.card__text {
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}

.card__link {
  font-weight: 600;
  color: var(--color-nasa-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
}

.card__link:hover {
  color: var(--color-soft-white);
  gap: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Bio Cards (About page)
   -------------------------------------------------------------------------- */
.bio-grid {
  display: grid;
  gap: var(--space-3xl);
}

@media (min-width: 768px) {
  .bio-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.bio-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.bio-card__photo {
  width: 100%;
  max-width: 200px;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-silver-subtle);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(232, 185, 35, 0.15);
}

.bio-card__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.bio-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-nasa-blue);
  margin-bottom: var(--space-sm);
}

.bio-card__role {
  font-size: 0.95rem;
  color: var(--color-silver);
  margin-bottom: var(--space-lg);
}

.bio-card__highlights {
  list-style: none;
}

.bio-card__highlights li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-white-muted);
  font-size: 0.95rem;
}

.bio-card__highlights li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-nasa-blue);
}

/* --------------------------------------------------------------------------
   Signature Talks (Speaking page)
   -------------------------------------------------------------------------- */
.talk-list {
  list-style: none;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.talk-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-xl) 0;
  transition: opacity var(--transition-fast);
}

.talk-item:first-child {
  padding-top: 0;
}

.talk-item:hover {
  opacity: 0.95;
}

.talk-item__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: var(--space-sm);
}

.talk-item__desc {
  margin: 0;
  color: var(--color-white-muted);
  font-size: 0.95rem;
}

.talk-item__topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.talk-item__topics span {
  font-size: 0.8rem;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(46, 124, 255, 0.15);
  color: var(--color-nasa-blue);
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-soft-white);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: var(--space-md) var(--space-lg);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--color-soft-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-silver);
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-nasa-blue);
  box-shadow: 0 0 0 3px var(--color-nasa-blue-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  margin-top: var(--space-xl);
}

.form-max {
  max-width: 560px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .form-max {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Book Page - Cover & Review
   -------------------------------------------------------------------------- */
.book-hero-inner {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .book-hero-inner {
    grid-template-columns: 280px 1fr;
    text-align: left;
  }
}

.book-cover {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.review-quotes {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.review-quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-white-muted);
  margin-bottom: var(--space-lg);
  position: relative;
}

.review-quote::before {
  content: '"';
  font-size: 2rem;
  color: var(--color-nasa-blue);
  opacity: 0.6;
}

.review-quote__attr {
  font-size: 0.9rem;
  font-style: normal;
  color: var(--color-silver);
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Consulting - Services list
   -------------------------------------------------------------------------- */
.services-list {
  list-style: none;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.services-list li {
  position: relative;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
  color: var(--color-white-muted);
}

.services-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-nasa-blue);
  font-weight: bold;
}

/* Film posters - consulting page */
.films-we-consulted {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.films-we-consulted__title {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  color: var(--color-soft-white);
}

.film-posters {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .film-posters {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    max-width: 100%;
  }
}

.film-poster {
  text-align: center;
}

.film-poster a {
  color: inherit;
  text-decoration: none;
}

.film-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.film-poster:hover img {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--color-gold-glow);
}

.film-poster__title {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-soft-white);
}

.films-note {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: rgba(46, 124, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-white-muted);
}

.films-note strong {
  color: var(--color-soft-white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: var(--space-4xl) var(--space-lg) var(--space-2xl);
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(2px 2px at 100px 50px, var(--footer-dots), transparent),
    radial-gradient(2px 2px at 200px 150px, var(--footer-dots), transparent);
  background-size: 300px 200px;
  pointer-events: none;
  opacity: 0.6;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}

@media (min-width: 900px) {
  /* Flex keeps brand + nav grouped and centered in the footer (no wide empty left column) */
  .footer-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-3xl) var(--space-4xl);
    text-align: center;
  }
}

/* Logo + Connect: same full width so horizontal center matches Connect/email/button */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-lg);
  width: 100%;
  max-width: 22rem;
  text-align: center;
}

@media (min-width: 900px) {
  .footer-brand {
    width: auto;
    flex: 0 1 auto;
    align-items: stretch;
  }

  .footer-nav {
    flex: 0 1 auto;
    align-self: center;
  }
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 0.88;
}

.footer-logo:focus-visible {
  outline: 2px solid var(--color-nasa-blue);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.footer-logo__img {
  display: block;
  height: auto;
  max-width: min(260px, 100%);
  width: auto;
  margin: 0;
  /* Align visual weight with Connect column; tune --footer-logo-optical-shift in :root */
  transform: translateX(var(--footer-logo-optical-shift, 0px));
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: center;
  width: 100%;
  max-width: 36rem;
}

.footer-nav a {
  color: var(--color-white-muted);
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--color-nasa-blue);
}

/* Email + LinkedIn — under logo, centered as a column */
.footer-connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
}

.footer-connect__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-silver);
  opacity: 0.9;
}

.footer-email {
  font-size: 0.95rem;
  color: var(--color-nasa-blue);
  text-decoration: none;
  word-break: break-word;
  text-align: center;
}

.footer-email:hover {
  text-decoration: underline;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
  padding: var(--space-xs) var(--space-md) var(--space-xs) var(--space-xs);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-soft-white);
  text-decoration: none;
  border: 1px solid var(--color-silver-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-linkedin:hover {
  border-color: var(--color-nasa-blue);
  color: var(--color-nasa-blue);
  box-shadow: 0 0 0 1px rgba(46, 124, 255, 0.2);
}

.footer-linkedin__badge {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(46, 124, 255, 0.12);
  border: 1px solid var(--color-silver-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white-muted);
  transition: inherit;
}

.footer-linkedin:hover .footer-linkedin__badge {
  border-color: var(--color-nasa-blue);
  color: var(--color-nasa-blue);
}

/* Bottom strip: partner note + copyright read as one footer “tail” */
.footer-meta {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--footer-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer-partner {
  margin: 0;
  width: 100%;
  max-width: 38rem;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-white-muted);
  background: rgba(46, 124, 255, 0.07);
  border: 1px solid var(--footer-border);
  border-radius: var(--radius-md);
}

.footer-partner a {
  color: var(--color-nasa-blue);
  font-weight: 600;
  text-decoration: none;
}

.footer-partner a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--color-silver);
  opacity: 0.85;
}

/* Reused on contact page for “email us directly” note */
.footer-contact {
  font-size: 0.95rem;
  color: var(--color-white-muted);
}

.footer-contact a {
  color: var(--color-nasa-blue);
}

.text-soft-white {
  color: var(--color-soft-white);
}

/* --------------------------------------------------------------------------
   Theme toggle button
   -------------------------------------------------------------------------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-right: var(--space-sm);
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-soft-white);
  transition: color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-nasa-blue);
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle {
  color: var(--color-soft-white);
}

[data-theme="light"] .theme-toggle:hover {
  color: var(--color-nasa-blue);
  background: rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   Light theme
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --color-space-black: #f4f7fc;
  --color-deep-navy: #e6eaf4;
  --color-navy-mid: #d0d8e8;
  --color-soft-white: #0f1629;
  --color-white-muted: #3d4a5c;
  --color-nasa-blue: #1a65e0;
  --color-nasa-blue-glow: rgba(26, 101, 224, 0.25);
  --color-silver: #5a6578;
  --color-silver-subtle: rgba(90, 101, 120, 0.35);
  --header-bg: linear-gradient(180deg, rgba(244, 247, 252, 0.96) 0%, rgba(244, 247, 252, 0.92) 100%);
  --header-bg-scrolled: rgba(244, 247, 252, 0.98);
  --header-border: rgba(0, 0, 0, 0.08);
  --hero-overlay: linear-gradient(180deg, rgba(244, 247, 252, 0.25) 0%, rgba(244, 247, 252, 0.7) 50%, #f4f7fc 100%);
  --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(230, 234, 244, 0.95) 100%);
  --card-border: rgba(0, 0, 0, 0.08);
  --input-bg: rgba(255, 255, 255, 0.9);
  --input-border: rgba(0, 0, 0, 0.12);
  --footer-bg: linear-gradient(180deg, #e6eaf4 0%, #dce0ec 100%);
  --footer-border: rgba(0, 0, 0, 0.08);
  --footer-dots: rgba(26, 101, 224, 0.12);
  --nav-mobile-bg: linear-gradient(180deg, #e6eaf4 0%, #f4f7fc 100%);
}

[data-theme="light"] .site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero__stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(26, 101, 224, 0.2), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(26, 101, 224, 0.15), transparent),
    radial-gradient(2px 2px at 50px 160px, rgba(26, 101, 224, 0.18), transparent),
    radial-gradient(2px 2px at 90px 40px, rgba(26, 101, 224, 0.12), transparent);
}

[data-theme="light"] .hero__title {
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.5);
}

[data-theme="light"] a:hover {
  color: var(--color-nasa-blue);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 12px 40px rgba(26, 101, 224, 0.12);
}

[data-theme="light"] .btn--outline {
  color: var(--color-soft-white);
  border-color: var(--color-silver-subtle);
}

[data-theme="light"] .btn--outline:hover {
  color: var(--color-nasa-blue);
  border-color: var(--color-nasa-blue);
  box-shadow: 0 0 20px var(--color-nasa-blue-glow);
}

[data-theme="light"] .card__link:hover {
  color: var(--color-nasa-blue);
}

[data-theme="light"] .talk-item {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .talk-item__topics span {
  background: rgba(26, 101, 224, 0.12);
}

[data-theme="light"] .review-quotes {
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .book-cover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .films-note {
  background: rgba(26, 101, 224, 0.08);
}

[data-theme="light"] .menu-toggle span {
  background: var(--color-soft-white);
}

[data-theme="light"] .as-seen-in {
  background: linear-gradient(90deg, transparent 0%, rgba(232, 185, 35, 0.12) 50%, transparent 100%);
  border-color: rgba(232, 185, 35, 0.35);
}

[data-theme="light"] .as-seen-in__label {
  color: #b8921c;
}

[data-theme="light"] .section-divider__star {
  background: #b8921c;
  box-shadow: 0 0 12px rgba(184, 146, 28, 0.4);
}

[data-theme="light"] .btn--primary {
  color: #fff;
}

[data-theme="light"] .btn--primary:hover {
  color: #fff;
}
