/* Preloader — themed to the product instead of a generic spinner: a row of
   small "bulbs" chase-light on left to right underneath the glowing
   wordmark, echoing an idalight roofline switching on. Fades out and gets
   removed by assets/js/preloader.js once the page finishes loading. */
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 {
  display: flex;
  gap: 10px;
}
.at-preloader__strip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--at-neutral-100, #2a2a2a);
  animation: at-preloader-bulb 1.8s ease-in-out infinite;
}
.at-preloader__strip span:nth-child(1) { animation-delay: 0s; }
.at-preloader__strip span:nth-child(2) { animation-delay: 0.09s; }
.at-preloader__strip span:nth-child(3) { animation-delay: 0.18s; }
.at-preloader__strip span:nth-child(4) { animation-delay: 0.27s; }
.at-preloader__strip span:nth-child(5) { animation-delay: 0.36s; }
.at-preloader__strip span:nth-child(6) { animation-delay: 0.45s; }
.at-preloader__strip span:nth-child(7) { animation-delay: 0.54s; }
.at-preloader__strip span:nth-child(8) { animation-delay: 0.63s; }
.at-preloader__strip span:nth-child(9) { animation-delay: 0.72s; }
.at-preloader__strip span:nth-child(10) { animation-delay: 0.81s; }

@keyframes at-preloader-bulb {
  0%, 55%, 100% {
    background: var(--at-neutral-100, #2a2a2a);
    box-shadow: none;
  }
  20% {
    background: #FFB703;
    box-shadow: 0 0 6px 1px rgba(255, 183, 3, 0.9), 0 0 16px 4px rgba(240, 70, 14, 0.55);
  }
}

@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 span {
    animation: none;
    background: #FFB703;
    box-shadow: 0 0 6px 1px rgba(255, 183, 3, 0.9);
  }
}
