.mountain-story {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #fff;
  --mountain-reveal: 1;
}

.mountain-art {
  position: relative;
  width: max(100%, 780px);
  aspect-ratio: 4 / 3;
  left: 50%;
  transform: translateX(-50%);
}

.mountain-photo, .mountain-foreground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mountain-photo { z-index: 0; }
.mountain-foreground {
  z-index: 2;
  pointer-events: none;
  /* Trace the photographed ridge so the rock naturally hides the rising type. */
  clip-path: polygon(0% 50%, 2% 49.4%, 4% 51%, 6% 51.4%, 8% 52.7%, 10% 53%,
    12% 54.3%, 15% 54.6%, 17% 53.2%, 19% 51.5%, 21% 52.1%, 23% 51.2%,
    25% 53%, 28% 51%, 30% 50.4%, 32% 49.4%, 34% 44.8%, 36% 41.9%,
    38% 40.8%, 40% 39.4%, 42% 38.5%, 44% 35.4%, 46% 34%, 48% 33.4%,
    50% 32.8%, 52% 32.6%, 54% 33.4%, 56% 32%, 57% 31.4%, 59% 32.2%,
    60% 32.2%, 62% 33%, 64% 33.2%, 66% 33.6%, 68% 34%, 70% 33.5%,
    72% 34.4%, 74% 34.3%, 76% 34.6%, 78% 35.1%, 80% 34.5%, 82% 35.3%,
    84% 36%, 86% 37.8%, 88% 37.8%, 90% 38.4%, 92% 41.5%, 94% 43.3%,
    96% 44%, 98% 43.8%, 100% 41.5%, 100% 100%, 0% 100%);
}

.mountain-title {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 9%;
  width: min(88vw, 1120px);
  margin: 0;
  color: #111;
  font: 700 clamp(38px, 6vw, 95px) / 1.04 var(--brand-title);
  text-align: center;
  letter-spacing: -.045em;
  transform: translate(-50%, calc((1 - var(--mountain-reveal)) * 30vw));
}

.mountain-caption {
  position: absolute;
  z-index: 3;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  padding: 90px 6% 40px;
  color: #fff;
  background: linear-gradient(transparent, #000b);
}
.mountain-caption p { font: 400 17px/1.7 var(--brand-sans); max-width: 640px; margin: 0; }
.mountain-caption strong { font-weight: 600; }
.mountain-caption span { font-size: 10px; line-height: 1.7; }

@media (max-width: 760px) {
  .mountain-title { top: 8%; font-size: clamp(31px, 7.5vw, 48px); }
  .mountain-caption { display: block; padding: 70px 6% 24px; }
  .mountain-caption p { font-size: 14px; }
  .mountain-caption span { display: block; margin-top: 16px; }
  .mountain-title { transform: translate(-50%, calc((1 - var(--mountain-reveal)) * 245px)); }
}

@media (prefers-reduced-motion: reduce) {
  .mountain-title { transform: translateX(-50%); }
}
