/* =========================================================================
   81 Auto — the instrument panel
   -------------------------------------------------------------------------
   The logo is a gauge, so the whole site is built as a precision cluster:
   numerics in mono so they align in columns, a single gold hairline arc as
   the recurring structural motif, and gold used as *light* — rules, type,
   rim highlights — never as large filled blocks. That restraint is the line
   between sleek and tacky, and it is load-bearing on every screen.
   ========================================================================= */

/* -------------------------------------------------------------- tokens */

:root {
  /* Ground. Not pure black — a hair of warmth keeps the gold from going acid. */
  --ink: #08080a;
  --surface: #111114;
  --surface-2: #17171b;
  --surface-3: #1e1e23;
  --line: #232329;
  --line-soft: #1a1a1f;

  /* One gold ramp, three stops, used everywhere. Consistency is what makes it
     read as a brand rather than as decoration. */
  --gold-deep: #8a6a15;
  --gold: #c9a227;
  --gold-light: #f2dfa0;
  --gold-grad: linear-gradient(135deg, #f5e3ae 0%, #c9a227 46%, #8a6a15 100%);

  --text: #f4f3f1;
  --muted: #9a9aa2;
  --muted-2: #6e6e77;

  --ok: #6fcf97;
  --err: #e06c6c;

  --radius: 4px;
  --radius-lg: 8px;

  /* A single easing for everything mechanical. A gauge needle does not bounce. */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shell: 1280px;
  --gutter: clamp(20px, 5vw, 56px);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", monospace;

  --header-h: 76px;
}

/* -------------------------------------------------------------- reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* The browser's own [hidden] rule lives in the user-agent stylesheet, and ANY author
   declaration beats it regardless of specificity. `.card { display: flex }` therefore
   silently un-hid every card the filters had hidden — the flag was set, the element
   stayed on screen. Anything given `display` needs this to make `hidden` mean hidden. */
[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: rgba(201, 162, 39, 0.28);
  color: #fff;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold);
  color: #14100a;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

/* -------------------------------------------------------------- type */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide {
  max-width: 1560px;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.display {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

/* Each headline line is its own clipping box, so the reveal can slide the text up
   out of nothing. At a line-height below 1 that box is shorter than the type, and
   it was slicing the descenders off — the g in "right" lost its tail. The padding
   gives the descender somewhere to live and the matching negative margin takes the
   space back out of the layout, so the lines still set tight. */
.display .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.display .line > span {
  display: block;
}

.h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

.h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 56ch;
}

/* The eyebrow is the site's connective tissue — a mono micro-label with a
   gold tick, used above every section so the pages feel like one instrument. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-grad);
  flex: none;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* -------------------------------------------------------------- rules */

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

.rule--gold {
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55) 50%, transparent);
}

/* -------------------------------------------------------------- buttons */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 50px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  --btn-bd: var(--gold);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-fg: #14100a;
  --btn-bd: var(--gold);
  font-weight: 800;
}

.btn--gold:hover {
  --btn-bg: var(--gold-light);
  --btn-bd: var(--gold-light);
}

.btn--ghost {
  --btn-bd: var(--line);
}
.btn--ghost:hover {
  --btn-fg: var(--gold-light);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 10px 18px;
  min-height: 42px;
  font-size: 0.82rem;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* A gold sheen that wipes across the button on hover. Subtle enough to read as
   material rather than as an effect. */
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn--gold:hover::after {
  transform: translateX(120%);
}

/* -------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header[data-scrolled] {
  border-bottom-color: var(--line);
  background: rgba(8, 8, 10, 0.92);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1560px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-right: auto;
}

.brand img {
  width: 92px;
  height: auto;
}

.brand__sub {
  display: none;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-left: 1px solid var(--line);
  padding-left: 12px;
  line-height: 1.4;
}

@media (min-width: 900px) {
  .brand__sub {
    display: block;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile drawer */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px var(--gutter) 40px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.drawer[data-open] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (min-width: 900px) {
  .drawer {
    display: none;
  }
}

.drawer a {
  padding: 16px 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-soft);
}

.drawer .btn {
  margin-top: 24px;
}

.drawer__meta {
  margin-top: auto;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 2;
}

/* -------------------------------------------------------------- hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 900px);
  padding: 100px 0 72px;
  overflow: hidden;
  isolation: isolate;
}

/* The recurring motif, and the one thing on the page that moves by itself: the
   logo's gauge scaled up to architecture, sweeping to 81 on load. */
