/* ==========================================================================
   LORBEK Luxury Cars — dark luxury theme
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --surface: #151518;
  --surface-2: #1c1c20;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --muted: #9b9ba3;
  --dim: #6b6b73;
  --red: #e1252b;
  --red-2: #ff3b41;

  --f-display: "Lexend Zetta", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, sans-serif;
  --f-mono: "Chakra Petch", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.red { color: var(--red); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 22px;
  font-size: 12px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--center { justify-content: center; text-align: center; }
.eyebrow-sm {
  margin: 0 0 8px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--red);
}
.h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(22px, 3vw, 40px); line-height: 1.2;
  letter-spacing: -.02em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 18px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.btn--pill {
  padding: 20px 40px 20px 44px; border-radius: 999px;
  background: #fff; color: #0a0a0b; font-size: 15px;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.btn--pill svg { transition: transform .4s var(--ease); stroke-width: 2.2; }
.btn--pill:hover { background: var(--red); color: #fff; }
.btn--pill:hover svg { transform: translateX(6px); }

.round-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text);
  background: rgba(10, 10, 11, .35); backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.round-btn:hover { background: var(--red); border-color: var(--red); }
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .3; pointer-events: none; }
.round-btn--light { background: #fff; color: #0a0a0b; border-color: #fff; }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background .25s, color .25s; }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .25em; text-transform: uppercase;
  color: var(--text); padding: 6px 0;
  border-bottom: 1px solid var(--line-2);
  transition: color .25s, border-color .25s, gap .35s var(--ease);
}
.link-arrow:hover { color: var(--red); border-color: var(--red); gap: 18px; }

.chip {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: all .25s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(10, 10, 11, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.header__inner {
  height: var(--header-h);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.logo img { height: 52px; width: auto; transition: height .4s var(--ease); }
.header.is-scrolled .logo img { height: 44px; }
.header__actions { display: flex; justify-content: flex-end; gap: 4px; }
.header__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--red); }

.menu-btn { display: inline-flex; align-items: center; gap: 14px; justify-self: start; padding: 10px 0; }
.menu-btn__lines { display: grid; gap: 6px; width: 28px; }
.menu-btn__lines i { display: block; height: 1.6px; background: currentColor; transition: width .35s var(--ease); }
.menu-btn__lines i:nth-child(2) { width: 70%; }
.menu-btn:hover .menu-btn__lines i:nth-child(2) { width: 100%; }
.menu-btn__label { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background: radial-gradient(1200px 600px at 80% 110%, rgba(225, 37, 43, .18), transparent 60%), var(--bg);
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__top { height: var(--header-h); padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.menu__top img { height: 52px; width: auto; }
.menu__body {
  flex: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  max-width: var(--max); width: 100%; margin-inline: auto; padding: 24px var(--gutter) 48px;
}
.menu__nav { display: grid; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 24px;
  font-family: var(--f-display); font-size: clamp(20px, 3.6vw, 46px); letter-spacing: -.02em; line-height: 1.5; text-transform: uppercase;
  color: var(--text);
  opacity: 0; transform: translateY(30px);
  transition: color .25s, opacity .6s var(--ease), transform .6s var(--ease);
}
.menu__nav a span { font-family: var(--f-mono); font-size: 13px; color: var(--red); }
.menu__nav a:hover { color: var(--red); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .2s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .25s; }
.menu__aside { display: grid; gap: 28px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 48px; }
.menu__aside p { margin: 0; }
.menu__aside a { color: var(--text); font-size: 22px; font-family: var(--f-display); }

/* ---------- Search overlay ---------- */
.search {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 5, 6, .7); backdrop-filter: blur(10px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 12vh var(--gutter) 0;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.search.is-open { opacity: 1; visibility: visible; }
.search__panel {
  width: min(760px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; transform: translateY(-16px); transition: transform .4s var(--ease);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.search.is-open .search__panel { transform: none; }
.search__bar { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--line); }
.search__bar > svg { color: var(--muted); }
.search__bar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 400 18px var(--f-body); padding: 14px 0; }
.search__bar input::placeholder { color: var(--dim); }
.search__results { max-height: 56vh; overflow: auto; }
.result { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); transition: background .2s; }
.result:hover, .result:focus-visible { background: var(--surface-2); }
.result img { width: 96px; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; }
.result b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.result small { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.result__price { font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }
.search__empty { padding: 28px 22px; color: var(--muted); margin: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: #000; }
.hero__slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.05); filter: brightness(.85) contrast(1.05); }
.slide.is-active img { animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.0); } }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, .92) 0%, rgba(5, 5, 6, .55) 38%, rgba(5, 5, 6, .05) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, .4) 22%, transparent 45%),
    linear-gradient(180deg, rgba(0, 0, 0, .65) 0%, transparent 22%);
}

