/* ═══════════════════════════════════════════════════════
   LAREINE — CINEMATIC BRAND INTRODUCTION  (v3 — MIND-BLOWING)
   ═══════════════════════════════════════════════════════ */

#lr-site-loader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  background: #030810 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  pointer-events: all !important;
  animation: lr-scene-open 0.8s ease both;
}

@keyframes lr-scene-open {
  0%   { opacity: 0; background: #000; }
  100% { opacity: 1; background: #030810; }
}

/* ── Ambient radial atmosphere ── */
#lr-site-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%,
      rgba(16, 37, 80, 0.95) 0%,
      rgba(88, 28, 135, 0.18) 40%,
      rgba(212, 175, 55, 0.06) 65%,
      transparent 85%);
  pointer-events: none;
  animation: lr-atmos-pulse 3.5s ease-in-out infinite;
  z-index: 1;
}

/* ── Outer vignette ── */
#lr-site-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    transparent 35%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
  z-index: 0;
}

@keyframes lr-atmos-pulse {
  0%, 100% { opacity: 0.8;  transform: scale(1); }
  33%       { opacity: 1;   transform: scale(1.06); }
  66%       { opacity: 0.85; transform: scale(0.98); }
}

/* ── EXIT — dramatic flash + collapse ── */
#lr-site-loader.lr-exit {
  animation: lr-scene-close 1s cubic-bezier(0.4, 0, 0.2, 1) both !important;
  pointer-events: none !important;
}

@keyframes lr-scene-close {
  0%   { opacity: 1; transform: scale(1);    filter: brightness(1); }
  25%  { opacity: 1; filter: brightness(2.5); transform: scale(1.02); }
  60%  { opacity: 0.6; transform: scale(1.08) skewY(1deg); filter: brightness(1.5); }
  100% { opacity: 0; transform: scale(1.14); filter: brightness(3) blur(4px); }
}

/* ── PARTICLE CANVAS ── */
.lr-loader-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* ── GRID OVERLAY — subtle depth grid ── */
.lr-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: lr-grid-drift 8s linear infinite;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 75%);
}

@keyframes lr-grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 0 60px, 60px 0; }
}

/* ── SCANLINE — sweeping sensor beam ── */
.lr-scanline {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212,175,55,0.08) 15%,
    rgba(212,175,55,0.55) 40%,
    rgba(255,248,220,0.9) 50%,
    rgba(212,175,55,0.55) 60%,
    rgba(212,175,55,0.08) 85%,
    transparent 100%);
  box-shadow: 0 0 18px 6px rgba(212,175,55,0.35), 0 0 50px 20px rgba(212,175,55,0.12);
  pointer-events: none;
  z-index: 4;
  animation: lr-scan 3.4s cubic-bezier(0.45, 0, 0.55, 1) 0.5s both;
  opacity: 0;
}

@keyframes lr-scan {
  0%   { top: -4px; opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

/* ── CORNER BRACKETS ── */
.lr-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  animation: lr-corners-appear 0.5s ease 0.6s both;
}
.lr-corner-tl { top: 28px;  left:  28px;  border-top: 2px solid rgba(212,175,55,0.6); border-left: 2px solid rgba(212,175,55,0.6); }
.lr-corner-tr { top: 28px;  right: 28px;  border-top: 2px solid rgba(212,175,55,0.6); border-right: 2px solid rgba(212,175,55,0.6); }
.lr-corner-bl { bottom: 28px; left: 28px; border-bottom: 2px solid rgba(212,175,55,0.6); border-left: 2px solid rgba(212,175,55,0.6); }
.lr-corner-br { bottom: 28px; right: 28px; border-bottom: 2px solid rgba(212,175,55,0.6); border-right: 2px solid rgba(212,175,55,0.6); }

@keyframes lr-corners-appear {
  0%   { opacity: 0; transform: scale(0.5); }
  60%  { opacity: 0.9; }
  100% { opacity: 0.7; transform: scale(1); }
}

/* Corner pulse */
.lr-corner-tl, .lr-corner-br {
  animation: lr-corners-appear 0.5s ease 0.6s both, lr-corner-pulse 2.5s ease-in-out 1.2s infinite;
}
.lr-corner-tr, .lr-corner-bl {
  animation: lr-corners-appear 0.5s ease 0.75s both, lr-corner-pulse 2.5s ease-in-out 1.5s infinite;
}

@keyframes lr-corner-pulse {
  0%, 100% { border-color: rgba(212,175,55,0.45); }
  50%       { border-color: rgba(212,175,55,1); box-shadow: 0 0 12px rgba(212,175,55,0.5); }
}

/* ── HORIZONTAL ACCENT LINES ── */
.lr-line-l,
.lr-line-r {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), rgba(255,248,220,0.8), rgba(212,175,55,0.5), transparent);
  z-index: 5;
  animation: lr-line-grow 0.9s ease 1.7s both;
}
.lr-line-l { right: 50%; margin-right: clamp(160px, 25vw, 290px); transform-origin: right; }
.lr-line-r { left: 50%;  margin-left:  clamp(160px, 25vw, 290px); transform-origin: left; }

