@font-face {
    font-family: "Inter";
    src: url("fonts/inter-latin-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-latin-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --bg: #171717;
    --surface: #1F1F1F;
    --surface-2: #242424;
    --text: #ECECEC;
    --text-muted: #9A9A9A;
    --border: #2E2E2E;
    --accent: #ECECEC;
    --accent-2: #E8A153;
    --accent-contrast: #171717;
    --sold-bg: #E8A153;
    --sold-text: #171717;
    --radius-card: 10px;
    --radius-button: 6px;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 6px 16px rgba(0, 0, 0, 0.5);
    --motion-fast: 220ms;
    --motion-base: 320ms;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #FAFAF7;
    --surface: #FFFFFF;
    --surface-2: #F5F5F0;
    --text: #141414;
    --text-muted: #5A5A5A;
    --border: #E5E5E0;
    --accent: #1B2A41;
    --accent-2: #B45309;
    --accent-contrast: #FFFFFF;
    --sold-bg: #B45309;
    --sold-text: #FFFFFF;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        color-scheme: light;
        --bg: #FAFAF7;
        --surface: #FFFFFF;
        --surface-2: #F5F5F0;
        --text: #141414;
        --text-muted: #5A5A5A;
        --border: #E5E5E0;
        --accent: #1B2A41;
        --accent-2: #B45309;
        --accent-contrast: #FFFFFF;
        --sold-bg: #B45309;
        --sold-text: #FFFFFF;
        --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
        --shadow-card-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
    }
}

* {
    box-sizing: border-box;
}

html {
    color: var(--text);
    background: var(--bg);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

body {
    display: flex;
    min-height: 100vh;
    margin: 0;
    flex-direction: column;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--accent);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.07em;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(100%, 76rem);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
    border: 0;
}

