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

#page-curtain {
  position: fixed;
  inset: 0;
  background: #1A1A1A;
  z-index: 99999;
  /* resting position: hidden below the viewport */
  transform: translateY(100%);
  will-change: transform;
  pointer-events: none;
}

/* ── 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);
}
