*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--bg); }
body {
  font-family: var(--font); line-height: 1.6; color: var(--txt); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Fundo de reserva (também vale quando o WebGL não está disponível) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 50% at 78% 12%, rgba(0, 231, 123, .17), transparent 62%),
    radial-gradient(45% 45% at 8% 92%, rgba(0, 168, 90, .13), transparent 62%);
}
::selection { background: var(--g); color: var(--on-g); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
main, .footer { position: relative; z-index: 2; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: opacity .9s var(--ease-out); }
#scene-labels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.slabel { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); background: rgba(7, 11, 9, .72); border: 1px solid color-mix(in srgb, var(--c, #00e77b) 55%, transparent); color: #fff; white-space: nowrap; opacity: 0; will-change: transform, opacity; backdrop-filter: blur(6px); }
.slabel::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #00e77b); box-shadow: 0 0 10px var(--c, #00e77b); }
.slabel[hidden] { display: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; position: relative; }
.sec--tight { padding: calc(var(--sec) * .6) 0; }

h1, h2, h3 { line-height: 1.05; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); letter-spacing: -.04em; }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.2; }
p { text-wrap: pretty; }
.display { font-size: var(--fs-display); line-height: .98; letter-spacing: -.048em; font-weight: 800; }
.grad { background: linear-gradient(100deg, #00e77b 10%, #b6ffd9 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: var(--fs-lead); color: var(--txt-2); max-width: 56ch; }
.mut { color: var(--txt-2); }

:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; background: var(--g); color: var(--on-g); padding: 10px 18px; border-radius: var(--r-pill); font-weight: 800; transition: top .15s var(--ease-out); }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marq__row { animation: none !important; }
}
@media (max-width: 700px) { #scene { max-height: 100%; opacity: .55 !important; } }
