.site-boot {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #d9f5ff;
  background:
    radial-gradient(circle at 50% 46%, rgba(61, 174, 226, .14), transparent 26rem),
    radial-gradient(circle at 72% 32%, rgba(181, 74, 214, .09), transparent 22rem),
    #050916;
  opacity: 1;
  isolation: isolate;
}

.site-boot[hidden] {
  display: none;
}

.site-boot::before,
.site-boot::after {
  position: absolute;
  z-index: -1;
  inset: -12%;
  content: "";
  pointer-events: none;
}

.site-boot::before {
  background-image:
    linear-gradient(rgba(105, 210, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 210, 255, .07) 1px, transparent 1px);
  background-size: clamp(44px, 5vw, 72px) clamp(44px, 5vw, 72px);
  mask-image: radial-gradient(circle at center, #000 0 28%, transparent 72%);
  transform: perspective(640px) rotateX(66deg) translateY(26%);
}

.site-boot::after {
  border: 1px solid rgba(108, 208, 255, .12);
  border-radius: 50%;
  box-shadow:
    0 0 0 13vw rgba(94, 205, 255, .035),
    0 0 0 25vw rgba(181, 79, 218, .025);
  opacity: .65;
  transform: scale(.46);
}

.site-boot__panel {
  display: grid;
  width: min(82vw, 620px);
  justify-items: center;
  gap: clamp(15px, 2.4vw, 24px);
}

.site-boot__eyebrow,
.site-boot__status {
  width: 100%;
  font-family: "Bai Jamjuree", system-ui, sans-serif;
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.site-boot__eyebrow {
  color: rgba(153, 222, 249, .62);
}

.site-boot__mark {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 2 / 1;
  overflow: hidden;
  isolation: isolate;
}

.site-boot__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  filter:
    drop-shadow(0 0 18px rgba(83, 211, 248, .22))
    saturate(1.06);
}

.site-boot__scanner {
  position: absolute;
  z-index: 2;
  top: 17%;
  bottom: 17%;
  left: -18%;
  width: 14%;
  border-right: 1px solid rgba(226, 250, 255, .92);
  background: linear-gradient(90deg, transparent, rgba(91, 228, 247, .16));
  box-shadow:
    8px 0 24px rgba(91, 228, 247, .24),
    1px 0 8px rgba(255, 255, 255, .42);
  opacity: 0;
  transform: skewX(-8deg);
}

.site-boot__progress {
  position: relative;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(116, 203, 244, .13);
}

.site-boot__progress::before,
.site-boot__progress span {
  position: absolute;
  inset: 0;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
}

.site-boot__progress::before {
  background: linear-gradient(90deg, #5be4f7, #8aa8f6 58%, #df43d2);
  box-shadow: 0 0 16px rgba(91, 228, 247, .52);
}

.site-boot__progress span {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
}

.site-boot__status {
  display: flex;
  justify-content: space-between;
  color: rgba(137, 199, 229, .58);
}

.site-boot__status strong {
  color: #8edff8;
  font: inherit;
  opacity: 0;
}

.site-boot.is-running .site-boot__logo {
  animation: site-boot-reveal .72s .06s cubic-bezier(.2, .76, .2, 1) forwards;
}

.site-boot.is-running .site-boot__scanner {
  animation: site-boot-scanner .62s .12s cubic-bezier(.2, .72, .2, 1) forwards;
}

.site-boot.is-running .site-boot__progress::before {
  animation: site-boot-progress .78s .08s cubic-bezier(.32, .72, .2, 1) forwards;
}

.site-boot.is-running .site-boot__progress span {
  animation: site-boot-scan .64s .18s ease-out forwards;
}

.site-boot.is-running .site-boot__status strong {
  animation: site-boot-verified .18s .77s ease-out forwards;
}

.site-boot.is-complete {
  visibility: hidden;
  opacity: 0;
  transition: opacity .18s ease, visibility 0s .18s;
}

@keyframes site-boot-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: scale(.985);
    filter: blur(4px) drop-shadow(0 0 14px rgba(83, 211, 248, .16));
  }
  16% { opacity: 1; }
  72% {
    clip-path: inset(0);
    transform: scale(1);
    filter: blur(0) drop-shadow(0 0 26px rgba(83, 211, 248, .3)) saturate(1.08);
  }
  100% {
    opacity: 1;
    clip-path: inset(0);
    transform: scale(1);
    filter: drop-shadow(0 0 18px rgba(83, 211, 248, .2)) saturate(1.06);
  }
}

@keyframes site-boot-scanner {
  0% { left: -18%; opacity: 0; }
  10%, 82% { opacity: 1; }
  100% { left: 104%; opacity: 0; }
}

@keyframes site-boot-progress {
  to { transform: scaleX(1); }
}

@keyframes site-boot-scan {
  0% { transform: translateX(-100%) scaleX(.18); }
  100% { transform: translateX(100%) scaleX(.28); }
}

@keyframes site-boot-verified {
  to { opacity: 1; text-shadow: 0 0 16px rgba(91, 228, 247, .38); }
}

@media (max-width: 560px) {
  .site-boot__panel {
    width: min(86vw, 390px);
  }

  .site-boot__mark {
    width: min(100%, 320px);
  }

  .site-boot__status {
    letter-spacing: .14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-boot {
    display: none !important;
  }
}
