/* HERO CAROUSEL — isolated and self-contained */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  min-height: 92vh;
  overflow: hidden;
  background: var(--forest);
  color: white;
}
.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.75s ease,
    visibility 0.75s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-slide video,
.hero-slide .poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slide video {
  object-fit: cover;
  object-position: center;
  z-index: 2;
  background: transparent;
}
.hero-slide .poster {
  z-index: 1;
  background-position: center;
  background-size: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      90deg,
      rgba(3, 31, 27, 0.9) 0%,
      rgba(3, 31, 27, 0.61) 49%,
      rgba(3, 31, 27, 0.25) 74%,
      rgba(3, 31, 27, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(3, 31, 27, 0.08) 0%,
      rgba(3, 31, 27, 0.12) 55%,
      rgba(3, 31, 27, 0.82) 100%
    );
  pointer-events: none;
}
.hero-copy-shell {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  z-index: 5;
  width: min(1200px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  padding: clamp(46px, 7vh, 80px) 0 21px;
}
.hero-copy-area {
  width: min(730px, 67%);
}
.copy-panel {
  display: none;
}
.copy-panel.is-active {
  display: block;
  animation: copyIn 0.5s ease both;
}
@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--lime);
  margin-bottom: 18px;
}
h1 {
  font-size: clamp(48px, 6vw, 62px);
  line-height: 1.08;
  margin: 0;
  font-weight: 800;
}
.hero-copy {
  font-size: 17px;
  color: #e1ece8;
  max-width: 52ch;
  margin: 25px 0 0;
}
.hero-btns {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.btn {
  padding: 13px 18px;
  border-radius: 11px;
  font-weight: 780;
  font-size: 14px;
}
.btn-light {
  background: var(--lime);
  color: var(--forest);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: white;
}

/* SIDE SLIDER NAV */
.hero-side-nav {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  z-index: 7;
  align-self: center;
  justify-self: end;
  width: min(270px, 25vw);
  margin-inline-end: max(4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-btn {
  border: 1px solid rgba(255, 255, 255, 0.21);
  background: rgba(4, 43, 36, 0.38);
  color: #e9f2ef;
  border-radius: 15px;
  padding: 14px 15px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}
.side-btn:hover {
  background: rgba(4, 43, 36, 0.68);
}
.side-btn.is-active {
  background: rgba(213, 237, 118, 0.96);
  color: var(--forest);
  border-color: var(--lime);
  transform: translateX(-8px);
}
.side-num {
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.2px;
  opacity: 0.7;
  margin-bottom: 4px;
}
.side-title {
  display: block;
  font-size: 14px;
  font-weight: 850;
}
.side-desc {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
  opacity: 0.82;
}

.hero-bottom-controls {
  position: relative;
  grid-row: 4;
  z-index: 8;
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding-bottom: 25px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.ctrl {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(4, 43, 36, 0.5);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ctrl:hover {
  background: rgba(4, 43, 36, 0.8);
}

.poster-generated {
  background:
    radial-gradient(circle at 78% 24%, rgba(213, 237, 118, 0.34), transparent 20%),
    linear-gradient(155deg, #0c4a3f 0%, #1d6a52 38%, #7c9d45 65%, #153b33 100%);
}
.water-visual {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(155deg, #1f5e67, #56a9b6 48%, #8ebf68 75%, #3d6a3c);
}

@media (max-width: 900px) {
  .hero {
    grid-template-rows: auto 1fr auto auto;
    min-height: 850px;
  }
  .hero-copy-shell {
    padding-block: 46px 32px;
  }
  .hero-copy-area {
    width: 100%;
  }
  .hero-side-nav {
    grid-row: 3;
    justify-self: stretch;
    width: auto;
    margin: 0 4vw 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .side-btn.is-active {
    transform: none;
  }
}
@media (max-width: 620px) {
  .hero {
    min-height: 900px;
  }
  .hero-side-nav {
    grid-template-columns: 1fr;
    margin-bottom: 9px;
  }
  .side-desc {
    display: none;
  }
}
