.moc-motion-hero-wrap {
  --moc-motion-progress: 0;
  --moc-motion-content-shift: 0px;
  --moc-motion-runway: clamp(150px, 20svh, 220px);
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .moc-motion-hero-wrap { overflow-x: hidden; }
}

.moc-motion-hero {
  position: relative;
  z-index: 2;
  top: auto;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  transform: translateZ(0);
}

.moc-motion-hero .mo-b2b-home-hero__inner {
  min-height: inherit;
}

.moc-motion-animating .moc-motion-hero {
  position: sticky;
  top: 0;
}

body.admin-bar .moc-motion-animating .moc-motion-hero { top: 32px; }

.moc-motion-hero__scroll-space {
  display: none;
  height: var(--moc-motion-runway);
  background: linear-gradient(180deg, #081a12 0%, #12382a 58%, #f5efdf 100%);
  pointer-events: none;
}

.moc-motion-animating .moc-motion-hero__scroll-space { display: block; }

.moc-motion-hero-wrap .mo-b2b-home-hero__facts {
  position: relative;
  z-index: 4;
}

.moc-motion-hero__scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
  background:
    radial-gradient(circle at 78% 14%, rgba(248, 240, 215, .96) 0 8%, rgba(221, 205, 170, .48) 24%, transparent 48%),
    radial-gradient(ellipse at 69% 82%, rgba(132, 169, 80, .24), transparent 34%),
    linear-gradient(108deg, #06150f 0%, #0c291e 42%, #5d705c 65%, #d5c6a5 83%, #f1e8cf 100%);
}

.moc-motion-hero__stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  transform: translateZ(0);
}

.moc-motion-hero__video {
  position: absolute;
  z-index: 1;
  display: block;
  height: 108%;
  width: auto;
  max-width: none !important;
  right: clamp(280px, 25vw, 455px);
  top: -4%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  filter: saturate(.96) contrast(1.03);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 13%, #000 87%, transparent 100%);
  transition: opacity 480ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity;
}

.moc-motion-hero__fallback {
  position: absolute;
  z-index: 0;
  display: block;
  width: clamp(320px, 32vw, 500px);
  height: auto;
  right: clamp(310px, 27vw, 490px);
  bottom: -8%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 32px 30px rgba(3, 17, 11, .28));
  transform: translate3d(0, 0, 0) scale(.98);
  transform-origin: 50% 84%;
  transition: opacity 380ms ease-out, transform 480ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.moc-motion-hero__fallback-pouch {
  position: absolute;
  z-index: 2;
  display: block;
  width: clamp(250px, 22vw, 380px);
  height: auto;
  right: clamp(24px, 5vw, 94px);
  bottom: 4%;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 30px 28px rgba(3, 17, 11, .25));
  transform: translate3d(0, 0, 0) rotate(1deg);
  transition: opacity 380ms ease-out, transform 480ms cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.moc-motion-hero__light,
.moc-motion-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.moc-motion-hero__light {
  z-index: 2;
  background:
    radial-gradient(circle at 69% 39%, rgba(202, 231, 137, .25), transparent 28%),
    linear-gradient(118deg, transparent 42%, rgba(255, 248, 220, .11) 58%, transparent 73%);
  opacity: var(--moc-motion-light-opacity, .58);
}

.moc-motion-hero__grain {
  z-index: 3;
  background:
    repeating-linear-gradient(117deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, rgba(3, 18, 11, .25), transparent 50%);
  mix-blend-mode: soft-light;
  opacity: .72;
}

.moc-motion-hero__progress {
  position: absolute;
  z-index: 5;
  display: flex;
  width: 148px;
  height: 28px;
  right: clamp(22px, 3vw, 52px);
  top: 50%;
  align-items: center;
  gap: 10px;
  color: rgba(16, 43, 34, .72);
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
  pointer-events: none;
}

.moc-motion-hero__progress::before {
  height: 1px;
  flex: 1;
  background: rgba(16, 43, 34, .22);
  content: "";
}