.hero__content {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(110px, 16vh, 180px);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.hero__make, .hero__model { font-family: var(--f-mono); text-transform: uppercase; margin: 0; }
.hero__make { font-size: clamp(18px, 2.2vw, 28px); font-weight: 400; letter-spacing: .32em; color: #e9e9ec; }
.hero__model { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; font-weight: 700; letter-spacing: -.01em; margin: 14px 0 40px; max-width: 12ch; }
.hero__make, .hero__model, .hero__content .btn { transition: opacity .6s var(--ease), transform .8s var(--ease); }
.hero.is-changing .hero__make,
.hero.is-changing .hero__model,
.hero.is-changing .hero__content .btn { opacity: 0; transform: translateY(24px); }
.hero.is-changing .hero__model { transition-delay: .05s; }

.hero__ui {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 40px;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.hero__count { font-family: var(--f-mono); font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.hero__count b { color: var(--text); font-weight: 600; }
.hero__bars { flex: 1; display: flex; gap: 8px; max-width: 360px; }
.hero__bars button { flex: 1; height: 18px; position: relative; }
.hero__bars button::before, .hero__bars button i {
  content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
}
.hero__bars button::before { right: 0; background: rgba(255, 255, 255, .22); }
.hero__bars button i { width: 0; background: var(--red); }
.hero__bars button.is-done i { width: 100%; }
.hero__bars button.is-active i { animation: fillbar var(--dur, 7s) linear forwards; }
.hero.is-paused .hero__bars button.is-active i { animation-play-state: paused; }
@keyframes fillbar { from { width: 0; } to { width: 100%; } }
.hero__arrows { margin-left: auto; display: flex; gap: 10px; }

.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 36px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 8px; margin-left: -1px; background: #fff; border-radius: 2px; animation: wheel 1.8s infinite var(--ease); }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   About
   ========================================================================== */
.about { position: relative; padding: clamp(80px, 12vw, 160px) 0; overflow: hidden; }
.about__media { position: absolute; inset: 0 0 0 42%; }
.about__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.2) contrast(1.05); }
.about__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 11, .75) 35%, rgba(10, 10, 11, .2) 70%, rgba(10, 10, 11, .55) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.about__inner { position: relative; }
.about__logo { margin: 0 0 36px; }
.about__logo img { width: clamp(220px, 22vw, 300px); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .6)); }
.about__copy { max-width: 640px; color: #c9c9cf; font-size: clamp(16px, 1.25vw, 19px); }
.about__copy p { margin: 0 0 18px; }
.about__copy a { color: var(--red-2); border-bottom: 1px solid transparent; transition: border-color .2s; }
.about__copy a:hover { border-color: currentColor; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 80px); margin: 56px 0 0; padding-top: 36px; border-top: 1px solid var(--line); max-width: 760px; }
.stats dt { font-family: var(--f-mono); font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; line-height: 1; }
.stats dd { margin: 12px 0 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* ==========================================================================
   Brands marquee
   ========================================================================== */
.brands { padding: 40px 0 clamp(70px, 9vw, 120px); }
.marquee {
  overflow: hidden; margin-top: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.brand {
  display: grid; grid-template-rows: 64px auto; place-items: center; gap: 14px;
  padding: 18px clamp(28px, 3.6vw, 56px);
  color: var(--muted); white-space: nowrap; transition: color .3s;
}
.brand__logo {
  display: block; width: calc(var(--lw) * var(--ls, 1)); height: calc(var(--lh) * var(--ls, 1));
  background: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.brand__name { font-family: var(--f-display); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
.brand:hover { color: var(--text); }
.brand:hover .brand__name { color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head__note { max-width: 440px; margin: 0; color: var(--muted); }

/* ==========================================================================
   Arrivals carousel
   ========================================================================== */
.arrivals { padding-bottom: clamp(70px, 9vw, 120px); }
.arrivals__controls { display: flex; gap: 10px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }

.track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 26vw, 380px);
  gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 24px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scrollbar-width: none; cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.track.is-dragging .card { pointer-events: none; }

.card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .35s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.card__media img {
  position: absolute;
  width: calc(var(--z, 1) * 100%); height: calc(var(--z, 1) * 100%); max-width: none;
  left: calc(50% - var(--cx, .5) * var(--z, 1) * 100%);
  top: calc(50% - var(--cy, .5) * var(--z, 1) * 100%);
  object-fit: cover;
  transform-origin: calc(var(--cx, .5) * 100%) calc(var(--cy, .5) * 100%);
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__badge {
  position: absolute; left: 14px; top: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(10, 10, 11, .72); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.card__badge::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__make { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.card__title { margin: 6px 0 14px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.card__desc { margin: 0 0 16px; font-size: 13px; color: var(--dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.specs li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12px; color: #c9c9cf; }
.specs svg { width: 14px; height: 14px; color: var(--muted); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-family: var(--f-mono); font-size: 18px; font-weight: 700; }
.price small { display: block; font-family: var(--f-body); font-size: 10px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.card__go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: all .3s; }
.card:hover .card__go { background: var(--red); border-color: var(--red); transform: rotate(-45deg); }

.arrivals__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; }
.dashes { display: flex; gap: 6px; flex: 1; min-width: 0; }
.dashes button { flex: 0 1 26px; min-width: 6px; height: 14px; position: relative; }
.dashes button::before { content: ""; position: absolute; inset: 6px 0; border-radius: 2px; background: rgba(255, 255, 255, .2); transition: background .3s; }
.dashes button.is-active::before { background: var(--red); }

/* ==========================================================================
   Category tiles
   ========================================================================== */
.tiles {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px;
  padding-bottom: clamp(70px, 9vw, 120px);
}
.tile { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; background: var(--surface); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, 50% 50%); z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.35) brightness(.8); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 5, 6, .92) 0%, rgba(5, 5, 6, .35) 50%, rgba(5, 5, 6, .55) 100%); transition: opacity .5s; }
.tile:hover img { transform: scale(1.08); filter: none; }
.tile__title {
  position: absolute; left: clamp(16px, 1.8vw, 28px); bottom: clamp(70px, 6vw, 92px); right: 72px;
  font-size: clamp(22px, 2.3vw, 36px); font-weight: 800; line-height: 1.08; letter-spacing: -.01em;
}
.tile__title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 14px; background: var(--red); transition: width .5s var(--ease); }
.tile:hover .tile__title::after { width: 80px; }
.tile__go {
  position: absolute; right: clamp(14px, 1.6vw, 24px); bottom: clamp(18px, 1.8vw, 28px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); transition: background .3s, transform .4s var(--ease);
}
.tile:hover .tile__go { background: var(--red); transform: translateX(4px); }

/* ==========================================================================
   Finance promo
   ========================================================================== */
#finance { padding-bottom: clamp(70px, 9vw, 120px); }
.promo {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px;
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.promo__media { position: absolute; inset: 0 0 0 30%; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }
.promo__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 0%, rgba(21, 21, 24, .85) 30%, rgba(21, 21, 24, .1) 70%); }
.promo__body { position: relative; padding: clamp(36px, 6vw, 80px); align-self: center; }
.promo__body p:not(.eyebrow) { color: #c9c9cf; max-width: 460px; margin: 22px 0 32px; }


/* ==========================================================================
   Automobili Pininfarina
   ========================================================================== */
.apf { position: relative; padding-bottom: clamp(70px, 9vw, 120px); }
.apf__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.apf__media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); max-width: 1090px; }
.apf__media img { width: 100%; height: auto; aspect-ratio: 1090 / 490; object-fit: cover; transition: transform 1.6s var(--ease); }
.apf__media:hover img { transform: scale(1.03); }
.apf__body { display: grid; gap: 28px; align-content: center; min-width: 0; }
.apf__logo { width: clamp(220px, 24vw, 360px); margin: -12px 0 0; height: auto; filter: invert(1) brightness(1.6); mix-blend-mode: screen; }
.apf__copy p { margin: 0 0 18px; color: #c9c9cf; font-size: clamp(15px, 1.15vw, 18px); }
.apf__copy .apf__lead { font-family: var(--f-mono); font-size: clamp(18px, 1.6vw, 24px); color: var(--text); letter-spacing: .04em; margin-bottom: 30px; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: clamp(70px, 9vw, 120px) 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); }
.services__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { position: relative; padding: 34px 30px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s; overflow: hidden; }
.svc::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--red); transition: width .6s var(--ease); }
.svc:hover { background: var(--surface); }
.svc:hover::after { width: 100%; }
.svc__no { font-family: var(--f-mono); font-size: 13px; color: var(--red); }
.svc h3 { margin: 40px 0 10px; font-family: var(--f-display); font-weight: 400; font-size: 13px; letter-spacing: 0; text-transform: uppercase; }
.svc p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ==========================================================================
   Showrooms
   ========================================================================== */
