/* ============================================================
   RG AUTO SALES — Shared Stylesheet
   Cinematic, premium, automotive. Dark UI + RG red accent.
   ------------------------------------------------------------
   Section map:
     1.  Design tokens (variables)
     2.  Reset & base
     3.  Typography
     4.  Layout utilities
     5.  Global FX (grain, vignette, cursor, progress, wipe)
     6.  Navigation
     7.  Buttons
     8.  Footer
     9.  Hero (home)
     10. Cards (featured / inventory)
     11. Home sections (why, body styles, steps, stats, CTA)
     12. Inventory page
     13. Vehicle detail page
     14. Finance page
     15. About page
     16. Contact page
     17. Reveal / animation helpers
     18. Responsive
     19. Reduced motion
   ============================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg:            #0A0A0A;
  --bg-deep:       #050505;
  --bg-elev:       #121214;
  --bg-elev-2:     #17171A;
  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.16);

  /* Brand red */
  --red:           #E01020;
  --red-deep:      #C8102E;
  --red-bright:    #FF1E32;
  --red-glow:      rgba(224, 16, 32, 0.45);
  --red-soft:      rgba(224, 16, 32, 0.12);

  /* Text */
  --white:         #F6F6F8;
  --grey:          #9A9AA2;
  --grey-dim:      #6A6A72;
  --silver:        #C8CAD0;

  /* Metallic gradients */
  --metal: linear-gradient(180deg, #FFFFFF 0%, #D6D8DE 38%, #9A9CA4 62%, #EDEEF2 100%);
  --metal-soft: linear-gradient(180deg, #F4F4F6 0%, #BFC1C8 100%);
  --red-grad: linear-gradient(135deg, var(--red-bright) 0%, var(--red-deep) 100%);

  /* Type */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Grotesk', 'Inter', sans-serif;

  /* Rhythm */
  --container:     1320px;
  --gutter:        clamp(20px, 5vw, 64px);
  --section-pad:   clamp(72px, 12vh, 160px);
  --radius:        16px;
  --radius-lg:     24px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layering */
  --z-grain: 9000;
  --z-cursor: 9999;
  --z-nav: 800;
  --z-wipe: 9500;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis handles smoothing */
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: none; /* replaced by custom cursor on desktop */
}

/* Re-enable native cursor where custom one is off */
body.no-custom-cursor,
body.no-custom-cursor * { cursor: auto; }
body.no-custom-cursor a,
body.no-custom-cursor button { cursor: pointer; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--red); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-deep); }

/* ----------------------------------------------------------------
   3. TYPOGRAPHY
---------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.h-xl { font-size: clamp(2.2rem, 5.5vw, 4.6rem); line-height: 0.98; }
.h-lg { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }

.metal-text {
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.red-text { color: var(--red); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--grey);
  line-height: 1.65;
  max-width: 56ch;
}

.mono { font-family: var(--font-mono); }

/* ----------------------------------------------------------------
   4. LAYOUT UTILITIES
---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-wide { max-width: 1600px; }

.section { padding-block: var(--section-pad); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 22px; }
.section-head h2 { margin-top: 18px; }

.center { text-align: center; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 48px; }

.grid { display: grid; gap: clamp(18px, 2vw, 28px); }
.cluster { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.divider { height: 1px; background: var(--line); border: 0; }

/* Soft red bloom blob you can drop into any section */
.bloom {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 65%);
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

/* ----------------------------------------------------------------
   5. GLOBAL FX — grain, vignette, cursor, progress, page wipe
---------------------------------------------------------------- */

/* Film grain */
.grain {
  position: fixed;
  inset: -150%;
  width: 400%;
  height: 400%;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
  will-change: transform;
  mix-blend-mode: overlay;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(2%, 3%); }
}

