/* Ambient glow behind every page: two large, soft violet and blue lights, so
   the plain dark areas between sections are never flat black. Still on
   purpose: drifting them halved the frame rate on software-rendered devices.
   Fixed over the body's own dark background (which stays: a host page must not
   turn it white) and under the page content. Never blocks clicks. */

.ambient {
  position: fixed;
  inset: 0;
  z-index: var(--z-ambient);
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(70% 55% at 50% 50%, color-mix(in srgb, var(--color-indigo) 55%, transparent), transparent 70%);
}

/* The page content stacks above the glow (ScrollSmoother makes the wrapper
   fixed; without it, it is relative: either way it is positioned). */
#smooth-wrapper {
  position: relative;
  z-index: var(--z-content);
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 95vmax;
  height: 95vmax;
  border-radius: 50%;
}

.ambient::before {
  top: -45vmax;
  left: -35vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-violet) 34%, transparent), transparent);
}

.ambient::after {
  right: -40vmax;
  bottom: -50vmax;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--color-blue) 22%, transparent), transparent);
}
