/* Takshak Parmar · PNC deep dive: the journey (v0.223, five moments from v0.224)
   ------------------------------------------------------------------
   Five moments in the borrower's journey, each with what they needed
   and how we got there. On a wide screen the product sits in a sticky stage to the
   right and changes as each moment reaches the reading line
   (pnc-journey.js). On a phone, or without the script, each moment
   carries its own screen. No frames: the screens sit on the canvas with
   a soft shadow, the same as the case heroes. */

.pj {
  width: var(--grid-w); margin: 0 auto;
  padding: clamp(96px, 14vh, 168px) 0 clamp(72px, 10vh, 128px);
}
.pj > .ov-head { margin-bottom: clamp(56px, 9vh, 104px); }

.pj-body {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--grid-gap);
  align-items: start;
}
.pj-moments { grid-column: 1 / span 5; grid-row: 1; }
.pj-stage {
  grid-column: 7 / -1; grid-row: 1;
  position: sticky; top: max(88px, calc(50vh - 300px));
}

/* ---- the rail: six moments, a crimson line that follows the reader ---- */
.pj-rail {
  --pj-p: 0;
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 22px; padding: 0; list-style: none;
}
.pj-rail::before, .pj-rail::after {
  content: ""; position: absolute; top: 4px; left: calc(100% / 10); height: 1px;
}
.pj-rail::before { right: calc(100% / 10); background: rgba(245,242,235,.16); }
.pj-rail::after {
  width: calc((100% - 100% / 5) * var(--pj-p)); height: 2px; top: 3.5px;
  background: var(--shu); transition: width .7s var(--gm-soft, ease);
}
.pj-rail li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pj-rail i {
  width: 9px; height: 9px; border-radius: 50%; background: #0B0B0C;
  box-shadow: inset 0 0 0 1px rgba(245,242,235,.38);
  transition: background .4s ease, box-shadow .4s ease, transform .5s var(--gm-pop, ease);
}
.pj-rail li.is-past i { background: var(--shu); box-shadow: none; }
.pj-rail li.is-on i { background: var(--shu); box-shadow: 0 0 0 5px rgba(195,21,55,.18); transform: scale(1.25); }
.pj-rail span {
  color: var(--gray); font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap; transition: color .4s ease;
}
.pj-rail li.is-on span { color: var(--ink); }

/* ---- the screens ---- */
.pj-screens {
  position: relative; aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden;
  background: #F4F4F2; box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(245,242,235,.06);
}
.pj-screens > [data-pj] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: scale(1.02);
  transition: opacity .6s ease, transform 1s var(--gm-soft, ease);
}
.pj-screens > img[data-pj] { object-fit: cover; object-position: top center; }
.pj-screens > [data-pj].is-on { opacity: 1; transform: none; }

.pj-pair { background: #1A1A1C; }
.pj-pair > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: .5; }
.pj-pair-phone {
  position: absolute; right: 7%; top: 9%; width: 25%; aspect-ratio: 9 / 19; height: auto;
  object-fit: cover; object-position: top; border-radius: 18px; background: #fff;
  box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.25);
  transform: translateY(14px); transition: transform 1s var(--gm-soft, ease) .1s;
}
.pj-screens > .pj-pair.is-on .pj-pair-phone { transform: none; }

.pj-caps { position: relative; height: 1.6em; margin-top: 16px; }
.pj-caps span {
  position: absolute; inset: 0; color: var(--gray); font-size: var(--t-caption); letter-spacing: .02em;
  opacity: 0; transition: opacity .4s ease;
}
.pj-caps span.is-on { opacity: 1; }

/* ---- the moments ---- */
.pj-m {
  position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  padding: 48px 0 48px 28px;
}
.pj-m::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 140px; margin-top: -70px;
  background: rgba(245,242,235,.12); transform-origin: 50% 0;
  transition: background .5s ease;
}
.pj-m.is-on::before { background: var(--shu); }
.pj-m:first-child { min-height: 64vh; justify-content: flex-start; padding-top: 8px; }
.pj-m:last-child { min-height: 70vh; }
.pj-inline { display: none; }

.pj-no { color: var(--shu-text); font-size: var(--t-caption); letter-spacing: .2em; }
.pj-m h3 {
  margin: 14px 0 0; font-family: var(--display); font-weight: 500; font-size: var(--t-h3);
  line-height: 1.12; letter-spacing: -.026em; max-width: 20ch; color: var(--ink);
}
.pj-lede { margin: 16px 0 0; color: var(--ink-2); font-size: var(--t-body); line-height: 1.65; max-width: 44ch; }

