/* Vehicle graphics & wrapping page. Tokens come from site.css. */

.page-vehicle { --vg-hdr: 82px; }
@media (max-width: 1060px) { .page-vehicle { --vg-hdr: 78px; } }

/* ---------- The squeegee: a yellow blade with a dark felt edge, and a fresh-vinyl sheen trailing behind it ---------- */
.vg-sq { position: absolute; inset: 0; z-index: -1; pointer-events: none; visibility: hidden; }
.vg-sq::before { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: min(180px, 20%); background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.28)); }
.vg-sq::after { content: ''; position: absolute; top: -2%; bottom: -2%; right: -8px; width: 16px; border: 2px solid var(--ink); border-radius: var(--r); background: linear-gradient(90deg, var(--yellow) 0 64%, var(--ink) 64% 100%); box-shadow: 12px 0 22px rgba(0,0,0,.3); }

/* ---------- Hero ---------- */
.vg-hero .phero__img { transform-origin: 50% 0; }
.vg-hero .phero__img img { object-position: 60% 40%; transform-origin: 62% 45%; }
.vg-hero .phero__crumb span[aria-current] { color: var(--white); }
.vg-hero .hero__meta { margin-top: 24px; }

/* ---------- Coverage switcher ---------- */
.cov { isolation: isolate; --stage-h: min(62vh, 620px); }
.cov__grid { display: grid; gap: 28px; }
.cov__left { display: grid; gap: 16px; min-width: 0; }
.cov__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.cov__hint { margin: 0; font-weight: 600; color: var(--steel); }
.no-js .cov__hint { display: none; }
.cov__stage { position: relative; }
.cov__stage::before { content: ''; position: absolute; inset: 12px -12px -12px 12px; border: 2px solid var(--ink); border-radius: var(--r); }
.cov__clip { position: relative; aspect-ratio: 1920 / 1072; border-radius: var(--r); overflow: clip; background: var(--galv); }
.cov__layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .cov__layer:not([data-layer="0"]) { clip-path: inset(0 100% 0 0); }
/* site.css scales every direct img of a media reveal; only the bottom layer takes part in that reveal */
html.js:not(.motion-off) .cov__clip[data-reveal="media"] > .cov__layer:not([data-layer="0"]) { transform: none; }
.cov__sq { z-index: 3; }
.cov__cap { z-index: 4; background: var(--yellow); color: var(--ink); }

.cov__seg { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 8px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); box-shadow: 5px 5px 0 var(--ink); overflow: clip; }
.no-js .cov__seg { display: none; }
.cov__btn { min-height: 50px; padding: 10px 8px; border: 0; border-left: 2px solid var(--ink); background: transparent; font-weight: 700; font-size: clamp(.92rem, 1vw, 1.02rem); line-height: 1.2; cursor: pointer; transition: background-color .25s, color .25s; }
.cov__btn:first-of-type { border-left: 0; }
.cov__btn:hover { background: var(--galv); }
.cov__btn[aria-pressed="true"] { background: var(--yellow); }
.cov__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: -7px; box-shadow: none; }
.cov__track { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; border-top: 2px solid var(--ink); background: var(--line); }
.cov__fill { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(.25); }

.cov__panels { min-width: 0; }
.js .cov__panels { display: grid; }
.cov__panel { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink); overflow: clip; }
/* Inactive panels are hidden and inert straight away, so only the active panel's link is ever live */
.js .cov__panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .45s var(--ease); }
.js .cov__panel:not(.is-active), .js .cov__panel:not(.is-active) * { visibility: hidden; pointer-events: none; }
.js .cov__panel.is-active { visibility: visible; opacity: 1; transform: none; transition: opacity .35s .08s, transform .5s .08s var(--ease), visibility 0s; }
.cov__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; background: var(--green-deep); color: var(--white); border-bottom: 4px solid var(--yellow); }
.cov__bar h3 { font-size: clamp(1.3rem, 1.7vw, 1.75rem); }
.cov__num { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.cov__thumb { display: none; }
.no-js .cov__thumb { display: block; width: calc(100% - 40px); margin: 16px 20px 0; border-radius: var(--r); }
.cov__rows { margin: 0; padding: 4px 20px 0; }
.cov__rows > div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.cov__rows dt { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--green-deep); }
.cov__rows dt::before { content: ''; width: 9px; height: 9px; background: var(--yellow); outline: 2px solid var(--ink); transform: skewX(-14deg); }
.cov__rows dd { margin: 3px 0 0; line-height: 1.5; }
.cov__link { display: inline-block; margin: 14px 20px 18px; color: var(--green-deep); }

@media (min-width: 901px) {
  .cov__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; column-gap: clamp(32px, 3.6vw, 60px); }
  .cov__left { width: min(100%, calc(var(--stage-h) * 1.79)); justify-self: end; }
  .no-js .cov__grid { grid-template-columns: 1fr; }
  .no-js .cov__left { width: 100%; }
  .no-js .cov__panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .no-js .cov__panels { display: grid; gap: 20px; }
  .cov__seg { grid-template-columns: 1fr 1fr; }
  .cov__btn:nth-of-type(3) { border-left: 0; }
  .cov__btn:nth-of-type(n+3) { border-top: 2px solid var(--ink); }
}
@media (max-height: 780px) and (min-width: 901px) {
  .cov__rows > div { padding: 7px 0; }
  .cov__rows dd { font-size: .95rem; line-height: 1.45; }
  .cov__bar { padding-block: 10px; }
  .cov__link { margin-block: 10px 14px; }
}
/* Pinned scene: exactly one screen tall, clear of the sticky header */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) and (min-height: 640px) {
  html.js:not(.motion-off) .cov { --stage-h: calc(100vh - var(--vg-hdr) - 5vh - 180px); height: 100vh; padding-block: calc(var(--vg-hdr) + 2.5vh) 2.5vh; display: flex; align-items: center; }
  html.js:not(.motion-off) .cov > .wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); }
}

