/* A quiet frame for the studio's moving moments; the original artwork remains the fallback. */
.ocean-home-video {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 37px 75px 37px 37px;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.ocean-home-art.has-video .ocean-home-video { opacity: 1; }
.ocean-home-art .ocean-art-note { z-index: 2; }

.ocean-video-toggle {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: #153f57;
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  cursor: pointer;
}

.ocean-video-toggle[hidden] { display: none; }
.ocean-video-toggle:hover { background: #205c78; }
.ocean-video-toggle:focus-visible { outline: 3px solid #ffdf7f; outline-offset: 3px; }
.ocean-video-toggle svg { width: 15px; height: 15px; flex: none; }
.ocean-video-toggle .ocean-video-pause { display: none; }
.ocean-video-toggle.is-playing .ocean-video-pause { display: block; }
.ocean-video-toggle.is-playing .ocean-video-play { display: none; }

@media (max-width: 560px) {
  .ocean-home-video { border-radius: 23px 45px 23px 23px; }
  .ocean-video-toggle { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .ocean-home-video { transition: none; }
}
