/* ============================================================
   ANIMATIONS.CSS — Scroll reveal, transitions
   ============================================================ */

/* ------------------------------------------------------------
   Scroll reveal — elements fade up into view
   JS adds .visible class when element enters viewport
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delay for grid children */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Hero elements animate in on page load */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow         { animation: fadeUp 0.6s ease 0.1s both; }
.hero-name            { animation: fadeUp 0.6s ease 0.2s both; }
.hero-title           { animation: fadeUp 0.6s ease 0.3s both; }
.hero-bio             { animation: fadeUp 0.6s ease 0.4s both; }
.hero-availability-text { animation: fadeUp 0.6s ease 0.5s both; }
.hero-cta             { animation: fadeUp 0.6s ease 0.6s both; }

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

  html {
    scroll-behavior: auto;
  }
}
