/* ═══════════════════════════════════════════════════════════
   MAHOGANY ROW — UNIVERSE ACCESS PORTAL
   Core Design System
   Neo-noir Cinematic | Black / White / Gold / Crimson
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ─── RESET & ROOT ─────────────────────────────────────── */

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

:root {
  --black:      #000000;
  --void:       #080808;
  --deep:       #0d0d0d;
  --charcoal:   #111111;
  --surface:    #161616;
  --border:     #1e1e1e;
  --muted:      #2a2a2a;
  --white:      #ffffff;
  --off-white:  #e8e4df;
  --silver:     #9a9a9a;
  --grey:       #555555;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark:  #8a6f2e;
  --gold-glow:  rgba(201,168,76,0.15);
  --gold-line:  rgba(201,168,76,0.35);
  --crimson:    #8b1a1a;
  --crimson-glow: rgba(139,26,26,0.2);
  --font-display: 'Cinzel', serif;
  --font-body:    'Inter', sans-serif;
  --font-tech:    'Rajdhani', sans-serif;
  --transition:   cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

body.locked { overflow: hidden; }

::selection { background: var(--gold); color: var(--black); }

/* ─── SCROLLBAR ─────────────────────────────────────────── */

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.label-muted {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ─── BUTTONS ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.03);
  transform: translateX(-100%);
  transition: transform 0.5s var(--transition);
}

.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2.5rem;
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 40px rgba(201,168,76,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--off-white);
  padding: 1rem 2.5rem;
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--gold-line);
  color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gold-line);
}
.btn-ghost:hover { border-color: var(--gold); }

/* ─── NAVIGATION ──────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  transition: all 0.6s var(--transition);
}

.nav.scrolled {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 4rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-logo span { color: var(--off-white); }
.nav-logo:hover { color: var(--gold-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--gold-light); }

/* Ghost CTA — outline variant, sits beside .nav-cta */
.nav-cta-ghost {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(201,168,76,0.45);
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  transition: color 0.35s ease, border-color 0.35s ease,
              text-shadow 0.35s ease, transform 0.35s ease;
  display: inline-block;
}
.nav-cta-ghost:hover {
  color: rgba(201,168,76,0.95);
  border-color: rgba(201,168,76,0.85);
  text-shadow:
    0 0 8px  rgba(201,168,76,0.55),
    0 0 20px rgba(201,168,76,0.20),
    0 0 40px rgba(201,168,76,0.07);
  transform: scale(1.03);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ─── HERO ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Noise overlay */
.hero-noise {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* Vignette */
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.95) 100%);
  pointer-events: none;
}

/* Gradient bottom */
.hero-gradient {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 40%; z-index: 3;
  background: linear-gradient(to top, var(--black) 0%, transparent 100%);
  pointer-events: none;
}

/* Scan lines */
.scanlines {
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  animation: scanline-drift 8s linear infinite;
}

@keyframes scanline-drift {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 4rem;
}

.hero-pre {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 1s var(--transition) 0.5s forwards;
}

.hero-pre::before {
  content: '';
  display: inline-block;
  width: 30px; height: 1px;
  background: var(--gold);
  margin-right: 1rem;
  vertical-align: middle;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 0.95;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 1.2s var(--transition) 0.8s forwards;
}

.hero-title span {
  display: block;
  color: var(--gold);
  font-size: 0.38em;
  letter-spacing: 0.35em;
  margin-top: 0.4em;
}

.hero-tagline {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--silver);
  max-width: 480px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fade-up 1s var(--transition) 1.2s forwards;
  min-height: 1.8em;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s var(--transition) 1.5s forwards;
}

/* ─── AMBIENT PARTICLES ──────────────────────────────────── */

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* ─── SECTIONS ───────────────────────────────────────────── */

.section {
  position: relative;
  padding: 8rem 4rem;
}

.section-sm { padding: 5rem 4rem; }
.section-lg { padding: 12rem 4rem; }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.container-sm {
  max-width: 860px;
  margin: 0 auto;
}

