/* Homepage only. Page-local scroll motion (prefix hx-), no engine. */

/* ---------- Layered hero ---------- */
.hx-hero {
  position: relative;
  height: 190vh;
  background: var(--deep-forest);
  --p: 0;
  --mx: 0;
}

.hx-stage {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  height: calc(100svh - 76px);
  overflow: hidden;
  display: grid;
  align-items: end;
  color: var(--soft-white);
}

.hx-plane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 62%;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

.hx-sky {
  transform: translate3d(calc(var(--mx) * -6px), calc(var(--p) * -3%), 0) scale(1.06);
}

.hx-mid {
  transform-origin: 70% 85%;
  transform: translate3d(calc(var(--mx) * -14px), 0, 0) scale(calc(1.03 + var(--p) * 0.05));
}

.hx-front {
  transform-origin: 50% 100%;
  transform: translate3d(calc(var(--mx) * -30px), calc(4% - var(--p) * 2%), 0) scale(calc(1.1 + var(--p) * 0.22));
  filter: blur(1.2px) brightness(0.86);
}

.hx-dusk {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0a1424 0%, #14202c 46%, #0d1712 100%);
  mix-blend-mode: multiply;
  opacity: calc(var(--p) * 0.92);
  pointer-events: none;
}

.hx-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 78% at 14% 82%, rgba(17, 31, 26, 0.86) 0%, rgba(17, 31, 26, 0.6) 46%, transparent 100%),
    linear-gradient(180deg, transparent 62%, rgba(17, 31, 26, 0.66) 100%);
  pointer-events: none;
}

.hx-stage .hero-inner {
  padding: 0 0 clamp(44px, 9vh, 92px);
}

.hx-beats {
  display: grid;
}

.hx-beat {
  grid-area: 1 / 1;
  align-self: end;
  max-width: 900px;
}

.hx-beat-one {
  opacity: calc(1 - var(--p) * 4.2);
  transform: translate3d(0, calc(var(--p) * -40px), 0);
}

.hx-beat-two {
  opacity: calc((var(--p) - 0.46) * 3.4);
  transform: translate3d(0, calc((1 - var(--p)) * 46px), 0);
  pointer-events: none;
}

.hx-hero.is-late .hx-beat-one {
  pointer-events: none;
}

.hx-beat-two p {
  margin: 0;
  max-width: 640px;
  font-family: Marcellus, Georgia, serif;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--soft-white);
}

.hx-beat-two small {
  display: block;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 253, 247, 0.82);
}

.hx-hero h1 {
  font-size: clamp(40px, 4.7vw, 68px);
  max-width: 900px;
}

/* Highlighter rule: gold is reserved for the one action. */
.hx-home .kicker,
.hx-home .dark-band .section-label {
  color: rgba(255, 253, 247, 0.72);
}

/* ---------- Mirror ---------- */
.hx-mirror {
  padding: 120px 0 104px;
}

.hx-mirror-lines {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hx-mirror-lines li {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  font-family: Marcellus, Georgia, serif;
  font-size: clamp(25px, 3.1vw, 42px);
  line-height: 1.16;
  text-transform: uppercase;
  max-width: 980px;
}

.hx-mirror-lines li:nth-child(2) {
  margin-left: clamp(0px, 8vw, 120px);
  transition-delay: 90ms;
}

.hx-mirror-lines li:nth-child(3) {
  margin-left: clamp(0px, 16vw, 240px);
  transition-delay: 180ms;
}

.hx-mirror-close {
  max-width: 620px;
  margin: 44px 0 0 auto;
}

/* ---------- People (photo breaks the band edge) ---------- */
.hx-people {
  padding: 104px 0 0;
}

.hx-people-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.hx-people figure {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-bottom: -120px;
}

.hx-people .photo {
  aspect-ratio: 9 / 10;
  object-position: 50% 20%;
}

.hx-people figcaption {
  color: rgba(255, 253, 247, 0.7);
}

.hx-people h2 {
  margin-bottom: 22px;
}

.hx-people-names {
  display: grid;
  gap: 0;
  margin: 28px 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hx-people-names li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.hx-people-names strong {
  font-family: Marcellus, Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
}

.hx-people-names span {
  color: rgba(20, 35, 28, 0.74);
}

.hx-band {
  padding: 170px 0 96px;
  margin-top: 0;
}

.hx-band .feature-grid {
  margin-top: 0;
}

.hx-band .feature-card {
  min-height: 0;
  background: rgba(255, 253, 247, 0.07);
  border-color: var(--line-dark);
}

.hx-band .feature-card {
  padding: 0 0 26px;
  overflow: hidden;
}

.hx-band .feature-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  margin-bottom: 24px;
}

.hx-band .feature-card h3,
.hx-band .feature-card p {
  padding: 0 26px;
}

.hx-band .feature-card h3 {
  color: var(--soft-white);
}

/* ---------- The plant ---------- */
.hx-plant-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: stretch;
}

