/* ==========================================================================
   Rkein Motors — styles
   Palette (names follow the brand kit):
   Night / Espresso / Deep / Accent / Kraft-Mid / Gold-Highlight / Cream / Paper / Sand / Line / Muted / Glow
   ========================================================================== */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Reem Kufi"; src: url("../fonts/reem-kufi-arabic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Reem Kufi"; src: url("../fonts/reem-kufi-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF; }

:root {
  --night: #0B0B0C;      /* darkest backgrounds (logo black) */
  --espresso: #17171A;   /* main text, dark buttons */
  --deep: #3D3E43;       /* secondary text */
  --accent: #B8161A;     /* italic highlights + Arabic on light */
  --accent-dk: #FF5A5C;  /* italic highlights + Arabic on dark */
  --mid: #5E6168;        /* steel: stamps, bands, badges */
  --red: #CD1D1F;        /* main buttons (white text 5.5:1) */
  --logo-red: #EB232D;   /* the exact logo red, large shapes only */
  --cream: #F3F2EF;      /* page background */
  --paper: #FFFFFF;      /* cards */
  --sand: #E7E5E1;       /* soft fills */
  --line: #D3D1CC;       /* borders */
  --muted: #5F6066;      /* small text */
  --glow: #FF2A2D;       /* tail-light glow */
  --chrome: #E9E7E3;     /* text on dark */
  --chrome-2: #A9A8A6;   /* secondary text on dark (7.9:1 on night) */

  --f-display: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ar: "Reem Kufi", "Noto Kufi Arabic", "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11,11,12,.06), 0 8px 28px rgba(11,11,12,.08);
  --shadow-lg: 0 2px 6px rgba(11,11,12,.08), 0 22px 60px rgba(11,11,12,.14);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --strip-h: 40px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font: 400 16px/1.6 var(--f-body); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-dk); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ar { font-family: var(--f-ar); direction: rtl; unicode-bidi: isolate; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* paper grain over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .07; mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* small uppercase label with a hairline rule before it */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 12px/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.label::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.on-dark .label { color: var(--chrome-2); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--espresso); --fg: #fff;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 700 15px/1 var(--f-body); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--red { --bg: var(--red); box-shadow: 0 10px 30px -10px rgba(235,35,45,.7); }
.btn--red:hover { --bg: #B5181A; }
.btn--ghost { --bg: transparent; --fg: var(--chrome); border-color: rgba(233,231,227,.35); }
.btn--ghost:hover { border-color: var(--chrome); }
.btn--dark { --bg: var(--espresso); }
.btn--light { --bg: var(--paper); --fg: var(--espresso); border-color: var(--line); }
.btn .chip {
  font: 800 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  background: var(--logo-red); color: #fff; padding: 5px 8px; border-radius: 999px;
}
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.35); pointer-events: none; z-index: -1; animation: ripple .6s ease-out forwards; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Top strip ---------- */
.strip { background: #050506; color: var(--chrome-2); font: 600 13px/1 var(--f-body); }
.strip .wrap { display: flex; align-items: center; gap: 22px; min-height: var(--strip-h); overflow: hidden; }
.strip a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; }
.strip a:hover { color: var(--chrome); }
.strip svg { width: 15px; height: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--chrome); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #3BD16F; box-shadow: 0 0 0 4px rgba(59,209,111,.18); }
.status.is-closed i { background: var(--logo-red); box-shadow: 0 0 0 4px rgba(235,35,45,.2); }
.strip .addr { margin-left: auto; }
.strip .sep { width: 1px; height: 14px; background: rgba(255,255,255,.14); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,12,.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(255,255,255,.07); color: var(--chrome); }
.header .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; min-height: 44px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand b { display: block; white-space: nowrap; font: 800 17px/1.05 var(--f-display); font-stretch: 125%; letter-spacing: .01em; text-transform: uppercase; }
.brand .ar { display: block; font-size: 14px; line-height: 1.4; color: var(--accent-dk); text-align: left; direction: rtl; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font: 600 14.5px/1 var(--f-body); color: var(--chrome-2); transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--chrome); background: rgba(255,255,255,.06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.09); }
.shortlist-btn { min-height: 44px; padding: 10px 16px; }
.shortlist-btn .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--red); font: 800 12px/22px var(--f-body); text-align: center; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: var(--chrome); overflow: hidden; isolation: isolate; }
.hero::before { /* spotlight */
  content: ""; position: absolute; inset: -20% -10% auto 30%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, rgba(235,35,45,.16), transparent 70%), radial-gradient(60% 50% at 60% 40%, rgba(255,255,255,.06), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: clamp(44px, 7vw, 92px); padding-bottom: clamp(40px, 6vw, 84px); }
