.process-timeline {
  --timeline-gap: clamp(1.5rem, 3vw, 2.5rem);
  --timeline-line: #87abc4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--timeline-gap);
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.process-step { position: relative; display: grid; }
.process-card {
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: white;
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  border-radius: .65rem;
  box-shadow: 0 5px 18px rgb(16 42 66 / 8%);
}
.process-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; color: var(--blue); }
.process-number { font-size: 1.8rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.process-card-meta svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.process-card h3 { margin-bottom: .55rem; }
.process-card p { margin-bottom: 0; }

.process-connector {
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--timeline-gap);
  height: 1px;
  background: var(--timeline-line);
  color: var(--blue);
  transform-origin: left center;
  pointer-events: none;
}
.process-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: .43rem;
  height: .43rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translate(-65%, -50%) rotate(45deg);
}

@media (min-width: 576px) and (max-width: 991px) {
  .process-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Route step 02 back to step 03 through the gutter between rows. */
  .process-step:nth-child(2) .process-connector {
    top: 100%;
    right: 50%;
    left: auto;
    width: calc(100% + var(--timeline-gap));
    height: var(--timeline-gap);
    background: linear-gradient(var(--timeline-line), var(--timeline-line)) right top / 1px 50% no-repeat,
                linear-gradient(var(--timeline-line), var(--timeline-line)) center / 100% 1px no-repeat,
                linear-gradient(var(--timeline-line), var(--timeline-line)) left bottom / 1px 50% no-repeat;
  }
  .process-step:nth-child(2) .process-connector::after { top: 75%; left: .5px; transform: translate(-50%, -65%) rotate(135deg); }
}

@media (max-width: 575px) {
  .process-timeline { grid-template-columns: minmax(0, 1fr); }
  .process-connector { top: 100%; left: 50%; width: 1px; height: var(--timeline-gap); transform-origin: center top; }
  .process-connector::after { transform: translate(-50%, -65%) rotate(135deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .process-timeline.is-enhanced .process-card { transition: opacity .42s ease, transform .42s ease, box-shadow .42s ease, border-color .42s ease; }
  .process-timeline.is-enhanced .process-step:not(.is-revealed) .process-card {
    opacity: .38;
    transform: translateY(6px) scale(.98);
    box-shadow: 0 2px 7px rgb(16 42 66 / 4%);
    border-top-color: var(--line);
  }
  .process-timeline.is-enhanced .process-connector { transition: transform .4s ease-out, opacity .4s ease-out; }
  .process-timeline.is-enhanced .process-step:not(.is-connected) .process-connector { opacity: 0; transform: scaleX(0); }
  @media (min-width: 576px) and (max-width: 991px) {
    .process-timeline.is-enhanced .process-step:nth-child(2):not(.is-connected) .process-connector { transform: none; }
  }
  @media (max-width: 575px) {
    .process-timeline.is-enhanced .process-step:not(.is-connected) .process-connector { transform: scaleY(0); }
  }
}
