/* ==========================================================================
   SHUT UP AND CARVE — Alpine Telemetry & Editorial Design System
   ========================================================================== */

:root {
  --bg-obsidian: #050a14;
  --bg-deep: #08101e;
  --bg-surface: #0d1729;
  --bg-elevated: #122038;
  --glass: rgba(10, 19, 34, 0.72);
  --glass-strong: rgba(7, 13, 25, 0.88);
  --border: rgba(148, 197, 255, 0.14);
  --border-bright: rgba(56, 217, 255, 0.42);
  --text-primary: #f3f8ff;
  --text-secondary: #a8bbd3;
  --text-muted: #6e85a3;
  --cyan: #38d9ff;
  --cyan-soft: rgba(56, 217, 255, 0.16);
  --gold: #f5c542;
  --gold-soft: rgba(245, 197, 66, 0.15);
  --coral: #ff5e3a;
  --coral-soft: rgba(255, 94, 58, 0.16);
  --emerald: #34d399;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 42px rgba(56, 217, 255, 0.24);
  --font-display: 'Barlow Condensed', 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(28, 114, 178, 0.22), transparent 65%),
    var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* Snowfall ambient canvas */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
  opacity: 0.55;
}

/* Scroll progress hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), #7ef0ff, var(--gold));
  z-index: 120;
  box-shadow: 0 0 12px var(--cyan);
  transition: width 60ms linear;
}

/* Container */
.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease, padding 240ms ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
  padding: 0.65rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(56, 217, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-top: 0.15rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.45rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, background 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: linear-gradient(135deg, #5be2ff 0%, #0ea5e9 100%);
  color: #03111f;
  font-weight: 700;
  box-shadow: 0 10px 30px -6px rgba(56, 217, 255, 0.52);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -6px rgba(56, 217, 255, 0.72);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

/* ==========================================================================
   Hero Section — Full-Bleed Cinematic Video + Alpine HUD
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #060e1c;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.04) brightness(0.76);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 22% 45%, rgba(5, 10, 20, 0.76) 0%, rgba(5, 10, 20, 0.34) 60%, rgba(5, 10, 20, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 10, 20, 0.72) 0%, rgba(5, 10, 20, 0.18) 38%, rgba(5, 10, 20, 0.65) 82%, var(--bg-obsidian) 100%);
}

/* Subtle topographic grid lines in hero */
.hero-contours {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(56, 217, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 217, 255, 0.14) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 15%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: 2.5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 17, 32, 0.76);
  border: 1px solid rgba(56, 217, 255, 0.32);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bcefff;
  margin-bottom: 1.35rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(56, 217, 255, 0.75);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(56, 217, 255, 0.75); }
  70% { box-shadow: 0 0 0 10px rgba(56, 217, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 217, 255, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.6rem, 8.8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
}

.hero-title .accent {
  display: inline-block;
  background: linear-gradient(110deg, #ffffff 10%, #7de9ff 52%, #38bdf8 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.65vw, 1.26rem);
  color: #dbe8f8;
  max-width: 58ch;
  margin: 0 0 2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.1rem;
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.36rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 15, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cfe0f5;
  backdrop-filter: blur(8px);
}

.platform-chip svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}

/* Hero Floating Telemetry HUD Card */
.hero-hud {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-card);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.hud-badge {
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--coral-soft);
  border: 1px solid rgba(255, 94, 58, 0.45);
  color: #ff9c84;
  font-size: 0.65rem;
}

.hud-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.hud-metric {
  background: rgba(4, 10, 20, 0.55);
  border: 1px solid rgba(148, 197, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
}

.hud-metric-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hud-metric-val {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.15rem;
  color: var(--text-primary);
}

.hud-metric-val small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--cyan);
}

.hud-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.video-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}

.video-toggle:hover {
  border-color: var(--cyan);
  color: var(--text-primary);
}

/* ==========================================================================
   Telemetry Stats Strip
   ========================================================================== */
.stats-band {
  position: relative;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.9), rgba(7, 13, 25, 0.95));
  padding: 2.2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.stat-item {
  position: relative;
  padding: 0.35rem 0.5rem;
  text-align: center;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.65rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 20%, #83e6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* ==========================================================================
   Shared Section Framing
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-alt {
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(56, 217, 255, 0.08), transparent 65%),
    rgba(8, 16, 30, 0.65);
  border-block: 1px solid rgba(148, 197, 255, 0.08);
}

