/* ==========================================================================
   WEBAURA — Motion. Purposeful, GPU-friendly (transform/opacity only),
   disabled under prefers-reduced-motion.
   ========================================================================== */
@keyframes heroDrift { from { transform: scale(1.12) translate3d(0,0,0); } to { transform: scale(1.03) translate3d(-1%, 0, 0); } }
@keyframes lineUp { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { top: -40%; } 100% { top: 100%; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

/* Hero entrance (only when JS is running) */
.js .hero__img { animation: heroDrift 14s var(--ease) forwards; }
.js .hero__title .ln > span { transform: translate3d(0, 108%, 0); animation: lineUp 1.2s var(--ease) forwards; }
.js .hero__title .ln:nth-child(1) > span { animation-delay: .15s; }
.js .hero__title .ln:nth-child(2) > span { animation-delay: .28s; }
.js .hero__title .ln:nth-child(3) > span { animation-delay: .41s; }
.js .hero__title .ln:nth-child(4) > span { animation-delay: .54s; }
.js [data-enter] { opacity: 0; animation: fadeUp 1s var(--ease) forwards; animation-delay: calc(.7s + var(--i, 0) * .12s); }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Page transitions */
.js body { animation: fade .5s var(--ease) both; }
.curtain { position: fixed; inset: 0; z-index: 999; pointer-events: none; background: var(--bg); opacity: 0; transition: opacity .3s var(--ease); }
.curtain.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .hero__img { animation: none; transform: none; }
  .js .hero__title .ln > span, .js [data-enter], .js [data-reveal] { opacity: 1; transform: none; animation: none; }
    .browser:hover .browser__screen img.scrolls { transform: none; }
}
