/* Video trial is gated by .hero-video-enabled; removing it restores the PSD view. */
.hero-video-scene {
  display: none;
}

.hero.hero-video-enabled {
  --hero-video-nav-clearance: 82px;
  --hero-video-size: 102.6375%; /* Previous 97.75% display size enlarged by 5%. */
  position: relative;
  display: block;
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  background: #000;
}

/* Keep a pure black background without a gradient over the video. */
.hero-video-enabled::before,
.hero-video-enabled::after,
.hero-video-enabled .hero-video-scene::before,
.hero-video-enabled .hero-video-scene::after,
.hero-video-enabled .hero-video-media::before,
.hero-video-enabled .hero-video-media::after {
  content: none;
  display: none;
}

.hero-video-enabled > .hero-static-scene:not(.hero-video-scene),
.hero-video-enabled > .hero-media,
.hero-video-enabled > .hero-grid,
.hero-video-enabled > .hero-topline,
.hero-video-enabled > .hero-content {
  display: none;
}

.hero-video-enabled > .hero-video-scene {
  position: absolute;
  inset: var(--hero-video-nav-clearance) 0 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: calc(100% - var(--hero-video-nav-clearance));
  margin: 0;
  max-width: none;
  aspect-ratio: auto;
  transform: none;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}

.hero-video-enabled .hero-video-media {
  position: absolute;
  inset: auto;
  left: calc((100% - var(--hero-video-size)) / 2);
  /* Preserve the previous contained frame's bottom, not its letterbox bottom.
     54.984375 = 97.75 * 9 / 16; these values anchor position only. */
  bottom: calc((100cqh - min(97.75cqh, 54.984375cqw)) / 2);
  width: var(--hero-video-size);
  height: var(--hero-video-size);
  margin: 0;
  transform: none;
  z-index: 0;
}

/* Match every visual backing; keep all existing geometry unchanged. */
.hero-video-enabled > .hero-video-scene,
.hero-video-enabled .hero-video-media {
  background: #000;
  border: 0;
  box-shadow: none;
}

.hero-video-enabled .hero-video-media {
  /* Lets the mask follow the contained 16:9 frame, not its letterbox area. */
  container-type: size;
}

.hero-video-enabled .hero-video-media > video,
.hero-video-enabled .hero-video-media > .hero-video-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
  opacity: 1;
  mask-image: none;
  mix-blend-mode: normal;
}

.hero-video-enabled .hero-video-media > video {
  z-index: 1;
  border: 0;
  box-shadow: none;
  /* Narrow fades protect the bear's sign and JOYBOY's waving hand. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-size: min(100cqw, 177.777778cqh) 100%;
  mask-size: min(100cqw, 177.777778cqh) 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Otherwise the unfaded fallback image would show through the video edges. */
.hero-video-enabled .hero-video-media:not(.is-fallback) > .hero-video-poster {
  visibility: hidden;
}

.hero-video-enabled .hero-video-media.is-fallback > video {
  visibility: hidden;
}

.hero-video-enabled .hero-video-copy {
  position: absolute;
  z-index: 2;
  top: calc(var(--hero-header-height, 82px) + 24px);
  left: calc(max(0px, (100% - var(--max-width)) / 2) + var(--page-pad));
  right: calc(max(0px, (100% - var(--max-width)) / 2) + var(--page-pad));
  display: grid;
  gap: 10px;
  justify-items: start;
  color: #00dae4;
  text-align: left;
}

.hero-video-copy .hero-video-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.4;
}

.hero-video-copy h1 {
  margin: 0;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 3px 9px rgb(0 0 0 / 18%);
}

.hero-video-copy .hero-video-subtitle {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-video-copy {
  display: none;
}

.hero-video-enabled > .hero-footer {
  position: absolute;
  z-index: 2;
  inset: auto var(--page-pad) 34px;
  margin: 0;
  padding: 0;
}

.hero-video-enabled .hero-motion-plane,
.hero-video-enabled .hero-motion-plane * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

@media (max-width: 700px) {
  .hero.hero-video-enabled {
    --hero-video-nav-clearance: 60px;
    min-height: 680px;
  }
  .hero-video-enabled .hero-video-copy {
    top: 84px; /* Existing 60px mobile navigation + 24px clearance. */
    gap: 8px;
  }
  .hero-video-copy .hero-video-kicker {
    font-size: 12px;
  }
  .hero-video-copy h1 {
    font-size: clamp(24px, 7vw, 32px);
  }
  .hero-video-copy .hero-video-subtitle {
    font-size: 12px;
  }
}
