/* LEMA Corte a Laser — camada de animações da proposta
   Tudo aqui depende da classe .anima, que o script do <head> só põe quando o aparelho NÃO pede
   movimento reduzido (ou quando o endereço tem ?animacoes=1). Sem JavaScript, ou com movimento
   reduzido, o site aparece inteiro e parado. */

:root { --a0: .15s; }                 /* atraso das animações do topo */
.com-abertura { --a0: 1.75s; }        /* com a abertura, o topo entra quando a chapa se abre */

/* =========================================================
   ABERTURA: o laser corta a logomarca e a chapa se abre
   ========================================================= */
.abertura { display: none; }
.anima .abertura { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; animation: abertura-fim .01s linear 2.3s forwards; }
.anima.sem-abertura .abertura, .anima.abertura-feita .abertura { display: none; }
.abertura__placa { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--profundo); }
.abertura__placa::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(201, 207, 209, .11) 1.6px, transparent 2.2px); background-size: 26px 26px; }
.abertura__placa--a { top: 0; animation: placa-sobe .8s cubic-bezier(.75, 0, .2, 1) 1.45s forwards; }
.abertura__placa--b { bottom: 0; animation: placa-desce .8s cubic-bezier(.75, 0, .2, 1) 1.45s forwards; }
.abertura__placa--b::before { background-position: 0 13px; }
.abertura__corte { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: linear-gradient(90deg, rgba(255, 106, 26, 0), var(--laranja) 18%, #FFD9BF 50%, var(--laranja) 82%, rgba(255, 106, 26, 0)); box-shadow: 0 0 14px 2px rgba(255, 106, 26, .75); transform: scaleX(0); transform-origin: left; animation: corte-risca .5s cubic-bezier(.6, 0, .2, 1) 1.02s forwards, corte-some .45s ease 1.55s forwards; }
.abertura__marca { position: absolute; left: 50%; top: 50%; width: min(64vw, 430px); transform: translate(-50%, -50%); animation: marca-sai .55s cubic-bezier(.5, 0, .2, 1) 1.4s forwards; }
.abertura__logo { display: block; width: 100%; height: auto; clip-path: inset(-12% 100% -12% 0); animation: logo-corta .9s cubic-bezier(.55, .05, .35, 1) .18s forwards; }
.abertura__cabeca { position: absolute; top: -22%; bottom: -22%; left: 0; width: 3px; margin-left: -1px; background: linear-gradient(180deg, rgba(255, 176, 112, 0), #FFB070 28%, #FFFFFF 50%, #FFB070 72%, rgba(255, 176, 112, 0)); box-shadow: 0 0 14px 3px rgba(255, 106, 26, .9), 0 0 46px 10px rgba(255, 106, 26, .4); opacity: 0; animation: cabeca-anda .9s cubic-bezier(.55, .05, .35, 1) .18s forwards, cabeca-luz .9s linear .18s forwards; }
.abertura__cabeca i { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: #FFD2A8; opacity: 0; animation: faisca-ab .34s ease-out 3; }
.abertura__cabeca i:nth-child(1) { --dx: 22px; --dy: -26px; animation-delay: .2s; }
.abertura__cabeca i:nth-child(2) { --dx: 30px; --dy: 10px; animation-delay: .28s; }
.abertura__cabeca i:nth-child(3) { --dx: 14px; --dy: 30px; animation-delay: .24s; }
.abertura__cabeca i:nth-child(4) { --dx: 36px; --dy: -8px; animation-delay: .33s; }
.abertura__cabeca i:nth-child(5) { --dx: 10px; --dy: -34px; animation-delay: .3s; }
.abertura__cabeca i:nth-child(6) { --dx: 26px; --dy: 24px; animation-delay: .37s; }
.abertura__cabeca i:nth-child(7) { --dx: 40px; --dy: 4px; animation-delay: .22s; }
.abertura__cabeca i:nth-child(8) { --dx: 18px; --dy: -14px; animation-delay: .35s; }
@keyframes logo-corta { to { clip-path: inset(-12% 0 -12% 0); } }
@keyframes cabeca-anda { from { left: 0; } to { left: 100%; } }
@keyframes cabeca-luz { 0% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes faisca-ab { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
@keyframes corte-risca { to { transform: scaleX(1); } }
@keyframes corte-some { to { opacity: 0; } }
@keyframes marca-sai { to { opacity: 0; transform: translate(-50%, -50%) scale(.94); } }
@keyframes placa-sobe { to { transform: translateY(-101%); } }
@keyframes placa-desce { to { transform: translateY(101%); } }
@keyframes abertura-fim { to { visibility: hidden; } }

/* =========================================================
   TÍTULOS QUE SOBEM PALAVRA POR PALAVRA
   ========================================================= */
.pal { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }
.pal > span { display: inline-block; transform-origin: 0 100%; }
.anima .hero__titulo.dividido { animation: none; }
.anima .hero__titulo .pal > span { animation: pal-sobe 1s cubic-bezier(.2, .75, .15, 1) both calc(var(--a0) + var(--i) * 60ms); }
.anima .titulo.dividido .pal > span { transform: translateY(140%) rotate(3deg); transition: transform 1s cubic-bezier(.2, .75, .15, 1) calc(var(--i) * 45ms); }
.anima .titulo.dividido.visivel .pal > span { transform: none; }
@keyframes pal-sobe { from { transform: translateY(140%) rotate(4deg); } to { transform: none; } }

/* =========================================================
   TOPO (HERO)
   ========================================================= */
/* (as regras de entrada do topo estão repetidas aqui, fora da media query do site.css,
   para valerem também com ?animacoes=1 num aparelho com movimento reduzido) */
.anima .hero__titulo:not(.dividido) { animation: surge .9s var(--sai) both 2.4s; }   /* só se o JS não dividir o título */
.anima .topo__barra { animation: desce .8s var(--sai) both calc(var(--a0) + .05s); }
.anima .feixe__linha { animation: cortar 1.3s cubic-bezier(.6, 0, .2, 1) both calc(var(--a0) + .6s); }
.anima .feixe__ponto { animation: ponto 1.3s cubic-bezier(.6, 0, .2, 1) both calc(var(--a0) + .6s), pulsa 2.6s ease-in-out infinite calc(var(--a0) + 2s); }
.anima .feixe__faiscas i { animation: faisca .7s ease-out both; }
.anima .feixe__faiscas i:nth-child(1) { --dx: 26px; --dy: -18px; animation-delay: calc(var(--a0) + 1.85s); }
.anima .feixe__faiscas i:nth-child(2) { --dx: 34px; --dy: 6px; animation-delay: calc(var(--a0) + 1.9s); }
.anima .feixe__faiscas i:nth-child(3) { --dx: 18px; --dy: 22px; animation-delay: calc(var(--a0) + 1.95s); }
.anima .feixe__faiscas i:nth-child(4) { --dx: 40px; --dy: -6px; animation-delay: calc(var(--a0) + 1.87s); }
.anima .feixe__faiscas i:nth-child(5) { --dx: 12px; --dy: -26px; animation-delay: calc(var(--a0) + 2s); }
.anima .feixe__faiscas i:nth-child(6) { --dx: 30px; --dy: 16px; animation-delay: calc(var(--a0) + 2.05s); }
.anima .hero__lead { animation: surge .8s var(--sai) both calc(var(--a0) + 1.05s); }
.anima .hero__acoes { animation: surge .8s var(--sai) both calc(var(--a0) + 1.2s); }
.anima .hero__info { animation: surge .8s var(--sai) both calc(var(--a0) + 1.35s); }
@media (min-width: 901px) {
  .anima .hero__janela { animation: janela 1.1s var(--sai) both calc(var(--a0) + .2s); }
}
/* como funciona: o laser percorre as etapas */
.anima .trajeto { --p: 0; }
.anima .trajeto__linha::after { transition: transform 1.6s cubic-bezier(.6, 0, .2, 1); }
.anima .trajeto__ponto { transition: left 1.6s cubic-bezier(.6, 0, .2, 1); }
.anima .trajeto.is-feito { --p: 1; }
@keyframes desce { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 106, 26, .18), 0 0 18px 4px rgba(255, 106, 26, .55); } 50% { box-shadow: 0 0 0 6px rgba(255, 106, 26, .12), 0 0 30px 9px rgba(255, 106, 26, .7); } }

/* brasas (canvas) e luz dos furos que segue o mouse */
.hero__brasas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__luz { position: absolute; inset: 0; pointer-events: none; opacity: var(--hl, 0);
  background-image: radial-gradient(circle, rgba(255, 150, 80, .95) 1.7px, transparent 2.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(230px circle at var(--hx, -999px) var(--hy, -999px), #000 0%, rgba(0, 0, 0, .35) 42%, transparent 72%);
  mask-image: radial-gradient(230px circle at var(--hx, -999px) var(--hy, -999px), #000 0%, rgba(0, 0, 0, .35) 42%, transparent 72%); }

@media (min-width: 901px) {
  .anima .hero__janela { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  /* linha de varredura do laser passando pelo vídeo */
  .anima .hero__janela::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 192, 138, 0), #FFC08A 25%, #FFFFFF 50%, #FFC08A 75%, rgba(255, 192, 138, 0));
    box-shadow: 0 0 18px 4px rgba(255, 106, 26, .6); opacity: 0; animation: varredura 6.5s linear infinite calc(var(--a0) + 1.9s); }
}
@keyframes varredura { 0% { top: 0; opacity: 0; } 3% { top: 3%; opacity: 1; } 28% { top: 97%; opacity: 1; } 31%, 100% { top: 100%; opacity: 0; } }

/* =========================================================
   BARRA DE PROGRESSO (o laser corre no alto da página)
   ========================================================= */
.progresso { position: fixed; left: 0; top: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progresso span { position: relative; display: block; width: 0; height: 100%; background: linear-gradient(90deg, rgba(255, 106, 26, 0), var(--laranja) 55%, #FFB070); }
.progresso span::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #FFD2B0; box-shadow: 0 0 10px 3px rgba(255, 106, 26, .8); }

/* =========================================================
   CURSOR DE LASER (só com mouse)
   ========================================================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; opacity: 0; transition: opacity .3s; }
.cursor-laser .cursor { display: block; }
.cursor.is-ativo { opacity: 1; }
.cursor.is-campo { opacity: 0; }
.cursor-laser, .cursor-laser * { cursor: none !important; }
.cursor-laser input, .cursor-laser textarea { cursor: text !important; }
.cursor-laser select { cursor: default !important; }
.cursor__ponto, .cursor__anel { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor__ponto { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--laranja); box-shadow: 0 0 10px 2px rgba(255, 106, 26, .8); }
.cursor__anel { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(255, 106, 26, .6); transition: width .3s var(--sai), height .3s var(--sai), margin .3s var(--sai), background-color .3s, border-color .3s; }
.cursor.is-sobre .cursor__anel { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(255, 106, 26, .12); border-color: rgba(255, 106, 26, .9); }
.cursor.is-clique .cursor__anel { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: rgba(255, 106, 26, .3); }

/* =========================================================
   BOTÕES: brilho do laser passando e pulso do WhatsApp
   ========================================================= */
.anima .botao--laser { position: relative; overflow: hidden; isolation: isolate; }
.anima .botao--laser::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 55%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-190%) skewX(-18deg); animation: brilho-botao 5s ease-in-out infinite calc(var(--a0) + 2.6s); }
@keyframes brilho-botao { 0% { transform: translateX(-190%) skewX(-18deg); } 20%, 100% { transform: translateX(290%) skewX(-18deg); } }
.anima .flutuante::before, .anima .flutuante::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; z-index: -1; pointer-events: none; animation: pulso-zap 2.8s ease-out infinite; }
.anima .flutuante::after { animation-delay: 1.4s; }
@keyframes pulso-zap { from { transform: scale(1); opacity: .75; } to { transform: scale(1.75); opacity: 0; } }

/* =========================================================
   REVELAÇÕES AO ROLAR
   ========================================================= */
.anima [data-rev="sobe"], .anima [data-rev="lado"] { transition: opacity .9s var(--sai), transform 1s var(--sai); transition-delay: calc(var(--atraso, 0s) + var(--i, 0) * var(--passo, 90ms)); }
.anima [data-rev="sobe"]:not(.visivel) { opacity: 0; transform: translateY(34px); }
.anima [data-rev="lado"]:not(.visivel) { opacity: 0; transform: translateX(42px); }

/* imagem revelada por um feixe de laser que corre da esquerda para a direita */
.anima [data-rev="corte"] { position: relative; }
.anima [data-rev="corte"] img { clip-path: inset(0 100% 0 0); scale: 1.18; }
.anima [data-rev="corte"].visivel img { animation: revela-img 1.25s cubic-bezier(.65, 0, .25, 1) forwards var(--atrasoR, 0s), assenta 2s var(--sai) forwards var(--atrasoR, 0s); }
.anima [data-rev="corte"]::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1px; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(255, 176, 112, 0), #FFD2B0 18%, #FFFFFF 50%, #FFD2B0 82%, rgba(255, 176, 112, 0));
  box-shadow: 0 0 16px 3px rgba(255, 106, 26, .9), 0 0 50px 12px rgba(255, 106, 26, .35); }
.anima [data-rev="corte"].visivel::after { animation: cabeca-anda 1.25s cubic-bezier(.65, 0, .25, 1) forwards var(--atrasoR, 0s), varre-luz 1.25s linear forwards var(--atrasoR, 0s); }
.anima [data-rev="corte"] figcaption { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s var(--sai); }
.anima [data-rev="corte"].visivel figcaption { opacity: 1; transform: none; transition-delay: calc(var(--atrasoR, 0s) + 1.05s); }
@keyframes revela-img { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes assenta { from { scale: 1.18; } to { scale: var(--escala-fim, 1); } }
@keyframes varre-luz { 0% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }

/* linhas que se desenham (bordas de listas e do contato) */
.anima .pontos, .anima .fatos, .anima .dados { position: relative; border-top-color: transparent; }
.anima .pontos::before, .anima .fatos::before, .anima .dados::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--grafite); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--sai); }
.anima .dados::before { top: -1px; height: 1px; background: var(--linha-escura); }
.anima .pontos.visivel::before, .anima .fatos.visivel::before, .anima .dados.visivel::before { transform: none; }
.anima .contato::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--sai) .2s; }
.anima .contato.visivel::before { transform: none; }

/* marcadores do E crescendo nos diferenciais */
.anima .ponto[data-rev] .barras i { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--sai); }
.anima .ponto.visivel .barras i { transform: none; }
.anima .ponto.visivel .barras i:nth-child(1) { transition-delay: calc(var(--i) * 90ms + .25s); }
.anima .ponto.visivel .barras i:nth-child(2) { transition-delay: calc(var(--i) * 90ms + .33s); }
.anima .ponto.visivel .barras i:nth-child(3) { transition-delay: calc(var(--i) * 90ms + .41s); }

/* como funciona: cada número acende quando o laser passa */
.anima .passo.visivel .passo__num { animation: acende 1.5s ease both calc(.3s + var(--i) * 380ms); }
@keyframes acende { 0% { color: var(--laranja); text-shadow: 0 0 26px rgba(255, 106, 26, .55); transform: scale(1.12); } 100% { color: var(--verde); text-shadow: 0 0 0 rgba(255, 106, 26, 0); transform: none; } }
.passo__num { transform-origin: 0 100%; }

/* serviços: luz que segue o mouse no cartão */
.anima .servico { position: relative; }
.anima .servico::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .45s;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 106, 26, .14), rgba(255, 106, 26, 0) 46%); }
.anima .servico:hover::before { opacity: 1; }
.anima .servico .link::after { transition: transform .35s var(--sai), background-color .2s; }

