/* Elite Motor Gallery — website + client portal
   Palette from Brand Direction 02: espresso #29211D, ivory #F4EFE7, taupe #B5A48F, champagne #C7AD78 */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  --espresso: #29211d;
  --espresso-deep: #1f1916;
  --espresso-raised: #33292449;
  --espresso-line: rgba(199, 173, 120, .22);
  --ivory: #f4efe7;
  --ivory-soft: #fbf8f3;
  --ivory-line: rgba(41, 33, 29, .12);
  --taupe: #b5a48f;
  --champagne: #c7ad78;
  --champagne-soft: #d9c497;
  --text-on-dark: #ece4d7;
  --muted-on-dark: #b7a993;
  --text-on-light: #29211d;
  --muted-on-light: #6b5f55;
  --error: #a6402f;
  --success: #5d6b45;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 3px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--text-on-dark);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--champagne-soft); }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }
[hidden] { display: none !important; }
button { font: inherit; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.narrow-left { max-width: 900px; margin-left: max(0px, calc((100% - var(--max)) / 2)); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--champagne); color: var(--espresso); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.env-banner { background: var(--champagne); color: var(--espresso); font-size: 12.5px; text-align: center; padding: 6px var(--gutter); letter-spacing: .02em; }

/* ---------------------------------------------------------------- typography */
.display, .h1, .h2, .h3, .h4 { font-family: var(--serif); font-weight: 500; letter-spacing: .005em; margin: 0 0 .5em; line-height: 1.1; }
.display { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; }
.h1 { font-size: clamp(38px, 5vw, 60px); }
.h2 { font-size: clamp(30px, 3.6vw, 44px); }
.h3 { font-size: clamp(24px, 2.4vw, 30px); }
.h4 { font-size: 22px; line-height: 1.2; }
.eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--champagne); margin: 0 0 22px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7; max-width: 46em; color: var(--muted-on-dark); margin: 0 0 32px; }
.muted { color: var(--muted-on-dark); }
p { margin: 0 0 1em; }

