/* ==========================================================================
   LAB ENTRANCE — homepage exit choreography (Dec 4, 2026, Dev's order:
   restore the juice). On a Lab click (driven by lab-entrance-2026-12-04.js):
   every element on the page fades away EXCEPT the Christmas snow; a calm
   dark field (the lab veil's own gradient) rises underneath so the beat
   always lands on dark, in either theme; the snow drifts alone for a held
   beat while the lab warms underneath; then the browser navigates and the
   lab's own entrance animation takes over (see lab/index.html).
   Christmas OFF: the snow canvas is display:none (xmas-off), so the beat
   is the bare dark field — same structure, season's equivalent.
   Reduce motion (site setting or OS): the JS never intercepts; this CSS
   is inert. Snow's own reduced-motion rule (one static frame) is untouched.
   ========================================================================== */

/* the dark field: fixed, under the snow, over the page's own background */
#ne-lab-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, #0d1a30 0%, #05080f 62%, #02040a 100%);
  opacity: 0;
  transition: opacity 0.68s ease;
}

/* snow rides above the field for the duration of the exit */
#snow-canvas.ne-lab-snow-top { z-index: 2; }

/* arm: everything else gets its fade transition (snow + field excluded) */
html.ne-lab-exit body > *:not(#snow-canvas):not(#ne-lab-field) {
  transition: opacity 0.68s ease !important;
}

/* go: the page empties; the field is fully risen */
html.ne-lab-exit-go body > *:not(#snow-canvas):not(#ne-lab-field) {
  opacity: 0 !important;
}
html.ne-lab-exit-go #ne-lab-field { opacity: 1; }

/* no interaction with a page that is leaving */
html.ne-lab-exit body { pointer-events: none; }
