@charset "UTF-8";
/* ==========================================================================
   Cars & Trucks Victoria
   Red / white / black. Hard corners, black keylines, zero-blur red offset
   shadows, no gradients. The only round thing on the site is Ken's face.

   The red is sampled from the tie in Ken's own headshot (mean #AA3D37),
   lifted to #C52820 for UI strength. Contrast checked in both directions:
     #C52820 on #FFF    5.68:1     white on #C52820   5.68:1
     #C52820 on --paper 5.37:1     #E84330 on --ink   4.77:1
   #C52820 only reaches 3.3:1 on black, which is why --ember exists.
   ========================================================================== */

:root {
  /* --- colour ------------------------------------------------------- */
  --tie:        #C52820;   /* THE red. Prices, CTAs, active states, rules.   */
  --tie-deep:   #8E1B15;   /* pressed state on red fills. Never text.        */
  --ember:      #E84330;   /* the only red allowed ON black.                 */
  --ink:        #141110;   /* warm near-black: text, every keyline.          */
  --ink-soft:   #4A423E;   /* warm grey-brown: labels, meta, trim lines.     */
  --ink-faint:  #7A716B;   /* smallest micro-labels only.                    */
  --paper:      #FBF8F5;   /* page ground, a warm white.                     */
  --white:      #FFFFFF;   /* cards, form, text on ink and on tie.           */
  --shot:       #E9E7E4;   /* photo well, tuned to the studio backdrop.      */
  --hair:       #E3DDD6;   /* warm hairline. Never structural.               */
  --hair-dark:  #2E2A28;   /* hairline on black.                             */

  /* --- type --------------------------------------------------------- */
  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- metrics ------------------------------------------------------ */
  --wrap: 1240px;
  --gut:  clamp(20px, 5vw, 56px);
  --sect: clamp(64px, 9vw, 124px);
  --radius: 0;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Any class that sets `display` beats the `hidden` attribute's UA style on
   specificity, which silently un-hides things like the lightbox. Restate it
   once, with force, so `el.hidden` stays a reliable switch everywhere. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
p, ul, ol, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Numbers that sit in columns must line up. */
.price, .spec-val, .stat-val, .vin, .stock, .count, td, .tnum { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 3px solid var(--tie);
  outline-offset: 2px;
}
.on-ink :focus-visible, .ink-band :focus-visible { outline-color: var(--ember); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--tie); color: var(--white);
  padding: 14px 20px; font-family: var(--display); font-weight: 700;
}
.skip:focus { left: 0; }

.vh {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sect); }
.ink-band { background: var(--ink); color: var(--paper); }

/* The 4px red rule pinned across the very top of every document. */
.top-rule { height: 4px; background: var(--tie); }

.eyebrow {
  font-family: var(--display);
  font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--tie);
  margin-bottom: 18px;
}
.ink-band .eyebrow { color: var(--ember); }

.sect-title { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
.sect-lead {
  margin-top: 20px; max-width: 62ch;
  font-size: 1.1875rem; line-height: 1.6; color: var(--ink-soft);
}
.ink-band .sect-lead { color: rgba(251, 248, 245, .74); }

.label {
  font-family: var(--display);
  font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .11em;
  color: var(--ink-faint);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 26px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: .01em; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease, transform .14s ease, box-shadow .14s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; fill: currentColor; }

.btn-red { background: var(--tie); color: var(--white); border-color: var(--tie); }
.btn-red:hover, .btn-red:focus-visible { background: var(--tie-deep); border-color: var(--tie-deep); transform: translateY(-2px); }

.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover, .btn-ink:focus-visible { background: var(--tie); border-color: var(--tie); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--white); transform: translateY(-2px); }

/* Ghost buttons on any dark ground. The hero is dark but is not .ink-band,
   so it must be listed here too or the button renders black-on-black. */
.ink-band .btn-ghost,
.hero .btn-ghost,
.rail-card .btn-ghost { color: var(--paper); border-color: rgba(251, 248, 245, .55); }
.ink-band .btn-ghost:hover, .ink-band .btn-ghost:focus-visible,
.hero .btn-ghost:hover, .hero .btn-ghost:focus-visible,
.rail-card .btn-ghost:hover, .rail-card .btn-ghost:focus-visible {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--hair-dark);
}
.site-header[data-scrolled] { box-shadow: 0 1px 0 var(--tie); }

