/* Avanza FX layer: GSAP + Lenis motion, with Spotlight / Magnet / Scroll Reveal
   effects ported from React Bits to vanilla. Presentation only; every rule is
   scoped to html.fx so the page is unchanged if the scripts fail to load. */

/* Lenis owns the easing, so the native smooth-scroll on #app has to go. */
html.fx #app{scroll-behavior:auto;}

/* ── Word-mask reveal for section headings ── */
html.fx .fx-w{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.14em;margin-bottom:-.14em;}
html.fx .fx-wi{display:inline-block;will-change:transform;}

/* ── Scroll-scrubbed paragraph reveal ── */
html.fx .fx-sr{display:inline-block;will-change:opacity,filter;}

/* ── Spotlight card (React Bits SpotlightCard) ── */
html.fx .fx-card{--mx:50%;--my:50%;--spot:0;}
html.fx .fx-spot{position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;opacity:var(--spot);
  transition:opacity .35s ease;
  background:radial-gradient(360px circle at var(--mx) var(--my),rgba(255,140,66,.16),rgba(126,154,111,.10) 40%,transparent 70%);}

/* ── Aurora behind the hero (React Bits Aurora, as drifting blurred blobs) ── */
html.fx .fx-aurora{position:absolute;inset:0;overflow:hidden;pointer-events:none;}
html.fx .fx-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;will-change:transform;}
html.fx .fx-blob.b1{width:46vw;height:46vw;left:-8vw;top:-14vw;background:radial-gradient(circle,rgba(126,154,111,.55),transparent 65%);}
html.fx .fx-blob.b2{width:38vw;height:38vw;right:-6vw;top:12vh;background:radial-gradient(circle,rgba(255,140,66,.38),transparent 65%);}
html.fx .fx-blob.b3{width:30vw;height:30vw;left:34vw;bottom:-14vw;background:radial-gradient(circle,rgba(245,179,1,.30),transparent 65%);}
html.fx[data-theme="light"] .fx-blob{opacity:.28;}

/* ── Marquee is driven by GSAP so scroll velocity can speed it up ── */
html.fx .av-mtrack{animation:none;}

@media (prefers-reduced-motion:reduce){
  html.fx .fx-blob{display:none;}
}
@media (max-width:900px){
  html.fx .fx-blob{filter:blur(50px);opacity:.4;}
}
