/* Homepage splash loader */

body.is-home-loading {
  overflow: hidden;
  height: 100%;
}

.home-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.55s;
}

.home-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

[data-theme="dark"] .home-loader {
  background: #0a111f;
}

.home-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(92vw, 24rem);
  padding: 1.5rem;
}

.home-loader__logo {
  --brand-icon-size: 7.75rem;
  padding: 5px;
  animation: home-loader-float 2.4s ease-in-out infinite;
}

.home-loader__logo .brand-icon__img {
  box-shadow: 0 24px 48px -22px rgb(11 30 58 / 0.32);
}

@keyframes home-loader-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.home-loader__bar-wrap {
  width: min(100%, 14rem);
  margin-top: 2.25rem;
}

.home-loader__bar {
  position: relative;
  height: 0.375rem;
  border-radius: 9999px;
  background: #eaecf0;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgb(11 30 58 / 0.06);
}

[data-theme="dark"] .home-loader__bar {
  background: #2a3548;
}

.home-loader__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #ff7a00;
  box-shadow: 0 0 12px rgb(255 122 0 / 0.45);
  transition: width 0.12s linear;
}

.home-loader__fill.is-complete {
  box-shadow: 0 0 18px rgb(255 122 0 / 0.55);
}

.home-loader__pct {
  margin: 0.75rem 0 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #475467;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .home-loader__pct {
  color: #9ca3af;
}

.home-loader__pct span {
  color: #ff7a00;
}

@media (prefers-reduced-motion: reduce) {
  .home-loader__logo {
    animation: none;
  }

  .home-loader,
  .home-loader__fill {
    transition: none;
  }
}
