/* ==========================================================================
   VELUNE — transition.css
   Lamp: the mark's two pieces part and the halves open.
   Curtain: a single ink panel moving bottom → top.
   ========================================================================== */

/* Before the overlay exists, hide the page and paint ink (no flash). */
html.pt-pending,
html.pt-pending body { background: #2A2A2A; }
html.pt-pending body > *:not(.pt) { visibility: hidden; }

.pt {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.pt.is-active { pointer-events: auto; }
.pt[hidden] { display: none; }

/* ---------- Lamp ---------- */
.pt__half {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(50% + 1px);
  display: flex;
  justify-content: center;
  background: #2A2A2A;
  will-change: transform;
  transition: transform 1.15s cubic-bezier(0.77, 0, 0.18, 1);
}
.pt__half--top {
  top: 0;
  align-items: flex-end;
  transform: translateY(-101%);
}
.pt__half--bottom {
  bottom: 0;
  align-items: flex-start;
  transform: translateY(101%);
}
.pt.is-closed .pt__half { transform: none; }

.pt__piece {
  display: block;
  color: #FEFCF6;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.pt__piece--top { width: 56px; margin-bottom: 2px; }
.pt__piece--bottom { width: calc(56px * 0.6622); margin-top: 3px; }
.pt.is-split .pt__piece--top { transform: translateY(-14px); }
.pt.is-split .pt__piece--bottom { transform: translateY(14px); }

@media (min-width: 900px) {
  .pt__piece--top { width: 72px; }
  .pt__piece--bottom { width: calc(72px * 0.6622); }
}

/* ---------- Curtain ---------- */
.pt__curtain {
  position: absolute;
  inset: 0;
  display: none;
  background: #2A2A2A;
  transform: translateY(100%);
  will-change: transform;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.18, 1);
}
.pt.is-curtain .pt__curtain { display: block; }
.pt.is-curtain .pt__half { display: none; }
.pt.is-covered .pt__curtain { transform: none; }
.pt.is-lifted .pt__curtain { transform: translateY(-100%); }

/* No transitions while snapping into a starting state */
.pt.no-anim,
.pt.no-anim * { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .pt { display: none; }
}