/* ==========================================================================
   THE MYSTERY OF C.A.B.O. - OFFICIAL WEBSITE DESIGN SYSTEM
   Inspired by: Return of the Obra Dinn & SIGNALIS
   Aesthetic: 1950s Noir Horror, Dieselpunk/Atompunk, Analog Cold War Telemetry
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;600;700&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color Palette */
  --bg-deep: #08090b;
  --bg-primary: #0e1014;
  --bg-surface: #14171d;
  --bg-surface-elevated: #1c2028;
  --bg-surface-translucent: rgba(14, 16, 20, 0.88);
  --bg-card: rgba(22, 26, 33, 0.92);

  --border-dim: rgba(218, 222, 229, 0.12);
  --border-medium: rgba(218, 222, 229, 0.25);
  --border-bright: rgba(240, 236, 226, 0.6);

  --text-primary: #f0ece2;       /* Aged Cinema Parchment */
  --text-secondary: #9ea5b3;     /* Muted Steel Gray */
  --text-muted: #646b79;         /* Dark Metal Gray */
  --text-inverse: #08090b;

  --accent-gold: #d4a359;        /* Phosphor Amber / Eltanin Resonance */
  --accent-gold-glow: rgba(212, 163, 89, 0.35);
  --accent-cyan: #79a6b8;        /* Abyssal Cold Cyan */
  --accent-red: #c94a4a;         /* Distress Signal Red */

  /* Fonts */
  --font-title: 'Cinzel', serif;
  --font-tech: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier Prime', monospace;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-max: 1280px;
  --header-height: 72px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(30, 36, 46, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(20, 24, 32, 0.3) 0%, transparent 40%);
}

/* --- Vintage 35mm Analog Film Filter System (1930s-1950s Cinema) --- */
.film-overlay-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
  mix-blend-mode: overlay;
  opacity: 0.88;
  transition: opacity var(--transition-smooth);
}

.film-grain-layer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* Coarser, larger 35mm/16mm silver-halide grain texture for high-res modern displays */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='coarseNoise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.52' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 0.58 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23coarseNoise)'/%3E%3C/svg%3E");
  background-size: 320px 320px;
  animation: film-grain-jitter 0.26s steps(8) infinite;
  pointer-events: none;
}

@keyframes film-grain-jitter {
  0% { transform: translate(0, 0); }
  12.5% { transform: translate(-4%, -8%); }
  25% { transform: translate(6%, 4%); }
  37.5% { transform: translate(-6%, 2%); }
  50% { transform: translate(3%, -5%); }
  62.5% { transform: translate(-2%, 6%); }
  75% { transform: translate(5%, -3%); }
  87.5% { transform: translate(-3%, -6%); }
  100% { transform: translate(2%, 4%); }
}

.film-scratches-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 220px,
      rgba(255, 255, 255, 0.06) 221px,
      transparent 222px,
      transparent 480px,
      rgba(255, 255, 255, 0.05) 481px,
      transparent 482px,
      transparent 760px,
      rgba(255, 255, 255, 0.07) 761px,
      transparent 762px
    );
  animation: film-scratches-move 3.2s steps(8) infinite;
  pointer-events: none;
  opacity: 0.65;
}

@keyframes film-scratches-move {
  0%, 100% { transform: translateX(0); opacity: 0.4; }
  25% { transform: translateX(24px); opacity: 0.7; }
  50% { transform: translateX(-30px); opacity: 0.3; }
  75% { transform: translateX(48px); opacity: 0.65; }
}

.film-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  box-shadow: inset 0 0 140px rgba(0, 0, 0, 0.92), inset 0 0 240px rgba(0, 0, 0, 0.68);
  animation: film-shutter-flicker 5s infinite;
}

@keyframes film-shutter-flicker {
  0%, 100% { opacity: 1; }
  48% { opacity: 1; }
  50% { opacity: 0.94; }
  52% { opacity: 1.03; }
  54% { opacity: 0.96; }
  88% { opacity: 0.98; }
  90% { opacity: 1.04; }
  92% { opacity: 0.97; }
}

body.film-disabled .film-overlay-container,
body.film-disabled .film-vignette {
  display: none !important;
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-primary);
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Technical Labels & Crosshairs */
.tech-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-label::before {
  content: "■";
  font-size: 0.6rem;
  color: var(--accent-gold);
}

.tech-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--border-medium);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-primary);
  text-transform: uppercase;
}

.tech-badge.alert {
  border-color: var(--accent-red);
  color: #ff8585;
}

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

/* --- Header & Top Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-surface-translucent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  z-index: 1000;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-logo .dot {
  color: var(--accent-gold);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-left: 1px solid var(--border-dim);
  padding-left: 0.75rem;
  display: none;
}

@media (min-width: 900px) {
  .brand-tagline {
    display: inline-block;
  }
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
  }
}

.nav-link {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Control Buttons (Lang, Sound, CRT) */
.ctrl-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-primary);
}

.ctrl-btn.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

