/* Full-bleed parallax sections (GSAP ScrollTrigger drives the transform,
   see js/parallax.js). Layout/visuals live here; motion lives in JS. */

.parallax-section {
  position: relative;
  height: clamp(420px, 56vw, 620px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-section__bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 33, 29, 0.6) 0%, rgba(28, 33, 29, 0.4) 50%, rgba(28, 33, 29, 0.65) 100%);
}

.parallax-section__content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  /* min(90%, 62rem), not ch -- ch resolves against THIS element's own
     font-size (~1rem), not the much larger caption font-size, so it was
     capping the heading at ~420px and forcing a 5-line wrap. */
  max-width: min(90%, 62rem);
  padding: 0 var(--space-md);
}

.parallax-section__caption {
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.4rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.parallax-section__subtitle {
  margin-top: var(--space-sm);
  margin-inline: auto;
  max-width: 42ch;
  font-size: var(--step-1);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .parallax-section {
    height: 380px;
  }
  .parallax-section__caption {
    font-size: clamp(1.8rem, 1.4rem + 4vw, 2.6rem);
  }
  .parallax-section__subtitle {
    font-size: var(--step-0);
  }
}