/* Cinematic vignette */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8500;
  background:
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
  mix-blend-mode: multiply;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--red-grad);
  box-shadow: 0 0 14px var(--red-glow);
  z-index: 8800;
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: #fff;
  margin: -3.5px 0 0 -3.5px;
}
.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(255,255,255,0.6);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s, background 0.25s, opacity 0.25s;
  mix-blend-mode: normal;
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--red);
  background: var(--red-soft);
}
.cursor-ring.pressing { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
body.no-custom-cursor .cursor-dot,
body.no-custom-cursor .cursor-ring { display: none; }

/* Page transition wipe */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: var(--z-wipe);
  background: var(--bg-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.page-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--red-deep) 0%, var(--bg-deep) 60%);
  opacity: 0;
}
.page-wipe .wipe-logo {
  height: clamp(90px, 16vh, 160px);
  width: auto;
  opacity: 0;
  user-select: none;
}

/* ----------------------------------------------------------------
   6. NAVIGATION
---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-block: 22px;
  transition: padding 0.4s var(--ease-out), background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  padding-block: 14px;
  background: rgba(8, 8, 9, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo (official image) */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 64px; width: auto; transition: transform 0.4s var(--ease-out); }
.brand:hover .brand-logo { transform: scale(1.05); }
.nav.solid .brand-logo { height: 52px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 0 10px var(--red-glow);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 22px; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 8px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(20px);
  opacity: 0;
}
.mobile-menu.open a { animation: menuItemIn 0.6s var(--ease-out) forwards; }
.mobile-menu a span { font-family: var(--font-mono); font-size: 0.9rem; color: var(--red); }
@keyframes menuItemIn { to { transform: translateY(0); opacity: 1; } }
.mobile-menu .menu-foot { margin-top: 32px; color: var(--grey); font-family: var(--font-mono); font-size: 0.85rem; }

/* ----------------------------------------------------------------
   7. BUTTONS
---------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 100px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, color 0.3s;
  white-space: nowrap;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--red-grad);
  color: #fff;
  box-shadow: 0 8px 30px -8px var(--red-glow);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 12px 44px -6px var(--red-glow); }
.btn-primary:hover::before { transform: translateX(120%); }

.btn-outline {
  border: 1.5px solid var(--line-strong);
  color: var(--white);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { border-color: var(--red); color: #fff; background: var(--red-soft); }

.btn-ghost { color: var(--silver); padding-inline: 8px; }
.btn-ghost:hover { color: var(--red); }

.btn-block { width: 100%; }
.btn-sm { padding: 12px 22px; font-size: 0.78rem; }
.btn-lg { padding: 19px 38px; font-size: 0.92rem; }

/* ----------------------------------------------------------------
   8. FOOTER
---------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-top: clamp(64px, 9vh, 110px);
  overflow: hidden;
}
.footer-cta {
  position: relative;
  text-align: center;
  padding-bottom: clamp(56px, 8vh, 90px);
  border-bottom: 1px solid var(--line);
}
.footer-cta h2 { margin-bottom: 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: clamp(48px, 7vh, 80px);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 22px;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--silver);
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color 0.3s, transform 0.3s var(--ease-out);
}
.footer-col a:hover { color: var(--red); transform: translateX(4px); }
.footer-about p { color: var(--grey); max-width: 34ch; line-height: 1.7; }
.footer-brand-logo { height: 52px; margin-bottom: 22px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-block: 30px;
  border-top: 1px solid var(--line);
  color: var(--grey-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.footer-bottom .socials a:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.flow-credit {
  color: var(--silver);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
  transition: color 0.3s, border-color 0.3s;
}
.flow-credit:hover { color: var(--red); border-color: var(--red); }
.footer-watermark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 20vw, 16rem);
  text-align: center;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.05);
  user-select: none;
  pointer-events: none;
  margin-top: 10px;
  padding-bottom: 10px;
}

/* ----------------------------------------------------------------
   LOGO — official artwork at /assets/logo.png (background removed), used everywhere.
   The file has its dark studio background baked in; mix-blend-mode
   screen lets that background dissolve into the dark site so the
   logo sits seamlessly with no visible box, without altering the
   image itself. Height set per location; width auto keeps the
   aspect ratio so it never stretches.
---------------------------------------------------------------- */
.logo-img {
  display: inline-block;
  width: auto;
  background: none;
  border: 0;
  box-shadow: none;
  user-select: none;
  -webkit-user-drag: none;
  /* assets/logo.png is the real artwork with its background removed
     (true alpha transparency), so it floats on any surface. A soft drop
     shadow grounds it; the shadow follows the artwork shape, not a box. */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

/* Inline icon system (sprite injected by main.js) */
.ic {
  width: 1.15em; height: 1.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ic-lg { width: 1.5em; height: 1.5em; }

/* Preloader logo sizing — large and prominent */
.preloader .pl-logo { height: clamp(150px, 26vh, 260px); max-width: 86vw; object-fit: contain; filter: drop-shadow(0 14px 50px rgba(224, 16, 32, 0.35)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6)); }

/* Ghost car line-art placeholders (inventory / vehicle / about) */
.ghost-car {
  fill: none;
  stroke: rgba(245, 245, 248, 0.55);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  height: auto;
}

/* Preloader shine sweep over the logo */
.pl-logo-wrap { position: relative; }
.pl-shine {
  position: absolute;
  inset: -14% -22%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  mix-blend-mode: overlay;
  opacity: 0;
}

/* ----------------------------------------------------------------
   PRELOADER / INTRO SEQUENCE
---------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preloader .pl-glow {
  position: absolute;
  width: 80vw; height: 80vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
  filter: blur(60px);
  opacity: 0;
}
.preloader .pl-logo-wrap { position: relative; z-index: 2; }
.preloader .pl-bar {
  position: absolute;
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 60vw);
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.preloader .pl-bar i {
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--red-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.preloader .pl-count {
  position: absolute;
  bottom: calc(9% + 18px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--grey-dim);
}

/* ----------------------------------------------------------------
   9. HERO (HOME)
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 120px;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero::after { /* gentle base vignette + floor fade to seat the scene */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(90% 70% at 60% 42%, transparent 55%, rgba(5,5,6,0.5) 100%),
    linear-gradient(180deg, rgba(5,5,6,0.5) 0%, transparent 20%, transparent 72%, var(--bg) 100%);
}
/* Readability scrim: dark on the left for the headline, clear on the right for the car front */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,6,0.95) 0%, rgba(5,5,6,0.82) 28%, rgba(5,5,6,0.5) 50%, rgba(5,5,6,0.18) 64%, transparent 74%),
    radial-gradient(120% 130% at 56% 50%, transparent 46%, rgba(5,5,6,0.55) 100%),
    linear-gradient(180deg, transparent 58%, rgba(10,10,10,0.88) 100%);
}
.hero-inner { position: relative; z-index: 4; width: 100%; }

