/* OverlandZone motion: visible by default; native controls retain ownership. */
body.overlandzone-v34.oz-motion-ready {
  --oz-motion-out: cubic-bezier(.22, .61, .36, 1);
  --oz-motion-image: cubic-bezier(.4, 0, .2, 1);
  --oz-motion-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* The leaving photograph is visual only. The active slide owns the link. */
body.overlandzone-v34.oz-visual-priority-release .oz-manual-hero__media > .oz-hero-crossfade {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
body.overlandzone-v34.oz-visual-priority-release .oz-hero-crossfade > picture {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

/* A stationary crop gives the image a small depth range without moving copy. */
body.overlandzone-v34.oz-motion-ready :is([data-oz-motion-image], [data-oz-motion-settle]) {
  overflow: hidden;
  overflow: clip;
}

/* Shadow appears through opacity rather than repainting an animated shadow. */
body.overlandzone-v34.oz-motion-ready .oz-header::after {
  content: "";
  position: absolute;
  inset: 100% 0 auto;
  height: 16px;
  background: linear-gradient(to bottom, rgb(24 34 24 / .08), rgb(24 34 24 / 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms var(--oz-motion-out);
}
body.overlandzone-v34.oz-motion-ready .oz-header.oz-motion-scrolled::after {
  opacity: 1;
}

/* Presses answer immediately; hover states take a longer, smoother path. */
body.overlandzone-v34.oz-motion-ready :is(.oz-button, .wp-element-button) {
  transition: transform 360ms var(--oz-motion-out),
    background-color 380ms var(--oz-motion-out),
    color 320ms var(--oz-motion-out),
    border-color 380ms var(--oz-motion-out);
}
body.overlandzone-v34.oz-motion-ready :is(.oz-button, .wp-element-button):active {
  transform: translateY(0) scale(.98);
  transition-duration: 120ms;
}
body.overlandzone-v34.oz-motion-ready :is(.oz-button, .oz-text-link, .oz-brand-rail__all,
  .oz-modcap__family-link, .oz-modcap__text-link) > .oz-icon,
body.overlandzone-v34.oz-motion-ready .oz-category-card__copy > .oz-icon {
  transition: transform 420ms var(--oz-motion-out);
}

/* Existing separators become a quiet directional cue on equipment links. */
body.overlandzone-v34.oz-motion-ready .oz-category-card__copy {
  position: relative;
}
body.overlandzone-v34.oz-motion-ready .oz-category-card__copy::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: var(--oz-orange-dark);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  transition: transform 520ms var(--oz-motion-out);
}
body.overlandzone-v34.oz-motion-ready .oz-text-link {
  position: relative;
}
body.overlandzone-v34.oz-motion-ready .oz-text-link::after {
  content: "";
  position: absolute;
  inset: auto 0 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  transition: transform 500ms var(--oz-motion-out);
}

body.overlandzone-v34.oz-motion-ready .oz-category-card__image img {
  transition: transform 1200ms var(--oz-motion-image);
}
body.overlandzone-v34.oz-motion-ready .oz-brand-card {
  transition: border-color 380ms var(--oz-motion-out);
}
body.overlandzone-v34.oz-motion-ready :is(.oz-native-filters > summary > span:last-child,
  .oz-nav-disclosure > summary > .oz-nav-chevron) {
  transition: transform 320ms var(--oz-motion-out);
}
body.overlandzone-v34.oz-motion-ready :is(.oz-modcap__form, .oz-mobile-search,
  .oz-header-search) :is(input, select, textarea) {
  transition: border-color 180ms var(--oz-motion-out),
    background-color 180ms var(--oz-motion-out);
}

/* Existing menu CSS supplies entrance keyframes; JS owns visibility/focus. */
body.overlandzone-v34.oz-motion-ready .oz-header--refined .oz-menu > li > details > .oz-nav-panel,
body.overlandzone-v34.oz-motion-ready :is(.oz-mobile-nav__panel, .oz-nav-panel,
  .oz-header-search-panel) {
  animation-duration: 320ms;
  animation-timing-function: var(--oz-motion-out);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.overlandzone-v34.oz-motion-ready :is(.oz-button, .wp-element-button):hover {
    transform: translateY(-2px);
  }
  body.overlandzone-v34.oz-motion-ready :is(.oz-button, .wp-element-button):active {
    transform: translateY(0) scale(.98);
  }
  body.overlandzone-v34.oz-motion-ready :is(.oz-button, .oz-text-link, .oz-brand-rail__all,
    .oz-modcap__family-link, .oz-modcap__text-link):hover > .oz-icon,
  body.overlandzone-v34.oz-motion-ready .oz-category-card:hover .oz-category-card__copy > .oz-icon {
    transform: translateX(4px);
  }
  body.overlandzone-v34.oz-motion-ready .oz-category-card:hover .oz-category-card__copy::before,
  body.overlandzone-v34.oz-motion-ready .oz-text-link:hover::after {
    transform: scaleX(1);
  }
  body.overlandzone-v34.oz-motion-ready .oz-category-card:hover .oz-category-card__image img {
    transform: scale(1.025);
  }
  body.overlandzone-v34.oz-motion-ready .oz-brand-card:hover {
    border-color: var(--oz-orange-dark);
  }
}

/* A tapped link must never keep the previous desktop hover movement. */
@media (hover: none), (pointer: coarse) {
  body.overlandzone-v34.oz-motion-ready :is(.oz-button, .wp-element-button):hover,
  body.overlandzone-v34.oz-motion-ready .oz-text-link:hover > .oz-icon,
  body.overlandzone-v34.oz-motion-ready .oz-category-card:hover .oz-category-card__image img,
  body.overlandzone-v34.oz-motion-ready .woocommerce ul.products li.product:hover a img {
    transform: none;
  }
  body.overlandzone-v34.oz-motion-ready :is(.oz-button, .wp-element-button):active {
    transform: scale(.985);
  }
}

/* A finger beginning a scroll must not displace the equipment link. */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  body.overlandzone-v34.oz-motion-ready .oz-category-card:active {
    transform: none !important;
  }
}

@media (max-width: 900px) {
  body.overlandzone-v34.oz-visual-priority-release .oz-hero-crossfade[data-oz-crossfade-index="2"] img {
    object-position: 50% 47%;
  }
}

/* Focus is immediate. No transform is allowed to move a keyboard target. */
html[data-oz-motion-input="keyboard"] body.oz-motion-ready :is(.oz-button, .wp-element-button,
  .oz-text-link, .oz-category-card__image img, .oz-category-card__copy > .oz-icon,
  .oz-text-link > .oz-icon, .oz-button > .oz-icon, .oz-mobile-nav__panel,
  .oz-nav-panel, .oz-header-search-panel) {
  animation: none !important;
  transition-duration: 0s !important;
}
html[data-oz-motion-input="keyboard"] body.oz-motion-ready :is(.oz-button,
  .wp-element-button):is(:hover, :active),
html[data-oz-motion-input="keyboard"] body.oz-motion-ready :is(.oz-button,
  .oz-text-link, .oz-brand-rail__all, .oz-modcap__family-link,
  .oz-modcap__text-link):hover > .oz-icon,
html[data-oz-motion-input="keyboard"] body.oz-motion-ready .oz-category-card:hover .oz-category-card__copy > .oz-icon,
html[data-oz-motion-input="keyboard"] body.oz-motion-ready .oz-category-card:hover .oz-category-card__image img {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.overlandzone-v34.oz-motion-ready [data-oz-motion-reveal],
  body.overlandzone-v34.oz-motion-ready [data-oz-motion-image] img,
  body.overlandzone-v34.oz-motion-ready [data-oz-motion-settle] img {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  body.overlandzone-v34.oz-motion-ready :is(.oz-button, .wp-element-button,
    .oz-category-card__image img, .oz-text-link > .oz-icon, .oz-button > .oz-icon,
    .oz-category-card__copy > .oz-icon) {
    transform: none !important;
    transition-duration: 0s !important;
  }
  body.overlandzone-v34.oz-motion-ready .oz-header::after,
  body.overlandzone-v34.oz-motion-ready .oz-category-card__copy::before,
  body.overlandzone-v34.oz-motion-ready .oz-text-link::after {
    transition: none !important;
  }
  body.overlandzone-v34 .oz-hero-crossfade {
    display: none !important;
  }
}