/* ---------------------------------------------------------------- wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); }
.wordmark__name { font-family: var(--serif); font-weight: 500; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.wordmark__rule { width: 1px; height: 24px; background: var(--champagne); opacity: .8; }
.wordmark__mono { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -.04em; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(41, 33, 29, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--espresso-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.site-header__brand { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { text-decoration: none; font-size: 14px; letter-spacing: .03em; color: var(--text-on-dark); padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), color .3s; }
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: var(--champagne-soft); border-bottom-color: var(--champagne); }
.lang-switch { display: flex; gap: 2px; font-size: 12px; letter-spacing: .12em; }
.lang-switch a { text-decoration: none; padding: 4px 7px; color: var(--muted-on-dark); border: 1px solid transparent; }
.lang-switch a[aria-current="true"] { color: var(--champagne); border-color: var(--espresso-line); }
.nav-toggle { display: none; background: none; border: 1px solid var(--espresso-line); color: var(--ivory); padding: 9px 12px; align-items: center; gap: 10px; cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 1px; background: currentColor; position: relative; transition: transform .3s var(--ease); }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

@media (max-width: 1080px) {
  .wordmark__name { font-size: 15px; letter-spacing: .12em; }
  .wordmark__mono { font-size: 20px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 76px 0 auto 0; background: var(--espresso-deep); flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--espresso-line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; max-height: calc(100vh - 76px); overflow: auto; }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 15px 0; font-size: 17px; border-bottom: 1px solid var(--espresso-line); }
  .lang-switch { margin-top: 18px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 420px) { .wordmark__name { display: none; } .wordmark__rule { display: none; } .wordmark__mono { font-size: 26px; } }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; font: 500 14px/1.2 var(--sans); letter-spacing: .05em; text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn--primary { border-color: var(--champagne); color: var(--champagne-soft); background: transparent; }
.btn--primary:hover { background: var(--champagne); color: var(--espresso); }
.btn--ghost { border-color: rgba(236, 228, 215, .32); color: var(--text-on-dark); background: transparent; }
.btn--ghost:hover { border-color: var(--ivory); color: var(--ivory); }
.btn--dark { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.btn--dark:hover { background: var(--espresso-deep); color: var(--champagne-soft); }
.btn--outline-dark { border-color: rgba(41, 33, 29, .45); color: var(--espresso); background: transparent; }
.btn--outline-dark:hover { border-color: var(--espresso); color: var(--espresso); background: rgba(41, 33, 29, .05); }
.btn--ghost-dark { border-color: transparent; color: var(--espresso); background: transparent; }
.section--ivory .btn--primary, .panel .btn--primary, .form-card .btn--primary, .page-portal .btn--primary { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.section--ivory .btn--primary:hover, .panel .btn--primary:hover, .form-card .btn--primary:hover, .page-portal .btn--primary:hover { background: var(--espresso-deep); color: var(--champagne-soft); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.link-arrow { text-decoration: none; font-size: 14px; letter-spacing: .04em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: " →"; }
.link-muted { color: var(--muted-on-light); font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
.section--ivory { background: var(--ivory); color: var(--text-on-light); }
.section--ivory .lead, .section--ivory .muted, .section--ivory .section__lead { color: var(--muted-on-light); }
.section--ivory a:hover { color: var(--espresso); }
.section__title { margin-bottom: 48px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section__lead { color: var(--muted-on-dark); max-width: 40em; margin: 0; }
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--espresso-line); }
.page-hero--center { text-align: center; min-height: 52vh; display: flex; align-items: center; }
.page-hero--center .lead { margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--form { grid-template-columns: .8fr 1.2fr; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-2--tight { gap: 0 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
.prose { max-width: 760px; font-size: 18px; }
@media (max-width: 860px) {
  .split, .split--form, .three-col { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2--tight { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; min-height: min(72vh, 720px); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__visual { position: relative; }
.hero__feature { display: block; position: relative; text-decoration: none; }
.hero__feature img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.hero__caption { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 2px 0; font-family: var(--serif); font-size: 22px; color: var(--ivory); border-top: 0; }
.arches { width: 100%; height: auto; max-height: 520px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; min-height: 0; } .hero__visual { order: -1; } .arches { max-height: 240px; } }

/* ---------------------------------------------------------------- vehicle cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.card-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid--two { grid-template-columns: 1fr; } }
.vcard { background: var(--ivory-soft); border: 1px solid var(--ivory-line); border-radius: var(--radius); overflow: hidden; color: var(--text-on-light); }
.vcard__link { display: block; text-decoration: none; color: inherit; height: 100%; }
.vcard__link:hover { color: inherit; }
.vcard__media { margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e7dfd2; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.vcard__link:hover .vcard__media img { transform: scale(1.025); }
.vcard__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #e9e1d4, #d8ccb9); }
.vcard__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.vcard__body { padding: 22px 24px 26px; }
.vcard__title { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.1; margin: 0; }
.vcard__subtitle { margin: 4px 0 0; color: var(--muted-on-light); }
.vcard__meta { margin: 14px 0 0; font-size: 14px; color: var(--muted-on-light); }
.vcard__price { margin: 16px 0 0; font-weight: 600; font-size: 17px; letter-spacing: .01em; }
.vcard--sold .vcard__media img { filter: grayscale(.35) brightness(.92); }

.badge { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; background: rgba(41, 33, 29, .78); color: var(--ivory); line-height: 1.2; }
.badge--available { background: rgba(199, 173, 120, .18); color: inherit; border: 1px solid rgba(199, 173, 120, .55); }
.badge--reserved { background: var(--taupe); color: var(--espresso); }
.badge--sold { background: var(--espresso); color: var(--champagne-soft); }
.badge--demo { background: transparent; border: 1px dashed var(--champagne); color: var(--champagne); }
.vcard .badge--demo { background: rgba(31, 25, 22, .75); color: var(--champagne-soft); }
.tag { display: inline-block; font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border: 1px solid var(--champagne); color: inherit; border-radius: 2px; }

.empty { text-align: center; padding: clamp(40px, 6vw, 72px) var(--gutter); border: 1px solid var(--ivory-line); border-radius: var(--radius); background: var(--ivory-soft); }
.empty p { max-width: 36em; margin: 0 auto 24px; color: var(--muted-on-light); }

/* ---------------------------------------------------------------- routes / pillars / process */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.route { border: 1px solid var(--espresso-line); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); display: flex; flex-direction: column; align-items: flex-start; }
.route p { color: var(--muted-on-dark); }
.route .btn { margin-top: auto; }
@media (max-width: 800px) { .routes { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 8px 0 28px; }
.ticks li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--champagne); }
.pillars { display: grid; gap: 32px; }
.pillars--four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .pillars--four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars--four { grid-template-columns: 1fr; } }
.pillar { border-top: 1px solid var(--champagne); padding-top: 18px; }
.section--ivory .pillar p { color: var(--muted-on-light); }
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } }
.process__label { font-family: var(--sans); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--champagne); margin: 0 0 20px; font-weight: 500; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--serif); font-size: 26px; color: var(--champagne); line-height: 1; }
.steps li p { color: var(--muted-on-dark); margin: 0; }
.section--ivory .steps li p { color: var(--muted-on-light); }
.steps--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps--grid li { padding: 52px 0 0; border-top: 1px solid rgba(41, 33, 29, .2); }
.steps--grid li::before { top: 14px; }
@media (max-width: 960px) { .steps--grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps--grid { grid-template-columns: 1fr; } }
.cta { text-align: center; }
.cta .section__lead { margin: 0 auto 28px; }
.cta__actions, .cta-inline { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-inline { justify-content: flex-start; margin-top: 40px; }

/* ---------------------------------------------------------------- collection */
.collection { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.filters { position: sticky; top: 96px; }
.filters__toggle { list-style: none; cursor: pointer; font-family: var(--serif); font-size: 26px; margin-bottom: 18px; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters__actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.collection__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.collection__count { margin: 0; color: var(--muted-on-light); }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-size: 14px; color: var(--muted-on-light); }
.sort select { min-width: 220px; }
@media (min-width: 901px) { .filters:not([open]) > :not(summary) { display: block; } .filters__toggle { pointer-events: none; } }
@media (max-width: 900px) {
  .collection { grid-template-columns: 1fr; }
  .filters { position: static; border: 1px solid var(--ivory-line); padding: 14px 18px; border-radius: var(--radius); background: var(--ivory-soft); }
  .filters__toggle { font-size: 20px; margin: 0; }
  .filters[open] .filters__toggle { margin-bottom: 16px; }
  .filters__toggle::after { content: "+"; float: right; }
  .filters[open] .filters__toggle::after { content: "–"; }
  .sort select { min-width: 0; }
}

/* ---------------------------------------------------------------- forms */
.form-card { background: var(--ivory-soft); border: 1px solid var(--ivory-line); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); margin-top: 28px; }
.field { margin-bottom: 20px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: var(--text-on-light); }
.field__opt { font-weight: 400; color: var(--muted-on-light); font-size: 13px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--text-on-light); background: #fff; border: 1px solid #d6cbbb; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b5f55 50%), linear-gradient(135deg, #6b5f55 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(199, 173, 120, .28); }
input[readonly], textarea[readonly], select[disabled] { background: #f3eee6; color: var(--muted-on-light); }
.field__hint { font-size: 13px; color: var(--muted-on-light); margin: 6px 0 0; }
.field__error { font-size: 13.5px; color: var(--error); margin: 6px 0 0; font-weight: 500; }
.field--error input, .field--error select, .field--error textarea, [aria-invalid="true"] { border-color: var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d6cbbb; padding: 10px 14px; border-radius: var(--radius); background: #fff; cursor: pointer; font-weight: 400 !important; }
.choice input { accent-color: var(--espresso); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; font-weight: 400 !important; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--espresso); flex: none; }
.field--check { margin: 8px 0 22px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin: 0 0 20px; font-size: 15px; }
.alert--error { background: #f6e3de; color: #7b2d21; border: 1px solid #e3b9ae; }
.alert--info { background: #efe7da; color: var(--text-on-light); border: 1px solid #ddcfb9; }
.alert--success { background: #e8ecdf; color: #3d4a2c; border: 1px solid #c9d2b6; }
.form-step { border: 0; padding: 0; margin: 0 0 30px; }
.form-step__title { font-family: var(--serif); font-size: 26px; margin-bottom: 18px; display: flex; gap: 12px; align-items: baseline; }
.form-step__title span { font-size: 15px; font-family: var(--sans); width: 28px; height: 28px; border: 1px solid var(--champagne); display: inline-grid; place-items: center; border-radius: 50%; }
.page-hero .tag, .section--ivory .tag { margin-bottom: 8px; }

/* ---------------------------------------------------------------- vehicle detail */
.preview-note { background: var(--champagne); color: var(--espresso); padding: 12px var(--gutter); text-align: center; }
.crumbs { padding: 24px 0 18px; font-size: 14px; }
.crumbs a { text-decoration: none; color: var(--muted-on-dark); }
.vehicle__top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .vehicle__top { grid-template-columns: 1fr; } }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--espresso-deep); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; aspect-ratio: 3 / 2; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__controls { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; }
.gallery__btn { width: 44px; height: 44px; border: 1px solid var(--espresso-line); background: transparent; color: var(--ivory); font-size: 22px; cursor: pointer; border-radius: 50%; }
.gallery__btn:hover { border-color: var(--champagne); }
.gallery__count { font-size: 13px; letter-spacing: .1em; color: var(--muted-on-dark); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.gallery__thumbs a { display: block; opacity: .6; transition: opacity .3s; border: 1px solid transparent; }
.gallery__thumbs a.is-active, .gallery__thumbs a:hover { opacity: 1; border-color: var(--champagne); }
.gallery__thumbs img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery__empty { aspect-ratio: 3 / 2; display: grid; place-items: center; border: 1px solid var(--espresso-line); }
.vehicle__summary { position: sticky; top: 100px; }
@media (max-width: 960px) { .vehicle__summary { position: static; } }
.vehicle__badges { display: flex; gap: 8px; margin-bottom: 18px; }
.vehicle__title { margin-bottom: 4px; }
.vehicle__subtitle { font-size: 18px; color: var(--muted-on-dark); margin-bottom: 18px; }
.vehicle__price { font-family: var(--serif); font-size: 38px; color: var(--champagne-soft); margin: 0; line-height: 1.1; }
.vehicle__pricetype { font-size: 13px; color: var(--muted-on-dark); margin: 6px 0 0; letter-spacing: .02em; }
.keyfacts { list-style: none; padding: 0; margin: 26px 0; border-top: 1px solid var(--espresso-line); }
.keyfacts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--espresso-line); font-size: 15px; }
.keyfacts span { color: var(--muted-on-dark); }
.keyfacts strong { font-weight: 500; text-align: right; }
.inspected { font-size: 14px; color: var(--champagne-soft); }
.vehicle__status { color: var(--champagne-soft); }
.vehicle__actions { display: grid; gap: 10px; margin: 24px 0; }
.share { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--muted-on-dark); }
.share__label { width: 100%; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.vehicle__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
@media (max-width: 960px) { .vehicle__body { grid-template-columns: 1fr; } }
.block { margin-bottom: 48px; max-width: 46em; }
.block p { color: var(--text-on-dark); }
.options-list { columns: 2; column-gap: 32px; padding-left: 18px; margin: 0; }
.options-list li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 600px) { .options-list { columns: 1; } }
.specs { margin: 0; }
.specs > div { display: grid; grid-template-columns: 44% 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--espresso-line); font-size: 15px; }
.specs dt { color: var(--muted-on-dark); }
.specs dd { margin: 0; }
.specs--wide > div { grid-template-columns: 30% 1fr; }
.vehicle__forms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(64px, 8vw, 104px); }
@media (max-width: 960px) { .vehicle__forms { grid-template-columns: 1fr; } }
.panel { background: var(--ivory); color: var(--text-on-light); padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius); scroll-margin-top: 100px; }
.panel .muted { color: var(--muted-on-light); }

