/* ===== Section 5 — How we work ===== */
.section5 {
  position: relative;
  background: var(--black);
  padding: clamp(70px, 9vw, 130px) 0;
  overflow: hidden;
}
.section5 .eyebrow { color: var(--muted); }

.section5__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 0.95;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section5__title .line { display: block; overflow: hidden; }
.section5__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.section5__title .line:nth-child(2) > span { transition-delay: 0.12s; }
.section5.is-visible .section5__title .line > span { transform: none; }

/* ----- Steps on a line that draws as you scroll ----- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 30px);
  list-style: none;
  --progress: 0; /* 0 → 1, set by js/main.js from scroll position */
}

/* track + animated fill */
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  height: 2px;
  width: 100%;
}
.steps::before { background: var(--line); }
.steps::after {
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(var(--progress));
  transform-origin: left;
}

.step { position: relative; padding-top: 44px; }

.step__dot {
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.step__num { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; transition: color 0.4s; }
.step__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 50px);
  line-height: 1;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.5s var(--ease);
}
.step__text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 220px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

/* a step lights up once the line reaches it */
.step.is-active .step__dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 6px rgba(46, 232, 111, 0.18), 0 0 24px rgba(46, 232, 111, 0.6);
  transform: scale(1.1);
}
.step.is-active .step__num { color: var(--green); }
.step.is-active .step__name { color: var(--white); }
.step.is-active .step__text { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 34px; padding-left: 44px; }
  .steps::before, .steps::after { top: 0; left: 11px; width: 2px; height: 100%; }
  .steps::after { transform: scaleY(var(--progress)); transform-origin: top; }
  .step { padding-top: 0; }
  .step__dot { left: -44px; }
  .step__text { max-width: none; }
}