.hdr {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 9px;
  font-family: var(--display); font-weight: 800;
  font-size: 1.0625rem; letter-spacing: -.01em;
  text-transform: uppercase; text-decoration: none; color: var(--paper);
  margin-right: auto;
}
.brand .amp { color: var(--ember); }
.brand .loc {
  font-size: .625rem; letter-spacing: .16em; font-weight: 700;
  color: rgba(251, 248, 245, .5);
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: .875rem;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: rgba(251, 248, 245, .82);
  padding-block: 6px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: var(--white); border-bottom-color: var(--ember); }

.hdr-call {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--tie); color: var(--white);
  padding: 11px 18px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: .9375rem;
}
.hdr-call:hover, .hdr-call:focus-visible { background: var(--tie-deep); }
.hdr-call svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid rgba(251, 248, 245, .35);
  color: var(--paper); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; margin-inline: auto;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 4px solid var(--tie);
    padding: 8px var(--gut) 24px;
    display: none;
  }
  .nav[data-open] { display: flex; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--hair-dark); font-size: 1rem; }
  .hdr-call .full { display: none; }
}

/* Narrow phones: keep the masthead on one line. */
@media (max-width: 480px) {
  .hdr { gap: 12px; }
  .brand { font-size: .9375rem; white-space: nowrap; }
  .brand .loc { display: none; }
  .nav-toggle { width: 42px; height: 42px; }
  .hdr-call { padding: 10px 13px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { background: var(--ink); color: var(--paper); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: rgba(251, 248, 245, .72);
  margin-bottom: 26px;
}
.hero-eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--tie); }

.hero h1 { font-size: 0; margin: 0; }
.hero .l1, .hero .l2 { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
.hero .l1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1; color: rgba(251, 248, 245, .9); }
.hero .l2 {
  font-size: clamp(4.2rem, 12vw, 9rem); line-height: .86;
  color: var(--white); margin-top: 4px;
}
/* The red slab under KEN runs off the left edge of the container. */
.hero-slab {
  position: relative; height: 11px; background: var(--tie);
  margin: 18px 0 30px;
  width: min(340px, 78%);
}
.hero-slab::before {
  content: ''; position: absolute; right: 100%; top: 0;
  width: 100vw; height: 100%; background: var(--tie);
}

.hero-sub { font-size: clamp(1.0625rem, 1.7vw, 1.375rem); color: rgba(251, 248, 245, .86); max-width: 46ch; }

.hero-bio {
  margin-top: 24px; padding-left: 20px;
  border-left: 2px solid var(--tie);
  font-style: italic; font-weight: 500;
  font-size: 1.0625rem; line-height: 1.6;
  color: rgba(251, 248, 245, .7);
  max-width: 48ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  margin-top: 30px; padding: 0; list-style: none;
  font-family: var(--display); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(251, 248, 245, .62);
}
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust li::before { content: ''; width: 6px; height: 6px; background: var(--tie); flex: none; }

/* Ken's portrait. Source is only 356px square, so it is never asked to be
   larger than 300 - the one circle on the site. */
