.dp-process.is-journey-replaced {
  display: block !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.dp-process.is-journey-replaced > *,
.dp-process.is-journey-replaced::before,
.dp-process.is-journey-replaced::after { display: none !important; }

.dp-journey {
  --journey-distance: 2200px;
  position: relative;
  color: #f3fbfb;
  background: radial-gradient(ellipse at 75% 45%, #073033 0, #071115 46%, #05090b 100%);
}
.dp-journey__sequence {
  position: relative;
  margin-top: -20svh;
  height: calc(100vh + var(--journey-distance));
  height: calc(100svh + var(--journey-distance));
}
.dp-journey__viewport {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  box-sizing: border-box;
  padding-top: clamp(72px, 9vh, 100px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dp-journey__viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(173,255,255,.055) calc(25% - 1px), rgba(173,255,255,.055) 25%);
  pointer-events: none;
}
.dp-journey__heading {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: 65svh;
  display: grid;
  place-items: center;
  padding: 100px clamp(24px, 6vw, 110px) 45px;
  text-align: center;
}
.dp-journey__heading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(173,255,255,.055) calc(25% - 1px), rgba(173,255,255,.055) 25%);
  pointer-events: none;
}
.dp-journey__heading h2 {
  position: relative;
  margin: 0;
  max-width: 1250px;
  font-family: var(--font-display, Inter, sans-serif);
  font-weight: 550;
  font-size: clamp(42px, 7vw, 112px);
  line-height: .98;
  letter-spacing: -.065em;
  color: #a1b0b2;
  background: linear-gradient(90deg, #f3fbfb var(--title-first, 100%), #a1b0b2 var(--title-first, 100%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dp-journey__heading h2 em {
  display: block;
  color: #00ffff;
  font-style: normal;
  background: linear-gradient(90deg, #00ffff var(--title-second, 100%), #a1b0b2 var(--title-second, 100%));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .dp-journey__heading { --title-first: 100% !important; --title-second: 100% !important; }
}
.dp-journey__frame { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.dp-journey__track {
  --line-progress: 0;
  position: relative;
  display: flex;
  width: max-content;
  height: 100%;
  padding-inline: clamp(24px, 6vw, 110px);
  will-change: transform;
}
.dp-journey__rail, .dp-journey__rail-fill {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}
.dp-journey__rail { background: rgba(119, 180, 180, .25); }
.dp-journey__rail-fill {
  top: 0;
  background: #00ffff;
  transform: scaleX(var(--line-progress));
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(0,255,255,.6);
}
.dp-journey__step {
  --reveal: 1;
  position: relative;
  flex: 0 0 clamp(310px, 32vw, 500px);
  height: 100%;
}
.dp-journey__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ffff;
  box-shadow: 0 0 18px rgba(0,255,255,.65);
  transform: translate(-50%, -50%) scale(var(--reveal));
}
.dp-journey__stem {
  position: absolute;
  left: 0;
  height: clamp(34px, 6vh, 68px);
  width: 1px;
  background: #00ffff;
  transform: scaleY(var(--reveal));
}
.dp-journey__step:nth-of-type(odd) .dp-journey__stem { bottom: 50%; transform-origin: bottom; }
.dp-journey__step:nth-of-type(even) .dp-journey__stem { top: 50%; transform-origin: top; }
.dp-journey__copy {
  position: absolute;
  left: 0;
  width: min(85%, 370px);
  opacity: var(--reveal);
}
.dp-journey__step:nth-of-type(odd) .dp-journey__copy { bottom: calc(50% + clamp(45px, 7vh, 78px)); transform: translateY(calc((1 - var(--reveal)) * 18px)); }
.dp-journey__step:nth-of-type(even) .dp-journey__copy { top: calc(50% + clamp(45px, 7vh, 78px)); transform: translateY(calc((var(--reveal) - 1) * 18px)); }
.dp-journey__number { display: block; margin-bottom: 14px; color: #00ffff; font: 700 12px/1 monospace; letter-spacing: .16em; }
.dp-journey__copy h3 { margin: 0 0 12px; font-size: clamp(24px, 2.3vw, 35px); font-weight: 550; line-height: 1.05; letter-spacing: -.045em; }
.dp-journey__copy p { margin: 0; max-width: 34ch; color: #aababc; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.5; }

@media (max-width: 700px) {
  .dp-journey__viewport { min-height: 0; }
  .dp-journey__heading h2 { font-size: clamp(41px, 10vw, 66px); }
  /* Keep the rail independent from the translated track. This avoids thin
     transformed lines disappearing on mobile compositors. */
  .dp-journey__frame::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #00ffff var(--mobile-line-progress, 0%), rgba(119, 180, 180, .5) var(--mobile-line-progress, 0%));
    box-shadow: 0 0 10px rgba(0, 255, 255, .24);
    pointer-events: none;
  }
  .dp-journey__track { padding-right: calc(clamp(24px, 6vw, 110px) + 10vw); }
  .dp-journey__rail { display: none; }
  .dp-journey__step { flex-basis: 78vw; }
  /* Restore the alternating layout above and below the rail while keeping
     each marker and its copy in sync as the track enters the viewport. */
  .dp-journey__step::before { opacity: var(--mobile-copy-visibility, 1); }
  .dp-journey__step:nth-of-type(n) .dp-journey__stem {
    opacity: var(--mobile-copy-visibility, 1);
  }
  .dp-journey__step:nth-of-type(n) .dp-journey__copy {
    width: 90%;
    opacity: var(--mobile-copy-visibility, 1);
    transform: none;
  }
  .dp-journey__copy h3 { font-size: clamp(23px, 6vw, 30px); }
  .dp-journey__copy p { font-size: 14px; line-height: 1.4; }
  .dp-journey__number { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce), (max-height: 560px) {
  .dp-journey__sequence { height: auto !important; margin-top: 0; }
  .dp-journey__viewport { position: relative; height: auto; min-height: 0; padding-top: 0; overflow: visible; }
  .dp-journey__frame { overflow: visible; padding: 0 clamp(24px, 6vw, 110px) 80px; }
  .dp-journey__frame::before { display: none; }
  .dp-journey__track { display: grid; gap: 32px; width: auto; height: auto; padding: 0 0 0 24px; transform: none !important; border-left: 1px solid #00ffff; will-change: auto; }
  .dp-journey__rail, .dp-journey__stem { display: none; }
  .dp-journey__step { height: auto; }
  .dp-journey__step::before { top: 5px; left: -24px; opacity: 1; transform: translate(-50%, 0); }
  .dp-journey__copy, .dp-journey__step:nth-of-type(n) .dp-journey__copy { position: static; width: 100%; opacity: 1; transform: none; }
}
