/* schlapp.com.br — camada de movimento (lasers, GSAP). Só vale com JS ligado: a classe .mov é posta no <html> por um script curto no <head>.
   Sem JS ou com "reduzir movimento", a página fica exatamente como era. */

/* o ScrollTrigger mede a página rolando por conta própria: a rolagem suave do CSS atrapalha (os links do menu rolam suave pelo JS) */
html.mov { scroll-behavior: auto !important; }

/* tela dos lasers: uma só, fixa, por cima do conteúdo e embaixo do menu */
.laser-tela { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 4; }

/* barra de progresso de leitura: um feixe fino no topo */
.laser-progresso { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 40; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(41,151,255,0) 0%, rgba(41,151,255,.55) 60%, #cfe6ff 100%); }
.laser-progresso::after { content: ""; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px 2px rgba(120,190,255,.9), 0 0 18px 6px rgba(41,151,255,.45); }

/* estados iniciais (escondidos até o laser revelar) */
.mov .hero h1, .mov .hero-copy > p, .mov .hero-link, .mov .hero-art,
.mov .capability h2, .mov .intro h2, .mov .process h2, .mov .about h2, .mov .contact h2 { visibility: hidden; }
.mov .revela-linha, .mov .web-art, .mov .about-photo { visibility: hidden; }
.mov .web-line strong { clip-path: inset(0% 100% 0% 0%); }
.mov .ai-layout li, .mov .automation-layout li { opacity: 0; }
.mov .web-line, .mov .ai-layout li, .mov .automation-layout li { border-color: transparent !important; position: relative; }
.mov .web-line:last-child { border-bottom-color: transparent !important; }
.mov .process li { border-top-color: transparent; position: relative; }

/* linhas de laser que ficam (bordas redesenhadas) */
.laser-borda { position: absolute; left: 0; right: 0; height: 1px; transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.laser-borda.topo { top: -1px; }
.laser-borda.base { bottom: -1px; }
.capability-web .laser-borda { background: #c5c5ca; }
.ai-layout .laser-borda, .automation-layout .laser-borda { background: var(--line, #d2d2d7); }
.process .laser-borda { background: #9999a0; }

/* SplitText */
.linha-mascara { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.char-laser { display: inline-block; color: color-mix(in srgb, var(--quente, currentColor) calc(var(--q, 0) * 100%), var(--cor-final, currentColor)); }
.palavra-laser { display: inline-block; white-space: nowrap; }

/* brilho especular que passa pelo metal da escultura (só onde a imagem é clara) */
.hero-especular { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: .9;
  background: linear-gradient(105deg, transparent 0%, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%, transparent 100%);
  background-size: 260% 100%; background-position: 140% 0;
  -webkit-mask-image: url('/assets/rafael/hero-titanium.webp'); mask-image: url('/assets/rafael/hero-titanium.webp');
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; mask-mode: luminance; }

/* grade de pontos que acende sob o cursor nas seções pretas */
.grade-cursor { position: relative; isolation: isolate; }
.grade-cursor::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(circle, rgba(140,195,255,.55) 1px, transparent 1.6px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
  mask-image: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
  opacity: var(--grade-op, 0); transition: opacity .5s ease; }

/* rótulos do fluxo "Interface → Operação" acendem quando o feixe passa */
.system-labels span { transition: color .35s ease, text-shadow .35s ease; }
.system-labels span.aceso { color: #fff; text-shadow: 0 0 14px rgba(41,151,255,.65); }

/* contato: moldura de laser em volta do link */
.contact a.laser-link { position: relative; padding: 14px 30px; border-radius: 999px; }
.laser-moldura { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.laser-moldura rect { fill: none; stroke: rgba(41,151,255,.75); stroke-width: 1.2; }

/* números que se decodificam */
.web-line span, .process li > span { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .laser-tela, .laser-progresso, .hero-especular { display: none !important; }
}
