/* Preloader progress bar. The width is updated by assets/js/preloader.js as
  page resources finish loading, then reaches 100% on window.load. */
body.at-preloader-active {
  overflow: hidden;
}

#at-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--at-neutral-0, #0a0a0a);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#at-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.at-preloader__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.at-preloader__word {
  font-family: var(--at-ff-heading);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 52px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #F0460E, #FFB703);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 1px rgba(255, 236, 180, 0.9),
    0 0 5px rgba(255, 183, 3, 0.6),
    0 0 12px rgba(255, 138, 3, 0.45),
    0 0 22px rgba(240, 70, 14, 0.3);
  animation: at-preloader-pulse 2.4s ease-in-out infinite;
}

.at-preloader__strip {
  position: relative;
  width: min(20vw, 280px);
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.at-preloader__strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--at-preloader-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff 0%, #dfeeff 35%, #7dd3fc 100%);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.9),
    0 0 16px rgba(125, 211, 252, 0.6),
    0 0 28px rgba(125, 211, 252, 0.35);
  transition: width 180ms ease-out;
}

@keyframes at-preloader-pulse {
  0%, 100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .at-preloader__word {
    animation: none;
  }
  .at-preloader__strip::before {
    transition: none;
  }
}

/* Mobile preloader breathing room. */
@media (max-width: 575.98px) {
  #at-preloader {
    padding: 32px 24px;
  }

  .at-preloader__mark {
    width: 100%;
    max-width: 320px;
    gap: 34px;
  }

  .at-preloader__logo {
    width: min(52vw, 190px);
    max-width: 190px;
    height: auto;
  }

  .at-preloader__strip {
    width: min(72vw, 270px);
    height: 8px;
  }
}

@media (max-width: 359.98px) {
  #at-preloader {
    padding-inline: 18px;
  }

  .at-preloader__mark {
    gap: 28px;
  }

  .at-preloader__strip {
    width: min(78vw, 240px);
  }
}