/* ---------- What we can wrap: cards grow with the vehicle ---------- */
/* Fits 1440x900 in one screen: tight padding, rows from the viewport height */
.vg-kinds .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.vg-kinds__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(210px, 27vh, 290px); gap: 16px; }
.vg-kind { position: relative; overflow: hidden; border-radius: var(--r); border: 2px solid var(--ink); background: var(--green-deep); color: var(--white); isolation: isolate; }
.vg-kind:nth-child(1) { grid-column: span 3; }
.vg-kind:nth-child(2) { grid-column: span 4; }
.vg-kind:nth-child(3) { grid-column: span 5; }
.vg-kind:nth-child(4) { grid-column: span 7; }
.vg-kind:nth-child(5) { grid-column: span 5; }
.vg-kind__img { position: absolute; inset: 0; z-index: -2; overflow: hidden; transition: transform .8s var(--ease); }
.vg-kind__img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; }
.vg-kind:nth-child(5) .vg-kind__img img { object-position: 20% 50%; }
.vg-kind::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,30,17,.94) 0%, rgba(8,30,17,.55) 40%, rgba(8,30,17,0) 72%); }
.vg-kind::after { content: ''; position: absolute; top: 0; right: 0; width: 48px; height: 48px; background: linear-gradient(225deg, var(--green-mat) 0 50%, var(--yellow) 50% 100%); transform: scale(0); transform-origin: top right; transition: transform .35s var(--ease); }
.vg-kind:hover .vg-kind__img { transform: scale(1.05); }
.vg-kind:hover::after { transform: scale(1); }
.vg-kind__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; }
.vg-kind__tag { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: var(--r); background: var(--yellow); color: var(--ink); font-weight: 700; font-size: .875rem; }
.vg-kind__tag--ill { background: var(--white); }
.vg-kind__title { font-size: clamp(1.3rem, 1.8vw, 1.8rem); }
.vg-kind p { margin: 4px 0 0; font-size: .97rem; line-height: 1.45; color: rgba(255,255,255,.92); }
@media (max-width: 1000px) {
  .vg-kinds__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(230px, 34vw, 300px); }
  .vg-kind:nth-child(n) { grid-column: auto; }
  .vg-kind:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .vg-kinds__grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .vg-kind:nth-child(4) { grid-column: auto; }
}

/* ---------- How a vehicle job is done ---------- */
.vg-proc { isolation: isolate; }
.vg-proc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.vg-proc__media { position: relative; padding-bottom: clamp(80px, 9vw, 130px); }
.vg-proc__main { margin: 0 14px 0 0; aspect-ratio: 870 / 446; }
.vg-proc__clip { width: 100%; height: 100%; border-radius: var(--r); overflow: hidden; }
.vg-proc__main .caption { z-index: 2; }
.vg-proof { position: absolute; right: 0; bottom: 0; width: 48%; z-index: 3; }
.vg-proof__sheet { margin: 0; padding: 10px 10px 12px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink); transform: rotate(-4deg); }
.vg-proof__sheet img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.vg-proof__sheet figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-weight: 700; font-size: .9rem; }
.vg-proof__sheet b { padding: 3px 9px; border: 2px solid var(--green-deep); border-radius: var(--r); color: var(--green-deep); font-size: .875rem; transform: rotate(-5deg); white-space: nowrap; }
.vg-steps { position: relative; margin-top: 24px; }
.vg-steps ol { margin: 0; padding: 0; list-style: none; }
.vg-steps__line { position: absolute; left: 22px; top: 24px; bottom: 34px; width: 3px; background: repeating-linear-gradient(180deg, var(--steel) 0 7px, transparent 7px 13px); }
.vg-steps__line span { position: absolute; inset: 0; background: var(--green); transform-origin: top; }
.vg-step { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 20px; padding-bottom: 18px; }
.vg-step:last-child { padding-bottom: 0; }
.vg-step__n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); font-family: var(--f-display); font-style: italic; font-weight: 850; font-stretch: 80%; font-size: 1.45rem; line-height: 1; transition: background-color .35s, box-shadow .35s var(--ease), transform .35s var(--ease); }
.vg-step.is-lit .vg-step__n { background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.vg-step h3 { font-size: clamp(1.2rem, 1.5vw, 1.45rem); padding-top: 9px; }
.vg-step p { margin: 4px 0 0; color: var(--steel); }
.no-js .vg-step__n, .motion-off .vg-step__n { background: var(--yellow); }
@media (max-width: 900px) {
  .vg-proc__grid { grid-template-columns: 1fr; }
  .vg-proof { width: 56%; }
}

/* ---------- Hidden start states (JS and motion only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.motion-off) .vg-hero .phero__img { clip-path: inset(0 100% 0 0); animation: vg-failsafe 0s 6s forwards; }
}
@keyframes vg-failsafe { to { clip-path: inset(0 0 0 0); } }

/* ---------- Mobile floors: no text under 14px, text links at least 44px wide and 24px tall ---------- */
.vg-strip .strip__item figcaption small { font-size: .875rem; }
.vg-hero .phero__crumb { align-items: center; margin-bottom: 8px; }
.vg-hero .phero__crumb a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.page-vehicle .cta-band__card a { display: inline-block; padding-block: 10px; min-width: 44px; }
.cov__link { padding-block: 12px; min-width: 44px; min-height: 44px; }
