/* ==========================================================================
   PONTÕES CAPIXABAS — Animações
   Todas as animações respeitam prefers-reduced-motion (ver final do arquivo).
   ========================================================================== */

@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes waRing {
  0% { transform: scale(1); opacity: .8; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 24px -12px rgba(255, 119, 45, .8), 0 0 0 0 rgba(255, 119, 45, .45); }
  50% { box-shadow: 0 10px 24px -12px rgba(255, 119, 45, .8), 0 0 0 12px rgba(255, 119, 45, 0); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}
@keyframes glide {
  0% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(-40px, -18px) rotate(3deg); }
  100% { transform: translate(0, 0) rotate(-4deg); }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); clip-path: inset(-30% 0 100% 0); }
  to { opacity: 1; transform: none; clip-path: inset(-30% -5% -30% -5%); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Entrada do hero */
.hero .hero-kicker { animation: fadeUp .8s .1s var(--ease) both; }
.hero .hero-title .line { animation: heroIn 1s var(--ease) both; }
.hero .hero-title .line:nth-child(2) { animation-delay: .15s; }
.hero .hero-script { animation: fadeUp .9s .45s var(--ease) both; }
.hero .hero-desc { animation: fadeUp .9s .6s var(--ease) both; }
.hero .btn-row { animation: fadeUp .9s .75s var(--ease) both; }
.hero-badge { animation: fadeUp 1s .9s var(--ease) both; }

/* Elementos que flutuam */
.float { animation: floaty 5s ease-in-out infinite; }
.sticker.float { --r: -3deg; }
.sticker--r.float { --r: 4deg; }
.glider { animation: glide 14s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* Scroll reveal ------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal="left"] { transform: translateX(-46px); }
.js [data-reveal="right"] { transform: translateX(46px); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Preserva deslocamentos de composição após o reveal */
.js .intro-collage .c-2[data-reveal].is-visible { transform: translateY(-8%); }
.js .intro-collage .c-3[data-reveal].is-visible { transform: translateY(6%); }
@media (min-width: 1101px) {
  .js .xp-card:nth-child(even)[data-reveal].is-visible { transform: translateY(36px); }
  .js .xp-card:nth-child(even)[data-reveal].is-visible:hover { transform: translateY(28px); }
}
.js .xp-card[data-reveal].is-visible:hover { transform: translateY(-8px); }

/* Rabiscos "desenhados" na tela ---------------------------------------- */
.js svg.doodle path, .js .draw path {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.3s var(--ease) var(--draw-delay, .25s);
}
.js .is-drawn svg.doodle path, .js svg.doodle.is-drawn path, .js .draw.is-drawn path { stroke-dashoffset: 0; }
/* Trilha pontilhada: anima com máscara para preservar o tracejado */
.trail-divider.draw path { stroke-dasharray: 2 12 !important; stroke-dashoffset: 0 !important; }
.js .trail-divider { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease); }
.js .trail-divider.is-drawn { clip-path: inset(0 0 0 0); }

/* Respeito à preferência de movimento reduzido -------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .hero-media > *, .marquee-track, .hero-badge .badge-ring, .glider, .float { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js svg.doodle path, .js .draw path { stroke-dashoffset: 0; }
  .js .trail-divider { clip-path: none; }
}
