/* ══════════════════════════════════════════════
   Act 1 — The Letter
   Entry point + single pinned slide sequence
══════════════════════════════════════════════ */

/* ── Sequence wrapper ── */
#sequence {
  position: relative;
  z-index: 2;
}

/* ── Entry Point ── */
#entry-point {
  position: fixed;
  inset: 0;
  z-index: 20;
  background-color: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  overflow: hidden;
  transition: opacity 1s var(--ease-default);
}

#entry-point.dismissed {
  opacity: 0;
  pointer-events: none;
}

/* Entry HK bow */
.entry-bow {
  position: absolute;
  top: clamp(1.5rem, 4vw, 2.5rem);
  right: clamp(1.5rem, 4vw, 2.5rem);
  opacity: 0;
}

/* Name reveal */
.entry-name {
  font-family: var(--font-handwriting);
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--purple-soft);
  text-align: center;
  opacity: 0;
  line-height: 1.1;
}

/* Subtitle */
.entry-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--text-secondary);
  text-align: center;
  opacity: 0;
  letter-spacing: 0.04em;
}

/* Begin button wrapper */
.entry-cta {
  opacity: 0;
  margin-top: var(--space-sm);
}

/* ── Letter – pinned scroll container ── */
#letter {
  position: relative;
  z-index: 3;
}

/* ── Single frame that gets pinned ── */
.letter-frame {
  height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
}

/* ── Individual slides — stacked in the same grid cell ── */
.letter-slide {
  grid-area: 1 / 1;           /* all slides occupy the same cell */
  width: 100%;
  max-width: var(--max-letter);
  padding: 0 clamp(1.5rem, 6vw, 4rem);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-primary);
  text-align: center;
  /* No CSS transform here — GSAP owns transform entirely */
}

/* Emphasis spans */
.letter-emphasis {
  color: var(--purple-soft);
}

/* ── Scripture Interlude ── */
#scripture-interlude {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) clamp(1.5rem, 6vw, 4rem);
  z-index: 3;
}


.scripture-verse {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: var(--text-secondary);
  max-width: 520px;
  text-align: center;
  line-height: 1.85;
}

.scripture-ref {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--purple-soft);
  margin-top: var(--space-md);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .letter-slide {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }
}