@keyframes lr-line-grow {
  0%   { width: 0; opacity: 0; }
  50%  { opacity: 1; }
  100% { width: clamp(60px, 14vw, 160px); opacity: 0.65; }
}

/* ── CENTER CONTENT ── */
.lr-loader-inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── LOGO WRAP ── */
.lr-logo-wrap {
  position: relative;
  width: clamp(240px, 36vw, 420px);
  margin-bottom: 28px;
  flex-shrink: 0;
  line-height: 0;
  animation: lr-logo-enter 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes lr-logo-enter {
  0%   {
    opacity: 0;
    transform: scale(0.4) translateY(60px) rotateX(30deg);
    filter: blur(30px) brightness(4);
  }
  30%  {
    opacity: 1;
    filter: blur(4px) brightness(2);
  }
  60%  {
    transform: scale(1.06) translateY(-8px) rotateX(0deg);
    filter: blur(0) brightness(1.3);
  }
  78%  { transform: scale(0.975) translateY(3px); }
  90%  { transform: scale(1.015) translateY(-1px); }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0deg);
    filter: blur(0) brightness(1);
  }
}

/* ── RING 1 — close fast spin ── */
.lr-logo-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  pointer-events: none;
  opacity: 0;
}

.lr-logo-ring-1 {
  inset: -20px;
  border-width: 1.5px;
  border-color:
    rgba(212,175,55,0.8)
    rgba(212,175,55,0.08)
    rgba(212,175,55,0.8)
    rgba(212,175,55,0.08);
  animation: lr-rings-appear 0.5s ease 1.3s both, lr-spin-cw 4s linear 1.8s infinite;
}

/* ── RING 2 — counter-slow ── */
.lr-logo-ring-2 {
  inset: -38px;
  border-width: 1px;
  border-color:
    rgba(212,175,55,0.35)
    transparent
    rgba(212,175,55,0.35)
    transparent;
  animation: lr-rings-appear 0.5s ease 1.5s both, lr-spin-ccw 7s linear 2s infinite;
}

/* ── RING 3 — large slow outer pulse ── */
.lr-logo-ring-3 {
  inset: -58px;
  border-width: 1px;
  border-style: dashed;
  border-color: rgba(212,175,55,0.18);
  animation: lr-rings-appear 0.6s ease 1.7s both, lr-spin-cw 14s linear 2.2s infinite, lr-ring3-pulse 3s ease-in-out 2s infinite;
}

@keyframes lr-ring3-pulse {
  0%, 100% { border-color: rgba(212,175,55,0.12); }
  50%       { border-color: rgba(212,175,55,0.4);  box-shadow: 0 0 30px rgba(212,175,55,0.2); }
}

@keyframes lr-rings-appear {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── GLOW ── */
.lr-logo-glow {
  position: absolute;
  inset: -70px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(212,175,55,0.30) 0%,
    rgba(88, 28,135,0.15) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: lr-glow-breathe 2.8s ease-in-out 1.6s infinite;
  opacity: 0;
  animation-fill-mode: both;
}

@keyframes lr-glow-breathe {
  0%         { opacity: 0;   transform: scale(0.85); }
  25%        { opacity: 1; }
  50%        { transform: scale(1.12); }
  75%        { opacity: 0.8; }
  100%       { opacity: 0.6; transform: scale(1); }
}

/* ── LOGO IMAGE ── */
.lr-logo-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 14px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.45),
    0 0 60px rgba(212,175,55,0.4),
    0 0 120px rgba(212,175,55,0.15),
    0 0 200px rgba(88,28,135,0.2),
    0 30px 70px rgba(0,0,0,0.8);
  animation: lr-img-breathe 3s ease-in-out 2s infinite;
}

