/* ============================================================
   BabyCo — Pinned scroll-telling story (homepage)
   Full-bleed landscape image per step, text overlaid on top.
   The section pins; image + copy cross-fade in place.
   ============================================================ */

.st-section {
  position: relative;
  height: calc(var(--steps, 6) * 90vh);
  /* full-bleed: break out of any padded container, edge to edge */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.st-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #1f2d31;
}

/* Stacked full-screen panels — only the active one shows */
.st-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.st-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Landscape image fills the whole stage (cropped via cover) */
.st-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 1.6s ease;
}

.st-panel.is-active .st-img {
  transform: scale(1);
}

/* Dark scrim for text legibility (stronger on the left/bottom) */
.st-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 26, 0.78) 0%, rgba(15, 23, 26, 0.35) 45%, rgba(15, 23, 26, 0.05) 75%),
    linear-gradient(0deg, rgba(15, 23, 26, 0.55) 0%, rgba(15, 23, 26, 0) 40%);
}

/* Overlaid text */
.st-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  max-width: 640px;
  padding: 0 6vw;
  color: #fff;
}

/* Fade-up: each line rises into place when its slide becomes active */
.st-content > * {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.st-panel.is-active .st-content > * {
  opacity: 1;
  transform: none;
}

.st-panel.is-active .st-eyebrow-in { transition-delay: 0.08s; }
.st-panel.is-active .st-icon { transition-delay: 0.16s; }
.st-panel.is-active .st-title { transition-delay: 0.24s; }
.st-panel.is-active .st-text { transition-delay: 0.34s; }

.st-eyebrow-in {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9fdbe7;
}

.st-eyebrow-in .st-sep {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-secondary);
}

.st-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.st-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.st-text {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Dots + progress (light, over image) */
.st-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 54px;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 3;
}

.st-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.st-dot.is-active {
  background: #fff;
  transform: scale(1.4);
}

.st-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.st-progress-track {
  width: min(440px, 70%);
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.st-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 4px;
  transition: width 0.15s linear;
}

/* ===== Mobile / tablet: keep the same pinned, one-slide-at-a-time
   behaviour as desktop — just tighten the overlaid text spacing ===== */
@media (max-width: 860px) {
  .st-content {
    padding: 0 28px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-panel { transition: opacity 0.25s ease; }
  .st-img { transform: none; transition: none; }
  .st-content > * { transition: opacity 0.2s ease; transform: none; }
}
