.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-6);
  counter-reset: step;
}
@media (min-width: 52em) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s-7); }
}

.steps__item { position: relative; display: flex; gap: var(--s-4); align-items: flex-start; }
@media (min-width: 52em) {
  .steps__item { flex-direction: column; gap: var(--s-4); padding-top: var(--s-5); }
  /* Connecting rule across the row. */
  .steps__item::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0 calc(var(--s-7) * -1);
    height: 1px;
    background: var(--border-strong);
  }
  .steps__item:last-child::before { inset-inline-end: 0; }
}

.steps__marker {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--c-slate-200);
  background: var(--bg-surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--c-slate-600);
}
.steps__title { font-size: var(--fs-lg); margin: 0 0 var(--s-2); }
.steps__text { margin: 0; font-size: var(--fs-sm); color: var(--fg-muted); }
.steps__detail {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  font-weight: 700;
}

/* Stagger the reveal along the sequence. */
.js-reveal-ready .steps__item[data-reveal] { transition-delay: calc(var(--i) * 90ms); }
