/* Mountain West motion mock — plain CSS for Duda Head HTML.
   Does not change wording, layout, photos, colors, or the header widget.
   Add with mw-motion.js. Respects prefers-reduced-motion. */
:root {
  --mw-gold: #D4A24C;
  --mw-navy: #0A1633;
  --mw-kb: 0;
}


/* Safety: marked elements stay visible unless html.mw-motion-on is present. */
.mw-reveal,
.mw-chip-reveal {
  opacity: 1;
  transform: none;
}
/* If JS never runs, nothing is hidden. JS adds .mw-motion-on once observers are ready. */
.mw-motion-on .mw-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.mw-motion-on .mw-reveal.mw-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.mw-motion-on .mw-reveal.mw-d1 { transition-delay: 0.08s; }
.mw-motion-on .mw-reveal.mw-d2 { transition-delay: 0.16s; }
.mw-motion-on .mw-reveal.mw-d3 { transition-delay: 0.24s; }
.mw-motion-on .mw-reveal.mw-d4 { transition-delay: 0.32s; }

.mw-motion-on .mw-chip-reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.mw-motion-on .mw-chip-reveal.mw-in {
  opacity: 1;
  transform: none;
}
.mw-motion-on .mw-chip-reveal.mw-d1 { transition-delay: 0.1s; }
.mw-motion-on .mw-chip-reveal.mw-d2 { transition-delay: 0.2s; }
.mw-motion-on .mw-chip-reveal.mw-d3 { transition-delay: 0.3s; }

/* Ken Burns lives only on the media layer, never on type or brushes. */
.mw-kb-host {
  position: relative;
  overflow: hidden;
}
.mw-kb-bg {
  position: absolute;
  inset: -6%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  transform: scale(calc(1 + 0.07 * var(--mw-kb, 0)))
    translate3d(calc(var(--mw-kb, 0) * -1.2%), calc(var(--mw-kb, 0) * -0.8%), 0);
  transform-origin: center center;
  will-change: transform;
}
.mw-kb-host > *:not(.mw-kb-bg) { position: relative; z-index: 1; }

img.mw-kb-media {
  transform: scale(calc(1 + 0.04 * var(--mw-kb, 0)))
    translate3d(0, calc(var(--mw-kb, 0) * -0.5%), 0);
  transform-origin: center center;
  will-change: transform;
}

/* Live (non-recording) Ken Burns — paused when the media is offscreen via .mw-kb-off. */
@keyframes mw-kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.04) translate3d(0, -0.8%, 0); }
}
.mw-motion-on:not(.mw-motion-scripted) img.mw-kb-media,
.mw-motion-on:not(.mw-motion-scripted) .mw-kb-bg {
  animation: mw-kenburns 28s ease-in-out alternate infinite;
  transform: none;
}
.mw-motion-on.mw-motion-scripted img.mw-kb-media,
.mw-motion-on.mw-motion-scripted .mw-kb-bg {
  animation: none;
}
.mw-kb-off { animation-play-state: paused !important; }

/* Buttons: lift, gold glow, shine, press-scale. Header widget is excluded in JS. */
a.mw-btn,
button.mw-btn,
.mw-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform: translateZ(0);
}
.mw-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.38) 50%,
    transparent 64%
  );
  transform: translateX(-130%);
  z-index: 2;
}
.mw-btn.mw-btn-ready {
  position: relative;
  overflow: hidden; /* contain the shine sweep so it cannot widen the page */
}
@media (hover: hover) and (pointer: fine) {
  a.mw-btn:hover,
  button.mw-btn:hover,
  .mw-btn.mw-hover {
    transform: translate3d(0, -3px, 0);
    box-shadow:
      0 10px 24px rgba(10, 22, 51, 0.22),
      0 0 0 1px rgba(212, 162, 76, 0.45),
      0 0 18px rgba(212, 162, 76, 0.28);
  }
  a.mw-btn:hover .mw-shine,
  button.mw-btn:hover .mw-shine,
  .mw-btn.mw-hover .mw-shine {
    opacity: 1;
    transform: translateX(130%);
    transition: transform 0.6s ease, opacity 0.05s linear;
  }
}
a.mw-btn:active,
button.mw-btn:active,
.mw-btn.mw-pressed {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(10, 22, 51, 0.18);
}

/* Service tiles: raise + slight tilt on hover only (no layout shift). */
.mw-tile {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  transform: translateZ(0);
}
@media (hover: hover) and (pointer: fine) {
  .mw-tile:hover,
  .mw-tile.mw-hover {
    transform: translate3d(0, -8px, 0) rotate(-0.35deg);
    box-shadow: 0 16px 32px rgba(10, 22, 51, 0.18);
    z-index: 3;
  }
}
.mw-tile:active,
.mw-tile.mw-pressed {
  transform: scale(0.985);
}

@media (prefers-reduced-motion: reduce) {
  .mw-motion-on .mw-reveal,
  .mw-motion-on .mw-chip-reveal,
  .mw-motion-on .mw-reveal.mw-in,
  .mw-motion-on .mw-chip-reveal.mw-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mw-kb-bg,
  video.mw-kb-media,
  img.mw-kb-media,
  .mw-btn,
  .mw-tile,
  .mw-shine {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }
}

/* Jump to the end of reveals for stills / scripted frames that have already entered. */
.mw-motion-settle .mw-reveal,
.mw-motion-settle .mw-chip-reveal {
  transition: none !important;
}
