.journey-section {
  --journey-accent: #c6aeff;
  position: relative;
  padding: clamp(64px, 8vw, 112px) 24px 56px;
  scroll-margin-top: 90px;
  color: #f8f5ff;
  background: radial-gradient(ellipse at 50% 58%, #281847 0%, #171024 48%, #100c19 82%);
  text-align: center;
}

.journey-section h2 {
  max-width: 780px;
  margin: 0 auto;
  color: inherit;
  font-family: var(--heading-font), sans-serif;
  font-size: clamp(31px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.journey-stage {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 76px 0;
}

.journey-orbit {
  position: relative;
  display: grid;
  width: clamp(390px, 38vw, 490px);
  max-width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #8065a6, 0 0 56px #a573ff14;
}

.journey-sweep {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  animation: journey-orbit-spin 13s linear infinite;
}

.journey-sweep::before,
.journey-sweep::after {
  position: absolute;
  content: "";
}

.journey-sweep::before {
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from 280deg, transparent, #c6aeff 80deg, transparent 80deg);
  mask-image: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}

.journey-sweep::after {
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f8edff;
  box-shadow: 0 0 18px 4px #b68aff;
  transform: translate(-50%, -50%);
}

@keyframes journey-orbit-spin {
  to { transform: rotate(360deg); }
}

.journey-destination {
  display: grid;
  gap: 8px;
  justify-items: center;
  font-family: var(--heading-font), sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
}

.journey-destination span:first-child {
  color: var(--journey-accent);
  font-size: 0.66em;
}

.journey-direction {
  color: #a980fd;
  font-size: 0.8em;
}

.journey-steps {
  position: absolute;
  top: 76px;
  left: 50%;
  width: clamp(390px, 38vw, 490px);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
}

.journey-steps li {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 2px solid #d6beff;
  border-radius: 50%;
  background: #422b63;
  transform: translate(-50%, -50%);
}

.journey-label {
  position: absolute;
  width: max-content;
  max-width: 162px;
  color: #f8f5ff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  text-wrap: balance;
}

.journey-label small {
  display: block;
  margin-top: 5px;
  color: #c6b8dc;
  font-size: 12px;
  font-weight: 400;
}

.journey-step--left .journey-label {
  right: calc(100% + 16px);
  text-align: right;
}

.journey-step--right .journey-label {
  left: calc(100% + 16px);
  text-align: left;
}

.journey-step--top .journey-label {
  bottom: calc(100% + 14px);
}

.journey-step--bottom .journey-label {
  top: calc(100% + 14px);
}

.journey-motion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #e0d4f3;
  font-size: 13px;
  cursor: pointer;
}

.journey-motion input {
  margin: 0;
  accent-color: var(--journey-accent);
}

.journey-section:has(.journey-motion input:checked) .journey-sweep {
  animation-play-state: paused;
}

@media (max-width: 800px) {
  .journey-stage {
    gap: 30px;
    padding: 34px 0 28px;
  }

  .journey-orbit {
    width: min(66vw, 260px);
  }

  .journey-steps {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 600px);
    aspect-ratio: auto;
    text-align: left;
    transform: none;
    counter-reset: journey-step;
  }

  .journey-steps li {
    position: static;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: auto;
    height: auto;
    padding: 10px;
    border: 1px solid #ffffff1a;
    border-radius: 8px;
    background: #ffffff08;
    transform: none;
    counter-increment: journey-step;
  }

  .journey-steps li::before {
    color: var(--journey-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    content: counter(journey-step, decimal-leading-zero);
  }

  .journey-steps .journey-label {
    position: static;
    width: auto;
    max-width: none;
    font-size: 13px;
    text-align: left;
    text-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-sweep,
  .journey-motion {
    display: none;
  }
}
