/* ==========================================================================
   Star Fox Fan Page — css/style.css
   DARK SPACE THEME: #000814 deep space · #ff8c00 Fox orange · #00d4ff laser cyan
   Michroma 400 headings · Oxanium 400/600 body
   Advanced CSS: 3D transforms — Arwing hero rotateY/rotateX on load;
   rotate3d() game card flip on hover; targeting reticle @keyframes sweep;
   CSS perspective + transform-style: preserve-3d wireframe mission route map.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Oxanium:wght@400;600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes arwing-enter {
  0%   { transform: perspective(800px) rotateY(-40deg) rotateX(20deg) translateZ(-60px); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: perspective(800px) rotateY(-8deg) rotateX(6deg) translateZ(0px); opacity: 1; }
}

@keyframes arwing-float {
  0%, 100% { transform: perspective(800px) rotateY(-8deg) rotateX(6deg) translateZ(0px); }
  50%       { transform: perspective(800px) rotateY(-12deg) rotateX(10deg) translateZ(8px); }
}

@keyframes reticle-sweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes reticle-inner-sweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

@keyframes reticle-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-secondary), 0 0 16px rgba(0, 212, 255, 0.3); }
  50%       { opacity: 0.6; box-shadow: 0 0 4px var(--accent-secondary); }
}

@keyframes laser-scan {
  0%   { transform: scaleX(0); opacity: 0; }
  20%  { transform: scaleX(1); opacity: 1; }
  80%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 8px var(--accent), 0 0 20px rgba(255, 140, 0, 0.4); }
  50%       { text-shadow: 0 0 16px var(--accent), 0 0 40px rgba(255, 140, 0, 0.6); }
}

@keyframes card-flip-in {
  from { transform: rotate3d(0, 1, 0, 90deg); }
  to   { transform: rotate3d(0, 1, 0, 0deg); }
}

@keyframes route-drift {
  0%, 100% { transform: perspective(900px) rotateX(25deg) rotateY(-4deg); }
  50%       { transform: perspective(900px) rotateX(28deg) rotateY(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:              #000814;
  --bg-card:         #010d1e;
  --bg-alt:          #000f24;
  --bg-nav:          rgba(0, 8, 20, 0.95);
  --text:            #d8e8f8;
  --text-muted:      #8aaabb;
  --text-light:      #ffffff;
  --accent:          #ff8c00;
  --accent-dim:      #cc7000;
  --accent-pale:     rgba(255, 140, 0, 0.12);
  --accent-secondary: #00d4ff;
  --secondary-dim:   #009bcc;
  --secondary-pale:  rgba(0, 212, 255, 0.12);
  --border:          rgba(0, 212, 255, 0.2);
  --border-accent:   #ff8c00;
  --shadow:          rgba(0, 0, 0, 0.6);
  --shadow-cyan:     rgba(0, 212, 255, 0.15);

  --font-heading: 'Michroma', 'Courier New', monospace;
  --font-body:    'Oxanium', 'Segoe UI', sans-serif;

  --nav-height:    64px;
  --container-max: 1200px;
  --radius:        6px;
  --radius-sm:     4px;
  --radius-xs:     3px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Star field background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 35%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 50%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 10%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 45%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 55%, rgba(0, 212, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  30%, rgba(255, 140, 0, 0.3) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

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

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  display: block;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link--active {
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  background: rgba(0, 212, 255, 0.06);
}

.nav-link--active {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
  background: rgba(255, 140, 0, 0.08) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  cursor: pointer;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.burger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent-secondary);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
  }
  .nav-menu--open { display: flex; }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
#hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(255, 140, 0, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 6rem);
  color: var(--accent);
  letter-spacing: 0.08em;
  animation: glow-pulse 3s ease-in-out infinite;
  margin-bottom: 20px;
  line-height: 1;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-stat .num {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* 3D Arwing Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.arwing-scene {
  width: 280px;
  height: 280px;
  perspective: 800px;
  position: relative;
}

.arwing-3d {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: arwing-enter 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             arwing-float 6s ease-in-out 1.4s infinite;
  position: relative;
}

.arwing-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.6)) drop-shadow(0 0 4px rgba(0, 212, 255, 0.4));
}

/* Targeting Reticle around Arwing */
.reticle-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.reticle-ring--outer {
  border-top: 2px solid var(--accent-secondary);
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  border-right: 2px solid rgba(0, 212, 255, 0.3);
  animation: reticle-sweep 4s linear infinite;
}