.hero-portrait { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.portrait {
  position: relative;
  width: min(300px, 76vw); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 12px 12px 0 var(--tie);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

.award {
  position: relative;
  background: var(--white); color: var(--ink);
  border-top: 4px solid var(--tie);
  padding: 14px 20px; max-width: 270px; text-align: center;
  transform: rotate(-3deg);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
}
.award .yr {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.5rem; line-height: 1; color: var(--tie);
}
.award .tx {
  display: block; margin-top: 5px;
  font-family: var(--display); font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; line-height: 1.4;
  color: var(--ink-soft);
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-portrait { order: -1; align-items: flex-start; flex-direction: row; gap: 20px; flex-wrap: wrap; }
  .portrait { width: min(190px, 44vw); box-shadow: 8px 8px 0 var(--tie); }
  .award { transform: rotate(-2deg); max-width: 220px; text-align: left; }
}

/* ==========================================================================
   Stat ribbon
   ========================================================================== */

.ribbon { background: var(--ink); border-top: 1px solid var(--hair-dark); }
.ribbon-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hair-dark);
}
.ribbon-cell { background: var(--ink); padding: 26px 22px; }
.ribbon-cell .stat-val {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1; color: var(--white);
}
.ribbon-cell .stat-lab {
  display: block; margin-top: 8px;
  font-family: var(--display); font-size: .6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(251, 248, 245, .55);
}
@media (max-width: 720px) { .ribbon-grid { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(36px, 5vw, 76px); align-items: start;
}
.about-body p + p { margin-top: 20px; }
.about-body p { color: var(--ink-soft); }
.about-body .lead { font-size: 1.1875rem; color: var(--ink); font-weight: 500; }

.creds { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.creds li { padding: 18px 0 18px 26px; border-bottom: 1px solid var(--hair); position: relative; }
.creds li::before {
  content: ''; position: absolute; left: 0; top: 26px;
  width: 12px; height: 3px; background: var(--tie);
}
.creds .c-t { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; }
.creds .c-x { display: block; margin-top: 3px; font-size: .9375rem; color: var(--ink-soft); line-height: 1.5; }

.offers-band { margin-top: clamp(44px, 6vw, 72px); background: var(--ink); color: var(--paper); padding: clamp(32px, 4.5vw, 52px); }
.offers-band h3 { font-size: 1.5rem; color: var(--white); }
.offers {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 14px 32px;
}
.offers li {
  display: flex; align-items: flex-start; gap: 13px;
  font-size: 1rem; color: rgba(251, 248, 245, .88); line-height: 1.5;
}
.offers li svg { width: 17px; height: 17px; flex: none; margin-top: 5px; fill: var(--ember); }

@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Inventory
   ========================================================================== */

.inv-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px;
  padding-bottom: 26px;
}

.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 20px 0; border-block: 2px solid var(--ink);
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-group > .label { margin-right: 4px; }

.chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 9px 15px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--display); font-size: .8125rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, color .12s ease;
}
.chip .n { font-size: .6875rem; color: var(--ink-faint); font-weight: 700; }
.chip:hover { background: var(--ink); color: var(--white); }
.chip:hover .n { color: rgba(255, 255, 255, .6); }
.chip[aria-pressed="true"] { background: var(--tie); border-color: var(--tie); color: var(--white); font-weight: 700; }
.chip[aria-pressed="true"] .n { color: #FFFFFF; }

.controls-right {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-left: auto; min-width: 0; flex: 1 1 auto;
}
.field {
  padding: 10px 13px; background: var(--white);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: .9375rem; min-height: 42px;
}
.field:focus { outline: 3px solid var(--tie); outline-offset: 1px; }
input.field { min-width: 0; flex: 1 1 190px; }
.controls-right select.field { flex: 0 1 auto; min-width: 0; max-width: 100%; }

.inv-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 16px 0 24px;
}
.inv-count { font-family: var(--display); font-weight: 700; font-size: .9375rem; }
.link-reset {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--display); font-size: .8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--tie); border-bottom: 2px solid var(--tie);
}

/* The mortar grid: 1px gaps over ink so the cards read as one ruled table.
   The home page shows a page of 6 in three columns; mobile stacks 3. */
.van-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
@media (min-width: 620px) {
  .van-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .van-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.van {
  display: flex; flex-direction: column;
  background: var(--white);
  position: relative;
  transition: box-shadow .12s ease;
}
.van:hover { box-shadow: 0 0 0 3px var(--tie); z-index: 2; }

.van-shot {
  position: relative;
  aspect-ratio: 3 / 2;          /* top-anchored 3:2 on a 4:3 source removes  */
  background: var(--shot);      /* the dealer watermark band exactly.        */
  overflow: hidden;
}
.van-shot img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0%;
}

/* Only the 8 non-new vans get a tag. A badge on all 39 is not information. */
.tag {
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: 7px 13px;
  font-family: var(--display); font-size: .6875rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--tie); color: var(--white);
}
.tag-used { background: var(--ink); }

.van-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 0; }

.van-title {
  font-family: var(--display); font-weight: 700;
  font-size: 1.125rem; line-height: 1.2; letter-spacing: -.015em;
}
.van-title a { text-decoration: none; }
.van-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.van-trim { margin-top: 5px; font-size: .875rem; color: var(--ink-soft); line-height: 1.4; }

/* The differentiators. 22 of 39 vans share a year, model, trim and price, so
   these four cells are what actually tells them apart. */
