/* Lower-page WebGL ambience (ambient3d.js). Without WebGL the canvases stay hidden and the CSS look remains. */
.ambient-canvas { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
section.ambient-on > .ambient-canvas { opacity: 1; }

/* The WebGL pixels and wave replace the CSS pixel squares and grid floor (no doubling). */
section.details > .pixels, section.closing::before { transition: opacity 1.2s ease; }
section.details.ambient-on > .pixels, section.closing.ambient-on::before { opacity: 0; }

section.closing.ambient-on { isolation: isolate; }
section.closing.ambient-on > p,
section.closing.ambient-on > .button { position: relative; z-index: 1; }

section.registration-section.ambient-on > .registration-grid { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .ambient-canvas { transition: none; }
}

@media print {
  .ambient-canvas { display: none; }
}