.reticle-ring--inner {
  inset: -8px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--accent);
  border-left: 1px solid rgba(255, 140, 0, 0.5);
  border-right: 1px solid transparent;
  animation: reticle-inner-sweep 3s linear infinite;
}

.reticle-corner {
  position: absolute;
  width: 12px;
  height: 12px;
}

.reticle-corner::before,
.reticle-corner::after {
  content: '';
  position: absolute;
  background: var(--accent-secondary);
}

.reticle-corner::before { width: 100%; height: 2px; top: 0; left: 0; }
.reticle-corner::after  { width: 2px; height: 100%; top: 0; left: 0; }

.reticle-corner--tl { top: 10px; left: 10px; }
.reticle-corner--tr { top: 10px; right: 10px; transform: scaleX(-1); }
.reticle-corner--bl { bottom: 10px; left: 10px; transform: scaleY(-1); }
.reticle-corner--br { bottom: 10px; right: 10px; transform: scale(-1, -1); }

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { order: -1; }
  .arwing-scene { width: 200px; height: 200px; }
}

/* --------------------------------------------------------------------------
   Site Sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 72px 0;
  border-top: 1px solid rgba(0, 212, 255, 0.08);
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--text-light);
  margin-bottom: 16px;
}

.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-top: 12px;
}

.section-intro {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Game Cards (with 3D Flip)
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.game-card-wrap {
  perspective: 900px;
  height: 480px;
}

.game-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.game-card-wrap:hover .game-card {
  transform: rotate3d(0, 1, 0, 180deg);
}

.game-card-front,
.game-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.game-card-back {
  transform: rotate3d(0, 1, 0, 180deg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-color: rgba(255, 140, 0, 0.3);
}

.game-card-front .card-image {
  height: 60%;
  overflow: hidden;
}

.game-card-front .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card-front .card-body {
  padding: 16px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge--snes { background: rgba(255, 140, 0, 0.1); color: var(--accent); border-color: rgba(255, 140, 0, 0.3); }
.badge--n64  { background: rgba(100, 60, 200, 0.15); color: #a080ff; border-color: rgba(100, 60, 200, 0.3); }
.badge--super-fx { background: rgba(0, 212, 255, 0.1); color: var(--accent-secondary); border-color: rgba(0, 212, 255, 0.3); }

.year-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Back side styles */
.card-back-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.card-back-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-back-desc {
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}

.card-back-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: var(--radius-xs);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Simple Card (non-flip)
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.08);
}

.card-body {
  padding: 20px;
}

/* --------------------------------------------------------------------------
   Screenshot Strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.screenshot-strip figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.screenshot-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.screenshot-strip figure:hover img { transform: scale(1.05); }

.screenshot-strip figcaption {
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Trivia Callout
   -------------------------------------------------------------------------- */
aside.trivia {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  position: relative;
}

aside.trivia::before {
  content: 'INTEL';
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}

.trivia-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Dev Quote
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  border-left: 2px solid var(--accent-secondary);
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(0, 212, 255, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

blockquote.dev-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 12px;
}

