/* ══════════════════════════════════════════════════════════════
   CURTAIN OVERLAY — Simple dark red theatre curtain reveal
   Self-contained under #curtain-overlay. Zero impact on site.
   ══════════════════════════════════════════════════════════════ */

#curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  overflow: hidden;
  pointer-events: all;
}

/* Panels slide outward when curtain--open is added */
#curtain-overlay .curtain-left,
#curtain-overlay .curtain-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: #6b0000;
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

#curtain-overlay .curtain-left  { left: 0;  transform: translateX(0); }
#curtain-overlay .curtain-right { right: 0; transform: translateX(0); }

/* Centre seam shadow so left/right panels look like one drape */
#curtain-overlay .curtain-left  { box-shadow: inset -8px 0 24px rgba(0,0,0,0.55); }
#curtain-overlay .curtain-right { box-shadow: inset  8px 0 24px rgba(0,0,0,0.55); }

/* Welcome text sits between the panels */
#curtain-overlay .curtain-text {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f5d76e;
  font-family: 'Yatra One', cursive;
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  line-height: 1.4;
  text-shadow: 0 4px 15px rgba(0,0,0,0.9);
  padding: 0 24px;
  pointer-events: none;
  animation: ctFadeIn 0.8s ease-out forwards;
}

#curtain-overlay .curtain-text .ct-sub {
  display: block;
  margin-top: 15px;
  font-family: 'VT323', monospace;
  font-size: clamp(1.2rem, 3.5vw, 2.2rem);
  color: #ffffff;
  text-shadow: 0 0 10px #f5d76e, 0 2px 5px rgba(0,0,0,0.9);
  letter-spacing: 2px;
}

/* Open state */
#curtain-overlay.curtain--open .curtain-left  { transform: translateX(-100%); }
#curtain-overlay.curtain--open .curtain-right { transform: translateX(100%); }
#curtain-overlay.curtain--open .curtain-text  { opacity: 0; transition: opacity 0.3s ease; }

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