/* galeria: zoom suave e legenda no hover */
.anima .galeria__faixa img { transition: transform .8s var(--sai); }
.anima .galeria__faixa figure:hover img { transform: scale(1.06); }

/* =========================================================
   DESENHOS TÉCNICOS QUE SE DESENHAM
   ========================================================= */
.anima [data-rev="desenho"] .traco { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.anima [data-rev="desenho"].visivel .traco { animation: desenha 1.3s cubic-bezier(.45, 0, .2, 1) forwards calc(var(--d, 0) * 1ms); }
.anima [data-rev="desenho"] .preenche { fill-opacity: 0; }
.anima [data-rev="desenho"].visivel .preenche { animation: desenha 1.3s cubic-bezier(.45, 0, .2, 1) forwards calc(var(--d, 0) * 1ms), preenche .8s ease forwards calc(var(--d, 0) * 1ms + 700ms); }
.anima [data-rev="desenho"] .surge-svg { opacity: 0; transition: opacity .8s ease; }
.anima [data-rev="desenho"].visivel .surge-svg { opacity: 1; transition-delay: calc(var(--d, 0) * 1ms + 250ms); }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes preenche { to { fill-opacity: 1; } }

/* dobra: o punção desce e a chapa dobra, em ciclo */
.anima [data-rev="desenho"].visivel .dobra__chapa.traco { animation: desenha 1.3s cubic-bezier(.45, 0, .2, 1) forwards calc(var(--d, 0) * 1ms), chapa-dobra 5.2s cubic-bezier(.5, 0, .3, 1) infinite 2.4s; }
.anima [data-rev="desenho"].visivel .dobra__puncao { animation: puncao 5.2s cubic-bezier(.5, 0, .3, 1) infinite 2.4s; }
@keyframes puncao {
  0%, 8% { transform: translateY(0); }
  24%, 36% { transform: translateY(-64px); }
  54% { transform: translateY(-9px); }
  74%, 100% { transform: translateY(0); }
}
@keyframes chapa-dobra {
  0%, 26% { d: path("M30 236l122 52 28 22 28-22 122-52"); opacity: 1; }
  31% { d: path("M30 236l122 52 28 22 28-22 122-52"); opacity: 0; }
  32% { d: path("M30 296l122 0 28 0 28 0 122 0"); opacity: 0; }
  38%, 54% { d: path("M30 296l122 0 28 0 28 0 122 0"); opacity: 1; }
  74%, 100% { d: path("M30 236l122 52 28 22 28-22 122-52"); opacity: 1; }
}

/* projeto: a cabeça do laser percorre o contorno da placa */
.cabeca-laser { opacity: 0; }
.anima [data-rev="desenho"].visivel .cabeca-laser { animation: cabeca-1 1.3s cubic-bezier(.45, 0, .2, 1) both, cabeca-volta 4.2s linear infinite 1.3s; }
@keyframes cabeca-1 { from { stroke-dashoffset: 0; opacity: 1; } to { stroke-dashoffset: -1; opacity: 1; } }
@keyframes cabeca-volta { from { stroke-dashoffset: 0; opacity: 1; } to { stroke-dashoffset: -1; opacity: 1; } }

/* =========================================================
   FAIXAS ROLANTES
   ========================================================= */
.fita { position: relative; overflow: hidden; background: var(--profundo); border-top: 1px solid var(--linha-escura); border-bottom: 1px solid var(--linha-escura); padding: 1.3rem 0; color: var(--aco); }
.fita__trilho { display: flex; align-items: center; gap: 2.25rem; width: max-content; padding-left: 2.25rem; will-change: transform; }
.fita__item { font-size: clamp(1.2rem, .95rem + 1vw, 1.9rem); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; line-height: 1.1; }
.fita__item--vazado { color: transparent; -webkit-text-stroke: 1.2px var(--aco); }
.fita__e { display: grid; gap: 3px; width: 22px; flex: none; }
.fita__e b { display: block; height: 4px; background: var(--laranja); }
.fita__e b:nth-child(2) { width: 72%; }

.fita--gigante { background: var(--gelo); border: 0; padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; color: var(--grafite); }
.fita--gigante .fita__trilho { gap: clamp(1.5rem, 3vw, 3rem); }
.fita--gigante .fita__item { font-size: clamp(3.2rem, 1.8rem + 6.6vw, 8.5rem); letter-spacing: -.025em; text-transform: none; line-height: 1.05; padding-bottom: .08em; }
.fita--gigante .fita__item--vazado { -webkit-text-stroke: 2px var(--verde); }
.fita--gigante .fita__e { width: clamp(38px, 4.4vw, 74px); gap: clamp(5px, .6vw, 9px); }
.fita--gigante .fita__e b { height: clamp(8px, .95vw, 15px); }
.fita--gigante .fita__e b:nth-child(odd) { background: var(--verde); }
.fita--gigante + .sobre { padding-top: clamp(2.5rem, 4vw, 4.5rem); }
