/* ============================================================
   EV Marketplace — "Roadster" direction (preview)
   Black ground, one car per screen, calm regular-weight type,
   a single outlined button. Standalone: does not load styles.css.
   ============================================================ */

:root {
  --bg: #000;
  --bg2: #0a0a0a;
  --ink: #fff;
  --grey: #d0d1d2;
  --muted: #8a8d93;
  --line: rgba(255, 255, 255, 0.14);
  --plate: #17c877;
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-wordmark: "Michroma", "Barlow", Arial, sans-serif;
  --nav-h: 64px;
  --edge: min(1320px, calc(100% - 48px));
  --measure: min(1180px, calc(100% - 48px));
}

/* Hyperspace Race (licensed) is declared only once its files exist in /fonts — see fonts/README.txt.
   The hero stack already lists it first, so enabling it is a two-line @font-face addition here. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--grey);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; color: var(--ink); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--plate); outline-offset: 3px; }

/* ---------- nav ---------- */

.rd-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.3s ease;
}
.rd-nav.solid {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.rd-nav-in {
  height: 100%;
  width: var(--edge);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rd-logo img { height: 24px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  opacity: 0.88;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: underline; text-underline-offset: 7px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; margin: 5px 0; }
@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
    gap: 26px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 24px; font-weight: 400; }
  .nav-toggle { display: block; }
}

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

