/* Shared motion: hero entrance and scroll reveal (see motion.js). Nothing moves for visitors who ask for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  .hero > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero > :nth-child(2) { animation-delay: 0.08s; }
  .hero > :nth-child(3) { animation-delay: 0.16s; }
  .hero > :nth-child(4) { animation-delay: 0.24s; }
  .hero > :nth-child(n + 5) { animation-delay: 0.32s; }

  /* Hidden instantly; the transition is set on the visible state only, so it plays when revealing. */
  [data-reveal] { opacity: 0; transform: translateY(24px); }
  [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--reveal-delay, 0ms); }
}
