/* =====================================================================
   THE MOTOR COLLECTION — Stylesheet
   Pure CSS. No build step. No dependencies.
   Palette: near-black ink, warm ivory, garnet red.
   Type: Cormorant Garamond (display serif) + Jost (sans UI).
   ===================================================================== */

/* -------------------- Design Tokens -------------------- */
:root {
  --ink:        #0b0b0d;
  --ink-2:      #101013;
  --ink-3:      #17171b;
  --ink-4:      #202027;

  --ivory:      #f6f4ef;
  --ivory-2:    #eceae2;
  --ivory-3:    #e2ded3;

  --accent:      #a41e34;   /* deep garnet — for light surfaces & solid fills */
  --accent-2:    #c9435a;   /* brighter garnet — text/lines on dark surfaces & hovers */
  --accent-deep: #7a1626;   /* bordeaux — deep solid fills */
  --accent-soft: rgba(164, 30, 52, 0.14);

  --text-dark:  #1c1c1e;      /* body text on light */
  --muted-dark: #6d6a64;      /* muted on light */
  --text-light: #efece5;      /* body text on dark */
  --muted-light:#9a968c;      /* muted on dark */

  --line-light: rgba(19, 19, 22, 0.12);
  --line-dark:  rgba(255, 255, 255, 0.12);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 78px;
  --topbar-h: 40px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
select, input, textarea { font-family: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--ivory); }

/* -------------------- Layout helpers -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

/* Consistent section rhythm */
.about, .collection, .sold, .services, .quote, .contact {
  padding-block: clamp(72px, 10vw, 140px);
}

/* -------------------- Typography atoms -------------------- */
.overline {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.overline--light { color: var(--accent-2); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}
.section-title--light { color: var(--ivory); }
.section-title em { font-style: italic; color: var(--accent); }

.section-sub {
  margin-top: 1.1rem;
  color: var(--muted-light);
  font-size: 1.02rem;
  max-width: 46ch;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  justify-content: center;
  text-align: center;
}
.section-head--center .section-sub { margin-inline: auto; }

/* -------------------- Buttons -------------------- */
.btn {
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.05em 2.2em;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: var(--ivory); }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-2px); }

.btn--outline { border-color: rgba(255,255,255,0.4); color: var(--ivory); }
.btn--outline:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--outline.btn--dark { border-color: var(--line-light); color: var(--text-dark); }
.btn--outline.btn--dark:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.btn--ghost { border-color: var(--accent-2); color: var(--accent-2); padding: 0.7em 1.5em; }
.btn--ghost:hover { background: var(--accent-2); color: var(--ivory); }

.btn--block { width: 100%; }

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dark);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: gap 0.35s var(--ease), color 0.35s var(--ease);
}
.link-arrow span { color: var(--accent); transition: transform 0.35s var(--ease); }
.link-arrow:hover { gap: 1em; }
.link-arrow:hover span { transform: translateX(4px); }

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.8em 1.4em;
}
.skip-link:focus { left: 0; }

/* -------------------- Top bar -------------------- */
.topbar {
  background: transparent;
  color: var(--muted-light);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
}
.topbar__item { transition: color 0.3s; }
.topbar__contact a:hover { color: var(--accent-2); }
.topbar__sep { margin-inline: 0.7em; opacity: 0.4; }
.topbar__location { display: inline-flex; align-items: center; gap: 0.6em; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* -------------------- Navbar -------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

/* Solid state on scroll */
.nav.is-scrolled {
  background: rgba(11, 11, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ivory);
}
.brand__tag {
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-top: 4px;
  padding-left: 2px;
}

/* Nav links */
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links > a:not(.btn) {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  position: relative;
  padding-block: 4px;
  transition: color 0.3s;
}
.nav__links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent-2);
  transition: width 0.35s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--accent-2); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