.section-header {
  max-width: 740px;
  margin-bottom: 3rem;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.section-header.centered .section-kicker::after {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0;
}

/* ==========================================================================
   Interactive Feature Spotlight (5 Simulation Pillars)
   ========================================================================== */
.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: stretch;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-btn {
  text-align: left;
  background: rgba(13, 23, 41, 0.58);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  position: relative;
  overflow: hidden;
}

.pillar-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  opacity: 0;
  transition: opacity 200ms ease;
}

.pillar-btn:hover {
  border-color: rgba(56, 217, 255, 0.32);
  background: rgba(18, 32, 56, 0.72);
}

.pillar-btn.active {
  background: linear-gradient(135deg, rgba(18, 37, 65, 0.94), rgba(11, 23, 42, 0.92));
  border-color: var(--border-bright);
  box-shadow: 0 16px 40px -16px rgba(56, 217, 255, 0.32);
}

.pillar-btn.active::before { opacity: 1; }

.pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.pillar-name {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--cyan-soft);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.pillar-tag.gold { background: var(--gold-soft); color: var(--gold); }
.pillar-tag.coral { background: var(--coral-soft); color: #ff8c72; }

.pillar-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Spotlight visual stage */
.spotlight-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.stage-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060e1c;
  cursor: zoom-in;
}

.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease;
}

.stage-media:hover img { transform: scale(1.035); }

.stage-overlay-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.34rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 10, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6ecff;
}

.stage-body {
  padding: 1.5rem 1.65rem 1.65rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
}

.stage-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.45rem;
}

.stage-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.stage-bullets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stage-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #cfe0f5;
  background: rgba(5, 10, 20, 0.48);
  border: 1px solid rgba(148, 197, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
}

.stage-bullets li::before {
  content: "▸";
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   Interactive Physics Lab: 5 Snow Regimes × 5 Board Setups
   ========================================================================== */
.physics-lab {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.lab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.lab-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.lab-card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

.lab-card-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.chip-tab {
  background: rgba(5, 10, 20, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.44rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 170ms ease;
}

.chip-tab:hover {
  border-color: rgba(56, 217, 255, 0.4);
  color: var(--text-primary);
}

.chip-tab.active {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 217, 255, 0.22);
}

.lab-desc {
  margin: 0 0 1.35rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  min-height: 3.2em;
}

.meter-list {
  display: grid;
  gap: 0.9rem;
}

.meter-row-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 0.32rem;
}

.meter-row-head strong { color: var(--text-primary); }

.meter-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid rgba(148, 197, 255, 0.12);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  width: 50%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #0ea5e9, #38d9ff, #8cf0ff);
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px rgba(56, 217, 255, 0.45);
}

