/* ═══════════════════════════════════════════════════════════════════════
   NATIONAL PLASTO — ULTRA-PREMIUM ARCHITECTURAL PRELOADER
   Inspired by Yodezeen / High-End Architectural Consultancies
   ═══════════════════════════════════════════════════════════════════════ */

/* Lock Scroll while Preloader is Active */
html.arch-loader-active,
body.arch-loader-active {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

/* Fullscreen Loader Viewport */
#arch-loader.yodezeen-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #07090F;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  pointer-events: auto;
  opacity: 1;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  will-change: clip-path, -webkit-clip-path, opacity, transform;
  transition: clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1), -webkit-clip-path 0.9s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.5s ease;
}

#arch-loader.yodezeen-loader.loader-hidden {
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  pointer-events: none;
  opacity: 0;
}

/* Background Atmospheric Media */
.yodezeen-loader__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.yodezeen-loader__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.15);
  transform: scale(1.05);
  animation: loaderZoom 8s ease-out infinite alternate;
}

@keyframes loaderZoom {
  0% { transform: scale(1.04); }
  100% { transform: scale(1.10); }
}

.yodezeen-loader__overlay {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(7, 9, 15, 0.4) 0%, rgba(7, 9, 15, 0.94) 100%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.8) 0%, transparent 40%, rgba(7, 9, 15, 0.95) 100%);
  pointer-events: none;
}

/* Centered Brand Container */
.yodezeen-loader__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.yodezeen-logo-wrap {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

.yodezeen-logo-wrap img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.yodezeen-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
}

.yodezeen-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C8A55E;
  margin-bottom: 8px;
}

.yodezeen-slogan {
  font-family: 'Instrument Sans', -apple-system, sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #FAFAF9;
  max-width: 580px;
  margin: 0 auto;
}

/* Telemetry Counter & Skip Button */
.yodezeen-loader__footer {
  position: absolute;
  bottom: 40px;
  left: 48px;
  right: 48px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.yodezeen-counter {
  display: flex;
  align-items: baseline;
  color: #FAFAF9;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-weight: 700;
}

#yodezeenCountNum {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  color: #FAFAF9;
  font-variant-numeric: tabular-nums;
}

.percent-symbol {
  font-size: 20px;
  color: #C8102E;
  margin-left: 4px;
}

.yodezeen-counter-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
}

.yodezeen-skip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 20px;
  color: #FAFAF9;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.yodezeen-skip-btn:hover {
  background: rgba(200, 16, 46, 0.9);
  border-color: rgba(200, 16, 46, 0.9);
  transform: translateY(-2px);
}

.skip-icon {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.yodezeen-skip-btn:hover .skip-icon {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .yodezeen-loader__footer {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }
  .yodezeen-logo-wrap img {
    height: 36px;
  }
}
