/* ============================================================
   Home — the invite to play.
   Hero: her shot breaking the grid, headline as an invitation.
   Then: voice-note from Violet → locked stash → live wire → CTA.
   ============================================================ */

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 7.5rem var(--gutter) 4rem;
  max-width: 90rem;
  margin: 0 auto;
}

.hero-shot {
  position: absolute;
  top: 11vh;
  right: calc(var(--gutter) * 0.6);
  width: min(42vw, 31rem);
  aspect-ratio: 3 / 4;
  transform: rotate(2.4deg);
  box-shadow: 0 50px 110px -35px rgba(0, 0, 0, 0.9), 0 0 80px -30px rgba(157, 92, 255, 0.5);
  z-index: 0;
  will-change: transform;
}

/* tape strips over the hero shot corners */
.hero-tape,
.hero-tape-b {
  position: absolute;
  width: 7rem;
  height: 1.7rem;
  background: rgba(214, 179, 255, 0.22);
  backdrop-filter: blur(2px);
  z-index: 4;
  pointer-events: none;
}

.hero-tape { top: calc(11vh - 0.8rem); right: calc(var(--gutter) * 0.6 + 2rem); transform: rotate(-8deg); }
.hero-tape-b { top: calc(11vh + min(42vw, 31rem) * 4 / 3 - 1rem); right: calc(var(--gutter) * 0.6 - 1.6rem); transform: rotate(12deg); }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 58rem;
}

.hero-sticker { margin-bottom: 1.4rem; }

.hero-title {
  font-size: var(--text-hero);
  color: var(--chrome);
  text-transform: uppercase;
}

.hero-title .line { display: block; overflow: hidden; }

.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-snap) forwards;
}

.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes rise { to { transform: translateY(0); } }

body.gate-locked .hero-title .line > span { animation-play-state: paused; }

.hero-title .shift { padding-left: clamp(1.5rem, 8vw, 7rem); }

.hero-sub {
  margin-top: 1.6rem;
  color: var(--text-dim);
  max-width: 30rem;
  font-size: 1.05rem;
}

.hero-meta {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.4rem;
}

.hero-stat { display: flex; flex-direction: column; gap: 0.2rem; }

.hero-stat strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--uv);
  text-shadow: 0 0 18px rgba(157, 92, 255, 0.5);
}

.hero-stat span {
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 45vh;
    min-height: 100vh;
  }
  .hero-shot {
    display: none;
  }
  .hero-tape, .hero-tape-b { display: none; }
}

/* ---------- voice note from Violet ---------- */

.note {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.note-figure {
  aspect-ratio: 4 / 5;
  transform: rotate(-2deg);
  box-shadow: 0 45px 90px -35px rgba(0, 0, 0, 0.85);
}

.note-body .display {
  font-size: var(--text-h2);
  color: var(--chrome);
  text-transform: uppercase;
}

/* chat-bubble stack — 3am texts */
.note-bubbles {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 26rem;
}

.note-bubble {
  align-self: flex-start;
  background: linear-gradient(150deg, rgba(157, 92, 255, 0.2), rgba(29, 16, 51, 0.8));
  border: 1px solid rgba(157, 92, 255, 0.3);
  border-radius: 14px 14px 14px 3px;
  padding: 0.85rem 1.2rem;
  font-size: 0.98rem;
  color: var(--text);
}

.note-bubble.tilt-a { transform: rotate(-0.6deg); }
.note-bubble.tilt-b { transform: rotate(0.5deg); }

.note-time {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

@media (max-width: 900px) {
  .note { grid-template-columns: 1fr; }
  .note-figure { max-width: 19rem; }
}

/* ---------- the stash (locked teasers) ---------- */

.stash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.stash-grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
}

/* scattered, taped-up rhythm */
.stash-card { position: relative; }
.stash-card:nth-child(1) { grid-column: 1 / span 4; aspect-ratio: 3 / 4; transform: rotate(-1.4deg); }
.stash-card:nth-child(2) { grid-column: 5 / span 5; aspect-ratio: 4 / 5; margin-top: 3rem; transform: rotate(0.8deg); }
.stash-card:nth-child(3) { grid-column: 10 / span 3; aspect-ratio: 3 / 5; transform: rotate(1.6deg); }
.stash-card:nth-child(4) { grid-column: 2 / span 3; aspect-ratio: 3 / 4; margin-top: -1.5rem; transform: rotate(1deg); }
.stash-card:nth-child(5) { grid-column: 5 / span 4; aspect-ratio: 3 / 4; margin-top: 2rem; transform: rotate(-1.2deg); }
.stash-card:nth-child(6) { grid-column: 9 / span 4; aspect-ratio: 4 / 5; transform: rotate(0.6deg); }

.stash-card .ph { position: absolute; inset: 0; }

.stash-card:hover .ph-veil {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 5, 18, 0.08);
}

