/* ─── Reveal on scroll ─────────────────────────────────────────────── */
.reveal,
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0, 0, 1),
    transform 0.7s cubic-bezier(0.2, 0, 0, 1);
  will-change: opacity, transform;
}

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

/* Staggered children */
.stagger-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0, 0, 1),
    transform 0.6s cubic-bezier(0.2, 0, 0, 1);
}

.stagger-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Modal ────────────────────────────────────────────────────────── */
/* Modal styles live in input.css (.modal / .modal-panel). Legacy classes
   below are kept as no-ops so any stale markup still works. */
.modal-backdrop {
  display: none;
}

/* ─── Reduce motion ────────────────────────────────────────────────── */
@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,
  .fade-in-section,
  .stagger-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-track {
    animation: none !important;
  }
}
