/* ==========================================================================
   Animations — staggered reveals
   ========================================================================== */

.fade-in      { animation: fade-in var(--dur-slow) var(--ease-out) both; }
.rise-in      { animation: rise-in var(--dur-slow) var(--ease-out) both; }
.scale-in     { animation: scale-in var(--dur-slow) var(--ease-spring) both; }

.stagger > * { animation: rise-in var(--dur-slow) var(--ease-out) both; }
.stagger > *:nth-child(1)  { animation-delay:  30ms; }
.stagger > *:nth-child(2)  { animation-delay:  60ms; }
.stagger > *:nth-child(3)  { animation-delay:  90ms; }
.stagger > *:nth-child(4)  { animation-delay: 120ms; }
.stagger > *:nth-child(5)  { animation-delay: 150ms; }
.stagger > *:nth-child(6)  { animation-delay: 180ms; }
.stagger > *:nth-child(7)  { animation-delay: 210ms; }
.stagger > *:nth-child(8)  { animation-delay: 240ms; }
.stagger > *:nth-child(n+9){ animation-delay: 270ms; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

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