.stash-card:hover .ph-lock {
  transform: translate(-50%, -50%) scale(1.14) rotate(-6deg);
  box-shadow: 0 0 40px rgba(157, 92, 255, 0.55);
}

.stash-tag {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--chrome);
  background: rgba(10, 5, 18, 0.65);
  border: 1px solid rgba(157, 92, 255, 0.4);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}

@media (max-width: 760px) {
  .stash-card { margin-top: 0 !important; }
  .stash-card:nth-child(odd) { grid-column: 1 / span 7; }
  .stash-card:nth-child(even) { grid-column: 6 / 13; margin-top: 1rem !important; }
}

/* ---------- live wire strip ---------- */

.live {
  margin-top: var(--space-section);
  background: linear-gradient(110deg, rgba(29, 16, 51, 0.9), rgba(19, 10, 34, 0.95));
  border-top: 1px solid rgba(157, 92, 255, 0.35);
  border-bottom: 1px solid rgba(157, 92, 255, 0.35);
}

.live-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--acid);
}

.live-dot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--acid);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(125, 249, 228, 0.55); }
  to { box-shadow: 0 0 0 14px rgba(125, 249, 228, 0); }
}

.live-title {
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  color: var(--chrome);
  margin-top: 1.2rem;
  text-transform: uppercase;
}

.live-countdown {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.live-cell {
  min-width: 4.6rem;
  text-align: center;
  padding: 0.9rem 0.6rem;
  border: 1px solid rgba(157, 92, 255, 0.4);
  border-radius: 4px;
  background: rgba(10, 5, 18, 0.6);
}

.live-cell strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--uv);
  text-shadow: 0 0 16px rgba(157, 92, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.live-cell span {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.live-figure { aspect-ratio: 4 / 3; transform: rotate(-1.6deg); }

@media (max-width: 900px) {
  .live-inner { grid-template-columns: 1fr; }
}

/* ---------- closing dare ---------- */

.close-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.close-cta .neon { font-size: clamp(1.6rem, 4.5vw, 2.8rem); }

.close-cta .display {
  font-size: var(--text-h2);
  color: var(--chrome);
  max-width: 46rem;
  text-transform: uppercase;
}

.close-cta .lede { text-align: center; }

/* ============================================================
   HERO BACKDROP — her, full-bleed behind the headline.
   These are wide/square reclining shots, so a plain cover fit
   frames her with barely any crop. Light defocus only; the
   scrim is weighted to the copy side so she stays visible.
   ============================================================ */

.hero-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: blur(6px) saturate(1.1);
}

/* scrim: heavy under the copy, light across her */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg,
      rgba(10, 5, 18, 0.93) 0%,
      rgba(10, 5, 18, 0.84) 20%,
      rgba(10, 5, 18, 0.5) 38%,
      rgba(10, 5, 18, 0.16) 62%,
      rgba(10, 5, 18, 0.1) 100%),
    radial-gradient(58% 52% at 66% 28%, rgba(157, 92, 255, 0.22), transparent 72%),
    radial-gradient(40% 40% at 22% 80%, rgba(240, 98, 216, 0.09), transparent 70%),
    
    linear-gradient(180deg, transparent 76%, rgba(10, 5, 18, 0.8) 100%);
}

@media (max-width: 900px) {
  .hero-bg img { object-position: center; filter: saturate(1.1); }
  .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    mask-image: linear-gradient(to bottom, transparent 20%, black 70%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 20%, black 70%);
    z-index: 1;
  }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(10, 5, 18, 0.55) 0%, rgba(10, 5, 18, 0.42) 40%, rgba(10, 5, 18, 0.94) 100%);
    z-index: 2;
  }
}

/* ============================================================
   OUTRO BACKDROP — The full-bleed background for the closing
   dare and footer on the home page.
   ============================================================ */

.home-outro {
  position: relative;
  z-index: 1; 
}

/* The footer already has a top margin, and the section above it has padding.
   This wrapper needs to sit tight against the element above it so the gradient
   blend works seamlessly. */
.home-outro .section {
  padding-top: 0;
  margin-top: var(--space-section);
}

.closing-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.closing-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(6px) saturate(1.1);
}

/* scrim to blend into the body above it, and tint */
.closing-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, 
      var(--void) 0%, 
      rgba(10, 5, 18, 0.8) 20%, 
      rgba(10, 5, 18, 0.5) 60%, 
      rgba(10, 5, 18, 0.2) 100%),
    radial-gradient(50% 50% at 50% 70%, rgba(157, 92, 255, 0.22), transparent 80%),
    radial-gradient(40% 40% at 80% 90%, rgba(240, 98, 216, 0.1), transparent 70%);
}

/* ============================================================
   FIXED MIDDLE BACKGROUND — non-scrollable bg for middle sections
   ============================================================ */

.home-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.home-fixed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.15;
  filter: saturate(0.4) blur(1px);
}

.home-fixed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(157, 92, 255, 0.15), rgba(10, 5, 18, 0.6) 90%);
}
