/* ==========================================================
   Haj Rkein Original Rims — design tokens
   Palette is taken from the shop floor: machined alloy, tyre
   rubber, gunmetal and a cast-bronze accent.
   ========================================================== */
:root {
  --alloy: #E3E5E8;      /* page */
  --machined: #F3F4F5;   /* raised surfaces */
  --tire: #1A1C1F;       /* ink + dark band */
  --gunmetal: #50565E;   /* secondary text */
  --bronze: #7E4F1B;     /* accent text / CTA */
  --bronze-lit: #B98448; /* accent on dark */
  --rule: #C5C9CE;

  --font: "Archivo", system-ui, sans-serif;

  /* Modular scale, ratio 1.25 from 17px */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.33rem;
  --t-lg: 1.66rem;
  --t-xl: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem);
  --t-display: clamp(2.5rem, 1.1rem + 5.2vw, 5rem);

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius-s: 6px;
  --radius-m: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--tire);
  background: var(--alloy);
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--tire); color: var(--machined); padding: .6rem 1rem; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }
.fitment :focus-visible { outline-color: var(--bronze-lit); }

/* ---------- Type ---------- */
/* The display face runs wide, like lettering stamped on a wheel lip */
.display {
  font-size: var(--t-display);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 13ch;
}
.h2 {
  font-size: var(--t-xl);
  font-variation-settings: "wdth" 118;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 { font-size: var(--t-md); font-weight: 700; font-variation-settings: "wdth" 110; line-height: 1.15; }
.lede { font-size: var(--t-md); line-height: 1.45; color: var(--gunmetal); max-width: 34ch; }
.body-dim { color: var(--gunmetal); max-width: 52ch; }
.small { font-size: var(--t-sm); }

/* Spec readouts use the condensed width + tabular numerals */
.stamp, .spec, .fit-spec .v, .hero-facts dd, .price b, .card-price {
  font-variation-settings: "wdth" 75;
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .95rem; }
.btn-ink { background: var(--tire); color: var(--machined); }
.btn-ink:hover { background: #33373c; }
.btn-bronze { background: var(--bronze); color: #fff; }
.btn-bronze:hover { background: #643d12; }
.btn-line { border-color: var(--tire); color: var(--tire); background: transparent; }
.btn-line:hover { background: var(--tire); color: var(--machined); }
.link-btn { background: none; border: 0; padding: 0; color: var(--bronze); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--alloy) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.header-row { display: flex; align-items: center; gap: 2rem; height: 68px; }
.wordmark { white-space: nowrap; display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-variation-settings: "wdth" 125; font-size: 1.15rem; letter-spacing: -0.01em; }
.wordmark-mark { width: 30px; height: 30px; color: var(--tire); }
.main-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--gunmetal); font-weight: 550; padding: .5rem 0; position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px; background: var(--tire); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.main-nav a:hover { color: var(--tire); }
.main-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 820px) {
  .main-nav { display: none; }
  .header-row .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.75rem; align-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-facts { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin: .75rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.hero-facts div { display: grid; gap: .1rem; }
.hero-facts dt { font-size: var(--t-sm); color: var(--gunmetal); }
.hero-facts dd { margin: 0; font-size: var(--t-lg); font-weight: 700; }

/* The stage: a photo-studio sweep for the wheel */
.stage {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; justify-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 28px;
  background:
    radial-gradient(70% 55% at 50% 38%, #FBFBFC 0%, rgba(251,251,252,0) 70%),
    linear-gradient(180deg, #ECEEF0 0%, #D4D8DC 100%);
}
.stage-wheel {
  width: min(100%, 520px); aspect-ratio: 1;
  position: relative;
  cursor: grab; touch-action: pan-y;
  filter: drop-shadow(0 30px 28px rgba(26, 28, 31, .28)) drop-shadow(0 6px 6px rgba(26, 28, 31, .25));
}
.stage-wheel:active { cursor: grabbing; }
.stage-wheel svg { width: 100%; height: 100%; }
.stage-hint { position: absolute; top: 1.1rem; right: 1.4rem; font-size: var(--t-sm); color: var(--gunmetal); }
@media (hover: none) { .stage-hint { display: none; } }

.configurator { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: end; width: 100%; }
.opt { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.opt legend { font-size: var(--t-sm); color: var(--gunmetal); padding: 0; margin-bottom: .5rem; }
.swatches { display: flex; gap: .6rem; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; padding: 3px; background-clip: content-box;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  transition: border-color .15s, transform .15s var(--ease);
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-checked="true"] { border-color: var(--tire); }
.segmented { display: inline-flex; background: rgba(26,28,31,.08); border-radius: 999px; padding: 3px; }
.segmented button {
  min-width: 52px; min-height: 40px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-weight: 650; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums;
  color: var(--gunmetal); transition: background-color .18s, color .18s;
}
.segmented button[aria-checked="true"] { background: var(--tire); color: var(--machined); }
.stamp { flex-basis: 100%; display: flex; justify-content: center; margin: 0; }
.stamp-box {
  font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; color: var(--tire);
  font-variation-settings: "wdth" 75; font-variant-numeric: tabular-nums;
  padding: .45rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius-s); background: rgba(255,255,255,.45);
}
.stamp .finish-name { color: var(--gunmetal); font-weight: 500; letter-spacing: .02em; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .display { max-width: 16ch; }
}
@media (max-width: 520px) {
  .swatch { width: 40px; height: 40px; }
  .stamp-box { font-size: .85rem; letter-spacing: .03em; white-space: nowrap; }
  .header-row { gap: 1rem; }
  .wordmark { font-size: 1rem; }
  .header-row .btn { padding: 0 .9rem; font-size: .88rem; white-space: nowrap; }
  .segmented button { min-width: 44px; }
  .hero-facts dd { font-size: var(--t-md); }
}

/* ---------- Fitment (the one dark band: rubber) ---------- */
.fitment { background: var(--tire); color: var(--machined); padding-block: clamp(3.5rem, 7vw, 6rem); }
.fitment .body-dim { color: #A9AFB6; margin-top: 1rem; }
.fitment-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem 4rem; align-items: end; }
.fit-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: var(--t-sm); font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--gunmetal); }
.field select, .field input, .field textarea {
  min-height: 48px; width: 100%;
  border-radius: var(--radius-s); border: 1.5px solid var(--rule); background: var(--machined);
  padding: .65rem .85rem; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2350565E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; }
.field select:disabled { opacity: .5; cursor: not-allowed; }
.fitment .field select { background-color: #26292D; border-color: #3B4046; color: var(--machined);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A9AFB6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.fitment .btn-bronze { background: var(--bronze-lit); color: var(--tire); }
.fitment .btn-bronze:hover { background: #D19C5E; }

.fit-result { grid-column: 1 / -1; border-top: 1px solid #3B4046; padding-top: 2rem; display: grid; gap: 1rem; }
.fit-result[hidden] { display: none; }
.fit-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.fit-spec div { display: grid; gap: .2rem; }
.fit-spec .k { font-size: var(--t-sm); color: #A9AFB6; }
.fit-spec .v { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.fit-note { color: #A9AFB6; max-width: 70ch; }
.fit-note a { color: var(--bronze-lit); font-weight: 650; }

@media (max-width: 1100px) {
  .fitment-grid { grid-template-columns: 1fr; }
  .fit-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fit-form { grid-template-columns: 1fr; }
}

/* ---------- Catalog ---------- */
.catalog { padding-block: var(--section) calc(var(--section) * .75); }
.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.catalog-head .body-dim { margin-top: .75rem; }
.filters { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.chip-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  min-height: 42px; min-width: 52px; padding: 0 .9rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--rule); background: transparent; color: var(--gunmetal);
  font-weight: 650; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--tire); color: var(--tire); }
.chip[aria-pressed="true"] { background: var(--tire); border-color: var(--tire); color: var(--machined); }
.field-inline select { min-height: 42px; border-radius: 999px; padding-left: 1rem; width: auto; }

.active-fit { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; padding: .85rem 1.1rem; margin-bottom: 1.5rem; border-radius: var(--radius-s); background: var(--machined); border-left: 4px solid var(--bronze); }
.active-fit[hidden] { display: none; }

/* The rack: wheels hang on a wall, not in floating cards */
.rack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.rack > li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.card { display: grid; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 2rem); height: 100%; grid-template-rows: auto auto 1fr auto; }
.card-wheel { aspect-ratio: 1; width: 72%; justify-self: center; transition: transform .9s var(--ease); filter: drop-shadow(0 14px 14px rgba(26,28,31,.22)); }
.card:hover .card-wheel { transform: rotate(72deg); }
@media (prefers-reduced-motion: reduce) { .card:hover .card-wheel { transform: none; } }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card h3 { font-size: var(--t-lg); font-weight: 750; font-variation-settings: "wdth" 120; line-height: 1.05; }
.card-price { font-size: var(--t-md); font-weight: 650; white-space: nowrap; }
.card-price small { font-size: var(--t-sm); color: var(--gunmetal); font-weight: 450; font-variation-settings: "wdth" 100; }
.card-desc { color: var(--gunmetal); font-size: .98rem; }
.spec { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .95rem; color: var(--tire); margin: 0; padding: 0; list-style: none; }
.spec li { display: flex; gap: .35rem; }
.spec span { color: var(--gunmetal); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px dashed var(--rule); }
.finish-dots { display: flex; gap: .3rem; }
.finish-dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.card-foot a { font-weight: 650; color: var(--bronze); text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.fits-badge { font-size: var(--t-sm); font-weight: 650; color: #2F6A3B; display: inline-flex; gap: .3rem; align-items: center; }
.empty { padding: 3rem 0; text-align: center; color: var(--gunmetal); }

@media (max-width: 1000px) { .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rack { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services { padding-block: calc(var(--section) * .75) var(--section); }
.services-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem 5rem; }
.services-intro { position: sticky; top: 100px; align-self: start; display: grid; gap: 1rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: grid; grid-template-columns: 1fr auto; gap: .35rem 2rem; padding: 1.6rem 0; border-top: 1px solid var(--rule); }
.service-list li:last-child { border-bottom: 1px solid var(--rule); }
.service-list h3 { font-size: var(--t-md); font-weight: 700; font-variation-settings: "wdth" 110; }
.service-list p { grid-column: 1; color: var(--gunmetal); max-width: 52ch; }
.service-list .price { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; color: var(--bronze); font-weight: 600; }
.service-list .price b { font-size: var(--t-md); }
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .service-list li { grid-template-columns: 1fr; }
  .service-list .price { grid-column: 1; grid-row: auto; text-align: left; }
}

/* ---------- Process ---------- */
.process { padding-block: 0 var(--section); }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: .6rem; align-content: start; padding-top: 1.25rem; border-top: 3px solid var(--tire); }
.steps li::before { content: counter(step); font-weight: 800; font-variation-settings: "wdth" 125; font-size: var(--t-lg); color: var(--bronze); line-height: 1; }
.steps h3 { font-size: var(--t-md); font-weight: 700; font-variation-settings: "wdth" 110; }
.steps p { color: var(--gunmetal); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Visit ---------- */
.visit { padding-block: var(--section); background: var(--machined); border-top: 1px solid var(--rule); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; align-items: start; }
.visit-info { display: grid; gap: 1.5rem; }
.address { font-size: var(--t-md); max-width: 30ch; }
.hours { border-collapse: collapse; width: 100%; max-width: 420px; font-variant-numeric: tabular-nums; }
.hours td { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.hours td:last-child { text-align: right; color: var(--gunmetal); }
.hours tr.today td { font-weight: 700; color: var(--tire); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.quote { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--alloy); border-radius: var(--radius-m); }
.quote .h3 { margin-bottom: -.5rem; }
.quote .btn { justify-self: start; margin-top: .25rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tire); outline: none; box-shadow: 0 0 0 3px rgba(126,79,27,.35); }
.field [aria-invalid="true"] { border-color: #B42318; }
.err { color: #B42318; font-size: var(--t-sm); font-weight: 550; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--tire); color: #A9AFB6; padding-block: 2rem; font-size: var(--t-sm); }
.footer-row { display: flex; gap: 1rem 2rem; justify-content: space-between; flex-wrap: wrap; }
.site-footer a { color: var(--machined); }

/* ---------- Wheel SVG transitions ---------- */
.rim-scale { transition: transform .7s var(--ease); transform-box: view-box; transform-origin: 0 0; }
@media (prefers-reduced-motion: reduce) { .rim-scale { transition: none; } }

/* ---------- Brand + photo support ---------- */
.card-brand { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--bronze); font-variation-settings: "wdth" 100; letter-spacing: 0; margin-bottom: .2rem; }
.card-photo { width: 100%; aspect-ratio: 1; filter: none; border-radius: var(--radius-s); overflow: hidden; background: var(--machined); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-photo { transform: none; }
.hero-facts dd a { text-decoration: none; }
.hero-facts dd a:hover { color: var(--bronze); }
.body-dim a, .address a { color: var(--bronze); font-weight: 650; text-underline-offset: 3px; }

[hidden] { display: none !important; }

/* ---------- Also at the showroom ---------- */
.extras { padding-block: 0 var(--section); }
.extras-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.extras-list li { padding: 1.6rem 2rem 0 0; display: grid; gap: .4rem; align-content: start; }
.extras-list li + li { padding-left: 2rem; border-left: 1px solid var(--rule); }
.extras-list h3 { font-size: var(--t-md); font-weight: 700; font-variation-settings: "wdth" 110; }
.extras-list p { color: var(--gunmetal); max-width: 34ch; }
@media (max-width: 760px) {
  .extras-list { grid-template-columns: 1fr; }
  .extras-list li, .extras-list li + li { padding: 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

.contact-line { line-height: 1.8; }
.contact-line a { color: var(--bronze); font-weight: 650; text-underline-offset: 3px; }
.socials { display: flex; gap: 1.5rem; }
.socials a, .footer-social a { font-weight: 650; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-social { display: inline-flex; gap: 1.25rem; }

/* ==========================================================
   Multi-page additions
   ========================================================== */
.main-nav a[aria-current="page"] { color: var(--tire); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Home: shop by chassis (dark band) ---------- */
.sbc-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.brand-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.brand-tabs button {
  min-height: 46px; padding: 0 1.3rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid #3B4046; background: transparent; color: #C9CDD2; font-weight: 650;
  transition: background-color .15s, color .15s, border-color .15s;
}
.brand-tabs button:hover { border-color: #A9AFB6; color: var(--machined); }
.brand-tabs button[aria-selected="true"] { background: var(--machined); color: var(--tire); border-color: var(--machined); }
.quick-chassis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.quick-chassis a {
  display: grid; gap: .1rem; padding: .9rem 1rem; border-radius: var(--radius-s); text-decoration: none;
  background: #23262A; border: 1px solid #33373C; transition: border-color .15s, background-color .15s;
}
.quick-chassis a:hover { border-color: var(--bronze-lit); background: #2A2D32; }
.quick-chassis b { font-size: var(--t-lg); font-weight: 750; font-variation-settings: "wdth" 110; line-height: 1.1; }
.quick-chassis span { color: #C9CDD2; font-size: .95rem; }
.quick-chassis small { color: var(--bronze-lit); font-size: var(--t-sm); font-weight: 600; margin-top: .25rem; }
.quick-other { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; color: #C9CDD2; }

/* ---------- Home: latest strip ---------- */
.latest { padding-block: var(--section) calc(var(--section) * .6); }
.latest-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.latest-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.latest-strip a { display: grid; gap: .6rem; text-decoration: none; }
.latest-strip img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); background: var(--machined); transition: transform .25s var(--ease); }
.latest-strip a:hover img { transform: translateY(-3px); }
.latest-strip span { font-weight: 650; line-height: 1.25; font-size: .98rem; }
.latest-strip small { display: block; color: var(--gunmetal); font-weight: 500; font-size: var(--t-sm); }
.latest-note { margin-top: 1.5rem; }
@media (max-width: 980px) { .latest-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .latest-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Wheels page ---------- */
.shop { padding-top: clamp(1.5rem, 4vw, 3rem); }
.shop-steps { list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.step > a, .step > span { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-height: 44px; }
.step-n {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 750; font-variant-numeric: tabular-nums; border: 1.5px solid var(--rule); color: var(--gunmetal);
}
.step-text { display: grid; line-height: 1.15; }
.step-label { font-size: var(--t-sm); color: var(--gunmetal); }
.step-text b { font-weight: 700; }
.step.is-current .step-n { background: var(--tire); border-color: var(--tire); color: var(--machined); }
.step.is-current .step-label { color: var(--tire); font-weight: 650; }
.step.is-done .step-n { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.step.is-done a:hover .step-label { color: var(--bronze); text-decoration: underline; }

#shopView { min-height: 50vh; }
#shopView > .body-dim { margin-top: .75rem; }
.step-title:focus { outline: none; }

.brand-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.brand-card {
  display: grid; gap: .4rem; align-content: end; min-height: 220px; height: 100%; padding: 1.6rem; text-decoration: none;
  border-radius: var(--radius-m); background: var(--machined); border: 1.5px solid var(--rule);
  transition: border-color .15s, transform .2s var(--ease);
}
.brand-card:hover { border-color: var(--tire); transform: translateY(-2px); }
.brand-name { font-size: var(--t-xl); font-weight: 800; font-variation-settings: "wdth" 118; line-height: 1; }
.brand-blurb { color: var(--gunmetal); }
.brand-count { color: var(--bronze); font-weight: 650; font-size: var(--t-sm); margin-top: .5rem; }
@media (max-width: 760px) { .brand-grid { grid-template-columns: 1fr; } .brand-card { min-height: 140px; } }

.chassis-group { margin-top: 2.25rem; }
.chassis-series { font-size: var(--t-md); font-weight: 700; font-variation-settings: "wdth" 110; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.chassis-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .75rem; }
.chassis-card {
  display: grid; gap: .2rem; padding: 1rem 1.1rem; height: 100%; text-decoration: none;
  background: var(--machined); border: 1.5px solid var(--rule); border-radius: var(--radius-s);
  transition: border-color .15s, background-color .15s;
}
.chassis-card:hover { border-color: var(--tire); background: #fff; }
.chassis-code { font-size: var(--t-xl); font-weight: 800; font-variation-settings: "wdth" 112; line-height: 1; }
.chassis-name { font-weight: 550; }
.chassis-meta { display: flex; gap: .75rem; color: var(--gunmetal); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.chassis-count { margin-top: .4rem; font-size: var(--t-sm); font-weight: 650; color: #2F6A3B; }
.chassis-count.is-none { color: var(--gunmetal); font-weight: 500; }

.result-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.result-head .body-dim { margin-top: .6rem; }
.wheel-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.wheel-card { display: grid; grid-template-rows: auto 1fr auto; height: 100%; background: var(--machined); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--rule); }
.wheel-photo { aspect-ratio: 1; background: #d9dcdf; }
.wheel-photo img { width: 100%; height: 100%; object-fit: cover; }
.wheel-body { display: grid; gap: .35rem; align-content: start; padding: 1.1rem 1.2rem .5rem; }
.wheel-brand { font-size: var(--t-sm); font-weight: 650; color: var(--bronze); }
.wheel-card h3 { font-size: var(--t-lg); font-weight: 750; font-variation-settings: "wdth" 115; line-height: 1.05; }
.wheel-finish { color: var(--gunmetal); font-size: .95rem; }
.wheel-note { font-size: .95rem; margin-top: .25rem; }
.wheel-fits { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-top: .5rem; }
.wheel-fits > span { font-size: var(--t-sm); color: var(--gunmetal); }
.wheel-fits ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.wheel-fits a {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 .6rem; border-radius: 999px; text-decoration: none;
  font-size: var(--t-sm); font-weight: 650; font-variation-settings: "wdth" 85; border: 1px solid var(--rule); background: var(--alloy);
}
.wheel-fits a:hover { border-color: var(--tire); }
.wheel-fits .is-yours a { background: var(--tire); color: var(--machined); border-color: var(--tire); }
.wheel-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .9rem 1.2rem 1.2rem; }

.empty-state { display: grid; gap: .9rem; justify-items: start; padding: 2rem; border-radius: var(--radius-m); background: var(--machined); border-left: 4px solid var(--bronze); max-width: 640px; }
.empty-state p { color: var(--gunmetal); }
.more-link { margin-top: 2rem; }
.more-link a { color: var(--bronze); font-weight: 650; }
.fit-disclaimer { margin-top: 1.25rem; font-size: var(--t-sm); color: var(--gunmetal); }

.shop-contact { margin-top: var(--section); padding-block: 2.5rem; background: var(--machined); border-top: 1px solid var(--rule); }
.shop-contact-row { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; flex-wrap: wrap; }
.shop-contact p { max-width: 46ch; }

/* ---------- Hero: wall of wheels ---------- */
.hero-wall { position: relative; height: clamp(460px, 62vh, 640px); }
.marquee {
  position: absolute; inset: -12% -18% -12% -6%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem;
  transform: rotate(-9deg);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 8%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 8%, #000 88%, transparent 100%);
}
.mq-col { overflow: hidden; }
.mq-track { display: grid; gap: 1.1rem; animation: mq-up 46s linear infinite; }
.mq-col-2 .mq-track { animation-name: mq-down; animation-duration: 54s; }
.mq-col-3 .mq-track { animation-duration: 40s; }
.mq-col-2 { margin-top: -18%; }
.hero-wall:hover .mq-track { animation-play-state: paused; }
@keyframes mq-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - .55rem)); } }
@keyframes mq-down { from { transform: translateY(calc(-50% - .55rem)); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

.mq-card {
  display: grid; text-decoration: none; background: var(--machined); border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 30px -18px rgba(26, 28, 31, .45), 0 0 0 1px rgba(26, 28, 31, .06);
}
.mq-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mq-label { display: grid; gap: .1rem; padding: .7rem .85rem .85rem; font-weight: 650; font-size: .95rem; line-height: 1.2; }
.mq-label small { color: var(--bronze); font-weight: 600; font-size: .78rem; }

.marquee-pill {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.3rem; border-radius: 999px;
  background: color-mix(in srgb, var(--machined) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -12px rgba(26, 28, 31, .5); font-weight: 650; text-decoration: none; white-space: nowrap;
}
.marquee-pill:hover { background: var(--tire); color: var(--machined); }
@media (max-width: 960px) {
  .hero-wall { height: 440px; order: 2; }
  .marquee { inset: -10% -14%; }
}
@media (max-width: 520px) {
  .hero-wall { height: 380px; }
  .marquee { gap: .7rem; } .mq-track { gap: .7rem; }
  .mq-label { font-size: .8rem; padding: .5rem .6rem .6rem; }
  .mq-label small { font-size: .7rem; }
}

/* ==========================================================
   DARK THEME — graphite + gold (UI/UX Pro Max: "premium dark
   + gold accent"). Overrides the tokens above; components that
   used the old dark ink as a background are fixed below.
   ========================================================== */
:root {
  --alloy: #121315;      /* page */
  --machined: #1B1D20;   /* cards and raised surfaces */
  --raised: #24272B;     /* hover / inputs */
  --tire: #ECEDEE;       /* text */
  --gunmetal: #9DA3AA;   /* secondary text */
  --bronze: #D4A35C;     /* gold accent */
  --bronze-lit: #E2B675;
  --rule: #2C3035;
  --on-gold: #17130C;
  color-scheme: dark;
}

/* hero gets a soft gold light behind the wheel wall */
.hero { background: radial-gradient(55% 70% at 82% 40%, rgba(212, 163, 92, .12), transparent 70%); }

/* buttons */
.btn-bronze, .fitment .btn-bronze { background: var(--bronze); color: var(--on-gold); }
.btn-bronze:hover, .fitment .btn-bronze:hover { background: var(--bronze-lit); }
.btn-ink { background: var(--tire); color: #121315; }
.btn-ink:hover { background: #fff; }
.btn-line { border-color: #4A4F56; }
.btn-line:hover { background: var(--tire); color: #121315; border-color: var(--tire); }

/* bands that were dark on the light page */
.fitment { background: #0B0C0D; border-block: 1px solid var(--rule); }
.site-footer { background: #0B0C0D; border-top: 1px solid var(--rule); }
.brand-tabs button[aria-selected="true"] { background: var(--bronze); color: var(--on-gold); border-color: var(--bronze); }
.quick-chassis a { background: var(--machined); border-color: var(--rule); }
.quick-chassis a:hover { background: var(--raised); }

/* status colours readable on dark */
.fits-badge, .chassis-count { color: #7BD196; }
.chassis-count.is-none { color: var(--gunmetal); }
.err { color: #F48B82; }
.field [aria-invalid="true"] { border-color: #F48B82; }

/* surfaces */
.field select, .field input, .field textarea { background-color: var(--raised); border-color: #383C42; }
.field input::placeholder, .field textarea::placeholder { color: #7B8188; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(212, 163, 92, .25); }
.quote { background: var(--machined); border: 1px solid var(--rule); }
.visit { background: #161719; }
.chassis-card:hover, .brand-card:hover { background: var(--raised); border-color: var(--bronze); }
.wheel-photo, .hero-photo { background: #0E0F11; }
.wheel-fits a { background: var(--raised); }
.wheel-fits .is-yours a, .step.is-current .step-n { background: var(--tire); color: #121315; border-color: var(--tire); }
.step.is-done .step-n { color: var(--on-gold); }
.empty-state { background: var(--machined); }

/* the wheel wall */
.mq-card { background: var(--machined); box-shadow: 0 22px 36px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
.marquee-pill { background: rgba(27, 29, 32, .82); color: var(--tire); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.marquee-pill:hover { background: var(--bronze); color: var(--on-gold); }

/* photos sit on dark: give them a little lift */
.latest-strip img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.fitment { color: var(--tire); }
.site-footer a { color: var(--tire); }
.brand-tabs button:hover { color: var(--tire); }
.skip { color: #121315; }