/* ─── SECTION HEADERS ────────────────────────────────────── */

.section-header {
  margin-bottom: 5rem;
}

.section-header.centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-num {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.section-line {
  width: 60px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1.5rem 0;
}

.section-header.centered .section-line {
  margin: 1.5rem auto;
}

.section-desc {
  font-size: 1rem;
  color: var(--silver);
  line-height: 1.8;
  max-width: 600px;
}

.section-header.centered .section-desc { margin: 0 auto; }

/* ─── DIVIDERS ───────────────────────────────────────────── */

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: visible;
}

.divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translateX(-50%) rotate(45deg);
}

/* ─── GRID LAYOUTS ───────────────────────────────────────── */

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

/* ─── CARDS ──────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 0 40px var(--gold-glow), inset 0 0 20px rgba(201,168,76,0.02);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--gold);
  transition: height 0.4s var(--transition);
}

.card:hover::before { height: 100%; }

.card-inner { padding: 2.5rem; }

/* ─── QUOTE / CALLOUT ────────────────────────────────────── */

.quote-block {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2.5rem;
  margin: 3rem 0;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--off-white);
  line-height: 1.4;
}

/* ─── BADGE / TAG ────────────────────────────────────────── */

.badge {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  color: var(--grey);
}

.badge-gold {
  border-color: var(--gold-dark);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

.badge-crimson {
  border-color: var(--crimson);
  color: #c0392b;
  background: var(--crimson-glow);
}

/* ─── GLITCH EFFECT ──────────────────────────────────────── */

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  color: #c0392b;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch-1 4s infinite linear;
  opacity: 0;
}

.glitch::after {
  color: var(--gold);
  clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
  animation: glitch-2 5s infinite linear;
  opacity: 0;
}

@keyframes glitch-1 {
  0%, 96%, 100% { opacity: 0; transform: translateX(0); }
  97% { opacity: 0.7; transform: translateX(-3px); }
  98% { opacity: 0; transform: translateX(0); }
  99% { opacity: 0.5; transform: translateX(3px); }
}

@keyframes glitch-2 {
  0%, 93%, 100% { opacity: 0; transform: translateX(0); }
  94% { opacity: 0.6; transform: translateX(3px); }
  95% { opacity: 0; transform: translateX(0); }
  96% { opacity: 0.4; transform: translateX(-2px); }
}

/* ─── INTRO OVERLAY ──────────────────────────────────────── */

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 1.4s ease-in-out, visibility 1.4s;
}

#intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-logo {
  text-align: center;
  opacity: 0;
  animation: intro-fade 1.5s var(--transition) 0.3s forwards;
}

.intro-logo-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  position: relative;
}

.intro-logo-sub {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  color: var(--silver);
  text-transform: uppercase;
  margin-top: 0.75rem;
}

.intro-line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem auto;
  animation: intro-line 1.5s var(--transition) 0.8s forwards;
}

@keyframes intro-line {
  to { width: 200px; }
}

.intro-progress {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.intro-progress-bar {
  width: 200px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}

.intro-progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  animation: progress-fill 3.2s linear 0.3s forwards;
}

@keyframes progress-fill { to { width: 100%; } }

.intro-progress-text {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--grey);
}

/* ─── MODAL ──────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--deep);
  border: 1px solid var(--border);
  max-width: 560px;
  width: 90%;
  padding: 3rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--transition);
}

.modal-backdrop.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--grey);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--gold); }

/* ─── FORM ELEMENTS ──────────────────────────────────────── */

.form-group { margin-bottom: 1.5rem; }

.form-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.6rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--charcoal);
  border: 1px solid var(--border);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.9rem 1.2rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold-line);
  box-shadow: 0 0 20px var(--gold-glow);
}

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

