/* Homepage mortgage journey. Shared route-ticket styles remain for service pages. */
.mortgage-route {
  position: relative;
  color: var(--white);
  background: var(--orange);
  scroll-margin-top: 0;
  isolation: isolate;
}
.mortgage-route__stage { position: relative; min-height: 850px; overflow: hidden; }
.mortgage-route__image, .mortgage-route__shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mortgage-route__image { object-fit: cover; object-position: 48% center; }
.mortgage-route__shade { background: linear-gradient(90deg, rgb(9 37 29 / .38), transparent 68%); }
.mortgage-route__heading { position: absolute; top: 13%; left: 5%; width: 35%; z-index: 2; }
.mortgage-route__heading .micro-label { color: var(--acid); margin: 0; }
.mortgage-route__heading h2 { color: var(--white); margin: 1.3rem 0 0; font-family: "OMF Sans", sans-serif; font-size: var(--compact-section-heading); font-weight: 500; line-height: .92; letter-spacing: -.075em; }
.mortgage-route__heading h2 em { color: var(--acid); font-family: "OMF Serif", serif; font-size: .86em; font-weight: 400; letter-spacing: -.045em; }
.mortgage-route__promise, .mortgage-route__intro { font-family: "OMF Text", sans-serif; font-size: clamp(.92rem, 1.05vw, 1.05rem); line-height: 1.55; }
.mortgage-route__promise { margin: 1.4rem 0 0; }
.mortgage-route__intro { margin: 1rem 0 1.9rem; }
/* Reuse the hero CTA itself; only its placement belongs to this section. */
.mortgage-route__cta { margin-top: 1.5rem; width: max-content; max-width: 100%; }
.mortgage-route__cta:focus-visible, .mortgage-route__continue:focus-visible { outline: 3px solid var(--white); outline-offset: 6px; }
.mortgage-route__steps { position: absolute; inset: 0; padding: 0; margin: 0; list-style: none; }
.mortgage-step { --step-enter: 1; --direction: 1; position: absolute; display: grid; grid-template-columns: 5rem 1fr; align-items: center; gap: 1.6rem; width: 51%; height: 17.2%; padding: 1.2rem 2.7rem; color: var(--ink); z-index: 3; }
.mortgage-step::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-light); border: 1px solid rgb(255 253 248 / .65); border-radius: 1rem 3.5rem 1rem .5rem; transform: skewX(-8deg); box-shadow: 0 12px 28px rgb(9 37 29 / .17); }
.mortgage-step:nth-child(even)::before { background: var(--acid); }
.mortgage-step:nth-child(1) { top: 9%; left: 45%; }
.mortgage-step:nth-child(2) { top: 28%; left: 40%; --direction: -1; }
.mortgage-step:nth-child(3) { top: 47%; left: 45%; }
.mortgage-step:nth-child(4) { top: 66%; left: 40%; --direction: -1; }
.mortgage-step__number { display: block; font: 400 2.55rem/1 "OMF Serif", serif; letter-spacing: -.065em; color: var(--orange); }
.mortgage-step__copy { position: relative; padding-left: 1.5rem; border-left: 1px solid color-mix(in srgb, var(--forest) 25%, transparent); }
.mortgage-step__label { display: block; margin: 0 0 .4rem; color: var(--forest); font-family: "OMF Sans", sans-serif; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.mortgage-step h3 { margin: 0 0 .9rem; font-family: "OMF Sans", sans-serif; font-size: clamp(2rem, 2.6vw, 3rem); font-weight: 500; line-height: .94; letter-spacing: -.055em; }
.mortgage-step p { max-width: 30ch; margin: 0; font-family: "OMF Text", sans-serif; font-size: clamp(.88rem, .92vw, .96rem); line-height: 1.55; opacity: .84; }
.mortgage-route__footer { position: absolute; left: 5%; right: 5%; bottom: 4.2%; display: flex; justify-content: flex-end; gap: 2rem; align-items: center; }
.mortgage-route__continue { display: flex; align-items: center; gap: 1.2rem; color: var(--white); font-size: .82rem; text-decoration: none; border-bottom: 1px solid rgb(255 253 248 / .5); padding: .4rem 0; transition: color 180ms; }
.mortgage-route__continue:hover { color: var(--acid); }
@media (min-width: 1001px) and (min-height: 700px) {
  .mortgage-route.is-scroll-scene { height: 600svh; }
  .mortgage-step { min-height: 9rem; padding-top: .5rem; padding-bottom: .5rem; }
  .is-scroll-scene .mortgage-route__stage { position: sticky; top: 0; min-height: 0; height: 100svh; }
  .is-scroll-scene .mortgage-step { opacity: var(--step-enter); transform: translate3d(calc((1 - var(--step-enter)) * var(--direction) * 140px), calc((1 - var(--step-enter)) * 26px), 0); }
}
@media (min-width: 1001px) and (max-width: 1190px) {
  .mortgage-step { grid-template-columns: 3.5rem 1fr; gap: .8rem; padding: 1.2rem 1.5rem; }
  .mortgage-step__copy { padding-left: 1rem; }
}
@media (max-width: 1000px), (max-height: 699px) {
  .mortgage-route__stage { min-height: 0; padding: 5.5rem 6% 2rem; }
  .mortgage-route__image { object-position: 42% center; }
  .mortgage-route__shade { background: linear-gradient(180deg, rgb(9 37 29 / .36), rgb(9 37 29 / .05) 65%); }
  .mortgage-route__heading { position: relative; top: auto; left: auto; width: 100%; max-width: 34rem; margin-bottom: 3rem; }
  .mortgage-route__heading .micro-label { margin-bottom: 1.5rem; }
  .mortgage-route__steps { position: relative; display: grid; gap: 1rem; padding: 0 1rem; }
  .mortgage-step, .mortgage-step:nth-child(n) { position: relative; top: auto; left: auto; width: 100%; height: auto; min-height: 10.5rem; grid-template-columns: 3.6rem 1fr; gap: 1rem; padding: 1.5rem; }
  .mortgage-step:nth-child(even) { transform: translateX(.35rem); }
  .mortgage-step:nth-child(odd) { transform: translateX(-.35rem); }
  .mortgage-step::before { transform: skewX(-4deg); border-radius: .75rem 2.5rem .75rem .5rem; }
  .mortgage-step__copy { padding-left: 1rem; }
  .mortgage-step__label { font-size: .65rem; }
  .mortgage-route__footer { position: relative; left: auto; right: auto; bottom: auto; align-items: start; flex-direction: column; gap: 1.5rem; margin-top: 2.3rem; }
}
@media (max-width: 430px) {
  .mortgage-route__stage { padding: 4rem 6% 2rem; }
  .mortgage-route__steps { padding: 0 .2rem; }
  .mortgage-step, .mortgage-step:nth-child(n) { grid-template-columns: 2.8rem 1fr; gap: .7rem; padding: 1.4rem 1rem; }
  .mortgage-step__copy { padding-left: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mortgage-route *, .mortgage-route *::before { transition: none !important; }
  .mortgage-step { opacity: 1 !important; }
}
@media print {
  .mortgage-route, .mortgage-route.is-scroll-scene { height: auto; }
  .mortgage-route__stage { position: relative !important; height: auto !important; padding: 2rem; color: var(--forest); }
  .mortgage-route__heading, .mortgage-route__steps, .mortgage-step, .mortgage-step:nth-child(n), .mortgage-route__footer { position: relative; inset: auto; width: 100%; }
  .mortgage-route__heading h2, .mortgage-route__heading h2 em { color: var(--forest); }
  .mortgage-route__image, .mortgage-route__shade, .mortgage-route__footer, .mortgage-route__cta { display: none; }
  .mortgage-step { opacity: 1 !important; transform: none !important; min-height: 9rem; }
}

@media (max-width: 780px) {
  .mortgage-step h3 { font-size: clamp(2.55rem, 11vw, 3.5rem); }
  .mortgage-step p { font-size: .86rem; }
}
