/* Three.js Montage Mountain hero background */

.hero-section {
  isolation: isolate;
}

#hero-img-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  transform-origin: 50% 62%;
  will-change: transform;
  background: linear-gradient(165deg, #d7ebf7 0%, #eef6fc 45%, #f8fbff 100%);
}

#hero-img-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#hero-img-bg.hero-mountain-real-terrain canvas {
  transition: opacity 0.6s ease;
}

.hero-mountain-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 34%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 28%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0) 22%);
}

.hero-section > .hero-content {
  position: relative;
  z-index: 2;
}

.hero-mountain-badge {
  position: absolute;
  right: 5%;
  bottom: 5%;
  z-index: 3;
  pointer-events: auto;
}

.hero-mountain-badge a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mountain-badge a:hover {
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .hero-mountain-vignette {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 38%, rgba(255, 255, 255, 0.12) 68%, rgba(255, 255, 255, 0) 100%),
      linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 18%);
  }

  .hero-mountain-badge {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hero-img-bg {
    transform: none !important;
  }
}
