/* ============================================================
   hero.css — everything layered over the 3D scene: the opening
   pitch, the floating mesh callouts, the scroll-revealed panels
   and the cycling feature copy
   ============================================================ */

/* ---- Opening pitch ------------------------------------------------ */
.banner__pitch {
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  height: calc(100dvh + 2px);
  padding-bottom: 2rem;
  color: var(--c-white);
}
@media (min-width: 1024px) {
  .banner__pitch {
    padding-bottom: 3rem;
  }
}

.banner__pitch-inner {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  align-self: flex-end;
  padding-inline: 1rem;
}
@media (min-width: 1024px) {
  .banner__pitch-inner {
    flex-direction: row;
    gap: 6rem;
    align-items: flex-end;
    justify-content: space-between;
    padding-inline: 2rem;
  }
}

.banner__title {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 725px;
}

.banner__eyebrow {
  position: absolute;
  top: -2.5rem;
  left: 0;
}

.banner__sub {
  width: 100%;
  max-width: 500px;
  text-wrap: pretty;
  color: var(--c-white);
}
@media (min-width: 1024px) {
  .banner__sub {
    color: var(--c-brown);
  }
}

/* the small gradient rule inherits its colour from the text */
.hairline {
  background-image: linear-gradient(to left, var(--rule-color, currentColor), transparent);
}

/* ---- Overlay layer ------------------------------------------------ */
.banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  pointer-events: none;
}

.banner__question {
  position: absolute;
  bottom: 2rem;
  left: 1rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-width: 700px;
  color: var(--c-white);
  opacity: 0;
}
@media (min-width: 1024px) {
  .banner__question {
    bottom: 3rem;
    left: 2rem;
  }
}

/* floating eyebrow that sits just above a heading */
.kicker--float {
  position: absolute;
  top: -2rem;
  left: 1rem;
}
@media (min-width: 768px) {
  .kicker--float {
    left: 0;
  }
}

/* ---- Mesh callouts ------------------------------------------------ */
.speech {
  position: absolute;
  z-index: 20;
  max-width: 350px;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-out;
}
@media (min-width: 1280px) {
  .speech {
    max-width: 500px;
  }
}
.speech::before,
.speech::after {
  content: "";
  position: absolute;
  left: 0;
  display: flex;
  width: 0.5rem;
  height: 2px;
  background-color: var(--c-white);
}
.speech::before { top: 0; }
.speech::after { bottom: 0; }

.speech__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  padding: 0.5rem;
  color: var(--c-brown);
}
.speech__body > * {
  text-wrap: pretty;
}
.speech__body p {
  font-size: 14px;
  line-height: 1.4;
}

/* JS toggles this when a callout's mesh is highlighted */
.speech.is-active {
  opacity: 1;
}

.speech__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.speech__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  border: 1.5px solid var(--c-white);
}
.speech__dot .spark {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--c-white);
}

/* callout 1 — anchors right of the mark on wider screens */
#callout-1 {
  top: 40%;
  border-left: 2px solid var(--c-white);
}
@media (max-width: 767.98px) {
  #callout-1 { left: 1rem; transform: translateY(-50%); }
}
@media (max-width: 575.98px) {
  #callout-1 { top: auto; bottom: 2rem; transform: none; }
}
@media (min-width: 768px) {
  #callout-1 { top: 8rem; right: 1rem; }
  #callout-1 .speech__body { color: var(--c-brown); }
  #callout-1 .speech__dot { border-color: var(--c-brown); }
  #callout-1 .speech__dot .spark { background-color: var(--c-brown); }
}
@media (max-width: 767.98px) {
  #callout-1 .speech__body { color: var(--c-white); }
}
@media (min-width: 1024px) {
  #callout-1 { right: 2rem; }
}
@media (min-width: 1280px) {
  #callout-1 { top: 20%; right: 10%; }
}

/* callout 3 — anchors left, always over the dark mark */
#callout-3 {
  top: 50%;
  left: 1rem;
  border-color: var(--c-white);
}
#callout-3 .speech__body { color: var(--c-white); }
@media (max-width: 767.98px) {
  #callout-3 { transform: translateY(-50%); border-left: 2px solid var(--c-white); }
}
@media (max-width: 575.98px) {
  #callout-3 { top: auto; bottom: 2rem; transform: none; }
}
@media (min-width: 768px) {
  #callout-3 { border-right: 2px solid var(--c-white); }
  #callout-3::before, #callout-3::after { right: 0; left: auto; }
}
@media (min-width: 1024px) {
  #callout-3 { left: 2rem; }
}
@media (min-width: 1280px) {
  #callout-3 { top: 40%; left: 10%; }
}

