/* Early-paint launch tokens deliberately stay independent of theme loading. */
:root {
  --launch-background: 0 0% 100%;
  --launch-mark: 43 10% 76%;
  --launch-light: 0 0% 100%;
  --launch-layer: 2147483000;
}
#hb-splash {
  position: fixed;
  inset: 0;
  z-index: var(--launch-layer);
  background: hsl(var(--launch-background));
  display: grid;
  place-items: center;
  pointer-events: auto;
  opacity: 1;
  overflow: hidden;
  transition: opacity 600ms cubic-bezier(.22, 1, .36, 1);
}
.launch-logo {
  position: relative;
  z-index: 1;
  width: min(23.3vw, 180px);
  aspect-ratio: 427 / 240;
  transition: transform 1400ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.launch-hardware {
  position: absolute;
  inset: 28% 0 0;
  opacity: 0;
  transform: translateY(48px) scale(1.08);
  transition: opacity 1100ms ease, transform 2200ms cubic-bezier(.16, 1, .3, 1);
  mask-image: linear-gradient(to bottom, transparent, hsl(var(--launch-light)) 30%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, hsl(var(--launch-light)) 30%);
  will-change: opacity, transform;
}
.launch-hardware img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
#hb-splash.product .launch-hardware { opacity: 1; transform: translateY(0) scale(1); }
#hb-splash.product .launch-logo { transform: translateY(-27vh) scale(1.16); }
@media (min-aspect-ratio: 1/1) {
  .launch-hardware { inset: 18% 0 0; }
  .launch-hardware img { object-fit: contain; }
  #hb-splash.product .launch-logo { transform: translateY(-32vh); }
}
.launch-logo img { position: absolute; left: 0; width: 100%; display: block; user-select: none; }
.launch-mark { top: 0; height: 73.333333%; transform-origin: 49.3% 62%; }
.launch-word { bottom: 0; height: 26.666667%; }
.launch-light {
  position: absolute;
  inset: 0 0 26.666667%;
  opacity: 0;
  mask: url('/splash/mark.png') center / 100% 100% no-repeat;
  -webkit-mask: url('/splash/mark.png') center / 100% 100% no-repeat;
  background: linear-gradient(110deg, transparent 30%, hsl(var(--launch-light) / .85) 48%, transparent 65%);
  background-size: 300% 100%;
  transform-origin: 49.3% 62%;
}
#hb-splash.go .launch-mark, #hb-splash.go .launch-light {
  animation: launch-breathe 1400ms cubic-bezier(.45, 0, .2, 1) 120ms both;
}
#hb-splash.go .launch-light {
  animation: launch-breathe 1400ms cubic-bezier(.45, 0, .2, 1) 120ms both,
    launch-illuminate 1200ms cubic-bezier(.22, 1, .36, 1) 280ms both;
}
#hb-splash.hold .launch-mark { animation: launch-rest 2600ms ease-in-out infinite; }
#hb-splash.out { opacity: 0; pointer-events: none; }
#hb-splash.out .launch-logo {
  transform: translateY(-10px) scale(1.025);
  transition: transform 600ms cubic-bezier(.22, 1, .36, 1);
}
#hb-splash.product.out .launch-logo { transform: translateY(-28vh) scale(1.18); }
#hb-splash.product.out .launch-hardware { transform: translateY(-8px) scale(1.015); transition-duration: 600ms; }
.launch-pending { background: hsl(var(--launch-background)); }
.launch-pending .launch-logo { animation: launch-rest 2600ms ease-in-out infinite; }
@keyframes launch-breathe {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.12); }
  75% { transform: scale(1.025); }
}
@keyframes launch-illuminate {
  0% { opacity: 0; background-position: 100% 50%; }
  25%, 70% { opacity: .8; }
  100% { opacity: 0; background-position: 0% 50%; }
}
@keyframes launch-rest { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #hb-splash { transition-duration: 240ms; }
  #hb-splash.go .launch-mark, #hb-splash.go .launch-light,
  #hb-splash.hold .launch-mark, .launch-pending .launch-logo { animation: none; }
  #hb-splash.out .launch-logo { transform: none; transition: none; }
  .launch-hardware { display: none; }
  .launch-logo { transition: none; will-change: auto; }
}