.hero__dial {
  position: absolute;
  top: 50%;
  left: 74%;
  width: min(86vh, 780px);
  aspect-ratio: 1;
  translate: -50% -50%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
  /* Background, not foreground. The gauge is the loudest thing on the page if
     left at full strength, and it sits directly behind the headline. */
  opacity: 0.5;
}

@media (max-width: 900px) {
  .hero__dial {
    left: 84%;
    width: min(80vh, 560px);
    opacity: 0.32;
  }
}

/* The unlit dial: always present, so the gauge reads as a gauge before anything
   animates and stays legible if motion never runs. */
.hero__dial-dim {
  color: #26262c;
}

.hero__dial-needle {
  transform-box: view-box;
  transform-origin: 300px 300px;
  filter: drop-shadow(0 0 18px rgba(201, 162, 39, 0.3));
}

.hero__dial-ring {
  filter: drop-shadow(0 0 12px rgba(201, 162, 39, 0.35));
}

.hero__dial-read {
  font-family: var(--mono);
  font-size: 78px;
  font-weight: 500;
  letter-spacing: -0.05em;
  fill: var(--gold-light);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero__dial-read {
    opacity: 0.4;
  }
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 90vh;
  z-index: -2;
  background: radial-gradient(circle at 60% 40%, rgba(201, 162, 39, 0.11), transparent 62%);
  pointer-events: none;
}

/* A faint grid, like a gauge face's substrate. Fades out toward the bottom so
   the eye is not pulled off the headline. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 78%);
  opacity: 0.7;
  pointer-events: none;
}

/* Narrower than it looks like it should be: the dial occupies the right of the
   hero, and the headline has to stop before it gets there. */
.hero__inner {
  max-width: 640px;
}

.hero .display {
  margin-bottom: 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Hero stat strip — the first appearance of the dashboard-readout pattern. */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
}

.hero__stats div {
  background: var(--ink);
  padding: 20px 22px;
}

.hero__stats dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.hero__stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--gold-light);
}

/* -------------------------------------------------------------- sections */

.section {
  padding: clamp(72px, 10vw, 132px) 0;
}

.section--tight {
  padding: clamp(52px, 7vw, 88px) 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}

.section__head p {
  margin-top: 16px;
}

/* -------------------------------------------------------------- vehicle card */

/* Three columns at desktop, held explicitly rather than left to auto-fill — on the
   wide shell the detail page uses, auto-fill would drop to four and the cards would
   stop matching the rest of the site. */
.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

@media (min-width: 660px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.card:hover {
  border-color: rgba(201, 162, 39, 0.4);
  transform: translateY(-3px);
}

/* Spotlight-follow: a soft gold pool tracks the cursor across the card. The
   coordinates come from site.js; with JS off the layer simply never shows. */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(201, 162, 39, 0.13),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.5s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.86) 0%, transparent 46%);
}

.card__price {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--gold-light);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.card__tag {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  padding: 6px 11px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 39, 0.34);
  border-radius: 999px;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 20px 20px;
}

.card__title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card__trim {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* The spec row: four readouts separated by hairlines, mono throughout. This is
   the pattern the detail page expands into a full cluster. */
.card__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card__specs div {
  text-align: center;
  border-right: 1px solid var(--line-soft);
  padding: 0 4px;
}

.card__specs div:last-child {
  border-right: 0;
}

.card__specs dt {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}

.card__specs dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  white-space: nowrap;
}

.card__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 20px;
}

/* The whole card is a link target; the buttons sit above it. */
.card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.card__actions .btn {
  position: relative;
  z-index: 4;
}

/* -------------------------------------------------------------- progressive grid */

/* A bare scroll sentinel, not a control. It only exists once the inventory grows
   past the nine that fit the grid, and even then the extra cards fade themselves in
   rather than waiting behind a button. */
.more {
  height: 1px;
  margin-top: 40px;
}

/* -------------------------------------------------------------- scrub */

/* The walkaround. A card expands from its own thumbnail to fill the viewport and
   scrolling steps through that vehicle's photo sequence. The scroller is a
   transparent sheet on top; the stage underneath never scrolls, which is what
   makes the frames feel scrubbed rather than paged. */
.scrub {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(4, 4, 6, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.scrub[hidden] {
  display: none;
}

.scrub[data-open] {
  opacity: 1;
}

.scrub__scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  z-index: 3;
}

.scrub__scroller::-webkit-scrollbar {
  width: 0;
}

.scrub__runway {
  /* Long enough that a full sequence takes a comfortable scroll, short enough
     that it never feels like a chore. Height is set by JS from the frame count. */
  height: 400vh;
}

.scrub__stage {
  position: absolute;
  margin: 0;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  will-change: transform, width, height;
}

.scrub__frames {
  position: absolute;
  inset: 0;
}

.scrub__frames img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.scrub__frames img[data-active] {
  opacity: 1;
}

.scrub__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 6, 8, 0.9) 0%, transparent 42%);
  pointer-events: none;
}

