/* Automobili Esotica — site styles
   Dark theme, amber accent. Fonts are the same local files the original Framer site used. */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dmsans-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2"); }

:root {
  --bg: #0d0d0d;
  --bg-2: #121212;
  --surface: #191919;
  --surface-2: #222222;
  --surface-3: #2b2b2b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f1ed;
  --text-2: #bdb8b0;
  --muted: #8f8a82;
  --accent: #d4932f;
  --accent-hover: #e3a647;
  --on-accent: #140e05;
  --error: #ff7a6b;
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-display: "DM Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 80px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.2; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { padding-top: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--text-2); max-width: 680px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { max-width: 720px; }
.accent { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(13, 13, 13, .35); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; text-decoration: none; min-height: 44px; }
.text-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(13, 13, 13, .82); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.site-header.over-hero:not(.scrolled):not(.menu-open) { background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (min-width: 900px) { .site-header.over-hero:not(.scrolled) .main-nav a:not(.btn) { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); } }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 41px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name strong { font: 600 19px/1.1 var(--font-display); letter-spacing: -0.02em; }
.brand-name small { font-size: 14px; color: var(--text-2); letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn) { position: relative; padding: 12px 14px; font: 500 15px/1 var(--font-body); color: var(--text-2); text-decoration: none; border-radius: 999px; transition: color .2s; }
.main-nav a:not(.btn):hover, .main-nav a:not(.btn)[aria-current="page"] { color: var(--text); }
.main-nav a:not(.btn)[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); border-radius: 2px; }
.main-nav .btn { min-height: 44px; padding: 0 20px; margin-left: 10px; font-size: 14px; }
.menu-toggle { display: none; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: 999px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 26px; height: 26px; }
.menu-toggle .close { display: none; }
.menu-open .menu-toggle .open { display: none; }
.menu-open .menu-toggle .close { display: block; }

@media (max-width: 899.98px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .main-nav a:not(.btn) { padding: 18px 0; font: 600 28px/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a:not(.btn)[aria-current="page"] { color: var(--accent); }
  .main-nav a:not(.btn)[aria-current="page"]::after { display: none; }
  .main-nav .btn { margin: 28px 0 0; min-height: 54px; font-size: 16px; }
  .main-nav .menu-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
  .main-nav .menu-contact a { font: 400 17px/1.4 var(--font-body) !important; color: var(--text-2) !important; border: 0 !important; padding: 8px 0 !important; }
  body.no-scroll { overflow: hidden; }
  /* backdrop-filter would trap the fixed menu inside the header box */
  .site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
@media (min-width: 900px) { .main-nav .menu-contact { display: none; } }

/* Hero (home) */
.hero { position: relative; min-height: min(100svh, 980px); margin-top: calc(var(--header-h) * -1); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; transform: scale(1.04); animation: heroIn 1.6s var(--ease) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(8,8,8,.88) 0%, rgba(8,8,8,.55) 42%, rgba(8,8,8,.05) 75%),
  linear-gradient(0deg, rgba(13,13,13,1) 0%, rgba(13,13,13,0) 32%); }
.hero-content { padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(64px, 10vh, 120px); }
.hero h1 { max-width: 13ch; margin-bottom: 24px; }
.hero .lede { color: #d9d4cc; margin-bottom: 36px; max-width: 540px; }
@keyframes heroIn { from { transform: scale(1.12); opacity: .4; } to { transform: scale(1.04); opacity: 1; } }
@media (max-width: 759.98px) {
  /* Phones: photo on top, text below it, so the car stays visible */
  .hero { display: block; min-height: 0; }
  .hero::after { display: none; }
  .hero-media { position: relative; inset: auto; height: 56svh; min-height: 320px; max-height: 520px; }
  .hero-media img { object-position: 60% 55%; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,13,13,1) 0%, rgba(13,13,13,0) 45%), linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%); }
  .hero-content { position: relative; margin-top: -56px; padding-top: 0; padding-bottom: 56px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Value strip */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 32px 28px 34px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 18px; }
.value h3 { font-size: 19px; margin-bottom: 8px; }
.value p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; margin: 0; }
@media (max-width: 999.98px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 559.98px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 26px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
}

/* Vehicle cards */
.car-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.car-card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.car-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.car-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.car-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.car-card:hover .media img { transform: scale(1.05); }
.car-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-card .year { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.car-card h3 { font-size: 25px; }
.car-card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); font-size: 15px; margin-top: 4px; }
.car-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 18px; }
.car-card .price { font: 600 22px/1 var(--font-display); letter-spacing: -0.02em; }
.car-card .go { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent); }
.car-card .go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.car-card:hover .go svg { transform: translateX(3px); }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; font: 600 14px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-sold { background: rgba(13, 13, 13, .78); color: var(--text); backdrop-filter: blur(6px); }
.badge-sold::before { background: var(--accent); }
.badge-available { background: var(--accent); color: var(--on-accent); }
.car-card .badge { position: absolute; top: 16px; left: 16px; }

