/* the scroll track; JS makes it tall where the stage sticks, auto elsewhere */
.prl_wrap {
  position: relative;
  width: 100%;
  height: var(--prl-track, auto);
  background: #11141d;
  color: #fff;
  font-family: inherit;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* the visible block: CSS sticky holds it while the track scrolls past, no JS pin */
.prl_head { margin: 0 auto 48px; max-width: 1280px; width: 100%; }
.prl_stage {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px;
}

.prl_rail {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* JS fits the line to the steps; the svg is a fixed-height strip above them */
.prl_svg {
  display: block;
  width: 100%;
  height: 24px;
  overflow: visible;
}

.prl_svg_mobile {
  display: none;
}

.prl_path,
.prl_path_ghost {
  fill: none;
  stroke: #ff8a1f;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prl_path {
  opacity: 0.78;
}

/* the route is dotted underneath so the eye knows where the bead is headed */
.prl_path_ghost {
  opacity: 0.4;
  stroke: rgba(255, 255, 255, 0.5);
  stroke-dasharray: 1 7;
}

.prl_bead {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: var(--prl-bead, 10px);
  height: var(--prl-bead, 10px);
  border-radius: 50%;
  background: #ff8a1f;
  box-shadow: 0 0 0 calc(var(--prl-bead, 10px) * 0.5) #11141d, 0 0 18px rgba(255, 138, 31, 0.6);
  pointer-events: none;
  will-change: transform;
}

/* equal columns: even spacing, and each step's anchor is its column's middle */
.prl_steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  column-gap: 4%;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.prl_step {
  position: relative;
  min-width: 0;
  will-change: opacity;
}

.prl_step_btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.prl_step_btn:focus-visible {
  outline: 2px solid #ff8a1f;
  outline-offset: 4px;
}

.prl_step_num {
  display: block;
  height: 1em;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ff8a1f;
  font-variant-numeric: tabular-nums;
}

/* a digit is a 1em window over a strip of glyphs; overflow clip plus the
   invisible in-flow glyph keeps the baseline where text expects it */
.prl_col {
  position: relative;
  display: inline-block;
  overflow: clip;
  width: 0.64em;
  height: 1em;
  line-height: 1;
  vertical-align: baseline;
}

.prl_col::before {
  content: '0';
  visibility: hidden;
}

.prl_strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.prl_glyph {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}

.prl_step_title {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.prl_step_text {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.68);
}

/* the active step's image; its space is reserved so a card never changes height */
.prl_step_media {
  display: block;
  width: 100%;
  margin-top: 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  transform-origin: 50% 0;
  will-change: transform, opacity;
}

.prl_step_media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  /* phones never stick: the stacked steps are taller than the screen */
  .prl_stage {
    position: relative;
    padding: 20px;
  }

  /* the steps stack beside a vertical line JS fits to them */
  .prl_rail {
    padding-left: 72px;
    padding-bottom: 0;
  }

  .prl_svg_desktop {
    display: none;
  }

  .prl_svg_mobile {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 72px;
    height: 100%;
  }

  /* equal-height rows: every step holds the room its image needs, so nothing
     shifts when an image comes in and the bead spacing stays even */
  .prl_steps {
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
    row-gap: 48px;
    column-gap: 0;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prl_bead,
  .prl_step,
  .prl_strip,
  .prl_step_media {
    will-change: auto;
  }
}
