/* ===== ULTRA-MODERN BESPOKE ARCHITECTURAL PRELOADER (WHITE & ORANGE PALETTE) ===== */
#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  background-image: radial-gradient(circle at 50% 45%, #ffffff 0%, #faf8f5 70%, #f7f3ee 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 5%;
  z-index: 999999;
  overflow: hidden;
  will-change: transform, opacity;
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
  box-sizing: border-box;
}

#loader.veil-up {
  transform: translateY(-100%);
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Subtle Ambient Lighting Aura */
.loader-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(242, 101, 34, 0.08) 0%, rgba(255, 122, 60, 0.02) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: ambientFloat 5s ease-in-out infinite alternate;
}
@keyframes ambientFloat {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Header & Footer Architectural Meta Strips */
.loader-header-meta, .loader-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 10;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #94a3b8;
  user-select: none;
}
.loader-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}
.loader-meta-dot {
  width: 6px;
  height: 6px;
  background: #F26522;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(242, 101, 34, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* Central Stage Container */
.loader-stage {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 580px;
  width: 100%;
  margin: auto;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}
#loader.veil-up .loader-stage {
  transform: translateY(-30px);
  opacity: 0;
}

/* Modern Logo Presentation */
.loader-logo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.loader-logo-img {
  max-height: 80px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 20px rgba(242, 101, 34, 0.16));
  animation: logoFloatModern 4.5s ease-in-out infinite alternate;
  display: block;
  margin: 0 auto;
}
@keyframes logoFloatModern {
  0% { transform: translateY(0px) scale(0.99); }
  100% { transform: translateY(-4px) scale(1.01); }
}

/* Sleek Linear Accent */
.loader-accent-line {
  width: 36px;
  height: 2.5px;
  background: #F26522;
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* Brand Display Headline */
.loader-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.15;
}
.loader-brand-title span {
  color: #F26522;
}

/* Modern Dynamic Status Ticker (Steady, Readable Pacing) */
.loader-status-wrap {
  min-height: 26px;
  margin: 14px 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.loader-status-text {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F26522;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.loader-status-text.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}
.loader-status-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Center Hairline Progress Track */
.loader-progress-box {
  width: 280px;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loader-progress-track {
  width: 100%;
  height: 3px;
  background: #f1e5dd;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F26522, #ff7a3c);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(242, 101, 34, 0.6);
  transition: width 0.08s ease-out;
}

/* Oversized Editorial Modern Typographic Counter in Footer */
.loader-counter-large {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.loader-counter-large span.pct {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #F26522;
  margin-left: 2px;
}

/* Full-Width Hairline Progress at Bottom Edge */
.loader-edge-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 20;
}
.loader-edge-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #F26522, #ff7a3c);
  box-shadow: 0 -2px 10px rgba(242, 101, 34, 0.5);
  transition: width 0.08s ease-out;
}

@media (max-width: 640px) {
  #loader {
    padding: 24px 5%;
  }
  .loader-brand-title {
    font-size: 26px;
  }
  .loader-status-text {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .loader-counter-large {
    font-size: 32px;
  }
  .loader-header-meta, .loader-footer-meta {
    font-size: 9.5px;
    letter-spacing: 1.2px;
  }
}

/* ===== GLOBAL HIGH-PRECISION TOP SCROLL PROGRESS BAR ===== */
#scrollBar, .scroll-progress-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 3.5px !important;
  width: 0%;
  background: linear-gradient(90deg, #F26522 0%, #ff7a3c 50%, #f59e0b 100%) !important;
  z-index: 999999 !important;
  transition: width 0.08s ease-out !important;
  box-shadow: 0 0 10px rgba(242, 101, 34, 0.6) !important;
  pointer-events: none !important;
}