/* Empty state */
.empty { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-2); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--text-2); margin: 0; max-width: 560px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { margin-bottom: 20px; }
.split p { color: var(--text-2); }
.split .btn-row { margin-top: 30px; }
@media (max-width: 899.98px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* Service cards */
.service-feature { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .25s var(--ease); }
.service-feature:hover { border-color: var(--line-2); }
.service-feature .media { min-height: 320px; overflow: hidden; }
.service-feature .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-feature:hover .media img { transform: scale(1.04); }
.service-feature .body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.service-feature h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
.service-feature p { color: var(--text-2); }
.service-feature .btn { align-self: flex-start; margin-top: 14px; }
@media (max-width: 859.98px) { .service-feature { grid-template-columns: 1fr; } .service-feature .media { min-height: 0; aspect-ratio: 16 / 10; } }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin-top: clamp(16px, 2vw, 24px); }
.service-card { padding: 30px 28px 32px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.service-card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 22px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-2); margin: 0; font-size: 16px; }
@media (max-width: 859.98px) { .service-grid { grid-template-columns: 1fr; } }

/* Page header (inner pages) */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(40px, 5.4vw, 68px); margin-bottom: 20px; }
.crumb { display: flex; width: max-content; align-items: center; gap: 8px; min-height: 44px; color: var(--text-2); text-decoration: none; font-size: 15px; margin-bottom: 8px; }
.crumb:hover { color: var(--accent); }
.crumb svg { width: 16px; height: 16px; }

/* Prose */
.prose { font-size: clamp(17px, 1.3vw, 18.5px); line-height: 1.75; color: var(--text-2); }
.prose p { margin: 0 0 1.25em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { margin: 0 0 1.4em; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent); }
@media (max-width: 599.98px) { .prose ul { grid-template-columns: 1fr; } }
.prose .lead-in { font: 600 clamp(22px, 2.2vw, 28px)/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--text); margin-bottom: .6em; }

/* About */
.about-quote { font: 500 clamp(26px, 3.2vw, 40px)/1.25 var(--font-display); letter-spacing: -0.025em; color: var(--text); margin: 0 0 32px; text-wrap: balance; }
.about-quote em { font-style: normal; color: var(--accent); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(40px, 6vw, 80px); background: radial-gradient(120% 140% at 100% 0%, rgba(212,147,47,.22), rgba(212,147,47,0) 55%), var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 14ch; margin-bottom: 14px; }
.cta-band p { color: var(--text-2); margin: 0; max-width: 520px; }

