/* ===== madi & Dave's Talent Show — splash styles ===== */

:root {
  --ink: #1a0a12;          /* deep velvet near-black */
  --ink-2: #2a0e1c;
  --gold: #ffd43b;
  --gold-soft: #ffe08a;
  --rose: #e64980;
  --rose-deep: #b02a5b;
  --cream: #fff4e6;
  --maxw: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Velvet stage backdrop with a warm spotlight wash */
.stage-wrap {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 4vw, 40px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 22%, rgba(255,210,130,0.18), transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 120%, var(--ink-2), var(--ink) 70%);
}

/* faint vignette so the edges feel like a darkened theater */
.stage-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(0,0,0,0.6);
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 8px 2px rgba(255,224,138,0.7);
  opacity: 0;
}

.topbill { position: relative; z-index: 2; }
.kicker {
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: clamp(11px, 2.4vw, 14px);
  color: var(--gold);
  margin: 4px 0 0;
}

/* ===== Hero animation =====
   The act is a fixed-ratio coordinate space; every puppet is absolutely
   positioned inside it. Percentages are tuned by eye against the cut-out art —
   the handful of "TUNE" values are the only things to nudge if art shifts. */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: clamp(4px, 2vw, 16px) auto 0;
  overflow: visible;
}
.act {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  overflow: visible;
  /* The top of the act is transparent launch headroom; pull it up under the
     billing (which sits above on z-index) to tighten the gap to the date/venue.
     % is relative to .hero width, so it scales with the art and caps at 460px. */
  margin-top: -21%;
}

/* Warm pool of light behind the act. Centered via transform; only opacity is
   animated so the transform stays put. */
.spotlight {
  position: absolute;
  left: 50%;
  top: 32%;
  width: 96%;
  height: 82%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
              rgba(255, 225, 150, 0.55) 0%,
              rgba(255, 200, 110, 0.10) 55%,
              rgba(255, 200, 110, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.puppet {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* ---- madi (base) — anchored at her seat, bottom-center. Only opacity is
   animated on these, so the centering transform is safe. ---- */
#mBodyExt, #mBodyBent {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 1;
}
#mBodyExt  { width: 42%; }                 /* TUNE: base scale */
#mBodyBent { width: 43%; opacity: 0; }     /* TUNE: matched so the seat lines up */

/* ---- Dave (juggled) — .dave is a full-act overlay so GSAP transforms behave
   predictably. Its transform-origin is the platform (madi's feet), so he
   flies and flips around the point he rides on. ---- */
.dave {
  position: absolute;
  inset: 0;
  transform-origin: 48.7% 50.8%;   /* TUNE: platform = madi's feet (% of act) */
  z-index: 3;
}
/* Dave's bodies are positioned in act-% coords, centered on the platform. */
#dBodyExt {
  left: 48.7%; top: 50.8%;   /* TUNE: lies across her feet */
  width: 52%;                /* TUNE: Dave scale */
  transform: translate(-50%, -50%);
}
#dBodyBall {
  left: 48.7%; top: 43%;     /* TUNE: shoes rest on feet, so center sits higher */
  width: 27%;                /* TUNE: ball scale */
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* ---- Heads — each on a centering anchor; GSAP bobbles the inner <img> and
   (for Dave) moves the anchor between poses, so the two never collide. ---- */
.head-anchor {
  position: absolute;
  transform: translate(-50%, -50%);
}
.head-anchor .head {
  display: block;
  width: 100%;
  will-change: transform;
}
#mHeadPos {                /* TUNE: madi's neck — she lies on her back, so her
                              head is DOWN at her shoulders on the ground, not up
                              at her feet (% of act) */
  left: 66%;
  top: 92%;
  width: 19%;
  z-index: 4;
}
#dHeadPos {                /* TUNE: Dave's neck, extended pose (% of act) */
  left: 55%;
  top: 40%;
  width: 17%;
  z-index: 5;
}

/* ===== Billing / copy ===== */
.billing {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: var(--maxw);
  margin-top: clamp(4px, 1.5vw, 12px);
}

.title {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
  margin: 0 0 0.4em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.35);
}
.title .line {
  display: block;
  font-size: clamp(30px, 9vw, 58px);
  color: var(--cream);
}
.title .line.big {
  font-size: clamp(40px, 12vw, 82px);
  color: var(--gold);
  -webkit-text-stroke: 1px rgba(0,0,0,0.18);
}

.tagline {
  font-size: clamp(15px, 3.6vw, 19px);
  color: #ffe9d6;
  opacity: 0.92;
  max-width: 28ch;
  margin: 0.2em auto 1.4em;
}

/* ===== When ===== */
.when {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 0.45em;
  font-size: clamp(15px, 3.8vw, 20px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}
.venue {
  margin: 0 0 0.8em;
  font-size: clamp(13px, 3.2vw, 16px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream, #f3e7d3);
  opacity: 0.85;
}
.when-dot {
  font-size: 0.7em;
  color: var(--rose);
  opacity: 0.9;
}

/* ===== Sign-up CTA ===== */
.signup {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: clamp(10px, 3vw, 22px);
}
.cta {
  display: inline-block;
  font-weight: 600;
  font-size: clamp(16px, 4vw, 20px);
  letter-spacing: 0.01em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  padding: 0.85em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(255,200,80,0.28),
    inset 0 -2px 0 rgba(0,0,0,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255,200,80,0.42), inset 0 -2px 0 rgba(0,0,0,0.12);
  outline: none;
}

.footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,244,230,0.55);
  text-align: center;
}

/* ===== Reduced motion: hold a clean static pose ===== */
@media (prefers-reduced-motion: reduce) {
  .sparkles { display: none; }
}
