/* Motion graphics — Congresso Internacional de Ozonioterapia
   Só anima para quem não pediu "reduzir movimento" no aparelho. */
@media (prefers-reduced-motion: no-preference){

  /* 1. Entrada do topo */
  .m-ready .hero-copy > *{opacity:0;translate:0 22px;animation:m-up .9s cubic-bezier(.2,.7,.2,1) forwards}
  .m-ready .hero-copy > *:nth-child(1){animation-delay:.10s}
  .m-ready .hero-copy > *:nth-child(2){animation-delay:.22s}
  .m-ready .hero-copy > *:nth-child(3){animation-delay:.34s}
  .m-ready .hero-copy > *:nth-child(4){animation-delay:.46s}
  .m-ready .hero-copy > *:nth-child(5){animation-delay:.58s}
  .m-ready .hero-copy > *:nth-child(6){animation-delay:.70s}
  .m-ready .hero-copy > *:nth-child(7){animation-delay:.82s}
  .m-ready .hero-copy > *:nth-child(8){animation-delay:.94s}
  .m-ready .hero-art{opacity:0;scale:.92;translate:40px 0;animation:m-art 1.1s .3s cubic-bezier(.2,.7,.2,1) forwards}
  .m-ready .hero-art::before{animation:m-ring 1.6s .7s cubic-bezier(.2,.7,.2,1) both}
  @keyframes m-up{to{opacity:1;translate:0 0}}
  @keyframes m-art{to{opacity:1;scale:1;translate:0 0}}
  @keyframes m-ring{from{opacity:0;rotate:-8deg;scale:.9}to{opacity:1;rotate:0deg;scale:1}}

  /* 2. Linhas douradas se desenhando */
  .m-ready .hero-deco-l path,.m-ready .deco-l path,.m-ready .final-deco path{stroke-dasharray:1700;stroke-dashoffset:1700;animation:m-draw 2.6s .4s cubic-bezier(.4,0,.2,1) forwards}
  .m-ready .hero-deco-l path + path,.m-ready .deco-l path + path{animation-delay:.8s}
  @keyframes m-draw{to{stroke-dashoffset:0}}

  /* 3. Moléculas flutuando */
  .hero-deco-r,.deco-r{animation:m-float 7s ease-in-out infinite}
  .hero-deco-r circle,.deco-r circle{transform-box:fill-box;transform-origin:center;animation:m-breathe 4.5s ease-in-out infinite}
  .hero-deco-r circle:nth-of-type(2),.deco-r circle:nth-of-type(2){animation-delay:-1.5s}
  .hero-deco-r circle:nth-of-type(3),.deco-r circle:nth-of-type(3){animation-delay:-3s}
  @keyframes m-float{0%,100%{translate:0 0;rotate:0deg}50%{translate:-6px -16px;rotate:5deg}}
  @keyframes m-breathe{0%,100%{scale:1}50%{scale:1.08}}

  /* 4. Seções aparecendo na rolagem */
  .m-ready .reveal{opacity:0;translate:0 32px;transition:opacity .8s ease,translate .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
  .m-ready .reveal.in{opacity:1;translate:0 0}
  .m-ready .reveal-zoom{opacity:0;scale:.94;transition:opacity .9s ease,scale .9s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
  .m-ready .reveal-zoom.in{opacity:1;scale:1}

  /* 5. Pulso dourado nos botões principais */
  .hero-ctas .btn-gold,.ticket.featured .btn,.sticky-buy .btn{animation:m-pulse 2.6s 2s ease-out infinite}
  @keyframes m-pulse{0%{box-shadow:0 0 0 0 rgba(212,168,56,.55)}70%{box-shadow:0 0 0 16px rgba(212,168,56,0)}100%{box-shadow:0 0 0 0 rgba(212,168,56,0)}}

  /* 6. Brilho passando nos botões */
  .btn{position:relative;overflow:hidden;isolation:isolate}
  .btn::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.38) 50%,transparent 70%);translate:-130% 0;transition:translate .8s ease;pointer-events:none}
  .btn:hover::after{translate:130% 0}
  .btn[aria-disabled="true"]::after{display:none}

  /* 7. Cards levantam ao passar o mouse */
  .event,.why,.soon,.cred,.ticket:not(.featured),.link{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease}
  .event:hover,.why:hover,.soon:hover,.ticket:not(.featured):hover{transform:translateY(-6px);box-shadow:0 28px 60px rgba(20,42,107,.14)}
  .cred:hover{transform:translateY(-3px)}
  .gallery img{transition:transform .6s cubic-bezier(.2,.7,.2,1),filter .6s ease}
  .gallery img:hover{transform:scale(1.03);filter:saturate(1.1)}
  .play{animation:m-play 2.2s ease-in-out infinite}
  @keyframes m-play{0%,100%{box-shadow:0 0 0 14px rgba(212,168,56,.25)}50%{box-shadow:0 0 0 24px rgba(212,168,56,.12)}}

  /* 8. Faixa do evento com brilho sutil */
  .event-band{background-image:linear-gradient(110deg,transparent 40%,rgba(255,255,255,.12) 50%,transparent 60%);background-size:250% 100%;animation:m-band 6s linear infinite}
  @keyframes m-band{from{background-position:150% 0}to{background-position:-100% 0}}
}
