/* Keep the Home process heading group truly centered with no asymmetric inset. */
[data-section="process"] > .container > .section-heading.centered {
  box-sizing: border-box;
  width: min(100%, 44rem);
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 0;
  text-align: center;
}
[data-section="process"] > .container > .section-heading.centered > .eyebrow {
  width: fit-content;
  margin-inline: auto;
  justify-content: center;
  text-align: center;
}
[data-section="process"] > .container > .section-heading.centered > .lead {
  margin-inline: auto;
  text-align: center;
}

/* Scroll-triggered movement for all three process number badges. */
@keyframes processBadgeSlideIn {
  from { left: 0; transform: translateX(0); opacity: 0; }
  to { left: 50%; transform: translateX(-50%); opacity: 1; }
}
[data-section="process"].process-numbers-visible .steps .step:nth-child(1)::before,
[data-section="process"].process-numbers-visible .steps .step:nth-child(2)::before,
[data-section="process"].process-numbers-visible .steps .step:nth-child(3)::before {
  animation: processBadgeSlideIn 1.25s cubic-bezier(.2,.75,.25,1) both;
}
[data-section="process"].process-numbers-visible .steps .step:nth-child(2)::before {
  animation-delay: 180ms;
}
[data-section="process"].process-numbers-visible .steps .step:nth-child(3)::before {
  animation-delay: 360ms;
}
@media (prefers-reduced-motion: reduce) {
  [data-section="process"].process-numbers-visible .steps .step:nth-child(1)::before,
  [data-section="process"].process-numbers-visible .steps .step:nth-child(2)::before,
  [data-section="process"].process-numbers-visible .steps .step:nth-child(3)::before {
    animation: none;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Keep dotted process connectors in the gaps between numbered cards. */
@media (min-width: 40em) {
  [data-section="process"] .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 2.625rem;
  }
  [data-section="process"] .steps .step {
    width: 100%;
  }
  [data-section="process"] .steps .step:not(:last-child)::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 1.625rem;
    left: calc(50% + 1.625rem);
    width: calc(100% + 2.625rem - 3.25rem);
    border-top: 2px dotted color-mix(in srgb, var(--color-on-dark) 48%, transparent);
    pointer-events: none;
  }
  [data-section="process"] .steps .step::before {
    z-index: 1;
  }
}