/* Vehicle detail */
.vehicle-hero { position: relative; margin-top: calc(var(--header-h) * -1); height: min(78svh, 820px); min-height: 440px; overflow: hidden; isolation: isolate; }
.vehicle-hero img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,13,13,1) 0%, rgba(13,13,13,.2) 40%, rgba(0,0,0,.35) 100%); }
.vehicle-title { position: relative; margin-top: -180px; z-index: 2; }
.vehicle-title .badge { margin-bottom: 18px; }
.vehicle-title h1 { font-size: clamp(38px, 5.6vw, 72px); margin-bottom: 14px; }
.vehicle-title .price { font: 600 clamp(24px, 2.4vw, 30px)/1 var(--font-display); color: var(--text-2); }
.vehicle-title .price span { color: var(--muted); font-weight: 500; font-size: .7em; letter-spacing: 0; margin-right: 8px; }
@media (max-width: 759.98px) { .vehicle-hero { height: 62svh; min-height: 360px; } .vehicle-title { margin-top: -110px; } }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius-sm); background: rgba(212,147,47,.1); border: 1px solid rgba(212,147,47,.3); color: var(--text); margin: 32px 0 0; font-size: 16px; }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.notice a { color: var(--accent); overflow-wrap: anywhere; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.spec { padding: 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec:nth-child(3n) { border-right: 0; }
.spec:nth-last-child(-n+3) { border-bottom: 0; }
.spec dt { font: 600 14px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.spec dd { margin: 0; font: 500 18px/1.4 var(--font-display); color: var(--text); display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.swatch { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); }
@media (max-width: 899.98px) {
  .specs { grid-template-columns: 1fr 1fr; }
  .spec { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .spec:nth-child(2n) { border-right: 0 !important; }
  .spec:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 479.98px) {
  .specs { grid-template-columns: 1fr; }
  .spec { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 20px 22px; }
  .spec:last-child { border-bottom: 0 !important; }
}

/* Gallery */
.gallery { position: relative; }
.gallery-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 auto; height: clamp(260px, 52vw, 560px); scroll-snap-align: start; border: 0; padding: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-item img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 599.98px) { .gallery-item { height: auto; width: 86vw; aspect-ratio: 4 / 3; } .gallery-item img { width: 100%; height: 100%; } }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.gallery-count { color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.gallery-nav { display: flex; gap: 10px; }
.icon-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s, border-color .2s, opacity .2s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--text-2); }
.icon-btn[disabled] { opacity: .35; cursor: default; background: transparent; }
.icon-btn svg { width: 20px; height: 20px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 6, 6, .96); color: var(--text); }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 72px 16px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(13,13,13,.6); }
.lightbox .lb-prev { left: 14px; } .lightbox .lb-next { right: 14px; }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--text-2); font-size: 15px; }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 899.98px) { .form-layout { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 40px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { font: 600 22px/1.2 var(--font-display); letter-spacing: -0.02em; padding: 0; margin-bottom: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 .full { grid-column: 1 / -1; }
@media (max-width: 639.98px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field > label, .field > .label { font: 500 14px/1.3 var(--font-body); color: var(--text); }
.opt { color: var(--muted); font-weight: 400; }
.input, .form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; font: 400 16px/1.3 var(--font-body); color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  outline: none; appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.form ::placeholder { color: #77736c; opacity: 1; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(255,255,255,.28); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,147,47,.22); }
.form select { padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23bdb8b0' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form select:invalid { color: #77736c; }
.form option { color: var(--text); background: var(--surface); }
.segments { display: flex; flex-wrap: wrap; gap: 10px; }
.segments label { position: relative; cursor: pointer; }
.segments input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segments span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); font-size: 16px; transition: background-color .15s, color .15s, border-color .15s; }
.segments label:hover span { border-color: rgba(255,255,255,.28); }
.segments input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.segments input:focus-visible + span { box-shadow: 0 0 0 3px rgba(212,147,47,.35); }
.drop { position: relative; display: flex; align-items: center; gap: 18px; min-height: 108px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px dashed rgba(255,255,255,.28); transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.drag { border-color: var(--accent); background: var(--surface-2); }
.drop:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,147,47,.22); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop .thumb { flex: none; width: 70px; height: 70px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop .thumb svg { width: 28px; height: 28px; color: var(--muted); }
.drop .text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.drop .title { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.drop .title b { color: var(--accent); font-weight: 600; }
.drop .sub { font-size: 14px; color: var(--text-2); }
.err { display: none; margin: 0; font-size: 14px; color: var(--error); }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .drop, .field.invalid .segments span { border-color: var(--error); }
.form .submit { width: 100%; min-height: 56px; font-size: 16px; }
.form .submit[disabled] { opacity: .7; cursor: progress; }
.fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: none; padding: clamp(28px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.thanks h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.thanks p { color: var(--text-2); margin-bottom: 26px; }
body.sent .thanks { display: block; }
body.sent .js-form, body.sent .hide-when-sent { display: none; }
.aside-card { padding: clamp(26px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card h2 { font-size: 24px; margin-bottom: 18px; }
.aside-card .contact-line { display: flex; align-items: center; gap: 14px; min-height: 52px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-size: 16px; overflow-wrap: anywhere; }
.aside-card .contact-line:hover { color: var(--accent); }
.aside-card .contact-line svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.aside-card p { color: var(--text-2); font-size: 16px; margin: 22px 0 18px; }

/* Wheel quote: summary + brands */
.wheel-summary { padding: clamp(28px, 4vw, 44px); background: radial-gradient(120% 140% at 100% 0%, rgba(212,147,47,.16), rgba(212,147,47,0) 55%), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.wheel-summary h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.wheel-summary > p { color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; margin: 0 0 28px; max-width: 640px; }
.wheel-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wheel-points li { display: flex; gap: 14px; align-items: flex-start; padding-top: 18px; border-top: 1px solid var(--line); }
.wheel-points svg { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }
.wheel-points strong { display: block; font: 600 16px/1.3 var(--font-display); color: var(--text); margin-bottom: 4px; }
.wheel-points span { color: var(--text-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 719.98px) { .wheel-points { grid-template-columns: 1fr; } }
.brand-block { margin-top: clamp(36px, 5vw, 56px); }
.brand-block h3 { font-size: 22px; margin-bottom: 18px; }
.brand-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.brand-grid li { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 76px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font: 600 17px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.brand-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.form-title { font-size: clamp(26px, 3vw, 34px); margin: clamp(48px, 6vw, 72px) 0 clamp(28px, 3vw, 36px); padding-top: clamp(36px, 5vw, 48px); border-top: 1px solid var(--line); }
@media (max-width: 479.98px) { .brand-grid { grid-template-columns: 1fr 1fr; } .brand-grid li { font-size: 15px; min-height: 64px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 7vw, 88px) 0 32px; margin-top: clamp(72px, 10vw, 128px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-2); font-size: 15.5px; max-width: 340px; margin: 0; }
.site-footer h2 { font: 600 14px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-size: 16px; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent); }
.footer-links svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 759.98px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 459.98px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal-on-scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: .08s; }
.js [data-reveal-delay="2"] { transition-delay: .16s; }
.js [data-reveal-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
