/* The existing photograph stays visible until a video frame is playing. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.hero.video-ready .hero-video { opacity: 1; }

.hero-video-toggle {
  position: absolute;
  top: 20px;
  right: 5%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #ffffff80;
  border-radius: 0;
  background: #132321d9;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.hero-video-toggle:hover { background: #132321; }
.hero-video-toggle:focus-visible { outline: 3px solid #d6ad78; outline-offset: 4px; }
.hero-video-toggle[hidden], .hero-video-toggle [hidden] { display: none; }
.hero-video-toggle svg { flex-shrink: 0; }

/* Preserve the portrait framing beside the copy on wider screens. */
@media (min-width: 801px) {
  .hero-video {
    left: auto;
    width: 62%;
    max-width: 960px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%);
    mask-image: linear-gradient(90deg, transparent, #000 18%);
  }
}

@media (max-width: 800px) {
  .hero-video-toggle { top: 12px; right: 7%; }
  .hero.video-ready .hero-shade {
    background: linear-gradient(90deg, #102020cc, #12221e44),
      linear-gradient(180deg, #10202055, transparent 65%),
      linear-gradient(0deg, #101b1bcc, transparent 40%);
  }
  .hero.video-ready .hero-copy { text-shadow: 0 1px 8px #0005; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; transition: none; }
  .hero-video-toggle { display: none; }
}
