.process {
  --process-cream: #f2ede3;
  --process-cream-dim: rgba(242, 237, 227, 0.32);
  --process-line: rgba(242, 237, 227, 0.16);
  --process-circle: 64px;
  --process-glow: 0 0 0 6px rgba(67, 24, 255, 0.18), 0 0 28px rgba(67, 24, 255, 0.55);
  position: relative;
  padding: 72px 0 64px;
  background: var(--black);
  color: var(--process-cream);
  overflow: hidden;
}

.process__inner {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.process__head {
  text-align: center;
  margin-bottom: 40px;
}

.process__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--white);
}

.process__subtitle {
  margin: 0 auto;
  max-width: 34em;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.5;
  color: var(--muted);
}

.process__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 400;
  margin-bottom: 96px;
}

.process__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.process__path--mobile {
  display: none;
}

.process__track,
.process__progress {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process__track {
  stroke: var(--process-line);
  stroke-dasharray: 2 10;
  vector-effect: non-scaling-stroke;
}

.process__progress {
  stroke: transparent;
  stroke-dasharray: 0 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(67, 24, 255, 0.7));
}

.process__dot {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(67, 24, 255, 0.28), 0 0 18px 4px rgba(67, 24, 255, 0.75);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  z-index: 2;
}

.process__dot.is-visible {
  opacity: 1;
}

.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process__step {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  transform: translate(-50%, calc(var(--process-circle) / -2));
  z-index: 3;
}

.process__step--1 {
  left: 20%;
  top: 12.5%;
}

.process__step--2 {
  left: 60%;
  top: 12.5%;
}

.process__step--3 {
  left: 50%;
  top: 50%;
}

.process__step--4 {
  left: 70%;
  top: 87.5%;
}

.process__marker {
  position: relative;
  width: var(--process-circle);
  height: var(--process-circle);
  flex-shrink: 0;
}

.process__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--process-cream-dim);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--process-cream-dim);
  transition: border-color 500ms ease, color 500ms ease, background-color 500ms ease, box-shadow 500ms ease, transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process__icon {
  position: absolute;
  top: -6px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--process-cream-dim);
  font-size: 0.7rem;
  color: var(--process-cream-dim);
  transition: border-color 500ms ease, color 500ms ease, background-color 500ms ease;
}

.process__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  text-align: center;
}

.process__label {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--process-cream-dim);
  transition: color 500ms ease, text-shadow 500ms ease;
}

.process__pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 550ms ease, transform 550ms ease;
  transition-delay: 120ms;
}

.process__pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 237, 227, 0.22);
  background: rgba(242, 237, 227, 0.05);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--process-cream);
  white-space: nowrap;
}

.process__step.is-active .process__circle {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: var(--process-glow);
  transform: scale(1.08);
}

.process__step.is-active .process__icon {
  background: var(--process-cream);
  border-color: var(--process-cream);
  color: var(--blue);
}

.process__step.is-active .process__label {
  color: var(--white);
  text-shadow: 0 0 14px rgba(67, 24, 255, 0.55);
}

.process__step.is-active .process__pills {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .process {
    --process-circle: 56px;
  }

  .process__step {
    width: 190px;
  }

  .process__label {
    font-size: 1.05rem;
  }

  .process__pill {
    font-size: 0.68rem;
    padding: 3px 9px;
  }
}

@media (max-width: 768px) {
  .process {
    --process-circle: 48px;
    padding: 56px 0 48px;
  }

  .process__inner {
    width: min(560px, calc(100% - 40px));
  }

  .process__head {
    text-align: left;
    margin-bottom: 32px;
  }

  .process__subtitle {
    margin: 0;
  }

  .process__stage {
    aspect-ratio: auto;
    margin-bottom: 0;
  }

  .process__path--desktop {
    display: none;
  }

  .process__path--mobile {
    display: block;
    inset: auto;
    top: 0;
    left: 0;
    width: 64px;
    height: 100%;
  }

  .process__steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .process__step {
    position: static;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    transform: none;
  }

  .process__marker {
    margin: 0 0 0 calc(32px - var(--process-circle) / 2);
  }

  .process__circle {
    font-size: 1rem;
  }

  .process__icon {
    width: 22px;
    height: 22px;
    top: -5px;
    right: -7px;
    font-size: 0.6rem;
  }

  .process__body {
    align-items: flex-start;
    margin: 0 0 0 20px;
    padding-top: calc(var(--process-circle) / 2 - 0.65em);
    text-align: left;
  }

  .process__pills {
    justify-content: flex-start;
  }

  .process__pill {
    white-space: normal;
  }
}

@media (max-width: 400px) {
  .process {
    --process-circle: 44px;
  }

  .process__body {
    margin-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process__circle,
  .process__icon,
  .process__label,
  .process__pills {
    transition-duration: 1ms;
    transition-delay: 0ms;
  }
}