/* Hero car layer — sharp, metallic, premium */
.hero-car {
  position: absolute;
  z-index: 2;
  left: 62%;
  top: 57%;
  width: min(1000px, 86vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
}
.hero-car .car-svg, .hero-car .hero-car-photo { width: 100%; height: auto; display: block; }
.hero-car .car-svg { filter: drop-shadow(0 34px 50px rgba(0,0,0,0.65)); }
.hero-car .hero-car-photo { display: none; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); }
.hero-car.has-photo .car-svg { display: none; }
.hero-car.has-photo .hero-car-photo { display: block; }
.hero-car .car-body { fill: url(#grBody); stroke: rgba(196,206,220,0.20); stroke-width: 1; }
.hero-car .car-glass { fill: url(#grGlass); }
.hero-car .car-light { filter: drop-shadow(0 0 16px var(--red)) drop-shadow(0 0 6px var(--red)); }
.hero-car .car-headlight { filter: drop-shadow(0 0 18px rgba(180,214,255,0.9)) drop-shadow(0 0 7px rgba(210,232,255,0.85)); }
.hero-car .car-sheen { mix-blend-mode: screen; opacity: 0; }
.hero-car .car-streak { filter: drop-shadow(0 0 10px var(--red)); opacity: 0; }

/* Speed lines + red light streak */
.speed-lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.speed-lines i {
  position: absolute;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
  opacity: 0;
}
.speed-lines i.red { background: linear-gradient(90deg, transparent, var(--red)); height: 3px; box-shadow: 0 0 10px var(--red-glow); }

/* Hero content */
.hero-content { max-width: 920px; }
.hero-logo { display: inline-block; height: clamp(72px, 9vw, 108px); margin-bottom: 26px; filter: drop-shadow(0 10px 30px rgba(224, 16, 32, 0.30)) drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5)); }
@media (max-width: 600px) { .hero-logo { height: 62px; margin-bottom: 18px; } }
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.5);
}
.hero-headline .line { display: block; overflow: hidden; }
.hero-headline .line > span { display: inline-block; }
.hero-headline .accent { color: var(--red); -webkit-text-fill-color: var(--red); }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--silver); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); }
.hero-actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero-meta {
  position: absolute;
  bottom: 38px; left: var(--gutter); right: var(--gutter);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue .track {
  width: 1px; height: 46px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue .track::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--red);
  animation: scrollCue 2s var(--ease-in-out) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* ----------------------------------------------------------------
   10. CARD SYSTEM (featured + inventory share this)
---------------------------------------------------------------- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.car-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg-deep) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.1s;
  will-change: transform;
}
.car-card::after { /* red glow edge on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--red), transparent 40%, transparent 60%, var(--red-deep));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.car-card:hover { border-color: transparent; box-shadow: 0 30px 60px -28px rgba(0,0,0,0.9), 0 0 40px -10px var(--red-glow); }
.car-card:hover::after { opacity: 1; }
.car-card > * { transform: translateZ(0.01px); } /* keep children in tilt plane */

/* Image area — gradient placeholder; real photo drops in via .car-photo */
.car-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(120% 100% at 70% 20%, rgba(224,16,32,0.18), transparent 55%),
    linear-gradient(150deg, #1b1b20 0%, #0c0c0e 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.car-media .car-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.car-media.has-photo .car-photo { opacity: 1; }
.car-card:hover .car-media .car-photo { transform: scale(1.06); }
.car-media .ghost-car {
  width: 78%;
  opacity: 0.5;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
  transform: translateZ(40px);
}
.car-card:hover .ghost-car { transform: translateZ(60px) scale(1.05); opacity: 0.72; }
.car-media .media-grid { /* faint perspective grid behind ghost car */
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(80% 80% at 50% 60%, #000 0%, transparent 75%);
}

.badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-grad);
  color: #fff;
  box-shadow: 0 6px 18px -6px var(--red-glow);
  transform: translateZ(50px);
}
.badge.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.badge.neutral { background: rgba(255,255,255,0.08); color: var(--silver); box-shadow: none; backdrop-filter: blur(6px); }

/* Sold cars on the public site: dimmed, with a clear SOLD badge */
.car-card.is-sold .car-media { filter: grayscale(0.5) brightness(0.7); }
.car-card.is-sold .badge.neutral { background: rgba(224,16,32,0.18); color: #fff; border: 1px solid rgba(224,16,32,0.55); letter-spacing: 0.16em; }
.car-card.is-sold .car-price .amount { color: var(--grey); }

/* Loading spinner for live data fetches */
.gr-spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: grSpin 0.8s linear infinite; margin: 60px auto; }
.gr-loading { grid-column: 1 / -1; display: grid; place-items: center; min-height: 200px; }
@keyframes grSpin { to { transform: rotate(360deg); } }

.car-fav {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transform: translateZ(50px);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.car-fav:hover { color: var(--red); border-color: var(--red); }
.car-fav.saved { color: var(--red); border-color: var(--red); background: var(--red-soft); }

.car-body-c { padding: 22px 22px 24px; }
.car-titlerow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.car-make { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.car-name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; margin-top: 4px; line-height: 1.1; }
.car-year { font-family: var(--font-mono); font-size: 0.82rem; color: var(--grey-dim); }

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.car-specs .spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--silver);
}
.car-specs .spec svg { width: 15px; height: 15px; color: var(--grey-dim); }

