/* Shared finishing layer: accessibility states without altering the art direction. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

:where(button, input, textarea, select):disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.video-container-large,
.video-container-copy {
  position: relative;
  overflow: hidden;
}

.video-container-large > .case-study-video,
.video-container-copy > .case-study-video {
  z-index: 1;
  background: #111;
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  :is(#video1, #video2, #video3),
  :is(#video-container-1, #video-container-2, #video-container-3),
  :is(.project-wrapper-1, .project-wrapper-2, .project-wrapper-3) .blurred-background {
    will-change: opacity, transform;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
  }

  :is(.project-wrapper-1:hover #video1, .project-wrapper-2:hover #video2, .project-wrapper-3:hover #video3),
  :is(.project-wrapper-1:hover #video-container-1, .project-wrapper-2:hover #video-container-2, .project-wrapper-3:hover #video-container-3) {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  :is(.project-wrapper-1:hover, .project-wrapper-2:hover, .project-wrapper-3:hover) .blurred-background {
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
