/* ============================================================
   LE NOIREEE — Preloader
   White page, warm brown animated text, minimal line
   ============================================================ */

#ln-preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#ln-preloader.ln-pre-exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ln-pre-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Animated text */
.ln-pre-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: #C4A882;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0;
  min-height: 1.2em;

  /* Cursor blink */
  border-right: 1.5px solid #C4A882;
  padding-right: 2px;
  animation: ln-cursor 0.3s step-end infinite;
  white-space: nowrap;
}

@keyframes ln-cursor {
  0%, 100% { border-color: #C4A882; }
  50%       { border-color: transparent; }
}

/* Thin progress line */
.ln-pre-line {
  width: 40px;
  height: 0.2px;
  background: #E2DDD5;
  position: relative;
  overflow: hidden;
}

.ln-pre-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #C4A882;
  transform: translateX(-100%);
  animation: ln-progress 0.5s ease forwards;
  animation-delay: 0.3s;
}

@keyframes ln-progress {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

/* Subtle fade in */
.ln-pre-content {
  animation: ln-appear 0.6s ease forwards;
}

@keyframes ln-appear {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}