.car-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.car-price { display: flex; flex-direction: column; }
.car-price .amount { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; }
.car-price .finance { font-family: var(--font-mono); font-size: 0.72rem; color: var(--grey-dim); margin-top: 2px; }
.car-price .finance b { color: var(--red); font-weight: 600; }

.card-view {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red-soft);
  border: 1px solid rgba(224,16,32,0.4);
  color: var(--red);
  transition: background 0.3s, transform 0.3s var(--ease-out), color 0.3s;
}
.car-card:hover .card-view { background: var(--red-grad); color: #fff; transform: rotate(-45deg); }
.card-view svg { width: 20px; height: 20px; }

/* ----------------------------------------------------------------
   11. HOME SECTIONS
---------------------------------------------------------------- */

/* Why RG — value props */
.value-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value-card {
  position: relative;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), background 0.4s;
}
.value-card:hover { border-color: rgba(224,16,32,0.4); transform: translateY(-6px); background: linear-gradient(180deg, var(--red-soft), transparent); }
.value-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--red);
  margin-bottom: 22px;
}
.value-icon svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.value-card p { color: var(--grey); font-size: 0.96rem; }
.value-card .vnum {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--grey-dim);
}

/* Browse by body style */
.bodystyle-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.bodystyle-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-elev) 0%, var(--bg-deep) 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: transform 0.45s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.bodystyle-tile:hover { transform: scale(1.03); border-color: var(--red); box-shadow: 0 0 40px -12px var(--red-glow); }
.bodystyle-tile .bs-icon {
  position: absolute;
  top: 18px; right: 18px;
  color: var(--grey-dim);
  transition: color 0.4s, transform 0.5s var(--ease-out);
}
.bodystyle-tile:hover .bs-icon { color: var(--red); transform: scale(1.1) translateX(-2px); }
.bodystyle-tile .bs-icon svg { width: 56px; height: 56px; }
.bodystyle-tile h3 { font-size: 1.3rem; }
.bodystyle-tile .bs-count { font-family: var(--font-mono); font-size: 0.76rem; color: var(--grey); margin-top: 4px; }
.bodystyle-tile::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--red-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease-out);
}
.bodystyle-tile:hover::after { transform: scaleX(1); }

