/* ==========================================================================
   Creative Logo-Only Preloader Stylesheet (GREMI Brand Pulse & Reveal)
   Minimalist, High-End Luxury Entrance
   ========================================================================== */

/* Prevent scroll during preloading */
body.rt-preloading {
  overflow: hidden !important;
  height: 100vh !important;
}

.rt-preloader {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
}

/* Cinematic Dual Shutters */
.rt-preloader-shutter {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: radial-gradient(circle at center, #002555 0%, #001639 65%, #000c22 100%);
  z-index: 1;
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

.rt-shutter-top {
  top: 0;
  transform-origin: top center;
  border-bottom: 1.5px solid rgba(157, 27, 48, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.rt-shutter-bottom {
  bottom: 0;
  transform-origin: bottom center;
  /* border-top: 1.5px solid rgba(157, 27, 48, 0.5); */
  /* box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6); */
}

/* Shutter Exit States */
.rt-preloader.is-loaded .rt-shutter-top {
  transform: translateY(-100%);
}

.rt-preloader.is-loaded .rt-shutter-bottom {
  transform: translateY(100%);
}

/* Center Logo Presentation */
.rt-preloader-center {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s ease;
  will-change: opacity, transform;
}

.rt-preloader.is-loaded .rt-preloader-center {
  opacity: 0;
  transform: scale(1.1);
  filter: blur(4px);
}

/* Logo Box & Effects */
.rt-preloader-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Breathing Crimson / Royal Navy Backlight */
.rt-preloader-logo-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  /* background: radial-gradient(circle, rgba(157, 27, 48, 0.45) 0%, rgba(0, 37, 85, 0.25) 50%, transparent 72%); */
  filter: blur(35px);
  z-index: 1;
  pointer-events: none;
  animation: rtLogoPulse 3.4s ease-in-out infinite alternate;
}

@keyframes rtLogoPulse {
  0% {
    transform: scale(0.88);
    opacity: 0.55;
  }

  100% {
    transform: scale(1.18);
    opacity: 0.95;
  }
}

/* Logo Image */
.rt-preloader-logo {
  position: relative;
  z-index: 2;
  width: 210px;
  height: auto;
  max-width: 85vw;
  object-fit: contain;
  /* filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 15px rgba(157, 27, 48, 0.25)); */
  animation: rtLogoFloat 3.4s ease-in-out infinite alternate;
}

@keyframes rtLogoFloat {
  0% {
    transform: scale(0.96) translateY(2px);
    opacity: 0.92;
  }

  100% {
    transform: scale(1.03) translateY(-2px);
    opacity: 1;
  }
}

/* Diagonal Gleam / Light Sweep */
.rt-preloader-logo-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
}

.rt-preloader-logo-shine::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -120%;
  width: 80%;
  height: 200%;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, 0.35) 45%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0.35) 55%,
      transparent 80%);
  transform: rotate(20deg);
  animation: rtLightSweep 3.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rtLightSweep {
  0% {
    left: -120%;
  }

  45%,
  100% {
    left: 150%;
  }
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .rt-preloader-logo {
    width: 165px;
  }

  .rt-preloader-logo-glow {
    width: 220px;
    height: 220px;
  }
}