/* ============================================================
   MARKET MOTORS — main stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

.container { width: min(1200px, 92vw); margin-inline: auto; }

/* --- micro-label: the house constant --- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-display);
  font-size: .69rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); flex: none; }

/* --- redline divider: the signature rule --- */
.redline {
  height: 2px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--red) 18%, var(--red-bright) 50%, var(--red) 82%, transparent);
  opacity: .55;
}

/* ============================================================
   LOADER — "the needle sweeps to redline, and the M ignites"
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  transition: opacity .8s var(--ease);
}
#loader.hidden { opacity: 0; pointer-events: none; }
#loader .tach { width: 150px; height: 96px; overflow: visible; }
#loader .tach .dial { stroke: var(--line-2); }
#loader .tach .tick { stroke: var(--faint); }
#loader .tach .tick-red { stroke: var(--red); }
#loader .tach .needle {
  stroke: var(--red-bright); stroke-width: 3; stroke-linecap: round;
  transform-origin: 75px 88px;
  animation: needle-sweep 1.6s var(--ease) forwards;
}
#loader .tach .hub { fill: var(--bone); }
@keyframes needle-sweep {
  0%   { transform: rotate(-98deg); }
  55%  { transform: rotate(86deg); }
  72%  { transform: rotate(70deg); }
  100% { transform: rotate(84deg); }
}
#loader .wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .18em; text-transform: uppercase;
}
#loader .wordmark span { color: var(--red); }
#loader .loader-tag {
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
#loader .loader-bar { width: 180px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
#loader .loader-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-bright));
  animation: loader-fill 1.6s var(--ease) forwards;
}
@keyframes loader-fill { to { width: 100%; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 11, 11, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: .7rem; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo .logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: .98rem;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.1;
}
.logo .logo-text small {
  display: block; font-size: .56rem; font-weight: 600;
  letter-spacing: .42em; color: var(--red-bright);
}
.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding: .4rem 0; position: relative;
  transition: color var(--t-fast) var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--bone); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: .8rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: .55rem .7rem; color: var(--bone);
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }

@media (max-width: 920px) {
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--coal); border-bottom: 1px solid var(--line);
    padding: .5rem 4vw 1.2rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  }
  .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-cta .btn-ghost { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .95rem 1.7rem; border-radius: var(--radius-sm); border: 0;
  transition: transform 160ms var(--ease), background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-bright); box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--line-red); color: var(--red-bright); }
.btn-wa { background: var(--wa); color: #06250f; }
.btn-wa:hover { background: #3fe27e; }
.btn-sm { padding: .6rem 1.1rem; font-size: .72rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13,11,11,.96) 0%, rgba(13,11,11,.82) 34%, rgba(13,11,11,.28) 70%, rgba(13,11,11,.55) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 28%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero .lede strong { color: var(--bone); font-weight: 600; }

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem;
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  font-family: var(--font-display); font-weight: 600; color: var(--muted);
}
.trust-bar span { display: inline-flex; align-items: center; gap: .5rem; }
.trust-bar svg { width: 15px; height: 15px; color: var(--red-bright); flex: none; }

/* --- search panel: the hero's working object --- */
.search-panel {
  position: relative;
  background: rgba(20, 17, 17, .88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.search-panel::before {
  content: ""; position: absolute; top: 0; left: 1.2rem; right: 1.2rem; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 25%, var(--red-bright) 50%, var(--red) 75%, transparent);
}
.search-panel .sp-title {
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  letter-spacing: .28em; text-transform: uppercase; margin: 0 0 1.1rem;
  color: var(--bone);
}
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.search-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: .64rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--faint); margin-bottom: .35rem;
  font-family: var(--font-display);
}
.field select, .field input, .field textarea {
  width: 100%; background: var(--ink); color: var(--bone);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .75rem .9rem; transition: border-color var(--t-fast) var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23EDE7E2' stroke-opacity='.5' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--line-red); outline: none; }
.search-panel .btn { width: 100%; margin-top: .9rem; }
.popular-searches { margin-top: 1rem; font-size: .78rem; color: var(--faint); }
.popular-searches a { color: var(--muted); border-bottom: 1px dotted var(--faint); margin-right: .8rem; transition: color var(--t-fast) var(--ease); }
.popular-searches a:hover { color: var(--red-bright); }

@media (max-width: 920px) {
  .hero { min-height: 0; padding: 110px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-bg img { object-position: 78% center; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 5.5rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); max-width: 36rem; margin: 0; }
.section-head .head-link { flex: none; }
.on-coal { background: var(--coal); border-block: 1px solid var(--line); }

@media (max-width: 700px) {
  .section { padding: 3.6rem 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* --- category tiles --- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.cat-tile {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.1rem;
  display: flex; flex-direction: column; gap: .55rem;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
  cursor: pointer;
}
.cat-tile:hover { transform: translateY(-4px); border-color: var(--line-red); background: var(--card-2); }
.cat-tile svg { width: 30px; height: 30px; color: var(--red-bright); }
.cat-tile .cat-name { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.cat-tile .cat-count { font-size: .74rem; color: var(--faint); }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- vehicle cards --- */
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.3rem; }
.veh-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.veh-card:hover { transform: translateY(-5px); border-color: var(--line-red); box-shadow: var(--shadow); }
.veh-card .veh-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--coal); }
.veh-card .veh-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.veh-card:hover .veh-img img { transform: scale(1.05); }
.veh-card .badges { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; z-index: 2; }
.badge {
  font-family: var(--font-display); font-size: .58rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .32rem .6rem; border-radius: 4px;
}
.badge-featured { background: var(--red); color: #fff; }
.badge-reduced  { background: var(--bone); color: var(--ink); }
.badge-sold     { background: rgba(13,11,11,.85); color: var(--red-bright); border: 1px solid var(--line-red); }
.veh-card .veh-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.veh-card h3 { margin: 0; font-size: 1.02rem; }
.veh-card .veh-sub { font-size: .8rem; color: var(--faint); }
.veh-card .veh-specs {
  display: flex; flex-wrap: wrap; gap: .4rem .95rem;
  font-size: .76rem; color: var(--muted); padding: .35rem 0;
  border-top: 1px solid var(--line);
}
.veh-card .veh-price-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .15rem .8rem; margin-top: auto; padding-top: .5rem; }
.price {
  font-family: var(--font-display); font-weight: 800; font-size: 1.28rem;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.price .was { font-size: .78rem; font-weight: 500; color: var(--faint); text-decoration: line-through; margin-right: .5rem; }
.pm { font-size: .74rem; color: var(--muted); }
.pm strong { color: var(--red-bright); font-weight: 600; }
.veh-card.is-sold .veh-img img { filter: grayscale(.85) brightness(.7); }

/* --- stats band --- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  text-align: left; padding: 1.5rem 1.6rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat::before { content: ""; display: block; width: 26px; height: 2px; background: var(--red); margin-bottom: .8rem; }
.stat .stat-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .stat-label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-family: var(--font-display); font-weight: 600; }
@media (max-width: 860px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* --- split feature (sell strip, about blocks) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.4rem; align-items: center; }
.split .split-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.split .split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split ul.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; gap: .7rem; }
.split ul.ticks li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); }
.split ul.ticks svg { width: 17px; height: 17px; color: var(--red-bright); flex: none; margin-top: .25rem; }
.split ul.ticks strong { color: var(--bone); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* --- steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem;
  letter-spacing: -0.02em; color: var(--red-soft);
  -webkit-text-stroke: 1px var(--line-red);
  display: block; margin-bottom: .6rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* --- value props --- */
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.prop { padding: 1.6rem 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.prop:hover { border-color: var(--line-red); transform: translateY(-4px); }
.prop svg { width: 28px; height: 28px; color: var(--red-bright); margin-bottom: .9rem; }
.prop h3 { font-size: 1rem; margin-bottom: .4rem; }
.prop p { color: var(--muted); font-size: .88rem; margin: 0; }
@media (max-width: 960px) { .props { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .props { grid-template-columns: 1fr; } }

/* --- reviews --- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.review .stars { color: var(--red-bright); letter-spacing: .12em; font-size: .82rem; }
.review blockquote { margin: 0; color: var(--muted); font-size: .94rem; }
.review cite { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.review cite small { display: block; color: var(--faint); letter-spacing: .04em; text-transform: none; font-family: var(--font-body); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* --- FAQ --- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.15rem 0;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red-bright); font-size: 1.3rem; font-weight: 400; transition: transform var(--t-med) var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.15rem; margin: 0; max-width: 60ch; }

/* --- CTA band --- */
.cta-band {
  text-align: center; padding: 5rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(227,6,19,.16), transparent),
    var(--coal);
  border-block: 1px solid var(--line);
}
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--muted); max-width: 44ch; margin: 0 auto 2rem; }
.cta-band .cta-row { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { padding: 150px 0 56px; position: relative; }
.page-hero p.lede { color: var(--muted); max-width: 40rem; font-size: 1.05rem; margin: 0; }
.breadcrumbs { font-size: .74rem; color: var(--faint); margin-bottom: 1.6rem; letter-spacing: .06em; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red-bright); }
.breadcrumbs span[aria-current] { color: var(--bone); }

/* ============================================================
   BUY PAGE
   ============================================================ */
.buy-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2.2rem; align-items: start; }
.filters { position: sticky; top: 96px; display: grid; gap: 1.1rem; }
.filters .filter-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: .9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  font-family: var(--font-display); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .8rem; border-radius: 99px;
  background: var(--ink); border: 1px solid var(--line-2); color: var(--muted);
  transition: all var(--t-fast) var(--ease); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.chip:hover { border-color: var(--line-red); color: var(--bone); }
.chip[aria-pressed="true"]:hover { color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.results-bar .count { color: var(--muted); font-size: .9rem; }
.results-bar .count strong { color: var(--bone); }
.results-bar select { background: var(--card); color: var(--bone); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .55rem 2.2rem .55rem .8rem; }
.empty-state { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.filters-toggle { display: none; }
@media (max-width: 920px) {
  .buy-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filters-toggle { display: inline-flex; }
}

/* ============================================================
   VEHICLE DETAIL
   ============================================================ */
.veh-layout { display: grid; grid-template-columns: 1.35fr .85fr; gap: 2.4rem; align-items: start; }
.veh-gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--coal); }
/* height:auto beats the img height attribute, so the photo keeps its real 16:9 frame — never a tall crop */
.veh-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.veh-summary { position: sticky; top: 96px; display: grid; gap: 1.2rem; }
.summary-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.summary-card::before {
  content: ""; position: absolute; top: 0; left: 1.2rem; right: 1.2rem; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 25%, var(--red-bright) 50%, var(--red) 75%, transparent);
}
.summary-card .price { font-size: 2rem; }
.summary-card .pm { display: block; margin: .3rem 0 1.2rem; }
.summary-card .cta-stack { display: grid; gap: .7rem; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 1.8rem 0; }
.spec {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem;
}
.spec .spec-label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); font-family: var(--font-display); font-weight: 600; }
.spec .spec-val { font-weight: 600; font-size: .95rem; margin-top: .15rem; }
.feature-list { columns: 2; gap: 2rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.feature-list li { display: flex; gap: .6rem; align-items: baseline; color: var(--muted); font-size: .92rem; padding: .3rem 0; break-inside: avoid; }
.feature-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; transform: translateY(-2px); }
@media (max-width: 960px) {
  .veh-layout { grid-template-columns: 1fr; }
  .veh-summary { position: static; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { columns: 1; }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-size: .78rem; color: var(--faint); margin-top: .9rem; }
.form-note a { color: var(--muted); text-decoration: underline; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
.calc-result {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; text-align: center;
}
.calc-result::before {
  content: ""; position: absolute; top: 0; left: 1.2rem; right: 1.2rem; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 25%, var(--red-bright) 50%, var(--red) 75%, transparent);
}
.calc-result .calc-pm { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-result .calc-pm small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.calc-result .calc-sub { color: var(--muted); font-size: .85rem; }
.range-row { display: grid; gap: .3rem; margin-bottom: 1.2rem; }
.range-row .range-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.range-row .range-head output { font-weight: 600; color: var(--bone); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--red); cursor: pointer; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--coal); border-top: 1px solid var(--line); padding: 4rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-grid h4 { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-grid a { color: var(--muted); font-size: .92rem; transition: color var(--t-fast) var(--ease); }
.footer-grid a:hover { color: var(--red-bright); }
.footer-grid .f-about p { color: var(--muted); font-size: .9rem; max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--faint);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--red-bright); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- sticky mobile WhatsApp CTA --- */
.wa-sticky {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); color: #06250f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform var(--t-fast) var(--ease);
}
.wa-sticky:hover { transform: scale(1.07); }
.wa-sticky:active { transform: scale(.97); }
.wa-sticky svg { width: 26px; height: 26px; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
/* hidden state only when JS is present to reveal it again */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  #loader { transition: none; }
}

