/* One overhead journey followed by a compact, static system preview. */
body[data-site-page="home"] .vehicle-journey {
  --journey-header: 80px;
  --journey-height: calc(100svh - var(--journey-header));
  position: relative; padding: 0; overflow: visible; background: #fff; isolation: isolate; z-index: 61;
}
.vehicle-journey__stage { position: relative; height: var(--journey-height); min-height: 560px; overflow: hidden; background: #fff; isolation: isolate; }
/* Same desktop pace, without the former extra screenshot-scrolling chapter. */
.vehicle-journey.is-enhanced { height: calc(var(--journey-height) + 671svh); }
.vehicle-journey.is-enhanced .vehicle-journey__stage { position: sticky; top: var(--journey-header); min-height: 0; }
.vehicle-journey .vehicle-journey__opening h1 {
  position: absolute; z-index: 1; top: 3%; left: 50%; width: 92%; margin: 0;
  transform: translateX(-50%); color: #071a35; font-size: clamp(70px, min(21svh, 15.3vw), 220px);
  font-weight: 750; line-height: .92; letter-spacing: -.045em; text-align: center; text-transform: uppercase;
}
.vehicle-journey .vehicle-journey__opening h1 > span { display: block; color: inherit; white-space: nowrap; }
.vehicle-journey .vehicle-journey__opening h1 > .vehicle-journey__title-accent { color: #f45118; font-size: .9em; }
.vehicle-journey__opening { position: absolute; z-index: 1; inset: 0; }
.vehicle-journey__intro {
  position: absolute; z-index: 1; right: 5%; bottom: 17%; width: clamp(230px, 21vw, 340px); margin: 0;
  color: #526279; font-size: clamp(15px, 1.16vw, 20px); line-height: 1.7; text-wrap: pretty;
}
.vehicle-journey__scene {
  position: absolute; z-index: 3; top: 53%; left: 50%; width: min(94vw, calc(var(--journey-height) * 1.42), 1140px);
  aspect-ratio: 1.6; margin: 0; transform: translate(-50%, -50%); pointer-events: none;
}
.vehicle-journey__vehicle, .vehicle-journey__truck, .vehicle-journey__truck-front {
  position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%); transform-origin: center;
}
.vehicle-journey__vehicle { z-index: 2; }
.vehicle-journey__truck, .vehicle-journey__truck-front { width: 48%; opacity: 0; }
/* Loading order: chassis/floor → parcels → roof/doors. The matched truck
   layers move together, but the floor must not occlude entering parcels. */
.vehicle-journey__truck { z-index: 3; }
.vehicle-journey__truck-front { z-index: 5; }
.vehicle-journey__vehicle > img, .vehicle-journey__truck > img, .vehicle-journey__truck-front > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vehicle-journey__truck-roof { clip-path: inset(0 0 25.1% 0); }
.vehicle-journey__bare, .vehicle-journey__cutaway { opacity: 0; }
.vehicle-journey__cutaway {
  --empty-through: -10%;
  /* Reveal the empty chassis locally, without ghosting the whole vehicle. */
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--empty-through) - 5%), #000 calc(var(--empty-through) + 5%));
  mask-image: linear-gradient(to bottom, transparent calc(var(--empty-through) - 5%), #000 calc(var(--empty-through) + 5%));
}
/* Recess the loading bay into the rear frame, above the original bumper.
   The inset jambs and sill hide the closed-door hardware without replacing
   the covered roof or painting over the tail lights. */