.scrub__meta {
  position: absolute;
  left: clamp(18px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 36px);
  z-index: 2;
  max-width: min(90%, 640px);
}

.scrub__trim {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.scrub__title {
  font-size: clamp(1.3rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.scrub__specs {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
  margin-top: clamp(12px, 2vw, 20px);
}

.scrub__specs dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.scrub__specs dd {
  margin: 0;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  color: var(--text);
}

.scrub__counter {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 0.72rem;
  color: var(--gold-light);
  background: rgba(8, 8, 10, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.scrub__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.scrub__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold-grad);
}

.scrub__chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 2.5vh, 28px);
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.25s;
  pointer-events: none;
}

.scrub[data-open] .scrub__chrome {
  opacity: 1;
}

.scrub__actions {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.scrub__hint {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: opacity 0.3s var(--ease);
}

.scrub__hint[data-done] {
  opacity: 0;
}

.scrub__close {
  position: absolute;
  top: clamp(14px, 2.5vh, 26px);
  right: clamp(14px, 2.5vw, 26px);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(8, 8, 10, 0.7);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.scrub__close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

@media (max-width: 700px) {
  .scrub__specs div:nth-child(3) {
    display: none;
  }
}

/* -------------------------------------------------------------- filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  padding: 22px;
  margin-bottom: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > label,
.field__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 14px;
  min-height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--surface-3);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-3);
}

.select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23c9a227' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px;
  cursor: pointer;
}

.textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

/* Seven controls wrap to two rows on a laptop. Without a ceiling the two that land
   on the second row grow to fill it and dwarf the six above them, so cap the grown
   width and let the row simply end. */
.filters .field {
  flex: 1 1 150px;
  max-width: 220px;
}

.filters__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  padding-bottom: 13px;
  white-space: nowrap;
}

.filters__count b {
  color: var(--gold-light);
  font-weight: 500;
}

.empty {
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

/* -------------------------------------------------------------- detail page */

.vdp {
  padding-top: 34px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-2);
  margin-bottom: 26px;
}

.crumbs a:hover {
  color: var(--gold);
}

.vdp__layout {
  display: grid;
  gap: 44px;
  align-items: start;
}

/* A grid item defaults to min-width:auto, so it refuses to shrink below its
   content. The thumbnail strip is 15 × 96px of grid columns, which would force
   this column ~1580px wide and put the whole page into horizontal scroll on a
   phone. min-width:0 lets the column shrink and hands the overflow to the
   thumbnail strip's own overflow-x, which is where it belongs. */
.vdp__layout > *,
.gallery {
  min-width: 0;
}

@media (min-width: 1060px) {
  .vdp__layout {
    grid-template-columns: minmax(0, 1fr) 372px;
    gap: 52px;
  }
}

/* Gallery */

.gallery__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.gallery__stage img[data-active] {
  opacity: 1;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(8, 8, 10, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.3s var(--ease), border-color 0.25s var(--ease);
}

.gallery:hover .gallery__nav,
.gallery__nav:focus-visible {
  opacity: 1;
}

.gallery__nav:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.gallery__nav--prev {
  left: 16px;
}
.gallery__nav--next {
  right: 16px;
}

.gallery__counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold-light);
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 96px;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: 6px;
}

.gallery__thumbs::-webkit-scrollbar {
  height: 6px;
}
.gallery__thumbs::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.gallery__thumbs button {
  aspect-ratio: 4 / 3;
  padding: 0;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

.gallery__thumbs button:hover {
  opacity: 0.85;
}

.gallery__thumbs button[aria-current="true"] {
  opacity: 1;
  border-color: var(--gold);
}

.gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Spec cluster — the dashboard readout, full size */

.cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cluster > div {
  background: var(--surface);
  padding: 20px 22px;
}

.cluster dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.cluster dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cluster dd.is-lg {
  font-size: 1.3rem;
  color: var(--gold-light);
}

/* Inquiry rail */

.rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 1060px) {
  .rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.rail__card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.rail__price {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--gold-light);
}

.rail__price-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.rail__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.rail__contact {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.rail__contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.rail__contact a:hover {
  color: var(--gold-light);
}

/* Share row — the legacy detail pages carried Facebook, X and LinkedIn share
   links, so they come across too. */
.share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.share__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-right: auto;
}

.share__link {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.share__link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* Sticky mobile inquiry bar */

.inquiry-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform 0.35s var(--ease);
}

.inquiry-bar[data-shown] {
  transform: none;
}

@media (min-width: 1060px) {
  .inquiry-bar {
    display: none;
  }
}

/* -------------------------------------------------------------- calculator */

.calc {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.calc__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.calc__out {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.calc__out b {
  font-family: var(--mono);
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--gold-light);
}

.disclaimer {
  margin-top: 18px;
  font-size: 0.74rem;
  line-height: 1.65;
  color: var(--muted-2);
}

/* -------------------------------------------------------------- prose */

.prose {
  max-width: 74ch;
}

.prose h2 {
  font-size: 1.34rem;
  margin: 44px 0 14px;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 14px;
}

.prose ul {
  list-style: none;
  padding-left: 0;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-head {
  padding: clamp(52px, 8vw, 92px) 0 clamp(32px, 4vw, 48px);
}

/* -------------------------------------------------------------- feature bento */

.bento {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

.tile {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.35s var(--ease);
}

.tile:hover {
  border-color: rgba(201, 162, 39, 0.34);
}

/* A gold beam that traces the top edge on hover — the 21st.dev animated-beam
   idea, done with a gradient and a transform instead of a canvas. */
.tile::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease-out);
}

.tile:hover::after {
  transform: translateX(100%);
}

.tile__n {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}

.tile h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}

.tile p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* -------------------------------------------------------------- visit strip */

.visit {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

@media (min-width: 860px) {
  .visit {
    grid-template-columns: 1fr 1fr;
  }
}

.visit__body {
  padding: clamp(30px, 4vw, 52px);
}

/* An iframe is a replaced element with its own intrinsic height, so it will not
   stretch to its grid row the way a div does — it sat short next to the taller
   hours column, leaving a band of empty card beside the map. An explicit 100%
   height plus the stretch makes it fill the row. */
.visit__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  align-self: stretch;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.86) brightness(0.94);
}