.moc-motion-hero__progress i {
  position: absolute;
  width: calc(100% - 82px);
  height: 2px;
  left: 0;
  top: 13px;
  background: #739f45;
  transform: scaleX(var(--moc-motion-progress));
  transform-origin: left center;
  will-change: transform;
}

.moc-motion-hero__progress b {
  flex: none;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  white-space: nowrap;
}

.moc-motion-animating.moc-motion-ready .moc-motion-hero__video { opacity: .92; }

.moc-motion-animating.moc-motion-ready .moc-motion-hero__fallback {
  opacity: 0;
  transform: translate3d(0, 6px, 0) scale(.99);
}

.moc-motion-ready .mo-b2b-home-hero__content {
  transform: translate3d(0, var(--moc-motion-content-shift), 0);
  will-change: transform;
}

.moc-motion-failed .moc-motion-hero,
.moc-motion-static .moc-motion-hero {
  position: relative;
  top: auto !important;
}

.moc-motion-failed .moc-motion-hero__scroll-space,
.moc-motion-static .moc-motion-hero__scroll-space { display: none; }

.moc-motion-failed .moc-motion-hero__video,
.moc-motion-static .moc-motion-hero__video { opacity: 0 !important; }

.moc-motion-failed .moc-motion-hero__fallback,
.moc-motion-static .moc-motion-hero__fallback,
.moc-motion-failed .moc-motion-hero__fallback-pouch,
.moc-motion-static .moc-motion-hero__fallback-pouch {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(.98) !important;
}

@media (max-width: 1100px) {
  .moc-motion-hero__video { right: 19vw; }

  .moc-motion-hero__fallback {
    width: clamp(330px, 42vw, 520px);
    right: 19vw;
  }
}

@media (max-width: 782px) {
  body.admin-bar .moc-motion-animating .moc-motion-hero { top: 46px; }
}

@media (max-width: 749px) {
  .moc-motion-hero-wrap {
    --moc-motion-runway: clamp(130px, 18svh, 180px);
  }

  .moc-motion-hero__scroll-space {
    height: var(--moc-motion-runway);
  }

  .moc-motion-hero__scene {
    background:
      radial-gradient(circle at 71% 9%, rgba(247, 239, 214, .94) 0 7%, rgba(220, 205, 171, .42) 23%, transparent 44%),
      linear-gradient(180deg, #d7c9aa 0%, #7c896f 37%, #173f31 64%, #071810 100%);
  }

  .moc-motion-hero__video {
    width: 100%;
    height: 57%;
    right: auto;
    top: 0;
    object-fit: cover;
    object-position: center 39%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  }

  .moc-motion-hero__fallback {
    width: min(66vw, 390px);
    right: 22vw;
    top: -3%;
    bottom: auto;
  }

  .moc-motion-hero__fallback-pouch {
    width: min(42vw, 240px);
    right: -8vw;
    top: 6%;
    bottom: auto;
  }

  .moc-motion-hero__light {
    background: radial-gradient(circle at 68% 20%, rgba(202, 231, 137, .23), transparent 29%);
    opacity: .5;
  }

  .moc-motion-hero__progress { display: none; }
  .moc-motion-animating.moc-motion-ready .moc-motion-hero__video { opacity: .92; }
  .moc-motion-ready .mo-b2b-home-hero__content { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .moc-motion-hero {
    position: relative;
    top: auto !important;
    transform: none !important;
  }

  .moc-motion-hero__scroll-space { display: none !important; }
  .moc-motion-hero__video { opacity: 0 !important; transition: none !important; }

  .moc-motion-hero__fallback,
  .moc-motion-hero__fallback-pouch {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(.98) !important;
    transition: none !important;
  }

  .moc-motion-hero__progress { display: none !important; }
  .moc-motion-hero-wrap .mo-b2b-home-hero__content { transform: none !important; }
}
