/* ============================================================
   Home — the seduction funnel.
   Hero: her portrait behind oversized editorial type.
   Then: letter from Mia → locked teasers → live strip → CTA.
   ============================================================ */

/* ---------- mid-zone fixed blurred background ---------- */

.home-mid-zone {
  position: relative;
}

.home-mid-bg {
  position: fixed;
  inset: -24px;
  z-index: -2;
  background: url("../assets/home-mid-bg.jpg") center / 85% no-repeat;
  filter: blur(12px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .home-mid-bg {
    background-size: cover;
  }
}

.home-mid-tint {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 50% at 80% 12%, rgba(221, 139, 168, 0.13), transparent 70%),
    radial-gradient(60% 50% at 10% 88%, rgba(185, 92, 127, 0.11), transparent 70%),
    rgba(21, 6, 16, 0.57);
  pointer-events: none;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 8rem var(--gutter) 4.5rem;
  max-width: 90rem;
  margin: 0 auto;
}

.hero-portrait {
  position: absolute;
  top: 9vh;
  right: var(--gutter);
  width: min(44vw, 34rem);
  aspect-ratio: 3 / 4;
  z-index: 0;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.8);
  will-change: transform;
}

.hero-portrait-frame {
  position: absolute;
  top: calc(9vh - 1.4rem);
  right: calc(var(--gutter) - 1.4rem);
  width: min(44vw, 34rem);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(221, 139, 168, 0.3);
  z-index: 0;
  pointer-events: none;
}

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

.hero-title {
  font-size: var(--text-hero);
  color: var(--cream);
  text-shadow: 0 10px 60px rgba(21, 6, 16, 0.85);
}

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

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

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

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

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

.hero-title .indent { padding-left: clamp(2rem, 10vw, 9rem); }

.hero-script {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 0.6rem;
  display: inline-block;
  transform: rotate(-3deg);
}

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

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

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--rose-glow);
}

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

.hero-scrollcue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-scrollcue::after {
  content: "";
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(180deg, var(--rose), transparent);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 900px) {
  /* no card on mobile — the backdrop carries the hero on its own,
     with the copy sitting over it */
  .hero-portrait,
  .hero-portrait-frame { display: none; }

  .hero {
    min-height: 100vh;
    align-items: center;
    padding: 7rem var(--gutter) 4rem;
  }
  .hero-scrollcue { display: none; }
}

/* ---------- letter from Mia ---------- */

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

.letter-figure {
  aspect-ratio: 3 / 4;
  transform: rotate(-2.5deg);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.75);
}

.letter-body .script {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  display: block;
  margin-bottom: 1.8rem;
}

.letter-text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  max-width: 32rem;
}

.letter-text + .letter-text { margin-top: 1.4rem; }

.letter-sign {
  margin-top: 2.2rem;
  font-size: 2.2rem;
}

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

/* ---------- locked teasers ---------- */

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

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

/* editorial, uneven rhythm — not a uniform card pile */
.tease-card { position: relative; }
.tease-card:nth-child(1) { grid-column: 1 / span 5; aspect-ratio: 3 / 4; }
.tease-card:nth-child(2) { grid-column: 6 / span 4; aspect-ratio: 4 / 5; margin-top: 3.5rem; }
.tease-card:nth-child(3) { grid-column: 10 / span 3; aspect-ratio: 3 / 5; }
.tease-card:nth-child(4) { grid-column: 2 / span 3; aspect-ratio: 3 / 4; margin-top: -2rem; }
.tease-card:nth-child(5) { grid-column: 5 / span 5; aspect-ratio: 16 / 11; margin-top: 2rem; }
.tease-card:nth-child(6) { grid-column: 10 / span 3; aspect-ratio: 3 / 4; margin-top: -1rem; }

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

.tease-card:hover .ph-veil {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(21, 6, 16, 0.08);
}

.tease-card:hover .ph-lock {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 40px rgba(240, 168, 192, 0.35);
}

.tease-tag {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 4;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(21, 6, 16, 0.55);
  border: 1px solid rgba(221, 139, 168, 0.3);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

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

/* ---------- live / online strip ---------- */

.live {
  margin-top: var(--space-section);
  background: linear-gradient(120deg, rgba(64, 20, 46, 0.65), rgba(35, 9, 26, 0.9));
  border-top: 1px solid rgba(221, 139, 168, 0.2);
  border-bottom: 1px solid rgba(221, 139, 168, 0.2);
}

.live-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.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.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose-glow);
}

.live-dot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(221, 139, 168, 0.5);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(221, 139, 168, 0.5); }
  to { box-shadow: 0 0 0 14px rgba(221, 139, 168, 0); }
}

.live-title {
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  color: var(--cream);
  margin-top: 1.2rem;
}

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

.live-cell {
  min-width: 4.6rem;
  text-align: center;
  padding: 0.9rem 0.6rem;
  border: 1px solid rgba(221, 139, 168, 0.25);
  border-radius: 4px;
  background: rgba(21, 6, 16, 0.5);
}

