.lxv-system-page {
    --lxv-system-ink: #15211c;
    --lxv-system-cream: #f3f0e8;
    --lxv-system-line: rgba(21, 33, 28, .16);
    min-width: 0;
    overflow: clip;
}

.lxv-system-page *,
.lxv-system-page *::before,
.lxv-system-page *::after {
    box-sizing: border-box;
}

.lxv-vehicle-showcase__grid--summary-only {
    grid-template-columns: minmax(0, 46rem);
    justify-content: center;
}

.lxv-system-hero {
    color: #fff;
    background:
        linear-gradient(115deg, rgba(8, 17, 13, .96), rgba(21, 42, 31, .82)),
        radial-gradient(circle at 78% 20%, rgba(195, 156, 81, .28), transparent 35%);
    padding: clamp(7rem, 13vw, 12rem) 0 clamp(4rem, 8vw, 7.5rem);
}

.lxv-system-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(20rem, 1.2fr);
    gap: clamp(2rem, 7vw, 8rem);
    align-items: end;
}

.lxv-system-hero h1,
.lxv-not-found h1 {
    margin: .15em 0 .35em;
    max-width: 13ch;
    font-size: clamp(2.8rem, 6vw, 6.8rem);
    line-height: .95;
}

.lxv-search-form {
    width: min(100%, 52rem);
}

.lxv-search-form label {
    display: block;
    margin-bottom: .65rem;
    font-weight: 700;
}

.lxv-search-form__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
}

.lxv-search-form input {
    min-width: 0;
    min-height: 3.5rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 0;
    background: rgba(255, 255, 255, .1);
    color: inherit;
    padding: .85rem 1rem;
    font: inherit;
}

.lxv-search-form input::placeholder {
    color: currentColor;
    opacity: .7;
}

.lxv-system-results {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: var(--lxv-system-cream);
}

.lxv-system-results__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--lxv-system-line);
}

.lxv-system-results__header h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 3rem);
}

.lxv-system-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.2rem, 2.5vw, 2.5rem);
    padding-top: 2rem;
}

.lxv-system-card {
    min-width: 0;
    background: #fff;
    box-shadow: 0 1.2rem 3.2rem rgba(13, 24, 19, .08);
}

.lxv-system-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.lxv-system-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.lxv-system-card:hover .lxv-system-card__media img {
    transform: scale(1.035);
}

.lxv-system-card__body {
    padding: clamp(1.2rem, 2vw, 2rem);
}

.lxv-system-card__body h3 {
    margin: .25rem 0 .75rem;
}

.lxv-system-card__body a {
    color: inherit;
}

.lxv-system-empty {
    max-width: 48rem;
    margin-top: 2rem;
    padding: clamp(1.8rem, 4vw, 3.5rem);
    border: 1px solid var(--lxv-system-line);
    background: #fff;
}

.lxv-system-pagination {
    margin-top: 3rem;
}

.lxv-system-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
}

.lxv-system-pagination a,
.lxv-system-pagination span {
    display: grid;
    min-width: 2.8rem;
    min-height: 2.8rem;
    place-items: center;
    border: 1px solid var(--lxv-system-line);
    padding: .5rem;
}

.lxv-not-found__stage {
    min-height: max(42rem, 100svh);
    display: grid;
    align-items: center;
    padding: clamp(7rem, 12vw, 11rem) 0 clamp(4rem, 8vw, 7rem);
    color: #fff;
    background: linear-gradient(125deg, #09110e, #20352b);
}

.lxv-not-found__inner {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
    gap: clamp(2rem, 8vw, 9rem);
    align-items: center;
}

.lxv-not-found__code {
    color: rgba(255, 255, 255, .07);
    font-size: clamp(8rem, 26vw, 27rem);
    font-weight: 800;
    line-height: .7;
    letter-spacing: -.08em;
}

.lxv-not-found__content {
    min-width: 0;
    max-width: 44rem;
}

.lxv-not-found__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 2rem 0;
}

.lxv-not-found__search {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

/* Prevent long project chapter content from forcing the 390px layout wider. */
.lxv-project-story-layout,
.lxv-project-story-layout > *,
.lxv-project-story-chapters,
.lxv-project-story-chapters > *,
.lxv-project-chapter,
.lxv-project-chapter > * {
    min-width: 0;
}

@media (max-width: 900px) {
    .lxv-system-hero__inner,
    .lxv-not-found__inner {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .lxv-not-found__code {
        margin-bottom: -2rem;
        font-size: clamp(8rem, 38vw, 18rem);
    }
}

@media (max-width: 560px) {
    .lxv-search-form__controls,
    .lxv-system-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lxv-search-form__controls .button {
        width: 100%;
    }

    .lxv-system-results__header {
        display: block;
    }
}

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