/* Camada de movimento no estilo da referência (GSAP + ScrollTrigger + SplitText + Lenis).
   Só vale com html.gsap: sem JS ou com movimento reduzido, a página fica como estava. */

html.lenis, html.lenis body { height: auto }
.lenis.lenis-smooth { scroll-behavior: auto !important }

/* GSAP assume as entradas que antes eram keyframes CSS */
.gsap .headline-row > span,
.gsap .title-selection,
.gsap .title-selection i,
.gsap .title-selection > svg,
.gsap .hero-editor,
.gsap :is(.intro .eyebrow, .hero-description, .actions, .hero-note) { animation: none }
.gsap .title-selection i, .gsap .title-selection > svg { display: none }
.gsap .motion .reveal, .gsap.motion .reveal { opacity: 1; transform: none; transition: none }
.gsap.scene-motion .scene-rise { opacity: 1; transform: none; clip-path: none; transition: none }

/* SplitText: cada linha dentro de uma máscara */
.split-mask { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em }

/* Seleção estilo Figma desenhada sobre um elemento */
.sel { position: absolute; inset: -6px; pointer-events: none; z-index: 4 }
.sel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible }
.sel rect { fill: none; stroke: var(--sel, #c6ff3d); stroke-width: 1.5 }
.sel .al { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--sel, #c6ff3d); transform: scale(0) }
.sel .al:nth-of-type(1) { left: -4px; top: -4px }
.sel .al:nth-of-type(2) { right: -4px; top: -4px }
.sel .al:nth-of-type(3) { left: -4px; bottom: -4px }
.sel .al:nth-of-type(4) { right: -4px; bottom: -4px }
.sel b, .sel em {
  position: absolute; font: 600 .66rem/1 var(--code, ui-monospace, monospace); font-style: normal;
  background: var(--sel, #c6ff3d); color: #0b1406; padding: 4px 6px; border-radius: 3px; white-space: nowrap; opacity: 0;
  letter-spacing: 0; word-spacing: 0; text-transform: none
}
.sel b { left: -1px; top: -24px }
.sel em { left: 50%; bottom: -26px; translate: -50% 0 }

/* Rajada de pixels no clique dos cursores */
.rajada { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 60 }
.rajada i { position: absolute; left: 0; top: 0 }

/* Cursores com nome que entram voando */
.cursor-voa { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; display: flex; align-items: flex-start; gap: 2px; opacity: 0 }
.cursor-voa svg { width: 20px; height: 20px; fill: var(--c, #ff8a1f); stroke: #fff; stroke-width: 1.4 }
.cursor-voa b { margin-top: 15px; font: 600 .72rem/1 system-ui, sans-serif; color: #111; background: var(--c, #ff8a1f); padding: 5px 8px; border-radius: 6px; border: 1.5px solid #fff; white-space: nowrap }

/* Sublinhado a lápis desenhado */
.lapis { position: relative; display: inline-block; white-space: nowrap }
.lapis svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .32em; overflow: visible; pointer-events: none }
.lapis path { fill: none; stroke: #ff5a36; stroke-width: 3.5; stroke-linecap: round }

.split-mask:has(.lapis) { padding-bottom: .24em; margin-bottom: -.24em }

/* Topo troca de tom conforme a seção embaixo */
.top .nav { transition: background .35s, color .35s, box-shadow .35s }
.top.tom-claro .nav { background: rgb(250 249 244 / .92); color: #08172a; box-shadow: 0 1px 0 rgb(8 23 42 / .1) }
.top.tom-claro .nav-links { color: #3b4658 }
.top.tom-claro .nav-links a:hover { color: #08172a }

@media (max-width: 720px) { .lapis { white-space: normal } }

@media (prefers-reduced-motion: reduce) {
  .sel, .rajada, .cursor-voa { display: none }
}