.vehicle-journey__truck-interior {
  position: absolute; z-index: 1; top: 74.9%; left: 25.9%; width: 48.2%; height: 4.2%; opacity: 0;
  transform-origin: center top;
  background: linear-gradient(180deg, #050709 12%, #0c1015 50%, #293039 100%);
  box-shadow: inset 0 2px 2px #000b, inset 0 -1px 1px #080b0f;
  clip-path: polygon(0 0, 100% 0, 98% 100%, 2% 100%);
}
.vehicle-journey__truck-interior::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #72787d, #242a30 6%, transparent 10% 90%, #242a30 94%, #72787d);
  clip-path: polygon(0 0, 4% 0, 8% 89%, 92% 89%, 96% 0, 100% 0, 100% 100%, 0 100%);
}
.vehicle-journey__truck-interior::after {
  content: ""; position: absolute; inset: auto 2% 0; height: 9%;
  background: linear-gradient(180deg, #a8adb0, #555d64 45%, #242b31);
  box-shadow: 0 -1px 2px #0007;
}
.vehicle-journey__truck-door { position: absolute; z-index: 2; inset: 0; opacity: 0; }
.vehicle-journey__truck-door--left { transform-origin: 25.9% 74.9%; }
.vehicle-journey__truck-door--right { transform-origin: 74.1% 74.9%; }
.vehicle-journey__truck-door img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Correct the sprite's steeper perspective independently of the opening
   animation. Both ends of each hinge now meet the rear jamb (74.9–79.1%),
   rather than leaving the lower hinge hanging below the loading bay. */
.vehicle-journey__truck-door--left img {
  clip-path: inset(0 50% 0 0); transform-origin: 25.3% 73.9%;
  transform: translate(.6%, 1%) matrix(1, 0, -.3, .56, 0, 0);
}
.vehicle-journey__truck-door--right img {
  clip-path: inset(0 0 0 50%); transform-origin: 74.7% 73.9%;
  transform: translate(-.6%, 1%) matrix(1, 0, .3, .56, 0, 0);
}
.vehicle-journey__items { position: absolute; z-index: 4; inset: 0; }
.vehicle-journey__item { position: absolute; left: 50%; top: 50%; width: 18%; aspect-ratio: 1; opacity: 0; transform: translate(-50%, -50%); }
.vehicle-journey__item-orbit { position: absolute; inset: 0; transform-origin: center; }
.vehicle-journey__item-visual { position: absolute; inset: 0; transform-origin: center; pointer-events: none; }
/* The same inventory card frames each part on desktop and mobile. */
.vehicle-journey__item-card {
  position: absolute; z-index: 0; inset: -5% -10% -8%; visibility: hidden; opacity: 0;
  border: 1px solid #dce5f0; border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f9fbfe);
  box-shadow: 0 7px 18px -12px #193b6b4a;
}
.vehicle-journey__item-card > span {
  position: absolute; bottom: 6%; left: 4%; right: 4%;
  color: #173856; font-size: clamp(14px, 1.1vw, 20px); font-weight: 600; line-height: 1.2;
  letter-spacing: -.01em; text-align: center; white-space: nowrap;
}
.vehicle-journey__item-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .vehicle-journey__item-visual {
    transform: perspective(650px) translateY(var(--object-lift, 0px)) rotateX(var(--object-rx, 0deg)) rotateY(var(--object-ry, 0deg)) scale(var(--object-scale, 1));
    transition: transform 260ms cubic-bezier(.2, .7, .2, 1), filter 260ms ease;
  }
  /* Restrict hit testing to the object, not the transparent sprite margins. */
  .vehicle-journey__item-visual::after { content: ""; position: absolute; inset: 15%; z-index: 4; }
  .vehicle-journey__item.is-interactive .vehicle-journey__item-visual::after { pointer-events: auto; }
  .vehicle-journey__item.is-hovered .vehicle-journey__item-visual {
    --object-lift: -6px; --object-scale: 1.04;
    filter: drop-shadow(0 10px 8px #0a24442b);
  }
}
.vehicle-journey__item .vehicle-journey__part { --part-size: 70%; inset: calc((100% - var(--part-size)) / 2); width: var(--part-size); height: var(--part-size); z-index: 2; }
.vehicle-journey__item[data-part="gearbox"] .vehicle-journey__part,
.vehicle-journey__item[data-part="alternator"] .vehicle-journey__part { --part-size: 78%; }
.vehicle-journey__item[data-part="air-vent"] .vehicle-journey__part { --part-size: 82%; }
.vehicle-journey__item[data-part="wheel"] .vehicle-journey__part { --part-size: 86%; }
.vehicle-journey__box-open { z-index: 1; opacity: 0; }
.vehicle-journey__box-closed { z-index: 3; opacity: 0; }
.vehicle-journey__stock-panel {
  position: absolute; z-index: 0; inset: 3% 2.5% 76px; border-radius: 30px;
  background: radial-gradient(ellipse at 80% 90%, #ffe9db70, transparent 55%),
    linear-gradient(135deg, #f0f5fc, #e8eff8 70%, #edf2f9);
  box-shadow: inset 0 0 0 1px #dbe5f080; transform-origin: center;
  visibility: hidden; opacity: 0; pointer-events: none;
}
.vehicle-journey__chapter { position: absolute; z-index: 1; inset: 0; text-align: center; opacity: 0; pointer-events: none; }
.vehicle-journey__chapter-title { position: absolute; inset: 19% 3% auto; margin: 0; color: #071a35; font-size: clamp(70px, 8.8vw, 145px); font-weight: 750; letter-spacing: -.055em; line-height: 1.02; text-transform: uppercase; }
.vehicle-journey__chapter-title > span { display: block; white-space: nowrap; }
.vehicle-journey__chapter--stock .vehicle-journey__chapter-title { inset: 6% 3% auto; font-size: clamp(48px, min(9.2vw, 13svh), 140px); line-height: .96; letter-spacing: -.045em; }
.vehicle-journey__stock-accent { color: #f45118; font-size: .9em; }
.vehicle-journey__chapter--shipping .vehicle-journey__chapter-title {
  inset: 26% 3% auto; font-size: clamp(60px, min(8.2vw, 14svh), 144px);
  line-height: .98; letter-spacing: -.035em; word-spacing: .03em;
}
.vehicle-journey__shipping-accent {
  --shipping-color-position: 100%;
  color: #f45118; font-size: .84em;
  background: linear-gradient(110deg, #e84714 5%, #ff8a35 35%, #f45118 60%, #e84714 85%);
  background-size: 220% 100%; background-position: var(--shipping-color-position) 50%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.vehicle-journey__finale {
  position: absolute; z-index: 6; inset: 0 0 72px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: clamp(18px, 3svh, 28px); padding: 24px;
  visibility: hidden; opacity: 0; isolation: isolate;
}
.vehicle-journey__finale::before {
  content: ""; position: absolute; z-index: -1; inset: 4% 5% 0; border-radius: 28px;
  background: radial-gradient(ellipse at 50% 90%, #e8effb, transparent 65%), linear-gradient(125deg, #f7f9fc, #fff 55%, #f3f6fb);
}
.vehicle-journey__finale-copy { width: min(960px, 100%); text-align: center; }
.vehicle-journey__finale-eyebrow { margin: 0 0 12px; color: #697990; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.vehicle-journey__finale h2 { margin: 0; color: #071a35; font-size: clamp(40px, min(5vw, 7.4svh), 72px); font-weight: 600; line-height: 1.06; letter-spacing: -.055em; }
.vehicle-journey__finale h2 span { color: #f45118; }
.vehicle-journey__finale-summary { max-width: 780px; margin: 18px auto 0; color: #526279; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.65; text-wrap: pretty; }
.vehicle-journey__finale-summary > span { display: block; }
.vehicle-journey__system {
  flex: 0 0 auto; width: min(790px, 76vw); margin: 0; overflow: hidden; border: 1px solid #dce3ed;
  border-radius: 12px; background: #fff; box-shadow: 0 24px 60px -26px #183b6a45, 0 3px 10px #183b6a08;
  transform-origin: center 70%;
}
.vehicle-journey__system-bar { height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 13px; border-bottom: 1px solid #e5eaf1; background: #f7f8fa; }
.vehicle-journey__system-dots { display: flex; gap: 5px; }
.vehicle-journey__system-dots i { width: 7px; height: 7px; border-radius: 50%; background: #cbd3de; }
.vehicle-journey__system-tab { color: #173856; font-size: 10px; font-weight: 650; }
.vehicle-journey__system-tab > span { margin-left: 5px; color: #8090a4; font-weight: 400; }
.vehicle-journey__system-bar svg { width: 14px; height: 14px; fill: none; stroke: #95a2b4; stroke-width: 1.5; }
.vehicle-journey__system-viewport { height: min(34svh, 300px); overflow: hidden; contain: paint; background: #fff; }
.vehicle-journey__system-track { width: 100%; }
.vehicle-journey__system-strip { width: 100%; aspect-ratio: 1208 / 2385; }
.vehicle-journey__system-strip img { display: block; width: 100%; height: auto; pointer-events: none; user-select: none; }
.vehicle-journey__footer { position: absolute; z-index: 8; bottom: 26px; left: 5%; right: 5%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.vehicle-journey__stage::after { content: ""; position: absolute; z-index: 7; inset: auto 0 0; height: 100px; background: linear-gradient(transparent, #fff 85%); pointer-events: none; }
.vehicle-journey__scroll-cue { display: flex; align-items: center; gap: 12px; color: #526279; font-size: 11px; line-height: 1.5; }
.vehicle-journey__scroll-cue > span { width: 28px; height: 1px; background: #f45118; }
.vehicle-journey__skip { display: inline-flex; min-height: 46px; align-items: center; gap: 16px; color: #071a35; font-size: 12px; font-weight: 600; text-decoration: none; }
.vehicle-journey__skip svg { width: 20px; height: 20px; fill: none; stroke: #f45118; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms ease; }
.vehicle-journey__skip:hover svg { transform: translateY(3px); }
.vehicle-journey__skip:focus-visible { outline: 2px solid #f45118; outline-offset: 6px; }
.vehicle-journey__progress { position: absolute; bottom: 0; left: 5%; right: 5%; height: 1px; background: #edf0f4; }
.vehicle-journey__progress span { display: block; width: 100%; height: 100%; background: #f45118; transform: scaleX(0); transform-origin: left; }

/* A concise, complete static hero if JS or motion is unavailable. */
.vehicle-journey:not(.is-enhanced) .vehicle-journey__scene { top: 67%; width: min(600px, 90vw); height: 44%; aspect-ratio: auto; }
.vehicle-journey:not(.is-enhanced) .vehicle-journey__vehicle { width: auto; height: 100%; }
.vehicle-journey:not(.is-enhanced) .vehicle-journey__intro { right: auto; left: 50%; bottom: auto; top: 31%; width: min(600px, 86%); transform: translateX(-50%); text-align: center; font-size: 15px; }
.vehicle-journey:not(.is-enhanced) .vehicle-journey__opening h1 { font-size: clamp(42px, 7.5svh, 72px); }
.vehicle-journey:not(.is-enhanced) .vehicle-journey__scroll-cue { visibility: hidden; }
@media (max-width: 960px) {
  body[data-site-page="home"] .vehicle-journey { --journey-header: 72px; }
  .vehicle-journey .vehicle-journey__opening h1 { font-size: min(16vw, 21svh); }
}
@media (max-width: 700px) {
  .vehicle-journey.is-enhanced { height: var(--journey-height); }
  .vehicle-journey.is-enhanced .vehicle-journey__stage { position: relative; top: 0; }
  .vehicle-journey.is-mobile-automatic:not(.is-mobile-complete) { touch-action: pan-x pinch-zoom; }
  .vehicle-journey .vehicle-journey__opening h1 { top: 5%; width: 94%; font-size: min(16.4vw, 9svh); line-height: .94; letter-spacing: -.045em; }
  .vehicle-journey__intro { top: auto; bottom: 82px; right: auto; left: 50%; width: min(330px, 86%); transform: translateX(-50%); text-align: center; font-size: 13px; line-height: 1.6; }
  .vehicle-journey__scene { width: calc(100% - 24px); height: min(64svh, 560px); aspect-ratio: auto; top: 55%; }
  .vehicle-journey__vehicle { width: 43%; }
  .vehicle-journey__truck, .vehicle-journey__truck-front { width: 88%; }
  .vehicle-journey__item { width: 26%; }
  .vehicle-journey__item-card { border-radius: 13px; }
  .vehicle-journey__item-card > span { font-size: 9px; }
  .vehicle-journey__stock-panel { inset: 5% 8px 70px; border-radius: 20px; }
  .vehicle-journey__chapter-title { inset: 19% 3% auto; font-size: 15vw; }
  .vehicle-journey__chapter--stock .vehicle-journey__chapter-title { inset: 10.5% 4% auto; font-size: min(12.2vw, 7.5svh); line-height: 1.02; }
  .vehicle-journey__chapter--shipping .vehicle-journey__chapter-title { inset: 22% 3% auto; font-size: 12.2vw; }
  .vehicle-journey__finale { inset: 0 0 66px; gap: 22px; padding: 18px 20px; }
  .vehicle-journey__finale::before { inset: 2% 8px 0; border-radius: 18px; }
  .vehicle-journey__finale-eyebrow { margin-bottom: 10px; font-size: 9px; }
  .vehicle-journey__finale h2 { font-size: clamp(32px, 9.6vw, 46px); }
  .vehicle-journey__finale-summary { max-width: 430px; margin-top: 14px; font-size: 12px; line-height: 1.65; }
  .vehicle-journey__finale-summary > span { margin-top: 6px; }
  .vehicle-journey__system { width: 100%; border-radius: 9px; }
  .vehicle-journey__system-bar { height: 30px; padding: 0 10px; gap: 7px; }
  .vehicle-journey__system-tab { font-size: 8px; }
  .vehicle-journey__system-viewport { height: min(29svh, 245px); }
  .vehicle-journey__footer { bottom: 20px; left: 22px; right: 22px; gap: 12px; }
  .vehicle-journey__scroll-cue { font-size: 9px; gap: 7px; }
  .vehicle-journey__scroll-cue > span { width: 15px; }
  .vehicle-journey__skip { font-size: 10px; gap: 7px; }
  .vehicle-journey__progress { left: 22px; right: 22px; }
  .vehicle-journey:not(.is-enhanced) .vehicle-journey__intro { top: 31%; font-size: 13px; }
  .vehicle-journey:not(.is-enhanced) .vehicle-journey__opening h1 { font-size: min(12.8vw, 7.5svh); }
}
@media (max-height: 650px) and (min-width: 701px) {
  .vehicle-journey__intro { font-size: 13px; width: 220px; }
  .vehicle-journey__chapter-title { font-size: min(8.8vw, 20svh); }
  .vehicle-journey__chapter--shipping .vehicle-journey__chapter-title { font-size: min(8.2vw, 14svh); }
  .vehicle-journey__footer { bottom: 12px; }
  .vehicle-journey__finale { gap: 14px; padding: 12px; }
  .vehicle-journey__finale-eyebrow { display: none; }
  .vehicle-journey__finale h2 { font-size: min(4vw, 7svh); }
  .vehicle-journey__finale-summary { margin-top: 10px; font-size: 12px; }
  .vehicle-journey__system-viewport { height: 27svh; }
}
@media (prefers-reduced-motion: reduce) { .vehicle-journey__skip svg { transition: none; } }