.van-specs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--hair);
  margin-top: 16px; border-top: 1px solid var(--hair);
}
/* Four labels like WHEELBASE / ODOMETER cannot share 238px. Go 2x2. */
@media (max-width: 380px) {
  .van-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.van-specs div { background: var(--white); padding: 10px 4px 2px; }
.van-specs .k {
  display: block; font-family: var(--display); font-size: .625rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint);
}
.van-specs .v {
  display: block; margin-top: 3px;
  font-family: var(--display); font-size: .875rem; font-weight: 700; line-height: 1.2;
}

.van-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin-top: auto; padding: 18px 20px 20px;
}
.price {
  font-family: var(--display); font-weight: 800;
  font-size: 1.5rem; line-height: 1;
  display: inline-block;
  border-bottom: 3px solid var(--tie);   /* rule sizes itself to the price */
  padding-bottom: 6px;
}
.price-sub { display: block; margin-top: 7px; font-size: .6875rem; color: var(--ink-faint); letter-spacing: .04em; }
.van-stock { text-align: right; font-family: var(--display); font-size: .6875rem; font-weight: 700; letter-spacing: .07em; color: var(--ink-faint); text-transform: uppercase; }

/* --- pagination ------------------------------------------------------- */

.pager-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 28px;
}
.pager-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 16px; min-height: 44px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-family: var(--display); font-size: .8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  cursor: pointer;
}
.pager-btn svg { width: 15px; height: 15px; fill: currentColor; }
.pager-btn:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.pager-btn:disabled { opacity: .35; cursor: default; }

.pager-nums {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0 6px;
}
.pager-num {
  min-width: 44px; min-height: 44px; padding: 0 10px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font-family: var(--display); font-size: .875rem; font-weight: 700;
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.pager-num:hover { background: var(--ink); color: var(--white); }
.pager-gap {
  display: grid; place-items: center; min-width: 22px; min-height: 44px;
  font-family: var(--display); font-weight: 700; color: var(--ink-faint);
}
.pager-num[aria-current="page"] {
  background: var(--tie); border-color: var(--tie); color: var(--white);
}
@media (max-width: 560px) {
  .pager-btn span { display: none; }
  .pager-btn { padding: 11px 13px; }
}

.inv-empty {
  padding: 60px 24px; text-align: center;
  border: 2px dashed var(--hair); margin-top: 1px;
  color: var(--ink-soft);
}
.inv-note { margin-top: 26px; font-size: .875rem; color: var(--ink-faint); max-width: 76ch; }

/* ==========================================================================
   Vehicle detail
   ========================================================================== */

.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 18px 0; border-bottom: 1px solid var(--hair);
  font-family: var(--display); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint);
}
.crumb a { text-decoration: none; color: var(--ink-soft); }
.crumb a:hover { color: var(--tie); }
.crumb .pager { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.crumb .pager a { color: var(--ink); }
.crumb .pager span { color: var(--ink-faint); }

.vdp-head { padding: clamp(28px, 4vw, 46px) 0 clamp(24px, 3vw, 34px); }
.vdp-head h1 { font-size: clamp(1.85rem, 4vw, 3rem); }
.vdp-sub { margin-top: 10px; font-size: 1.125rem; color: var(--ink-soft); }

.vdp-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 372px);
  gap: clamp(28px, 3.5vw, 56px); align-items: start;
  padding-bottom: var(--sect);
}

.gallery { border: 1px solid var(--ink); background: var(--ink); }
.stage-wrap { position: relative; background: var(--shot); aspect-ratio: 3 / 2; overflow: hidden; }
.stage-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.stage-btn {
  display: block; width: 100%; height: 100%; padding: 0;
  background: none; border: 0; cursor: zoom-in;
}
.stage-btn:focus-visible { outline: 3px solid var(--tie); outline-offset: -3px; }

.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 62px; display: grid; place-items: center;
  background: rgba(20, 17, 16, .78); color: var(--white);
  border: 0; cursor: pointer; z-index: 2;
}
.g-nav:hover { background: var(--tie); }
.g-nav svg { width: 18px; height: 18px; fill: currentColor; }
.g-prev { left: 0; } .g-next { right: 0; }

.g-pos {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  background: var(--ink); color: var(--white);
  padding: 7px 13px;
  font-family: var(--display); font-size: .75rem; font-weight: 700; letter-spacing: .07em;
}

