/* ═══════════════════════════════════════
   WHY CHOOSE FUTURE GRID (section3)
   Scroll-driven: full-screen image shrinks
   into a cluster while text swaps.
═══════════════════════════════════════ */

.why-scroll-container {
  position: relative;
  height: 360vh;          /* scroll length that drives the animation */
  background: var(--bg-primary);
  z-index: 2;
}

.why-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-primary);
}

/* ── Main (center) image ── */
.why-main-image {
  position: absolute;
  z-index: 6;
  overflow: hidden;
  will-change: transform, width, height, top, left, border-radius;
  box-shadow: 0 40px 90px -40px rgba(15, 37, 67, 0.45);
}
.why-main-image img,
.why-main-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* dark overlay for center-text readability (fades as image shrinks) */
.why-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.42), rgba(8, 18, 28, 0.58));
  will-change: opacity;
  pointer-events: none;
}

/* ── Satellite images (emerge from behind) ── */
.why-sat {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 30px 70px -38px rgba(15, 37, 67, 0.45);
  will-change: transform, top, left, opacity;
  opacity: 0;
}
.why-sat img,
.why-sat video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Center text (start state, over full image) ── */
.why-center-text {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 92%;
  will-change: opacity, transform;
  pointer-events: none;
}
.why-center-text h2 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 50px rgba(0, 0, 0, 0.45);
}
.why-center-text .why-caption {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* ── Bottom heading (end state, below the cluster) ── */
.why-bottom-text {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 8vh;
  transform: translateX(-50%);
  text-align: center;
  width: min(1100px, 92%);
  opacity: 0;
  will-change: opacity, transform;
  pointer-events: none;
}
.why-bottom-text h2 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.why-bottom-text h2 .accent {
  color: #ff8934;
}

@media (prefers-reduced-motion: reduce) {
  .why-main-image,
  .why-sat,
  .why-center-text,
  .why-bottom-text {
    transition: none !important;
  }
}
