/* ==========================================================================
   JETA Performance — estados iniciais e animações em CSS
   Os estados escondidos só valem com html.has-motion (GSAP carregou e o
   usuário não pediu movimento reduzido). Sem isso, tudo aparece normal.
   ========================================================================== */

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes enter-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Faixa contínua de prints (o JS duplica o conjunto para o loop ficar perfeito) */
.prints__row { animation: marquee 60s linear infinite; }
.prints__row--reverse { animation-name: marquee-rev; animation-duration: 70s; }
.prints:hover .prints__row { animation-play-state: paused; }

.lightbox:not([hidden]) .lightbox__stage > * { animation: lb-in 0.45s var(--ease-out) both; }

/* Estados iniciais (evitam "piscar" antes do GSAP rodar) */
.has-motion [data-hero-fade] { opacity: 0; }
.has-motion .hero__title:not(.is-split) { visibility: hidden; }
.has-motion [data-hero-media] { opacity: 0; }
.has-motion [data-reveal] { opacity: 0; }
.has-motion .header { opacity: 0; }

/* Cursor contextual só existe com mouse */
html:not(.has-cursor) .video-card, html:not(.has-cursor) .final__link { cursor: pointer; }
html:not(.has-cursor) .cursor { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prints__row { animation: none; }
  .prints { overflow-x: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