/* callout 5 — lower right */
#callout-5 {
  top: 60%;
  border-left: 2px solid var(--c-white);
}
@media (max-width: 767.98px) {
  #callout-5 { left: 1rem; transform: translateY(-50%); }
}
@media (max-width: 575.98px) {
  #callout-5 {
    top: auto; bottom: 2rem; transform: none; border-color: var(--c-brown);
  }
  #callout-5::before, #callout-5::after { background-color: var(--c-brown); }
  #callout-5 .speech__body { color: var(--c-brown); }
  #callout-5 .speech__dot { border-color: var(--c-brown); }
  #callout-5 .speech__dot .spark { background-color: var(--c-brown); }
}
@media (min-width: 768px) {
  #callout-5 { top: 60%; right: 1rem; }
  #callout-5 .speech__dot { border-color: var(--c-brown); }
  #callout-5 .speech__dot .spark { background-color: var(--c-brown); }
}
@media (min-width: 1024px) {
  #callout-5 { right: 2rem; }
}
@media (min-width: 1280px) {
  #callout-5 { top: 70%; right: 10%; }
}

/* ---- Scroll-revealed panels --------------------------------------- */
.unfold {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 550px;
  /* these panels now ride the galaxy dive — light copy on deep space */
  color: var(--c-white);
  text-shadow: 0 2px 24px rgba(0, 2, 8, 0.6);
  pointer-events: none;
  opacity: 0;
}
.unfold .step-num {
  border-color: var(--c-teal-soft);
  color: var(--c-teal-soft);
}
.unfold h2,
.unfold h3 {
  text-transform: capitalize;
}

.unfold--heading {
  gap: 1rem;
}
@media (max-width: 767.98px) {
  .unfold--heading { padding-inline: 1rem; }
}
@media (min-width: 1280px) {
  .unfold--heading { max-width: 625px; }
}
.unfold__indent {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
@media (min-width: 768px) {
  .unfold__indent { margin-left: 96px; }
}
@media (min-width: 1280px) {
  .unfold__indent { margin-left: 136px; }
}

.unfold--step {
  gap: 0.75rem;
  align-items: flex-start;
}
@media (max-width: 767.98px) {
  .unfold--step { padding: 1rem; }
}
@media (min-width: 576px) {
  .unfold--step {
    align-items: center;
    text-align: center;
  }
}
.unfold--step p {
  padding-top: 0.5rem;
}

/* ---- "Why teams choose Devsteem" intro ----------------------------- */
.merit-intro {
  position: absolute;
  bottom: 2rem;
  left: 1rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 500px;
  color: var(--c-brown);
  pointer-events: none;
  opacity: 0;
}
.merit-intro h2 {
  text-transform: capitalize;
}
@media (max-width: 1023.98px) {
  .merit-intro { width: calc(100% - 2rem); }
}
@media (min-width: 1024px) {
  .merit-intro { bottom: 3rem; left: 2rem; }
}
@media (min-width: 1280px) {
  .merit-intro { max-width: 725px; }
}

/* ---- Cycling feature copy ----------------------------------------- */
.perk-cycle__veil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  opacity: 0;
  background-image: linear-gradient(to bottom, var(--c-white), #ffffff00);
}
@media (min-width: 1024px) {
  .perk-cycle__veil { display: none; }
}

.perk-cycle {
  position: absolute;
  top: 5rem;
  z-index: 20;
  width: calc(100% - 2rem);
  max-width: 568px;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 1023.98px) {
  .perk-cycle { left: 1rem; right: auto; }
}
@media (min-width: 576px) {
  .perk-cycle { top: 7rem; }
}
@media (min-width: 768px) {
  .perk-cycle { width: 100%; }
}
@media (min-width: 1024px) {
  .perk-cycle { top: 6rem; right: 2rem; left: auto; padding: 1rem; }
}

.perk-card {
  display: none;
  flex-direction: column;
  gap: 1rem;
  color: var(--c-brown);
}
.perk-card:first-child {
  display: flex;
}
.perk-card__title,
.perk-card p {
  opacity: 0;
}
