/* ══════════════════════════════════════════════════════════════════
   HIGHZAK ACADEMY — THE BOOT SCREEN
   The first second of the product. It is a visor: two plates closed
   over the screen with the HZ mark lit between them, and when the
   page is ready the visor opens and the academy is behind it.

   Three rules it obeys:
     · it is written INLINE-first (this file loads with the document)
       so there is never a flash of unstyled page behind it;
     · it can never trap anyone. A pure-CSS animation lifts it after
       7s no matter what JavaScript does — including in a background
       tab, where requestAnimationFrame is frozen and a rAF-driven
       loader would hang forever;
     · everything it moves is a transform. No clip-path strings, no
       @property, nothing that degrades differently across engines.
   ══════════════════════════════════════════════════════════════════ */

.boot{
  position:fixed; inset:0; z-index:9000;
  /* the failsafe: even with JS dead, the visor opens */
  animation:bootFailsafe .1s linear 7s forwards;
}
.boot.gone{ display:none; }

/* the two plates */
.boot-half{
  position:absolute; inset-inline:0; block-size:50.5%;
  background:
    radial-gradient(120% 90% at 50% 100%, rgba(46,123,255,.14), transparent 62%),
    linear-gradient(180deg, #05060b, #080a12);
  transition:transform 1.05s cubic-bezier(.72,0,.16,1);
  will-change:transform;
}
.boot-top{ inset-block-start:0; }
.boot-bot{ inset-block-end:0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(46,123,255,.14), transparent 62%),
    linear-gradient(0deg, #05060b, #080a12);
}
.boot.go .boot-top{ transform:translateY(-100%); }
.boot.go .boot-bot{ transform:translateY(100%); }

/* the seam between the plates — the visor's light */
.boot-seam{
  position:absolute; inset-inline:0; inset-block-start:50%; block-size:1px;
  transform:translateY(-50%) scaleX(.25); transform-origin:50% 50%;
  background:linear-gradient(90deg, transparent, var(--neon, #4da8ff), transparent);
  box-shadow:0 0 22px rgba(77,168,255,.75);
  opacity:.5; transition:transform .9s var(--ease, cubic-bezier(.2,.7,.2,1)), opacity .5s ease;
}
.boot.lit .boot-seam{ transform:translateY(-50%) scaleX(1); opacity:1; }
.boot.go  .boot-seam{ opacity:0; transition-duration:.35s; }

/* the mark, the meter, the word */
.boot-core{
  position:absolute; inset:0; display:grid; place-content:center; justify-items:center;
  gap:18px; text-align:center; padding:20px;
  transition:opacity .45s ease, transform .8s cubic-bezier(.72,0,.16,1);
}
.boot.go .boot-core{ opacity:0; transform:scale(1.14); transition-duration:.5s,.9s; }

.boot-mark{
  inline-size:clamp(96px, 26vw, 148px); aspect-ratio:1; object-fit:contain;
  /* The mark is a round badge on a SQUARE navy plate, and the file has no
     alpha. Screen-blending it over the visor's glow lit that square up as a
     visible box, so the square is cut off at the badge's own edge. */
  -webkit-mask-image:radial-gradient(closest-side, #000 0 93%, transparent 99%);
          mask-image:radial-gradient(closest-side, #000 0 93%, transparent 99%);
  mix-blend-mode:screen;
  filter:drop-shadow(0 0 28px rgba(46,123,255,.45));
  animation:bootPulse 2.6s ease-in-out infinite;
}
.boot-word{
  font-family:"Space Grotesk", system-ui, sans-serif; font-weight:700;
  font-size:clamp(1.05rem, 4.4vw, 1.5rem); letter-spacing:.02em; color:#eaf1ff;
}
.boot-word span{ color:#4da8ff; }
.boot-kick{
  font-family:"JetBrains Mono", ui-monospace, monospace;
  font-size:.58rem; letter-spacing:.26em; text-transform:uppercase; color:#7c8aa6;
}
.boot-bar{
  inline-size:min(210px, 56vw); block-size:2px; border-radius:2px;
  background:rgba(255,255,255,.09); overflow:hidden;
}
.boot-bar i{
  display:block; block-size:100%; inline-size:0%;
  background:linear-gradient(90deg, #2e7bff, #7cc4ff);
  box-shadow:0 0 12px rgba(77,168,255,.8);
  transition:inline-size .35s cubic-bezier(.3,.9,.3,1);
}

@keyframes bootPulse{
  0%,100%{ transform:translateY(0) scale(1);      filter:drop-shadow(0 0 22px rgba(46,123,255,.35)); }
  50%    { transform:translateY(-5px) scale(1.03); filter:drop-shadow(0 0 40px rgba(46,123,255,.6)); }
}
@keyframes bootFailsafe{ to{ opacity:0; visibility:hidden; pointer-events:none; } }

/* nobody is made to watch it: no motion, no visor — just a clean hand-off */
@media (prefers-reduced-motion: reduce){
  .boot-half, .boot-core, .boot-seam{ transition:none; }
  .boot-mark{ animation:none; }
}
html.a11y-still .boot-mark{ animation:none; }
html.a11y-contrast .boot-mark{ mix-blend-mode:normal; }