.meter-fill.gold {
  background: linear-gradient(90deg, #d97706, #f5c542, #fde68a);
  box-shadow: 0 0 12px rgba(245, 197, 66, 0.4);
}

.lab-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.meta-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ==========================================================================
   25-Venue World Alpine Atlas + Elevation Visualizer
   ========================================================================== */
.atlas-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.search-box {
  position: relative;
  min-width: 240px;
  flex: 0 1 300px;
}

.search-box input {
  width: 100%;
  background: rgba(13, 23, 41, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.58rem 1rem 0.58rem 2.35rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 217, 255, 0.16);
}

.search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Elevation skyline chart */
.elevation-skyline {
  background: linear-gradient(180deg, rgba(13, 23, 41, 0.86), rgba(7, 13, 25, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem 1.1rem;
  margin-bottom: 1.5rem;
}

.skyline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.skyline-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.skyline-legend {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.skyline-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding-top: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sky-bar {
  flex: 1;
  min-width: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.sky-bar-col {
  width: 100%;
  border-radius: 5px 5px 1px 1px;
  background: linear-gradient(180deg, rgba(56, 217, 255, 0.85), rgba(14, 165, 233, 0.22));
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.sky-bar:hover .sky-bar-col,
.sky-bar.selected .sky-bar-col {
  background: linear-gradient(180deg, #ffffff, var(--cyan));
  box-shadow: 0 0 20px rgba(56, 217, 255, 0.55);
  transform: scaleY(1.04);
  transform-origin: bottom;
}

.sky-bar-tip {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 10, 20, 0.94);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  z-index: 5;
}

.sky-bar:hover .sky-bar-tip,
.sky-bar.selected .sky-bar-tip { opacity: 1; }

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

.venue-card {
  background: rgba(13, 23, 41, 0.68);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.venue-card:hover,
.venue-card.highlighted {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  background: rgba(17, 32, 56, 0.88);
  box-shadow: 0 18px 40px -18px rgba(56, 217, 255, 0.28);
}

.venue-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.venue-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
}

.venue-country {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--cyan);
  flex-shrink: 0;
}

.venue-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.venue-specs strong { color: var(--text-primary); }

.venue-lines {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.venue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.v-tag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.16rem 0.48rem;
  border-radius: 5px;
  background: rgba(56, 217, 255, 0.1);
  color: #9be7ff;
  border: 1px solid rgba(56, 217, 255, 0.2);
}

/* ==========================================================================
   In-Engine Gallery Bento + Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  cursor: zoom-in;
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}

.gallery-card.wide { grid-column: span 8; aspect-ratio: 16 / 9; }
.gallery-card.half { grid-column: span 6; aspect-ratio: 16 / 10; }

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1), filter 350ms ease;
}

.gallery-card:hover img {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 0.95rem;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 9, 18, 0.92) 80%);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.gallery-kicker {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ==========================================================================
   Career & Architecture Cards
   ========================================================================== */
.bento-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(14, 26, 46, 0.84), rgba(9, 16, 30, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan-soft);
  border: 1px solid rgba(56, 217, 255, 0.3);
  color: var(--cyan);
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}

.feature-icon.gold {
  background: var(--gold-soft);
  border-color: rgba(245, 197, 66, 0.35);
  color: var(--gold);
}

.feature-icon.emerald {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.32);
  color: var(--emerald);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Tech stack marquee/strip */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(13, 23, 41, 0.8);
  border: 1px solid var(--border);
  color: #cbe2ff;
}

/* ==========================================================================
   CTA / Download & Privacy Banner
   ========================================================================== */
.cta-banner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background:
    radial-gradient(ellipse 75% 85% at 15% 20%, rgba(56, 217, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 65% 75% at 88% 85%, rgba(245, 197, 66, 0.14), transparent 55%),
    linear-gradient(135deg, #0b182e 0%, #07101f 100%);
  padding: clamp(2.5rem, 5vw, 4.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.cta-banner p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 54ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  background: #040811;
  padding: 3rem 0 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(148, 197, 255, 0.1);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 160ms ease;
}

.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  font-size: 0.78rem;
}

/* ==========================================================================
   Modals (Trailer Theater & Fullscreen Lightbox)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 7, 15, 0.92);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(1080px, 100%);
  background: #070e1c;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.modal-close:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.modal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.lightbox-stage {
  position: relative;
  background: #030710;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(5, 10, 20, 0.8);
  border: 1px solid var(--border);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.lightbox-nav:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-caption {
  padding: 1rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Legal Document Pages (/privacy & /terms)
   ========================================================================== */
.legal-wrap {
  padding: 7.5rem 0 4.5rem;
}

.legal-card {
  max-width: 820px;
  margin-inline: auto;
  background: rgba(11, 20, 36, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.legal-card h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(5, 10, 20, 0.6);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 2rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
}

.legal-card strong { color: var(--text-primary); }

.legal-card code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(56, 217, 255, 0.12);
  color: #a9ebff;
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
}

.legal-card a { color: var(--cyan); }

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .spotlight-layout,
  .physics-lab,
  .cta-banner {
    grid-template-columns: 1fr;
  }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item::after { display: none; }
  .bento-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-card,
  .gallery-card.wide,
  .gallery-card.half { grid-column: span 6; aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--glass-strong);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    backdrop-filter: blur(20px);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-3 { grid-template-columns: 1fr; }
  .stage-bullets { grid-template-columns: 1fr; }
  .gallery-card,
  .gallery-card.wide,
  .gallery-card.half { grid-column: span 12; }
  .skyline-bars { height: 92px; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  #snow-canvas { display: none; }
  .reveal { opacity: 1; transform: none; }
}
