@media (max-width: 1100px) {
  :root {
    --container: min(100% - 40px, 960px);
  }

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

  .vehicle-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
  }

  .filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vehicle-detail {
    grid-template-columns: 1fr;
  }

  .vehicle-detail__copy {
    max-width: 800px;
  }
}

@media (max-width: 820px) {
  :root {
    --container: calc(100% - 32px);
    --header-height: 70px;
  }

  .section {
    padding-block: 72px;
  }

  .site-header__inner {
    width: var(--container);
    grid-template-columns: 1fr auto;
  }

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 720px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(4, 5, 5, 0.96), rgba(4, 5, 5, 0.2) 74%),
      linear-gradient(90deg, rgba(4, 5, 5, 0.48), transparent);
  }

  .hero__content {
    margin-bottom: 82px;
  }

  .scroll-cue {
    display: none;
  }

  .editorial-grid,
  .story__grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .editorial-grid {
    min-height: auto;
  }

  .editorial-grid__media {
    height: min(72vw, 520px);
  }

  .story__intro {
    position: static;
  }

  .story-card {
    min-height: auto;
  }

  .story-card__image {
    height: 48vw;
  }

  .drawers {
    display: grid;
    min-height: 0;
  }

  .drawer,
  .drawer.is-open {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
    background: transparent;
  }

  .drawer h3,
  .drawer.is-open h3 {
    margin-top: 18px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .drawer.is-open .drawer__detail {
    padding-top: 18px;
  }

  .closing-cta {
    min-height: 620px;
  }

  .page-hero {
    min-height: 390px;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .filter-panel {
    margin-top: 18px;
  }

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

  .vehicle-modal__dialog {
    width: calc(100% - 20px);
    min-height: calc(100svh - 20px);
    margin: 10px auto;
  }

  .vehicle-detail__main {
    height: 58vw;
    min-height: 320px;
  }

  .contact-form {
    padding: 24px;
  }

  .site-footer__top {
    align-items: start;
    flex-direction: column;
  }
}

@media (min-width: 821px) {
  .filter-panel[hidden] {
    display: block !important;
  }
}

@media (max-width: 620px) {
  .section-header {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }

  .button-row {
    width: 100%;
  }

  .button-row .button {
    flex: 1 1 160px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero__content {
    margin-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .stats {
    display: grid;
  }

  .stat {
    justify-content: space-between;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-card:last-child {
    width: auto;
    grid-column: auto;
  }

  .vehicle-card__heading {
    align-items: baseline;
  }

  .page-hero__content {
    margin-bottom: 42px;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  .stock-toolbar {
    top: var(--header-height);
  }

  .vehicle-detail__thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicle-detail__main {
    min-height: 280px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail__actions .button {
    width: 100%;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

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

  [data-parallax] {
    transform: none !important;
  }
}
