/* V41 — one connected, layered vehicle-to-finance experience. */
#vehicles .lineup-heading {
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, .62fr);
  align-items: end;
  gap: clamp(24px, 5vw, 76px);
}

#vehicles .lineup-heading h2 {
  max-width: 9ch;
  font-size: clamp(48px, 5.45vw, 78px);
  line-height: .93;
  letter-spacing: -.073em;
}

#vehicles .lineup-heading > p {
  max-width: 39ch;
  padding: 0 0 6px 20px;
  border-left: 1px solid #cdd1d727;
  font-size: clamp(14px, 1.08vw, 16px);
  line-height: 1.75;
}

.lineup-world {
  --lineup-lens-x: -90%;
  border-top: 1px solid #e5e7e72b;
  border-bottom: 1px solid #e5e7e71e;
  box-shadow: inset 0 1px #fff1, inset 0 -1px #fff1, 0 38px 80px -65px #d6dbe849;
}

.lineup-world::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(108deg, transparent 35%, #dbe1e700 43%, #f0f2f21c 49%, #dbe1e700 56%, transparent 64%);
  opacity: 0;
  transform: translateX(var(--lineup-lens-x));
}

.lineup-world[data-transitioning="true"]::after {
  animation: showroom-lens-pass .76s cubic-bezier(.18,.72,.22,1) both;
}

@keyframes showroom-lens-pass {
  0% { opacity: 0; transform: translateX(-90%); }
  24% { opacity: .78; }
  100% { opacity: 0; transform: translateX(90%); }
}

.lineup-world[data-transitioning="true"] .lineup-world-copy > * {
  animation: showroom-copy-shift .42s cubic-bezier(.22,.7,.26,1) both;
}

.lineup-world[data-transitioning="true"] .lineup-world-copy > :nth-child(2) { animation-delay: .035s; }
.lineup-world[data-transitioning="true"] .lineup-world-copy > :nth-child(3) { animation-delay: .07s; }