/* ─── ANIMATIONS ──────────────────────────────────────────── */

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

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes intro-fade {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(201,168,76,0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ─── HORIZONTAL RULE ─────────────────────────────────────── */

.hr-gold {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
  margin: 4rem 0;
}

/* ─── FOOTER ─────────────────────────────────────────────── */

.footer {
  background: var(--void);
  border-top: 1px solid var(--border);
  padding: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.7;
}

.footer-heading {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--grey);
}

/* Kingdom Vision Films — footer branded link
   ─────────────────────────────────────────────────────────
   Auto-pulse: every 8s a soft gold glow blooms then fades.
   Hover: glow intensifies, stays bright while cursor is over.
   No layout change. No movement. Pure light effect.
   ───────────────────────────────────────────────────────── */

@keyframes kvf-signal-pulse {
  /* Dormant for most of the 8s cycle */
  0%,  42% { color: inherit; text-shadow: none; }
  /* Soft bloom in */
  50%       {
    color: rgba(201,168,76,0.80);
    text-shadow:
      0 0 6px  rgba(201,168,76,0.50),
      0 0 16px rgba(201,168,76,0.22),
      0 0 32px rgba(201,168,76,0.08);
  }
  /* Gentle fade back to dormant */
  58%, 100% { color: inherit; text-shadow: none; }
}

.kvf-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline;
  cursor: pointer;
  /* Periodic signal pulse — 8s cycle, runs forever */
  animation: kvf-signal-pulse 8s ease-in-out infinite;
  /* Smooth hover transition layered on top */
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

/* Hover — intensifies the glow, pauses the auto-cycle cleanly */
.kvf-link:hover {
  animation-play-state: paused;
  color: rgba(201,168,76,0.90);
  text-shadow:
    0 0 6px  rgba(201,168,76,0.60),
    0 0 16px rgba(201,168,76,0.30),
    0 0 36px rgba(201,168,76,0.12),
    0 0 64px rgba(201,168,76,0.04);
}

/* ─── AMBIENT SOUND TOGGLE ───────────────────────────────── */

#sound-toggle {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--deep);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
  color: var(--grey);
  font-size: 0.9rem;
}

#sound-toggle:hover {
  border-color: var(--gold-line);
  color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ─── PAGE TRANSITION ────────────────────────────────────── */

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--transition);
  pointer-events: none;
}

.page-curtain.entering {
  transform: scaleY(1);
  transform-origin: bottom;
}

.page-curtain.exiting {
  transform: scaleY(0);
  transform-origin: top;
}

/* ─── INTRO CROSS-FADE ────────────────────────────────────
   Homepage content starts invisible; JS adds .intro-revealed
   once the intro overlay begins fading, triggering a smooth
   1 000 ms ease-in-out fade-in that cross-fades with the
   overlay's own 1.2 s opacity transition.
───────────────────────────────────────────────────────────── */
.intro-pre-reveal {
  opacity: 0;
  /* intentionally no transition until .intro-revealed is added */
}
.intro-revealed {
  opacity: 1;
  transition: opacity 1.1s ease-in-out;
}

/* ── HOMEPAGE HERO-ONLY FOOTER — no border line ──────────────
   The minimal footer on the homepage sits directly below the
   full-screen hero. A hard border-top creates a visible white
   line; replaced with a subtle gradient fade instead.         */
.footer--minimal {
  border-top: none;
  background: transparent;
  padding-top: 0;
}

/* ─── CHARACTER CARDS ─────────────────────────────────────── */

.char-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.4s, transform 0.4s var(--transition);
}

.char-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px var(--gold-glow);
}

.char-card-visual {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.char-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--charcoal), var(--deep));
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: 0.05em;
}

.char-card-info { padding: 1.5rem 1.75rem 2rem; }

