/* ==========================================================================
   Splash 14e — Void, mosaic
   The photograph is the source, not the background: it is read by the canvas,
   cut along the mark's lattice and carried in one slice per block. So the
   <img> itself is never displayed — it only has to be loaded and decoded.
   ========================================================================== */

.splash--mosaic { background: #0A0E1A; overflow: hidden; }

/* Present for decoding, never painted. Not display:none — a hidden image is
   not guaranteed to decode, and the canvas needs the pixels. */
.source {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
  top: 0; left: 0;
}

.splash--mosaic {
  --eyebrow: var(--grey-2);
  --corner: #fff;
}
.splash--mosaic .caption .status   { color: var(--grey-2); }
.splash--mosaic .caption .status b { color: #fff; }
.splash--mosaic .caption { text-shadow: 0 1px 3px rgba(4,7,16,.8), 0 2px 22px rgba(4,7,16,.85); }
.splash--mosaic .corner  { text-shadow: 0 1px 14px rgba(4,7,16,.8); }
.splash--mosaic .rail { background: rgba(255,255,255,.14); }

/* --- Hub integration -------------------------------------------------------
   Above everything the hub can draw during boot (PrimeVue overlays, dialogs
   and toasts start at 1000), and shielded from the hub's global .status rule. */
.splash { z-index: 2000; }
.splash .caption .status { padding: 0; border-radius: 0; font-weight: inherit; }

/* brand.css types html and body for a standalone page. On the hub that restyles the app underneath
   (Source Sans 3 Light, no bold cut) until teardown, when the hub's own type snaps in. The type goes
   on the splash instead; the page keeps the hub's family from its :root rule in app.vue. */
.splash { font-family: var(--sans); font-weight: 300; }
html, body { font-family: inherit; font-weight: inherit; }

/* The hub is fully covered until the hand-off, so it is not painted: rasterising the whole page the
   moment the parser finishes stalled the GPU for ~80 ms in the middle of the rain. bootSplash.ts adds
   .splash--reveal just before finish(); the rule leaves with the splash element at teardown. */
.splash:not(.splash--reveal) ~ #__nuxt { visibility: hidden; }
