/* =========================================================
   PERF PASS 3 — scrolling cost on older GPUs
   Loaded last. Replaces effects that are re-rendered on every scroll frame
   (live backdrop blur, CSS masks) with look-alikes that are drawn once.
   ========================================================= */

/* nav: solid glass instead of a live blur of the page behind it */
.nav.is-scrolled { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(8, 10, 34, .94) !important; }
.chat, #chat { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.menu { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* masks → plain edges + gradient overlays (masks force an extra offscreen pass every frame) */
.chev { -webkit-mask: none !important; mask: none !important; }
.clients__rows, .trust__logos { -webkit-mask-image: none !important; mask-image: none !important; position: relative; }
.clients__rows::before, .clients__rows::after, .trust__logos::before, .trust__logos::after {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 8%; pointer-events: none; }
.clients__rows::before, .trust__logos::before { left: 0; background: linear-gradient(90deg, var(--ink, #05061a), transparent); }
.clients__rows::after, .trust__logos::after { right: 0; background: linear-gradient(270deg, var(--ink, #05061a), transparent); }

/* =========================================================
   LITE MODE (html.lite) — set automatically when scrolling measures < 42 fps.
   Native scrolling + no purely decorative full-screen / looping layers.
   ========================================================= */
html.lite .grain, html.lite .ambient, html.lite .hero__aurora { display: none !important; }
html.lite .ffly__dot { display: none !important; }
html.lite .story__sweep, html.lite .cst__rot, html.lite .cst__pulse { display: none !important; }
html.lite .hero__frame img { animation: none !important; transform: scale(1.04); }
html.lite .vm__orb, html.lite .hstage__portal i { animation: none !important; }
html.lite .about > .stats .stat::after, html.lite .vm__card::after, html.lite .footer__sheen { animation: none !important; }
html.lite .orbit__hub::before { animation: none !important; }
html.lite *, html.lite *::before, html.lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.lite .glass { background: linear-gradient(160deg, rgba(34,38,108,.92), rgba(10,12,38,.96)) !important; }

/* lite: no looping CSS animations at all (hover transitions stay) */
html.lite *, html.lite *::before, html.lite *::after { animation: none !important; }
/* elements that use an animation to fade in must stay visible without it */
html.lite .aip__sched li, html.lite .dmodal__pts li, html.lite .dmodal--ai .dmodal__pts li, html.lite .v30m__pillars li { opacity: 1 !important; }
html.lite .stat.is-in .stat__bar i { transition: none; }
html.lite .ffly__dot { display: none !important; }
html.lite .hero__frame img { transform: none !important; }
html.lite .ffly__wing { animation: wing .16s ease-in-out infinite alternate !important; } /* tiny element: wings may flap */
