/* Mosaic loader, adapted from HolyLine loader.css (reveal variant only). Cover colour = --hx-bg #08050c. */
.hx-loader { position: fixed; inset: 0; z-index: 9999; display: block; padding: 0; overflow: hidden; background: transparent; opacity: 1; transition: opacity 240ms ease; }
.hx-loader--leaving { opacity: 0; pointer-events: none; }
.hx-loader__mosaic { position: absolute; inset: 0; display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.hx-loader__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hx-loader--still { background: #08050c; }

/* First-paint cover exists before deferred page behaviour starts. */
html::before { content: ""; position: fixed; inset: 0; z-index: 10001; background: #08050c; opacity: 0; pointer-events: none; }
html.hx-booting::before { opacity: 1; pointer-events: auto; }
html.hx-navigating::before { opacity: 1; pointer-events: auto; transition: opacity 220ms ease; }
@media (prefers-reduced-motion: reduce) {
  .hx-loader, html.hx-navigating::before { transition: none; }
}