.hx-plant-main .photo {
  height: 100%;
  min-height: 520px;
  object-position: 50% 88%;
}

.hx-plant-side {
  display: grid;
  align-content: space-between;
  gap: 30px;
}

.hx-plant-side h2 {
  margin: 0 0 20px;
}

.hx-plant-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.hx-plant-pair .photo {
  aspect-ratio: 4 / 5;
}

.hx-plant .photo-credit {
  margin: -12px 0 0;
}

/* ---------- Community ---------- */
.hx-community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
  margin-bottom: 64px;
}

.hx-community .photo {
  aspect-ratio: 3 / 2;
}

.hx-community h2 {
  color: var(--soft-white);
  margin-top: 0;
}

.hx-community-figures {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 7vw, 96px);
  margin: 30px 0 26px;
}

.hx-community-figures p {
  margin: 0;
  display: grid;
  gap: 6px;
}

.hx-community-figures strong {
  font-family: Marcellus, Georgia, serif;
  font-weight: 400;
  font-size: clamp(64px, 9vw, 124px);
  line-height: 0.95;
  color: var(--soft-white);
}

.hx-community-figures span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 253, 247, 0.7);
}

.hx-community .lead {
  max-width: 720px;
}

/* ---------- Dates ---------- */
.hx-dates .cta-row {
  margin-top: 26px;
}

/* ---------- Close ---------- */
.hx-close {
  position: relative;
  padding: clamp(110px, 20vh, 200px) 0;
  color: var(--soft-white);
  background: var(--deep-forest) url("assets/images/retreat/temple-night.jpg") center 60% / cover no-repeat;
  overflow: hidden;
}

.hx-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 22% 56%, rgba(10, 14, 12, 0.88) 0%, rgba(10, 14, 12, 0.55) 60%, rgba(10, 14, 12, 0.2) 100%),
    linear-gradient(180deg, var(--bone) 0%, transparent 16%);
}

.hx-close .shell {
  position: relative;
}

.hx-close h2 {
  max-width: 640px;
  font-size: clamp(38px, 4.8vw, 64px);
}

.hx-close .lead {
  max-width: 560px;
  margin: 22px 0 30px;
  color: rgba(255, 253, 247, 0.86);
}

.hx-close .text-link {
  color: var(--soft-white);
  border-bottom: 1px solid rgba(255, 253, 247, 0.5);
  border-radius: 0;
  min-height: 0;
  padding-bottom: 4px;
  align-self: center;
  margin-left: 10px;
}

/* ---------- Mobile composition ---------- */
@media (max-width: 900px) {
  .hx-hero {
    height: 165vh;
  }

  .hx-plane {
    object-position: 74% 60%;
  }

  .hx-scrim {
    background: linear-gradient(180deg, transparent 22%, rgba(17, 31, 26, 0.5) 46%, rgba(17, 31, 26, 0.9) 100%);
  }

  .hx-front {
    filter: brightness(0.8);
  }

  .hx-mirror {
    padding: 78px 0 70px;
  }

  .hx-mirror-lines li:nth-child(n) {
    margin-left: 0;
  }

  .hx-people-grid,
  .hx-community,
  .hx-plant-grid {
    grid-template-columns: 1fr;
  }

  .hx-plant-main .photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .hx-people figure {
    margin-bottom: 0;
  }

  .hx-people figcaption {
    color: rgba(20, 35, 28, 0.6);
  }

  .hx-people {
    padding: 72px 0 60px;
  }

  .hx-people-names li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hx-band {
    padding: 64px 0;
  }

  .hx-close::before {
    background:
      linear-gradient(180deg, var(--bone) 0%, transparent 14%),
      rgba(17, 31, 26, 0.62);
  }

  .hx-close .text-link {
    margin-left: 0;
  }
}

/* ---------- Motion off: a still, complete composition ---------- */
@media (prefers-reduced-motion: reduce) {
  .hx-hero {
    height: auto;
  }

  .hx-stage {
    position: relative;
    top: 0;
    min-height: calc(100svh - 76px);
    height: auto;
    padding-top: 30vh;
  }

  .hx-beats {
    gap: 34px;
  }

  .hx-beat {
    grid-area: auto;
  }

  .hx-beat-one,
  .hx-beat-two {
    opacity: 1;
    transform: none;
  }

  .hx-dusk {
    opacity: 0.3;
  }
}