.hero h1 {
  margin: 22px 0 0; font: 800 clamp(34px, 4.7vw, 66px)/1.02 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; text-wrap: balance;
}
.hero h1 em {
  font-style: italic; font-weight: 700; color: var(--accent-dk);
  background: linear-gradient(100deg, var(--accent-dk) 0%, var(--accent-dk) 40%, #FFD3D3 50%, var(--accent-dk) 60%, var(--accent-dk) 100%);
  background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h1 .ln { display: block; white-space: nowrap; }
.hero .sub-ar { margin: 20px 0 0; font-size: clamp(19px, 2vw, 25px); line-height: 1.6; color: var(--accent-dk); text-align: left; }
.hero .lead { margin: 14px 0 0; max-width: 34em; color: var(--chrome-2); font-size: 17px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.1); list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 3px; }
.facts b { font: 800 26px/1 var(--f-display); font-stretch: 115%; color: #fff; }
.facts span { font: 600 12.5px/1.3 var(--f-body); color: var(--chrome-2); letter-spacing: .02em; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.sticker {
  position: absolute; top: 3%; right: 0; width: clamp(122px, 11.5vw, 156px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; padding: 14px; transform: rotate(-10deg);
  background: var(--red); color: #fff; box-shadow: 0 18px 40px -12px rgba(235,35,45,.7), inset 0 0 0 4px rgba(255,255,255,.18);
}
.sticker::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.55); }
.sticker b { font: 800 clamp(17px, 1.7vw, 21px)/1 var(--f-display); font-stretch: 118%; text-transform: uppercase; }
.sticker span { font: 700 11px/1.25 var(--f-body); margin-top: 5px; }
.sticker .ar { font-size: 11px; line-height: 1.5; margin-top: 4px; opacity: .95; }

/* ---------- Where to next ---------- */
.next { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 30px; margin-bottom: 30px; }
.section-head h2 { margin: 14px 0 0; font: 800 clamp(30px, 3.6vw, 48px)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.015em; }
.section-head h2 em { font-style: italic; font-weight: 700; color: var(--accent); }
.section-head .ar { font-size: 21px; color: var(--accent); }
.tiles { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 22px;
  border-radius: var(--radius); overflow: hidden; text-decoration: none; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transform-style: preserve-3d;
  transition: box-shadow .3s, border-color .3s;
}
.tile:hover { box-shadow: var(--shadow-lg); border-color: #bdbab4; }
.tile h3 { margin: 0; font: 800 24px/1.05 var(--f-display); font-stretch: 115%; }
.tile .ar { display: block; margin-top: 4px; font-size: 16px; color: var(--accent); text-align: left; }
.tile p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.tile .go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); transition: background-color .25s, color .25s, transform .25s; }
.tile:hover .go { background: var(--red); color: #fff; transform: rotate(-45deg); }
.tile .go svg { width: 18px; height: 18px; }
.tile--photo { grid-row: span 2; min-height: 480px; color: #fff; background: var(--night); border-color: transparent; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,0) 30%, rgba(11,11,12,.88) 100%); }
.tile--photo > :not(img) { position: relative; z-index: 1; }
.tile--photo .ar { color: var(--accent-dk); }
.tile--photo p { color: var(--chrome); }
.tile--photo .go { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); }
.tile .badge {
  align-self: flex-start; margin-bottom: auto; font: 800 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 999px; background: var(--mid); color: #fff;
}
.tile--dark { background: var(--espresso); color: var(--chrome); border-color: transparent; }
.tile--dark p { color: var(--chrome-2); }
.tile--dark .ar { color: var(--accent-dk); }
.tile--dark .go { background: rgba(255,255,255,.1); }
.mini-thumbs { display: flex; margin-bottom: auto; }
.mini-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid var(--paper); margin-right: -14px; box-shadow: var(--shadow); }
.hours-mini { margin-bottom: auto; font: 700 13px/1.5 var(--f-body); color: var(--deep); }
.hours-mini b { font: 800 30px/1 var(--f-display); font-stretch: 115%; color: var(--espresso); display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--chrome-2); padding: 46px 0 30px; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.footer a { color: var(--chrome); }
.credit a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.08); border: 0; align-items: center; justify-content: center; cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 560px; margin: -10px auto -14px; width: 100%; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--photo { grid-column: span 2; grid-row: auto; min-height: 340px; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .strip .addr, .strip .sep:nth-of-type(2) { display: none; }
  .strip .wrap { justify-content: space-between; gap: 12px; }
  .brand img { width: 42px; height: 42px; }
  .brand b { font-size: 14px; font-stretch: 110%; }
  .shortlist-btn .lbl { display: none; }
  .shortlist-btn { padding: 10px 13px; }
  .hero .ctas .btn { flex: 1 1 100%; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .tiles { grid-template-columns: 1fr; }
  .tile--photo { grid-column: auto; min-height: 300px; }
  .tile { min-height: 190px; }
}

/* ==========================================================================
   Pages, cars, story, visit, shortlist, viewer, motion helpers
   ========================================================================== */
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: #fff; color: var(--espresso); padding: 12px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
main { outline: none; }
.page[hidden] { display: none !important; }

/* hide animated bits until GSAP is ready (safety fallback in <head>) */
.js-loading .hero-copy, .js-loading .hero-art, .js-loading .page-hero .wrap { visibility: hidden; }

/* mobile nav */
.mobile-nav { border-top: 1px solid rgba(255,255,255,.08); padding: 8px var(--gutter) 16px; display: grid; gap: 4px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 14px; text-decoration: none; font: 700 17px/1 var(--f-body); color: var(--chrome); }
.mobile-nav a .ar { font-size: 16px; color: var(--accent-dk); }
.mobile-nav a[aria-current="page"] { background: rgba(255,255,255,.08); }
@media (min-width: 1081px) { .mobile-nav { display: none !important; } }

/* inner page hero */
.page-hero { position: relative; background: var(--night); color: var(--chrome); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% -40% 45%; z-index: -1; background: radial-gradient(closest-side, rgba(235,35,45,.18), transparent 70%); }
.page-hero::after { /* thin roofline echo */
  content: ""; position: absolute; right: -6%; bottom: -1px; width: min(620px, 70%); height: 120px; z-index: -1; opacity: .22;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120'%3E%3Cpath d='M0 116C60 90 120 66 180 44C230 26 290 12 350 16C390 20 418 40 440 60C480 68 540 76 572 88C590 95 600 108 598 120' fill='none' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}
.page-hero .wrap { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(34px, 5vw, 60px); }
.page-title { margin: 16px 0 0; font: 800 clamp(36px, 5vw, 64px)/1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; }
.page-title em, .cta-block h2 em { font-style: italic; font-weight: 700; color: var(--accent-dk); }
.page-ar { margin: 12px 0 0; font-size: clamp(18px, 2vw, 23px); color: var(--accent-dk); text-align: left; }

/* split helpers */
.split-words .w { display: inline-block; }
.mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Cars page ---------- */
.cars-wrap { padding-top: 34px; padding-bottom: 80px; }
.how { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.how .num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--espresso); color: #fff; font: 800 16px/1 var(--f-display); font-stretch: 115%; }
.how b { display: block; font-size: 15px; line-height: 1.3; }
.how .ar { display: block; font-size: 14px; color: var(--accent); text-align: left; line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 6px 16px 6px 18px; border-radius: 999px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); color: var(--deep); font: 700 14.5px/1.1 var(--f-body); text-align: left;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab .ar { font-size: 13px; color: var(--accent); line-height: 1.3; }
.tab .n { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--sand); color: var(--espresso); font: 800 12.5px/26px var(--f-body); text-align: center; }
.tab .t { display: flex; flex-direction: column; }
.tab[aria-selected="true"] { background: var(--espresso); border-color: var(--espresso); color: #fff; }
.tab[aria-selected="true"] .ar { color: var(--accent-dk); }
.tab[aria-selected="true"] .n { background: var(--red); color: #fff; }
.price-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font: 700 13.5px/1 var(--f-body); color: var(--deep); }
.chip-btn[aria-pressed="true"] { background: var(--mid); border-color: var(--mid); color: #fff; }
.results-note { margin: 6px 0 18px; color: var(--muted); font-size: 14px; }

.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.car {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transform-style: preserve-3d; transition: box-shadow .3s, border-color .3s;
}
.car:hover { box-shadow: var(--shadow-lg); }
.car-media { position: relative; }
.car-photo { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--sand); aspect-ratio: 775 / 550; overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.car:hover .car-photo img { transform: scale(1.04); }
.car-photo .pics { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(11,11,12,.72); color: #fff; font: 700 12px/1 var(--f-body); backdrop-filter: blur(6px); }
.car-photo .pics svg { width: 15px; height: 15px; }
.status-tag { position: absolute; left: 12px; top: 12px; padding: 7px 11px; border-radius: 999px; font: 800 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; background: #fff; color: var(--espresso); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.status-tag.soon { background: var(--espresso); color: #fff; }
.status-tag.reserved { background: var(--mid); color: #fff; }
.status-tag.private { background: var(--red); color: #fff; letter-spacing: .02em; }
.price-stamp {
  position: absolute; right: 12px; bottom: -22px; z-index: 2; min-width: 96px; padding: 10px 14px 9px; border-radius: 14px; text-align: center; transform: rotate(-3deg);
  background: var(--red); color: #fff; font: 800 19px/1 var(--f-display); font-stretch: 112%; box-shadow: 0 10px 24px -8px rgba(205,29,31,.75), inset 0 0 0 2px rgba(255,255,255,.18);
}
.price-stamp small { display: block; font: 700 10px/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: 3px; }
.price-stamp.muted { background: var(--mid); box-shadow: 0 10px 24px -8px rgba(94,97,104,.7); font-size: 15px; }
.car-body { display: flex; flex-direction: column; gap: 6px; padding: 30px 18px 18px; flex: 1; }
.car-body h3 { margin: 0; font: 800 18px/1.18 var(--f-display); font-stretch: 105%; letter-spacing: -.005em; }
.car-body .ar { font-size: 14.5px; color: var(--accent); text-align: left; line-height: 1.5; }
.car-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.car-meta li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px; background: var(--sand); color: var(--deep); font: 700 12.5px/1.2 var(--f-body); }
.car-meta svg { width: 14px; height: 14px; }
.car-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.car-actions .btn { flex: 1; min-height: 46px; padding: 10px 14px; font-size: 14px; }
.btn-add.is-added { --bg: var(--espresso); }
.btn-add.is-added .ic-plus { display: none; }
.btn-add:not(.is-added) .ic-check { display: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }
.fine { margin: 26px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.empty-results { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Story ---------- */
.story { padding-top: 56px; padding-bottom: 90px; }
.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
.big-number { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--radius); background: var(--espresso); color: var(--chrome); box-shadow: var(--shadow-lg); overflow: hidden; }
.big-number::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(235,35,45,.45), transparent); }
.big-number b { font: 800 clamp(72px, 8.4vw, 124px)/.9 var(--f-display); font-stretch: 118%; letter-spacing: -.04em; color: #fff; }
.big-number b.unit { color: var(--accent-dk); }
.big-number span { display: block; margin-top: 14px; font-weight: 700; color: var(--chrome-2); }
.big-number .ar { margin-top: 4px; color: var(--accent-dk); font-size: 18px; text-align: left; }
.story-text p { margin: 0 0 18px; font-size: 18px; line-height: 1.7; color: var(--deep); }
.story-ar { font-size: 20px !important; color: var(--accent) !important; text-align: right; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.value { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transform-style: preserve-3d; }
.value-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--espresso); color: #fff; margin-bottom: 18px; }
.value-ic svg { width: 26px; height: 26px; }
.value h3 { margin: 0; font: 800 22px/1.1 var(--f-display); font-stretch: 112%; }
.value .ar { display: block; margin-top: 4px; color: var(--accent); font-size: 16px; text-align: left; }
.value p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Visit ---------- */
.visit { padding-top: 46px; padding-bottom: 90px; }
.visit-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .95fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2 { margin: 12px 0 0; font: 800 24px/1.15 var(--f-display); font-stretch: 110%; }
.card > .ar { margin: 4px 0 18px; color: var(--accent); font-size: 17px; text-align: left; }
.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours td { padding: 10px 10px; }
.hours td { padding: 10px 12px; border-top: 1px solid var(--sand); }
.hours tr:first-child td { border-top: 0; }
.hours td { white-space: nowrap; }
.hours td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hours tr.today td { background: var(--espresso); color: #fff; border-top-color: transparent; }
.hours tr.today td:first-child { border-radius: 10px 0 0 10px; }
.hours tr.today td:last-child { border-radius: 0 10px 10px 0; }
.hours .today-pill { margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--red); font: 800 10px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; vertical-align: 1px; }
.hours .closed { color: var(--muted); }
.hours tr.today .closed { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-list a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px; border-radius: 14px; background: var(--cream); text-decoration: none; transition: background-color .2s; }
.contact-list a:hover { background: var(--sand); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--red); }
.contact-list b { display: block; font-size: 15px; }
.contact-list small { color: var(--muted); font-size: 13px; }
.sign-wrap { display: grid; justify-items: center; padding-top: 26px; min-height: 250px; }
.sign-hook { width: 14px; height: 14px; border-radius: 50%; background: var(--espresso); box-shadow: 0 2px 0 rgba(0,0,0,.2); position: relative; z-index: 2; }
.sign { position: relative; margin-top: 60px; width: 230px; padding: 26px 20px 22px; border-radius: 22px; text-align: center; transform-origin: 50% -60px; background: var(--espresso); color: #fff; box-shadow: var(--shadow-lg), inset 0 0 0 3px rgba(255,255,255,.08); }
.sign-strings { position: absolute; left: 50%; top: -60px; width: 120px; height: 66px; transform: translateX(-50%); pointer-events: none; }
.sign-strings::before, .sign-strings::after { content: ""; position: absolute; top: 0; width: 2px; height: 74px; background: #8b8b8f; transform-origin: top; }
.sign-strings::before { left: 59px; transform: rotate(28deg); }
.sign-strings::after { left: 59px; transform: rotate(-28deg); }
.sign b { display: block; font: 800 48px/1 var(--f-display); font-stretch: 122%; letter-spacing: .04em; color: #3BD16F; text-shadow: 0 0 18px rgba(59,209,111,.6); }
.sign.is-closed b { color: var(--logo-red); text-shadow: 0 0 18px rgba(235,35,45,.7); }
.sign .ar { display: block; margin-top: 6px; font-size: 22px; color: var(--chrome); }
.cta-block { margin-top: 30px; padding: clamp(26px, 4vw, 44px); border-radius: calc(var(--radius) + 6px); background: var(--night); color: var(--chrome); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; isolation: isolate; }
.cta-block::before { content: ""; position: absolute; inset: -50% -20% -50% 50%; z-index: -1; background: radial-gradient(closest-side, rgba(235,35,45,.28), transparent 70%); }
.cta-block h2 { margin: 0; font: 800 clamp(28px, 3.4vw, 42px)/1.05 var(--f-display); font-stretch: 112%; }
.cta-block p { margin: 8px 0 0; color: var(--chrome-2); }
.cta-block .ar { color: var(--accent-dk); font-size: 18px; text-align: left; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.footer .brand b { color: var(--chrome); }
.footer p { margin: 0; }

/* ---------- Bottom bar ---------- */
.bar { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60; width: min(560px, calc(100% - 24px)); transform: translateX(-50%); }
.bar[hidden] { display: none; }
.bar-btn { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 9px 9px 9px 12px; border: 0; border-radius: 999px; cursor: pointer; text-align: left; background: rgba(11,11,12,.94); color: #fff; backdrop-filter: blur(12px); box-shadow: 0 20px 50px -14px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.bar-thumbs { display: flex; }
.bar-thumbs img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--night); margin-right: -12px; }
.bar-text { display: flex; flex-direction: column; margin-left: 14px; line-height: 1.25; }
.bar-text b { font-size: 15px; }
.bar-text span { color: var(--chrome-2); font-size: 12.5px; }
.bar-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--red); font: 800 14px/1 var(--f-body); white-space: nowrap; }
.bar-cta svg { width: 17px; height: 17px; }
.fly { position: fixed; z-index: 400; border-radius: 14px; object-fit: cover; pointer-events: none; box-shadow: var(--shadow-lg); }

/* ---------- Drawer & viewer ---------- */
.drawer, .viewer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden], .viewer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(11,11,12,.55); backdrop-filter: blur(3px); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--cream); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.3); overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--night); color: #fff; }
.drawer-head h2 { margin: 0; font: 800 22px/1.1 var(--f-display); font-stretch: 112%; }
.drawer-head .ar { color: var(--accent-dk); font-size: 15px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px 20px 30px; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--line); }
.lines { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.line img { width: 76px; height: 56px; object-fit: cover; border-radius: 10px; }
.line b { display: block; font-size: 14px; line-height: 1.3; }
.line small { color: var(--muted); font-size: 12.5px; }
.line .rm { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); display: grid; place-items: center; cursor: pointer; color: var(--deep); }
.line .rm svg { width: 16px; height: 16px; }
.inquiry { display: grid; gap: 14px; }
.inquiry[hidden], .thanks[hidden], .empty[hidden] { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > span { display: block; margin-bottom: 7px; font: 700 13px/1.2 var(--f-body); color: var(--deep); }
.field em { color: var(--accent); font-style: normal; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--sand); border-radius: 14px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 46px; padding: 6px; border-radius: 10px; text-align: center; font: 700 13px/1.2 var(--f-body); color: var(--deep); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--espresso); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2[hidden], .field[hidden] { display: none; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--espresso); font: 500 16px/1.3 var(--f-body); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--espresso); box-shadow: 0 0 0 3px rgba(23,23,26,.12); }
.field input[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,22,26,.15); }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--red); }
.closed-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #FBEAEA; color: #7A1013; font-size: 14px; font-weight: 600; }
.closed-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.closed-note[hidden] { display: none; }
.summary { padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.summary .row span:last-child { font-weight: 700; text-align: right; white-space: nowrap; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 800; }
.form-error { margin: 0; color: var(--accent); font-weight: 700; font-size: 14px; }
.form-error[hidden] { display: none; }
.btn--block { width: 100%; min-height: 54px; font-size: 16px; }
.thanks { text-align: center; padding: 40px 10px; }
.thanks-ic { display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%; background: #3BD16F; color: #fff; box-shadow: 0 0 0 10px rgba(59,209,111,.15); }
.thanks-ic svg { width: 36px; height: 36px; }
.thanks h3 { margin: 0; font: 800 28px/1.1 var(--f-display); font-stretch: 112%; }
.thanks .ar { color: var(--accent); font-size: 18px; margin: 4px 0 10px; }
.thanks p { color: var(--muted); }

.viewer-panel { position: absolute; inset: auto 0 0 0; margin: 0 auto; max-width: 980px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--night); color: var(--chrome); border-radius: 24px 24px 0 0; }
@media (min-width: 760px) { .viewer-panel { inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(980px, calc(100% - 48px)); max-height: calc(100% - 48px); border-radius: 24px; } }
.viewer-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(11,11,12,.6); }
.viewer-media { position: relative; aspect-ratio: 775 / 550; background: #000; }
.viewer-media img { width: 100%; height: 100%; object-fit: contain; }
.nav-prev, .nav-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(11,11,12,.6); }
.nav-prev { left: 12px; } .nav-next { right: 12px; }
.viewer-count { position: absolute; left: 14px; bottom: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(11,11,12,.7); font: 700 12px/1 var(--f-body); }
.viewer-thumbs { display: flex; gap: 8px; padding: 12px 16px 0; overflow-x: auto; scrollbar-width: thin; }
.viewer-thumbs button { flex: none; width: 78px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #222; opacity: .6; }
.viewer-thumbs button[aria-current="true"] { border-color: var(--logo-red); opacity: 1; }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer-info { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 20px 24px; }
.viewer-info h2 { margin: 0; font: 800 24px/1.15 var(--f-display); font-stretch: 108%; }
.viewer-info .ar { margin: 4px 0 0; color: var(--accent-dk); font-size: 16px; text-align: left; }
.viewer-meta { margin: 8px 0 0; color: var(--chrome-2); font-size: 14px; }
.viewer-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Page transition, toast, spark ---------- */
.transition { position: fixed; inset: 0; z-index: 500; pointer-events: none; background: var(--night); clip-path: circle(0 at 50% 50%); display: grid; place-items: center; visibility: hidden; }
.transition-inner { text-align: center; color: #fff; }
.transition img { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 0 60px rgba(235,35,45,.35); }
.transition b { display: block; font: 800 30px/1 var(--f-display); font-stretch: 118%; text-transform: uppercase; letter-spacing: .02em; }
.transition .ar { display: block; margin-top: 8px; font-size: 22px; color: var(--accent-dk); }
.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 16px); z-index: 450; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--espresso); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spark { position: fixed; z-index: 600; width: 2px; height: 10px; border-radius: 2px; background: var(--logo-red); pointer-events: none; transform-origin: 50% 100%; }
body.no-scroll { overflow: hidden; }

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .big-number { position: relative; top: 0; }
  .values { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .car-grid { grid-template-columns: 1fr; }
  .seg span { font-size: 12.5px; }
  .grid2 { grid-template-columns: 1fr; }
  .bar-thumbs { display: none; }
  .bar-text { margin-left: 8px; }
  .viewer-info { padding: 16px; }
  .viewer-actions { width: 100%; }
  .viewer-actions .btn { flex: 1; }
  .cta-actions .btn { flex: 1 1 100%; }
  .story-text p { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* hero headline masks */
.hero-title .ln:last-child { overflow: hidden; padding: 0 .14em .1em 0; margin-bottom: -.1em; }
.hero-title em { display: inline-block; }
