.journey { position: relative; }
.journey-flow {
  position: relative;
  height: 34px;
  margin: -34px 0 20px;
  overflow: hidden;
}
.journey-flow::before {
  content: "";
  position: absolute;
  left: 16.5%;
  right: 16.5%;
  top: 16px;
  height: 1px;
  background: var(--line);
}
.journey-flow-bar {
  position: absolute;
  left: 16.5%;
  top: 14px;
  width: 67%;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--acid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(.22,.74,.22,1);
}
.journey.is-in-view .journey-flow-bar { transform: scaleX(1); }
.journey-flow-dot {
  position: absolute;
  top: 10px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s, transform .4s;
}
.journey-flow-dot:nth-child(2) { left: calc(16.5% - 6px); transition-delay: .1s; }
.journey-flow-dot:nth-child(3) { left: calc(50% - 6px); transition-delay: .55s; }
.journey-flow-dot:nth-child(4) { right: calc(16.5% - 6px); transition-delay: 1s; }
.journey.is-in-view .journey-flow-dot { opacity: 1; transform: scale(1); }

.journey-step .journey-window {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(100%, 270px);
  height: 190px;
  margin: 45px auto 64px;
  overflow: visible;
  border: 5px solid var(--white);
  border-radius: 25px;
  background: var(--white);
  box-shadow: 8px 10px 0 var(--ink), 0 18px 45px rgba(21,25,20,.16);
  transform: rotate(-2deg);
  transition: transform .35s ease, box-shadow .35s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.journey-step:nth-child(2) .journey-window { transform: rotate(2.5deg); }
.journey-step:nth-child(3) .journey-window { transform: rotate(-1deg); }
.journey-step:hover .journey-window { transform: translateY(-7px) rotate(0); box-shadow: 10px 15px 0 var(--ink), 0 24px 55px rgba(21,25,20,.2); }
.journey-step .journey-window:focus-visible { outline: 4px solid var(--violet); outline-offset: 6px; }
.journey-image-main {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  transform: scale(1.01);
}
.journey.is-in-view .journey-image-main { animation: journey-pan 8s ease-in-out infinite alternate; }
.journey-image-float {
  position: absolute;
  z-index: 3;
  right: -18px;
  bottom: -25px;
  width: 39%;
  height: 83px;
  object-fit: cover;
  border: 4px solid var(--white);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 13px 24px rgba(21,25,20,.24);
  transform: rotate(7deg);
}
.journey-step:nth-child(2) .journey-image-float { left: -18px; right: auto; transform: rotate(-7deg); }
.journey-step:nth-child(3) .journey-image-float { width: 31%; height: 105px; object-position: top; }
.journey.is-in-view .journey-image-float { animation: journey-float 4.5s ease-in-out infinite; }
.journey-step:nth-child(2) .journey-image-float { animation-delay: -.9s; }
.journey-step:nth-child(3) .journey-image-float { animation-delay: -1.8s; }
.journey-window-label {
  position: absolute;
  z-index: 4;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 99px;
  background: rgba(18,23,18,.84);
  color: white;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.journey-step:nth-child(2) .journey-window-label { background: rgba(163,53,34,.88); }
.journey-step:nth-child(3) .journey-window-label { background: rgba(41,35,93,.88); }
.journey-window-simu .journey-image-main { object-position: center 18%; }
.journey-window-anak .journey-image-main { object-position: center 18%; }
.journey-window-python .journey-image-main { object-position: center; }

@keyframes journey-pan {
  from { transform: scale(1.01); }
  to { transform: scale(1.075); }
}
@keyframes journey-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

html[data-theme="editorial"] .journey-flow-bar { border-radius: 0; background: linear-gradient(90deg, #aacde3, #d98a72, #e9d27b); }
html[data-theme="editorial"] .journey-flow-dot { border-radius: 0; border-color: #f3efe6; background: #17243b; }
html[data-theme="editorial"] .journey-step .journey-window,
html[data-theme="editorial"] .journey-step:nth-child(2) .journey-window,
html[data-theme="editorial"] .journey-step:nth-child(3) .journey-window {
  border-width: 1px;
  border-color: #17243b;
  border-radius: 0;
  box-shadow: 8px 9px 0 rgba(23,36,59,.18);
  transform: none;
}
html[data-theme="editorial"] .journey-step:hover .journey-window { transform: translateY(-5px); box-shadow: 8px 14px 0 rgba(23,36,59,.2); }
html[data-theme="editorial"] .journey-image-main,
html[data-theme="editorial"] .journey-image-float,
html[data-theme="editorial"] .journey-window-label { border-radius: 0; }

@media (max-width: 1050px) {
  .journey-flow { display: none; }
  .journey-step .journey-window { width: 165px; height: 125px; margin: 0; transform: rotate(-2deg) scale(.92); }
  .journey-step:nth-child(2) .journey-window { transform: rotate(2deg) scale(.92); }
  .journey-step:nth-child(3) .journey-window { transform: rotate(-1deg) scale(.92); }
  .journey-image-main { border-radius: 17px; }
  .journey-image-float { right: -10px; bottom: -16px; height: 55px; border-width: 3px; border-radius: 10px; }
  .journey-step:nth-child(2) .journey-image-float { left: -10px; }
  .journey-step:nth-child(3) .journey-image-float { height: 68px; }
  .journey-window-label { left: 7px; top: 7px; padding: 5px 7px; font-size: 6px; }
}

@media (max-width: 720px) {
  .journey-step .journey-window,
  .journey-step:nth-child(2) .journey-window,
  .journey-step:nth-child(3) .journey-window { grid-column: 2; width: min(100%, 255px); height: 170px; margin: 16px 0 32px; transform: none; }
  .journey-step .journey-window + div { grid-column: 2; }
  .journey-image-float { width: 34%; height: 72px; }
  .journey-step:nth-child(3) .journey-image-float { height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-flow-bar { transform: scaleX(1); }
  .journey-flow-dot { opacity: 1; transform: none; }
  .journey-image-main, .journey-image-float { animation: none !important; }
}


/* Keep the final call-to-action compact on small screens. */
@media (max-width: 720px) {
  .closing,
  html[data-theme="editorial"] .closing {
    min-height: 0;
    padding: 38px 25px 42px;
    align-items: center;
  }
  .closing h2 { font-size: clamp(37px, 11vw, 45px); }
  .closing .button { margin-top: 28px; }
  .closing-mark { right: -3%; bottom: -10%; font-size: 150px; }
  .closing-shape.shape-one { width: 230px; height: 230px; right: -20%; top: -25%; }
  .closing-shape.shape-two { display: none; }
}