/* ============ RESET & TOKENS ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #121214;
  --bg-soft: rgba(30, 30, 38, 0.45);
  --ink: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --sage: #a1b6b0;
  --petal: #a78bfa;
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.25);
  --white: #ffffff;
  --font-display: 'Special Elite', monospace;
  --font-sans: 'Special Elite', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--petal));
  z-index: 1000;
  transition: width 0.08s linear;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 0.82rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  padding-bottom: 3px;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 1px;
  background: var(--ink);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ============ SHARED ============ */
section {
  background: transparent; padding: 130px 24px; text-align: center; position: relative; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  background: linear-gradient(105deg, #8fa8be 0%, #a0b4c4 18%, #c2b98a 42%, #c8a84a 60%, #9ab0c0 78%, #b8c0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--white);
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.badge-corner {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-family: var(--font-display);
  transition: all 0.2s ease;
}
.btn-dark {
  background: var(--ink);
  color: var(--bg-primary);
  border: 1px solid var(--ink);
  box-shadow: none;
}
.btn-dark:hover { 
  background: transparent; 
  color: var(--ink); 
  transform: none;
}
.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { 
  transform: none; 
  background: var(--ink); 
  color: var(--bg-primary); 
}

/* ============ SCROLL REVEAL SYSTEM ============ */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-scale { transform: scale(0.9); }

.reveal.in-view, .reveal-left.in-view, .reveal-right.in-view, .reveal-scale.in-view {
  opacity: 1;
  transform: none;
}

/* stagger children within known groups */
.hero-cta .btn:nth-child(1) { transition-delay: 0.05s; }
.hero-cta .btn:nth-child(2) { transition-delay: 0.18s; }

.flip-row .flip-unit:nth-child(1) { transition-delay: 0s; }
.flip-row .flip-unit:nth-child(2) { transition-delay: 0.1s; }
.flip-row .flip-unit:nth-child(3) { transition-delay: 0.2s; }
.flip-row .flip-unit:nth-child(4) { transition-delay: 0.3s; }

.synopsis-text .reveal-right:nth-of-type(1) { transition-delay: 0s; }
.synopsis-text .reveal-right:nth-of-type(2) { transition-delay: 0.1s; }
.synopsis-text .reveal-right:nth-of-type(3) { transition-delay: 0.2s; }
.synopsis-text .reveal-right:nth-of-type(4) { transition-delay: 0.3s; }
.synopsis-text .reveal-right:nth-of-type(5) { transition-delay: 0.4s; }

/* ============ HERO ============ */
.hero {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;

  will-change: transform, opacity;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 900px;
  background: linear-gradient(105deg, #8fa8be 0%, #a0b4c4 18%, #c2b98a 42%, #c8a84a 60%, #9ab0c0 78%, #b8c0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-top: 20px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.hero-typewriter {
  margin-top: 34px;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.4em;
  letter-spacing: 0.01em;
  font-family: var(--font-display);
}
.cursor { animation: blink 1s step-end infinite; color: var(--accent); }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ============ TRAILER ============ */
.trailer { background: transparent; }

.trailer-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.trailer-frame {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.trailer-card:hover .trailer-frame {
  transform: scale(1.015);
  box-shadow: 0 40px 90px rgba(0,0,0,0.7);
}

.play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: rgba(18, 18, 20, 0.4);
  backdrop-filter: blur(4px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
}
.play-btn:hover { 
  transform: scale(1.05); 
  background: var(--ink);
  color: var(--bg-primary);
}
.play-btn svg { margin-left: 3px; }

.trailer-frame-label {
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-family: var(--font-display);
}

.trailer-caption {
  margin-top: 30px;
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ============ SYNOPSIS ============ */
.synopsis {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  text-align: left;
  padding: 130px 24px;
}

.polaroid {
  background: var(--bg-soft);
  padding: 18px 18px 50px;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}
.polaroid:hover { transform: rotate(0deg); }

.polaroid-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #18181c, #0a0a0c);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: rgba(255,255,255,0.3);
}

.polaroid-caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.synopsis-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 18px;
}
.synopsis-text strong { color: var(--ink); font-weight: 600; }

.credit-line {
  font-size: 0.72rem !important;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: rgba(255,255,255,0.3) !important;
  margin-top: 26px !important;
}

/* ============ COUNTDOWN ============ */
.countdown { 

}

.timer-wrapper {
  margin-top: 30px;
  text-align: center;
  font-family: var(--font-display);
  color: #b8b090;
  user-select: none;
  filter: url(#distress-filter);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.timer-wrapper * {
  background: linear-gradient(105deg, #8fa8be 0%, #a0b4c4 18%, #c2b98a 42%, #c8a84a 60%, #9ab0c0 78%, #b8c0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.flip-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.flip-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 6rem);
  min-width: 1.5em;
  padding: 0 8px;
}

.flip-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: lowercase;
  color: var(--muted);
  -webkit-text-fill-color: initial;
  background: none !important;
  opacity: 0.7;
}

.countdown-note {
  margin-top: 44px;
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
}

/* ============ SIGNUP ============ */
.signup { padding: 140px 24px; background: transparent; }

.signup-card {
  max-width: 540px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 56px 40px;
  background: var(--bg-soft);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.signup-copy {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.signup-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input {
  flex: 1 1 240px;
  padding: 14px 20px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.signup-form input:focus { border-color: var(--ink); box-shadow: none; }

.signup-form button {
  padding: 14px 26px;
  border-radius: 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}
.signup-form button:hover { 
  transform: none; 
  background: transparent; 
  color: var(--ink);
}
.signup-form.sent button { background: #10b981; color: var(--white); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }

.signup-success {
  margin-top: 20px;
  font-family: var(--font-display);
  color: #10b981;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.signup-success.show { opacity: 1; height: auto; margin-top: 20px; }

.signup-fineprint {
  margin-top: 26px;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 70px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg-primary);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-disclaimer {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-copy {
  margin-top: 22px;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: var(--muted);
  opacity: 0.7;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .synopsis { grid-template-columns: 1fr; gap: 40px; padding: 90px 20px; }
  .nav-links { display: none; }
  section { background: transparent; padding: 80px 16px; }
  
  .signup-card {
    padding: 30px 20px;
  }
  .signup-form input {
    width: 100%;
    flex: 1 1 100%;
  }
  
  .setlist-paper {
    padding: 2rem 1.5rem;
    margin: 2rem auto;
  }
  
  .fan-wall {
    padding: 60px 10px;
  }
  .scattered-gallery {
    gap: 15px;
  }
  .photo-card {
    width: 150px;
    padding: 6px 6px 30px 6px;
  }
  .photo-card img {
    height: 180px;
  }
  
  .flip-row {
    gap: 10px;
  }
  .flip-num {
    font-size: 2.5rem;
    padding: 0 4px;
  }
  .countdown-note {
    font-size: 0.85rem;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
  
  .polaroid {
    max-width: 280px;
    margin: 0 auto;
  }
}


/* ============ ANIMATIONS ============ */
@keyframes film-grain {
  0% { background-position: 0 0, 0 0; }
  10% { background-position: -5% -10%, -5% -10%; }
  20% { background-position: -15% 5%, -15% 5%; }
  30% { background-position: 7% -25%, 7% -25%; }
  40% { background-position: 20% 25%, 20% 25%; }
  50% { background-position: -25% 10%, -25% 10%; }
  60% { background-position: 15% 5%, 15% 5%; }
  70% { background-position: 0% 15%, 0% 15%; }
  80% { background-position: 25% 35%, 25% 35%; }
  90% { background-position: -10% 10%, -10% 10%; }
  100% { background-position: 0 0, 0 0; }
}

.animated-grain {
  animation: film-grain 1s steps(10) infinite;
}

@keyframes text-flicker {
  0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
    opacity: 0.99;
    text-shadow: none;
  }
  20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
    opacity: 0.4;
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
  }
}

.flicker {
  animation: text-flicker 5s infinite;
}

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

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes button-glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(-1px, -1px); }
  60% { transform: translate(2px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

.btn:hover, .play-btn:hover, .signup-form button:hover {
  animation: button-glitch 0.2s cubic-bezier(.25, .46, .45, .94) both;
}

/* ============ FAN WALL ============ */
.fan-wall {
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.scattered-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 60px;
  padding: 20px;
}

.photo-card {
  position: relative;
  background: #ddd; /* vintage photo paper */
  padding: 10px 10px 45px 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  transform: translate(var(--x), var(--y)) rotate(var(--rotation));
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), z-index 0s;
  z-index: 1;
  width: 250px;
  border-radius: 2px;
}

.photo-card:hover {
  transform: translate(0, -10px) rotate(0deg) scale(1.05);
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) contrast(110%) sepia(10%);
}

.photo-caption {
  color: #121214;
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
}

/* Masking tape effect */
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--tape-rot));
  width: 90px;
  height: 25px;
  background: rgba(230, 230, 230, 0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  z-index: 2;
  mix-blend-mode: screen;
}


/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 12, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  filter: grayscale(15%) contrast(110%) sepia(10%);
  border-radius: 2px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 10000;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: #fff;
}

.photo-card {
  cursor: zoom-in;
}

/* Staggered entry animation */
@keyframes photo-drop {
  0% { transform: translate(var(--x), calc(var(--y) - 50px)) rotate(calc(var(--rotation) * 2)); opacity: 0; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--rotation)); opacity: 1; }
}

.scattered-gallery.in-view .photo-card {
  animation: photo-drop 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes float-swing {
  0%, 100% { transform: translate(var(--x), var(--y)) rotate(calc(var(--rotation) - 4deg)); }
  33% { transform: translate(calc(var(--x) + 4px), calc(var(--y) - 12px)) rotate(calc(var(--rotation) + 2deg)); }
  66% { transform: translate(calc(var(--x) - 4px), calc(var(--y) - 6px)) rotate(calc(var(--rotation) + 4deg)); filter: brightness(1.1); }
}

.float {
  animation: float-swing 6s ease-in-out infinite;
  transform-origin: top center;
}

/* Camera Flash */
.camera-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
}

.camera-flash.flash-active {
  opacity: 1;
  transition: none; /* instant flash */
}

/* Tape flicker */
@keyframes tape-flicker {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.5; }
}
.tape {
  animation: tape-flicker 4s infinite alternate;
}

@keyframes slow-pan {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2px, 2px); }
}


