/* MGF Motion: estilos do motor (assets/js/motion.js). Contrato e API: ver topo do motion.js.
   Só anima transform (translate/scale individuais), opacity, clip-path e filter leve.
   Estado oculto SÓ existe sob .mo-on (classe que o JS põe no <html>); sem JS ou com
   prefers-reduced-motion o conteúdo fica visível e estático. */
:root { --mo-ease: cubic-bezier(.16, 1, .3, 1); --mo-dur: 1000ms; }

/* ---------- reveal / stagger ---------- */
.mo-on .mo-r {
  transition: opacity var(--mo-dur) var(--mo-ease) var(--mo-d, 0ms),
              translate var(--mo-dur) var(--mo-ease) var(--mo-d, 0ms),
              scale var(--mo-dur) var(--mo-ease) var(--mo-d, 0ms),
              filter var(--mo-dur) var(--mo-ease) var(--mo-d, 0ms),
              clip-path calc(var(--mo-dur) * 1.1) var(--mo-ease) var(--mo-d, 0ms);
}
.mo-on .mo-r:not(.mo-in) {
  opacity: 0;
  translate: var(--mo-x, 0px) var(--mo-y, 28px);
  scale: var(--mo-s, 1);
  filter: blur(var(--mo-b, 0px));
}
.mo-on .mo-r.mo-clip:not(.mo-in) { clip-path: var(--mo-clip); }
.mo-on .mo-r.mo-clip.mo-in { clip-path: inset(0 0 0 0); }
.mo-on .mo-r.mo-in.mo-done { transition: none; clip-path: none; } /* libera sombras/hover depois de revelado */

/* ---------- parallax / scrub / counter ---------- */
.mo-par { will-change: translate; }
.mo-cnt { font-variant-numeric: tabular-nums; }

/* x lateral nunca gera rolagem horizontal */
.mo-on body { overflow-x: clip; }

/* ---------- HERO: coreografia de entrada (CSS puro; termina sempre visível) ---------- */
@keyframes mo-up    { from { opacity: 0; translate: 0 26px; } }
@keyframes mo-word  { from { translate: 0 108%; } }
@keyframes mo-blk   { from { opacity: 0; translate: 0 40px; filter: blur(10px); } }
@keyframes mo-pill  { from { opacity: 0; clip-path: inset(0 100% 0 0 round 999px); } to { opacity: 1; clip-path: inset(-6px -6px -6px -6px round 999px); } }
@keyframes mo-art   { from { opacity: 0; scale: 1.07; filter: blur(8px); } }
@keyframes mo-glow  { from { opacity: 0; scale: .85; } }
@keyframes mo-hold  { from { opacity: 0; } to { opacity: 0; } }

.hero__pill { animation: mo-pill 1.1s .05s var(--mo-ease) backwards; }
.hero h1 { animation: mo-hold .14s linear backwards; } /* segura o h1 até o JS dividir as palavras; sem JS, aparece em 140ms */
.hero__lede { animation: mo-up 1.1s .75s var(--mo-ease) backwards; }
.hero__cta  { animation: mo-up 1.1s .95s var(--mo-ease) backwards; }
.hero .proof__item { animation: mo-up 1.2s calc(1.15s + var(--i, 0) * 110ms) var(--mo-ease) backwards; }
.hero__art img { animation: mo-art 1.6s .2s var(--mo-ease) backwards; }
.hero::before { animation: mo-glow 2s .1s var(--mo-ease) backwards; }

.mo-w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.mo-wi { display: inline-block; animation: mo-word 1.15s calc(.18s + var(--i, 0) * 80ms) var(--mo-ease) backwards; }
.mo-blk { animation: mo-blk 1.3s .55s var(--mo-ease) backwards; }

/* ---------- movimento reduzido / impressão: tudo estático e visível ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__pill, .hero h1, .hero__lede, .hero__cta, .hero .proof__item, .hero__art img, .hero::before, .mo-wi, .mo-blk { animation: none !important; }
  .mo-r, .mo-r:not(.mo-in) { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; clip-path: none !important; transition: none !important; }
  .mo-par { translate: none !important; }
}
@media print {
  .mo-r, .mo-r:not(.mo-in) { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; clip-path: none !important; }
}
