.mhs-hero {
  --mhs-overlay: rgba(0, 0, 0, 0.42);
  --mhs-image-y: 50%;
  --mhs-arrow-side: 28px;
  --mhs-arrow-top: 50%;
  --mhs-bullet-size: 10px;
  --mhs-page-color: rgba(255, 255, 255, 0.48);
  --mhs-page-active: #fff;
  --mhs-duration: 700ms;
  --mhs-delay: 6000ms;
  position: relative;
  width: 100%;
  height: 720px;
  min-height: 300px;
  color: #fff;
  isolation: isolate;
  outline: none;
}

.mhs-viewport,
.mhs-track,
.mhs-slide {
  width: 100%;
  height: 100%;
}

.mhs-viewport {
  position: relative;
  overflow: hidden;
  background: #171717;
  touch-action: pan-y;
}

.mhs-track {
  display: flex;
  transition: transform var(--mhs-duration) cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.mhs-slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
}

.mhs-effect-fade .mhs-track {
  display: block;
  transition: none;
}

.mhs-effect-fade .mhs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mhs-duration) ease, visibility 0s linear var(--mhs-duration);
  z-index: 0;
}

.mhs-effect-fade .mhs-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  z-index: 1;
}

.mhs-slide__media,
.mhs-slide__image,
.mhs-slide__overlay,
.mhs-slide__inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mhs-hero .mhs-slide__media {
  display: block;
  overflow: hidden;
}

.mhs-hero .mhs-slide__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  object-fit: cover !important;
  object-position: 50% var(--mhs-image-y);
  transform: scale(1.001);
}

.mhs-slide__overlay {
  background: var(--mhs-slide-overlay, var(--mhs-overlay));
  pointer-events: none;
}

.mhs-slide__inner {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 64px;
}

.mhs-slide__content {
  width: 100%;
  max-width: 820px;
  text-align: var(--mhs-text-align, center);
}

.mhs-theme-light { color: #fff; }
.mhs-theme-dark { color: #111; }

.mhs-eyebrow {
  margin: 0 0 16px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mhs-title {
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(42px, 6.4vw, 96px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
}

.mhs-desc {
  margin: 0 0 30px;
  color: inherit;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.55;
}

.mhs-desc > :first-child { margin-top: 0; }
.mhs-desc > :last-child { margin-bottom: 0; }

.mhs-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--mhs-button-align, center);
  gap: 14px;
}

.mhs-button {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 50px;
  padding: 14px 27px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.mhs-button:hover { transform: translateY(-2px); }
.mhs-button:focus-visible,
.mhs-arrow:focus-visible,
.mhs-bullet:focus-visible,
.mhs-toggle:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.mhs-button--primary { color: #111; background: #fff; }
.mhs-button--primary:hover,
.mhs-button--primary:focus-visible { color: #fff; background: #111; }
.mhs-button--secondary { color: #fff; border-color: currentColor; background: transparent; }
.mhs-theme-dark .mhs-button--secondary { color: #111; }
.mhs-button--secondary:hover,
.mhs-button--secondary:focus-visible { color: #111; background: #fff; }

.mhs-arrow,
.mhs-toggle,
.mhs-bullet {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mhs-arrow {
  position: absolute;
  z-index: 5;
  top: var(--mhs-arrow-top);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,.18);
  font-size: 22px;
  transform: translateY(-50%);
  transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}

.mhs-arrow:hover { background: rgba(0,0,0,.52); transform: translateY(-50%) scale(1.06); }
.mhs-arrow--prev { left: var(--mhs-arrow-side); }
.mhs-arrow--next { right: var(--mhs-arrow-side); }
.mhs-arrow[disabled] { cursor: not-allowed; opacity: .35; }
.mhs-arrow svg { width: 1em; height: 1em; fill: currentColor; }

.mhs-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: calc(100% - 40px);
  transform: translateX(-50%);
}

.mhs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  max-width: 70vw;
  gap: 10px;
  color: var(--mhs-page-active);
}

.mhs-bullet {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: calc(var(--mhs-bullet-size) + 12px);
  height: calc(var(--mhs-bullet-size) + 12px);
  background: transparent;
}

.mhs-bullet span {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--mhs-page-color);
  transition: background-color .25s ease, transform .25s ease;
}

.mhs-bullet.is-active span {
  background: var(--mhs-page-active);
  transform: scale(1.22);
}

.mhs-pagination--lines .mhs-bullet {
  flex: 1 1 48px;
  width: auto;
  height: calc(var(--mhs-bullet-size) + 12px);
}

.mhs-pagination--lines .mhs-bullet span {
  top: 6px;
  right: 0;
  bottom: auto;
  left: 0;
  height: var(--mhs-bullet-size);
  border-radius: 999px;
  transform: none;
}

.mhs-pagination--lines .mhs-bullet.is-active span { background: var(--mhs-page-active); }

.mhs-pagination--fraction {
  width: auto;
  min-width: 80px;
  font-variant-numeric: tabular-nums;
}

.mhs-current { font-size: 1.35em; font-weight: 700; }

.mhs-pagination--progress { height: 20px; }
.mhs-progress {
  display: block;
  width: 100%;
  height: max(2px, var(--mhs-bullet-size));
  overflow: hidden;
  border-radius: 999px;
  background: var(--mhs-page-color);
}
.mhs-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--mhs-page-active);
  transform: scaleX(0);
  transform-origin: left center;
}
.mhs-progress__fill.is-running { animation: mhs-progress var(--mhs-delay) linear forwards; }

.mhs-toggle {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: transparent;
  font-size: 17px;
}
.mhs-toggle__play { display: none; }
.mhs-toggle.is-paused .mhs-toggle__pause { display: none; }
.mhs-toggle.is-paused .mhs-toggle__play { display: inline-flex; }
.mhs-toggle svg { width: 1em; height: 1em; fill: currentColor; }

.mhs-has-ken-burns .mhs-slide.is-active .mhs-slide__image {
  animation: mhs-ken-burns calc(var(--mhs-delay) + var(--mhs-duration)) ease-out both;
}

.mhs-hero.is-autoplay-paused .mhs-progress__fill,
.mhs-hero.is-autoplay-paused.mhs-has-ken-burns .mhs-slide.is-active .mhs-slide__image {
  animation-play-state: paused;
}

@keyframes mhs-ken-burns { from { transform: scale(1.001); } to { transform: scale(1.09); } }
@keyframes mhs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 767px) {
  .mhs-slide__inner { padding: 42px 24px 80px; }
  .mhs-title { font-size: clamp(36px, 12vw, 58px); }
  .mhs-buttons { width: 100%; }
  .mhs-buttons .mhs-button { max-width: 100%; }
  .mhs-arrow { width: 42px; height: 42px; }
  .mhs-controls { bottom: 22px; }
  .mhs-pagination { max-width: 62vw; }
}

@media (prefers-reduced-motion: reduce) {
  .mhs-track,
  .mhs-slide,
  .mhs-slide__image,
  .mhs-button,
  .mhs-arrow,
  .mhs-bullet span { animation: none !important; transition-duration: .01ms !important; }
  .mhs-progress__fill.is-running { animation: none !important; transform: scaleX(1); }
  .mhs-toggle { display: none; }
}