@keyframes showroom-copy-shift {
  from { opacity: .25; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.lineup-world-controls {
  right: clamp(20px, 4.2vw, 68px);
  bottom: 17px;
  left: clamp(20px, 4.2vw, 68px);
  gap: 14px;
}

.lineup-world-controls > button {
  position: relative;
  z-index: 3;
  flex-basis: 43px;
  width: 43px;
  height: 43px;
  border-color: #e1e4e55c;
  background: linear-gradient(145deg, #f0f2f21a, #101215dc 68%);
  box-shadow: inset 0 1px #fff3, 0 14px 26px #0009, 0 0 0 5px #07090b55;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lineup-progress {
  flex: 1 1 auto;
  justify-content: flex-start;
  gap: 14px;
  width: min(100%, 1110px);
  min-width: 0;
  max-width: 1110px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 12px 12px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1450px;
  transform-style: preserve-3d;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
  scroll-snap-type: x mandatory;
}

.lineup-model-tab {
  position: relative;
  display: block;
  flex: 0 0 clamp(108px, 10vw, 150px);
  width: clamp(108px, 10vw, 150px);
  min-height: 78px;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e1e4e62e;
  border-radius: 8px;
  background: linear-gradient(135deg, #33383d, #121518 72%);
  box-shadow: inset 0 1px #fff2, 0 14px 24px -15px #000e;
  color: #f5f5f2;
  text-align: left;
  cursor: pointer;
  transform: translateZ(var(--tab-z, 0px)) rotateY(var(--tab-ry, 0deg));
  transform-style: preserve-3d;
  scroll-snap-align: center;
  transition: transform .38s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .35s ease, filter .3s ease;
}

.lineup-model-tab::before,
.lineup-model-tab::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.lineup-model-tab::before {
  border-top: 1px solid #ffffff68;
  background: linear-gradient(180deg, #07090b10 12%, #07090b07 39%, #07090bd9 100%);
}

.lineup-model-tab::after {
  background: linear-gradient(120deg, #ffffff00 28%, #ffffff12 48%, #ffffff00 62%);
  opacity: .42;
  transform: translateX(-65%);
  transition: transform .7s ease, opacity .3s ease;
}

.lineup-model-tab img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  filter: saturate(.72) brightness(.78) contrast(1.04);
  transform: scale(1.025) translateZ(0);
  transition: filter .42s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}

.lineup-model-tab-index {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 10px;
  color: #edeff0b8;
  font: 750 8px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: .13em;
}

.lineup-model-tab-copy {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  left: 10px;
  display: grid;
  gap: 4px;
  text-shadow: 0 2px 9px #000;
}

.lineup-model-tab-copy b { font: 800 9px/1.1 var(--sans); letter-spacing: .06em; }
.lineup-model-tab-copy small { color: #e0e2e2c7; font: 750 7px/1 var(--sans); letter-spacing: .12em; }

.lineup-model-tab[aria-pressed="true"] {
  border-color: #f3f4f1d6;
  box-shadow: inset 0 0 0 1px #a9443c9e, 0 19px 30px -13px #000e, 0 0 24px #b23a3026;
  filter: brightness(1.14);
  transform: translateY(-8px) translateZ(24px) rotateY(0) scale(1.04);
}

.lineup-model-tab[aria-pressed="true"]::before { box-shadow: inset 0 -2px #b4453c; }
.lineup-model-tab[aria-pressed="true"] img { filter: saturate(.98) brightness(1.04) contrast(1.07); transform: scale(1.09) translateZ(13px); }
.lineup-model-tab[aria-pressed="true"] .lineup-model-tab-copy b { color: #fff; }
.lineup-model-tab:hover { border-color: #eff0ef9e; transform: translateY(-4px) translateZ(10px) rotateY(0); }
.lineup-model-tab:hover img { filter: saturate(.97) brightness(.98) contrast(1.06); transform: scale(1.07); }
.lineup-model-tab:hover::after { opacity: .88; transform: translateX(65%); }
.lineup-model-tab:focus-visible { outline: 2px solid #f3e4e0; outline-offset: 3px; }

.lineup-alternate {
  margin-top: 15px;
  border: 1px solid #d9dde12b;
  border-radius: 14px;
  background: linear-gradient(112deg, #181c20e8, #0c0e10ee 50%, #17191ddd);
  box-shadow: inset 0 1px #fff2, 0 20px 45px -30px #000d;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lineup-alternate-actions { perspective: 1000px; }

.lineup-type-link {
  --spatial-rx: 0deg;
  --spatial-ry: 0deg;
  min-height: 70px;
  flex-basis: 106px;
  border-color: #e0e4e53b;
  border-radius: 8px;
  background: linear-gradient(150deg, #c8d0d51a, #15191ceb 52%, #101215);
  box-shadow: inset 0 1px #fff3, inset 0 -1px #fff1, 0 17px 28px -17px #000e;
  transform: perspective(900px) rotateX(var(--spatial-rx)) rotateY(var(--spatial-ry)) translateZ(0);
  transition: transform .22s ease-out, border-color .27s ease, box-shadow .32s ease, background .28s ease;
}

.lineup-type-link:hover,
.lineup-type-link:focus-visible {
  border-color: #ecefeeaa;
  box-shadow: inset 0 1px #fff5, 0 21px 34px -18px #000e, 0 0 23px #b23a301b;
  transform: perspective(900px) rotateX(var(--spatial-rx)) rotateY(var(--spatial-ry)) translateY(-6px) translateZ(12px);
}

#inventory .inventory-grid {
  grid-auto-columns: min(620px, calc((100% - var(--inventory-gap)) / 2.12));
  perspective: 1800px;
  perspective-origin: 50% 28%;
  padding: 1.4rem 8px 3.7rem;
}

#inventory .inventory-card {
  --card-rise: 0px;
  --card-rx: 0deg;
  --card-ry: 0deg;
  border-radius: 12px;
  transform: perspective(1500px) rotateX(calc(var(--card-rx) + var(--spatial-rx, 0deg))) rotateY(calc(var(--card-ry) + var(--spatial-ry, 0deg))) translateY(var(--card-rise)) scale(var(--card-scale, 1));
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .38s ease;
}

#inventory .inventory-card:nth-child(3n + 1) { --card-rise: 12px; --card-ry: -2deg; --card-scale: .985; }
#inventory .inventory-card:nth-child(3n + 2) { --card-rise: -14px; --card-rx: .8deg; --card-scale: 1.015; }
#inventory .inventory-card:nth-child(3n + 3) { --card-rise: 9px; --card-ry: 2deg; --card-scale: .985; }

#inventory .inventory-card::before { z-index: 4; opacity: .7; }
#inventory .inventory-thumb {
  position: relative;
  isolation: isolate;
  height: clamp(205px, 19vw, 318px);
  transform: translateZ(22px);
  border-radius: 10px 10px 2px 2px;
  box-shadow: inset 0 1px #fff7, 0 16px 30px -23px #000b;
}

#inventory .inventory-thumb::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(108deg, transparent 42%, #fff3 49%, transparent 56%), linear-gradient(0deg, #11151a26, transparent 35%);
  opacity: .24;
  transition: opacity .3s ease;
}

#inventory .inventory-card-info { transform: translateZ(30px); }
#inventory .inventory-card h3 { font-size: clamp(1.15rem, 1.52vw, 1.4rem); letter-spacing: -.035em; }
#inventory .inventory-card-actions { transform: translateZ(20px); }

@media (hover: hover) and (pointer: fine) {
  #inventory .inventory-card:hover,
  #inventory .inventory-card:focus-within {
    --card-rise: -8px;
    z-index: 4;
    border-color: #e5e9ec9c;
    box-shadow: inset 0 1px #fff5, 0 42px 66px -27px #000e, 0 0 34px #af3a3020;
    --card-rise: -8px;
    --card-scale: 1.015;
    transform: perspective(1500px) rotateX(var(--spatial-rx, 0deg)) rotateY(var(--spatial-ry, 0deg)) translateY(var(--card-rise)) translateZ(18px) scale(var(--card-scale));
  }
  #inventory .inventory-card:hover .inventory-thumb::after,
  #inventory .inventory-card:focus-within .inventory-thumb::after { opacity: .66; }
}

#finance-center .finance-portal-card {
  --portal-rx: 0deg;
  --portal-ry: 0deg;
  transform: perspective(1450px) rotateX(calc(var(--portal-rx) + var(--spatial-rx, 0deg))) rotateY(calc(var(--portal-ry) + var(--spatial-ry, 0deg))) translateY(var(--portal-rise, 0px));
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .38s ease;
}

#finance-center .finance-portal-payment { --portal-ry: -1.1deg; --portal-rise: 8px; }
#finance-center .finance-portal-application { --portal-ry: 1.1deg; --portal-rise: -9px; }
#finance-center .finance-portal-card > * { position: relative; z-index: 1; }
#finance-center .finance-portal-card:hover,
#finance-center .finance-portal-card:focus-visible {
  --portal-rise: -13px;
  border-color: #eef0efa8;
  transform: perspective(1450px) rotateX(var(--spatial-rx, 0deg)) rotateY(var(--spatial-ry, 0deg)) translateY(var(--portal-rise)) translateZ(20px);
}

#financing .credit-path {
  transform: perspective(1100px) rotateX(var(--spatial-rx, 0deg)) rotateY(var(--spatial-ry, 0deg)) translateZ(0);
  transform-style: preserve-3d;
}

#financing .credit-path:hover,
#financing .credit-path:focus-visible {
  box-shadow: inset 0 1px #fff3, 0 20px 32px -18px #000e, 0 0 23px #b13c301c;
  transform: perspective(1100px) rotateX(var(--spatial-rx, 0deg)) rotateY(var(--spatial-ry, 0deg)) translateY(-4px) translateZ(12px);
}

@media (max-width: 760px) {
  #vehicles .lineup-heading { grid-template-columns: 1fr; gap: 13px; }
  #vehicles .lineup-heading h2 { max-width: 10ch; font-size: clamp(43px, 10vw, 58px); }
  #vehicles .lineup-heading > p { padding-left: 13px; }
  .lineup-world-controls { right: 12px; bottom: 11px; left: 12px; gap: 7px; }
  .lineup-world-controls > button { flex-basis: 36px; width: 36px; height: 36px; }
  .lineup-progress { gap: 7px; padding: 8px 8px 11px; border-radius: 9px; }
  .lineup-model-tab { flex-basis: 94px; width: 94px; min-height: 65px; border-radius: 6px; }
  .lineup-model-tab-index { top: 7px; left: 7px; font-size: 7px; }
  .lineup-model-tab-copy { right: 5px; bottom: 6px; left: 7px; gap: 3px; }
  .lineup-model-tab-copy b { font-size: 8px; }
  .lineup-model-tab-copy small { font-size: 6px; }
  .lineup-alternate { border-radius: 10px; }
  .lineup-type-link { flex-basis: 98px; min-height: 64px; }
  #inventory .inventory-card { --card-rise: 0px; --card-rx: 0deg; --card-ry: 0deg; }
  #finance-center .finance-portal-payment,
  #finance-center .finance-portal-application { --portal-ry: 0deg; --portal-rise: 0px; }
}

@media (max-width: 760px) {
  #inventory .inventory-grid { grid-auto-columns: min(500px, 84%); }
  #inventory .inventory-card:nth-child(n) { --card-rise: 0px; --card-rx: 0deg; --card-ry: 0deg; --card-scale: 1; }
  #inventory .inventory-thumb { height: clamp(172px, 38vw, 245px); }
}

@media (max-width: 540px) {
  #inventory .inventory-grid { grid-auto-columns: 87%; padding-top: .65rem; }
  #inventory .inventory-thumb { height: 174px; }
}

@media (prefers-reduced-motion: reduce) {
  .lineup-world[data-transitioning="true"]::after,
  .lineup-world[data-transitioning="true"] .lineup-world-copy > * { animation: none; }
  .lineup-model-tab, .lineup-world-controls > button, .lineup-type-link,
  #inventory .inventory-card, #finance-center .finance-portal-card, #financing .credit-path { transition: none; transform: none; }
  .lineup-progress { scroll-behavior: auto; }
}

@media (prefers-reduced-transparency: reduce) {
  .lineup-progress, .lineup-model-tab, .lineup-alternate, .lineup-type-link { backdrop-filter: none; -webkit-backdrop-filter: none; background: #121416; }
}

@media (forced-colors: active) {
  .lineup-model-tab, .lineup-type-link, .lineup-progress { border: 1px solid CanvasText; background: Canvas; color: CanvasText; box-shadow: none; }
  .lineup-model-tab::before, .lineup-model-tab::after { display: none; }
}

/* V56 — vehicle-first browsing, inspired by the supplied full-screen car reel. */
#inventory .inventory-results { perspective: 1900px; }
#inventory .inventory-grid {
  grid-auto-columns: min(1080px, 82%);
  gap: clamp(18px, 2.5vw, 36px);
  padding: 2rem max(8px, calc((100% - 1150px) / 2)) 4.4rem;
  perspective: 1900px;
  perspective-origin: 50% 42%;
  scroll-padding-inline: max(8px, calc((100% - 1150px) / 2));
  scrollbar-width: none;
}
#inventory .inventory-grid::-webkit-scrollbar { display: none; }
#inventory .inventory-card {
  --rail-yaw: 0deg;
  --rail-depth: 0px;
  --rail-lift: 0px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 0%, #cfd7df16, transparent 52%),
    linear-gradient(150deg, #24282dbd, #111316 57%, #090a0c);
  box-shadow: inset 0 1px #ffffff2d, inset 0 -1px #ffffff07, 0 38px 76px -43px #000f;
  opacity: .74;
  transform: perspective(1600px) rotateX(var(--spatial-rx, 0deg)) rotateY(calc(var(--rail-yaw) + var(--spatial-ry, 0deg))) translateY(var(--rail-lift)) translateZ(var(--rail-depth)) scale(.965);
  transition: transform .58s cubic-bezier(.18,.72,.18,1), opacity .42s ease, filter .42s ease, border-color .38s ease, box-shadow .42s ease;
  filter: saturate(.78) brightness(.8);
}
#inventory .inventory-card.is-featured {
  z-index: 3;
  opacity: 1;
  filter: none;
  border-color: #d8dce077;
  box-shadow: inset 0 1px #ffffff44, inset 0 -1px #ffffff12, 0 52px 90px -45px #000f, 0 0 40px #dce4ec0c;
  transform: perspective(1600px) rotateX(var(--spatial-rx, 0deg)) rotateY(var(--spatial-ry, 0deg)) translateY(-2px) translateZ(32px) scale(1);
}
#inventory .inventory-thumb {
  height: clamp(280px, 34vw, 470px);
  border: 1px solid #ffffff20;
  border-radius: 17px 17px 6px 6px;
  background:
    radial-gradient(ellipse at 50% 80%, #e8ecef 0 18%, #b9bec2 44%, #555b61 76%, #171a1d 100%),
    linear-gradient(145deg, #30353a, #090b0e);
  box-shadow: inset 0 1px #ffffff7a, inset 0 -28px 42px -35px #000c, 0 22px 50px -38px #000e;
  transform: translateZ(28px);
}
#inventory .inventory-thumb img {
  object-fit: cover;
  object-position: center 62%;
  transition: transform .8s cubic-bezier(.18,.72,.18,1), filter .6s ease;
}
#inventory .inventory-thumb::after {
  background: linear-gradient(180deg, #080a0d00 54%, #080a0d78 100%), linear-gradient(108deg, transparent 38%, #fff4 49%, transparent 58%);
  opacity: .46;
}
#inventory .inventory-card.is-featured .inventory-thumb img { transform: scale(1.025); filter: contrast(1.035) saturate(1.04); }
#inventory .inventory-card-info { padding: 1.35rem clamp(18px, 2.4vw, 34px) 1.1rem; transform: translateZ(34px); }
#inventory .inventory-card h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: -.045em; }
#inventory .inventory-card-actions { margin-inline: clamp(18px, 2.4vw, 34px); margin-bottom: 1.4rem; transform: translateZ(24px); }
#inventory .inventory-rail-controls { transform: translateZ(20px); }

/* A stock detail opens as a wide vehicle stage with its exact photo kept beside the facts. */
#inventory .inventory-dialog {
  inset: clamp(14px, 4vh, 42px) clamp(14px, 4vw, 64px);
  display: none;
  width: auto;
  height: auto;
  max-height: none;
  grid-template-columns: minmax(0, 1.58fr) minmax(300px, .72fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 6% 0%, #a7353030, transparent 41%),
    linear-gradient(112deg, #22262bfa 0%, #111417fb 64%, #090a0cfc 100%);
  box-shadow: 0 44px 120px #000e, inset 0 1px #ffffff40;
  transform: perspective(1500px) rotateX(1.2deg) translateY(20px) scale(.985);
  opacity: 0;
  transition: transform .42s cubic-bezier(.18,.72,.18,1), opacity .35s ease, overlay .35s allow-discrete, display .35s allow-discrete;
}
#inventory .inventory-dialog[open] {
  display: grid;
  transform: perspective(1500px) rotateX(0) translateY(0) scale(1);
  opacity: 1;
}
@starting-style {
  #inventory .inventory-dialog[open] { transform: perspective(1500px) rotateX(1.2deg) translateY(20px) scale(.985); opacity: 0; }
}
#inventory .inventory-dialog::backdrop { background: #020305c9; backdrop-filter: blur(14px); }
#inventory .inventory-dialog .inventory-close { top: 18px; right: 18px; width: 48px; height: 48px; box-shadow: 0 12px 28px #0009; }
#inventory .inventory-detail-content { display: contents; }
#inventory .inventory-detail-stage {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  padding: clamp(28px, 4vw, 62px);
  overflow: hidden;
  border-right: 1px solid #ffffff19;
}
#inventory .inventory-detail-heading { padding-right: 56px; }
#inventory .inventory-detail-heading .inventory-power { margin: 0 0 12px; letter-spacing: .16em; }
#inventory .inventory-detail-content h2 { max-width: 19ch; font-size: clamp(2rem, 4.1vw, 4.2rem); letter-spacing: -.055em; }
#inventory .inventory-gallery { display: grid; flex: 1 1 auto; min-height: 250px; margin: 0; perspective: 1400px; }
#inventory .inventory-detail-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border-color: #ffffff38;
  background:
    radial-gradient(ellipse at 50% 85%, #e8ecef 0 14%, #9ca3a9 46%, #33383d 78%, #111417 100%),
    linear-gradient(145deg, #343a40, #101214);
  box-shadow: inset 0 1px #ffffff72, inset 0 -20px 32px -26px #000c, 0 36px 64px -35px #000e;
  transform: perspective(1400px) rotateY(-1.3deg) translateZ(18px);
}
#inventory .inventory-detail-photo img { object-fit: contain; }
#inventory .inventory-photo-caption { margin: 8px 4px 0; color: #959da3; font-size: .72rem; }
#inventory .inventory-detail-specs {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: clamp(76px, 9vh, 112px) clamp(20px, 3vw, 42px) 20px;
  overflow: auto;
}
#inventory .inventory-detail-specs > p:first-child { margin: 0 0 22px; color: #c0c5c9; font-size: .95rem; line-height: 1.65; }
#inventory .inventory-detail-specs dl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; }
#inventory .inventory-detail-specs dl > div { min-width: 0; padding: 13px 14px; border: 1px solid #c4ccd332; border-radius: 10px; background: linear-gradient(145deg, #ffffff0c, #ffffff03); box-shadow: inset 0 1px #ffffff15, 0 10px 22px -18px #000; }
#inventory .inventory-detail-specs dt { color: #969ea4; font-size: .72rem; letter-spacing: .04em; }
#inventory .inventory-detail-specs dd { margin-top: 6px; color: #f2f3f2; font-size: .9rem; }
#inventory .inventory-detail-specs .inventory-price-note { margin: 20px 0 0; color: #899096; font-size: .75rem; line-height: 1.6; }
#inventory .inventory-detail-action {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 8px;
  padding: 18px clamp(20px, 3vw, 42px) 26px;
  border-top: 1px solid #ffffff1b;
  background: linear-gradient(180deg, #ffffff05, #00000020);
}
#inventory .inventory-detail-action > * { width: 100%; margin: 0; }

@media (max-width: 760px) {
  #inventory .inventory-grid { grid-auto-columns: 88%; gap: 14px; padding: 1.2rem 6% 3.2rem; scroll-padding-inline: 6%; }
  #inventory .inventory-card { opacity: .82; }
  #inventory .inventory-card.is-featured { opacity: 1; }
  #inventory .inventory-thumb { height: clamp(210px, 58vw, 310px); }
  #inventory .inventory-dialog { inset: 6px; display: none; flex-direction: column; border-radius: 17px; transform: translateY(14px) scale(.99); }
  #inventory .inventory-dialog[open] { display: flex; transform: translateY(0) scale(1); }
  #inventory .inventory-detail-content { display: block; flex: 1 1 auto; min-height: 0; padding: 62px 16px 18px; overflow: auto; }
  #inventory .inventory-detail-stage { display: flex; min-height: 0; padding: 0; overflow: visible; border-right: 0; }
  #inventory .inventory-detail-heading { padding-right: 42px; }
  #inventory .inventory-detail-content h2 { font-size: clamp(1.75rem, 8vw, 2.7rem); }
  #inventory .inventory-gallery { min-height: 0; margin-top: 17px; }
  #inventory .inventory-detail-photo { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; transform: none; }
  #inventory .inventory-detail-specs { padding: 22px 0 4px; overflow: visible; }
  #inventory .inventory-detail-specs dl { grid-template-columns: 1fr 1fr; }
  #inventory .inventory-detail-action { grid-column: 1; grid-row: 2; padding: 10px 14px max(14px, env(safe-area-inset-bottom)); }
  #inventory .inventory-detail-action .inventory-inquiry { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  #inventory .inventory-card,
  #inventory .inventory-dialog,
  #inventory .inventory-detail-photo,
  #inventory .inventory-thumb img { transition: none; transform: none; }
}
