.solutions-journey {
  --journey-rule: #3a393f;
  --journey-muted: #c1bec8;
}

.home-solutions .solutions-journey {
  margin-top: clamp(26px, 3.5vw, 44px);
}

.solutions-journey--page {
  padding-bottom: clamp(40px, 5.5vw, 76px);
}

.solutions-journey-inner {
  border-top: 1px solid var(--journey-rule);
  padding-top: clamp(26px, 3.2vw, 40px);
}

.solutions-journey-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 43px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}


.solutions-journey-stages {
  display: grid;
  grid-template-columns: 27% 23% minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.solutions-journey-stage {
  min-width: 0;
  padding: 0 clamp(12px, 2.5vw, 32px) 0 0;
}

.solutions-journey-stage + .solutions-journey-stage {
  padding-left: clamp(12px, 1.5vw, 20px);
}

.solutions-journey-stage:last-child {
  padding-right: 0;
}

.solutions-journey-stage-title {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 650;
  line-height: 1.2;
  text-wrap: balance;
}

.solutions-journey-mobile {
  display: none;
}

.solutions-journey-checklist {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--journey-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.solutions-journey-checklist > li {
  position: relative;
  padding-left: 20px;
}

.solutions-journey-checklist > li::before {
  position: absolute;
  top: .26em;
  left: 2px;
  width: 5px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.solutions-journey-stage:last-child .solutions-journey-checklist > li::before {
  color: var(--accent-text);
}

@media (min-width: 681px) {
  .solutions-journey-layout {
    display: grid;
    grid-template-rows: auto auto auto;
    margin-top: clamp(18px, 2.4vw, 30px);
  }


  .solutions-journey-stages {
    grid-area: 1 / 1 / 4 / 2;
    grid-template-rows: subgrid;
  }

  .solutions-journey-stage {
    display: grid;
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
  }

  .solutions-journey-feature {
    display: contents;
  }

  .solutions-journey-stage-title {
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: clamp(16px, 1.5vw, 21px);
  }

  .solutions-journey-checklist {
    grid-row: 3;
    align-content: start;
    padding-top: 12px;
    border-top: 1px solid var(--journey-rule);
  }

  .solutions-journey-stage:last-child .solutions-journey-checklist {
    border-top-color: var(--accent-text);
  }
}

@media (max-width: 680px) {
  .solutions-journey-mobile {
    display: revert;
  }

  .solutions-journey-wide { display: none; }

  .solutions-journey-before {
    margin: 1.25rem 0 .625rem;
    color: var(--journey-muted);
    font-size: .875rem;
    font-weight: 650;
  }

  .solutions-journey-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .solutions-journey-stage,
  .solutions-journey-stage + .solutions-journey-stage {
    padding: 0;
    border: 0;
  }

  .solutions-journey-stage:not(:last-child) {
    display: grid;
    grid-template-rows: minmax(2.4em, auto) auto 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--journey-rule);
    border-radius: 8px;
    background: #17181d;
  }

  .solutions-journey-stage:not(:last-child) .solutions-journey-stage-title {
    margin: 0;
    font-size: 1rem;
  }

  .solutions-journey-stage:not(:last-child) .solutions-journey-checklist {
    display: none;
  }

  .solutions-journey-summary {
    margin: 0;
    color: var(--journey-muted);
    font-size: .9375rem;
    line-height: 1.45;
  }

  .solutions-journey-stage:last-child {
    grid-column: 1 / -1;
  }

  .solutions-journey-connection {
    position: relative;
    margin: 2px 0 10px;
    padding-bottom: 26px;
    color: var(--accent-text);
    font-size: .875rem;
    font-weight: 650;
    text-align: center;
  }

  .solutions-journey-connection::before,
  .solutions-journey-connection::after {
    position: absolute;
    left: 50%;
    content: "";
  }

  .solutions-journey-connection::before {
    bottom: 2px;
    width: 1px;
    height: 16px;
    background: currentColor;
    transform: translateX(-50%);
  }

  .solutions-journey-connection::after {
    bottom: 2px;
    width: 8px;
    height: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateX(-50%) rotate(45deg);
  }

  .solutions-journey-feature {
    padding: 16px 12px;
    border: 1px solid #574568;
    border-top: 2px solid var(--accent-text);
    border-radius: 8px;
    background: #1a1620;
  }

  .solutions-journey-feature .solutions-journey-stage-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
  }

  .solutions-journey-feature .solutions-journey-checklist {
    margin-top: 10px;
    font-size: .9375rem;
  }

}

/* Real documents are composed at the width of each stage. */
.journey-art { position: relative; min-width: 0; align-self: center; }
.journey-art img { display: block; width: 100%; }
.journey-paper, .journey-files { aspect-ratio: 1.29; }
.journey-print, .journey-print-photo {
  position: absolute;
  border: 3px solid #f6f4ed;
  box-shadow: 0 3px 7px #0007;
}
.journey-paper .journey-print { width: 84%; top: 6%; left: 4%; transform: rotate(-6deg); }
.journey-paper .journey-print-photo { width: 44%; bottom: 3%; right: 4%; transform: rotate(6deg); border-width: 4px; }
.journey-files { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 7px; align-items: stretch; }
.journey-file { position: relative; border: 1px solid #494950; border-radius: 5px; overflow: hidden; background: #fff; }
.journey-file img { width: 100%; height: 100%; object-fit: cover; }
.journey-file span {
  position: absolute; bottom: 4px; right: 4px;
  padding: 2px 5px; border-radius: 3px;
  background: #30223e; color: white;
  font: 600 clamp(9px, .7vw, 11px)/1.3 var(--font, Arial), sans-serif;
}
.journey-file-sheet { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.journey-file-sheet img { height: auto; }
.journey-file-sheet span { top: 3px; bottom: auto; color: #fff; background: #246744; }
.journey-file-sheet a { display: block; }
.journey-file-sheet:focus-within { outline: 2px solid #ba8de2; outline-offset: 2px; }
.journey-linked { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 4.5%; align-items: center; }
.journey-model { position: relative; overflow: hidden; border: 1px solid #4f4858; border-radius: 5px; background: #28292d; }
.journey-model img { height: auto; }
.journey-model::after { position: absolute; content: ""; top: 50%; left: 66%; width: 8px; height: 8px; z-index: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #be91da; background: #fff; }
.journey-linked-records { position: relative; display: grid; gap: 5px; }
.journey-linked-records::before {
  position: absolute; content: ""; left: -10%; top: 15%; bottom: 16%; border-left: 1px solid #aa78c7;
}
.journey-linked::after { content: ""; position: absolute; left: 45.6%; width: 26.6%; top: 50%; border-top: 1px solid #aa78c7; pointer-events: none; }
.journey-linked-thumb, .journey-nc { position: relative; border: 1px solid #54515b; border-radius: 3px; }
.journey-linked-thumb::before, .journey-nc::before {
  position: absolute; content: ""; left: -11%; width: 10%; top: 50%; border-top: 1px solid #aa78c7;
}
.journey-linked-thumb img { aspect-ratio: 2.25; object-fit: cover; border-radius: 2px; }
.journey-nc { display: grid; gap: 2px; padding: 5px 7px; line-height: 1.2; color: #211e22; background: #f6f3ec; }
.journey-nc strong { font-size: clamp(12px, 1.03vw, 16px); }
.journey-nc span, .journey-nc small { font: 500 clamp(9px, .75vw, 12px)/1.2 Arial, sans-serif; }
.journey-nc small { justify-self: start; padding: 2px 4px; background: #ffd989; border-radius: 2px; }
.journey-sources { font-size: .8rem; line-height: 1.5; color: var(--journey-muted); margin-top: 1rem; }
.journey-sources summary { cursor: pointer; width: fit-content; }
.journey-sources p { margin: .6rem 0; }
.journey-sources ul { margin: 0; padding-left: 1.2rem; }
.journey-sources a { color: inherit; text-decoration: underline; }
@media (min-width:681px) {
  .solutions-journey-stages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.72fr); }
  .journey-art { grid-row: 2; margin-block: 13px 18px; }
  .solutions-journey-stage:not(:last-child) .journey-art::after {
    position: absolute; content: ""; right: calc(-1 * clamp(12px, 1.8vw, 25px)); top: 48%;
    width: 8px; height: 8px; border-top: 2px solid #9670ac; border-right: 2px solid #9670ac; transform: rotate(45deg);
  }
  .journey-sources { grid-row: 4; }
}
@media (max-width:680px) {
  .journey-files { gap: 4px; }
  .journey-file span { font-size: 8px; padding: 1px 3px; right: 1px; bottom: 1px; }
  .journey-file-sheet span { top: 1px; bottom: auto; }
  .journey-linked { margin-block: 12px; }
}
