/* ═══════════════════════════════════════════════════
   Page Transition — dark curtain rises from bottom,
   exits off the top.
   ═══════════════════════════════════════════════════ */

#page-curtain {
  position: fixed;
  inset: 0;
  background: #1A1A1A;
  z-index: 99999;
  /* starts covered on page load */
  transform: translateY(0%);
  will-change: transform;
  pointer-events: all;
}

/* ── Phase 1: slide up to cover the screen ── */
#page-curtain.is-covering {
  pointer-events: all;
  transform: translateY(0%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── Phase 2: slide off the top to reveal the new page ── */
#page-curtain.is-revealing {
  pointer-events: none;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

/* ── Content Wrapper for Preloader ── */
.curtain-content-wrapper {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100000;
}

.curtain-text {
  text-align: center;
  color: #F7F5F0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.curtain-text.fade-out {
  opacity: 0;
}

.curtain-subtitle {
  display: block;
  font-size: 0.75rem; /* text-xs equivalent */
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.6;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 1rem;
}

.curtain-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: #D7CDB6;
}