/* ---------------------------------------------------------------- services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--ivory-soft); border: 1px solid var(--ivory-line); padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); }
.service__summary { font-size: 18px; }
.service__meta { margin: 24px 0 0; border-top: 1px solid var(--ivory-line); }
.service__meta > div { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ivory-line); font-size: 15px; }
.service__meta dt { color: var(--muted-on-light); }
.service__meta dd { margin: 0; }
.channels { list-style: none; padding: 0; margin: 0; }
.channels li { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-bottom: 1px solid var(--ivory-line); }
.channels span { color: var(--muted-on-light); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--espresso-deep); border-top: 1px solid var(--espresso-line); padding: 64px 0 28px; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__tagline { color: var(--muted-on-dark); margin-top: 14px; letter-spacing: .06em; }
.site-footer__heading { font-family: var(--sans); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--champagne); font-weight: 500; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: var(--text-on-dark); }
.site-footer a:hover { color: var(--champagne-soft); }
.site-footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--espresso-line); color: var(--muted-on-dark); font-size: 13px; }

/* ---------------------------------------------------------------- portal */
.page-portal { background: var(--ivory); color: var(--text-on-light); }
.page-portal .site-header { background: rgba(41, 33, 29, .97); }
.page-portal .page-hero { border-bottom-color: var(--ivory-line); }
.page-portal .page-hero .lead { color: var(--muted-on-light); }
.portal { padding: clamp(28px, 5vw, 56px) 0 80px; }
.portal .eyebrow { color: #8a7350; }
.portal__head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 24px; }
.portal__head .h2 { margin-bottom: 6px; }
.portal__status { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--muted-on-light); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--champagne); display: inline-block; }
.dot--needs_info, .dot--waiting_for_client, .dot--concept { background: #b8862f; }
.dot--sold, .dot--closed, .dot--published { background: var(--success); }
.portal__save { font-size: 13.5px; color: var(--muted-on-light); min-height: 22px; display: flex; gap: 10px; align-items: center; }
.portal__save.is-error { color: var(--error); }
.portal__save button { font-size: 13.5px; }
.portal__intro { color: var(--muted-on-light); margin-bottom: 26px; }
.portal__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.portal__steps { background: var(--ivory-soft); border: 1px solid var(--ivory-line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); }
.stepper { position: sticky; top: 96px; }
.stepper ol { list-style: none; margin: 0; padding: 0; }
.stepper__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 6px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--muted-on-light); border-left: 2px solid transparent; }
.stepper__btn[aria-current="step"] { color: var(--text-on-light); border-left-color: var(--champagne); font-weight: 500; }
.stepper__n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cfc3b1; display: inline-grid; place-items: center; font-size: 13px; flex: none; background: #fff; }
.stepper__btn.is-done .stepper__n { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.stepper__btn.is-missing .stepper__n { border-color: #b8862f; }
.portal__steps, .stepper { min-width: 0; }
@media (max-width: 860px) {
  .portal__body { grid-template-columns: minmax(0, 1fr); }
  .stepper { position: sticky; top: 76px; z-index: 5; background: var(--ivory); margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); border-bottom: 1px solid var(--ivory-line); }
  .stepper ol { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .stepper ol::-webkit-scrollbar { display: none; }
  .stepper__btn { flex-direction: column; gap: 4px; border-left: 0; border-bottom: 2px solid transparent; padding: 6px 8px; font-size: 12px; white-space: nowrap; }
  .stepper__btn[aria-current="step"] { border-bottom-color: var(--champagne); }
}
.pstep h2 { margin-bottom: 18px; }
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--ivory-line); gap: 12px; }
.step-nav__count { font-size: 13px; color: var(--muted-on-light); }
.requests { margin-bottom: 26px; }
.request { background: #fff8ec; border: 1px solid #e8d6b4; border-left: 3px solid #b8862f; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 12px; }
.request--answered { background: var(--ivory-soft); border-color: var(--ivory-line); border-left-color: var(--success); }
.request header { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 640px) { .slots { grid-template-columns: 1fr; } }
.slot { border: 1px solid var(--ivory-line); border-radius: var(--radius); padding: 16px; background: #fff; }
.slot--required .slot__title::after { content: " *"; color: #8a7350; }
.slot__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.slot__icon { color: #8a7350; flex: none; }
.slot__title { font-family: var(--sans); font-size: 14.5px; font-weight: 500; margin: 0; line-height: 1.35; }
.slot.is-filled { border-color: rgba(93, 107, 69, .45); }
.thumbs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 4 / 3; background: #efe9df; border-radius: 2px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(31, 25, 22, .78); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.thumb__progress { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(31, 25, 22, .2); }
.thumb__progress span { display: block; height: 100%; background: var(--champagne); width: 0; transition: width .2s; }
.thumb__state { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 12px; padding: 6px; color: var(--text-on-light); background: rgba(244, 239, 231, .82); }
.thumb.is-failed .thumb__state { color: var(--error); }
.thumb__retry { margin-top: 4px; font-size: 12px; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.upload-btn:focus-within { outline: 2px solid var(--champagne); outline-offset: 2px; }
.docs { display: grid; gap: 12px; margin-top: 18px; }
.doc { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; border: 1px solid var(--ivory-line); padding: 14px 16px; border-radius: var(--radius); background: #fff; }
.doc__title { font-family: var(--sans); font-size: 15px; font-weight: 500; margin: 0; }
.doc__list { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.doc__list:empty { display: none; }
.doc__list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed var(--ivory-line); }
.doc__list .is-failed { color: var(--error); }
@media (max-width: 520px) { .doc { grid-template-columns: 1fr; } }
.review { display: grid; gap: 18px; margin: 18px 0 24px; }
.review section { border: 1px solid var(--ivory-line); border-radius: var(--radius); padding: 14px 18px; background: #fff; }
.review h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 0 0 8px; display: flex; justify-content: space-between; }
.review dl { margin: 0; display: grid; grid-template-columns: 42% 1fr; gap: 4px 12px; font-size: 14px; }
.review dt { color: var(--muted-on-light); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review .is-unknown { color: #9a8b78; font-style: italic; }
.missing h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.missing ul { margin: 0 0 8px; padding-left: 20px; }
.missing .is-required { color: #7b2d21; }
.timeline { margin-top: 40px; }
.timeline ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid #d6cbbb; }
.timeline li { padding: 6px 0 6px 18px; position: relative; font-size: 14.5px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); }
.portal__logout { margin-top: 24px; }

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