/* ═══════════════════════════════════════════════════════════════
   NIGHTFALL EXPRESS — Animations
   Keyframes, hero effects, reveal animations, transitions.
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

@keyframes starDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(-4px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Hero entrance animations ────────────────────────────────── */
.hero-eyebrow {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.1s;
}
.hero-title {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.25s;
}
.hero-sub {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.4s;
}
.hero-cta {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.55s;
}
.hero-logo-wrap {
  animation: fadeIn 1s ease both;
  animation-delay: 0.3s;
}

/* ── Logo glow ───────────────────────────────────────────────── */
.logo-glow {
  animation: glowPulse 4s ease-in-out infinite;
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.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; }

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