/* How it works — 3 steps with drawn connector */
.steps { position: relative; }
.steps-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 60px);
  position: relative;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 10px;
}
.step .step-num {
  width: 86px; height: 86px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  background: var(--bg-elev);
  border: 1.5px solid var(--line-strong);
  position: relative;
  z-index: 2;
  color: #fff;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.step:hover .step-num { border-color: var(--red); box-shadow: 0 0 30px -6px var(--red-glow); }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--grey); max-width: 30ch; margin: 0 auto; }
.steps-line {
  position: absolute;
  top: 43px; left: 16%; right: 16%;
  height: 2px;
  z-index: 0;
  background: var(--line);
}
.steps-line .draw {
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--red-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 12px var(--red-glow);
}

/* Stats strip */
.stats-strip {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.stats-grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat {
  text-align: center;
  padding: clamp(40px, 6vh, 70px) 18px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .stat-num .suffix { color: var(--red); }
.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 14px;
}

/* Final CTA band */
.cta-band {
  position: relative;
  margin: 0 var(--gutter) var(--section-pad);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(100% 160% at 0% 0%, rgba(224,16,32,0.5), transparent 55%),
    linear-gradient(135deg, #1a0508 0%, var(--bg-deep) 60%);
  border: 1px solid rgba(224,16,32,0.3);
  padding: clamp(56px, 9vw, 110px) var(--gutter);
  text-align: center;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 36px; color: var(--silver); }
.cta-band .cta-glow {
  position: absolute;
  right: -10%; bottom: -60%;
  width: 70%; height: 160%;
  background: radial-gradient(circle, var(--red-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

/* ----------------------------------------------------------------
   PAGE HEADER (sub-pages) — compact cinematic banner
---------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(150px, 22vh, 230px);
  padding-bottom: clamp(40px, 6vh, 70px);
  overflow: hidden;
}
.page-hero .bloom { top: -30%; left: 50%; transform: translateX(-50%); }
.page-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.page-hero .crumbs a:hover { color: var(--red); }
.page-hero .crumbs .sep { color: var(--red); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; }
.page-hero .lead { margin-top: 22px; }

/* ----------------------------------------------------------------
   12. INVENTORY PAGE
---------------------------------------------------------------- */
.inv-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.filters {
  position: sticky;
  top: 100px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filters-head h3 { font-size: 1.1rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.filters-head button { font-family: var(--font-mono); font-size: 0.74rem; color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; }
.filter-group { padding-block: 18px; border-top: 1px solid var(--line); }
.filter-group > label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}
.field, select.field {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  appearance: none;
}
.field:focus, select.field:focus, .filter-range input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
select.field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239A9AA2' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: none;
}
.filter-range { display: flex; align-items: center; gap: 10px; }
.filter-range input { width: 100%; }
.filter-range span { color: var(--grey-dim); }
.range-vals { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.78rem; color: var(--silver); margin-top: 10px; }

/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--bg-elev-2);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 10px var(--red-glow);
  cursor: none;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--bg-deep);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  padding: 8px 13px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--silver);
  background: var(--bg-deep);
  transition: all 0.25s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.active { background: var(--red-soft); border-color: var(--red); color: #fff; }

/* Inventory toolbar */
.inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.inv-count { font-family: var(--font-mono); font-size: 0.9rem; color: var(--silver); }
.inv-count b { color: var(--red); }
.inv-toolbar .right { display: flex; gap: 12px; align-items: center; }
.sort-wrap { display: flex; align-items: center; gap: 10px; }
.sort-wrap label { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.sort-wrap select.field { width: auto; padding-right: 38px; }

/* Mobile filter toggle */
.filter-toggle-mobile { display: none; }

.inv-empty {
  text-align: center;
  padding: 80px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--grey);
}
.inv-empty svg { width: 54px; height: 54px; color: var(--grey-dim); margin: 0 auto 20px; }

/* ----------------------------------------------------------------
   13. VEHICLE DETAIL PAGE
---------------------------------------------------------------- */
.vehicle-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* Gallery */
.gallery-main {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 70% 10%, rgba(224,16,32,0.16), transparent 55%),
    linear-gradient(150deg, #1c1c22 0%, #0b0b0d 100%);
  display: grid;
  place-items: center;
}
.gallery-main .ghost-car { width: 76%; opacity: 0.6; }
.gallery-main .gal-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}
.gallery-main.has-photo .gal-photo { opacity: 1; }
.gallery-main .media-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 80% at 50% 60%, #000, transparent 75%); }
.gal-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
}
.gal-nav {
  position: absolute;
  bottom: 16px; right: 16px;
  display: flex; gap: 8px; z-index: 2;
}
.gal-nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.gal-nav button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumb {
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #18181d, #0b0b0d);
  display: grid; place-items: center;
  opacity: 0.55;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.thumb svg { width: 40%; opacity: 0.5; }
.thumb:hover { opacity: 0.85; transform: translateY(-3px); }
.thumb.active { opacity: 1; border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 20px -6px var(--red-glow); }

/* Vehicle info sidebar */
.vehicle-info {
  position: sticky;
  top: 100px;
}
.vehicle-titleblock { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.vehicle-titleblock .car-make { font-size: 0.82rem; }
.vehicle-titleblock h1 { font-size: clamp(2rem, 3.4vw, 3rem); margin-top: 6px; line-height: 1; }
.vehicle-titleblock .sub { font-family: var(--font-mono); color: var(--grey); margin-top: 10px; }
.vehicle-pricerow { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.vehicle-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
.vehicle-finance-note { font-family: var(--font-mono); font-size: 0.84rem; color: var(--grey); margin-top: 6px; }
.vehicle-finance-note b { color: var(--red); }
.vehicle-actions { display: grid; gap: 12px; margin-top: 26px; }
.vehicle-actions .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.assurance {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.assurance .arow { display: flex; gap: 12px; align-items: center; font-size: 0.92rem; color: var(--silver); }
.assurance .arow svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; }

/* Spec grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-cell {
  background: var(--bg);
  padding: 22px 20px;
  transition: background 0.3s;
}
.spec-cell:hover { background: var(--bg-elev); }
.spec-cell .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-dim); display: flex; align-items: center; gap: 8px; }
.spec-cell .k svg { width: 16px; height: 16px; color: var(--red); }
.spec-cell .v { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-top: 10px; }

.vehicle-desc p { color: var(--grey); font-size: 1.02rem; line-height: 1.8; max-width: 70ch; }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; margin-top: 26px; }
.feature-list li { display: flex; gap: 10px; align-items: center; color: var(--silver); font-size: 0.95rem; }
.feature-list li svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }

/* ----------------------------------------------------------------
   14. FINANCE PAGE
---------------------------------------------------------------- */
.finance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.calc {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.calc .bloom { top: -40%; right: -30%; }
.calc-head { position: relative; z-index: 2; margin-bottom: 30px; }
.calc-field { position: relative; z-index: 2; margin-bottom: 26px; }
.calc-field .clabel { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc-field .clabel span { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.calc-field .clabel b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.calc-input-wrap { position: relative; }
.calc-input-wrap .prefix {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--grey); pointer-events: none;
}
.calc-input-wrap input[type="number"] {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px 15px 34px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.calc-input-wrap input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.term-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.term-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--silver);
  transition: all 0.25s;
}
.term-pill.active { background: var(--red-grad); border-color: var(--red); color: #fff; box-shadow: 0 6px 18px -8px var(--red-glow); }

/* Result panel */
.calc-result {
  position: sticky;
  top: 100px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(224,16,32,0.28), transparent 55%),
    linear-gradient(160deg, #18060a 0%, var(--bg-deep) 70%);
  border: 1px solid rgba(224,16,32,0.3);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
}
.calc-result .eyebrow { color: var(--silver); }
.result-monthly {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 14px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.result-monthly .per { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; color: var(--grey); letter-spacing: 0.1em; }
.result-rows { margin-top: 32px; border-top: 1px solid var(--line); }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}
.result-row span { color: var(--grey); font-size: 0.86rem; letter-spacing: 0.04em; }
.result-row b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.result-row b.hl { color: var(--red); }
.disclaimer {
  margin-top: 26px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--grey-dim);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
}

/* Finance option cards */
.finance-options { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fin-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.fin-card:hover { border-color: rgba(224,16,32,0.4); transform: translateY(-6px); }
.fin-card .fin-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.fin-card h3 { font-size: 1.5rem; margin: 12px 0 12px; }
.fin-card p { color: var(--grey); font-size: 0.96rem; }

/* ----------------------------------------------------------------
   15. ABOUT PAGE
---------------------------------------------------------------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(100% 80% at 70% 10%, rgba(224,16,32,0.22), transparent 55%),
    linear-gradient(160deg, #1d1d23, #0a0a0c);
  display: grid; place-items: center;
}
.about-portrait .ph-label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-dim); }
.about-portrait .ghost-car { width: 86%; opacity: 0.5; }
.about-intro p { color: var(--silver); font-size: 1.05rem; line-height: 1.8; margin-top: 18px; max-width: 56ch; }

.about-values { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.signature {
  margin-top: 30px;
  font-family: 'Sora', cursive;
  font-style: italic;
  font-size: 1.6rem;
  color: #fff;
}
.signature small { display: block; font-family: var(--font-mono); font-style: normal; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); margin-top: 6px; }

.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 6px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--red-glow);
}
.timeline-item .yr { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.14em; color: var(--red); }
.timeline-item h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.timeline-item p { color: var(--grey); }

/* ----------------------------------------------------------------
   16. CONTACT PAGE
---------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-deep));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  position: relative;
  overflow: hidden;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 9px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.form-field .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft);
}
.form-field select { appearance: none; cursor: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239A9AA2' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* Success state */
.form-success {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(160deg, #140407, var(--bg-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.form-success.show { opacity: 1; visibility: visible; }
.success-check {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: grid; place-items: center;
  margin-bottom: 28px;
  box-shadow: 0 0 40px -6px var(--red-glow);
}
.success-check svg { width: 46px; height: 46px; color: var(--red); }
.success-check svg path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.form-success.show .success-check svg path { animation: drawCheck 0.6s 0.25s var(--ease-out) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 1.9rem; margin-bottom: 12px; }
.form-success p { color: var(--silver); max-width: 40ch; }

/* Contact info cards */
.contact-info { display: grid; gap: 14px; }
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.info-card:hover { border-color: rgba(224,16,32,0.4); transform: translateX(4px); }
.info-card .ic {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  color: var(--red);
}
.info-card .ic svg { width: 22px; height: 22px; }
.info-card h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.info-card p { color: #fff; font-size: 1rem; line-height: 1.5; }
.info-card a:hover { color: var(--red); }

.contact-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.btn-whatsapp { background: #1faf54; color: #fff; }
.btn-whatsapp:hover { box-shadow: 0 12px 30px -10px rgba(31,175,84,0.6); }

/* Map placeholder (shared by contact + about) */
.map-ph {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(224,16,32,0.1), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,0.03) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,0.03) 38px 39px),
    var(--bg-elev);
  display: grid; place-items: center;
}
.map-ph .roads { position: absolute; inset: 0; opacity: 0.5; }
.map-ph .road { position: absolute; background: rgba(255,255,255,0.06); }
.map-pin {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.map-pin .pin {
  width: 22px; height: 22px;
  background: var(--red);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 8px var(--red-soft), 0 0 24px var(--red-glow);
  animation: pinPulse 2.4s ease-in-out infinite;
}
@keyframes pinPulse { 0%,100% { box-shadow: 0 0 0 8px var(--red-soft), 0 0 24px var(--red-glow);} 50% { box-shadow: 0 0 0 16px transparent, 0 0 24px var(--red-glow);} }
.map-pin .place { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); }

/* ----------------------------------------------------------------
   17. REVEAL / ANIMATION HELPERS
   (GSAP drives most reveals; these are CSS fallbacks + states)
---------------------------------------------------------------- */
/* Hidden initial states apply only when JS is active (.js on <html>),
   so a JS failure never leaves content permanently invisible. */
.js .reveal { opacity: 0; transform: translateY(34px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }

.js .reveal-blur { opacity: 0; filter: blur(14px); transform: translateY(20px); }
.reveal-blur.in { opacity: 1; filter: blur(0); transform: none; transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), transform 1s var(--ease-out); }

.js [data-stagger] > * { opacity: 0; transform: translateY(30px); }

/* No-JS / failure safety: skip the intro overlay entirely */
.no-js .preloader { display: none; }

.tilt { transform-style: preserve-3d; }
.tilt-glare {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 4;
}
.car-card:hover .tilt-glare { opacity: 1; }

/* Marquee (used on a couple of pages) */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: 20px; }
.marquee-track { display: inline-flex; gap: 60px; animation: marquee 28s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--grey-dim);
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track span::after { content: "✦"; color: var(--red); font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----------------------------------------------------------------
   18. RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vehicle-layout { grid-template-columns: 1fr; }
  .vehicle-info { position: static; }
  .finance-layout { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  .inv-layout { grid-template-columns: 1fr; }
  .filters {
    position: fixed;
    inset: 0;
    z-index: 850;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.5s var(--ease-out);
    top: 0;
    padding-top: 90px;
  }
  .filters.open { transform: translateX(0); }
  .filter-toggle-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .filters-close { display: inline-flex !important; }
}

@media (min-width: 901px) {
  .filters-close { display: none; }
}

@media (max-width: 760px) {
  :root { --section-pad: clamp(56px, 9vh, 90px); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps-track { grid-template-columns: 1fr; gap: 40px; }
  .steps-line { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-ctas { grid-template-columns: 1fr; }
  .vehicle-actions .row2 { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-meta { display: none; }
  .hero { padding-top: 110px; }
  /* Hero car on phones: large + low, behind a darker scrim so the headline stays crisp */
  .hero-car { top: 64%; left: 60%; width: 132vw; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(5,5,6,0.82) 0%, rgba(5,5,6,0.45) 38%, transparent 66%),
      radial-gradient(130% 120% at 60% 48%, transparent 42%, rgba(5,5,6,0.6) 100%),
      linear-gradient(180deg, transparent 56%, rgba(10,10,10,0.92) 100%);
  }
}

@media (max-width: 460px) {
  .car-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* Touch devices: kill custom cursor + heavy hovers */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ----------------------------------------------------------------
   19. REDUCED MOTION
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .grain { animation: none; }
  .reveal, .reveal-blur, [data-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .speed-lines { display: none; }       /* keep the car visible but static under reduced motion */
  .hero-car .car-sheen, .hero-car .car-streak { display: none; }
  .hero-car .car-light, .hero-car .car-headlight { opacity: 1; }
  .scroll-cue .track::after, .map-pin .pin { animation: none; }
}

/* Utility: hide visually but keep for AT */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   END OF STYLESHEET
   ============================================================ */
