/* Keep the supplied landscape video intact throughout the pinned scroll scene. */
.h-hero {
  --hero-native-width: 1920px;
  --hero-open-width: min(100vw, 177.777778vh, var(--hero-native-width));
  --hero-final-width: min(48vw, 135.111111vh, var(--hero-native-width));
  --hero-final-left: 4vw;
}
@supports (height: 1svh) {
  .h-hero {
    --hero-open-width: min(100vw, 177.777778svh, var(--hero-native-width));
    --hero-final-width: min(48vw, 135.111111svh, var(--hero-native-width));
  }
}
.h-hero__frame, .h-hero__vbtn {
  --hero-width: calc(var(--hero-open-width) + var(--t, 1) * (var(--hero-final-width) - var(--hero-open-width)));
  --hero-height: calc(var(--hero-width) * 0.5625);
  --hero-left: calc((100vw - var(--hero-open-width)) / 2 * (1 - var(--t, 1)) + var(--t, 1) * var(--hero-final-left));
  --hero-top: calc((100% - var(--hero-height)) / 2);
}
.h-hero__frame {
  inset: auto;
  left: var(--hero-left);
  top: var(--hero-top);
  width: var(--hero-width);
  height: var(--hero-height);
  aspect-ratio: 16 / 9;
  clip-path: none;
  border-radius: calc(var(--t, 1) * var(--r-frame));
  background: #000;
}
.h-hero__frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.h-hero__vbtn {
  left: calc(var(--hero-left) + 16px);
  bottom: calc(100% - var(--hero-top) - var(--hero-height) + 16px);
}
/* Restore the mobile scroll movement and resizing without a portrait crop.
   The final frame sits above the copy; reduced-motion users retain its still state. */
@media (max-width: 767px) {
  .h-hero { --hero-native-width: 1280px; --hero-final-width: min(88vw, var(--hero-native-width)); --hero-final-left: 6vw; }
  .h-hero__frame, .h-hero__vbtn {
    --hero-top: calc((100% - var(--hero-height)) / 2 * (1 - var(--t, 1)) + 18% * var(--t, 1));
  }
}
