/* =============================================================================
   Movimento da tipografia — LE CIRQUE (09/11/2026)

   Referência da Alexia: pin 753719687667762547 (site "MEW"): a tipografia conduz a rolagem.
   Movimentos mapeados e como entraram aqui, no visual que já estava aprovado (veludo,
   dourado, cabeçalho vermelho) e sem mexer na compra (modelo Shotgun):
     1. palavra gigante entrando           → títulos letra por letra (.mv-letras)
     2. letra trocada em cor no título     → uma letra dourada que troca de lugar (.mv-acento)
     3. faixa de texto enorme de lado      → letreiro do circo correndo com a rolagem (.mv-letreiro)
     4. texto datilografado com cursor »   → a frase de abertura do espetáculo (.mv-datilo)
     5. números contando                   → preços dos lotes (.mv-conta, só JS)
     6. recorte em forma entre as seções   → lambrequim de lona de circo (.mv-lambrequim)
     7. holofote revelando                 → aviso "Na noite do espetáculo" (.mv-holofote)
     8. palavra gigante subindo no rodapé  → LE CIRQUE gigante (.mv-gigante)
   Peças decorativas: aria-hidden e pointer-events: none (overlay invisível engole toque).
   Com "reduzir movimento" no aparelho, tudo aparece pronto e parado.
   ============================================================================= */

/* ---------- 1 e 2: títulos letra por letra ---------- */
.mv-letras .mv-p { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em; margin-bottom: -.1em; }
.mv-letras .mv-l { display: inline-block; transform: translateY(108%); transition: transform .62s cubic-bezier(.2, .8, .2, 1), color .3s;
  transition-delay: calc(var(--i, 0) * 28ms); will-change: transform; }
.mv-letras.mv-vista .mv-l { transform: none; }
.mv-letras .mv-l.mv-acento { color: var(--ouro-claro, #E4C886); font-variation-settings: 'wdth' 75; transform: skewX(-9deg); }
.mv-letras .mv-l.mv-vira { animation: mv-vira .42s ease-in-out; }
@keyframes mv-vira { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0) skewX(-9deg); } }

