/* === animations.css — Page-load entrance ===
   Loaded after custom.css. Must not conflict with .reveal / .in-view system. */

/* -------------------------------------------------------
   Page-load entrance (.hero-entrance)
   ------------------------------------------------------- */

/* Before body gets .page-loaded — elements are invisible & shifted down */
body:not(.page-loaded) .hero-entrance {
  opacity: 0;
  transform: translateY(24px);
}

/* After .page-loaded — transition in with per-element delay */
body.page-loaded .hero-entrance {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--entrance-delay, 0ms);
}

/* -------------------------------------------------------
   Reduced motion — respect OS preference
   ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-entrance {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
