.path-section {
  position: relative;
  z-index: 1;
  padding: 36px 0 96px;
  border-top: 1px solid #E5E5E5;
  scroll-margin-top: 96px;
}

.path-intro {
  margin-bottom: 56px;
}

.path-heading {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A0A0A;
}

.path-subheading {
  margin: 16px 0 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #222222;
}

.path-timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 36px auto auto;
  column-gap: clamp(12px, 2vw, 24px);
  row-gap: 0;
  align-items: start;
}

.path-column {
  display: contents;
}

.path-column:nth-child(2) {
  --path-col: 1;
}

.path-column:nth-child(3) {
  --path-col: 2;
}

.path-column:nth-child(4) {
  --path-col: 3;
}

.path-column:nth-child(5) {
  --path-col: 4;
}

.path-column:nth-child(6) {
  --path-col: 5;
}

.path-column:nth-child(7) {
  --path-col: 6;
}

.path-marker-cell {
  grid-column: var(--path-col);
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  position: relative;
  z-index: 1;
}

.path-marker-cell::after {
  content: "";
  position: absolute;
  top: calc(50% + 7px);
  left: 50%;
  width: 1px;
  height: 18px;
  background: #E5E5E5;
  transform: translateX(-50%);
  pointer-events: none;
}

.path-line {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  align-self: center;
  height: 2px;
  margin: 0 calc(100% / 12);
  padding: 0;
  pointer-events: none;
  z-index: 0;
}

.path-line-track,
.path-line-progress {
  position: absolute;
  inset: 0;
  border-radius: 1px;
}

.path-line-track {
  background: #E5E5E5;
}

.path-line-progress {
  background: #CCCCCC;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-timeline.is-visible .path-line-progress {
  transform: scaleX(1);
}

.path-heading-zone {
  grid-column: var(--path-col);
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
  text-align: center;
}

.path-desc-zone {
  grid-column: var(--path-col);
  grid-row: 3;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  text-align: center;
}

.path-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-column:nth-child(2) .path-reveal {
  transition-delay: 0.08s;
}

.path-column:nth-child(3) .path-reveal {
  transition-delay: 0.22s;
}

.path-column:nth-child(4) .path-reveal {
  transition-delay: 0.36s;
}

.path-column:nth-child(5) .path-reveal {
  transition-delay: 0.5s;
}

.path-column:nth-child(6) .path-reveal {
  transition-delay: 0.64s;
}

.path-column:nth-child(7) .path-reveal {
  transition-delay: 0.78s;
}

.path-timeline.is-visible .path-reveal {
  opacity: 1;
  transform: translateY(0);
}

.path-milestone-tag {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #767676;
}

.path-milestone-title {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0A0A0A;
  transition: transform 0.22s ease;
}

.path-milestone-desc {
  margin: 0;
  max-width: 15em;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #444444;
}

.path-milestone-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #767676;
  background: #F7F7F8;
  flex-shrink: 0;
  transition:
    transform 0.22s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.path-milestone--current .path-milestone-marker {
  background: #0A0A0A;
  border-color: #0A0A0A;
}

.path-milestone--current .path-milestone-title {
  font-weight: 700;
}

.path-column:hover .path-milestone-marker {
  transform: scale(1.18);
}

.path-column:hover .path-milestone-title {
  transform: scale(1.03);
}

@media (max-width: 1080px) {
  .path-milestone-desc {
    max-width: 13.5em;
    font-size: 12px;
  }

  .path-milestone-title {
    font-size: 14px;
  }
}

@media (max-width: 860px) {
  .path-section {
    padding-bottom: 80px;
  }

  .path-intro {
    margin-bottom: 48px;
  }

  .path-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 28px;
  }

  .path-line {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 5px;
    width: 2px;
    height: auto;
    margin: 0;
    grid-column: auto;
    grid-row: auto;
  }

  .path-line-progress {
    transform: scaleY(0);
    transform-origin: top center;
  }

  .path-timeline.is-visible .path-line-progress {
    transform: scaleY(1);
  }

  .path-column {
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 8px;
    padding-bottom: 36px;
    --path-col: auto;
  }

  .path-column:last-child {
    padding-bottom: 0;
  }

  .path-marker-cell {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    height: auto;
    padding-top: 4px;
  }

  .path-marker-cell::after {
    display: none;
  }

  .path-heading-zone {
    grid-column: 2;
    grid-row: 1;
    align-items: flex-start;
    padding-top: 0;
    text-align: left;
  }

  .path-desc-zone {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 0;
    text-align: left;
  }

  .path-milestone-desc {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .path-line-progress {
    transform: none;
    transition: none;
  }

  .path-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .path-column:hover .path-milestone-marker,
  .path-column:hover .path-milestone-title {
    transform: none;
  }
}