.filmstrip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 96px;
  gap: 1px; overflow-x: auto; background: var(--hair-dark);
  border-top: 1px solid var(--hair-dark); scrollbar-width: thin;
}
.filmstrip a { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--shot); }
.filmstrip img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.filmstrip a[aria-current="true"] { outline: 3px solid var(--ember); outline-offset: -3px; }
/* overflow-x:auto clips the outline, so draw the focus ring inside the box. */
.filmstrip a:focus-visible { outline: none; box-shadow: inset 0 0 0 4px var(--tie); }

/* Sticky buy rail */
.rail { position: sticky; top: 92px; }
.rail-card { background: var(--ink); color: var(--paper); border-top: 5px solid var(--tie); padding: 26px; }
.rail-price {
  font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1; color: var(--white);
  display: inline-block; border-bottom: 4px solid var(--ember); padding-bottom: 8px;
}
.rail-price-sub { margin-top: 10px; font-size: .8125rem; color: rgba(251, 248, 245, .6); }
.rail-actions { display: grid; gap: 10px; margin-top: 24px; }
.rail-actions .btn { justify-content: center; width: 100%; }
.rail-ken {
  display: flex; align-items: center; gap: 14px;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--hair-dark);
}
.rail-ken img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--white); flex: none; }
.rail-ken .n { display: block; font-family: var(--display); font-weight: 700; font-size: .9375rem; color: var(--white); }
.rail-ken .r { display: block; font-size: .8125rem; color: rgba(251, 248, 245, .72); line-height: 1.4; }

.rail-assure { list-style: none; padding: 0; margin: 0; background: var(--white); border: 1px solid var(--ink); border-top: 0; }
.rail-assure li {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 22px; border-bottom: 1px solid var(--hair);
  font-family: var(--display); font-size: .8125rem; font-weight: 600;
}
.rail-assure li:last-child { border-bottom: 0; }
.rail-assure svg { width: 15px; height: 15px; fill: var(--tie); flex: none; }

/* Spec ledger */
.block { margin-top: clamp(32px, 4vw, 52px); }
.block > h2 { font-size: 1.5rem; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }

.ledger { width: 100%; border-collapse: collapse; margin-top: 2px; }
.ledger tr { border-bottom: 1px solid var(--hair); }
.ledger tr:nth-child(odd) { background: rgba(20, 17, 16, .028); }
.ledger { table-layout: fixed; }
.ledger th, .ledger td {
  text-align: left; padding: 12px 14px; font-size: .9375rem;
  overflow-wrap: anywhere;   /* a 17-character VIN must not widen the table */
}
.ledger th {
  width: 42%; font-family: var(--display); font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .09em;
  color: #6A615B;   /* --ink-faint fails 4.5:1 on the zebra rows */
}
.ledger td { font-family: var(--display); font-weight: 600; }

.equip { list-style: none; padding: 0; margin-top: 20px; columns: 2; column-gap: 36px; }
.equip li {
  break-inside: avoid; padding: 7px 0 7px 20px; position: relative;
  font-size: .9375rem; color: var(--ink-soft); line-height: 1.45;
}
.equip li::before { content: ''; position: absolute; left: 0; top: 15px; width: 9px; height: 2px; background: var(--tie); }
@media (max-width: 640px) { .equip { columns: 1; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px; background: var(--hair); margin-top: 20px; border: 1px solid var(--hair); }
.feature-grid .f { background: var(--white); padding: 20px; }
.feature-grid .f h3 { font-size: 1rem; font-weight: 700; }
.feature-grid .f p { margin-top: 7px; font-size: .875rem; color: var(--ink-soft); line-height: 1.5; }

.notes { margin-top: 20px; font-size: 1rem; color: var(--ink-soft); line-height: 1.7; max-width: 74ch; }

@media (max-width: 980px) {
  /* minmax(0, 1fr), NOT 1fr. A bare `1fr` is minmax(auto, 1fr), so the track
     floor becomes the item's min-content width - and this column contains the
     filmstrip, whose `grid-auto-columns: 96px` gives it a min-content width of
     photos x 96px (up to ~2350px). That blew the whole detail page out to
     ~1700px on every viewport under 980px, and because body has
     overflow-x: hidden the overflowing half was unreachable rather than
     merely offscreen. */
  .vdp-grid { grid-template-columns: minmax(0, 1fr); }
  .vdp-grid > * { min-width: 0; }
  .rail { position: static; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(10, 8, 8, .95);
  display: grid; place-items: center; padding: 4vw;
}
.lightbox img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .1); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .3); width: 52px; height: 52px;
  display: grid; place-items: center; cursor: pointer;
}
.lb-btn:hover { background: var(--tie); border-color: var(--tie); }
.lb-btn svg { width: 20px; height: 20px; fill: currentColor; }
.lb-close { top: 3vw; right: 3vw; }
.lb-prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lb-next { right: 2vw; top: 50%; transform: translateY(-50%); }
html[data-lightbox-open], html[data-nav-open] { overflow: hidden; }

