/* The photograph is held by native sticky positioning; the copy stays in flow. */
.mountain-site .hero {
  min-height: 0;
  overflow: visible;
  background: #10231e;
}
.mountain-site .hero::after,
.mountain-site .page-intro::after { content: none; }
.hero-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #10231e;
  pointer-events: none;
}
.mountain-site .hero-mountains,
.header-mountains {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-mountains img,
.header-mountains img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Place the tallest peak opposite the left-aligned copy. */
  scale: -1 1;
}
.hero-mountains img { object-position: 25% bottom; }
.hero-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #071410d6, #071410bf 42%, #07141026 80%, #07141018),
    linear-gradient(0deg, #10231ea6, transparent 50%);
}
.hero-foreground { position: relative; z-index: 1; }
.mountain-site .hero-inner { min-height: 710px; }
.hero h1 { text-shadow: 0 2px 24px #07141045; }
.hero :is(.hero-copy, .hero-foot, .text-link) { text-shadow: 0 1px 12px #071410; }
.hero-foot { align-items: center; }
.hero-foot a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  background: #10231ee6;
  border: 1px solid #82948880;
  color: #f3eee3;
}

/* A full-width, shorter landscape establishes continuity on interior pages. */
.mountain-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #10231e;
  border-bottom: 1px solid #566957;
}
.header-mountains { pointer-events: none; }
.header-mountains img { object-position: center 44%; opacity: .72; }
.mountain-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #10231ef5 5%, #10231ed1 42%, #10231e40 100%),
    linear-gradient(0deg, #10231e80, transparent 65%);
}
.mountain-header :is(.page-intro, .article-intro) {
  position: relative;
  z-index: 1;
  border: 0;
}
.mountain-header .page-intro { padding-block: 90px 80px; }
.mountain-header .lede { color: #e0e5dd; }
.mountain-header .article-intro { padding-block: 65px 55px; }
.mountain-header-article + .article-body { padding-top: 45px; }

@media (max-width: 800px) {
  .mountain-site .hero-inner { min-height: 630px; }
  .hero-mountains img { object-position: 17% bottom; }
  .hero-scene::after {
    background: linear-gradient(90deg, #071410bf, #071410ab 72%, #071410a6),
      linear-gradient(0deg, #10231e80, transparent 55%);
  }
  .mountain-header .page-intro { padding-block: 65px 55px; }
  .mountain-header .article-intro { padding-block: 50px 45px; }
  .header-mountains img { object-position: 20% bottom; opacity: .68; }
  .mountain-header::after {
    background: linear-gradient(90deg, #10231edb, #10231e99 60%, #10231e66),
      linear-gradient(0deg, #10231e99, transparent 65%);
  }
}

/* Progressive enhancement: OS/saved reduction and no JS keep a normal hero. */
@media (prefers-reduced-motion: no-preference) {
  .mountain-site[data-motion="full"] .hero { display: grid; grid-template-columns: minmax(0, 1fr); }
  .mountain-site[data-motion="full"] .hero-scene {
    position: sticky;
    grid-area: 1 / 1;
    align-self: start;
    inset: 0 auto auto;
    /* Large viewport height covers Safari even when its toolbar retracts. */
    height: 100vh;
    height: 100lvh;
  }
  .mountain-site[data-motion="full"] .hero-foreground {
    grid-area: 1 / 1;
    min-height: 142vh;
    min-height: calc(100lvh + 42svh);
    padding-bottom: 42vh;
    padding-bottom: 42svh;
  }
  .mountain-site[data-motion="full"] .hero-inner { min-height: 100vh; min-height: 100svh; }
  @media (max-width: 800px) {
    .mountain-site[data-motion="full"] .hero-foreground {
      min-height: 135vh;
      min-height: calc(100lvh + 35svh);
      padding-bottom: 35vh;
      padding-bottom: 35svh;
    }
  }
}
@media print {
  .mountain-header { background: none; border: 0; overflow: visible; }
  .header-mountains, .mountain-header::after { display: none; }
  .mountain-header :is(.page-intro, .article-intro) { padding: 0 0 20px; }
  .mountain-header .lede { color: #333; }
  .mountain-header-article + .article-body { padding-top: 0; }
}
