/* Fixed blue and gold background shared by the landing page and its subpages. */
.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  background:
    radial-gradient(ellipse at 70% 25%, #174697 0, transparent 57%),
    radial-gradient(ellipse at 17% 76%, #8b6b2c 0, transparent 55%), #030712;
}
.ambient-scene .hero-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  filter: blur(56px) saturate(1.12);
  transform: scale(1.16);
  transform-origin: center;
  transition: opacity 0.8s;
}
.has-live-ambient .ambient-scene .hero-canvas {
  opacity: 1;
}
.ambient-fallback-light {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse at 70% 35%, #caa65970, transparent 49%),
    radial-gradient(ellipse at 30% 73%, #135af193, transparent 57%);
  filter: blur(55px);
  animation: ambient-drift 12s ease-in-out infinite alternate;
}
.has-live-ambient .ambient-fallback-light {
  display: none;
}
html[data-motion="paused"] .ambient-fallback-light {
  animation-play-state: paused;
}
@keyframes ambient-drift {
  from {
    transform: translate(-10%, 12%);
  }
  to {
    transform: translate(10%, -12%);
  }
}
.ambient-scene:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #02061040, #02061005 65%, #02061010),
    linear-gradient(0deg, #0206101c, transparent 40%, #02061010);
}

@media (max-width: 850px) {
  .ambient-scene .hero-canvas {
    filter: blur(42px) saturate(1.12);
    transform: scale(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-fallback-light {
    animation: none;
  }
  .ambient-scene .hero-canvas {
    transition: none;
  }
}
@media print {
  .ambient-scene {
    display: none;
  }
}
