.process .stages {
  --stage-gap: clamp(1.25rem, 4vw, 3.5rem);
  --stage-track: #adbfbc;
  --stage-ink: var(--brand);
  --stage-accent: #5a8881;
  --node-y: .7rem;
  gap: var(--stage-gap);
}

.process .stages > li {
  position: relative;
  border: 0;
  padding: 1.9rem 0 0;
}

.stages > li::before {
  position: absolute;
  top: var(--node-y);
  left: .45rem;
  z-index: 1;
  width: .62rem;
  height: .62rem;
  content: "";
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--stage-ink);
  box-shadow: 0 0 0 3px var(--mist), 0 0 0 4px var(--stage-accent);
}

.stages > li:not(:last-child)::after {
  position: absolute;
  top: var(--node-y);
  left: .45rem;
  width: calc(100% + var(--stage-gap));
  height: 1.5px;
  content: "";
  background: linear-gradient(to right, var(--stage-ink), var(--stage-accent))
    left top / var(--stage-fill, 100%) 100% no-repeat var(--stage-track);
}

.stages[data-tracing] > li:not(.reached)::before {
  background: var(--mist);
  box-shadow: 0 0 0 3px var(--mist), 0 0 0 4px var(--stage-track);
}

@media (max-width: 680px) {
  .process .stages {
    --stage-gap: 1.7rem;
    --node-y: .92rem;
  }

  .process .stages > li {
    padding: 0 0 0 2.15rem;
  }

  .stages > li:not(:last-child)::after {
    width: 1.5px;
    height: calc(100% + var(--stage-gap));
    transform: translateX(-50%);
    background-image: linear-gradient(to bottom, var(--stage-ink), var(--stage-accent));
    background-size: 100% var(--stage-fill, 100%);
  }
}