.char-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.char-role {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.char-descriptor {
  font-style: italic;
  font-size: 0.82rem;
  color: var(--silver);
  margin-bottom: 0.75rem;
  border-left: 1px solid var(--gold-dark);
  padding-left: 0.75rem;
}

.char-expand {
  display: none;
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.7;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.char-card.expanded .char-expand { display: block; }


/* ═══════════════════════════════════════════════════════════
   GLOBAL — CINEMATIC TITLE TREATMENT  v2
   Widescreen banner, edge-feathered, seamlessly integrated
═══════════════════════════════════════════════════════════ */

/* ── WIDESCREEN BANNER WRAPPER ────────────────────────────
   Sits inside .mr-banner-stage (full-bleed absolute layer).
   Full viewport width, feathers ALL edges aggressively so
   the artwork dissolves seamlessly into the surrounding scene.
   No hard border. No "inserted picture" look.              */
.mr-banner-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;             /* fills the full-bleed stage */
  margin: 0 auto;
  /* ── CINEMATIC EDGE FEATHER ──────────────────────────────
     Horizontal: transparent from 0–12%, opaque 22–78%, fade out 88–100%
     Vertical:   transparent from 0–8%,  opaque 20–75%, fade out 88–100%
     This dissolves left/right edges deep into the background
     so there is no visible border or frame.                */
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0,0,0,0.15) 8%,
      rgba(0,0,0,0.55) 16%,
      black 24%,
      black 76%,
      rgba(0,0,0,0.55) 84%,
      rgba(0,0,0,0.15) 92%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,0.4) 10%,
      black 22%,
      black 76%,
      rgba(0,0,0,0.4) 90%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      rgba(0,0,0,0.15) 8%,
      rgba(0,0,0,0.55) 16%,
      black 24%,
      black 76%,
      rgba(0,0,0,0.55) 84%,
      rgba(0,0,0,0.15) 92%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,0.4) 10%,
      black 22%,
      black 76%,
      rgba(0,0,0,0.4) 90%,
      transparent 100%
    );
  mask-composite: intersect;
  /* Slow cinematic breathe on the whole wrapper */
  animation: mr-banner-breathe 7s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  /* Ember warm glow cast onto surrounding bg */
  filter:
    drop-shadow(0 0 60px rgba(180,80,10,0.45))
    drop-shadow(0 0 130px rgba(140,55,5,0.25));
}

/* ── THE IMAGE INSIDE THE WRAPPER ── */
.mr-img-title {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* inner detail glow — not clipped by mask */
  filter:
    drop-shadow(0 0 18px rgba(220,120,30,0.6))
    drop-shadow(0 0 5px rgba(0,0,0,0.95));
  animation: mr-title-detail 7s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

/* Outer wrapper breathe (size / opacity pulse) */
@keyframes mr-banner-breathe {
  0%,100% { opacity: 0.88; }
  40%     { opacity: 1;    }
  70%     { opacity: 0.92; }
}

/* Inner image detail glow pulse */
@keyframes mr-title-detail {
  0%,100% {
    filter: drop-shadow(0 0 14px rgba(200,100,20,0.5))
            drop-shadow(0 0 4px rgba(0,0,0,0.95));
  }
  45% {
    filter: drop-shadow(0 0 32px rgba(230,130,40,0.8))
            drop-shadow(0 0 7px rgba(0,0,0,0.98));
  }
}

/* ── METALLIC TEXT TITLE (CSS-only, section headings) ── */
.mr-title-metal {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: linear-gradient(
    160deg,
    #3a1a08 0%,
    #8b4010 12%,
    #c96a1a 22%,
    #e8a050 32%,
    #f5c878 42%,
    #e8a050 52%,
    #c96a1a 62%,
    #8b4010 75%,
    #5a2508 88%,
    #c96a1a 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 14px rgba(180,90,20,0.5))
          drop-shadow(0 1px 4px rgba(0,0,0,0.95));
  animation: metal-glow 5s ease-in-out infinite;
  position: relative;
}
@keyframes metal-glow {
  0%,100% { filter: drop-shadow(0 0 10px rgba(180,90,20,0.45)) drop-shadow(0 1px 4px rgba(0,0,0,0.95)); }
  50%      { filter: drop-shadow(0 0 22px rgba(210,110,30,0.7))  drop-shadow(0 1px 5px rgba(0,0,0,0.98)); }
}

/* ── SECTION TITLE METALLIC VARIANT ── */
.section-title.mr-title-metal,
h2.mr-title-metal,
h1.mr-title-metal {
  line-height: 1.05;
}

/* ── PAGE HERO TITLE WRAPPER (legacy — kept for compat) ── */
.mr-page-title-wrap {
  position: relative;
  display: inline-block;
}
.mr-page-title-wrap::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse 80% 60% at 50% 55%,
    rgba(180,70,10,0.18) 0%,
    rgba(140,50,5,0.08) 50%,
    transparent 75%);
  pointer-events: none;
  animation: mr-banner-breathe 7s ease-in-out infinite;
  z-index: -1;
}