/* Hamburger */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  width: 24px; height: 1.5px;
  background: var(--ivory);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
  /* Pull the hero up behind the (transparent) top bar + nav so there is no seam */
  margin-top: calc(-1 * var(--nav-h) - var(--topbar-h));
  padding-top: calc(var(--nav-h) + var(--topbar-h));
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 78% 15%, rgba(164,30,52,0.16), transparent 45%),
    linear-gradient(180deg, #0d0d10 0%, #0b0b0d 55%, #08080a 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
  background-blend-mode: normal, normal, luminosity;
  z-index: -2;
}
/* Vignette + faint grid texture */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(0,0,0,0.55) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 90px);
}
.hero__glow {
  position: absolute;
  width: 60vw; height: 60vw;
  right: -12vw; top: -18vw;
  background: radial-gradient(circle, rgba(164,30,52,0.18), transparent 62%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.6rem;
}
.hero__title em { font-style: italic; color: var(--accent-2); }
.hero__lede {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  font-weight: 300;
  color: var(--muted-light);
  max-width: 56ch;
  margin-bottom: 2.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted-light);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--accent-2), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* -------------------- Marque marquee -------------------- */
.marques {
  background: var(--ink);
  border-block: 1px solid rgba(255,255,255,0.06);
  padding-block: 1.4rem;
  overflow: hidden;
}
.marquee { position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14%; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted-light);
  white-space: nowrap;
}
.marquee__track span:nth-child(even) { color: var(--accent-2); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------- About -------------------- */
.about { background: var(--ivory); }
.collection { background: var(--ivory); }
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.frame { position: relative; }
.frame__img {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, #17171b, #26262e),
    var(--ink);
  border: 1px solid var(--line-light);
  position: relative;
  overflow: hidden;
}
.frame__img::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; letter-spacing: 0.1em;
  color: rgba(164,30,52,0.5);
}
.frame__img::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(164,30,52,0.25);
  pointer-events: none;
}
.frame__badge {
  position: absolute;
  right: -22px; bottom: 34px;
  background: var(--accent);
  color: var(--ink);
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 0.7rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.frame__badge-num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 500; }
.frame__badge-label { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4; }

.about__text { color: var(--muted-dark); margin-bottom: 1.2rem; font-size: 1.04rem; max-width: 52ch; }
.about__list { margin: 1.8rem 0; display: grid; gap: 0.9rem; }
.about__list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-dark);
  font-size: 0.98rem;
}
.about__list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.about .section-title { margin-bottom: 1.6rem; }

/* -------------------- Card grid (shared) -------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.4vw, 2rem);
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,0.14); }

.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 0%, #23232b, #101014);
}
/* Elegant monogram placeholder shown behind the image */
.card__media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../assets/plate.svg");
  background-size: 120px auto;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.55;
}
.card__img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.card:hover .card__img { transform: scale(1.05); }

.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  background: rgba(11,11,13,0.72);
  backdrop-filter: blur(6px);
  color: var(--ivory);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5em 0.9em;
  border: 1px solid rgba(255,255,255,0.14);
}

.card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.card__spec {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem;
  color: var(--muted-dark);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}
.card__spec span { display: inline-flex; align-items: center; gap: 0.45em; }
.card__spec span:not(:last-child)::after {
  content: ""; width: 3px; height: 3px; border-radius: 50%;
  background: var(--accent); margin-left: 0.7rem;
}
.card__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-light);
}
.card__price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-dark);
}
.card__price small { font-size: 0.7rem; color: var(--muted-dark); letter-spacing: 0.14em; text-transform: uppercase; }
.card__cta {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.4em;
  transition: gap 0.3s var(--ease);
}
.card:hover .card__cta { gap: 0.9em; }

