*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
html:not(.lenis){scroll-behavior:smooth}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--f-body);font-size:16px;line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased;transition:background .5s ease,color .5s ease}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:100;opacity:var(--noise-op);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
::selection{background:var(--accent);color:var(--bg)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}
.wrap{max-width:1160px;margin-inline:auto;padding-inline:clamp(16px,4.5vw,40px)}
.mono{font-family:var(--f-mono);font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--faint)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Background: glows + floating dots ---------- */
.ambient{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.ambient i{position:absolute;border-radius:50%;filter:blur(80px)}
.ambient i:nth-child(1){width:560px;height:560px;left:-140px;top:-180px;background:var(--glow-a);animation:drift 22s ease-in-out infinite alternate}
.ambient i:nth-child(2){width:480px;height:480px;right:-160px;top:18%;background:var(--glow-b);animation:drift 26s ease-in-out infinite alternate-reverse}
.ambient i:nth-child(3){width:420px;height:420px;left:30%;bottom:-220px;background:var(--glow-a);opacity:.6;animation:drift 30s ease-in-out infinite alternate}
@keyframes drift{to{transform:translate3d(60px,40px,0) scale(1.08)}}
#dust{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
main,header,footer{position:relative;z-index:1}
.progress{position:fixed;left:0;top:0;height:2px;width:100%;transform-origin:0 50%;transform:scaleX(0);z-index:60;background:linear-gradient(90deg,var(--accent),var(--warm))}