/* ============================================================
   WOW LAYER — orchestrated moments (2026-08-25)
   ============================================================ */

/* --- redline scroll progress: revs climb as you drive down the page --- */
.redline-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 130;
  pointer-events: none;
}
.redline-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-bright));
  box-shadow: 0 0 12px rgba(227, 6, 19, .55);
  transform: scaleX(0); transform-origin: left;
}

/* --- hero entrance choreography --- */
html.js .hs { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .hero .search-panel.hs { transform: translateY(36px); }
html.js body.hero-go .hs { opacity: 1; transform: none; }
.hs-1 { transition-delay: 120ms; }
.hs-2 { transition-delay: 240ms; }
.hs-3 { transition-delay: 400ms; }
.hs-4 { transition-delay: 560ms; }
.hs-5 { transition-delay: 480ms; }
.h-line { display: inline-block; }

/* the redline draws itself under the promise */
.underline-sweep { position: relative; }
.underline-sweep::after {
  content: ""; position: absolute; left: .02em; right: .06em; bottom: -.07em;
  height: max(3px, .045em);
  background: linear-gradient(90deg, var(--red-deep), var(--red) 45%, var(--red-bright));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) 1.1s;
}
body.hero-go .underline-sweep::after { transform: scaleX(1); }

/* --- hero film: fades in over the poster once playing --- */
.hero-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-bg video.on { opacity: 1; }

