/* ORIGINS TECH — animations.css: keyframes, revelações e microinterações.
   Tudo é desativado em prefers-reduced-motion. */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }
@keyframes blob { to { border-radius: 58% 42% 40% 60% / 56% 60% 40% 44%; transform: rotate(4deg) scale(1.03); } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: none; } }

/* revelação ao rolar */
.js [data-reveal] { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal='up'] { transform: translateY(32px); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='left'] { transform: translateX(-32px); }
.js [data-reveal='right'] { transform: translateX(32px); }
.js [data-reveal='scale'] { transform: scale(0.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* títulos divididos em palavras */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.word__in { display: inline-block; }
.js .word__in { transform: translateY(110%); transition: transform 0.8s var(--ease); transition-delay: calc(var(--word-index, 0) * 55ms); }
.js .split.is-in .word__in, .js .hero.is-ready .word__in { transform: none; }
.hero__title .word { padding-right: 0.06em; }

/* hero */
/* mesma entrada de antes (0.8s, 18px, mesmos atrasos), mas em CSS puro: começa na primeira pintura,
   sem esperar os scripts — melhora o LCP em celulares/conexões lentas */
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero-anim { animation: heroIn 0.8s var(--ease) var(--anim-delay, 0ms) both; }
.js .stage { opacity: 0; transform: translateY(26px) scale(0.98); transition: opacity 1s var(--ease) 0.3s, transform 1s var(--ease) 0.3s; }
.js .hero.is-ready .stage { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero-anim, .js .stage { opacity: 1 !important; transform: none !important; }
  .js .word__in { transform: none !important; }
  .marquee__track { transform: none; }
}

/* pausa animações infinitas fora da tela (economia de CPU/bateria) */
.is-paused, .is-paused * { animation-play-state: paused !important; }