.pj-sides {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--hairline);
}
.pj-sides dt { color: var(--gray); font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; }
.pj-sides dd { margin: 9px 0 0; color: var(--ink-2); font-size: var(--t-small); line-height: 1.6; }
.pj-sides > div:first-child dt { color: var(--shu-text); }

.pj-how { margin: 22px 0 0; color: var(--gray); font-size: var(--t-small); line-height: 1.6; max-width: 46ch; }
.pj-how b { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 500; font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; }
.pj-how a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(245,242,235,.35); text-underline-offset: 3px; }
.pj-how a:hover { text-decoration-color: var(--shu-text); }
.pj-m .pill-row--left { justify-content: flex-start; margin-top: 22px; }

/* ---- phone and narrow tablet: one column, each moment with its screen ---- */
@media (max-width: 900px) {
  .pj { padding-top: 80px; }
  .pj-body { display: block; }
  .pj-stage { display: none; }
  .pj-m { min-height: 0 !important; padding: 40px 0; border-top: 1px solid var(--hairline); justify-content: flex-start; }
  .pj-m:first-child { border-top: 0; padding-top: 0; }
  .pj-m::before { display: none; }
  .pj-inline {
    display: block; position: relative; margin: 0 0 24px; aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden;
    background: #F4F4F2; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  }
  .pj-inline > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  .pj-inline--pair { background: #1A1A1C; }
  .pj-inline--pair > img:first-child { opacity: .5; object-position: top left; }
  .pj-inline--pair .pj-pair-phone { transform: none; width: 27%; height: auto; }
  .pj-sides { grid-template-columns: 1fr; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pj-rail::after, .pj-rail i, .pj-rail span, .pj-screens > [data-pj], .pj-pair-phone, .pj-caps span, .pj-m::before { transition: none !important; }
}
html.motion-paused .pj-screens > [data-pj], html.motion-paused .pj-pair-phone { transition-duration: .01s; }

/* ---- overview: the journey in five moments ---- */
.pjo {
  --pjo-p: 0;
  position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--grid-gap);
  margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; list-style: none;
}
.pjo::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: rgba(245,242,235,.16); }
.pjo::after {
  content: ""; position: absolute; left: 0; top: 4.5px; height: 2px; width: 100%;
  background: var(--shu); transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 2.4s var(--gm-soft, ease) .2s;
}
.pjo.is-in::after { transform: scaleX(1); }
.pjo li { position: relative; padding-top: 30px; }
.pjo li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%;
  background: #0B0B0C; box-shadow: inset 0 0 0 1px rgba(245,242,235,.4);
  transition: background .4s ease calc(.3s + var(--i, 0) * .35s), box-shadow .4s ease calc(.3s + var(--i, 0) * .35s);
}
.pjo.is-in li::before { background: var(--shu); box-shadow: 0 0 0 5px rgba(195,21,55,.16); }
.pjo li:nth-child(1) { --i: 0; } .pjo li:nth-child(2) { --i: 1; } .pjo li:nth-child(3) { --i: 2; }
.pjo li:nth-child(4) { --i: 3; } .pjo li:nth-child(5) { --i: 4; }
.pjo-no { display: block; color: var(--shu-text); font-size: var(--t-label); letter-spacing: .2em; }
.pjo b { display: block; margin-top: 8px; color: var(--ink); font-family: var(--display); font-weight: 500; font-size: var(--t-h4); letter-spacing: -.02em; line-height: 1.2; }
.pjo p { margin: 10px 0 0; color: var(--ink-2); font-size: var(--t-small); line-height: 1.55; }
@media (max-width: 1100px) and (min-width: 901px) {
  .pjo { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .pjo::before, .pjo::after { display: none; }
}
@media (max-width: 900px) {
  .pjo { grid-template-columns: 1fr; row-gap: 0; padding-left: 26px; }
  .pjo::before { left: 5px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .pjo::after { left: 4.5px; top: 6px; bottom: 6px; width: 2px; height: auto; transform: scaleY(0); transform-origin: 50% 0; }
  .pjo.is-in::after { transform: scaleY(1); }
  .pjo li { padding: 0 0 30px; }
  .pjo li::before { left: -26px; top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .pjo::after { transform: none !important; transition: none; }
  .pjo li::before { transition: none; background: var(--shu); }
}
html.motion-paused .pjo::after { transition-duration: .01s; }

/* sheet "Who it had to work for" (v0.224): three cards in one row */
.pn-four.pn-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pn-four.pn-three { grid-template-columns: 1fr; } }
