:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --card-bg: #202124;
  --card-text: #f5f3ee;
  --card-muted: #cfcfcf;
  --card-subtle: #9f9f9f;
  --card-line: rgba(245, 243, 238, 0.18);
  --card-soft: rgba(245, 243, 238, 0.055);
  --card-accent: #e8a317;
  --dark-accent: #f0c14d;
  --card-scheme: dark;
  --panel: var(--card-bg);
  --panel-soft: #202124;
  --ink: #f5f3ee;
  --muted: #cfcfcf;
  --subtle: #8d8d8d;
  --line: rgba(245, 245, 245, 0.12);
  --accent: #e8a317;
  --accent-2: #f0c14d;
  --accent-contrast: #151618;
  --accent-metal: linear-gradient(105deg,
    color-mix(in srgb, var(--accent) 58%, #161719),
    color-mix(in srgb, var(--accent) 78%, #ffffff) 24%,
    color-mix(in srgb, var(--accent) 86%, #666b70) 48%,
    color-mix(in srgb, var(--accent) 66%, #ffffff) 68%,
    color-mix(in srgb, var(--accent) 62%, #292c30));
  --accent-soft: rgba(232, 163, 23, 0.16);
  --accent-glow: rgba(232, 163, 23, 0.35);
  --accent-wash: rgba(232, 163, 23, 0.12);
  --accent-haze: rgba(232, 163, 23, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --error: #e57373;
}

* {
  box-sizing: border-box;
}

/* Components using the yard's card colour get their own complete, contrast-
   safe colour context. This prevents global dark-theme greys being inherited
   by a light card (and the reverse). */
:is(.enquiry-card,.contact-card,.principle-card,.moment-card,.vehicle-card,.visit-content,.map-container,.detail-columns article,.contact-band) {
  --ink: var(--card-text);
  --muted: var(--card-muted);
  --subtle: var(--card-subtle);
  --line: var(--card-line);
  --panel: var(--card-bg);
  --panel-soft: var(--card-soft);
  --accent-2: var(--card-accent);
  color: var(--card-text);
  color-scheme: var(--card-scheme);
}

/* These surfaces are intentionally dark regardless of the page background. */
:is(.landing-intro,.site-header,.site-nav,.mobile-menu,.hero-panel,.inventory-controls,.vehicle-drawer,.why-statement,.why-philosophy,.mission-statement) {
  --ink: #f5f5f5;
  --muted: #cfcfcf;
  --subtle: #9f9f9f;
  --line: rgba(245,245,245,.16);
  --panel: #111111;
  --panel-soft: #191919;
  --accent-2: var(--dark-accent);
  color: var(--ink);
  color-scheme: dark;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, var(--accent-wash), transparent 360px),
    radial-gradient(circle at top left, var(--accent-haze), transparent 300px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.intro-active {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 3rem;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.015;
  mix-blend-mode: overlay;
}

/* Hero-specific grain animation */
main::before {
  position: absolute;
  top: 0;
  left: -50%;
  z-index: 0;
  width: 200%;
  height: 100%;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
  animation: grainMove 45s steps(10) infinite;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, black 60%, transparent 100%);
}

.landing-intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #050505;
  opacity: 1;
  transition: opacity 720ms ease, visibility 720ms ease;
}

/* Hold splash until tenant logo/tagline applied — prevents Blackline defaults flashing. */
.landing-intro[data-intro-pending="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

html[data-intro-viewed="true"] .landing-intro,
.landing-intro.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.landing-intro::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 44%, var(--accent-glow), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%);
  opacity: 0;
  animation: introAtmosphere 2500ms ease forwards;
}

.landing-intro::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 4rem;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent 4%, black 32%, transparent 86%);
}

.intro-glow {
  position: absolute;
  width: min(68vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(215, 217, 220, 0.28), transparent 38%),
    radial-gradient(circle, var(--accent-glow), transparent 68%);
  filter: blur(18px);
  opacity: 0;
  animation: introGlow 2500ms ease forwards;
}

.intro-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(78vw, 340px);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  animation: introReveal 2500ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.intro-logo {
  width: min(58vw, 230px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 0 42px var(--accent-glow)) drop-shadow(0 24px 60px rgba(0, 0, 0, 0.72));
  animation: introBreathe 2200ms ease-in-out 420ms infinite;
}

.intro-logo.is-empty {
  display: none;
}

/* Restart reveal animations only after branding is ready */
.landing-intro.is-branded .intro-content {
  animation: introReveal 2500ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.landing-intro.is-branded::before {
  animation: introAtmosphere 2500ms ease forwards;
}

.landing-intro.is-branded .intro-glow {
  animation: introGlow 2500ms ease forwards;
}

.landing-intro.is-branded .intro-tagline,
.landing-intro.is-branded .intro-dots {
  animation: introTagline 1800ms ease 620ms forwards;
}

.landing-intro:not(.is-branded) .intro-content,
.landing-intro:not(.is-branded)::before,
.landing-intro:not(.is-branded) .intro-glow,
.landing-intro:not(.is-branded) .intro-tagline,
.landing-intro:not(.is-branded) .intro-dots {
  animation: none !important;
}

.intro-tagline {
  margin: 0;
  color: rgba(245, 245, 245, 0.86);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  opacity: 0;
  animation: introTagline 1800ms ease 620ms forwards;
}

.intro-dots {
  display: inline-flex;
  gap: 8px;
  opacity: 0;
  animation: introTagline 1600ms ease 840ms forwards;
}

.intro-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 18px var(--accent-glow);
  animation: introDot 1200ms ease-in-out infinite;
}

.intro-dots span:nth-child(2) {
  animation-delay: 140ms;
}

.intro-dots span:nth-child(3) {
  animation-delay: 280ms;
}

.landing-intro.is-leaving ~ .site-header,
.landing-intro.is-leaving ~ main,
.landing-intro.is-leaving ~ .site-footer {
  animation: pageReveal 820ms ease both;
}

@keyframes introReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  30%,
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introTagline {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  42%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introGlow {
  0% {
    opacity: 0;
    transform: scale(0.82);
  }

  34%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introAtmosphere {
  0% {
    opacity: 0;
  }

  35%,
  100% {
    opacity: 1;
  }
}

@keyframes introBreathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

@keyframes introDot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes pageReveal {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .landing-intro,
  .landing-intro::before,
  .intro-glow,
  .intro-content,
  .intro-logo,
  .intro-tagline,
  .intro-dots,
  .intro-dots span {
    animation: none;
  }

  .intro-content,
  .intro-tagline,
  .intro-dots,
  .intro-glow,
  .landing-intro::before {
    opacity: 1;
  }

  /* Disable hero animations */
  .compact-hero::before,
  .compact-hero::after {
    animation: heroGlowFadeIn 0.5s ease forwards;
  }

  .hero-copy,
  .hero-panel {
    animation: none;
    opacity: 1;
  }

  main::before {
    animation: none;
  }
}

/* White-label enquiry pages */
.enquiry-page {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.enquiry-card,
.contact-card {
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--card-text);
  box-shadow: var(--shadow);
}

.public-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.public-form label {
  display: block;
  margin: 14px 0 6px;
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-form input,
.public-form select,
.public-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--panel-soft);
  color: var(--ink);
  font: inherit;
}

.public-form textarea { min-height: 132px; resize: vertical; }
.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-soft); }
.public-form .field-wide { grid-column: 1 / -1; }
.form-honeypot { position: absolute; left: -9999px; }

.upload-dropzone {
  margin-top: 8px;
  padding: 28px 16px;
  border: 2px dashed var(--accent-soft);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.is-over { border-color: var(--accent-2); background: var(--accent-soft); }
.upload-dropzone strong { color: var(--accent-2); }
.upload-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.upload-preview-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.upload-preview-item img { display: block; width: 100%; height: 90px; object-fit: cover; }
.upload-preview-item button { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--panel); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.form-status { min-height: 24px; margin: 14px 0 0; color: var(--muted); }
.form-status.is-success { color: var(--accent-2); }
.form-status.is-error { color: var(--error); }
.contact-list { display: grid; gap: 18px; margin: 24px 0; }
.contact-list p { margin: 0; }
.contact-list strong { display: block; color: var(--subtle); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-list a { color: var(--ink); }

@media (max-width: 760px) {
  .enquiry-page { grid-template-columns: 1fr; padding-top: 20px; }
  .public-form-grid { grid-template-columns: 1fr; }
  .public-form .field-wide { grid-column: auto; }
}

/* Horizontal top nav is retired — always use the hamburger drawer
   (optional pages made the inline nav too crowded). */
@media (min-width: 1050px) {
  .site-nav a { padding-inline: 11px; font-size: 0.78rem; }
}

/* Why page styles */
.why-intro {
  max-width: 720px;
}

.intro-lead {
  margin-top: 24px;
  color: var(--accent-2);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

.why-content {
  display: grid;
  gap: 64px;
  margin-top: 48px;
}

.why-statement {
  max-width: 760px;
  padding: 32px;
  border: 1px solid rgba(184, 188, 194, 0.2);
  border-radius: 12px;
  background: 
    linear-gradient(135deg, rgba(184, 188, 194, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(20px);
  box-shadow: 
    0 0 40px rgba(184, 188, 194, 0.1),
    0 0 12px rgba(184, 188, 194, 0.05) inset;
}

.why-statement p {
  margin: 0;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.7;
}

.why-statement strong {
  color: var(--accent-2);
  font-weight: 800;
}

.why-principles h2 {
  margin-bottom: 16px;
}

.why-principles > p {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.principles-grid {
  display: grid;
  gap: 16px;
}

.principle-card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--card-text);
  backdrop-filter: blur(12px);
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    box-shadow 350ms ease;
}

.principle-card::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(184, 188, 194, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}

.principle-card:hover {
  border-color: rgba(184, 188, 194, 0.4);
  box-shadow: 
    0 0 32px rgba(184, 188, 194, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

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

.principle-icon {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.principle-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.why-process {
  max-width: 760px;
}

.process-content h2 {
  margin-bottom: 20px;
}

.process-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.process-content p:last-child {
  margin-top: 24px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
}

.why-philosophy {
  display: grid;
  gap: 32px;
  padding: 40px 32px;
  border: 1px solid rgba(184, 188, 194, 0.25);
  border-radius: 12px;
  background: 
    linear-gradient(135deg, rgba(184, 188, 194, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(11, 11, 11, 0.7);
  backdrop-filter: blur(24px);
  box-shadow: 
    0 0 50px rgba(184, 188, 194, 0.12),
    0 0 16px rgba(184, 188, 194, 0.08) inset;
}

.philosophy-highlight h2 {
  margin: 0;
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.philosophy-content p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.philosophy-content p strong {
  color: var(--accent-2);
  font-weight: 800;
}

.why-moments h2 {
  margin-bottom: 28px;
}

.moments-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.moment-card {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--card-text);
  backdrop-filter: blur(8px);
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    background 300ms ease,
    box-shadow 350ms ease;
}

.moment-card:hover {
  border-color: rgba(184, 188, 194, 0.35);
  background: color-mix(in srgb, var(--accent) 10%, var(--card-bg));
  box-shadow: 
    0 0 24px rgba(184, 188, 194, 0.12),
    0 0 8px rgba(184, 188, 194, 0.06) inset;
  transform: translateX(4px);
}

.moment-label {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.moments-conclusion {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
}

.why-mission {
  padding: 48px 0;
}

.mission-statement {
  max-width: 820px;
  margin-inline: auto;
  padding: 48px 40px;
  border: 1px solid rgba(184, 188, 194, 0.3);
  border-radius: 12px;
  background: 
    radial-gradient(ellipse at center, rgba(184, 188, 194, 0.15), transparent 70%),
    rgba(11, 11, 11, 0.8);
  backdrop-filter: blur(28px);
  box-shadow: 
    0 0 60px rgba(184, 188, 194, 0.18),
    0 0 20px rgba(184, 188, 194, 0.1) inset;
  text-align: center;
}

.mission-statement .eyebrow {
  margin-bottom: 20px;
}

.mission-statement h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 700px) {
  .intro-lead {
    font-size: 1.6rem;
  }

  .why-statement {
    padding: 40px 48px;
  }

  .why-statement p {
    font-size: 1.3rem;
  }

  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-philosophy {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    padding: 48px 40px;
  }

  .philosophy-highlight h2 {
    font-size: 2.2rem;
  }

  .moments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mission-statement h2 {
    font-size: 2.4rem;
  }
}

@media (min-width: 980px) {
  .intro-lead {
    font-size: 1.8rem;
  }

  .philosophy-highlight h2 {
    font-size: 2.5rem;
  }

  .moments-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mission-statement h2 {
    font-size: 2.65rem;
  }
}

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

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--ink);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input,
select {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 136px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-2);
  outline: 2px solid var(--accent-soft);
  outline-offset: 0;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-company,
.footer-trust {
  width: 100%;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 0.72rem;
  line-height: 1.5;
}

.footer-trust p {
  margin: 0 0 6px;
  max-width: 70ch;
}

.footer-trust p:last-child {
  margin-bottom: 0;
}

.price-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 36ch;
}

.vehicle-trust-panel {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.vehicle-trust-panel h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.reviews-strip {
  margin-top: 36px;
}

.reviews-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 11, 11, 0.72);
}

.reviews-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
}

.reviews-score {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.reviews-stars {
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

.reviews-count {
  font-size: 0.9rem;
}

/* Suspended / unavailable full-page state */
html.is-unavailable,
body.is-unavailable {
  margin: 0;
  min-height: 100%;
  height: 100%;
  background: var(--bg, #050505);
}

body.is-unavailable {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.site-unavailable {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: clamp(24px, 6vw, 48px);
  text-align: center;
}

.site-unavailable-inner {
  display: grid;
  justify-items: center;
  gap: 0;
  width: min(36rem, 100%);
  margin: 0 auto;
}

.site-unavailable .eyebrow {
  margin: 0 0 14px;
}

.site-unavailable h1 {
  max-width: 16ch;
  margin: 0 auto 16px;
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
}

.site-unavailable p:not(.eyebrow) {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  text-align: center;
}

.cookie-consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 400;
  max-width: 560px;
  margin-inline: auto;
  padding: 16px 18px;
  border: 1px solid rgba(184, 188, 194, 0.28);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.cookie-consent-inner {
  display: grid;
  gap: 14px;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-consent a {
  color: var(--accent-2);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (min-width: 700px) {
  .cookie-consent {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(420px, calc(100% - 48px));
    margin-inline: 0;
  }
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #fff;
  outline: none;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.legal-page {
  display: grid;
  gap: 22px;
  max-width: 720px;
  margin-inline: auto;
  padding-bottom: 28px;
  text-align: left;
}

.legal-block {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 11, 11, 0.72);
}

.legal-block h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block ul {
  margin: 0 0 12px;
  padding-left: 1.15rem;
}

.legal-block a {
  color: var(--accent-2);
  text-decoration: none;
}

.legal-block a:hover,
.legal-block a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.platform-credit {
  flex-basis: 100%;
  width: fit-content;
  margin-top: 8px;
  color: var(--accent-2);
  font-size: .72rem;
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  margin-inline: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(184, 188, 194, 0.15);
  box-shadow: 
    0 0 40px rgba(184, 188, 194, 0.08),
    0 1px 0 rgba(184, 188, 194, 0.1) inset,
    0 4px 20px rgba(0, 0, 0, 0.15);
  transition: 
    padding 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease,
    backdrop-filter 250ms ease;
}

.site-header::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(184, 188, 194, 0.1), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.site-header::after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(184, 188, 194, 0.4) 50%, transparent);
  opacity: 0;
  transition: opacity 250ms ease;
}

.site-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(32px) saturate(200%);
  border-bottom-color: rgba(184, 188, 194, 0.25);
  box-shadow: 
    0 0 50px rgba(184, 188, 194, 0.14),
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(184, 188, 194, 0.15) inset;
}

.site-header.is-scrolled::before {
  opacity: 0.8;
}

.site-header.is-scrolled::after {
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}

.brand:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(184, 188, 194, 0.34);
  border-radius: 50%;
  background: #f5f5f5;
  object-fit: contain;
  box-shadow: 0 0 24px rgba(184, 188, 194, 0.18), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.94rem;
}

.brand small {
  color: var(--subtle);
  font-size: 0.72rem;
}

.site-nav a[hidden],
.mobile-menu a[hidden] {
  display: none !important;
}

.site-nav {
  display: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(184, 188, 194, 0.18);
  border-radius: 8px;
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 0 20px rgba(184, 188, 194, 0.08),
    0 0 8px rgba(184, 188, 194, 0.05) inset;
}

.site-nav a {
  position: relative;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  overflow: hidden;
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    background 300ms ease,
    color 300ms ease,
    box-shadow 350ms ease;
}

.site-nav a::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at center, rgba(184, 188, 194, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.site-nav a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(184, 188, 194, 0.18);
  color: var(--ink);
  box-shadow: 
    0 0 28px rgba(184, 188, 194, 0.22),
    0 0 12px rgba(184, 188, 194, 0.12) inset,
    0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"]::before,
.site-nav a:hover::before {
  opacity: 1;
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
  opacity: 1;
}

.site-nav a[aria-current="page"] {
  background: rgba(184, 188, 194, 0.22);
  box-shadow: 
    0 0 32px rgba(184, 188, 194, 0.28),
    0 0 14px rgba(184, 188, 194, 0.15) inset,
    0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(184, 188, 194, 0.18);
  border-radius: 8px;
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  cursor: pointer;
  overflow: hidden;
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    background 300ms ease,
    border-color 300ms ease,
    box-shadow 350ms ease;
}

.mobile-menu-toggle::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at center, rgba(184, 188, 194, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.mobile-menu-toggle:hover {
  border-color: rgba(184, 188, 194, 0.4);
  background: rgba(184, 188, 194, 0.18);
  box-shadow: 
    0 0 28px rgba(184, 188, 194, 0.22),
    0 0 12px rgba(184, 188, 194, 0.1) inset,
    0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.mobile-menu-toggle:hover::before {
  opacity: 1;
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 250ms ease, opacity 250ms ease;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 140;
  display: flex;
  flex-direction: column;
  width: min(320px, 85vw);
  height: 100vh;
  padding: 88px 24px 24px;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(32px) saturate(180%);
  border-left: 1px solid rgba(184, 188, 194, 0.28);
  box-shadow: 
    -8px 0 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(184, 188, 194, 0.15),
    1px 0 0 rgba(184, 188, 194, 0.12) inset;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(184, 188, 194, 0.08), transparent 40%);
  pointer-events: none;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  position: relative;
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(184, 188, 194, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  overflow: hidden;
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    background 300ms ease,
    border-color 300ms ease,
    color 300ms ease,
    box-shadow 350ms ease;
}

.mobile-menu a::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 50% 50%, rgba(184, 188, 194, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.mobile-menu a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.mobile-menu a[aria-current="page"],
.mobile-menu a:hover {
  border-color: rgba(184, 188, 194, 0.5);
  background: rgba(184, 188, 194, 0.18);
  color: var(--ink);
  box-shadow: 
    0 0 28px rgba(184, 188, 194, 0.24),
    0 0 12px rgba(184, 188, 194, 0.12) inset;
  transform: translateX(-4px);
}

.mobile-menu a[aria-current="page"]::before,
.mobile-menu a:hover::before {
  opacity: 1;
}

.mobile-menu a[aria-current="page"]::after,
.mobile-menu a:hover::after {
  opacity: 1;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 139;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

main {
  position: relative;
  padding-bottom: 48px;
}

main::after {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 100%;
  height: 600px;
  content: "";
  background: radial-gradient(ellipse at center, rgba(184, 188, 194, 0.08), transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero,
.page-intro,
.detail-hero {
  border-top: 1px solid var(--line);
}

.compact-hero {
  position: relative;
  display: grid;
  gap: 0;
  min-height: 0;
  padding: 36px 0 28px;
  overflow: hidden;
}

/* Vignette effect for cinematic depth */
.compact-hero > *:first-child::before {
  position: absolute;
  inset: -100px;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse at 30% 40%, transparent 30%, rgba(5, 5, 5, 0.4) 80%);
  pointer-events: none;
}

/* Ambient blue glow layers */
.compact-hero::before {
  position: absolute;
  top: -30%;
  left: -5%;
  width: 700px;
  height: 700px;
  content: "";
  background: radial-gradient(circle, rgba(184, 188, 194, 0.22), rgba(184, 188, 194, 0.08) 40%, transparent 70%);
  filter: blur(100px);
  opacity: 0;
  animation: heroGlowPulse 12s ease-in-out infinite, heroGlowFadeIn 1.4s ease forwards;
  pointer-events: none;
}

.compact-hero::after {
  position: absolute;
  top: 20%;
  right: -15%;
  width: 600px;
  height: 600px;
  content: "";
  background: radial-gradient(circle, rgba(215, 217, 220, 0.16), rgba(184, 188, 194, 0.06) 45%, transparent 75%);
  filter: blur(110px);
  opacity: 0;
  animation: heroGlowPulse 14s ease-in-out 2s infinite, heroGlowFadeIn 1.6s ease 0.4s forwards;
  pointer-events: none;
}

/* Radial gradient lighting */
.compact-hero > * {
  position: relative;
  z-index: 2;
}

/* Subtle grain texture overlay */
@keyframes grainMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-5%, -5%);
  }
  20% {
    transform: translate(-10%, 5%);
  }
  30% {
    transform: translate(5%, -10%);
  }
  40% {
    transform: translate(-5%, 15%);
  }
  50% {
    transform: translate(-10%, 5%);
  }
  60% {
    transform: translate(15%, 0);
  }
  70% {
    transform: translate(0, 10%);
  }
  80% {
    transform: translate(-15%, 0);
  }
  90% {
    transform: translate(10%, 5%);
  }
}

@keyframes heroGlowPulse {
  0%, 100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.15) translateY(-15px);
    opacity: 0.85;
  }
}

@keyframes heroGlowFadeIn {
  to {
    opacity: 1;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  opacity: 0;
  animation: heroContentSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.compact-hero .hero-copy h1 {
  max-width: 14ch;
  margin-bottom: 16px;
  font-size: clamp(2.75rem, 7vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.compact-hero .hero-copy > p:not(.eyebrow) {
  max-width: 36rem;
  margin-bottom: 22px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}

@keyframes heroContentSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.vehicle-label,
.chapter-label {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 500;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.hero-copy > p:not(.eyebrow),
.page-intro > p:not(.eyebrow),
.contact-band p,
.detail-summary p,
.vehicle-content p,
.detail-columns p {
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  overflow: hidden;
  transition:
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    background 300ms ease,
    border-color 300ms ease,
    box-shadow 350ms ease,
    color 300ms ease;
}

.button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent-metal);
  color: var(--accent-contrast);
  box-shadow: 
    0 0 16px rgba(184, 188, 194, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.2);
}

.button.primary::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.button.whatsapp {
  border-color: rgba(184, 188, 194, 0.62);
  background: rgba(184, 188, 194, 0.14);
  color: #f5f5f5;
  box-shadow: 0 0 12px rgba(184, 188, 194, 0.1);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(245, 245, 245, 0.12);
}

.button:hover {
  border-color: var(--accent-2);
  box-shadow: 
    0 0 24px rgba(184, 188, 194, 0.28),
    0 6px 20px rgba(0, 0, 0, 0.25),
    0 0 8px rgba(184, 188, 194, 0.15) inset;
  transform: translateY(-2px);
}

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

.button.primary:hover {
  background: linear-gradient(105deg,
    color-mix(in srgb, var(--accent) 65%, #202226),
    color-mix(in srgb, var(--accent) 55%, #ffffff) 34%,
    color-mix(in srgb, var(--accent) 84%, #70757b) 55%,
    color-mix(in srgb, var(--accent) 72%, #ffffff));
  box-shadow: 
    0 0 32px rgba(184, 188, 194, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(255, 255, 255, 0.12) inset;
}

.button.primary:hover::after {
  opacity: 1;
}

.button.whatsapp:hover {
  background: rgba(184, 188, 194, 0.22);
  border-color: rgba(215, 217, 220, 0.75);
  box-shadow: 
    0 0 28px rgba(184, 188, 194, 0.32),
    0 6px 20px rgba(0, 0, 0, 0.25),
    0 0 10px rgba(184, 188, 194, 0.18) inset;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(184, 188, 194, 0.5);
}

.button:active {
  transform: translateY(0);
  transition-duration: 100ms;
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  max-width: 360px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--panel-soft), var(--panel));
  box-shadow: var(--shadow);
  opacity: 0;
  animation: heroContentSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.04), rgba(5, 5, 5, 0.84));
  pointer-events: none;
}

.hero-panel-logo {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: -1;
  width: 150px;
  height: 150px;
  object-fit: contain;
  opacity: 0.68;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.hero-panel span,
.hero-panel strong,
.hero-panel p {
  display: block;
}

.hero-panel span {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-panel strong {
  margin-top: 72px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.hero-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section,
.contact-band,
.detail-columns,
.enquiry-section {
  margin-top: 48px;
}

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.section-heading > a {
  width: fit-content;
  color: var(--accent-2);
  font-weight: 800;
}

.vehicle-grid {
  display: grid;
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 16px;
}

.vehicle-card {
  position: relative;
  display: flex;
  height: 100%;
  overflow: clip;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--card-text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    box-shadow 350ms ease;
}

.vehicle-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border-radius: 8px;
  background: radial-gradient(circle at 50% 0%, rgba(184, 188, 194, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}

.vehicle-card:hover {
  border-color: rgba(215, 217, 220, 0.52);
  box-shadow: 
    0 0 42px rgba(184, 188, 194, 0.24),
    0 20px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(184, 188, 194, 0.18) inset;
  transform: translateY(-4px) scale(1.01);
}

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

.vehicle-card a,
.vehicle-card-button {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  width: 100%;
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.vehicle-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.vehicle-content .vehicle-label,
.vehicle-content .chapter-label,
.vehicle-content h3,
.vehicle-content p {
  margin: 0;
}

.vehicle-content h3 {
  min-height: 2.5em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.vehicle-image,
.detail-image {
  position: relative;
  overflow: clip;
  background: var(--panel-soft);
}

.vehicle-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: clip;
}

.vehicle-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.05);
}

.vehicle-image::after,
.detail-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
  transition: background 350ms ease;
}

.vehicle-card:hover .vehicle-image::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.44));
}

.status-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-tag.large {
  top: 16px;
  right: 16px;
  padding: 9px 13px;
}

.status-tag.status-available {
  border-color: rgba(215, 217, 220, 0.62);
  background: rgba(184, 188, 194, 0.22);
  color: #f5f5f5;
}

.status-tag.status-reserved {
  border-color: rgba(215, 217, 220, 0.5);
  background: rgba(215, 217, 220, 0.16);
  color: #f5f5f5;
}

.status-tag.status-sold {
  border-color: rgba(245, 245, 245, 0.22);
  background: rgba(17, 17, 17, 0.82);
  color: #cfcfcf;
}

.vehicle-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.35rem;
  line-height: 1.45;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.spec-list.compact {
  grid-template-columns: repeat(auto-fit, minmax(98px, 1fr));
  margin-top: 2px;
}

.spec-list div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.spec-list dt {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: normal;
}

.card-footer {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.card-footer strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
}

.card-footer span {
  color: var(--accent-2);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.vehicle-card.status-sold img {
  filter: grayscale(0.2);
  transition:
    filter 350ms ease,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vehicle-card.status-sold:hover img {
  filter: grayscale(0);
}

/* Diagonal status ribbons across the photo corner */
.vehicle-card .vehicle-image::before {
  position: absolute;
  top: 26px;
  right: -48px;
  z-index: 2;
  width: 200px;
  padding: 8px 0;
  color: #f5f5f5;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.vehicle-card.status-available .vehicle-image::before {
  content: "For Sale";
  background: var(--accent-metal);
  color: var(--accent-contrast);
}

.vehicle-card.status-reserved .vehicle-image::before {
  content: "Reserved";
  background: linear-gradient(135deg, #d68910, #a8690b);
}

.vehicle-card.status-sold .vehicle-image::before {
  content: "Sold";
  background: linear-gradient(135deg, #c22b40, #8f1f2f);
}

/* Ribbons replace the pill badges on cards */
.vehicle-card .status-tag {
  display: none;
}

.vehicle-card.status-reserved img {
  filter: saturate(0.92);
}

.contact-band {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(184, 188, 194, 0.18), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: 0 0 36px rgba(184, 188, 194, 0.08);
}

.contact-band h2 {
  margin-bottom: 12px;
}

.contact-band p:last-child {
  margin-bottom: 0;
}

.visit-section {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

.visit-content,
.map-container {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--card-text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: clip;
}

.visit-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.visit-content h2,
.visit-content p,
.business-address {
  margin: 0;
}

.business-address,
.contact-details p {
  color: var(--muted);
}

.contact-details p {
  margin: 0;
}

.visit-content a {
  overflow-wrap: anywhere;
}

.map-container {
  min-height: 360px;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.8rem;
}

.page-intro {
  padding: 54px 0 22px;
}

.page-intro h1 {
  max-width: 10ch;
}

.stock-section {
  margin-top: 26px;
}

.inventory-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 11, 11, 0.78);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}

.filter-field {
  display: grid;
  gap: 7px;
}

.filter-field span,
.enquiry-form span {
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    background 300ms ease,
    border-color 300ms ease,
    box-shadow 350ms ease,
    color 300ms ease;
}

.reset-button {
  width: fit-content;
}

.filter-button.is-active,
.filter-button:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: 
    0 0 28px rgba(184, 188, 194, 0.2),
    0 0 10px rgba(184, 188, 194, 0.1) inset;
  transform: translateY(-2px);
}

.inventory-count {
  margin: 0 0 16px;
  color: var(--subtle);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  gap: 22px;
  padding-top: 20px;
}

.back-link {
  width: fit-content;
}

.detail-image {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.detail-summary {
  display: grid;
  gap: 16px;
}

.detail-summary h1 {
  max-width: 12ch;
  margin-bottom: 0;
}

.detail-summary > p {
  margin-bottom: 0;
}

.detail-price {
  color: var(--accent-2);
  font-size: 2rem;
}

.gallery-grid {
  display: grid;
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    box-shadow 350ms ease;
}

.gallery-item.is-active,
.gallery-item:hover {
  border-color: var(--accent-2);
  box-shadow: 
    0 0 32px rgba(184, 188, 194, 0.24),
    0 0 12px rgba(184, 188, 194, 0.12) inset;
  transform: translateY(-2px) scale(1.02);
}

.gallery-item img {
  border: 0;
}

.detail-columns {
  display: grid;
  gap: 16px;
}

.detail-columns article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--card-text);
}

.detail-columns h2 {
  margin-bottom: 14px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.feature-list li::before {
  margin-right: 9px;
  color: var(--accent-2);
  content: "+";
  font-weight: 900;
}

.empty-state {
  padding: 20px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.enquiry-section {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(184, 188, 194, 0.15), rgba(255, 255, 255, 0.025)),
    rgba(11, 11, 11, 0.82);
  box-shadow: 0 0 36px rgba(184, 188, 194, 0.08);
}

.enquiry-section h2 {
  margin-bottom: 14px;
}

.enquiry-section p {
  color: var(--muted);
}

.enquiry-form {
  display: grid;
  gap: 14px;
}

.enquiry-form label {
  display: grid;
  gap: 7px;
}

.enquiry-form .button-row {
  margin-top: 4px;
}

@media (min-width: 700px) {
  main,
  .site-footer {
    width: min(1120px, calc(100% - 56px));
  }

  .site-header {
    width: 100%;
    padding: 12px 0;
    margin-inline: 0;
  }

  .site-header-inner {
    width: min(1120px, calc(100% - 56px));
  }

  .site-header.is-scrolled {
    padding: 10px 0;
  }

  /* Keep hamburger at all widths — do not re-enable inline .site-nav */
  .site-nav {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    width: min(380px, 100%);
  }

  .compact-hero {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 0;
    padding: 48px 0 36px;
  }

  h1 {
    font-size: 4rem;
  }

  .compact-hero .hero-copy h1 {
    font-size: clamp(3.4rem, 6.2vw, 5.2rem);
  }

  h2 {
    font-size: 2.4rem;
  }

  .section-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .inventory-controls {
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.45fr) minmax(180px, 0.5fr) auto;
    align-items: end;
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-band {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .visit-section {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: stretch;
  }

  .detail-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    align-items: center;
    padding-top: 34px;
  }

  .back-link {
    grid-column: 1 / -1;
  }

  .gallery-grid,
  .detail-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enquiry-section {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  }
}

@media (min-width: 980px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-image {
    aspect-ratio: 16 / 11;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Quick-view drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.vehicle-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 201;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 85vh;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(135deg, rgba(11, 11, 11, 0.98), rgba(5, 5, 5, 0.98));
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 
    0 -8px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(184, 188, 194, 0.16),
    0 -1px 0 rgba(184, 188, 194, 0.24) inset;
  transform: translateY(100%);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.vehicle-drawer::before {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 10;
  width: 40px;
  height: 4px;
  content: "";
  border-radius: 2px;
  background: rgba(245, 245, 245, 0.3);
  transform: translateX(-50%);
  transition: background 300ms ease;
}

.vehicle-drawer:hover::before {
  background: rgba(184, 188, 194, 0.6);
}

.vehicle-drawer.is-open {
  transform: translateY(0);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 16px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 245, 245, 0.22);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(12px);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    background 300ms ease,
    border-color 300ms ease,
    box-shadow 350ms ease;
}

.drawer-close:hover {
  border-color: var(--accent-2);
  background: rgba(184, 188, 194, 0.22);
  box-shadow: 
    0 0 28px rgba(184, 188, 194, 0.3),
    0 0 12px rgba(184, 188, 194, 0.15) inset;
  transform: scale(1.08) rotate(90deg);
}

.drawer-image {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: clip;
  background: var(--panel-soft);
}

.drawer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: drawerImageFade 400ms ease 120ms forwards;
}

.drawer-image::after {
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.drawer-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 0;
  animation: drawerBadgeFade 400ms ease 240ms forwards;
}

.drawer-badge {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.76);
  backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-badge.badge-status {
  border-color: rgba(215, 217, 220, 0.62);
  background: rgba(184, 188, 194, 0.28);
  box-shadow: 0 0 18px rgba(184, 188, 194, 0.24);
}

.drawer-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px;
  overscroll-behavior: contain;
}

.drawer-content::-webkit-scrollbar {
  width: 8px;
}

.drawer-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.drawer-content::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(184, 188, 194, 0.32);
}

.drawer-content::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 188, 194, 0.48);
}

.drawer-header {
  margin-bottom: 20px;
}

.drawer-header h2 {
  margin-bottom: 8px;
  font-size: 1.65rem;
}

.drawer-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.drawer-price {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-2);
  font-size: 2rem;
  font-weight: 800;
}

.drawer-finance {
  display: block;
  margin-bottom: 18px;
  color: var(--subtle);
  font-size: 0.82rem;
}

.drawer-description {
  margin: 0 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.drawer-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.drawer-spec-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: 
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease,
    background 300ms ease,
    box-shadow 350ms ease;
}

.drawer-spec-chip:hover {
  border-color: rgba(215, 217, 220, 0.42);
  background: rgba(184, 188, 194, 0.1);
  box-shadow: 
    0 0 20px rgba(184, 188, 194, 0.12),
    0 0 8px rgba(184, 188, 194, 0.08) inset;
  transform: translateY(-2px);
}

.drawer-spec-label {
  color: var(--subtle);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.drawer-spec-value {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.drawer-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 20px 24px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.95) 20%);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(184, 188, 194, 0.12);
}

.drawer-actions .button {
  width: 100%;
  justify-content: center;
}

.drawer-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

@keyframes drawerImageFade {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drawerBadgeFade {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .vehicle-drawer {
    top: 0;
    bottom: auto;
    width: 500px;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border-left: 1px solid rgba(184, 188, 194, 0.28);
    transform: translateX(100%);
  }

  .vehicle-drawer::before {
    display: none;
  }

  .vehicle-drawer.is-open {
    transform: translateX(0);
  }

  .drawer-close {
    top: 16px;
  }

  .drawer-close:hover {
    transform: scale(1.08);
  }

  .drawer-image {
    aspect-ratio: 16 / 11;
  }

  .drawer-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .drawer-secondary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .drawer-actions {
    position: relative;
    padding: 20px 0 0;
    background: transparent;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-overlay,
  .vehicle-drawer {
    transition: none;
  }

  .drawer-image img,
  .drawer-badges {
    animation: none;
    opacity: 1;
  }
}

/* =============================================
   Admin page
   ============================================= */

/* Layout */
.admin-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-toolbar {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

/* Error banner */
.admin-error {
  padding: 14px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-table th {
  padding: 12px 14px;
  background: var(--panel-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table .action-cell {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

/* Status badge inside the admin table — override the absolute positioning
   used on vehicle cards so the badge sits inline in the table cell */
.admin-table .status-tag {
  position: static;
  display: inline-block;
}

/* Modal overlay — hidden by default via aria-hidden */
[aria-hidden="true"].admin-modal-overlay {
  display: none;
}

.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal dialog card */
.admin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 201;
  transform: translate(-50%, -50%);
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* Modal header */
.admin-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

/* Modal close button — reset */
.admin-modal-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition:
    color 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.admin-modal-close:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}

/* Vehicle form */
.admin-vehicle-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-vehicle-form label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--muted);
}

/* Inline field validation message */
.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 4px;
}

/* Admin toast notification */
#adminToast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

#adminToast.is-leaving {
  opacity: 0;
}

/* ============================= Home showreel ============================= */

.showreel-section .section-heading {
  margin-bottom: 6px;
}

.showreel {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}

.reel-track {
  display: flex;
  width: max-content;
  animation: reelScroll 60s linear infinite;
  will-change: transform;
}

.showreel.reverse .reel-track {
  animation-direction: reverse;
}

.showreel:hover .reel-track {
  animation-play-state: paused;
}

@keyframes reelScroll {
  to {
    transform: translateX(-50%);
  }
}

.reel-seq {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

.reel-card {
  position: relative;
  flex: none;
  width: min(72vw, 300px);
  aspect-ratio: 16 / 10;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  transition: border-color 300ms ease, box-shadow 350ms ease;
}

.reel-card:hover {
  border-color: rgba(215, 217, 220, 0.52);
  box-shadow: 0 0 32px rgba(184, 188, 194, 0.22);
}

.reel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reel-card:hover img {
  transform: scale(1.05);
}

.reel-card.status-sold img {
  filter: grayscale(0.2);
}

.reel-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
}

.reel-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.reel-caption strong {
  overflow: hidden;
  color: #f5f5f5;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-caption em {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.reel-card.status-sold .reel-caption em {
  color: #e08794;
}

.reel-status {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  color: #f5f5f5;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reel-card.status-available .reel-status {
  background: rgba(184, 188, 194, 0.92);
}

.reel-card.status-reserved .reel-status {
  background: rgba(214, 137, 16, 0.92);
}

.reel-card.status-sold .reel-status {
  background: rgba(194, 43, 64, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .reel-track {
    animation: none;
  }

  .showreel {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* -------------------- Content pages (dealer CMS) -------------------- */
.page-shell.content-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.content-page .lead {
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 48rem;
}

.content-page-hero {
  margin: 1.5rem 0 2rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  background: color-mix(in srgb, var(--card, #111) 92%, black);
}

.content-page-hero img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.content-page-body {
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  line-height: 1.7;
  font-size: 1rem;
}

.content-page-body p,
.content-page-section p {
  margin: 0 0 1rem;
}

.content-page-body ul,
.content-page-body ol,
.content-page-section ul,
.content-page-section ol {
  margin: 0 0 1rem 1.2rem;
}

.content-page-body h2,
.content-page-body h3,
.content-page-section h2,
.content-page-section h3 {
  margin: 1.75rem 0 0.75rem;
}

.content-page-section {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

/* ==================== Centred headline treatment ==================== */
/* Big heading moments (hero, page intros, section headings, CTA band)
   are centred; cards, grids, forms and detail pages stay left-aligned. */

.compact-hero {
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.compact-hero .hero-copy h1,
.compact-hero .hero-copy > p:not(.eyebrow) {
  margin-inline: auto;
}

.compact-hero .button-row {
  justify-content: center;
}

.page-intro {
  text-align: center;
}

.page-intro h1,
.page-intro > p:not(.eyebrow) {
  margin-inline: auto;
}

.page-intro > p:not(.eyebrow) {
  max-width: 640px;
}

.page-intro .button-row {
  justify-content: center;
}

.why-intro {
  margin-inline: auto;
}

.section-heading {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-heading > p {
  max-width: 640px;
}

.contact-band {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.contact-band .button-row {
  justify-content: center;
}

.why-principles > h2,
.why-principles > p,
.why-moments > h2 {
  text-align: center;
}

.why-principles > p {
  max-width: 640px;
  margin-inline: auto;
}

/* ---- Registration lookup (DVLA / demo) ---- */
.reg-lookup-section {
  padding-top: 0;
}
.reg-lookup-card {
  display: grid;
  gap: 22px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(145deg, var(--accent-wash), transparent 55%),
    var(--card-bg);
  box-shadow: var(--shadow);
  color: var(--card-text);
}
.reg-lookup-copy h2 {
  margin: 0 0 10px;
  font: 500 clamp(1.5rem, 2.4vw, 2rem) / 1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}
.reg-lookup-copy p {
  margin: 0;
  color: var(--card-muted);
  max-width: 46rem;
  line-height: 1.55;
}
.reg-lookup-note {
  margin-top: 12px !important;
  font-size: 0.9rem;
}
.reg-lookup-note strong {
  color: var(--card-text);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.reg-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.reg-plate-field {
  display: flex;
  align-items: stretch;
  min-width: min(100%, 280px);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #111;
  background: #f4c400;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.reg-plate-label {
  display: grid;
  place-items: center;
  width: 42px;
  background: #1a3a8a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}
.reg-plate-field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #111;
  font: 800 1.35rem/1.2 "Arial Black", Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 16px;
  min-width: 0;
}
.reg-plate-field input::placeholder {
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.08em;
}
.reg-plate-field input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
}
.reg-lookup-result {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--card-line);
  background: rgba(0, 0, 0, 0.22);
}
.reg-lookup-result.is-loading { color: var(--card-muted); }
.reg-lookup-result.is-error {
  border-color: rgba(229, 115, 115, 0.45);
  color: #ffb4b4;
}
.reg-lookup-result.is-success {
  border-color: rgba(232, 163, 23, 0.35);
}
.reg-lookup-vehicle {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.reg-plate-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 10px 14px;
  border-radius: 6px;
  border: 2px solid #111;
  background: #f4c400;
  color: #111;
  font: 800 1.15rem/1 "Arial Black", Arial, sans-serif;
  letter-spacing: 0.1em;
}
.reg-lookup-vehicle h3 {
  margin: 4px 0 8px;
  font: 500 1.35rem/1.2 Georgia, "Times New Roman", serif;
}
.reg-lookup-meta,
.reg-lookup-matches {
  margin: 0 0 6px;
  color: var(--card-muted);
  font-size: 0.92rem;
}
.reg-lookup-disclaimer {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--card-subtle);
  line-height: 1.45;
}
@media (max-width: 640px) {
  .reg-lookup-form { flex-direction: column; align-items: stretch; }
  .reg-plate-field { min-width: 0; width: 100%; }
  .reg-lookup-form .button { width: 100%; }
}

/* Find-a-part (Parts Gateway style) */
.find-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 4px;
  color: var(--card-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.find-or::before,
.find-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--card-line);
}
.vehicle-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.vehicle-select-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
}
.vehicle-select-step .step-num {
  margin: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.vehicle-select-step .filter-field { flex: 1; min-width: 0; margin: 0; }
.vehicle-select-step select { width: 100%; }
.find-search-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.find-search-row .grow { min-width: 0; }
.find-search-row input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--card-line);
  background: rgba(0,0,0,.25);
  color: var(--card-text);
  font: inherit;
}
.inventory-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
}
.unavailable-banner {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(194, 43, 64, 0.35);
  background: rgba(194, 43, 64, 0.12);
  color: #ffb4b4;
  margin: 0 0 12px;
}
.vehicle-card.is-unavailable .card-footer strong {
  color: #ffb4b4;
  font-size: 0.95rem;
}
.vehicle-card.status-sold .vehicle-image::before {
  content: "Not available";
  letter-spacing: 0.12em;
  font-size: 0.68rem;
}
@media (max-width: 720px) {
  .vehicle-select-grid,
  .find-search-row { grid-template-columns: 1fr; }
}

/* Stock pagination */
.stock-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 28px 0 8px;
}
.stock-pagination .page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.stock-pagination .page-btn {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card-bg, #202124);
  color: var(--ink, #f5f3ee);
  font: 800 0.9rem/1 system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.stock-pagination .page-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent, #e8a317) 55%, var(--line));
}
.stock-pagination .page-btn.is-active {
  background: var(--accent, #e8a317);
  border-color: var(--accent, #e8a317);
  color: var(--accent-contrast, #151515);
}
.stock-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.stock-pagination .page-nav {
  min-width: 64px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.stock-pagination .page-ellipsis {
  color: var(--muted);
  padding: 0 4px;
  user-select: none;
}
.stock-pagination .page-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