.showrooms { padding-bottom: clamp(70px, 9vw, 120px); }
.showrooms__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.room { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; isolation: isolate; border: 1px solid var(--line); }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.room::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 5, 6, .95) 0%, rgba(5, 5, 6, .55) 45%, rgba(5, 5, 6, .15) 100%); }
.room:hover img { transform: scale(1.05); }
.room__body { padding: clamp(24px, 3vw, 40px); }
.room h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.9vw, 26px); letter-spacing: -.02em; text-transform: uppercase; }
.room p { margin: 0; color: #c9c9cf; }
.room__lic { font-family: var(--f-mono); font-size: 12px; color: var(--muted) !important; margin: 6px 0 22px !important; }

/* ==========================================================================
   Newsletter
   ========================================================================== */
#newsletter { padding-bottom: clamp(70px, 9vw, 120px); }
.news {
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background: radial-gradient(800px 400px at 0% 0%, rgba(225, 37, 43, .12), transparent 60%), var(--surface);
}
.news__body { padding: clamp(36px, 6vw, 80px); }
.news__body > p:not(.eyebrow):not(.news__fine) { color: #c9c9cf; max-width: 460px; margin: 22px 0 30px; }
.news__form { display: flex; align-items: center; gap: 12px; max-width: 460px; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; transition: border-color .3s; }
.news__form:focus-within { border-color: var(--text); }
.news__form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 400 16px var(--f-body); padding: 10px 0; }
.news__form input::placeholder { color: var(--dim); }
.news__form.is-error { border-color: var(--red); }
.news__fine { margin: 14px 0 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.news__fine.is-ok { color: #6ee7a8; }
.news__media { position: relative; min-height: 360px; }
.news__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 0%, rgba(21, 21, 24, .2) 45%, transparent 100%); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 90px); overflow: hidden; background: radial-gradient(900px 400px at 10% 120%, rgba(225, 37, 43, .12), transparent 60%), var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer__brand > p:not(.eyebrow-sm) { color: var(--muted); font-size: 14px; max-width: 320px; margin: 0 0 26px; }
.footer__phone { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 16px; letter-spacing: .06em; transition: color .2s; }
.footer__phone:hover { color: var(--red); }
.footer__phone svg { width: 16px; height: 16px; color: var(--red); }
.social { display: flex; gap: 8px; margin-top: 26px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); transition: all .25s; }
.social a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.social svg { width: 17px; height: 17px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.footer__col a { color: #c9c9cf; transition: color .2s, transform .3s var(--ease); }
.footer__col a:hover { color: var(--text); transform: translateX(4px); }
.footer__col p { margin: 0; color: #c9c9cf; }
.footer__col .eyebrow-sm { margin-bottom: 6px; }
.footer__gap { margin-top: 20px !important; }
.footer__wordmark {
  font-family: var(--f-display); font-size: clamp(36px, 9.4vw, 170px); line-height: .9; letter-spacing: -.03em; white-space: nowrap;
  text-align: center; margin-top: 60px; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.footer__legal a { margin-left: 20px; transition: color .2s; }
.footer__legal a:hover { color: var(--text); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { aspect-ratio: 4 / 3; }
  .tile img { object-position: var(--fp-wide, 50% 55%); }
  .tile::before { background: linear-gradient(0deg, rgba(5, 5, 6, .9) 0%, rgba(5, 5, 6, .45) 38%, rgba(5, 5, 6, 0) 70%); }
  .tile__title { bottom: 22px; font-size: clamp(20px, 2.6vw, 28px); }
  .tile__title::after { margin-top: 10px; }
  .tile__go { bottom: 20px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .logo img, .menu__top img { height: 42px; }
  .header.is-scrolled .logo img { height: 38px; }
  .menu-btn__label, .hide-sm { display: none; }
  .menu__body { grid-template-columns: 1fr; align-content: start; gap: 36px; }
  .menu__aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .slide img { height: 72%; object-position: var(--mpos, var(--pos, 50% 50%)); transform: none; }
  .slide.is-active img { animation: none; }
  .slide::after {
    background:
      linear-gradient(0deg, var(--bg) 28%, rgba(10, 10, 11, .75) 40%, rgba(10, 10, 11, 0) 58%),
      linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, transparent 18%);
  }
  .hero__content { bottom: 120px; }
  .hero__model { margin-bottom: 30px; }
  .btn--pill { padding: 16px 30px 16px 34px; font-size: 13px; }
  .hero__arrows, .hero__scroll { display: none; }
  .hero__bars { max-width: none; }
  .about__media { inset: 0; }
  .about__media img { opacity: .28; }
  .arrivals__controls { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .brand { --ls: .78; grid-template-rows: 52px auto; }
  .promo, .news { grid-template-columns: 1fr; }
  .promo__media { inset: 0; }
  .promo__media img { opacity: .4; }
  .promo__media::after { background: linear-gradient(0deg, var(--surface) 15%, rgba(21, 21, 24, .5)); }
  .news__media { min-height: 240px; order: -1; }
  .news__media::after { background: linear-gradient(0deg, var(--surface) 0%, transparent 60%); }
  .showrooms__grid { grid-template-columns: 1fr; }
  .apf__grid { grid-template-columns: 1fr; }
  .room { min-height: 380px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; gap: 2px; }
  .tile { aspect-ratio: 16 / 10; }
  .tile__title { font-size: 24px; }
}
@media (max-width: 520px) {
  .eyebrow { letter-spacing: .26em; font-size: 11px; gap: 12px; }
  .services__grid { grid-template-columns: 1fr; }
  .svc h3 { margin-top: 22px; }
  .stats { gap: 28px 36px; }
  .footer__legal a { margin: 0 16px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