/* Filters */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding: 0.6em 1.2em;
  border: 1px solid var(--line-light);
  transition: all 0.3s var(--ease);
}
.filter:hover { color: var(--text-dark); border-color: var(--accent); }
.filter.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.collection__foot { text-align: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.noscript-note { text-align: center; color: var(--muted-dark); }

/* -------------------- Recently Sold -------------------- */
.sold {
  background: var(--ink);
  color: var(--text-light);
}
.sold .card {
  background: var(--ink-2);
  border-color: rgba(255,255,255,0.08);
}
.sold .card:hover { box-shadow: 0 26px 60px rgba(0,0,0,0.5); }
.sold .card__name { color: var(--ivory); }
.sold .card__spec { color: var(--muted-light); }
.sold .card__foot { border-top-color: rgba(255,255,255,0.1); }
.sold .card__price { color: var(--ivory); }
.sold .card__img { filter: grayscale(0.35) brightness(0.92); }
.sold .card__media::before { opacity: 0.4; }

.card__sold {
  position: absolute;
  top: 16px; right: -34px;
  z-index: 3;
  background: var(--accent);
  color: var(--ivory);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 0.4em 3rem;
  transform: rotate(45deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.grid--sold .card__cta { color: var(--muted-light); }

/* -------------------- Services -------------------- */
.services { background: var(--ivory-2); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.service {
  background: var(--ivory);
  border: 1px solid var(--line-light);
  padding: 2.4rem 1.9rem;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.service:hover { transform: translateY(-6px); border-color: var(--accent); }
.service__icon {
  width: 54px; height: 54px;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.service__icon svg { width: 100%; height: 100%; stroke-linecap: round; stroke-linejoin: round; }
.service h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  color: var(--text-dark);
}
.service p { color: var(--muted-dark); font-size: 0.94rem; }

/* -------------------- Quote / testimonial -------------------- */
.quote {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(164,30,52,0.08), transparent 50%),
    var(--ink);
  color: var(--ivory);
  text-align: center;
}
.quote__inner { max-width: 860px; margin-inline: auto; position: relative; }
.quote__mark {
  font-family: var(--serif);
  font-size: 7rem;
  line-height: 0.5;
  color: var(--accent-2);
  opacity: 0.5;
  margin-bottom: 1rem;
}
.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.quote__author {
  margin-top: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* -------------------- Contact -------------------- */
.contact { background: var(--ivory); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__lede { color: var(--muted-dark); margin-bottom: 2.4rem; max-width: 44ch; }
.contact .section-title { margin-bottom: 1.4rem; }

.contact__details { display: grid; gap: 1.5rem; margin-bottom: 2.2rem; }
.contact__details li { display: grid; gap: 0.3rem; }
.contact__label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact__value { font-size: 1.08rem; color: var(--text-dark); }
a.contact__value { transition: color 0.3s; }
a.contact__value:hover { color: var(--accent); }

/* Form */
.contact__form-wrap {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: 0 30px 70px rgba(0,0,0,0.06);
}
.form__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  color: var(--text-dark);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.9em 1em;
  border: 1px solid var(--line-light);
  background: var(--ivory);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field textarea { resize: vertical; }
.form__note { margin-top: 1rem; font-size: 0.86rem; min-height: 1.2em; }
.form__note.is-ok { color: #2e7d5b; }
.form__note.is-err { color: #b3543f; }

/* -------------------- Footer -------------------- */
.footer { background: var(--ink); color: var(--muted-light); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 6vw, 5rem);
}
.brand--footer { margin-bottom: 1.3rem; }
.footer__blurb { max-width: 34ch; font-size: 0.92rem; margin-bottom: 1.6rem; }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--muted-light);
  transition: all 0.35s var(--ease);
}
.footer__social a:hover { background: var(--accent); color: var(--ivory); border-color: var(--accent); transform: translateY(-3px); }
.footer__social svg { width: 18px; height: 18px; }

.footer__col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1.3rem;
  font-weight: 500;
}
.footer__col a, .footer__col p { display: block; font-size: 0.92rem; margin-bottom: 0.75rem; transition: color 0.3s; }
.footer__col a:hover { color: var(--accent-2); }
.footer__fine { font-size: 0.8rem; opacity: 0.7; margin-top: 0.4rem; }

.footer__bar { border-top: 1px solid rgba(255,255,255,0.08); }
.footer__bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.6rem;
  font-size: 0.8rem;
  flex-wrap: wrap; gap: 0.6rem;
}
.footer__legal a:hover { color: var(--accent-2); }
.footer__legal span { opacity: 0.4; margin-inline: 0.4em; }

/* -------------------- Reveal animation -------------------- */
/* Hidden state only applies when JS is available (html.js), so the page is
   fully visible if JavaScript is disabled or fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in-view { opacity: 1; transform: none; }

/* Fade-only variant for hover-animated cards (no transform → no hover conflict) */
.js .reveal-fade { opacity: 0; transition: opacity 0.9s var(--ease); }
.js .reveal-fade.in-view { opacity: 1; }

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --topbar-h: 0px; }
  .topbar { display: none; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem 2.4rem;
    background: var(--ink-2);
    border-left: 1px solid rgba(255,255,255,0.08);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 999;
  }
  .nav.is-open .nav__links { transform: translateX(0); }
  .nav__links > a:not(.btn) { font-size: 1rem; }
  .nav__cta { margin-top: 0.6rem; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .frame__badge { right: 0; }

  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; }
  .grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { flex: 1; }
  .form__row { grid-template-columns: 1fr; }
  .frame__badge { padding: 1rem 1.1rem; }
  .frame__badge-num { font-size: 2rem; }
}

/* =====================================================================
   Clickable card wrapper (entire card links to the vehicle page)
   ===================================================================== */
.card__link { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; color: inherit; }

/* =====================================================================
   Interior pages (vehicle detail) — solid nav over a light page
   ===================================================================== */
.page--interior { background: var(--ivory); }
.page--interior .nav {
  background: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Breadcrumbs */
.crumbs {
  padding-top: 1.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.crumbs a { transition: color 0.3s; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text-dark); }

/* Vehicle detail layout */
.vehicle {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  align-items: start;
}
.vehicle__gallery { position: sticky; top: calc(var(--nav-h) + 20px); }

/* Gallery */
.gallery__main { aspect-ratio: 16 / 10; border: 1px solid var(--line-light); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-top: 0.7rem; }
.thumb {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-light);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: radial-gradient(120% 120% at 50% 0%, #23232b, #101014);
}
.thumb::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/plate.svg") center / 64px no-repeat; opacity: 0.4;
}
.thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.thumb.is-active { border-color: var(--accent); }
.thumb:hover img { opacity: 0.85; }

/* Vehicle body */
.vehicle__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--text-dark);
  margin: 0.3rem 0 0.6rem;
}
.vehicle__price {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--accent);
  margin-bottom: 1.8rem;
}
.vehicle__price.is-sold { color: var(--muted-dark); }

