:root {
  color-scheme: light;
  --ink: #181a1d;
  --ink-soft: #5c6067;
  --paper: #f5f5f3;
  --white: #ffffff;
  --line: #deded9;
  --line-dark: #34373c;
  --gold: #c99b52;
  --gold-dark: #a87936;
  --green: #28684a;
  --red: #9b3f36;
  --shadow: 0 16px 45px rgba(21, 22, 24, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, input, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.site-header {
  min-height: 82px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(201, 155, 82, 0.62);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Manrope", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.brand-copy { display: grid; }
.brand-copy strong { font-family: "Manrope", sans-serif; font-size: 1rem; letter-spacing: 0.01em; }
.brand-copy small { color: #aeb1b5; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.13em; }

.main-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.main-nav a {
  padding: 9px 13px;
  color: #aeb1b5;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: #fff; border-color: #4a4d52; outline: 0; }
.main-nav a.is-active { color: #17130d; background: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-link { color: #d6d6d3; font-size: 0.92rem; font-weight: 600; text-underline-offset: 4px; }

main { min-height: 75vh; }

.catalog-intro {
  padding: 46px clamp(20px, 4vw, 64px) 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  background:
    linear-gradient(115deg, rgba(201, 155, 82, 0.12), transparent 46%),
    var(--ink);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: "Manrope", sans-serif; line-height: 1.1; }
h1 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.9rem); letter-spacing: -0.055em; }
.intro-copy { max-width: 650px; margin: 14px 0 0; color: #c7c9cc; font-size: 1.05rem; }

.visit-card {
  min-width: 300px;
  padding: 20px 22px;
  display: grid;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, 0.045);
}

.visit-card span { color: var(--gold); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.visit-card strong { margin-top: 4px; font-size: 1rem; }
.visit-card small { margin-top: 2px; color: #b9bbc0; font-size: 0.82rem; }

.sample-notice {
  margin: 20px clamp(20px, 4vw, 64px) 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #584a34;
  background: #f3e7d1;
  border: 1px solid #dec69e;
  font-size: 0.92rem;
}

.sample-notice span {
  padding: 3px 8px;
  background: #6c5128;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog { padding: 28px clamp(20px, 4vw, 64px) 72px; }

.type-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.type-tabs::-webkit-scrollbar { display: none; }
.type-tab {
  position: relative;
  padding: 12px 17px 15px;
  border: 0;
  background: transparent;
  color: #777a80;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.type-tab::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: -1px;
  left: 15px;
  height: 3px;
  background: transparent;
}
.type-tab.is-active { color: var(--ink); }
.type-tab.is-active::after { background: var(--gold); }

.filter-bar {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(155px, 0.75fr) minmax(155px, 0.75fr) auto;
  gap: 10px;
  align-items: end;
}

.search-field {
  height: 52px;
  padding: 0 15px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-field:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }
.search-field svg { width: 20px; height: 20px; fill: none; stroke: #85888e; stroke-width: 1.7; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-field input::placeholder { color: #8a8d92; }

.select-field { height: 52px; padding: 6px 12px 5px; background: var(--white); border: 1px solid var(--line); display: grid; }
.select-field:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }
.select-field span, .sort-field span { color: #7b7e84; font-size: 0.69rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.select-field select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 600; }

.stock-toggle { height: 52px; padding: 0 15px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--white); cursor: pointer; white-space: nowrap; font-weight: 600; }
.stock-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.stock-toggle > span { position: relative; width: 39px; height: 22px; border-radius: 999px; background: #bbbdbf; transition: 160ms ease; }
.stock-toggle > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: 160ms ease; }
.stock-toggle input:checked + span { background: var(--green); }
.stock-toggle input:checked + span::after { transform: translateX(17px); }
.stock-toggle:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px; }

.results-row { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.results-row p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.sort-field { display: flex; align-items: center; gap: 8px; }
.sort-field select { border: 0; background: transparent; color: var(--ink); font-weight: 600; outline-offset: 4px; }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c8c8c2; }

.product-carousel { position: relative; overflow: hidden; background: #dededb; }
.product-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}
.product-carousel-track::-webkit-scrollbar { display: none; }
.product-carousel-track:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.product-carousel-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #dededb;
}
.product-carousel-slide img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-carousel-count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(22, 23, 25, .88);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.product-carousel-arrow {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.product-carousel-arrow:hover, .product-carousel-arrow:focus-visible { background: #fff; outline: 2px solid var(--gold); }
.product-carousel-arrow:disabled { opacity: 0; pointer-events: none; }
.product-carousel-arrow.is-previous { left: 12px; }
.product-carousel-arrow.is-next { right: 12px; }
.product-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  padding: 6px 8px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(22, 23, 25, .66);
}
.product-carousel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.product-carousel-dot.is-active { background: var(--gold); }
.product-carousel-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.product-image {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: #dededb;
}
.product-image img {
  position: absolute;
  width: 300%;
  height: 200%;
  max-width: none;
  object-fit: cover;
}
.product-image .product-photo {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sprite-0 img { left: 0; top: 0; }
.sprite-1 img { left: -100%; top: 0; }
.sprite-2 img { left: -200%; top: 0; }
.sprite-3 img { left: 0; top: -100%; }
.sprite-4 img { left: -100%; top: -100%; }
.sprite-5 img { left: -200%; top: -100%; }

.image-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  background: rgba(22, 23, 25, 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stock-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  background: #f3e7d1;
  color: #6c5128;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}
.stock-pill.sold { background: #f4e7e4; color: var(--red); }

.product-body { padding: 18px; }
.product-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-type { color: var(--gold-dark); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; }
.product-card h2 { margin: 10px 0 5px; font-size: 1.35rem; letter-spacing: -0.025em; }
.product-meta { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.product-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e8e8e4; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-size strong { display: block; font-size: 1rem; }
.product-size span { color: #7a7d82; font-size: 0.76rem; }
.view-button { padding: 9px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.view-button:hover, .view-button:focus-visible { background: var(--ink); color: #fff; }

.empty-state { padding: 70px 20px; text-align: center; background: #fff; border: 1px solid var(--line); }
.empty-state h2 { margin: 0; font-size: 1.6rem; }
.empty-state p { margin: 8px 0 22px; color: var(--ink-soft); }

.button {
  min-height: 48px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.button-small { min-height: 42px; padding: 9px 15px; }
.button-gold { background: var(--gold); color: #17130d; }
.button-gold:hover, .button-gold:focus-visible { background: #ddb56f; }
.button-dark { background: var(--ink); color: #fff; }
.button-outline { border-color: #c8c8c3; background: #fff; color: var(--ink); }

footer {
  padding: 34px clamp(20px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 30px;
  background: var(--ink);
  color: #fff;
  border-top: 1px solid var(--line-dark);
}
footer > div:first-child { display: grid; }
footer span { margin-top: 3px; color: #9da0a5; font-size: 0.86rem; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { color: #d5d6d8; text-underline-offset: 4px; }

.mobile-actions { display: none; }

.modal { position: fixed; inset: 0; z-index: 50; visibility: hidden; opacity: 0; transition: opacity 180ms ease, visibility 180ms ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(13, 14, 16, 0.7); cursor: pointer; }
.product-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(570px, 94vw); margin: 0; overflow-y: auto; background: var(--paper); transform: translateX(100%); transition: transform 220ms ease; box-shadow: -20px 0 60px rgba(0,0,0,.24); }
.modal.is-open .product-sheet { transform: translateX(0); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 0; background: rgba(20, 21, 23, 0.88); color: #fff; cursor: pointer; }
.modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sheet-image {
  position: relative;
  height: 390px;
  overflow: hidden;
  background: #2a2b2e;
}
.viewer-stage {
  position: absolute;
  inset: 0 0 58px;
  overflow: hidden;
  background: #d7d7d3;
  cursor: grab;
  touch-action: none;
  outline: 0;
}
.viewer-stage:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.viewer-stage.is-dragging { cursor: grabbing; }
.viewer-artwork {
  position: absolute;
  inset: 0;
  background-image: url("./assets/sample-stone-atlas.png");
  background-repeat: no-repeat;
  background-size: 300% 200%;
  transform-origin: center;
  will-change: transform;
  transition: transform 180ms ease;
}
.viewer-stage.is-dragging .viewer-artwork { transition: none; }
.viewer-artwork.sprite-0 { background-position: 0 0; }
.viewer-artwork.sprite-1 { background-position: 50% 0; }
.viewer-artwork.sprite-2 { background-position: 100% 0; }
.viewer-artwork.sprite-3 { background-position: 0 100%; }
.viewer-artwork.sprite-4 { background-position: 50% 100%; }
.viewer-artwork.sprite-5 { background-position: 100% 100%; }
.viewer-artwork.is-photo { background-size: contain; background-position: center; }
.viewer-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  background: rgba(20, 21, 23, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.viewer-toolbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  background: #202225;
  border-top: 1px solid #3e4146;
}
.viewer-toolbar button {
  min-width: 42px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #51545a;
  background: #2c2e32;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
}
.viewer-toolbar button:hover,
.viewer-toolbar button:focus-visible { border-color: var(--gold); background: #383a3f; outline: 0; }
.viewer-toolbar .viewer-reset { min-width: 74px; color: #dedfe0; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.sheet-content { padding: 28px; }
.sheet-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.sheet-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -0.045em; }
.sheet-note { margin: 18px 0; padding: 10px 12px; background: #f1e5cf; color: #5f4d31; font-size: 0.86rem; }
.spec-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.spec-list div { padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.spec-list dt { color: #85878c; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.spec-list dd { margin: 3px 0 0; font-weight: 700; }
.sheet-actions { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pickup-note { margin: 14px 0 0; text-align: center; color: var(--ink-soft); font-size: 0.82rem; }

.machine-catalog { padding: 28px clamp(20px, 4vw, 64px) 72px; }
.machine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.machine-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.machine-gallery { background: #202226; }
.machine-image { position: relative; height: 310px; overflow: hidden; background: #2a2c30; }
.machine-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.machine-image-contain img { object-fit: contain; }
.machine-image > span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  background: rgba(22, 23, 25, 0.9);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.machine-thumbnails {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid #373a3f;
}
.machine-thumbnails button {
  position: relative;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #2a2c30;
  cursor: pointer;
}
.machine-thumbnails button:hover,
.machine-thumbnails button:focus-visible { border-color: #e0bc80; outline: 0; }
.machine-thumbnails button.is-active { border-color: var(--gold); }
.machine-thumbnails img { width: 100%; height: 100%; object-fit: cover; display: block; }
.machine-thumbnails-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.machine-thumbnails-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--gold) #25272b; }
.machine-thumbnails-scroll button { flex: 0 0 92px; scroll-snap-align: start; }
.machine-video {
  padding: 12px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border-top: 1px solid #373a3f;
  background: #202226;
}
.machine-video video { width: 100%; height: 360px; display: block; object-fit: contain; background: #111214; }
.machine-video span { color: #d7d8da; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.machine-placeholder {
  min-height: 230px;
  padding: 30px;
  display: grid;
  place-content: center;
  text-align: center;
  background: #25272b;
  color: #fff;
}
.machine-placeholder strong { color: var(--gold); font-family: "Manrope", sans-serif; font-size: 3.4rem; letter-spacing: -.05em; }
.machine-placeholder span { color: #aeb1b5; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }
.machine-body { padding: 24px; }
.machine-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.machine-category { margin: 0 0 7px; color: var(--gold-dark); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.machine-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.035em; }
.machine-price { color: var(--ink); font-family: "Manrope", sans-serif; font-size: 1.05rem; white-space: nowrap; }
.machine-summary { margin: 15px 0 18px; color: var(--ink-soft); }
.machine-specs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.machine-specs li { padding: 10px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.machine-specs span { color: #7b7e84; font-size: .86rem; }
.machine-specs strong { max-width: 65%; text-align: right; font-size: .86rem; }
.machine-actions { margin-top: 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.marketplace-link { margin-top: 13px; display: inline-block; color: #666a70; font-size: .82rem; text-underline-offset: 4px; }
.machine-card-compact .machine-body { min-height: 270px; display: flex; flex-direction: column; }
.machine-card-compact .machine-actions { margin-top: auto; }
.equipment-disclaimer { margin-top: 24px; padding: 20px 22px; display: flex; align-items: start; gap: 18px; background: #e8e8e4; border: 1px solid #d2d2cd; }
.equipment-disclaimer strong { white-space: nowrap; }
.equipment-disclaimer p { margin: 0; color: var(--ink-soft); }

.vehicle-intro {
  padding: 46px clamp(20px, 4vw, 64px) 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  background:
    radial-gradient(circle at 72% 25%, rgba(201, 155, 82, .16), transparent 28%),
    linear-gradient(115deg, rgba(201, 155, 82, .08), transparent 46%),
    var(--ink);
  color: #fff;
}
.vehicle-badges { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.vehicle-badges span { padding: 7px 10px; border: 1px solid #484b50; color: #d6d7d9; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.vehicle-price-card { min-width: 250px; padding: 22px 24px; display: grid; border-top: 3px solid var(--gold); background: rgba(255,255,255,.055); }
.vehicle-price-card span { color: #aaaeb3; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.vehicle-price-card strong { margin-top: 2px; color: var(--gold); font-family: "Manrope", sans-serif; font-size: 2.4rem; letter-spacing: -.05em; }
.vehicle-price-card small { color: #d3d4d6; font-size: .85rem; }

.vehicle-catalog { padding: 30px clamp(20px, 4vw, 64px) 72px; }
.vehicle-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .7fr); gap: 24px; align-items: start; }
.vehicle-media-card, .vehicle-details-card { background: #fff; border: 1px solid var(--line); }
.vehicle-main-photo { position: relative; height: min(66vw, 650px); min-height: 450px; display: grid; place-items: center; overflow: hidden; background: #202226; }
.vehicle-main-photo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.vehicle-main-photo span { position: absolute; top: 16px; left: 16px; padding: 7px 10px; background: rgba(20,21,23,.9); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vehicle-thumbnails { padding: 10px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; background: #292b2f; border-top: 1px solid #3c3f44; }
.vehicle-thumbnails button { height: 90px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #1f2124; cursor: pointer; }
.vehicle-thumbnails button:hover, .vehicle-thumbnails button:focus-visible { border-color: #e0bc80; outline: 0; }
.vehicle-thumbnails button.is-active { border-color: var(--gold); }
.vehicle-thumbnails img { width: 100%; height: 100%; display: block; object-fit: cover; }

.vehicle-details-card { position: sticky; top: 20px; padding: 26px; }
.vehicle-details-card h2 { margin: 0; font-size: 1.85rem; letter-spacing: -.04em; }
.vehicle-summary { margin: 14px 0 20px; color: var(--ink-soft); }
.vehicle-facts { margin: 0; border-top: 1px solid var(--line); }
.vehicle-facts div { padding: 11px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.vehicle-facts dt { color: #7b7e84; font-size: .86rem; }
.vehicle-facts dd { margin: 0; max-width: 68%; text-align: right; font-size: .88rem; font-weight: 700; overflow-wrap: anywhere; }
.vehicle-description-copy { margin-top: 18px; color: var(--ink-soft); font-size: .92rem; }
.vehicle-description-copy p { margin: 0 0 10px; }
.vehicle-mpg-note { padding: 12px 13px; background: #f1e5cf; color: #5f4d31; border-left: 3px solid var(--gold); }
.vehicle-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.vehicle-marketplace-button { grid-column: 1 / -1; }

.vehicle-videos { margin-top: 44px; }
.vehicle-section-heading { max-width: 720px; }
.vehicle-section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.04em; }
.vehicle-section-heading > p:last-child { margin: 10px 0 0; color: var(--ink-soft); }
.vehicle-video-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vehicle-video-grid figure { margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); }
.vehicle-video-grid video { width: 100%; max-height: 570px; display: block; background: #151619; aspect-ratio: 9 / 16; object-fit: contain; }
.vehicle-video-grid figcaption { padding: 10px 3px 2px; color: var(--ink-soft); font-size: .86rem; font-weight: 600; }
.vehicle-video-grid-single { max-width: 420px; }
.vehicle-disclosure { margin-top: 28px; padding: 20px 22px; display: flex; align-items: start; gap: 18px; background: #f1e5cf; border: 1px solid #dec69e; }
.vehicle-disclosure strong { white-space: nowrap; color: #5f4d31; }
.vehicle-disclosure p { margin: 0; color: #655640; }

@media (max-width: 980px) {
  .catalog-intro { align-items: start; flex-direction: column; gap: 28px; }
  .visit-card { width: 100%; min-width: 0; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .machine-grid { grid-template-columns: 1fr; }
  .vehicle-intro { align-items: start; flex-direction: column; gap: 26px; }
  .vehicle-price-card { width: 100%; min-width: 0; }
  .vehicle-layout { grid-template-columns: 1fr; }
  .vehicle-details-card { position: static; }
}

@media (max-width: 650px) {
  body { padding-bottom: 65px; }
  .site-header { min-height: 70px; padding: 12px 18px; flex-wrap: wrap; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: .92rem; }
  .brand-copy small { font-size: .68rem; }
  .header-actions { display: none; }
  .main-nav { width: 100%; order: 2; }
  .main-nav a { flex: 1; text-align: center; }
  .catalog-intro { padding: 32px 20px 24px; }
  h1 { font-size: 2.7rem; }
  .intro-copy { font-size: .95rem; }
  .visit-card { padding: 16px; }
  .sample-notice { margin: 14px 15px 0; align-items: start; }
  .catalog { padding: 22px 15px 44px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field, .stock-toggle { grid-column: 1 / -1; }
  .results-row { min-height: 66px; }
  .inventory-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-image { height: 240px; }
  footer { padding: 28px 20px; flex-direction: column; }
  .footer-links { align-items: start; flex-direction: column; gap: 8px; }
  .mobile-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 40; height: 65px; display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); box-shadow: 0 -5px 22px rgba(0,0,0,.18); }
  .mobile-actions a { display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; }
  .mobile-actions a + a { background: var(--gold); color: #18130b; }
  .sheet-image { height: 330px; }
  .sheet-content { padding: 22px 18px; }
  .sheet-heading { flex-direction: column; gap: 12px; }
  .sheet-heading h2 { font-size: 1.65rem; }
  .sheet-actions { grid-template-columns: 1fr; }
  .machine-catalog { padding: 22px 15px 44px; }
  .machine-image { height: 250px; }
  .machine-thumbnails button { height: 62px; }
  .machine-body { padding: 19px; }
  .machine-heading { flex-direction: column; gap: 9px; }
  .machine-specs li { align-items: start; }
  .machine-specs strong { max-width: 62%; }
  .machine-actions { grid-template-columns: 1fr; }
  .equipment-disclaimer { flex-direction: column; gap: 5px; }
  .vehicle-intro { padding: 32px 20px 26px; }
  .vehicle-catalog { padding: 20px 15px 44px; }
  .vehicle-main-photo { height: 520px; min-height: 0; }
  .vehicle-thumbnails { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .vehicle-thumbnails button { flex: 0 0 82px; height: 82px; scroll-snap-align: start; }
  .vehicle-details-card { padding: 20px; }
  .vehicle-actions { grid-template-columns: 1fr; }
  .vehicle-marketplace-button { grid-column: auto; }
  .vehicle-video-grid { grid-template-columns: 1fr; }
  .vehicle-video-grid video { max-height: 640px; }
  .vehicle-disclosure { flex-direction: column; gap: 6px; }
  .vehicle-disclosure strong { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Soft pink is an illustrative catalog color preview. */
.soft-pink-preview { filter: sepia(.35) saturate(1.8) hue-rotate(300deg); }
.product-carousel-slide:has(.soft-pink-preview)::after { content: ""; position: absolute; right: 12px; top: 12px; width: 28px; height: 28px; border: 2px solid white; border-radius: 50%; background: url('./assets/soft-pink-reference.png') center / cover; box-shadow: 0 1px 5px #0003; }