/* ============ SETLIST ============ */
.setlist-section {
  background: transparent;
  padding: 6rem 1rem;
  text-align: center;
}

.setlist-paper {
  background: var(--paper);
  color: var(--ink);
  max-width: 400px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform-origin: top center;
  --rotation: 2deg;
  --x: 0px;
  --y: 0px;
  filter: url(#distress-filter);
}

.tape-top {
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 120px;
}

.tape-bottom {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 100px;
}

.setlist-content {
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.6;
}

.act-title {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-decoration: underline;
}

.setlist-content ol {
  list-style-type: decimal-leading-zero;
  padding-left: 1.5rem;
  margin: 0;
}

.setlist-content li {
  margin-bottom: 0.3rem;
}

/* ============ MOVIE CREDITS ============ */
.movie-credits-wrapper {
  padding: 4rem 1rem 2rem;
  text-align: center;
  background: var(--bg);
}

.movie-credits {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif; /* Fallback to clean sans */
}

.movie-credits p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 3rem;
  text-transform: lowercase;
  /* The "Movie Poster" squish effect */
  transform: scaleY(2) scaleX(0.7);
  letter-spacing: 2px;
  transform-origin: center top;
}


/* ============ NEW ANIMATIONS & VIDEO ============ */

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--ink);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease;
}

