/* ============================================================
   FADE-IN ON SCROLL — used by src/components/FadeIn.tsx
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-default), transform 0.6s var(--ease-default);
  will-change: opacity, transform;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Belt-and-suspenders: FadeIn.tsx already skips the animation in JS when
   prefers-reduced-motion is set, but this covers the brief window before
   that effect runs (and any other .fade-in usage that doesn't). */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