blockquote.dev-quote cite {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Video Embeds
   -------------------------------------------------------------------------- */
.embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lite YouTube facade — clickable poster that defers iframe load until play. */
.lite-youtube {
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.lite-youtube__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-youtube__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
  z-index: 2;
}
.lite-youtube__play:hover,
.lite-youtube__play:focus-visible {
  background: var(--accent);
  transform: scale(1.06);
  outline: none;
}
.lite-youtube__play-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 4px;
}
.lite-youtube--activated {
  cursor: default;
  background-image: none !important;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-label {
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.video-label span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* --------------------------------------------------------------------------
   People Cards
   -------------------------------------------------------------------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.person-card:hover { border-color: rgba(255, 140, 0, 0.35); }

.person-portrait {
  height: 220px;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-body {
  padding: 24px;
}

.person-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.person-role {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.person-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.person-bio.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.person-expand {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  color: var(--accent-secondary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-top: 12px;
  transition: border-color 0.2s, color 0.2s;
}

.person-expand:hover { border-color: var(--accent-secondary); }

/* Portrait placeholder */
.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
}

.gallery-item:hover { border-color: rgba(255, 140, 0, 0.5); }

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: rgba(0, 8, 20, 0.85);
  font-size: 0.72rem;
  color: var(--text-muted);
  transform: translateY(100%);
  transition: transform 0.3s;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Platform Filter
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.filter-btn:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.filter-btn.active {
  background: rgba(255, 140, 0, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Mission Route Map (3D Wireframe — flagship.html)
   -------------------------------------------------------------------------- */
.route-map-container {
  perspective: 900px;
  margin: 48px 0;
}

.route-map {
  transform-style: preserve-3d;
  animation: route-drift 10s ease-in-out infinite;
  position: relative;
  padding: 32px;
  background: rgba(0, 212, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius);
}

.route-nodes {
  display: flex;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
}

.route-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.route-node-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: var(--accent-secondary);
  background: rgba(0, 212, 255, 0.06);
  position: relative;
  z-index: 1;
}

.route-node-circle.final {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 140, 0, 0.08);
}

.route-node-label {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  max-width: 56px;
}

.route-connector {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 212, 255, 0.5), rgba(255, 140, 0, 0.3));
  min-width: 20px;
  position: relative;
}

.route-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 6px solid rgba(0, 212, 255, 0.5);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

/* --------------------------------------------------------------------------
   History Section Images
   -------------------------------------------------------------------------- */
.history-section {
  margin-bottom: 64px;
}

.history-section h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 140, 0, 0.2);
}

.history-image {
  float: right;
  margin: 0 0 24px 32px;
  max-width: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.history-image img {
  width: 100%;
  display: block;
}

.history-image figcaption {
  padding: 8px 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-card);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .history-image {
    float: none;
    margin: 0 0 24px;
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Flagship / Deep-Dive
   -------------------------------------------------------------------------- */
.flagship-section {
  margin-bottom: 64px;
}

.flagship-section h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  color: var(--text-light);
  margin-bottom: 8px;
}

.flagship-section h3 {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent);
  margin: 32px 0 16px;
}

.flagship-image {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.flagship-image img {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: cover;
}

.flagship-image figcaption {
  padding: 10px 14px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-card);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.tech-item {
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.tech-item-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--accent-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tech-item-value {
  font-size: 0.9rem;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lb-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lb-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.lb-inner img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lb-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Easter Egg Overlay
   -------------------------------------------------------------------------- */
.easter-egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 9900;
  background: rgba(0, 8, 20, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
  animation: slide-up 0.4s ease-out;
}

.easter-egg-arwing {
  font-size: 5rem;
  animation: arwing-float 3s ease-in-out infinite;
}

.easter-egg-text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 5vw, 2.8rem);
  color: var(--accent);
  letter-spacing: 0.15em;
  animation: glow-pulse 2s ease-in-out infinite;
}

.easter-egg-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

footer h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 6px;
}

footer ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

footer ul a:hover { color: var(--accent-secondary); }

.footer-copy {
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  padding-top: 20px;
  font-size: 0.78rem !important;
  color: var(--text-muted);
  text-align: center;
}

.footer-copy a { color: var(--accent-secondary); }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-accent   { color: var(--accent); }
.text-cyan     { color: var(--accent-secondary); }
.text-muted    { color: var(--text-muted); }
.font-heading  { font-family: var(--font-heading); }
p + p { margin-top: 1em; }