.rd-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.rd-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: 60% 30%;
  filter: brightness(0.78) saturate(0.9);
}
.rd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.08) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 26%, transparent 46%, rgba(0, 0, 0, 0.9) 84%, #000 100%);
}
@media (max-width: 700px) {
  .rd-hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.78) 30%, rgba(0, 0, 0, 0.2) 48%, transparent 58%, rgba(0, 0, 0, 0.9) 84%, #000 100%);
  }
  .rd-hero-media { background-position: 58% 50%; }
}
.rd-hero-copy {
  flex: 1;
  width: var(--edge);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 4vh) 0 5vh;
}
.rd-hero-top { max-width: 640px; }
.rd-wordmark-svg { font-size: 0; line-height: 0; max-width: none; }
.rd-wordmark-svg svg { display: block; width: clamp(250px, 36vw, 520px); height: auto; color: #fff; }
.rd-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(24px, 3.6vw, 46px);
  line-height: 1.18;
  max-width: 16ch;
}
.rd-hero-sub {
  margin-top: 18px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--grey);
}
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 180px;
  padding: 0 24px;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.rd-btn:hover { background: #fff; color: #171a20; }
.rd-btn:active { transform: translateY(1px); }
.rd-btn.solid { background: #fff; color: #171a20; border-color: #fff; }
.rd-btn.solid:hover { background: #e4e4e4; }
.rd-hero-copy .rd-btn { align-self: flex-start; }

.rd-triplet {
  list-style: none;
  width: var(--edge);
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.rd-triplet li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 0 20px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--grey);
}
.rd-triplet li:first-child { border-left: 0; }
.rd-triplet svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.rd-triplet small { display: block; text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .rd-triplet { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 32px; }
  .rd-triplet li {
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    text-align: left;
    border-left: 0;
    padding: 0;
  }
  .rd-triplet svg { grid-row: 1 / 3; }
  .rd-triplet small { grid-column: 2; }
}

/* ---------- one car per screen ---------- */

.rd-screen { padding: 0 0 12vh; }
.rd-stage {
  position: relative;
  height: min(78vh, 860px);
  overflow: hidden;
  background: #000;
}
.rd-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  filter: brightness(0.92);
}
.rd-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 74%, #000 100%);
  box-shadow: inset 0 0 200px 50px rgba(0, 0, 0, 0.92);
}
.rd-copy {
  position: relative;
  width: var(--measure);
  margin: -5vh auto 0;
}
.rd-copy h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.18;
  margin-bottom: 18px;
}
.rd-copy p {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  max-width: 574px;
}
.rd-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-underline-offset: 6px;
}
.rd-stats { display: flex; gap: 56px; flex-wrap: wrap; margin-top: 36px; }
.stat b {
  display: block;
  font-size: 34px;
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat > span { font-size: 16px; color: var(--grey); letter-spacing: 0.04em; margin-top: 4px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- in stock now ---------- */

.rd-stock { padding: 10vh 0 14vh; text-align: center; }
.rd-stock h2 { font-size: clamp(30px, 3.4vw, 44px); }
.rd-stock .sub { margin: 10px auto 48px; color: var(--muted); font-size: 15px; }
.rd-stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: var(--measure);
  margin: 0 auto;
  text-align: left;
}
.car-card { display: flex; flex-direction: column; }
.car-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #111; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.car-card:hover .car-photo img { transform: scale(1.03); }
.badge-new, .badge-reserved {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 9px;
  background: #fff;
  color: #171a20;
}
.badge-reserved { background: #e8a13d; color: #1a1200; }
.car-card.reserved .car-photo img { filter: saturate(0.75) brightness(0.8); }
.car-body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-body h3 { font-size: 18px; font-weight: 500; letter-spacing: 0.01em; text-transform: capitalize; }
.car-meta { font-size: 14px; color: var(--muted); }
.car-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.car-price { font-size: 18px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: #fff; color: #171a20; }
#featured-more { margin-top: 56px; }
@media (max-width: 960px) { .rd-stock-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rd-stock-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.rd-faq { padding: 8vh 0 12vh; border-top: 1px solid var(--line); }
.rd-faq .inner { width: min(860px, calc(100% - 48px)); margin: 0 auto; }
.rd-faq h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 32px; }
.rd-faq details { border-top: 1px solid var(--line); }
.rd-faq details:last-child { border-bottom: 1px solid var(--line); }
.rd-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 400;
  color: #fff;
}
.rd-faq summary::-webkit-details-marker { display: none; }
.rd-faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 1; color: var(--grey); flex: none; }
.rd-faq details[open] summary::after { content: "–"; }
.rd-faq details p { padding: 0 0 24px; max-width: 65ch; }

/* ---------- contact ---------- */

.rd-contact { padding: 0 0 12vh; background: var(--bg2); border-top: 1px solid var(--line); }
.rd-stage-short { height: min(56vh, 620px); }
.rd-stage-short img { object-position: center 40%; }
.rd-contact .inner { position: relative; margin-top: -4vh; }
.rd-contact .inner { width: var(--measure); margin: 0 auto; }
.rd-contact h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; }
.rd-contact .lead { max-width: 52ch; margin-bottom: 52px; }
.rd-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.rd-info { display: grid; gap: 28px; font-size: 15px; }
.rd-info b { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.rd-info a { color: #fff; text-decoration: none; font-size: 18px; font-weight: 400; }
.rd-info a:hover { text-decoration: underline; text-underline-offset: 5px; }
.rd-info span { color: var(--grey); }
.hours { border-collapse: collapse; font-size: 15px; }
.hours td { padding: 3px 24px 3px 0; color: var(--grey); }
.hours td:last-child { color: #fff; font-variant-numeric: tabular-nums; }

form.enquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
form.enquiry .full { grid-column: 1 / -1; }
form.enquiry label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
form.enquiry input, form.enquiry textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  color: #fff;
  font: inherit;
  font-size: 17px;
  padding: 8px 0 10px;
}
form.enquiry input:focus, form.enquiry textarea:focus { outline: 0; border-bottom-color: #fff; }
form.enquiry textarea { min-height: 110px; resize: vertical; }
form.enquiry ::placeholder { color: #5f636a; }
form.enquiry .rd-btn { margin-top: 6px; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.form-note a { color: #fff; }
form.enquiry h3 { font-size: 22px; margin-bottom: 8px; }
@media (max-width: 860px) {
  .rd-contact-grid { grid-template-columns: 1fr; gap: 44px; }
  form.enquiry { grid-template-columns: 1fr; }
}

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

.rd-footer { padding: 40px 0 52px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.rd-footer .inner { width: var(--measure); margin: 0 auto; }
.rd-footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin-bottom: 28px; }
.rd-footer-links a { color: var(--grey); text-decoration: none; font-weight: 500; }
.rd-footer-links a:hover { color: #fff; }
.rd-legal p { max-width: 1000px; line-height: 1.6; margin-bottom: 10px; }

/* ---------- chat widget (markup injected by main.js) ---------- */

.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-bubble {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 20, 22, 0.9);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, background 0.15s ease;
}
.chat-bubble:hover { transform: scale(1.06); background: #fff; color: #171a20; }
.chat-bubble svg { width: 24px; height: 24px; }
.chat-bubble .ic-close { display: none; }
.chat-widget.open .chat-bubble .ic-open { display: none; }
.chat-widget.open .chat-bubble .ic-close { display: block; }
.chat-bubble.pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); animation: chat-pulse 2.4s ease-out infinite; }
@keyframes chat-pulse { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.chat-panel { width: min(320px, calc(100vw - 44px)); background: rgba(16, 16, 18, 0.96); border: 1px solid var(--line); overflow: hidden; transform-origin: bottom right; animation: chat-pop 0.18s ease; }
@keyframes chat-pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
.chat-head { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-weight: 500; color: #fff; font-size: 15px; }
.chat-head span { color: var(--muted); font-size: 13px; }
.chat-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; text-decoration: none; color: #fff; border-top: 1px solid var(--line); transition: background 0.12s ease; }
.chat-row:first-of-type { border-top: 0; }
.chat-row:hover { background: rgba(255, 255, 255, 0.06); }
.chat-row svg { width: 24px; height: 24px; flex: none; }
.chat-row b { display: block; font-size: 15px; font-weight: 500; }
.chat-row small { color: var(--muted); font-size: 12px; }
.chat-wa svg { color: #25d366; }
.chat-call svg, .chat-mail svg { color: var(--grey); }
.chat-teaser { position: relative; max-width: 250px; background: rgba(16, 16, 18, 0.96); border: 1px solid var(--line); padding: 14px 30px 14px 16px; cursor: pointer; animation: chat-pop 0.25s ease; }
.chat-teaser p { font-size: 14px; line-height: 1.45; color: #fff; }
.chat-teaser-close { position: absolute; top: 4px; right: 8px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; padding: 4px; }
.chat-teaser-dots { display: flex; gap: 5px; padding: 4px 2px; }
.chat-teaser-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); opacity: 0.4; animation: chat-typing 1s infinite; }
.chat-teaser-dots i:nth-child(2) { animation-delay: 0.18s; }
.chat-teaser-dots i:nth-child(3) { animation-delay: 0.36s; }
.chat-teaser-dots[hidden], .chat-teaser[hidden], .chat-panel[hidden] { display: none; }
@keyframes chat-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-status { display: inline-flex; align-items: center; gap: 7px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.chat-dot.on { background: var(--plate); }
.chat-dot.off { background: #e8a13d; }
@media (prefers-reduced-motion: reduce) { .chat-bubble.pulse::before, .chat-teaser-dots i, .chat-panel, .chat-teaser { animation: none; } }
@media (max-width: 640px) { .chat-widget { right: 16px; bottom: 16px; } }

[hidden] { display: none !important; }

/* ============================================================
   Stock page — rotary carousel + HUD kept, restyled to the
   Roadster language (no glows, white accents, square corners).
   ============================================================ */

.rd-page-head { width: var(--measure); margin: 0 auto; padding: calc(var(--nav-h) + 9vh) 0 5vh; }
.rd-page-head h1 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.1; margin-bottom: 14px; }
.rd-page-head p { font-size: clamp(17px, 1.5vw, 20px); max-width: 574px; }

.showroom {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(760px 360px at 50% 108%, rgba(255, 255, 255, 0.09), transparent 65%);
}
.sh-stage { position: relative; height: 78vh; }
.sh-wheel { position: absolute; left: 50%; width: 0; height: 0; }
.sh-card {
  position: absolute;
  width: min(600px, 82vw);
  left: calc(min(600px, 82vw) / -2);
  top: -190px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.6s cubic-bezier(0.25, 0.9, 0.3, 1), opacity 0.5s ease;
  will-change: transform;
  text-align: center;
}
.sh-card img {
  width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
.sh-card.on img { border-color: rgba(255, 255, 255, 0.4); }
.sh-name {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.sh-card.on .sh-name { opacity: 1; }
.sh-arrow {
  position: absolute;
  top: 44%;
  z-index: 150;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.sh-arrow:hover { background: #fff; color: #171a20; }
.sh-prev { left: max(18px, 4vw); }
.sh-next { right: max(18px, 4vw); }
.sh-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.nfs-hud {
  position: absolute;
  top: 38px;
  right: 18px;
  z-index: 200;
  width: 172px;
  background: rgba(8, 8, 10, 0.86);
  border: 1px solid var(--line);
  border-radius: 4px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 11px;
}
.nfs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.nfs-title { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; line-height: 1.2; }
.nfs-sub { color: var(--muted); font-size: 10px; margin-top: 3px; max-width: 24ch; }
.nfs-price { font-size: 12px; font-weight: 500; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nfs-rows { margin-top: 10px; display: grid; gap: 6px; }
.nfs-row { display: grid; grid-template-columns: auto 1fr 54px; align-items: center; gap: 6px; font-size: 10px; }
.nfs-row span { white-space: nowrap; padding-right: 2px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.nfs-row b { color: #fff; text-align: right; font-weight: 500; font-size: 11px; font-variant-numeric: tabular-nums; }
.nfs-bar { height: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.nfs-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width 0.7s cubic-bezier(0.25, 0.9, 0.3, 1); }
.nfs-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.nfs-chips em { font-style: normal; font-size: 10px; color: var(--grey); border: 1px solid var(--line); padding: 2px 6px; }
.nfs-hud .btn { margin-top: 10px; display: flex; justify-content: center; height: 30px; padding: 0 10px; font-size: 11px; }
.nfs-row.nfs-plain { grid-template-columns: auto 1fr; }
.nfs-reserved {
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: #ffcf87;
  border: 1px solid rgba(232, 161, 61, 0.5);
  padding: 5px 8px;
  text-align: center;
}
.sh-card .badge-reserved.sh-badge { top: 16px; left: 16px; }
@media (max-width: 700px) {
  .showroom { min-height: 0; }
  .sh-stage { height: 66vh; min-height: 500px; }
  .sh-card { top: -150px; }
  .nfs-hud { top: 10px; right: 10px; left: auto; width: 150px; margin: 0; padding: 8px 9px; }
  .nfs-sub, .nfs-chips { display: none; }
  .nfs-row { grid-template-columns: auto 1fr 40px; gap: 5px; }
  .sh-arrow { top: auto; bottom: 14px; }
}

.rd-stock-page { padding: 8vh 0 12vh; }
.rd-stock-page .inner { width: var(--measure); margin: 0 auto; }
.stock-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--grey);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: #fff; color: #fff; }
.chip.active { background: #fff; border-color: #fff; color: #171a20; }
#stock-sort {
  font: inherit;
  font-size: 13px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
#stock-sort option { color: #171a20; }
.stock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.rd-stock-page .car-edition { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.rd-stock-page .car-body h3 { text-transform: none; letter-spacing: 0.02em; }
.stock-updated { margin-top: 48px; color: var(--muted); font-size: 13px; max-width: 70ch; }
.stock-updated a { color: #fff; }
@media (max-width: 960px) { .stock-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .stock-grid { grid-template-columns: 1fr; } }

/* ---------- about / contact pages ---------- */

.rd-copy .rd-btn { margin-top: 30px; }
.rd-prose p + p { margin-top: 1em; }
.rd-stats-band { width: var(--measure); margin: 0 auto; padding: 2vh 0 10vh; }
.rd-stats-band .rd-stats { margin-top: 0; gap: 64px; }
.rd-trio { border-top: 1px solid var(--line); padding: 10vh 0 12vh; }
.rd-trio .inner { width: var(--measure); margin: 0 auto; }
.rd-trio h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 16px; }
.rd-trio .lede { max-width: 574px; font-size: clamp(17px, 1.5vw, 20px); margin-bottom: 56px; }
.rd-trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 32px; }
.rd-trio-grid h3 { font-size: 19px; font-weight: 500; margin-bottom: 10px; }
.rd-trio-grid p { font-size: 16px; color: var(--grey); }
.rd-cta { border-top: 1px solid var(--line); padding: 12vh 0 14vh; text-align: center; }
.rd-cta h2 { font-size: clamp(28px, 3.2vw, 42px); }
.rd-cta p { margin: 12px auto 0; max-width: 48ch; }
.rd-cta .rd-btn { margin-top: 30px; }
.rd-contact-page .inner { margin-top: -6vh; }
.rd-contact-page h2 { font-size: 22px; font-weight: 500; margin-bottom: 36px; }
@media (max-width: 860px) {
  .rd-trio-grid { grid-template-columns: 1fr; gap: 28px; }
  .rd-stats-band .rd-stats { gap: 36px; }
}

/* ---------- hero: spec-row direction (16 Oct 2026) ---------- */
.rd-wordmark-light {
  font-family: var(--font);
  font-weight: 200;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  max-width: 12ch;
}
.rd-wordmark-light strong { font-weight: 500; }
.rd-specrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 2vh; }
.rd-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; width: 100%; }
.rd-spec { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; }
.rd-spec b { font-weight: 200; font-size: clamp(44px, 5.2vw, 72px); line-height: 1; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.rd-spec > span { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--grey); margin-top: 4px; }
.rd-spec > small { font-size: 13px; font-weight: 300; color: var(--muted); letter-spacing: 0; }
.rd-specrow .rd-btn { margin: 0 0 8px; }
@media (max-width: 700px) {
  .rd-specs { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .rd-spec b { font-size: 42px; }
  .rd-specrow { padding-bottom: 0; }
  .rd-specrow .rd-btn { width: 100%; margin-top: 6px; }
}

/* ---------- time-circuit stats (seven-segment LED digits) ---------- */
.rd-stats .stat b { line-height: 1; font-size: clamp(42px, 4.2vw, 58px); }
@media (max-width: 700px) { .rd-stats .stat b { font-size: 40px; } }
.tc { display: inline-flex; align-items: flex-end; gap: 0.07em; }
.tc-d { display: inline-block; width: 0.6em; height: 1em; }
.tc-digit { display: block; width: 100%; height: 100%; }
.tc-digit polygon { fill: var(--tc-off, rgba(255, 255, 255, 0.09)); transition: fill 0.06s linear; }
.tc-digit polygon.on { fill: var(--tc-on, #ff3b30); filter: drop-shadow(0 0 5px var(--tc-on, #ff3b30)); }
.tc-x { font-weight: 300; font-size: 0.72em; line-height: 1; padding-bottom: 0.06em; color: var(--tc-on, #ff3b30); }
.rd-stats .stat b, .rd-specs .rd-spec b { --tc-on: #ff3b30; }
.rd-specs .rd-spec b { line-height: 1; }

/* ---------- time-circuits panel ---------- */
.tc-panel {
  width: var(--measure);
  margin: 6vh auto 8vh;
  background: #050506;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 24px 14px;
  display: grid;
  gap: 4px;
}
.tcp-head, .tcp-row { display: grid; grid-template-columns: 1.2fr 0.9fr 1.5fr 0.9fr 0.9fr; gap: 20px; align-items: end; }
.tcp-head span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding-bottom: 6px; }
.tcp-row { padding: 12px 0 8px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.tcp-month { font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: 0.1em; color: var(--tc-on); text-shadow: 0 0 6px var(--tc-on); }
.tcp-row b { display: block; font-size: 30px; line-height: 1; }
.tcp-hour { position: relative; }
.tcp-hour::after { content: ":"; position: absolute; right: -15px; top: -2px; font-size: 28px; line-height: 1; font-weight: 300; color: var(--tc-on); transition: opacity 0.15s; }
.tc-panel.tick .tcp-hour::after { opacity: 0.15; }
.tcp-label { grid-column: 1 / -1; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); text-align: center; margin-top: 6px; }
.tcp-row[data-row="present"] { --tc-on: #35e26a; }
.tcp-row[data-row="next"] { --tc-on: #ffb000; }
.tcp-row[data-row="arrived"] { --tc-on: #ff3b30; }
@media (max-width: 700px) {
  .tc-panel { padding: 12px 14px 10px; }
  .tcp-head, .tcp-row { gap: 10px; }
  .tcp-month { font-size: 18px; letter-spacing: 0.06em; }
  .tcp-row b { font-size: 20px; }
  .tcp-hour::after { right: -9px; font-size: 18px; }
  .tcp-label { font-size: 10px; }
}

/* ---------- year dials on cards and HUD ---------- */
.car-year, .car-soh { display: inline-block; font-size: 15px; line-height: 1; vertical-align: -0.1em; --tc-on: #ff3b30; }
.nfs-chips em.car-year { border: 0; padding: 0 4px 0 0; font-size: 11px; vertical-align: 0; }

/* ---------- 88 mph scroll speedo ---------- */
.speedo {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 55;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px 7px;
  background: rgba(8, 8, 10, 0.82);
  border: 1px solid var(--line);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  --tc-on: #ff3b30;
}
.speedo.on { opacity: 1; }
.speedo b { font-size: 26px; line-height: 1; }
.speedo span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.speedo.max b { filter: brightness(1.35); }
@media (max-width: 700px) { .speedo { left: 12px; bottom: 12px; padding: 6px 8px 5px; } .speedo b { font-size: 20px; } }

/* ---------- easter egg: cold-gas thruster launch ---------- */
.rd-stats .stat b { user-select: none; -webkit-user-select: none; }
.tc.thrust { position: relative; z-index: 5; animation: tc-lift 2.3s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
@keyframes tc-lift {
  0% { transform: none; }
  22% { transform: translateY(-48px) rotate(-2deg) scale(1.04); }
  45% { transform: translateY(-54px) rotate(1.5deg) scale(1.04); }
  68% { transform: translateY(-46px) rotate(-1deg) scale(1.04); }
  86% { transform: translateY(5px) rotate(0deg) scale(1); }
  100% { transform: none; }
}
.thr {
  position: absolute;
  bottom: -8px;
  width: 12px;
  height: 40px;
  margin-left: -6px;
  transform-origin: top center;
  border-radius: 50% 50% 60% 60% / 30% 30% 70% 70%;
  background: radial-gradient(ellipse at top, #ffffff 0%, #cfeaff 28%, rgba(130, 195, 255, 0.65) 58%, rgba(130, 195, 255, 0) 100%);
  filter: blur(0.5px) drop-shadow(0 0 8px rgba(150, 205, 255, 0.85));
  opacity: 0;
  pointer-events: none;
  animation: thr-fire 0.09s infinite alternate, thr-fade 2.3s both;
}
@keyframes thr-fire { from { transform: scaleY(0.7) scaleX(0.9); } to { transform: scaleY(1.3) scaleX(1.12); } }
@keyframes thr-fade { 0% { opacity: 0; } 7% { opacity: 1; } 74% { opacity: 1; } 88% { opacity: 0; } 100% { opacity: 0; } }
.thr-cap {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfeaff;
  animation: thr-cap 2.3s both;
}
@keyframes thr-cap { 0% { opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tc.thrust, .thr, .thr-cap { animation: none; } }

/* ---------- hero wordmark: Roadster finish (silver, slanted) on Michroma ---------- */
.rd-wordmark-metal {
  position: relative;
  z-index: 0;
  font-family: "Michroma", "Krona One", "Barlow", sans-serif;
  font-weight: 400;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(26px, 3.8vw, 54px);
  line-height: 1.14;
  max-width: 20ch;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #e6e9ee 32%, #b8bec7 64%, #8e959e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0.6px rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.65));
}
.rd-wordmark-metal::before,
.rd-wordmark-metal::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-text-stroke: 0;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  pointer-events: none;
}
.rd-wordmark-metal::before { color: rgba(220, 235, 255, 0.28); filter: blur(14px); }
.rd-wordmark-metal::after { color: #1d1f23; transform: translate(1px, 2px); filter: blur(0.4px); }
@media (max-width: 700px) { .rd-wordmark-metal { font-size: 27px; letter-spacing: 0.05em; } }

/* ---------- easter egg: flux capacitor (triple-click the logo) ---------- */
.rd-nav-in { position: relative; }
.rd-logo { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.flux {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  color: #ffe9a8;
  animation: flux-show 2s ease both;
}
.flux svg { width: 40px; height: 40px; overflow: visible; filter: drop-shadow(0 0 6px rgba(255, 220, 140, 0.8)); }
.flux .fx-tube { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 2.4; stroke-linecap: round; }
.flux .fx-flow { fill: none; stroke: #fff3cc; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.3 0.7; animation: flux-flow 0.42s linear infinite; }
.flux .fx-lamp { fill: #ffe9a8; animation: flux-lamp 0.42s ease-in-out infinite; }
.flux .fx-core { fill: #fff; animation: flux-lamp 0.42s ease-in-out infinite 0.21s; }
.flux-cap { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 8px rgba(255, 220, 140, 0.6); }
@keyframes flux-show {
  0% { opacity: 0; transform: scale(0.8); }
  12% { opacity: 1; transform: scale(1); }
  82% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.94); }
}
@keyframes flux-flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes flux-lamp { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@media (max-width: 880px) { .flux { left: auto; right: 72px; translate: 0 -50%; } }
@media (max-width: 400px) { .flux-cap { display: none; } }
@media (prefers-reduced-motion: reduce) { .flux .fx-flow, .flux .fx-lamp, .flux .fx-core { animation: none; } }
