.wmx-scroll-hero {
  --wmx-progress: 0;
  --wmx-content-opacity: 1;
  --wmx-content-shift: 0px;
  --wmx-scroll-height: 380;
  --wmx-object-x: 50%;
  --wmx-object-y: 50%;
  position: relative;
  z-index: 0;
  width: 100vw;
  max-width: 100vw;
  height: calc(var(--wmx-scroll-height) * 1vh);
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  background: #0c1112;
  color: #fff;
  isolation: isolate;
}

.wmx-scroll-hero *,
.wmx-scroll-hero *::before,
.wmx-scroll-hero *::after {
  box-sizing: border-box;
}

.wmx-scroll-hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #0c1112;
}

.admin-bar .wmx-scroll-hero__sticky {
  top: 32px;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
}

.wmx-scroll-hero__media,
.wmx-scroll-hero__poster,
.wmx-scroll-hero__video,
.wmx-scroll-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wmx-scroll-hero__media {
  z-index: 0;
  overflow: hidden;
  background: #0c1112;
}

.wmx-scroll-hero__poster,
.wmx-scroll-hero__video {
  display: block;
  object-fit: cover;
  object-position: var(--wmx-object-x) var(--wmx-object-y);
}

.wmx-scroll-hero__poster {
  z-index: 0;
  opacity: 1;
  transform: scale(1.01);
  transition: opacity 450ms ease;
}

.wmx-scroll-hero__video {
  z-index: 1;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 450ms ease;
  will-change: opacity;
}

.wmx-scroll-hero.is-ready .wmx-scroll-hero__video {
  opacity: 1;
}

.wmx-scroll-hero.is-ready .wmx-scroll-hero__poster {
  opacity: 0;
}

.wmx-scroll-hero.has-error .wmx-scroll-hero__video,
.wmx-scroll-hero.is-reduced-motion .wmx-scroll-hero__video {
  display: none;
}

.wmx-scroll-hero.has-error .wmx-scroll-hero__poster,
.wmx-scroll-hero.is-reduced-motion .wmx-scroll-hero__poster {
  opacity: 1;
}

.wmx-scroll-hero__shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 10, 11, 0.72) 0%, rgba(3, 10, 11, 0.42) 31%, rgba(3, 10, 11, 0.08) 63%, transparent 82%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 42%, rgba(0, 0, 0, 0.22) 100%);
}

.wmx-scroll-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: min(100% - 48px, 1440px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(84px, 10vh, 140px) 0 clamp(72px, 9vh, 112px);
  pointer-events: none;
}

.wmx-scroll-hero__content {
  width: min(690px, 54vw);
  opacity: var(--wmx-content-opacity);
  transform: translate3d(0, var(--wmx-content-shift), 0);
  pointer-events: auto;
  will-change: opacity, transform;
}

.wmx-scroll-hero__content:focus-within {
  opacity: 1;
  transform: none;
}

.wmx-scroll-hero--center .wmx-scroll-hero__inner {
  justify-content: center;
  text-align: center;
}

.wmx-scroll-hero--right .wmx-scroll-hero__inner {
  justify-content: flex-end;
  text-align: right;
}

.wmx-scroll-hero__eyebrow {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: clamp(0.7rem, 0.65rem + 0.2vw, 0.84rem);
  font-weight: 650;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.wmx-scroll-hero__title {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(3rem, 2rem + 4.1vw, 7.1rem);
  font-weight: 430;
  letter-spacing: -0.052em;
  line-height: 0.94;
  text-wrap: balance;
}

.wmx-scroll-hero--center .wmx-scroll-hero__title {
  margin-right: auto;
  margin-left: auto;
}

.wmx-scroll-hero--right .wmx-scroll-hero__title {
  margin-left: auto;
}

.wmx-scroll-hero__text {
  max-width: 570px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-family: inherit;
  font-size: clamp(1rem, 0.92rem + 0.31vw, 1.25rem);
  font-weight: 390;
  line-height: 1.58;
  text-wrap: pretty;
}

.wmx-scroll-hero--center .wmx-scroll-hero__text {
  margin-right: auto;
  margin-left: auto;
}

.wmx-scroll-hero--right .wmx-scroll-hero__text {
  margin-left: auto;
}

.wmx-scroll-hero__text p {
  margin: 0;
}

.wmx-scroll-hero__cta {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 34px;
  padding: 14px 22px 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  background: rgba(9, 16, 17, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.wmx-scroll-hero__cta:hover,
.wmx-scroll-hero__cta:focus-visible {
  border-color: #fff;
  color: #0c1112;
  background: #fff;
  transform: translateY(-2px);
}

.wmx-scroll-hero__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.wmx-scroll-hero__cta-icon {
  font-size: 1.2em;
  line-height: 0;
}

.wmx-scroll-hero__scroll-hint {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4vw, 72px);
  bottom: clamp(36px, 5vh, 64px);
  display: flex;
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.73rem;
  font-weight: 560;
  letter-spacing: 0.12em;
  line-height: 1.25;
  opacity: var(--wmx-content-opacity);
  text-transform: uppercase;
}

.wmx-scroll-hero__scroll-line {
  position: relative;
  display: block;
  width: 48px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.34);
}

.wmx-scroll-hero__scroll-line::after {
  position: absolute;
  inset: 0;
  content: '';
  background: #fff;
  animation: wmx-scroll-line 1.9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  transform: translateX(-105%);
}

.wmx-scroll-hero__progress {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.wmx-scroll-hero__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, #d9c5a1 100%);
  transform: scaleX(var(--wmx-progress));
  transform-origin: left center;
  will-change: transform;
}

@keyframes wmx-scroll-line {
  0% { transform: translateX(-105%); }
  50%, 100% { transform: translateX(105%); }
}

@media (max-width: 782px) {
  .admin-bar .wmx-scroll-hero__sticky {
    top: 46px;
    height: calc(100vh - 46px);
    height: calc(100dvh - 46px);
  }
}

@media (max-width: 767px) {
  .wmx-scroll-hero {
    height: 300vh;
  }

  .wmx-scroll-hero__inner {
    align-items: flex-end;
    width: min(100% - 36px, 1440px);
    padding-top: 96px;
    padding-bottom: 104px;
  }

  .wmx-scroll-hero__content {
    width: 100%;
  }

  .wmx-scroll-hero__title {
    max-width: 12ch;
    font-size: clamp(2.7rem, 14vw, 4.8rem);
  }

  .wmx-scroll-hero__text {
    max-width: 38rem;
    margin-top: 20px;
    font-size: 1rem;
  }

  .wmx-scroll-hero__cta {
    min-height: 50px;
    margin-top: 26px;
  }

  .wmx-scroll-hero__shade {
    background:
      linear-gradient(180deg, rgba(2, 8, 9, 0.08) 0%, rgba(2, 8, 9, 0.12) 35%, rgba(2, 8, 9, 0.78) 100%),
      linear-gradient(90deg, rgba(2, 8, 9, 0.2), transparent 75%);
  }

  .wmx-scroll-hero__scroll-hint {
    right: 18px;
    bottom: 42px;
    max-width: 48vw;
    font-size: 0.64rem;
  }

  .wmx-scroll-hero__scroll-line {
    width: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wmx-scroll-hero {
    height: 100vh;
    height: 100svh;
  }

  .wmx-scroll-hero__poster,
  .wmx-scroll-hero__video,
  .wmx-scroll-hero__cta {
    transition: none;
  }

  .wmx-scroll-hero__scroll-hint,
  .wmx-scroll-hero__progress {
    display: none;
  }

  .wmx-scroll-hero__scroll-line::after {
    animation: none;
  }
}
