/* ============================================================
   The Entrance — 18+ velvet threshold.
   The whole site waits behind a drawn curtain. Confirming age
   parts the curtain in two slow panels.
   ============================================================ */

.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gate[hidden] { display: none; }

.gate-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 51%;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(64, 20, 46, 0.95), rgba(21, 6, 16, 1) 70%),
    var(--ink);
  transition: transform 1.6s cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}

/* velvet fold texture on the curtain panels */
.gate-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    rgba(221, 139, 168, 0.03) 2.5rem,
    transparent 5rem
  );
}

.gate-panel-left { left: 0; }
.gate-panel-right { right: 0; }

.gate.is-open .gate-panel-left { transform: translateX(-101%); }
.gate.is-open .gate-panel-right { transform: translateX(101%); }

.gate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 34rem;
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.gate.is-open .gate-content {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(8px);
  pointer-events: none;
}

.gate-monogram {
  font-family: var(--font-script);
  font-size: clamp(4rem, 10vw, 6.5rem);
  color: var(--rose);
  line-height: 1;
  text-shadow: 0 0 60px rgba(221, 139, 168, 0.45);
}

.gate-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cream);
  margin-top: 1.2rem;
  line-height: 1.25;
}

.gate-sub {
  margin-top: 1.1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.gate-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.gate-leave {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  transition: color 0.4s ease;
}

.gate-leave:hover { color: var(--rose); }

.gate-legal {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(179, 145, 161, 0.55);
  transition: opacity 0.5s ease;
}

.gate.is-open .gate-legal { opacity: 0; }

/* while gate is closed, freeze the page behind it */
body.gate-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .gate-panel { transition-duration: 0.4s; }
  .gate-content { transition-duration: 0.3s; }
}