/* ---------- entrada de bloco (parágrafos, cartões) ---------- */
.mv-sobe { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.mv-sobe.mv-vista { opacity: 1; transform: none; }

/* ---------- 3: letreiro ---------- */
.mv-letreiro { overflow: hidden; pointer-events: none; user-select: none; padding: 6px 0 2px; background: var(--noite, #120c0e); }
.mv-letreiro .mv-faixa { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.mv-letreiro .mv-faixa span { font-family: Archivo, system-ui, sans-serif; font-variation-settings: 'wdth' 125; font-weight: 800; text-transform: uppercase;
  font-size: clamp(46px, 12vw, 112px); line-height: .92; letter-spacing: -.01em; padding-right: .35em; }
.mv-letreiro .mv-faixa .cheio { color: var(--ouro, #C9A24B); }
.mv-letreiro .mv-faixa .vazado { color: transparent; -webkit-text-stroke: 1.4px rgba(228, 200, 134, .75); }
.mv-letreiro .mv-faixa .estrela { color: var(--cortina, #7A1224); -webkit-text-stroke: 1px rgba(228, 200, 134, .6); }
.mv-letreiro + .mv-letreiro { padding-top: 0; }

/* ---------- 4: datilografado ---------- */
.mv-datilo .mv-cursor { color: var(--ouro, #C9A24B); font-style: normal; margin-left: .08em; animation: mv-pisca .9s steps(1) infinite; }
.mv-datilo.mv-pronto .mv-cursor { animation: mv-pisca .9s steps(1) 3 forwards; }
@keyframes mv-pisca { 50% { opacity: 0; } }

/* ---------- 6: lambrequim (borda recortada da lona) ---------- */
.mv-lambrequim { position: relative; height: 22px; margin-top: -1px; pointer-events: none; transform-origin: top; transform: scaleY(0);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1); z-index: 2; }
.mv-lambrequim.mv-vista { transform: scaleY(1); }
.mv-lambrequim::before, .mv-lambrequim::after { content: ''; position: absolute; left: 0; right: 0; top: 0; }
.mv-lambrequim::before { height: 22px; background: var(--ouro, #C9A24B);
  -webkit-mask: radial-gradient(22px at 50% 0, #000 98%, transparent 100%) 0 0 / 44px 22px repeat-x;
          mask: radial-gradient(22px at 50% 0, #000 98%, transparent 100%) 0 0 / 44px 22px repeat-x; }
.mv-lambrequim::after { height: 19px; background: linear-gradient(180deg, #8f1830, var(--cortina, #7A1224) 60%, #4d0a17);
  -webkit-mask: radial-gradient(19px at 50% 0, #000 98%, transparent 100%) 0 0 / 44px 19px repeat-x;
          mask: radial-gradient(19px at 50% 0, #000 98%, transparent 100%) 0 0 / 44px 19px repeat-x;
  -webkit-mask-position: 3px 0; mask-position: 3px 0; }
.mv-lambrequim.mv-cima { transform-origin: bottom; margin: 0 0 -1px; }
.mv-lambrequim.mv-cima::before, .mv-lambrequim.mv-cima::after { top: auto; bottom: 0; }
.mv-lambrequim.mv-cima::before { -webkit-mask-image: radial-gradient(22px at 50% 100%, #000 98%, transparent 100%); mask-image: radial-gradient(22px at 50% 100%, #000 98%, transparent 100%); }
.mv-lambrequim.mv-cima::after { background: linear-gradient(0deg, #8f1830, var(--cortina, #7A1224) 60%, #4d0a17);
  -webkit-mask-image: radial-gradient(19px at 50% 100%, #000 98%, transparent 100%); mask-image: radial-gradient(19px at 50% 100%, #000 98%, transparent 100%); }

/* ---------- 7: holofote ---------- */
.mv-holofote { position: relative; overflow: hidden; isolation: isolate; }
.mv-holofote::before { content: ''; position: absolute; inset: -40% -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 233, 180, .22), rgba(255, 233, 180, .06) 55%, transparent 72%) no-repeat;
  background-size: 46% 100%; background-position: -60% 50%; opacity: 0; }
.mv-holofote.mv-vista::before { animation: mv-varre 2.6s cubic-bezier(.45, 0, .2, 1) .2s forwards, mv-respira 5s ease-in-out 2.8s infinite; }
@keyframes mv-varre { 0% { opacity: 0; background-position: -60% 50%; } 15% { opacity: 1; } 70% { background-position: 130% 50%; } 100% { opacity: 1; background-position: 50% 50%; } }
@keyframes mv-respira { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* ---------- 8: palavra gigante no rodapé ---------- */
.mv-gigante { position: relative; overflow: hidden; pointer-events: none; user-select: none; margin-top: 30px; padding-bottom: 14px; }
.mv-gigante span { display: block; text-align: center; font-family: Archivo, system-ui, sans-serif; font-variation-settings: 'wdth' 125; font-weight: 800;
  font-size: 17vw; line-height: .78;   /* motion.js ajusta à largura */ letter-spacing: -.02em; white-space: nowrap; padding-top: .06em;
  color: var(--ouro, #C9A24B);
  transform: translateY(var(--mv-sobe, 55%)); will-change: transform; }

/* ---------- menos movimento: tudo pronto e parado ---------- */
@media (prefers-reduced-motion: reduce) {
  .mv-letras .mv-l, .mv-sobe { transform: none !important; opacity: 1 !important; transition: none !important; }
  .mv-letras .mv-l.mv-acento { transform: skewX(-9deg) !important; }
  .mv-lambrequim { transform: none; transition: none; }
  .mv-holofote::before { animation: none !important; opacity: 1; background-position: 50% 50%; }
  .mv-gigante span { transform: none; }
  .mv-datilo .mv-cursor { animation: none; }
}
