/* A progressive enhancement: the page stays available without JavaScript. */
#pageSplash { display: none; }
html.page-splash-active { scrollbar-width: none; }
html.page-splash-active::-webkit-scrollbar { display: none; }
html.page-splash-active #pageSplash[hidden] {
  display: grid !important;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  place-items: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  color: #b9d4e8;
  background: radial-gradient(ellipse at 50% 44%, #103047 0, #081c2c 33%, #040e1b 72%);
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  opacity: 1;
  touch-action: none;
  transition: opacity 280ms ease, visibility 280ms;
  /* Independent protection if script execution is interrupted. */
  animation: splash-safety 1ms 5s forwards;
}
#pageSplash .splash-content { width: min(100%, 360px); }
#pageSplash .splash-logo {
  position: relative;
  width: min(78vw, 310px);
  aspect-ratio: 1;
  margin: -32px auto 8px;
  isolation: isolate;
}
#pageSplash .splash-logo::before,
#pageSplash .splash-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url('/assets/stratolab-logo.png') center / contain no-repeat;
  mask: url('/assets/stratolab-logo.png') center / contain no-repeat;
}
#pageSplash .splash-logo::before { background: #244052; }
#pageSplash .splash-logo::after {
  background: linear-gradient(160deg, #a1f2ff 4%, #49d8ff 42%, #12b6f3 78%, #0698e4);
  clip-path: inset(calc((1 - var(--splash-progress, .025)) * 100%) 0 0);
  filter: drop-shadow(0 0 14px #36c9ff38);
}
#pageSplash .splash-tagline {
  margin: 0;
  color: #9ac5db;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 3.8px;
}
#pageSplash .splash-track {
  width: 126px;
  height: 2px;
  margin: 28px auto 20px;
  overflow: hidden;
  border-radius: 4px;
  background: #204051;
}
#pageSplash .splash-track::after {
  content: "";
  display: block;
  height: 100%;
  transform: scaleX(var(--splash-progress, .025));
  transform-origin: left center;
  background: #49d8ff;
  box-shadow: 0 0 16px #36c9ff;
}
#pageSplash .splash-status {
  margin: 0;
  color: #91aabd;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .5px;
}
html.page-splash-active #pageSplash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes splash-safety { to { visibility: hidden; pointer-events: none; } }
@media (max-width: 480px) {
  #pageSplash .splash-logo { width: min(76vw, 280px); margin-top: -24px; }
  #pageSplash .splash-tagline { font-size: 8px; letter-spacing: 2.8px; }
}
@media (prefers-reduced-motion: reduce) {
  html.page-splash-active #pageSplash[hidden] { transition: none; }
  #pageSplash .splash-logo::after { clip-path: none; }
  #pageSplash .splash-track::after { transform: none; }
}
