/* ─── Sequence: tall enough for 3 scroll segments ─── */
#hero-sequence {
  position: relative;
  height: 400vh;
}

/* ─── One sticky container, holds all panels ────────── */
#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ─── All panels absolutely fill the sticky container ── */
.hero-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;      /* vertical centre ← was flex-end */
  justify-content: center;  /* horizontal centre */
  padding-bottom: 0;        /* remove bottom offset */
  text-align: center;       /* centre-align text lines */
}

/* Stacking order: hero on top */
#hero      { z-index: 4; }
#satellite { z-index: 3; }
#section-1 { z-index: 2; }
#section-2 { z-index: 1; }

/* ─── Image wrapper ──────────────────────────────────── */
.hero-panel__img-wrap {
  position: absolute;
  inset: 0;
}

.hero-panel__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ─── Hero: two layered images ───────────────────────── */
.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#satellite {
  position: absolute;
  top: -10%;
  right: -1300px;
  width: 150%;
  z-index: 10;
  pointer-events: none;
  opacity: 1;
}

/* ─── Gradient overlay on each panel ─────────────────── */
.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    transparent 100%
  );
}

/* ─── Text ───────────────────────────────────────────── */
.hero-panel__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: 75%;
  width: 100%;
  margin: 0 auto;
}

.hero-panel__content h1,
.hero-panel__content h2 {
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: #fff;
}

.hero-panel__content p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 55%;
  margin: 0 auto;           /* centre the paragraph under heading */
}

/* Section-2 panel image — transparent */
.section-2 .hero-panel__img-wrap img {
  opacity: 0.8;
}