/* ── Responsive sizing ── */
@media (max-width: 900px) {
  .mr-banner-wrap { max-width: 100%; }
}
@media (max-width: 600px) {
  .mr-banner-wrap {
    max-width: 100%;
    /* on very small screens keep logo readable, soften horizontal feather */
    -webkit-mask-image:
      linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.3) 5%,
        black 14%,
        black 86%,
        rgba(0,0,0,0.3) 95%,
        transparent 100%
      ),
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.5) 8%,
        black 18%,
        black 80%,
        rgba(0,0,0,0.5) 92%,
        transparent 100%
      );
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(
        to right,
        transparent 0%,
        rgba(0,0,0,0.3) 5%,
        black 14%,
        black 86%,
        rgba(0,0,0,0.3) 95%,
        transparent 100%
      ),
      linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.5) 8%,
        black 18%,
        black 80%,
        rgba(0,0,0,0.5) 92%,
        transparent 100%
      );
    mask-composite: intersect;
  }
}

/* ═══════════════════════════════════════════════════════════
   GLOBAL — EMBER & SMOKE ATMOSPHERIC LAYER
   Inject .mr-atmosphere as a fixed overlay on every page,
   or per-section using .mr-atmo-section
═══════════════════════════════════════════════════════════ */

/* Fixed full-page atmosphere wrapper */
#mr-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  /* no overflow:hidden — child canvas uses fixed positioning */
}

/* Ember canvas — fixed full-viewport overlay on every page */
#ember-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
}
}

