/*
 * animations.css — keyframe animations and transitions
 *
 * All transitions for interactive components (FAQ, nav) live in components.css.
 * This file handles entrance animations only.
 *
 * → In NextJS: global animations stay in globals.css or a shared animations file
 */

/* ─── Keyframes ──────────────────────────────────────────────────────────── */

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Hero Entrance (staggered) ──────────────────────────────────────────── */

.hero__flourish {
  animation: fadeIn 1s ease both;
  animation-delay: 0.1s;
}

.hero__eyebrow {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.3s;
}

.hero__names {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 0.45s;
}

.hero__subtitle {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.6s;
}

.hero__meta {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.75s;
}

.hero__countdown {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.9s;
}

.hero__photos {
  animation: fadeInUp 0.9s ease both;
  animation-delay: 1.1s;
}

/* ─── Accessibility: Respect prefers-reduced-motion ─────────────────────── */

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