/* --- category marquee: everything with a motor, at scale --- */
.marquee {
  overflow: hidden; background: var(--coal);
  border-block: 1px solid var(--line);
  padding: 1.05rem 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 0; width: max-content;
  animation: marquee-roll 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(237, 231, 226, .34);
  padding-right: 1.6rem;
}
.marquee-track i {
  font-style: normal; color: var(--red); -webkit-text-stroke: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1; padding-right: 1.6rem;
  font-family: var(--font-display); font-weight: 800;
}
@keyframes marquee-roll { to { transform: translateX(-50%); } }

/* --- the inspection scanner: the 110-point check, visualised --- */
.scan-box {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--coal);
}
.scan-box img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--red-bright) 30%, var(--red-bright) 70%, transparent);
  box-shadow: 0 0 22px rgba(227, 6, 19, .9), 0 0 60px rgba(227, 6, 19, .5);
  pointer-events: none;
}
.scan-box.scanning .scan-line { animation: scan-sweep 2.1s var(--ease) forwards; }
@keyframes scan-sweep {
  0%   { opacity: 0; top: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 3px); }
}
.scan-box::after { /* faint diagnostic grid, breathes in during the sweep */
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(227, 6, 19, .07) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(227, 6, 19, .07) 0 1px, transparent 1px 46px);
}
.scan-box.scanning::after { animation: scan-grid 2.4s var(--ease) forwards; }
@keyframes scan-grid { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.scan-chip {
  position: absolute; left: var(--sx); top: var(--sy); transform: translate(-50%, -50%) scale(.7);
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(13, 11, 11, .82); backdrop-filter: blur(6px);
  border: 1px solid var(--line-red); border-radius: 99px;
  padding: .34rem .7rem;
  font-family: var(--font-display); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bone);
  opacity: 0;
  transition: opacity .5s var(--ease) var(--sd), transform .5s var(--ease) var(--sd);
  pointer-events: none; white-space: nowrap;
}
.scan-chip svg { width: 12px; height: 12px; color: var(--red-bright); flex: none; }
.scan-box.scanning .scan-chip { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.scan-total {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .8rem 1.2rem;
  background: linear-gradient(0deg, rgba(13, 11, 11, .92), rgba(13, 11, 11, 0));
  font-family: var(--font-display); font-weight: 700; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease) 2.1s, transform .6s var(--ease) 2.1s;
}
.scan-box.scanning .scan-total { opacity: 1; transform: none; }
.scan-total strong { color: var(--red-bright); }
@media (max-width: 700px) {
  .scan-chip { font-size: .54rem; padding: .26rem .55rem; }
}

