/* Homepage product tour: the hero video, looping and muted until the visitor turns the music on. */
.home-tour-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #12281f;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.home-tour-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-tour-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(18, 40, 31, 0.72);
  cursor: pointer;
}

.home-tour-toggle:hover {
  background: rgba(18, 40, 31, 0.88);
}

.home-tour-toggle:focus-visible {
  outline: 3px solid #f6b726;
  outline-offset: 3px;
}

.home-tour-icon {
  width: 22px;
  height: 22px;
}

.home-tour-icon--pause,
.home-tour-toggle[data-playing="true"] .home-tour-icon--play {
  display: none;
}

.home-tour-toggle[data-playing="true"] .home-tour-icon--pause {
  display: block;
}

.home-tour-sound {
  right: 76px;
}

.home-tour-fullscreen {
  right: 136px;
}

.home-tour-icon--collapse,
.home-tour-fullscreen[data-open="true"] .home-tour-icon--expand {
  display: none;
}

.home-tour-fullscreen[data-open="true"] .home-tour-icon--collapse {
  display: block;
}

/* Full screen: the whole film on black, never cropped. */
.home-tour-frame:fullscreen {
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

.home-tour-frame:fullscreen .home-tour-video {
  object-fit: contain;
}

.home-tour-icon--sound,
.home-tour-sound[aria-pressed="true"] .home-tour-icon--muted {
  display: none;
}

.home-tour-sound[aria-pressed="true"] .home-tour-icon--sound {
  display: block;
}


@media (max-width: 700px) {
  .home-tour-frame {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
  }
}

/* In the hero the figure already supplies the rounded card and shadow. */
.hero-launch-video .home-tour-frame {
  border-radius: 0;
  box-shadow: none;
}

/* The tour carries readable captions, so on wide screens it gets the larger share of the hero. */
@media (min-width: 761px) {
  .hero-launch-grid:has(.hero-launch-video) {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.32fr);
  }

  /* Keep the brand line on its two beats next to the wider video. */
  .hero-launch-grid:has(.hero-launch-video) .hero-launch-intro h1 {
    font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  }
}
