/* ============================================================
   Design 2 — "CURTAIN CALL"
   Dark theatrical. Two panels part to reveal the stage.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:    #6FA7A3;
  --charcoal:#1E1E1E;
  --coral:   #DD6F56;
  --ash:     #EEECE7;
  --sage:    #8DA48F;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--charcoal);
  color: var(--ash);
  font-family: var(--font-body);
  cursor: none;
}

/* ── Grain ──────────────────────────────────────────────── */

.grain-filter { position: fixed; width: 0; height: 0; }

.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: url(#grain);
  opacity: 0.055;
  pointer-events: none;
  z-index: 100;
  background: var(--ash);
}

/* ── Custom cursor ──────────────────────────────────────── */

.cursor,
.cursor-trail {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor {
  width: 10px;
  height: 10px;
  background: var(--coral);
}

.cursor-trail {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(221,111,86,0.4);
  transition: transform 0.12s ease, opacity 0.3s;
}

/* ── Curtains ───────────────────────────────────────────── */

.curtain {
  position: fixed;
  left: 0;
  width: 100%;
  height: 50%;
  background: #111;
  z-index: 50;
  transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}

.curtain::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(221,111,86,0.25);
}

.curtain--top { top: 0; transform-origin: top center; }
.curtain--top::after { bottom: 0; }

.curtain--bottom { bottom: 0; transform-origin: bottom center; }
.curtain--bottom::after { top: 0; }

.curtain--top.is-open    { transform: translateY(-100%); }
.curtain--bottom.is-open { transform: translateY(100%); }

/* ── Stage layout ───────────────────────────────────────── */

.stage {
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2.5rem 3rem;
  position: relative;
  z-index: 10;
}

/* ── Header ─────────────────────────────────────────────── */

.stage__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  animation: fade-in 0.6s 1.4s ease forwards;
}

.stage__logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 8px;
}

.stage__location {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238,236,231,0.4);
}

/* ── Center ─────────────────────────────────────────────── */

.stage__center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 900px;
}

.stage__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-in 0.5s 1.5s ease forwards;
}

.stage__label span:first-child,
.stage__label span:last-child {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--teal);
  opacity: 0.5;
}

/* ── Heading ─────────────────────────────────────────────── */

.stage__heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.9;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.stage__word {
  display: block;
  overflow: hidden;
}

.stage__word--outline {
  -webkit-text-stroke: 2px var(--ash);
  color: transparent;
  opacity: 0;
  animation: slide-up 0.8s 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stage__word--filled {
  color: var(--coral);
  opacity: 0;
  animation: slide-up 0.8s 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Body text ───────────────────────────────────────────── */

.stage__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(238,236,231,0.6);
  max-width: 440px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-in 0.6s 2s ease forwards;
}

/* ── Form ────────────────────────────────────────────────── */

.stage__form {
  opacity: 0;
  animation: fade-in 0.6s 2.15s ease forwards;
}

.stage__form-row {
  display: flex;
  gap: 0;
  max-width: 420px;
}

.stage__input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: rgba(238,236,231,0.07);
  border: 1px solid rgba(238,236,231,0.18);
  border-right: none;
  border-radius: 3px 0 0 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ash);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}

.stage__input::placeholder { color: rgba(238,236,231,0.3); }
.stage__input:focus {
  background: rgba(238,236,231,0.1);
  border-color: var(--teal);
}

.stage__btn {
  padding: 0.9rem 1.5rem;
  background: var(--coral);
  color: #fff;
  border: 1px solid var(--coral);
  border-radius: 0 3px 3px 0;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: none;
  transition: background 0.2s;
}

.stage__btn:hover { background: #c95d45; border-color: #c95d45; }

.stage__confirm {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--teal);
}
.stage__confirm[hidden] { display: none; }

/* ── Footer ─────────────────────────────────────────────── */

.stage__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238,236,231,0.1);
  opacity: 0;
  animation: fade-in 0.6s 2.3s ease forwards;
}

.stage__countdown {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stage__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage__val {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ash);
}

.stage__lbl {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 0.2rem;
}

.stage__sep {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral);
  align-self: flex-start;
  padding-top: 1px;
  animation: blink 1.2s step-start infinite;
}

.stage__social {
  display: flex;
  gap: 1.5rem;
}

.stage__social a {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(238,236,231,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.stage__social a:hover { color: var(--ash); }

/* ── Keyframes ───────────────────────────────────────────── */

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 640px) {
  .stage { padding: 1.5rem; }
  .stage__form-row { flex-direction: column; }
  .stage__input { border-right: 1px solid rgba(238,236,231,0.18); border-radius: 3px 3px 0 0; }
  .stage__btn   { border-radius: 0 0 3px 3px; }
  .stage__social { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