.skip-link {
    position: absolute;
    z-index: 50;
    top: 0.5rem;
    left: 0.5rem;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border-radius: var(--radius-button);
    background: var(--surface);
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.skip-link:focus {
    width: auto;
    height: auto;
    padding: 0.5rem 0.75rem;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 0.65rem;
    min-height: 3.8rem;
    padding-block: 0.55rem;
}

.site-header__actions {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-self: end;
    gap: 0.4rem;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.brand svg {
    flex: 0 0 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
}

.brand span {
    overflow-wrap: anywhere;
}

.menu-toggle {
    min-height: 2.25rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    background: var(--surface);
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 650;
}

.theme-toggle {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
}

.theme-toggle svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.site-nav {
    grid-column: 1 / -1;
}

.site-nav ul,
.site-footer__links,
.breadcrumbs ol,
.gallery-thumbnails,
.pagination-list {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.6rem;
    list-style: none;
}

.site-nav a {
    position: relative;
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    padding: 0.25rem 0.2rem;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a::after {
    position: absolute;
    inset-block-end: 0.15rem;
    inset-inline-start: 0.25rem;
    width: 0;
    height: 2px;
    background: currentColor;
    content: "";
}

.site-nav a:not(.is-active):hover::after,
.site-nav a:not(.is-active):focus-visible::after {
    width: calc(100% - 0.5rem);
}

.site-nav a.is-active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.35em;
}

.site-main {
    width: min(100%, 76rem);
    margin-inline: auto;
    padding: 1.7rem 1.25rem 2.625rem;
    flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-block: 0 0.7em;
    font-family: "Manrope", sans-serif;
    font-weight: 600;
    line-height: 1.15;
}

h1 {
    font-size: 2.45rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.85rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-block: 0 1rem;
}

.page-intro {
    max-width: 48rem;
    margin-block: 0 1.875rem;
}

.page-intro h1 {
    margin-block: 0 0.65rem;
}

.page-intro > p:last-child {
    max-width: 65ch;
    color: var(--text-muted);
}

.eyebrow {
    margin-block: 0 0.7rem;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
}

.home-hero {
    max-width: 48rem;
    margin-block: 0 2.625rem;
    padding-block: 0.75rem 1.875rem;
}

.hero__title {
    max-width: 12ch;
    margin-block: 0.15rem 0.75rem;
    font-size: clamp(2.35rem, 6vw, 4.5rem);
    letter-spacing: -0.035em;
}

.hero__subtitle {
    max-width: 65ch;
    margin-block-end: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.button {
    display: inline-flex;
    min-height: 2.25rem;
    padding: 0.6rem 0.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

.button--primary {
    background: var(--accent);
    color: var(--accent-contrast);
}

.button--light {
    border-color: var(--surface);
    background: var(--surface);
    color: var(--accent);
}

.section-heading {
    display: flex;
    margin-block: 0 0.9rem;
    align-items: end;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.section-heading h2 {
    margin-block: 0;
}

.section-heading > a {
    font-size: 0.95rem;
    font-weight: 650;
}

.car-grid {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    list-style: none;
}

.car-grid > li {
    display: flex;
    min-width: 0;
}

.car-card {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.car-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: var(--radius-card);
    color: var(--text);
    text-decoration: none;
}

.car-card:has(.car-card__link:focus-visible) {
    border-color: var(--accent-2);
}

.car-card__media {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    place-items: center;
    border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
    background: var(--bg);
    color: var(--text-muted);
}

.car-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-card__placeholder {
    padding: 0.75rem;
    font-size: 0.9rem;
}

.car-image-unavailable {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 4rem;
    padding: 0.55rem;
    aspect-ratio: 4 / 3;
    place-items: center;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.sold-badge {
    position: absolute;
    z-index: 1;
    inset-block-start: 0.8rem;
    inset-inline-end: 0.8rem;
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    background: var(--sold-bg);
    color: var(--sold-text);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.25;
}

.car-card__body {
    display: flex;
    padding: 0.8rem 0.85rem 0.85rem;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
}

.car-card__body h3 {
    margin-block: 0 0.5rem;
    overflow-wrap: anywhere;
}

.car-card__specs {
    min-height: 1.55em;
    margin-block: 0 0.65rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.car-card__price {
    margin-block: auto 0.6rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.car-card__details {
    margin-block: 0;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.contact-strip {
    display: flex;
    margin-block-start: 2.625rem;
    padding: 1.125rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.1rem;
    flex-direction: column;
    border-radius: var(--radius-card);
    background: var(--accent);
    color: var(--accent-contrast);
}

.contact-strip h2 {
    margin-block: 0 0.5rem;
    font-size: 1.5rem;
}

.contact-strip p {
    margin-block: 0;
}

.contact-strip .eyebrow {
    color: var(--accent-contrast);
}

.contact-strip__actions {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.contact-strip__link {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    color: var(--accent-contrast);
    font-weight: 650;
}

.contact-strip a:focus-visible {
    outline-color: var(--accent-contrast);
}

.filter-form {
    margin-block-end: 1.3rem;
}

.filter-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.filter-errors {
    margin-block: 0 1.125rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-inline-start: 4px solid var(--accent);
    border-radius: var(--radius-button);
    background: var(--surface);
}

.filter-errors p {
    margin-block-end: 0.4rem;
    font-weight: 700;
}

.filter-errors ul {
    margin-block: 0;
    padding-inline-start: 1.25rem;
}

.results-summary {
    margin-block: 0 0.8rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.pagination {
    display: flex;
    margin-block-start: 1.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pagination > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pagination-list {
    gap: 0.35rem;
}

.pagination-list a,
.pagination-list span {
    display: inline-flex;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.25rem 0.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    background: var(--surface);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.pagination-list [aria-current="page"] {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-contrast);
}

.breadcrumbs {
    margin-block-end: 1.125rem;
}

.breadcrumbs ol {
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.breadcrumbs li + li::before {
    margin-inline-end: 0.45rem;
    color: var(--text-muted);
    content: "/";
}

.breadcrumbs [aria-current="page"] {
    color: var(--text);
}

.detail-layout {
    display: grid;
    align-items: start;
    gap: 2rem;
}

.detail-gallery__stage {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.detail-gallery__figure {
    display: none;
    margin: 0;
    aspect-ratio: 4 / 3;
    scroll-margin-top: 7rem;
    background: var(--surface);
}

.detail-gallery__figure:first-child:not(:target),
.detail-gallery__figure:target {
    display: block;
}

.detail-gallery__stage:has(.detail-gallery__figure:target) .detail-gallery__figure:not(:target) {
    display: none;
}

.detail-gallery__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbnails {
    margin-block-start: 0.55rem;
    gap: 0.45rem;
}

.gallery-thumbnails a {
    display: block;
    overflow: hidden;
    width: 5.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    background: var(--surface);
    line-height: 0;
}

.gallery-thumbnails img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-thumbnails .car-image-unavailable {
    height: auto;
    padding: 0.25rem;
    font-size: 0.65rem;
}

.detail-info {
    min-width: 0;
}

.detail-info h1 {
    margin-block: 0 0.5rem;
    overflow-wrap: anywhere;
}

.detail-info__topline {
    display: flex;
    margin-block-end: 0.75rem;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.detail-info__topline .sold-badge {
    position: static;
    display: inline-block;
}

.availability-label {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 650;
}

.car-price {
    margin-block: 0 1.125rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.specifications {
    margin-block: 1.3rem;
}

.specifications h2,
.inquiry-panel h2 {
    margin-block: 0 0.7rem;
    font-size: 1.3rem;
}

.spec-grid {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.spec-grid > div {
    min-width: 0;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-button);
    background: var(--surface);
}

.spec-grid dt {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.spec-grid dd {
    margin: 0.2rem 0 0;
    overflow-wrap: anywhere;
    font-size: 0.95rem;
    font-weight: 650;
}

.car-description {
    margin-block: 1.125rem;
    max-width: 65ch;
    white-space: pre-line;
}

.inquiry-panel {
    margin-block-start: 1.3rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.inquiry-panel p:last-child {
    margin-block-end: 0;
}

.inquiry-actions {
    display: flex;
    gap: 0.65rem 1rem;
    flex-wrap: wrap;
}

.content-narrow {
    max-width: 65ch;
}

.content-narrow h2 {
    margin-block-start: 2rem;
}

.about-copy {
    white-space: pre-line;
}

.contact-details {
    display: grid;
    gap: 0.75rem;
}

.contact-detail {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.contact-detail h2 {
    margin-block: 0 0.4rem;
    font-size: 1.35rem;
}

.contact-detail p:last-child {
    margin-block-end: 0;
}

.contact-detail__location {
    margin-block: 0 0.3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.not-found {
    display: grid;
    min-height: 36vh;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.not-found p {
    max-width: 45ch;
    color: var(--text-muted);
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.site-footer__inner {
    display: flex;
    padding-block: 1.125rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1.5rem;
    flex-direction: column;
}

.site-footer__dealer {
    margin-block: 0;
    color: var(--text);
    font-weight: 700;
}

.site-footer__meta {
    display: flex;
    margin-block: 0;
    align-items: center;
    gap: 0.4rem 0.75rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer__meta a {
    color: var(--accent);
}

@media (min-width: 640px) {
    .site-header__inner {
        min-height: 4rem;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .site-header__actions {
        grid-column: 3;
        grid-row: 1;
    }

    .site-nav {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .site-nav ul {
        justify-content: flex-end;
        gap: 0.25rem 0.65rem;
    }

    .site-main {
        padding-block: 2.25rem 3rem;
    }

    .page-intro {
        margin-block-end: 2.25rem;
    }

    .home-hero {
        padding-block: 1.125rem 2.25rem;
    }

    .car-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .contact-strip {
        padding: 1.5rem;
        align-items: center;
        flex-direction: row;
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 0.75rem;
        row-gap: 1rem;
    }

    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.875rem;
    }

    .detail-info {
        max-width: 48rem;
    }

    .site-footer__inner {
        align-items: center;
        flex-direction: row;
    }
}

@media (min-width: 900px) {
    .filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
        column-gap: 0.65rem;
        row-gap: 1rem;
        align-items: end;
    }

    .filter-actions {
        grid-column: auto;
        justify-self: end;
        gap: 0.35rem;
    }

    .filter-actions .button {
        white-space: nowrap;
    }

    .clear-filters {
        padding-inline: 0.25rem;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        min-height: 4.2rem;
    }

    .site-main {
        padding-block: 2.625rem 3.375rem;
    }

    .home-hero {
        padding-block: 1.5rem 3rem;
    }

    .car-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.125rem;
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
        gap: 1.875rem;
    }

    .detail-info {
        max-width: none;
    }

    .contact-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Full-bleed home hero. Navigation sits over the photograph, not above it. */
.page-home .site-main { width: 100%; padding: 0; }
.page-home .site-header {
    position: fixed;
    inset: 0 0 auto;
    color: #f5f5f3;
    background: rgba(10, 13, 15, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.13);
}
.page-home .site-header.is-scrolled {
    background: rgba(15, 18, 20, 0.95);
    backdrop-filter: blur(16px);
}
.site-header__inner { padding-block: 0.9rem; }
.page-home .site-header .brand,
.page-home .site-header .site-nav a { color: #f5f5f3; }
.page-home .site-header .theme-toggle,
.page-home .site-header .menu-toggle {
    color: #f5f5f3;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}
.page-home .site-header :focus-visible,
.home-hero :focus-visible { outline-color: #fff; }
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: none;
    min-height: 740px;
    min-height: clamp(680px, 91svh, 860px);
    margin: 0;
    padding: 0;
    color: #fff;
    background: #101517;
    text-align: center;
}
.hero__media {
    position: absolute;
    z-index: -2;
    inset: 0 0 -12%;
    display: block;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 12, 0.38), rgba(6, 10, 12, 0.06) 62%, rgba(6, 10, 12, 0.78));
}
.hero__content { padding-top: clamp(135px, 18svh, 180px); padding-bottom: 22rem; }
.hero__eyebrow { color: #d9dedd; font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 1.1rem; }
.hero__title {
    max-width: none;
    margin: 0 0 1rem;
    font-size: clamp(2.7rem, 5.6vw, 5.15rem);
    font-weight: 550;
    letter-spacing: -0.055em;
    line-height: 1.08;
}
.hero__subtitle { max-width: 45ch; margin: 0 auto; color: #d2d6d7; font-size: 1rem; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 1.9rem; margin-top: 1.7rem; }
.home-hero .button--primary { background: #f1f0e9; color: #141818; border-color: #f1f0e9; }
.hero__secondary { color: #fff; font-size: 0.88rem; font-weight: 500; text-decoration: none; padding: 0.7rem 0; }
.hero__secondary span { margin-left: 0.6rem; }
.hero__foot {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-block: 1.65rem;
    color: #d5d9d8;
    font-size: 0.73rem;
    letter-spacing: 0.025em;
}
.hero__foot a { color: #fff; text-decoration: none; }
.hero__foot a span { display: inline-block; margin-left: 0.75rem; }
.home-content { padding-top: 4.5rem; padding-bottom: 1rem; }
.collection-section { scroll-margin-top: 7rem; }
.home-content .section-heading { margin-bottom: 1.75rem; }
.home-content h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.035em; }
.home-content .eyebrow { color: var(--text-muted); font-size: 0.65rem; letter-spacing: 0.17em; }
.text-link { display: inline-flex; align-items: center; gap: 0.8rem; font-size: 0.85rem; font-weight: 550; text-decoration: none; }
.text-link span { display: inline-block; }
.empty-state {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
}
.empty-state__icon { display: grid; place-items: center; flex: 0 0 3.7rem; width: 3.7rem; height: 3.7rem; border: 1px solid var(--border); border-radius: 50%; color: var(--text-muted); }
.empty-state__icon svg { width: 1.8rem; height: 1.8rem; }
.empty-state h3 { margin-bottom: 0.45rem; font-size: 1.15rem; }
.empty-state p { margin: 0; color: var(--text-muted); font-size: 0.88rem; }
.empty-state > .text-link { margin-left: auto; flex-shrink: 0; }
.home-content .contact-strip { margin-block: 3rem; padding: 2.5rem 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; color: var(--text); }
.home-content .contact-strip p { color: var(--text-muted); }
.home-content .contact-strip__link { color: var(--text); }
.home-content .contact-strip a:focus-visible { outline-color: var(--accent); }
.button { min-height: 2.75rem; padding: 0.8rem 1.2rem; }
.button__arrow { display: inline-block; margin-left: 0.8rem; font-size: 1.05rem; }
.site-nav a.is-active { text-decoration: none; }
.site-nav a.is-active::after { width: calc(100% - 0.5rem); }
.site-footer__inner { padding-block: 1.7rem; }

@media (min-width: 640px) {
    .site-nav ul { gap: 1.75rem; }
    .site-header__actions { margin-left: 1.4rem; }
}
@media (max-width: 639px) {
    .page-home .site-nav { padding: 1rem; margin-top: 0.6rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 8px; background: #151a1d; }
    .page-home .site-nav ul { justify-content: space-between; }
    .home-hero { min-height: 710px; min-height: max(710px, 92svh); }
    .hero__content { padding-top: 140px; padding-bottom: 21rem; }
    .hero__title { max-width: 10ch; margin-inline: auto; font-size: clamp(2.7rem, 12vw, 4rem); }
    .hero__subtitle { font-size: 0.91rem; }
    .hero__media img { object-position: 50% center; }
    .hero__foot { font-size: 0.65rem; }
    .home-content { padding-top: 2.75rem; }
    .empty-state { align-items: flex-start; flex-wrap: wrap; padding: 1.5rem; gap: 1rem; }
    .empty-state > div { flex: 1 1 180px; }
    .empty-state > .text-link { margin-left: 0; }
    .home-content .contact-strip { padding-top: 2rem; margin-block: 2rem; }
    .section-heading { align-items: center; }
    .section-heading > a { font-size: 0.8rem; }
}

/* Motion is opt-in: content remains visible without JS or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; transition: background-color 350ms ease, color 350ms ease; }
    .site-header { transition: background-color 350ms var(--motion-ease), box-shadow 350ms var(--motion-ease), border-color 350ms var(--motion-ease); }
    .site-header.is-scrolled { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12); }
    .hero__media { transform: translate3d(0, var(--parallax-y, 0px), 0); }
    .hero__media.is-parallax-active { will-change: transform; }
    .page-intro:not(.home-hero) { animation: fade-in-up 650ms var(--motion-ease) backwards; }
    .hero__eyebrow,
    .hero__title,
    .hero__subtitle,
    .hero__actions,
    .hero__foot { animation: fade-in-up 900ms var(--motion-ease) backwards; }
    .hero__title { animation-delay: 80ms; }
    .hero__subtitle { animation-delay: 160ms; }
    .hero__actions { animation-delay: 240ms; }
    .hero__foot { animation-delay: 400ms; }
    .site-nav a::after { transition: width var(--motion-base) var(--motion-ease); }
    .site-nav:not([hidden]) { animation: fade-in 300ms ease backwards; }
    .theme-toggle { transition: color 150ms var(--motion-ease), background-color 300ms var(--motion-ease); }
    .button, .theme-toggle, .menu-toggle, .text-link, .hero__secondary {
        transition: transform var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease), background-color var(--motion-base) var(--motion-ease), color var(--motion-base) var(--motion-ease);
    }
    .button__arrow, .text-link span, .hero__secondary span { transition: transform 350ms var(--motion-ease); }
    .button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
    .button:hover .button__arrow, .button:focus-visible .button__arrow { transform: translate(2px, -2px); }
    .text-link:hover span, .hero__secondary:hover span { transform: translateX(3px); }
    .button:active { transform: translateY(0); box-shadow: var(--shadow-card); }
    .theme-toggle:hover, .menu-toggle:hover { background-color: var(--surface-2); }
    .car-card { transition: transform 350ms var(--motion-ease), box-shadow 350ms var(--motion-ease), border-color 350ms var(--motion-ease); }
    .car-card:hover, .car-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
    .car-card__media img { transition: transform 650ms var(--motion-ease), opacity 450ms var(--motion-ease); }
    .car-card:hover .car-card__media img, .car-card:focus-within .car-card__media img { transform: scale(1.035); }
    .car-image.is-loading { opacity: 0; }
    .car-image.is-loaded { opacity: 1; }
    .filter-field input, .filter-field select { transition: border-color 250ms ease, background-color 250ms ease; }
    .contact-detail { transition: border-color 300ms ease, background-color 300ms ease; }
    .contact-detail:hover { border-color: var(--text-muted); }
    [data-car-card].reveal-pending, [data-motion="section"].reveal-pending { opacity: 0; transform: translateY(18px); }
    [data-car-card].is-visible, [data-motion="section"].is-visible { animation: fade-in-up 750ms var(--motion-ease) backwards; animation-delay: var(--reveal-delay, 0ms); }
    [data-motion="sold"].is-visible { animation: sold-pop 400ms var(--motion-ease) backwards; }
    @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
    @keyframes fade-in-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes sold-pop { from { transform: scale(0.95); } to { transform: scale(1); } }
}

/* ---- Filter bar ---- */
.filter-form {
    margin-top: 14px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 20px;
    align-items: end;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.filter-field label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-button, 6px);
    font: inherit;
}

.filter-field input:focus-visible,
.filter-field select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 4px;
}

.filter-actions .button,
.filter-actions .clear-filters {
    min-width: 88px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: var(--radius-button, 6px);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--motion-fast, 150ms) var(--motion-ease, ease),
                border-color var(--motion-fast, 150ms) var(--motion-ease, ease),
                transform var(--motion-fast, 150ms) var(--motion-ease, ease);
}

.filter-actions .button {
    background: var(--accent);
    color: var(--accent-contrast, var(--bg));
    border: 1px solid var(--accent);
}

.filter-actions .button:hover {
    transform: translateY(-1px);
}

.filter-actions .clear-filters {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.filter-actions .clear-filters:hover,
.filter-actions .clear-filters:focus-visible {
    border-color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    .filter-actions .button,
    .filter-actions .clear-filters {
        transition: none;
    }
    .filter-actions .button:hover {
        transform: none;
    }
}

@media (max-width: 900px) {
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .filter-grid { grid-template-columns: 1fr; }
    .filter-actions { justify-content: stretch; }
    .filter-actions .button,
    .filter-actions .clear-filters { flex: 1; }
}

/* Also stop animations when the preference changes while the page is open. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero__media { transform: none !important; }
    .reveal-pending { opacity: 1 !important; transform: none !important; }
}
