/* Scroll-reveal + entrance animations. Animate transform/opacity only. */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gentle stagger inside grids of revealed cards */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.08s; }
.grid .reveal:nth-child(5) { transition-delay: 0.16s; }
.grid .reveal:nth-child(6) { transition-delay: 0.24s; }

/* Hero staggered fade-up on load — CSS only, no JS */
.hero-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards;
}
.hero-fade-up:nth-child(1) { animation-delay: 0.05s; }
.hero-fade-up:nth-child(2) { animation-delay: 0.15s; }
.hero-fade-up:nth-child(3) { animation-delay: 0.25s; }
.hero-fade-up:nth-child(4) { animation-delay: 0.35s; }
.hero-fade-up:nth-child(5) { animation-delay: 0.45s; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