.hours {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
}

.hours div:last-child {
  border-bottom: 0;
}

.hours dt {
  color: var(--muted);
}

.hours dd {
  margin: 0;
  color: var(--text);
}

.hours div[data-today] dt,
.hours div[data-today] dd {
  color: var(--gold-light);
}

/* -------------------------------------------------------------- CTA band */

.cta-band {
  position: relative;
  padding: clamp(60px, 9vw, 108px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(201, 162, 39, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-band .shell {
  position: relative;
}

.cta-band .lede {
  margin-inline: auto;
  margin-top: 18px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 36px;
}

/* -------------------------------------------------------------- forms */

.form {
  display: grid;
  gap: 18px;
}

.form__row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice span {
  display: block;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.choice input:checked + span {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Honeypot — visually gone but not display:none, which some bots detect. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  border: 1px solid var(--line);
}

.form__status[data-state="ok"] {
  border-color: rgba(111, 207, 151, 0.4);
  color: var(--ok);
  background: rgba(111, 207, 151, 0.07);
}

.form__status[data-state="err"] {
  border-color: rgba(224, 108, 108, 0.4);
  color: var(--err);
  background: rgba(224, 108, 108, 0.07);
}

.form__status[hidden] {
  display: none;
}

/* -------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal[data-open] {
  opacity: 1;
  pointer-events: auto;
}

.modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.35s var(--ease-out);
}

.modal[data-open] .modal__panel {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.modal__close:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.modal__vehicle {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 14px;
  margin: 20px 0 26px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.modal__vehicle img {
  width: 84px;
  height: 63px;
  object-fit: cover;
  border-radius: 3px;
  flex: none;
}

.modal__vehicle strong {
  display: block;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.modal__vehicle span {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted-2);
}

/* -------------------------------------------------------------- footer */

.site-footer {
  padding: clamp(56px, 7vw, 88px) 0 40px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 44px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.footer__brand img {
  width: 108px;
  margin-bottom: 20px;
}

.footer__grid .footer__h {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.footer__grid li {
  margin-bottom: 11px;
}

.footer__grid a,
.footer__grid address {
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.75;
  transition: color 0.2s var(--ease);
}

.footer__grid a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted-2);
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__legal {
  margin-top: 26px;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted-2);
  max-width: 92ch;
}

/* Same credit line, same treatment, as bcuttery and Shmitty Media. */
.credit {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(244 243 241 / 26%);
  text-align: center;
}

/* -------------------------------------------------------------- motion */

/* Elements start hidden only when JS is present to reveal them. Without JS the
   .js class is never set and everything renders in place — the site is fully
   readable with scripting off. */
.js [data-reveal] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