/* Nav Glitch */
@keyframes text-glitch {
  0% { transform: translate(0); text-shadow: 0 0 0 transparent; }
  20% { transform: translate(-2px, 1px); text-shadow: 1px 0 0 rgba(255,0,0,0.5), -1px 0 0 rgba(0,0,255,0.5); }
  40% { transform: translate(2px, -1px); text-shadow: -1px 0 0 rgba(255,0,0,0.5), 1px 0 0 rgba(0,0,255,0.5); }
  60% { transform: translate(-1px, 2px); text-shadow: 1px 0 0 rgba(0,0,255,0.5), -1px 0 0 rgba(255,0,0,0.5); }
  80% { transform: translate(1px, -2px); text-shadow: -1px 0 0 rgba(0,0,255,0.5), 1px 0 0 rgba(255,0,0,0.5); }
  100% { transform: translate(0); text-shadow: 0 0 0 transparent; }
}

.nav-links a:hover {
  animation: text-glitch 0.3s infinite;
  color: var(--ink);
}

/* Video Styling */
.trailer-video {
  width: 100%;
  height: auto;
  display: block;
  filter: url(#distress-filter) grayscale(20%) sepia(10%);
  border-radius: 4px;
}
.actual-video {
  padding: 0;
  border: 4px solid var(--ink);
  background: #000;
}


/* ============ TRAILER ANIMATIONS ============ */
.actual-video {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(0,0,0,0.9); /* CRT Glow */
  animation: vhs-glitch 6s infinite;
}

@keyframes vhs-glitch {
  0%, 96%, 98%, 100% { transform: translateX(0); }
  97% { transform: translateX(4px); filter: brightness(1.2); }
  99% { transform: translateX(-4px); filter: contrast(1.5); }
}

.custom-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: rgba(10, 10, 12, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  animation: pulse-play 2.5s infinite;
  backdrop-filter: blur(4px);
}

.custom-play-overlay:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(1.1);
  border-color: #fff;
}