/* --- headlight sweep across vehicle photos on hover --- */
.veh-card .veh-img::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(237, 231, 226, .13) 48%, rgba(255, 59, 71, .10) 53%, transparent 61%);
  transform: translateX(-130%);
}
.veh-card:hover .veh-img::after { transition: transform .85s var(--ease); transform: translateX(130%); }

/* ============================================================
   AUCTIONS + RENTALS (2026-08-29)
   ============================================================ */

/* nav LIVE pulse */
.main-nav a.nav-live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-bright); margin-right: .45rem; vertical-align: 2px;
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,59,71,.5); } 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(255,59,71,0); } }

.demo-ribbon {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red-soft); border: 1px solid var(--line-red); border-radius: 99px;
  padding: .4rem .9rem; font-family: var(--font-display); font-size: .62rem;
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red-bright);
}

/* --- auction lot cards --- */
.lot-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.lot-card:hover { transform: translateY(-5px); border-color: var(--line-red); box-shadow: var(--shadow); }
.lot-card .veh-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--coal); }
.lot-card .veh-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.lot-card:hover .veh-img img { transform: scale(1.05); }
.lot-countdown {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  background: rgba(13,11,11,.85); backdrop-filter: blur(6px);
  border: 1px solid var(--line-2); border-radius: 8px;
  padding: .35rem .65rem; font-family: var(--font-display); font-weight: 700;
  font-size: .72rem; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.lot-countdown.ending { border-color: var(--line-red); color: var(--red-bright); animation: live-pulse 1.2s infinite; }
.lot-live {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--red); color: #fff; border-radius: 4px;
  padding: .3rem .55rem; font-family: var(--font-display); font-weight: 700;
  font-size: .58rem; letter-spacing: .18em; text-transform: uppercase;
}
.lot-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: live-pulse 1.4s infinite; }
.lot-live.ended { background: var(--card-2); color: var(--muted); }
.lot-live.ended::before { animation: none; opacity: .5; }
.lot-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.lot-body h3 { margin: 0; font-size: 1.02rem; }
.lot-meta { font-size: .76rem; color: var(--faint); }
.lot-bid-row { display: flex; justify-content: space-between; align-items: flex-end; gap: .8rem; border-top: 1px solid var(--line); padding-top: .7rem; margin-top: auto; }
.lot-bid-row .bid-label { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); font-family: var(--font-display); font-weight: 600; display: block; }
.lot-bid-row .price { font-size: 1.35rem; }
.lot-bid-row .price.bumped { animation: bid-bump .6s var(--ease); }
@keyframes bid-bump { 0% { transform: scale(1); color: var(--red-bright); } 40% { transform: scale(1.09); color: var(--red-bright); } 100% { transform: scale(1); } }
.lot-bids-count { font-size: .74rem; color: var(--muted); text-align: right; }
.reserve-chip { font-size: .62rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .26rem .5rem; border-radius: 4px; }
.reserve-met { background: rgba(37,211,102,.12); color: #4ade80; }
.reserve-not { background: rgba(237,231,226,.08); color: var(--muted); }

/* --- lot page bid panel --- */
.bid-panel .current-bid { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bid-panel .current-bid.bumped { animation: bid-bump .6s var(--ease); }
.bid-feed { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.bid-feed li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .85rem;
}
.bid-feed li:first-child { color: var(--red-bright); font-weight: 600; }
.bid-feed li .who { color: var(--muted); }
.bid-feed li:first-child .who { color: var(--red-bright); }
.bid-feed li.new-bid { animation: feed-in .5s var(--ease); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); background: var(--red-soft); } }
.next-close {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  font-family: var(--font-display); font-weight: 700;
}
.next-close .big { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; color: var(--red-bright); }

/* --- rentals --- */
.rate-chip {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  background: var(--red); color: #fff; border-radius: 8px;
  padding: .4rem .7rem; font-family: var(--font-display); font-weight: 800;
  font-size: .85rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.rate-chip small { display: block; font-size: .56rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.rto-card { display: flex; flex-direction: column; gap: .3rem; }
.rto-card .rto-week { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em; }
.rto-card .rto-week small { font-size: .8rem; color: var(--muted); font-weight: 500; }