#wishlistHeaderBtn {
  display: none !important;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border-medium);
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent-gold);
  color: #0b0c0e;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-medium);
  padding: 0.5rem;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-dim);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-smooth);
  z-index: 999;
}

.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.15rem;
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0.8rem;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.18) brightness(0.48) grayscale(100%);
  transform: scale(1.03);
  transition: transform 10s ease-out;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 11, 0.4) 0%,
    rgba(8, 9, 11, 0.75) 60%,
    var(--bg-deep) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-transmission-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-medium);
  margin-bottom: 1.8rem;
}

.transmission-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: beacon-pulse 1.8s infinite ease-in-out;
}

@keyframes beacon-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
}

.hero-main-title {
  font-size: clamp(2.5rem, 6.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.12em;
  text-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.15);
  margin-bottom: 1.2rem;
}

.hero-main-title .gold-accent {
  color: var(--text-primary);
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-tech);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.2rem auto;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--text-primary);
  color: var(--text-inverse);
  font-family: var(--font-tech);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #0b0c0e;
  box-shadow: 0 0 25px rgba(212, 163, 89, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-specs-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-dim);
  padding-top: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-specs-strip span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-specs-strip strong {
  color: var(--text-secondary);
}

/* --- Section Formatting & Grids --- */
.site-section {
  padding: 6.5rem 0;
  position: relative;
}

.site-section.surface-bg {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}

.section-header-block {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.8rem auto;
}

.section-header-block .tech-label {
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.section-lead {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Technical Crosshair Box Styling */
.classified-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  padding: 2rem;
}

.classified-box::before,
.classified-box::after {
  content: "+";
  position: absolute;
  font-family: var(--font-mono);
  color: var(--border-bright);
  font-size: 0.85rem;
  line-height: 1;
}

.classified-box::before { top: -6px; left: -5px; }
.classified-box::after { bottom: -6px; right: -5px; }

/* --- Interactive A.R.C. Terminal Section --- */
.terminal-wrapper {
  background: #0a0c0f;
  border: 1px solid var(--border-medium);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.terminal-header {
  background: #151921;
  padding: 0.65rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333946;
}

.terminal-led.green { background: #4ec970; box-shadow: 0 0 8px #4ec970; }
.terminal-led.amber { background: var(--accent-gold); box-shadow: 0 0 8px var(--accent-gold); }

.terminal-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .terminal-grid {
    grid-template-columns: 320px 1fr;
  }
}

.terminal-sidebar {
  border-right: 1px solid var(--border-dim);
  background: #0e1218;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.terminal-log-btn {
  background: transparent;
  border: 1px solid var(--border-dim);
  padding: 0.8rem 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.terminal-log-btn .log-code {
  color: var(--accent-gold);
  font-size: 0.7rem;
  font-weight: 700;
}

.terminal-log-btn:hover {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.terminal-log-btn.active {
  background: #1b212b;
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

.terminal-screen {
  padding: 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #c9d2de;
  min-height: 300px;
  position: relative;
  background: radial-gradient(circle at center, #10151d 0%, #080a0e 100%);
}

.terminal-screen .screen-glitch-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(212, 163, 89, 0.15);
  pointer-events: none;
  animation: crt-sweep 6s linear infinite;
}

@keyframes crt-sweep {
  0% { top: 0%; }
  100% { top: 100%; }
}

.terminal-text-content {
  white-space: pre-line;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent-gold);
  vertical-align: middle;
  animation: blink 0.9s infinite step-start;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Synopsis & Story Grid --- */
.story-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .story-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.story-lead-quote {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--text-primary);
  border-left: 2px solid var(--accent-gold);
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.45;
}

.story-paragraphs p {
  font-size: 1rem;
  line-height: 1.75;
  color: #b0b7c3;
  margin-bottom: 1.2rem;
}

.story-visual-card {
  position: relative;
  border: 1px solid var(--border-medium);
  overflow: hidden;
  background: #000;
}

.story-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.15) grayscale(100%);
  transition: transform 0.6s ease;
}

.story-visual-card:hover img {
  transform: scale(1.03);
}

.story-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.92) 100%);
  padding: 1.5rem 1.2rem 0.8rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Pillars / Key Features --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--border-dim);
  padding-bottom: 0.5rem;
}

.pillar-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 0.8rem;
  text-transform: uppercase;
}

/* --- Teaser Trailer Embed Section --- */
.teaser-container {
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid var(--border-medium);
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  position: relative;
}

.video-responsive-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-responsive-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.teaser-caption-bar {
  padding: 1rem 1.4rem;
  background: #11141a;
  border-top: 1px solid var(--border-dim);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* --- Footer --- */
.site-footer {
  background: #060708;
  border-top: 1px solid var(--border-dim);
  padding: 4.5rem 0 2rem 0;
  position: relative;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 860px) {
  .footer-main-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h4 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 420px;
}

.footer-links-col h5 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-links-col a {
  color: var(--text-secondary);
}

.footer-links-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* --- Modal Styles --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

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

.modal-container {
  background: #0e1218;
  border: 1px solid var(--border-bright);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-medium);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
}