/* ==========================================================================
   Contact
   ========================================================================== */

.cta-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.contact-rows { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-rows li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--hair-dark);
}
.contact-rows .ic { width: 40px; height: 40px; display: grid; place-items: center; background: var(--tie); flex: none; }
.contact-rows .ic svg { width: 18px; height: 18px; fill: var(--white); }
.contact-rows .k { display: block; font-family: var(--display); font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(251, 248, 245, .55); }
.contact-rows .k, .contact-rows .v { min-width: 0; overflow-wrap: anywhere; }
.contact-rows .v { display: block; margin-top: 3px; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; color: var(--white); }
.contact-rows li > span:last-child { min-width: 0; flex: 1 1 auto; }
.contact-rows .v a { text-decoration: none; border-bottom: 2px solid var(--ember); }
.contact-rows .v a:hover { color: var(--ember); }

.form-card { background: var(--white); color: var(--ink); border-top: 5px solid var(--tie); padding: clamp(24px, 3vw, 36px); }
.form-card h3 { font-size: 1.375rem; }
.form-intro { margin-top: 12px; font-size: .9375rem; color: var(--ink-soft); line-height: 1.55; }
.form-grid { display: grid; gap: 16px; margin-top: 24px; }
.f-row { display: grid; gap: 6px; }
.f-row label { font-family: var(--display); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-soft); }
.f-row .req { color: var(--tie); }
.f-row input, .f-row textarea {
  width: 100%; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: 16px;  /* 16px minimum stops iOS zooming on focus */
}
.f-row textarea { min-height: 128px; resize: vertical; }
.f-row input:focus, .f-row textarea:focus { outline: 3px solid var(--tie); outline-offset: 1px; }
.f-err { font-size: .8125rem; font-weight: 600; color: var(--tie); }
.f-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 520px) { .f-two { grid-template-columns: minmax(0, 1fr); } }
.hp {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.alert { padding: 16px 18px; border-left: 5px solid var(--tie); background: rgba(197, 40, 32, .07); font-size: .9375rem; }
.alert-ok { border-left-color: var(--ink); background: rgba(20, 17, 16, .05); font-weight: 500; }

@media (max-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: rgba(251, 248, 245, .66); border-top: 1px solid var(--hair-dark); padding-block: clamp(40px, 5vw, 64px) 32px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 36px; }
.foot-grid .foot-h { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--white); font-weight: 700; }
.foot-grid ul { list-style: none; padding: 0; margin-top: 14px; }
.foot-grid li { padding: 5px 0; font-size: .9375rem; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--ember); }
.foot-bar {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--hair-dark);
  font-size: .8125rem; color: rgba(251, 248, 245, .5);
}
.foot-note { margin-top: 14px; font-size: .75rem; line-height: 1.6; color: rgba(251, 248, 245, .6); max-width: 92ch; }

/* Mobile persistent call bar - appears once the hero scrolls away. */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: flex; align-items: center; gap: 12px;
    background: var(--tie); color: var(--white);
    padding: 10px 16px; text-decoration: none;
    box-shadow: 0 -2px 0 rgba(0, 0, 0, .25);
  }
  .call-bar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--white); flex: none; }
  .call-bar .t { font-family: var(--display); font-size: .625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
  .call-bar .n { font-family: var(--display); font-size: 1.0625rem; font-weight: 800; line-height: 1.1; }
  /* The bar's height is rem-driven, so a hard 64px reservation stops
     covering it as soon as the user enlarges text. Reserve from the same
     units the bar is built from, plus the safe-area inset. */
  body { padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   Reveal
   ========================================================================== */

/* The hidden-first state is gated on .js-reveal, which site.js only adds once
   it is actually running. No JS, or a JS error, means the content is simply
   visible - never invisible. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
  .js-reveal [data-reveal][data-revealed] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .call-bar, .controls, .site-footer, .g-nav, .filmstrip { display: none !important; }
  body { background: #fff; color: #000; }
}
