.bum-hero-rotator,
.bum-hero-rotator * {
  box-sizing: border-box;
}

.bum-hero-video,
.bum-hero-video * {
  box-sizing: border-box;
}

.bum-hero-rotator {
  width: 100%;
  margin: 0;
  color: #fff;
  font-family: "Sora", sans-serif;
  text-align: center;
}

.bum-hero-rotator__heading {
  width: 100%;
  margin: 0;
  color: inherit;
  font-family: "Sora", sans-serif;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-align: center;
}

.bum-hero-rotator__lead,
.bum-hero-rotator__viewport,
.bum-hero-rotator__phrase {
  display: block;
  width: 100%;
}

.bum-hero-rotator__viewport {
  position: relative;
  min-height: 1.2em;
}

/*
 * Keep the first phrase in normal flow until JavaScript has measured it with
 * the real Sora font. This prevents a cold font load from briefly trapping a
 * two-line phrase inside a one-line viewport.
 */
.bum-hero-rotator__viewport:not(.is-ready) {
  height: auto !important;
  transition: none;
}

.bum-hero-rotator__viewport.is-ready {
  transition: height 300ms ease;
}

.bum-hero-rotator__viewport.is-ready .bum-hero-rotator__phrase {
  position: absolute;
  inset: 0 0 auto;
}

.bum-hero-rotator__phrase {
  white-space: normal;
  overflow-wrap: break-word;
  text-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
}

.bum-hero-rotator__phrase.is-leaving {
  opacity: 0;
  transform: translateY(-0.12em);
}

.bum-hero-rotator__phrase.is-entering {
  opacity: 0;
  transform: translateY(0.12em);
  transition: none;
}

.bum-hero-rotator__measure {
  position: absolute !important;
  inset: 0 0 auto !important;
  z-index: -1;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transform: none !important;
  transition: none !important;
}

/* LOW-POWER / AUTOPLAY FALLBACK */

.bum-hero-video {
  position: relative;
  background-color: #182217 !important;
  background-image: url("../images/bum-hero-first-frame.jpg") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/*
 * Keep Safari's native paused-video overlay out of the hero. The configured
 * Elementor fallback image remains visible until real playback has begun.
 */
.bum-hero-video video {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 220ms ease !important;
}

.bum-hero-video.bum-hero-video--is-playing video {
  opacity: 1 !important;
}

.bum-hero-video video::-webkit-media-controls,
.bum-hero-video video::-webkit-media-controls-panel,
.bum-hero-video video::-webkit-media-controls-start-playback-button,
.bum-hero-video video::-webkit-media-controls-overlay-play-button,
.bum-hero-video video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
}

.bum-hero-video button.bum-hero-video__play {
  position: absolute;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 20;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 10px 15px !important;

  color: #2d2d2d !important;
  background: rgba(255, 249, 233, 0.9) !important;
  border: 1px solid rgba(45, 45, 45, 0.28) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  font-family: "Karla", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;

  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition:
    background-color 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
}

.bum-hero-video button.bum-hero-video__play[hidden] {
  display: none !important;
}

.bum-hero-video button.bum-hero-video__play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.bum-hero-video button.bum-hero-video__play:hover {
  color: #2d2d2d !important;
  background: #fff9e9 !important;
  transform: translateY(-1px);
}

.bum-hero-video button.bum-hero-video__play:focus-visible {
  outline: 3px solid #78a848 !important;
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .bum-hero-rotator__heading {
    font-size: 35px;
    line-height: 1.2;
  }

  .bum-hero-video button.bum-hero-video__play {
    right: 14px;
    bottom: 14px;
    padding: 9px 13px !important;
    font-size: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bum-hero-rotator__viewport,
  .bum-hero-rotator__phrase,
  .bum-hero-video video,
  .bum-hero-video button.bum-hero-video__play {
    transition: none !important;
  }
}
