.journey-art {
  --ja-ink: #111111;
  --ja-line: #BDD8D5;
  color: var(--ja-ink);
  background: #F7FCFB;
  border: 1px solid var(--ja-line);
  border-radius: 24px;
  margin: clamp(28px, 4vw, 54px) 0 0;
  padding: clamp(18px, 2.7vw, 36px) clamp(14px, 2vw, 30px);
  overflow: hidden;
}

.ja-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.ja-stage {
  min-width: 0;
  margin: 0;
  padding: 0 8%;
  position: relative;
}

.ja-stage + .ja-stage {
  border-left: 1px solid var(--ja-line);
}

.ja-plate {
  border-bottom: 1px solid var(--ja-line);
  margin-bottom: 13px;
}

.ja-plate > svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 254 / 168;
  overflow: visible;
}

.ja-stage-caption {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ja-stage-caption strong {
  color: var(--ja-ink);
  font-size: clamp(15px, 1.55vw, 23px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.ja-stage-caption span {
  color: #3A4D4B;
  font-size: clamp(11px, .9vw, 14px);
  line-height: 1.4;
}

.ja-link {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  right: 0;
  top: 38%;
  width: 31px;
  height: 27px;
  color: #006B68;
  background: #F7FCFB;
  transform: translate(50%, -50%);
}

.ja-link svg {
  width: 20px;
  height: 14px;
}

.ja-micro,
.wa-overline {
  font: 600 6.2px / 1.1 ui-monospace, monospace;
  letter-spacing: .8px;
  fill: #3A4D4B;
}

.ja-heading,
.wa-label {
  font: 600 14px / 1.1 Inter, Arial, sans-serif;
  letter-spacing: -.5px;
  fill: #111111;
}

.ja-ui,
.wa-small {
  font: 500 8px / 1.1 Inter, Arial, sans-serif;
  fill: #3A4D4B;
}

.ja-invert,
.wa-reverse {
  fill: #FFFFFF;
}

.workflow-art {
  margin: 18px 0 12px;
  border-radius: 13px;
  border: 1px solid #BDD8D5;
  background: #F7FCFB;
  overflow: hidden;
}

.workflow-art > svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 165px;
}

.wa-overline {
  font-size: 8px;
  letter-spacing: 1.1px;
}

.wa-label {
  font-size: 15px;
}

.wa-small {
  font-size: 11px;
}

@media (max-width: 720px) {
  .journey-art {
    border-radius: 18px;
    padding: 16px 8px 20px;
  }

  .ja-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 27px;
  }

  .ja-stage:nth-child(3) {
    border-left: none;
  }

  .ja-stage:nth-child(2) .ja-link {
    display: none;
  }

  .ja-stage-caption strong {
    font-size: 18px;
  }

  .ja-stage-caption span {
    font-size: 12px;
  }

  .ja-plate {
    margin-bottom: 10px;
  }
}

@media (max-width: 390px) {
  .journey-art {
    padding-inline: 4px;
  }

  .ja-stage {
    padding-inline: 7%;
  }

  .ja-stage-caption strong {
    font-size: 16px;
  }

  .ja-stage-caption span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .journey-art.motion-in .ja-object,
  .motion-in .journey-art .ja-object {
    animation: ja-arrive 620ms cubic-bezier(.16, .8, .26, 1) backwards;
    animation-delay: calc(var(--ja-step) * 150ms);
  }

  .journey-art.motion-in .ja-link svg,
  .motion-in .journey-art .ja-link svg {
    animation: ja-pass 550ms ease-out backwards;
    animation-delay: calc(180ms + var(--ja-step) * 150ms);
  }

  .journey-art.motion-in .ja-confirm,
  .motion-in .journey-art .ja-confirm {
    transform-box: fill-box;
    transform-origin: center;
    animation: ja-stamp 380ms cubic-bezier(.16, .8, .26, 1) 830ms backwards;
  }

  .workflow-art.motion-in .wa-object,
  .motion-in .workflow-art .wa-object {
    animation: ja-arrive 480ms ease-out backwards;
  }

  .workflow-art.motion-in .wa-later,
  .motion-in .workflow-art .wa-later {
    animation-delay: 170ms;
  }

  @keyframes ja-arrive {
    from { opacity: .2; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes ja-pass {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes ja-stamp {
    from { opacity: 0; transform: scale(.78); }
    to { opacity: 1; transform: scale(1); }
  }
}

@media (max-width: 400px) {
  .workflow-panel { padding: 16px; }
  .workflow-output { padding-inline: 14px; }
  .workflow-output .workflow-art { margin-inline: -8px; }
}
