/* ==========================================================================
   Scroll-flow glow: neon green light that drifts through the page as you scroll.
   A fixed, click-through layer blended with "screen" so it only brightens the
   dark sections; JS fades it out over light sections.
   ========================================================================== */

.scroll-glow {
  position: fixed; inset: 0; z-index: 100; /* above sections, below mobile menu (110) and header (120) */
  pointer-events: none; overflow: hidden;
  mix-blend-mode: screen;
  opacity: var(--glow-o, 0);
  transition: opacity 600ms var(--ease-out, ease-out);
}

.scroll-glow__orb {
  position: absolute; top: 0; left: 0;
  width: var(--s, 60vmax); aspect-ratio: 1; margin: calc(var(--s, 60vmax) / -2) 0 0 calc(var(--s, 60vmax) / -2);
  border-radius: 50%;
  will-change: transform;
}
.scroll-glow__orb--a { --s: 62vmax; background: radial-gradient(circle, rgba(0, 255, 133, 0.42) 0%, rgba(0, 255, 133, 0.14) 35%, transparent 65%); }
.scroll-glow__orb--b { --s: 48vmax; background: radial-gradient(circle, rgba(6, 222, 167, 0.36) 0%, rgba(6, 222, 167, 0.11) 38%, transparent 66%); }
.scroll-glow__orb--c { --s: 30vmax; background: radial-gradient(circle, rgba(170, 255, 90, 0.30) 0%, rgba(0, 255, 133, 0.06) 40%, transparent 68%); }

/* thin neon streak that rides the scroll position down the right edge */
.scroll-glow__trail {
  position: absolute; top: 0; right: 0; width: 2px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 133, 0.9) 50%, transparent);
  transform-origin: top; will-change: transform;
  filter: drop-shadow(0 0 8px rgba(0, 255, 133, 0.9));
}

@media (prefers-reduced-motion: reduce) {
  .scroll-glow__trail { display: none; }
}