.vehicle__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  margin-bottom: 2rem;
}
.spec { background: #fff; padding: 0.9rem 1.1rem; display: flex; flex-direction: column; gap: 0.2rem; }
.spec__label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.spec__value { font-size: 0.98rem; color: var(--text-dark); }

.vehicle__desc { color: var(--muted-dark); margin-bottom: 2rem; }
.vehicle__desc p { margin-bottom: 1rem; }

.vehicle__features { margin-bottom: 2rem; }
.vehicle__features h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 500;
  color: var(--text-dark); margin-bottom: 1rem;
}
.vehicle__features ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.vehicle__features li { position: relative; padding-left: 1.5rem; font-size: 0.94rem; color: var(--text-dark); }
.vehicle__features li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border: 1px solid var(--accent); transform: rotate(45deg);
}

.vehicle__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.vehicle__cta .btn { flex: 1; }
.vehicle__note { margin-top: 1rem; font-size: 0.8rem; color: var(--muted-dark); }

/* Related + not-found */
.related { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--line-light); }
.notfound { text-align: center; padding: clamp(5rem, 12vw, 9rem) 0; }
.notfound p { color: var(--muted-dark); margin: 1rem 0 2rem; }

@media (max-width: 860px) {
  .vehicle { grid-template-columns: 1fr; }
  .vehicle__gallery { position: static; }
}
@media (max-width: 480px) {
  .vehicle__specs { grid-template-columns: 1fr; }
  .vehicle__features ul { grid-template-columns: 1fr; }
  .vehicle__cta { flex-direction: column; }
}

/* -------------------- Reduced motion -------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-fade { opacity: 1 !important; transform: none !important; transition: none; }
  .marquee__track, .hero__scroll-line { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