/* Smoke layers — pure CSS, low opacity */
.mr-smoke {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mr-smoke-layer {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(
    ellipse 55% 40% at 30% 60%,
    rgba(30,15,5,0.07) 0%,
    transparent 65%
  );
  animation: smoke-drift 28s ease-in-out infinite;
  transform-origin: center center;
}

.mr-smoke-layer:nth-child(2) {
  background: radial-gradient(
    ellipse 45% 35% at 70% 40%,
    rgba(20,10,3,0.06) 0%,
    transparent 60%
  );
  animation: smoke-drift2 36s ease-in-out infinite;
  animation-delay: -12s;
}

.mr-smoke-layer:nth-child(3) {
  background: radial-gradient(
    ellipse 60% 30% at 50% 75%,
    rgba(25,12,4,0.05) 0%,
    transparent 55%
  );
  animation: smoke-drift3 44s ease-in-out infinite;
  animation-delay: -22s;
}

@keyframes smoke-drift {
  0%   { transform: translate(0,0)   rotate(0deg)   scale(1); }
  33%  { transform: translate(2%,1%) rotate(1.5deg) scale(1.04); }
  66%  { transform: translate(-1%,2%) rotate(-1deg) scale(0.97); }
  100% { transform: translate(0,0)   rotate(0deg)   scale(1); }
}
@keyframes smoke-drift2 {
  0%   { transform: translate(0,0)    rotate(0deg)    scale(1); }
  40%  { transform: translate(-2%,1%) rotate(-2deg)   scale(1.06); }
  70%  { transform: translate(1%,-1%) rotate(1.2deg)  scale(0.96); }
  100% { transform: translate(0,0)    rotate(0deg)    scale(1); }
}
@keyframes smoke-drift3 {
  0%   { transform: translate(0,0)    rotate(0deg)  scale(1); }
  50%  { transform: translate(1%,2%)  rotate(2deg)  scale(1.03); }
  100% { transform: translate(0,0)    rotate(0deg)  scale(1); }
}

/* Vignette ember-glow at bottom of viewport */
.mr-ember-vignette {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40%;
  background: radial-gradient(ellipse 100% 100% at 50% 100%,
    rgba(160,55,5,0.07) 0%,
    transparent 65%);
  animation: ember-vignette-pulse 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ember-vignette-pulse {
  0%,100% { opacity: 0.5; }
  50%     { opacity: 1; }
}

/* ── LIGHT FLICKER behind image titles
   Now handled by .mr-banner-wrap animation.
   Kept as a no-op shim so old HTML refs don't break. ── */
.mr-title-flicker {
  display: none; /* replaced by .mr-banner-wrap */
}
@keyframes title-flicker {
  0%,100% { opacity: 0.55; }
  18%     { opacity: 1; }
  35%     { opacity: 0.3; }
  55%     { opacity: 0.9; }
  72%     { opacity: 0.45; }
  88%     { opacity: 0.85; }
}

/* ── SECTION EMBER LINE (decorative) ── */
.mr-ember-line {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(180,80,15,0.4) 20%,
    rgba(220,110,30,0.7) 50%,
    rgba(180,80,15,0.4) 80%,
    transparent 100%);
  margin: 1.2rem 0;
  animation: ember-line-pulse 4s ease-in-out infinite;
}
@keyframes ember-line-pulse {
  0%,100% { opacity: 0.5; }
  50%     { opacity: 1; }
}

.char-read-more {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.75rem;
  transition: color 0.2s;
}

.char-read-more:hover { color: var(--gold-light); }

/* ─── OMEGA GRID ─────────────────────────────────────────── */

.omega-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition);
  cursor: default;
}

.omega-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, var(--gold-glow));
  opacity: 0;
  transition: opacity 0.4s;
}

.omega-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--gold-glow);
}

.omega-card:hover::after { opacity: 1; }

.omega-num {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--grey);
  margin-bottom: 0.5rem;
}

.omega-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.omega-tag {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.omega-desc {
  font-size: 0.78rem;
  color: var(--grey);
  line-height: 1.6;
}

.omega-index {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
}

/* ─── VIDEO / WATCH CARDS ────────────────────────────────── */

.watch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.4s var(--transition);
  cursor: pointer;
}

.watch-card:hover {
  border-color: var(--gold-line);
  box-shadow: 0 0 40px var(--gold-glow);
}

.watch-thumb {
  aspect-ratio: 16/9;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-play {
  width: 56px; height: 56px;
  border: 1px solid rgba(201,168,76,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  transition: all 0.3s;
  z-index: 2;
}

.watch-card:hover .watch-play {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 40px rgba(201,168,76,0.5);
}

.watch-info { padding: 1.5rem 1.75rem; }
.watch-label { 
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.watch-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.watch-desc { font-size: 0.8rem; color: var(--grey); line-height: 1.6; }

/* ─── ISSUE PANELS ───────────────────────────────────────── */

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.panel-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--charcoal), var(--void));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.panel-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
}

.panel-tag {
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

/* ─── ARCHIVE CARDS ──────────────────────────────────────── */

.archive-card {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition);
}

.archive-card.locked {
  cursor: not-allowed;
}

.archive-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.archive-locked-text {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: #c0392b;
  border: 1px solid rgba(139,26,26,0.4);
  padding: 0.4rem 1rem;
}

.archive-visual {
  aspect-ratio: 4/3;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}

.archive-meta { padding: 1.25rem; }
.archive-cat {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.archive-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
}

