.road[data-astro-cid-k5swpbd2] {
  position: relative;
  --node: 3rem;
  view-timeline-name: --road;
  view-timeline-axis: block;
}

.road-svg[data-astro-cid-k5swpbd2] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.road-base[data-astro-cid-k5swpbd2] {
  fill: none;
  stroke: oklab(100% 0 5.96046e-8 / .12);
  stroke-width: 2px;
  stroke-linecap: round;
}

.road-line[data-astro-cid-k5swpbd2] {
  fill: none;
  stroke: url("#road-glow");
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 10px color-mix(in oklab, var(--calm-bright) 55%, transparent));
}

.road-stops[data-astro-cid-k5swpbd2] {
  position: relative;
  display: grid;
  gap: 3.5rem;
}

.road-stop[data-astro-cid-k5swpbd2] {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  gap: 1.5rem;
  align-items: center;
}

.road-node[data-astro-cid-k5swpbd2] {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 999px;
  background: #0b1030;
  border: 2px solid oklab(100% 0 5.96046e-8 / .2);
  font-family: var(--font-heading);
  font-size: .8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  z-index: 1;
  isolation: isolate;
}

.road-node[data-astro-cid-k5swpbd2]:before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: 999px;
  background: var(--calm-bright);
  box-shadow: 0 0 24px color-mix(in oklab, var(--calm-bright) 65%, transparent);
  opacity: 0;
}

.road-node[data-astro-cid-k5swpbd2] span[data-astro-cid-k5swpbd2] {
  position: relative;
  z-index: 1;
}

.road-card-title[data-astro-cid-k5swpbd2] {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
}

.road-card-body[data-astro-cid-k5swpbd2] {
  margin-top: .75rem;
  max-width: 34ch;
  color: oklab(100% 0 5.96046e-8 / .62);
}

@media (width >= 768px) {
  .road-stops[data-astro-cid-k5swpbd2] {
    gap: clamp(5rem, 9vw, 9rem);
  }

  .road-stop[data-astro-cid-k5swpbd2] {
    grid-template-columns: 1fr var(--node) 1fr;
    gap: 2.5rem;
    align-items: center;
  }

  .road-stop[data-astro-cid-k5swpbd2]:nth-child(odd) .road-node[data-astro-cid-k5swpbd2] {
    grid-column: 2;
    justify-self: start;
    margin-left: -22%;
  }

  .road-stop[data-astro-cid-k5swpbd2]:nth-child(odd) .road-card[data-astro-cid-k5swpbd2] {
    grid-column: 3;
  }

  .road-stop[data-astro-cid-k5swpbd2]:nth-child(2n) .road-node[data-astro-cid-k5swpbd2] {
    grid-column: 2;
    justify-self: end;
    margin-right: -22%;
  }

  .road-stop[data-astro-cid-k5swpbd2]:nth-child(2n) .road-card[data-astro-cid-k5swpbd2] {
    grid-column: 1;
    text-align: right;
  }

  .road-stop[data-astro-cid-k5swpbd2]:nth-child(2n) .road-card-body[data-astro-cid-k5swpbd2] {
    margin-left: auto;
  }
}

.road-car[data-astro-cid-k5swpbd2] {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 2.5rem;
  offset-anchor: center;
  offset-rotate: auto 90deg;
  offset-distance: 0%;
  filter: drop-shadow(0 0 16px color-mix(in oklab, var(--calm-bright) 85%, transparent));
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}

.road-car[data-astro-cid-k5swpbd2] svg[data-astro-cid-k5swpbd2] {
  width: 100%;
  height: 100%;
}

@supports (animation-timeline: view()) {
  .road-line[data-astro-cid-k5swpbd2] {
    stroke-dashoffset: 1px;
    animation: linear both road-draw;
    animation-timeline: --road;
    animation-range: entry 85% exit 20%;
  }

  .road-car[data-astro-cid-k5swpbd2] {
    animation: linear both road-drive;
    animation-timeline: --road;
    animation-range: entry 85% exit 20%;
  }

  .road-node[data-astro-cid-k5swpbd2]:before {
    animation: linear both road-light;
    animation-timeline: view();
    animation-range: entry 55% cover 12%;
  }

  .road-card[data-astro-cid-k5swpbd2] {
    animation: linear both road-in;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }

  @media (width >= 768px) {
    .road-stop[data-astro-cid-k5swpbd2]:nth-child(2n) .road-card[data-astro-cid-k5swpbd2] {
      animation-name: road-in-right;
    }
  }
}

@keyframes road-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes road-drive {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }

  .5% {
    opacity: 1;
  }

  96% {
    opacity: 1;
  }

  100% {
    offset-distance: 100%;
    opacity: 1;
  }
}

@keyframes road-light {
  to {
    opacity: 1;
  }
}

@keyframes road-in {
  from {
    opacity: 0;
    transform: translate3d(-4rem, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes road-in-right {
  from {
    opacity: 0;
    transform: translate3d(4rem, 0, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .road-line[data-astro-cid-k5swpbd2], .road-car[data-astro-cid-k5swpbd2], .road-node[data-astro-cid-k5swpbd2]:before, .road-card[data-astro-cid-k5swpbd2] {
    animation: none !important;
  }

  .road-node[data-astro-cid-k5swpbd2]:before {
    opacity: 1;
  }

  .road-line[data-astro-cid-k5swpbd2] {
    stroke-dashoffset: 0;
  }

  .road-car[data-astro-cid-k5swpbd2] {
    display: none;
  }
}