.live-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--rose-glow);
  font-variant-numeric: tabular-nums;
}

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

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

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

/* ---------- final CTA ---------- */

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

.close-cta .script { font-size: clamp(2.4rem, 6vw, 4.2rem); }

.close-cta .display {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  color: var(--cream);
  max-width: 46rem;
}

.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;
}

/* <picture> wrappers must not affect layout — the img is what we size */
.hero-portrait picture,
.hero-bg picture { display: contents; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  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(21, 6, 16, 0.93) 0%,
      rgba(21, 6, 16, 0.84) 20%,
      rgba(21, 6, 16, 0.5) 38%,
      rgba(21, 6, 16, 0.16) 62%,
      rgba(21, 6, 16, 0.1) 100%),
    radial-gradient(60% 55% at 68% 30%, rgba(221, 139, 168, 0.14), transparent 72%),
    
    linear-gradient(180deg, transparent 76%, rgba(21, 6, 16, 0.8) 100%);
}

@media (max-width: 900px) {
  /* on mobile she IS the hero — barely any defocus, and only a
     light tint. Legibility is bought locally instead: a soft wash
     down the copy side and a deeper foot under the stats, rather
     than dulling the whole photo. */
  /* the photo itself stays sharp — her face is the point */
  .hero-bg img { object-position: center 24%; filter: saturate(1.12); }

  /* graduated defocus: none at the top, building toward the foot.
     A masked backdrop-filter does this in one layer — a plain
     filter on the image can only blur it evenly. */
  .hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(180deg, transparent 36%, rgba(0,0,0,0.5) 60%, #000 86%);
    mask-image: linear-gradient(180deg, transparent 36%, rgba(0,0,0,0.5) 60%, #000 86%);
  }

  /* tint follows the same ramp: barely there over her face, deep at the foot */
  .hero-bg::after {
    z-index: 2;
    background:
      linear-gradient(180deg,
        rgba(21, 6, 16, 0.34) 0%,
        rgba(21, 6, 16, 0.07) 17%,
        rgba(21, 6, 16, 0.13) 44%,
        rgba(21, 6, 16, 0.55) 72%,
        rgba(21, 6, 16, 0.86) 90%,
        rgba(21, 6, 16, 0.96) 100%),
      linear-gradient(90deg,
        rgba(21, 6, 16, 0.4) 0%,
        rgba(21, 6, 16, 0.1) 58%,
        transparent 100%);
  }

  /* the type now sits on a bright photo — give it its own contrast */
  .hero-title { text-shadow: 0 2px 18px rgba(21, 6, 16, 0.9), 0 8px 50px rgba(21, 6, 16, 0.75); }
  .hero-script { text-shadow: 0 2px 14px rgba(21, 6, 16, 0.85); }
  .hero-stat strong,
  .hero-stat span { text-shadow: 0 2px 12px rgba(21, 6, 16, 0.9); }
}

/* ============================================================
   CLOSING CTA — the invitation.
   Full-bleed backdrop behind the whole section, and the card
   image carries the line literally: she is waiting on the other
   side of an open door. Card left, copy right, so the picture
   makes the argument before the words do.
   ============================================================ */

/* the wrapper is the positioning context, so the backdrop can
   cover the CTA and the footer as one continuous field */
.close-zone { position: relative; }

.close-cta {
  padding-bottom: clamp(3rem, 7vw, 6rem);
  text-align: left;          /* was centred; the two-column reads better left */
  display: block;
}

/* the footer sits on the same backdrop — no gap to bridge */
.close-zone .footer {
  margin-top: 0;
  background: linear-gradient(180deg, rgba(21, 6, 16, 0.25), rgba(21, 6, 16, 0.75));
}

/* .close-zone is a body-level block, so it is already full width —
   no 100vw breakout needed (that was adding a scrollbar's worth
   of horizontal overflow). */
.close-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

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

/* same wine scrim as the other backdrops, eased at the edges so
   the section melts into the page above and the footer below */
.close-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(21, 6, 16, 0.97) 0%,
      rgba(21, 6, 16, 0.8) 18%,
      rgba(21, 6, 16, 0.78) 62%,
      rgba(21, 6, 16, 0.9) 86%,
      rgba(21, 6, 16, 0.97) 100%),
    linear-gradient(96deg,
      rgba(21, 6, 16, 0.55) 0%,
      rgba(21, 6, 16, 0.3) 40%,
      rgba(21, 6, 16, 0.55) 100%),
    radial-gradient(55% 50% at 30% 40%, rgba(221, 139, 168, 0.14), transparent 72%);
}

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

.close-card {
  aspect-ratio: 4 / 5;
  transform: rotate(-2deg);
  box-shadow: 0 55px 110px -40px rgba(0, 0, 0, 0.85);
}

.close-copy { max-width: 34rem; }

.close-copy .script {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  display: block;
}

.close-copy .display {
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--cream);
  margin-top: 0.6rem;
}

.close-copy .lede { margin-top: 1.4rem; text-align: left; }

.close-copy .btn { margin-top: 2.2rem; }

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