

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(var(--edge) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge) 1px, transparent 1px);
  background-size: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    #000 20%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 40%,
    #000 20%,
    transparent 78%
  );
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.55;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  display: block;
  mix-blend-mode: screen;
  will-change: transform;
}
.a1 {
  width: 52vw;
  height: 52vw;
  background: radial-gradient(
    circle,
    rgba(123, 92, 255, 0.85),
    transparent 62%
  );
  top: -6%;
  left: -8%;
}
.a2 {
  width: 46vw;
  height: 46vw;
  background: radial-gradient(
    circle,
    rgba(34, 229, 255, 0.62),
    transparent 62%
  );
  top: 26%;
  right: -10%;
}
.a3 {
  width: 44vw;
  height: 44vw;
  background: radial-gradient(
    circle,
    rgba(198, 255, 61, 0.42),
    transparent 62%
  );
  bottom: -12%;
  left: 22%;
}
.a4 {
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(255, 61, 168, 0.5), transparent 62%);
  bottom: 6%;
  right: 14%;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .aurora i {
    will-change: auto;
  }
}
