.terrain-hero {
  position: relative;
  isolation: isolate;
  color: white;
  /* Leave room for the finder and vehicle cards on the first desktop screen. */
  --terrain-reserved-height: clamp(394px, calc(11vw + 230px), 438px);
  min-block-size: clamp(400px, min(max(525px, 52vw), calc(100svh - var(--terrain-reserved-height))), 960px);
  background: #263427;
  overflow: hidden;
}
.terrain-hero::after, .terrain-media, .terrain-media img, .terrain-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.terrain-media { z-index: -2; }
.terrain-media :is(img, video) { object-fit: cover; object-position: center 61%; }
.terrain-media :is(img, video)[data-media-scene="trail"] { object-position: 64% center; }
.terrain-media :is(img, video)[data-media-scene="water"] { object-position: center 60%; }
.terrain-media :is(img, video)[data-media-scene="snow"] { object-position: center 57%; }
.terrain-clip {
  z-index: 1;
  pointer-events: none;
  background: #202c23;
  opacity: 0;
  transition: opacity 420ms ease;
}
/* A decoded incoming frame replaces the old scene directly; only its exit dissolves. */
.terrain-clip.is-ready { opacity: 1; transition: none; }
.terrain-motion-toggle {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 68px);
  bottom: 67px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #fbfff675;
  border-radius: 24px;
  background: #141e19cf;
  color: #f3f6ed;
  font-size: 11px;
  font-weight: 800;
}
.terrain-motion-toggle[hidden] { display: none; }
.terrain-motion-toggle:hover { background: #29382fee; }
.terrain-motion-toggle:focus-visible { outline-color: white; }
.terrain-media :is(img, video)[data-media-scene="road"] {
  object-position: 62% 48%;
}
.terrain-hero[data-scene="road"] .terrain-copy {
  text-shadow: 0 2px 12px #0b140d, 0 0 28px #0b140d9c;
}
.terrain-incoming { animation: terrain-reveal 620ms cubic-bezier(.2,.7,.25,1) both; }
.terrain-incoming[data-media-scene="road"] { animation-name: road-reveal; }
@keyframes terrain-reveal { from { opacity: 0; transform: scale(1.022); } to { opacity: 1; transform: scale(1); } }
@keyframes road-reveal { from { opacity: 0; } to { opacity: 1; } }
.terrain-hero::after {
  z-index: -1;
  content: '';
  background: linear-gradient(90deg, #131f19dc 0%, #131f1973 43%, #131f1911 75%),
              linear-gradient(0deg, #131f19ca 0%, #131f1900 31%);
}
.terrain-hero[data-scene="road"]::after { background: none; }
.terrain-content {
  min-block-size: inherit;
  max-inline-size: 1344px;
  margin-inline: auto;
  padding: clamp(35px, 6.5svh, 92px) 40px 63px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.terrain-copy .eyebrow { display: flex; align-items: center; gap: 11px; letter-spacing: .16em; color: #e2e8da; }
.terrain-copy .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.terrain-copy h1 {
  font-size: clamp(64px, min(7vw, 10svh), 108px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.078em;
  margin: 25px 0 22px;
}
.terrain-copy h1 em { color: var(--lime); font-style: normal; }
.terrain-description { color: #f3f6ed; font-size: clamp(14px, 1.22vw, 17px); max-width: 380px; }
.terrain-controls {
  display: flex;
  align-self: flex-start;
  border: 1px solid #fbfff675;
  border-radius: 30px;
  padding: 4px;
  background: #141e19a8;
  backdrop-filter: blur(12px);
}
.terrain-controls button {
  font-size: 13px;
  font-weight: 800;
  color: #f3f6ed;
  min-height: 43px;
  padding: 8px 20px;
  border-radius: 24px;
  transition: background 170ms ease, color 170ms ease, transform 140ms ease;
  white-space: nowrap;
}
.terrain-controls button:hover { background: #ffffff26; }
.terrain-controls button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.terrain-controls button:active { transform: scale(.96); }
.terrain-controls button:focus-visible { outline-color: white; outline-offset: -3px; }
.finder-shell { position: relative; margin-top: -37px; z-index: 3; }
.finder-dealer-catalog { display:flex;align-items:center;justify-content:space-between;gap:10px;width:min(100%,1120px);margin:12px auto 0;padding:10px 16px;min-height:44px;border-radius:10px;background:#e9eedf;color:#253326;text-decoration:none;font-size:14px; }
.finder-dealer-catalog span,.finder-dealer-catalog strong { display:inline-flex;align-items:center;gap:8px; }
.finder-dealer-catalog:hover strong { text-decoration:underline; }
@media(max-width:440px){.finder-dealer-catalog{padding-inline:10px;font-size:12px}.finder-dealer-catalog span svg{display:none}}
.ride-finder {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 5px;
  align-items: stretch;
  padding: 9px;
  background: #fcfdfb;
  border: 1px solid #dadecf;
  border-radius: 18px;
  box-shadow: 0 12px 34px #22311c18;
  max-width: 1264px;
  margin-inline: auto;
}
.finder-field { position: relative; min-width: 0; }
.finder-query {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #dce2d2;
  border-radius: 11px;
  padding: 10px 12px;
  background: #f2f5ed;
  cursor: text;
}
.finder-query > svg { flex-shrink: 0; color: var(--moss); }
.finder-query .finder-label { flex: 1; }
.finder-query input {
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 650;
}
.finder-query input::placeholder { color: #505d4e; font-weight: 500; }
.finder-query:focus-within { outline: 2px solid #638324; outline-offset: -2px; background: #fff; }
.finder-query input:focus { outline: none; }
.finder-query .finder-label small { line-height: 1.25; }
.finder-field summary {
  min-height: 62px;
  height: 100%;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  list-style: none;
  transition: background 155ms ease, border-color 155ms ease;
}
.finder-field summary::-webkit-details-marker { display: none; }
.finder-field summary::marker { content: ''; }
.finder-field:not(:first-child) summary { border-inline-start-color: #e6e9e1; }
.finder-field summary:hover, .finder-field[open] summary { background: #f0f3e9; border-color: #e1e7d6; }
.finder-field summary:focus-visible { outline: 2px solid #638324; outline-offset: -2px; }
.finder-icon { display: grid; place-items: center; height: 38px; border-radius: 50%; background: #ecf0e5; color: #4b604a; }
.finder-label { display: grid; gap: 3px; min-width: 0; }
.finder-label small { font-size: 10px; font-weight: 700; color: #53634f; }
.finder-label strong { font-size: 14px; font-weight: 800; line-height: 1.25; }
.finder-chevron { color: #52604d; transition: transform 160ms ease; }
.finder-field[open] .finder-chevron { transform: rotate(180deg); }
.finder-menu {
  position: absolute;
  z-index: 4;
  top: calc(100% + 13px);
  left: 0;
  width: max(100%, 195px);
  max-height: min(415px, 62vh);
  overflow: auto;
  border-radius: 14px;
  padding: 7px;
  border: 1px solid #d9dfd3;
  background: #fcfdfb;
  box-shadow: 0 19px 50px #1726152b, 0 2px 8px #17261512;
  transform-origin: top;
  animation: finder-open 185ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes finder-open { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
.finder-menu button {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  padding-inline: 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}
.finder-menu button svg { visibility: hidden; }
.finder-menu button:hover, .finder-menu button:focus-visible { background: #eef2e7; }
.finder-menu button:focus-visible { outline: 2px solid #638324; outline-offset: -2px; }
.finder-menu button[aria-pressed="true"] { background: #e9f3bd; }
.finder-menu button[aria-pressed="true"] svg { visibility: visible; }
.finder-city-label {
  margin: 6px 8px 2px;
  border-top: 1px solid var(--line);
  padding: 10px 4px 2px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
}
.finder-submit {
  background: var(--lime);
  color: #1d2919;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  padding-inline: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  gap: 12px;
  transition: background 170ms ease, transform 170ms ease;
  white-space: nowrap;
}
.finder-submit:hover { background: #e3f487; }
.finder-submit:active { transform: scale(.98); }
.finder-match { min-width: 25px; min-height: 25px; padding: 4px; background: #22361519; font-size: 11px; border-radius: 100px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.finder-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ride-film { display: grid; grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); overflow: clip; background: #e8eddf; border-radius: 24px; margin: 16px 0 60px; }
.ride-film-copy { display: flex; align-items: start; justify-content: center; flex-direction: column; padding: clamp(30px, 4vw, 58px); }
.ride-film-copy h2 { font-size: clamp(40px, 4.5vw, 66px); font-weight: 650; line-height: .99; margin: 19px 0 18px; }
.ride-film-copy p:not(.eyebrow) { font-size: 14px; color: var(--moss); max-width: 265px; }
.ride-film-copy .text-link { margin-top: 16px; }
.film-credit { font-size: 10px; color: #576554; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.ride-film-media { position: relative; isolation: isolate; min-width: 0; background: #2e382d; aspect-ratio: 16 / 10; }
.ride-film-media video { width: 100%; height: 100%; position: absolute; object-fit: cover; inset: 0; }
.ride-film-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  background: #1e2a1f49;
  transition: background 180ms ease;
}
.ride-film-play[hidden] { display: none; }
.ride-film-play:hover { background: #1e2a1f25; }
.ride-film-play:focus-visible { outline: 3px solid var(--lime); outline-offset: -5px; }
.ride-film-play span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ebf2e4ee;
  box-shadow: 0 5px 18px #17201441;
  transition: transform 180ms ease;
}
.ride-film-play:hover span { transform: scale(1.08); }
.ride-film-play span::before { content: ''; display: block; width: 16px; height: 20px; margin-left: 4px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: var(--ink); }
.ride-film-play b { font-size: 12px; text-shadow: 0 1px 8px #000; }

@media (min-width: 641px) and (max-width: 1090px) {
  .ride-finder { grid-template-columns: minmax(197px, 1.5fr) 1fr 1fr 1fr auto; }
  .finder-field summary { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 8px; gap: 4px; }
  .finder-icon { display: none; }
  .finder-submit { padding-inline: 12px; gap: 7px; }
}
@media (min-width: 641px) and (max-width: 800px) {
  .ride-finder { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .finder-query { grid-column: 1 / -1; }
}
@media (min-width: 801px) and (max-width: 940px) {
  .finder-submit > svg { display: none; }
}
@media (max-width: 840px) {
  .terrain-content { padding-inline: 28px; }
  .finder-field summary { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 10px; }
  .finder-icon { display: none; }
  .ride-film-copy { padding: 29px; }
}
@media (max-width: 640px) {
  .terrain-hero { min-block-size: 485px; --terrain-frame-height: calc(100vw * 9 / 16); background: #202c23; }
  .terrain-content { padding: calc(var(--terrain-frame-height) + 22px) 20px 60px; gap: 22px; }
  .terrain-copy h1 { font-size: clamp(46px, 13vw, 75px); letter-spacing: -.07em; margin: 22px 0 18px; }
  .terrain-copy h1 br { display: none; }
  .terrain-copy h1 em::before { content: ' '; }
  .terrain-hero[data-scene="road"] .terrain-copy h1 { font-size: clamp(43px, 12vw, 70px); margin: 12px 0; }
  .terrain-hero[data-scene="road"] .terrain-copy h1 em::before { content: none; }
  .terrain-copy .eyebrow { font-size: 9px; }
  .terrain-description { max-width: 245px; font-size: 13px; }
  .terrain-hero::after { background: none; }
  .terrain-media :is(img, video), .terrain-media :is(img, video)[data-media-scene] {
    inset: 0 0 auto;
    width: 100%;
    height: var(--terrain-frame-height);
    object-position: center;
    mask-image: none;
  }
  .terrain-media img[data-media-scene="all"] { object-position: 67% center; }
  .terrain-media img[data-media-scene="road"] { object-fit: contain; }
  .terrain-media video[data-media-scene] { object-fit: contain; }
  .terrain-motion-toggle { top: 12px; right: 12px; bottom: auto; }
  .terrain-hero[data-scene="road"] .terrain-motion-toggle { left: 12px; right: auto; }
  .terrain-media[data-visible-scene="road"] img:not([data-media-scene="road"]) { visibility: hidden; }
  .terrain-controls { max-width: 100%; align-self: start; }
  .terrain-controls button { padding-inline: clamp(7px, 2.6vw, 18px); font-size: 11px; min-height: 42px; }
  .finder-shell.container { padding-inline: 18px; margin-top: -34px; }
  .ride-finder { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; gap: 5px; }
  .finder-query { grid-column: 1 / -1; min-height: 57px; }
  .finder-field summary { min-height: 55px; grid-template-columns: 29px minmax(0, 1fr) auto; gap: 7px; padding-inline: 8px; }
  .finder-field:not(:first-child) summary, .finder-field summary { border-color: #e5e8df; }
  .finder-icon { display: grid; height: 29px; }
  .finder-icon svg { width: 15px; height: 15px; }
  .finder-label small { font-size: 9px; }
  .finder-label strong { font-size: 12px; }
  .finder-menu { top: calc(100% + 6px); }
  .finder-field[data-finder-field="region"] .finder-menu { left: auto; right: 0; }
  .finder-submit { min-height: 51px; padding-inline: 6px; gap: 5px; font-size: 13px; }
  .finder-submit > svg { display: none; }
  .ride-film { grid-template-columns: 1fr; border-radius: 16px; margin: 6px 0 38px; }
  .ride-film-copy { padding: 26px; }
  .ride-film-copy h2 { margin: 13px 0; }
  .ride-film-media { aspect-ratio: 16 / 10; }
  .ride-film-play span { width: 52px; height: 52px; }
}
@media (max-width: 370px) {
  .finder-field summary { grid-template-columns: minmax(0, 1fr) auto; }
  .finder-field .finder-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .terrain-hero .terrain-incoming, .finder-menu { animation: none; }
  .terrain-clip { transition: none; }
}
.home-categories .category-heading { font-size: 20px; letter-spacing: -.04em; }
.home-categories .category { background: #eef0e8; padding: 12px 8px 17px; gap: 5px; min-width: 0; }
.home-categories .category:hover { background: #e3ead6; }
.home-categories .category:active { transform: scale(.98); }
.home-categories .category img { width: 100%; height: clamp(70px, 8vw, 105px); object-fit: contain; mix-blend-mode: multiply; padding: 5px; }
.home-categories .category span { font-size: 13px; }
@media (min-width: 821px) {
  .home-categories { padding-top: clamp(24px, 4svh, 38px); }
  .home-categories .category-heading { margin-bottom: 16px; }
  .home-categories .category img { height: clamp(66px, 9svh, 96px); }
}
@media (max-width: 480px) { .home-categories .category span { font-size: 11px; } }