@keyframes pulse-play {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Cinematic Entrance */
.reveal-cinematic {
  opacity: 0;
  transform: scale(1.05);
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-cinematic.in-view {
  opacity: 1;
  transform: scale(1);
}


/* ============ TRAILER BACKGROUND EFFECTS ============ */
.trailer {
  position: relative;
  /* Removed the hard background color so the animated typography flows seamlessly behind it */
}

.trailer::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vw;
  height: 150vh;
  /* Massive, moody purple/blue cinematic spotlight */
  background: radial-gradient(circle, rgba(100, 80, 200, 0.15) 0%, rgba(0,0,0,0) 50%);
  z-index: 0;
  pointer-events: none;
  animation: spotlight-pulse 8s infinite alternate ease-in-out;
}

@keyframes spotlight-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.trailer * {
  position: relative;
  z-index: 1;
}


/* ============ BACKGROUND TYPOGRAPHY ============ */
.bg-typography {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  pointer-events: none;
  opacity: 0.04; /* Extremely subtle watermark */
  font-family: 'Special Elite', monospace;
  font-size: clamp(6rem, 15vw, 12rem);
  white-space: nowrap;
  color: var(--paper);
  user-select: none;
  /* Smoothly fade out the text at the top and bottom of the screen to blend perfectly */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
  /* Softly blend into the colors and noise behind it */
  mix-blend-mode: overlay;
}

.marquee-row {
  display: flex;
  gap: 2rem;
  width: max-content;
}

.scroll-left {
  animation: marquee-left 60s linear infinite;
}

.scroll-right {
  animation: marquee-right 70s linear infinite;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


/* ============ THEATER MODE ============ */




.theater-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater-mode.active {
  opacity: 1;
  pointer-events: auto;
}

.theater-mode .trailer-video {
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  object-fit: contain;
  outline: none;
  filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  cursor: pointer;
}

/* ============ THEATER BUTTON ============ */
.theater-btn {
  background: rgba(10, 10, 12, 0.7);
  color: var(--paper);
  font-family: 'Special Elite', monospace;
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  padding: 1rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  text-transform: lowercase;
}
.theater-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
  border-color: #fff;
}
