/* ============================================================
   NEONFLUX B-site ambience — ported from the A-site theme
   (neonflux-theme.css .nf-scanline/.nf-noise,
    neonflux-landing.css .nf-orb/.nf-scan)
   The DOM layers themselves are injected by nf-b-motion.js,
   mirroring how the A-site's neonflux.js does it.
   ============================================================ */

/* full-page CRT scanline (fixed, does not scroll) */
.nf-scanline{
  position:fixed;inset:0;z-index:2;pointer-events:none;
  background:repeating-linear-gradient(to bottom,
    rgba(0,240,255,.028) 0px,rgba(0,240,255,.028) 1px,
    transparent 1px,transparent 3px);
  mix-blend-mode:screen;opacity:.55;
  animation:nf-scan-drift 9s linear infinite;
}
@keyframes nf-scan-drift{from{background-position-y:0}to{background-position-y:60px}}

/* full-page film grain */
.nf-noise{
  position:fixed;inset:0;z-index:2;pointer-events:none;opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* base layout for hero orbs (nf-hero.css restyles the blur) */
.nf-orb{position:absolute;border-radius:50%}

/* in-hero scanline layer (fades toward the bottom) */
.nf-scan{
  position:absolute;inset:0;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.028) 0 1px,rgba(255,255,255,0) 1px 3px);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.25) 55%,transparent 82%);
  mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.25) 55%,transparent 82%);
  opacity:.55;
}

/* hero text sits above the ambience layer (the A-site uses
   .nf-hero-inner for this; the B hero has no wrapper, so lift
   its direct children instead) */
.hero > *:not(.nf-amb){position:relative;z-index:1}

@media (prefers-reduced-motion:reduce){
  .nf-scanline{animation:none}
  .nf-noise,.nf-scan{display:none}
}
