.journey { margin-block: clamp(26px,4vw,57px) 0; }
.journey-deck {
  --journey-rail: clamp(48px,5.4vw,72px);
  --journey-gap: 4px;
  container-type: inline-size;
  display: flex;
  gap: var(--journey-gap);
}
.journey-item {
  --tool-ink: #6638a2;
  --journey-accent: #a071dc;
  --journey-tint: #decbf8;
  --journey-base: #f8f1ff;
  flex: 0 0 var(--journey-rail);
  min-width: 0;
  min-height: 418px;
  overflow: clip;
  border: 1px solid #fff;
  border-radius: 19px;
  background: radial-gradient(ellipse at 92% 0%,var(--journey-tint),transparent 100%),var(--journey-base);
  box-shadow: 0 7px 20px color-mix(in srgb,var(--tool-ink) 12%,transparent);
}
.journey-item:nth-child(2) { --tool-ink: #245fae; --journey-accent: #5a9cdb; --journey-tint: #c8e5fb; --journey-base: #eff8ff; }
.journey-item:nth-child(3) { --tool-ink: #256547; --journey-accent: #63b387; --journey-tint: #c7ecd4; --journey-base: #effbf3; }
.journey-item:nth-child(4) { --tool-ink: #8a4727; --journey-accent: #cf8b61; --journey-tint: #f8dac4; --journey-base: #fff4eb; }
.journey-item:nth-child(5) { --tool-ink: #8d3866; --journey-accent: #d47eac; --journey-tint: #f4c9dd; --journey-base: #fff1f8; }
.journey-item.is-open { flex-grow: 1; }
.journey-item:not(.is-open) h3 { height: 100%; }
.journey-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: clamp(14px,2.1vw,26px);
  border: 0;
  background: transparent;
  text-align: left;
  color: #253961;
}
.journey-trigger:focus-visible { outline-offset: -4px; border-radius: 17px; }
.journey-trigger:hover { background: #ffffff60; }
.journey-tags { display: none; }
.journey-brand { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; }
.journey-index { color: var(--tool-ink); font-size: clamp(.95rem,1.55vw,1.26rem); font-weight: 570; font-variant-numeric: tabular-nums; }
.journey-title { text-align: center; font-size: clamp(1.18rem,2vw,1.7rem); font-weight: 650; letter-spacing: -.045em; }
.journey-short { display: none; }
.journey-item:not(.is-open) .journey-trigger {
  display: flex;
  height: 100%;
  align-items: center;
  flex-direction: column;
  justify-content: start;
  gap: 17px;
  padding-inline: 1px;
}
.journey-item:not(.is-open) .journey-title, .journey-item:not(.is-open) .journey-brand { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.journey-item:not(.is-open) .journey-short { display: block; writing-mode: vertical-rl; color: var(--tool-ink); font-size: .77rem; font-weight: 630; }
.journey-body {
  display: grid;
  width: calc(100cqw - 4 * var(--journey-rail) - 4 * var(--journey-gap) - 2px);
  grid-template-columns: minmax(125px,.75fr) minmax(0,1.35fr);
  gap: clamp(13px,2.5vw,32px);
  padding: 0 clamp(14px,2.1vw,26px) clamp(16px,2.1vw,26px);
}
.journey-body[hidden] { display: none; }
.journey-art {
  display: grid;
  grid-template-rows: minmax(110px,1fr) auto;
  align-items: center;
  min-height: 275px;
  padding: 16px 9px 19px;
  border: 1px solid #fff;
  border-radius: 17px;
  background: linear-gradient(145deg,#fff,var(--journey-base));
  box-shadow: 0 9px 24px color-mix(in srgb,var(--tool-ink) 12%,transparent);
  text-align: center;
}
.journey-art .tool-visual { height: 165px; }
.journey-art .tool-visual > div { width: min(75%,162px); }
.journey-art > span { color: var(--tool-ink); font-size: .94rem; font-weight: 660; }
.journey-art-label > b { display: none; }
.journey-art .tool-window-body span { color: var(--tool-ink); text-shadow: 0 2px 7px color-mix(in srgb,var(--journey-accent) 42%,transparent); }
.journey-art .tool-cursor::after, .journey-art .tool-checklist i, .journey-art .tool-note i { background: var(--journey-accent); }
.journey-art .tool-checklist b { color: var(--tool-ink); background: var(--journey-tint); }
.journey-art .tool-checklist > strong { background: var(--tool-ink); }
.journey-art .tool-note::before { background: color-mix(in srgb,var(--journey-tint) 65%,transparent); }
.journey-art .tool-note span { background: var(--journey-tint); box-shadow: 0 7px 16px color-mix(in srgb,var(--tool-ink) 18%,transparent); }
.journey-art .tool-growth-curve { background: linear-gradient(100deg,var(--journey-accent),var(--tool-ink)); }
.journey-art .tool-growth-bars i { background: linear-gradient(90deg,var(--journey-base),var(--journey-accent)); box-shadow: 0 6px 12px color-mix(in srgb,var(--tool-ink) 15%,transparent); }
.journey-store {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: linear-gradient(145deg,#fff,#e6f0ff);
  color: #274b87;
  text-align: left;
  box-shadow: 0 9px 19px #28549729;
  rotate: -7deg;
}
.journey-store span { color: #475d86; font-size: .73rem; }
.journey-store div { display: flex; justify-content: space-between; gap: 5px; }
.journey-store strong { color: #1952ae; font-size: .87rem; }
.journey-detail { display: grid; gap: 14px; align-content: space-between; padding-block: 4px; }
.journey-detail > div { padding-left: 12px; border-left: 2px solid #fff; }
.journey-detail h4 { margin: 0 0 4px; color: var(--tool-ink); font-size: .79rem; font-weight: 700; }
.journey-detail p { color: #3f5378; font-size: .87rem; line-height: 1.45; }
.journey-detail .button { justify-self: end; min-height: 41px; padding-inline: 14px; border-radius: 99px; white-space: normal; text-align: center; background: var(--tool-ink); }
.journey-detail .button:hover { background: color-mix(in srgb,var(--tool-ink) 83%,#101b35); }
.journey.is-scroll-driven {
  --journey-pin: max(calc(var(--masthead-inset) + var(--masthead-height) + 16px),9svh);
  --journey-offset: 6.25%;
  scroll-margin-top: max(12px,calc(var(--journey-pin) - 80px));
}
.is-scroll-driven .journey-deck {
  position: relative;
  isolation: isolate;
  flex-direction: column;
  gap: clamp(30px,4vw,45px);
}
.is-scroll-driven .journey-deck::after { content: ""; display: block; flex: none; height: clamp(155px,27svh,260px); }
.is-scroll-driven .journey-deck:focus-visible { outline-offset: 7px; border-radius: 20px; }
.is-scroll-driven .journey-item {
  --journey-layer: 0;
  position: sticky;
  top: var(--journey-pin);
  z-index: calc(1 + var(--journey-layer));
  display: flex;
  flex: none;
  flex-direction: column;
  width: calc(100% - 4 * var(--journey-offset));
  height: min(558px,calc(100svh - var(--journey-pin) - 26px));
  min-height: 0;
  margin-inline-start: calc(var(--journey-layer) * var(--journey-offset));
  border-radius: 23px;
  box-shadow: 0 12px 28px color-mix(in srgb,var(--tool-ink) 11%,transparent),inset 0 1px #fff;
}
.is-scroll-driven .journey-item:nth-child(2) { --journey-layer: 1; }
.is-scroll-driven .journey-item:nth-child(3) { --journey-layer: 2; }
.is-scroll-driven .journey-item:nth-child(4) { --journey-layer: 3; }
.is-scroll-driven .journey-item:nth-child(5) { --journey-layer: 4; }
.is-scroll-driven .journey-item:not(.is-open) h3 { height: auto; }
.is-scroll-driven .journey-item .journey-trigger {
  display: grid;
  height: auto;
  justify-content: stretch;
  gap: 12px;
  padding: clamp(17px,2.35vw,30px);
  padding-bottom: 0;
  cursor: default;
  background: none;
}
.is-scroll-driven .journey-item .journey-trigger::after, .is-scroll-driven .journey-item .journey-short { display: none; }
.is-scroll-driven .journey-item .journey-title, .is-scroll-driven .journey-item .journey-brand {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}
.is-scroll-driven .journey-title { text-align: center; }
.is-scroll-driven .journey-tags {
  display: flex;
  gap: 8px;
  margin: clamp(17px,2.25vw,30px) clamp(17px,2.35vw,30px) clamp(24px,3.5vw,46px);
  white-space: nowrap;
}
.journey-tags span { padding: 5px 10px; border: 1px solid #fff; border-radius: 99px; background: #ffffffa9; color: var(--tool-ink); font-size: .67rem; font-weight: 650; }
.is-scroll-driven .journey-body {
  flex: 1;
  width: 100%;
  min-height: 0;
  grid-template-columns: minmax(128px,.71fr) minmax(0,1.42fr);
  gap: clamp(15px,2.3vw,29px);
  padding: 0 clamp(17px,2.35vw,30px) clamp(19px,2.35vw,30px);
}
.is-scroll-driven .journey-art { min-height: 0; padding: clamp(12px,2vw,23px); text-align: left; }
.is-scroll-driven .journey-art .tool-visual { min-height: 95px; height: min(100%,190px); }
.is-scroll-driven .journey-art-label { display: flex; align-items: center; gap: 8px; }
.is-scroll-driven .journey-art-label b { display: inline; color: var(--journey-accent); font-size: clamp(1.65rem,3.35vw,3.15rem); font-weight: 560; line-height: 1; letter-spacing: -.075em; }
.is-scroll-driven .journey-detail { padding-block: 1px; }
.is-scroll-driven .journey-detail h4 { font-size: .7rem; letter-spacing: .045em; text-transform: uppercase; }
.is-scroll-driven .journey-detail p { max-width: 43ch; }
@media (prefers-reduced-motion: no-preference) {
  .journey-item { transition: flex-grow .42s cubic-bezier(.24,.76,.25,1),box-shadow .2s; }
  .journey-trigger { transition: background-color .2s; }
  .journey-body:not([hidden]) > * { --intro-shift: 8px; animation: appear .42s cubic-bezier(.2,.7,.25,1) .12s both; }
  .journey-body:not([hidden]) .journey-detail { animation-delay: .18s; }
  .journey-body:focus-within > * { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-item { transition-property: none; }
}
@media (max-width: 870px) {
  .journey-deck { display: grid; gap: 5px; }
  .journey-item { min-height: 0; border-radius: 12px; }
  .journey-item:not(.is-open) .journey-trigger { display: grid; flex-direction: initial; gap: 9px; padding: 13px 15px; }
  .journey-item:not(.is-open) .journey-title { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .journey-title { text-align: left; }
  .journey-item:not(.is-open) .journey-short { display: none; }
  .journey-item:not(.is-open) .journey-trigger::after { content: ""; width: 12px; height: 12px; background: linear-gradient(#365b98,#365b98) center / 12px 1px no-repeat, linear-gradient(#365b98,#365b98) center / 1px 12px no-repeat; }
  .journey-trigger { scroll-margin-top: 8px; }
  .journey-body { width: 100%; }
  .journey-art { min-height: 225px; }
}
@media (max-width: 870px) {
  .journey.is-scroll-driven { --journey-offset: 5px; }
  .is-scroll-driven .journey-deck { display: flex; gap: 28px; }
  .is-scroll-driven .journey-item { border-radius: 18px; height: min(500px,calc(100svh - var(--journey-pin) - 21px)); }
  .is-scroll-driven .journey-tags { margin: 17px 14px 24px; }
  .is-scroll-driven .journey-item .journey-trigger { padding: 15px 14px 0; gap: 7px; }
  .is-scroll-driven .journey-title { font-size: clamp(1rem,3.3vw,1.3rem); }
  .is-scroll-driven .journey-body { grid-template-columns: minmax(84px,.75fr) minmax(0,1.25fr); gap: 10px; padding: 0 13px 15px; }
  .is-scroll-driven .journey-art { grid-template-rows: minmax(80px,1fr) auto; padding: 9px 6px 13px; }
  .is-scroll-driven .journey-art-label { align-items: start; flex-direction: column; font-size: .76rem; }
  .is-scroll-driven .journey-art .tool-visual > div { width: 84%; }
  .is-scroll-driven .journey-detail { gap: 9px; }
  .is-scroll-driven .journey-detail > div { padding-left: 8px; }
  .is-scroll-driven .journey-detail :is(p,h4) { font-size: .72rem; }
  .is-scroll-driven .journey-detail .button { min-height: 36px; padding-inline: 7px; font-size: .73rem; }
}
@media (max-width: 490px) {
  .journey-body { grid-template-columns: minmax(0,1fr); }
  .journey-art { min-height: 0; grid-template-rows: auto auto; padding-block: 7px 12px; }
  .journey-art .tool-visual { height: 110px; }
  .journey-detail .button { justify-self: start; }
}
@media (max-width: 870px) and (prefers-reduced-motion: no-preference) {
  .journey-item.reveal-on-scroll:not(:focus-within) { transition: opacity .42s,translate .48s cubic-bezier(.2,.75,.25,1); --reveal-y: 15px; }
}