/* ─── NEWSLETTER BANNER ──────────────────────────────────── */

.signal-banner {
  background: var(--deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.signal-form {
  display: flex;
  gap: 0;
}

.signal-input {
  flex: 1;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--off-white);
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.9rem 1.2rem;
  outline: none;
  transition: border-color 0.3s;
}

.signal-input:focus { border-color: var(--gold-line); }

.signal-btn {
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
}

.signal-btn:hover { background: var(--gold-light); }

/* ─── PAGE HERO ──────────────────────────────────────────── */

.page-hero {
  position: relative;
  padding: 14rem 4rem 8rem;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--black) 0%, transparent 40%, var(--black) 100%);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.06) 0%, transparent 60%);
}

.page-hero-content { position: relative; z-index: 1; }

.page-hero-pre {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-hero-pre::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.page-hero-desc {
  font-size: 1rem;
  color: var(--silver);
  max-width: 540px;
  line-height: 1.8;
}

/* ─── STAT BLOCKS ────────────────────────────────────────── */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.stat-item {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ─── TIMELINE ───────────────────────────────────────────── */

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-line), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.3rem; top: 0.3rem;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.timeline-label {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-text {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.7;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .nav { padding: 1.5rem 2.5rem; }
  .nav.scrolled { padding: 1rem 2.5rem; }
  .section { padding: 6rem 2.5rem; }
  .section-sm { padding: 4rem 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .signal-banner { padding: 3rem 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-cta-ghost { display: none; }
  .nav-burger { display: flex; }
  .hero-content { padding: 0 1.5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .section { padding: 5rem 1.5rem; }
  .section-sm { padding: 3rem 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .signal-banner { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .signal-form { flex-direction: column; }
  .signal-input { border-right: 1px solid var(--border); border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer { padding: 3rem 1.5rem; }
  .footer-bottom { padding: 1.5rem 0 0; }
  .page-hero { padding: 10rem 1.5rem 5rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .nav { padding: 1.25rem 1.5rem; }
  .section-title { font-size: 1.8rem; }
}

/* ─── MOBILE NAV ─────────────────────────────────────────── */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--transition);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--off-white);
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-nav-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--grey);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ─── SPECIAL ELEMENTS ────────────────────────────────────── */

.gold-text { color: var(--gold); }
.crimson-text { color: #c0392b; }
.muted-text { color: var(--grey); }
.white-text { color: var(--white); }

.text-center { text-align: center; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.mb-6 { margin-bottom: 3rem; }

/* ─── CLASSIFIED PATTERN ─────────────────────────────────── */

.classified-bg {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(139,26,26,0.03) 10px,
    rgba(139,26,26,0.03) 20px
  );
}

/* ─── DATA READOUT ───────────────────────────────────────── */

.data-readout {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  border-left: 1px solid var(--border);
  padding-left: 1rem;
  line-height: 1.8;
}

.data-readout span { color: var(--gold); }

/* ─── VIDEO EMBED ────────────────────────────────────────── */

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--charcoal);
  overflow: hidden;
}

.video-wrapper video, 
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ─── WORLD PAGE SECTIONS ─────────────────────────────────── */

.world-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.world-section:last-child { border-bottom: none; }

.world-section-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.world-section-label {
  position: sticky;
  top: 8rem;
}

.world-section-content {}

@media (max-width: 768px) {
  .world-section-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .world-section-label { position: static; }
}

/* ─── FRANCHISE SECTION ──────────────────────────────────── */

.franchise-strip {
  background: linear-gradient(90deg, var(--void), var(--deep), var(--void));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 4rem;
  text-align: center;
}

.franchise-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.franchise-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--border);
  min-width: 180px;
  transition: all 0.4s var(--transition);
}

.franchise-item:hover {
  border-color: var(--gold-line);
  box-shadow: 0 0 30px var(--gold-glow);
}

.franchise-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.franchise-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.franchise-status {
  font-family: var(--font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ─── INVESTOR MODAL ─────────────────────────────────────── */

.investor-panel {
  max-width: 700px;
  width: 95%;
  padding: 0;
}

.investor-panel .modal-header {
  padding: 2.5rem 3rem 2rem;
  border-bottom: 1px solid var(--border);
}

.investor-panel .modal-body { padding: 2.5rem 3rem; }

.access-input-group {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
}

.access-input-group .form-input {
  border-right: none;
  letter-spacing: 0.3em;
  text-align: center;
  font-family: var(--font-tech);
}

.access-error {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: #c0392b;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.access-error.show { opacity: 1; }

/* ─── IP SUMMARY ─────────────────────────────────────────── */

.ip-summary-modal {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.ip-summary-header {
  padding: 3rem;
  border-bottom: 1px solid var(--border);
  background: var(--void);
  position: sticky;
  top: 0;
  z-index: 10;
}

.ip-summary-body { padding: 3rem; }

.ip-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.ip-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.ip-section-title {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.ip-section-text {
  font-size: 0.92rem;
  color: var(--silver);
  line-height: 1.8;
}

.ip-section-text strong { color: var(--off-white); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   GLOBAL FORM READABILITY & GOLD SHIMMER SYSTEM
   Applies across contact.html, investor-access, producer-access,
   and all modal forms. Lifts contrast on labels, placeholders,
   helper text and adds a cinematic gold-amber shimmer to
   important input labels and section headers.
═══════════════════════════════════════════════════════════ */

/* ── Raise grey text to silver minimum ── */
:root {
  --form-label:   #b8a070;   /* warm gold-tinted label — WCAG AA on dark BG */
  --form-helper:  #888888;   /* helper / note text — up from #555 */
  --form-placeholder: rgba(200,185,150,0.45); /* legible placeholder */
}

/* ── Gold shimmer keyframe ──
   A slow left-to-right highlight sweep on a transparent overlay.
   Subtle — reads as a light catch, not a neon effect. */
@keyframes mr-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── Shimmer utility class ──
   Apply to any label or heading that needs the cinematic highlight.
   Uses background-clip:text so shimmer travels only over the letters. */
.mr-label-shimmer {
  background: linear-gradient(
    105deg,
    var(--gold)        0%,
    var(--gold-light)  30%,
    rgba(255,220,130,0.95) 50%,
    var(--gold-light)  70%,
    var(--gold)        100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: mr-shimmer 4s linear infinite;
  /* Fallback: if clip not supported, show flat gold */
  color: var(--gold);
}

/* ── Form group labels — higher contrast ── */
.form-group-label,
.contact-form-label,
.pg-form-label,
.iac-form-label {
  color: var(--form-label) !important;
}

/* ── Placeholder text — more readable ── */
.form-input::placeholder,
.form-textarea::placeholder,
.form-select,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder {
  color: var(--form-placeholder);
  opacity: 1; /* Firefox resets opacity */
}

/* ── Helper / note text beneath inputs ── */
.form-helper,
.contact-signal-note,
.pg-note,
.iac-note,
.form-note {
  color: var(--form-helper) !important;
}

/* ── Input / textarea text itself — off-white for readability ── */
.form-input,
.form-textarea,
.form-select {
  color: var(--off-white);
}

/* ── Focus state: gold border glow ── */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(201,168,76,0.5), 0 0 16px rgba(201,168,76,0.1);
}

/* ── Section headers inside forms — lift to off-white ── */
.contact-form-title,
.pg-form-title,
.iac-form-title {
  color: var(--off-white);
}

/* ── Select dropdown option contrast ── */
.form-select option {
  background: var(--charcoal);
  color: var(--off-white);
}

/* ── Submit/CTA buttons — ensure text is always black on gold ── */
.form-submit,
.contact-signal-submit,
.pg-submit,
.iac-submit {
  color: var(--black) !important;
  font-weight: 700;
}

