
#site-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #ffffff;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#site-preloader.pl-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pl-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pl-icon {
  width: 38px;
  height: 38px;
  background: #1b4b8a;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Subtle inner gradient lift */
.pl-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 55%);
}

/* Sheen sweep */
.pl-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: -90%;
  width: 45%;
  height: 100%;
  background: rgba(255, 255, 255, 0.26);
  transform: skewX(-16deg);
  animation: pl-sheen 2s ease-in-out infinite;
}

/* Orange accent dot centred in icon */
.pl-icon-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pl-icon-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8542a;
  opacity: 0.88;
}

.pl-site-name {
  font-size: 16px;
  font-weight: 700;
  color: #1b4b8a;
  letter-spacing: 0.01em;
  line-height: 1;
}

.pl-bar-track {
  width: 190px;
  height: 3px;
  background: #e6e6e6;
  border-radius: 99px;
  overflow: hidden;
}

.pl-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: #1b4b8a;
  position: relative;
  animation: pl-progress 2.4s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* Orange leading tip on the bar */
.pl-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 18px;
  height: 100%;
  background: #e8542a;
  border-radius: 99px;
}

@keyframes pl-sheen {
  0%        { left: -90%; }
  55%, 100% { left: 150%; }
}

@keyframes pl-progress {
  0%   { width: 0%;   }
  50%  { width: 70%;  }
  80%  { width: 90%;  }
  100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-icon::after { animation: none; }
  .pl-bar-fill    { animation: none; width: 100%; }
}