/* A silent monochrome film behind the existing homepage introduction. */
html .page-home .hero-home.has-background-video {
  --home-video-top: 100px;
  background: #eceeed;
  color: var(--ink);
}

html .page-home .has-background-video :is(.hero-poster, .hero-video) {
  position: absolute;
  inset: var(--home-video-top) 0 0 auto;
  width: 75%;
  height: calc(100% - var(--home-video-top));
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 60% 50%;
  filter: grayscale(1) brightness(1.08) contrast(.85);
  opacity: 1;
  pointer-events: none;
  z-index: -2;
}

html .page-home .hero-home.has-background-video::after {
  background: linear-gradient(90deg, #f4f5f4 0%, #f4f5f4fa 30%, #f4f5f4e6 50%, #f4f5f4a3 72%, #f4f5f442 100%);
  z-index: -1;
}

html .page-home .has-background-video .hero-copy {
  position: relative;
  z-index: 1;
}

html .page-home .has-background-video .hero-copy h1,
html .page-home .has-background-video .hero-title-top {
  color: var(--ink);
}

html .page-home .has-background-video .hero-title-accent {
  color: var(--accent-ink);
}

html .page-home .has-background-video .hero-copy > p.hero-affiliation {
  color: #4b5860;
}

html .page-home .has-background-video .hero-copy .hero-description {
  color: #344047;
}

html .page-home .has-background-video .hero-copy a.button-secondary {
  border-color: #58636b;
  color: var(--ink);
  background: #ffffff66;
}

html .page-home .has-background-video .hero-copy a.button-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #ffffffb3;
}

.hero-video-toggle {
  position: absolute;
  right: max(36px, calc((100% - 1144px) / 2));
  bottom: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #192329;
  font: 600 .875rem / 1.3 var(--sans);
  letter-spacing: .01em;
  cursor: pointer;
}

.hero-video-toggle:hover {
  color: var(--accent-ink);
}

.video-control-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.hero-video-toggle[data-paused="false"] .video-play-icon,
.hero-video-toggle[data-paused="true"] .video-pause-icon {
  display: none;
}

.hero-video-toggle:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 4px;
}

.hero-video-toggle[hidden] {
  display: none !important;
}

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

@media (max-width: 640px) {
  html .page-home .hero-home.has-background-video {
    --home-video-top: 96px;
    padding-bottom: 96px;
  }

  html .page-home .has-background-video :is(.hero-poster, .hero-video) {
    width: 100%;
    object-position: 60% 50%;
  }

  html .page-home .hero-home.has-background-video::after {
    background: linear-gradient(90deg, #f4f5f4ed 0%, #f4f5f4e6 48%, #f4f5f4c7 100%);
  }

  html .page-home .has-background-video .hero-copy a.button-secondary {
    background: transparent;
    color: var(--ink);
  }

  .hero-video-toggle {
    right: 22px;
    bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html .page-home .has-background-video .hero-video {
    display: none;
  }
}