@keyframes lr-img-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(212,175,55,0.45),
      0 0 50px rgba(212,175,55,0.3),
      0 30px 70px rgba(0,0,0,0.8);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(212,175,55,0.8),
      0 0 90px rgba(212,175,55,0.65),
      0 0 150px rgba(212,175,55,0.25),
      0 0 220px rgba(88,28,135,0.35),
      0 30px 90px rgba(0,0,0,0.85);
  }
}

/* ── SHEEN ── */
.lr-logo-sheen {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}
.lr-logo-sheen::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(
    112deg,
    transparent 20%,
    rgba(255,255,255,0.18) 48%,
    rgba(255,248,220,0.1) 52%,
    transparent 80%
  );
  animation: lr-sheen 2.8s ease-in-out 2s infinite;
}

@keyframes lr-sheen {
  0%   { transform: translateX(-140%) skewX(-14deg); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateX(300%) skewX(-14deg); opacity: 0.9; }
}

/* ── DIVIDER LINE ── */
.lr-divider {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(212,175,55,0.5) 25%,
    rgba(255,248,220,1) 50%,
    rgba(212,175,55,0.5) 75%,
    transparent);
  margin-bottom: 14px;
  animation: lr-divider-grow 0.7s ease 2s both;
  box-shadow: 0 0 12px rgba(212,175,55,0.5);
}

@keyframes lr-divider-grow {
  0%   { width: 0; opacity: 0; }
  100% { width: clamp(180px, 32vw, 360px); opacity: 1; }
}

/* ── LOADING BAR ── */
.lr-bar-wrap {
  width: clamp(180px, 32vw, 360px);
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: visible;
  position: relative;
  animation: lr-fade-up 0.5s ease 2.1s both;
}

.lr-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,
    #3a2c08, #7a5f18, #d4af37,
    #fff8dc, #f5c842, #d4af37, #7a5f18, #3a2c08);
  background-size: 400% 100%;
  border-radius: 99px;
  animation:
    lr-bar-grow    3.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.2s both,
    lr-bar-shimmer 1.6s linear 2.6s infinite;
  position: relative;
}

.lr-bar-fill::after {
  content: '';
  position: absolute;
  right: -2px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff8dc;
  box-shadow:
    0 0 12px 5px rgba(212,175,55,1),
    0 0 30px 14px rgba(212,175,55,0.55),
    0 0 60px 25px rgba(212,175,55,0.2);
}

/* ── TAGLINE ── */
.lr-tagline {
  font-family: 'Inter', 'Montserrat', 'Helvetica Neue', sans-serif;
  font-size: clamp(0.55rem, 1.3vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.7);
  margin-top: 18px;
  animation: lr-fade-up 0.6s ease 2.4s both;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(212,175,55,0.5);
}

/* ── SUB TAGLINE ── */
.lr-sub-tagline {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: clamp(0.42rem, 0.9vw, 0.52rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.35);
  margin-top: 8px;
  animation: lr-fade-up 0.6s ease 2.8s both;
  white-space: nowrap;
}

/* ── ESTATE LABEL (top) ── */
.lr-estate-label {
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: clamp(0.48rem, 1.1vw, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(212,175,55,0.5);
  margin-bottom: 24px;
  animation: lr-fade-down 0.6s ease 0.7s both;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(212,175,55,0.6);
}

@keyframes lr-fade-down {
  0%   { opacity: 0; transform: translateY(-16px) letterSpacing 1em; }
  100% { opacity: 1; transform: translateY(0); }
}

/* ═══ SHARED KEYFRAMES ═══ */

@keyframes lr-spin-cw  { to { transform: rotate(360deg);  } }
@keyframes lr-spin-ccw { to { transform: rotate(-360deg); } }

@keyframes lr-fade-up {
  0%   { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes lr-bar-grow {
  from { width: 0%; }
  to   { width: 100%; }
}

@keyframes lr-bar-shimmer {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}
