/* First screen the user sees, before Blazor has booted (see index.html). Plain stylesheet: there is no component to scope it to. */

/* First screen the user sees, before Blazor boots. Dark, deep brand-blue page with
   a slowly drifting dot grid, with the logo wiping in then pulsing. Not a loader - nothing here reports progress. */
.hrpm-splash { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; margin: 0; z-index: 100000;
    display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 45%, #0b3a55 0%, #072436 50%, #03111c 100%);
    transition: opacity 1.6s cubic-bezier(.4,0,.2,1), transform 1.6s cubic-bezier(.4,0,.2,1); will-change: opacity, transform; }
.hrpm-splash--out { opacity: 0; transform: scale(1.05); pointer-events: none; }
/* the logo lets go a touch sooner than the backdrop, so the dissolve trails off rather than stopping together */
.hrpm-splash--out .hrpm-splash__brand { opacity: 0; transition: opacity 1.1s ease-in; }

/* Everything below animates transform/opacity only (compositor-driven), never filter or
   background-position, which repaint every frame and are what makes a splash judder. */

/* dot grid that slowly drifts: the mask stays put, the dots slide one tile (seamless) underneath it */
.hrpm-splash__dots { position: absolute; inset: 0; overflow: hidden;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.hrpm-splash__dots::before { content: ""; position: absolute; inset: -34px; will-change: transform;
    background-image: radial-gradient(rgba(79,208,255,.30) 1.5px, transparent 1.6px); background-size: 34px 34px;
    animation: hs-dots 7s linear infinite; }

/* the logo wipes in from the left, then breathes: it swells while a light behind it brightens and flickers */
.hrpm-splash__brand { position: relative; z-index: 1; filter: drop-shadow(0 0 26px rgba(0,149,211,.7));
    will-change: transform; animation: hs-pulse 2.4s cubic-bezier(.45,0,.55,1) 1.4s infinite; }
.hrpm-splash__brand img { display: block; width: min(560px, 82vw); height: auto; clip-path: inset(0 100% 0 0);
    animation: hs-wipe 1.2s cubic-bezier(.65,0,.25,1) .25s forwards; }
.hrpm-splash__brand::before { content: ""; position: absolute; z-index: -1; inset: -35% -18%; border-radius: 50%; opacity: 0; will-change: opacity, transform;
    background: radial-gradient(closest-side, rgba(79,208,255,.55), rgba(0,149,211,.18) 55%, transparent 100%);
    animation: hs-flash 2.4s cubic-bezier(.45,0,.55,1) 1.4s infinite; }
.hrpm-splash__brand::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -26px; height: 14px; border-radius: 50%; will-change: opacity, transform;
    background: radial-gradient(ellipse, rgba(79,208,255,.8), transparent 70%); opacity: 0; animation: hs-glow 2.4s ease-in-out 1.4s infinite; }

@keyframes hs-dots  { to { transform: translate3d(34px, 34px, 0); } }
@keyframes hs-pulse { 0%,100% { transform: scale(1); } 45% { transform: scale(1.045); } 60% { transform: scale(1.04); } }
@keyframes hs-flash { 0%,100% { opacity: .15; transform: scale(.94); }
                      45% { opacity: 1; transform: scale(1.06); }
                      52% { opacity: .6; transform: scale(1.04); }
                      60% { opacity: .95; transform: scale(1.06); } }
@keyframes hs-wipe  { to { clip-path: inset(0 0 0 0); } }
@keyframes hs-glow  { 0%,100% { opacity: .15; transform: scaleX(.8); } 50% { opacity: 1; transform: scaleX(1.1); } }
@media (prefers-reduced-motion: reduce) { .hrpm-splash * { animation-duration: 40s !important; } .hrpm-splash__brand img { animation-duration: .01s !important; } }
