/* Original photographs with scene-specific cinemagraph motion. */
.hero-motion .hero-scene { z-index:1; transition:opacity .9s ease,visibility .9s; pointer-events:none; }
.hero-motion .hero-cinema { position:absolute; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:0; }
.hero-motion[data-cinema="ready"] .hero-cinema { opacity:1; }
.hero-motion[data-cinema="ready"] .hero-scene img { opacity:0; animation:none !important; }
.hero-motion .hero-scene img { filter:none; transform:none; }
.hero-motion .hero-film { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 20%; opacity:0; }
.hero-motion .is-video-ready .hero-film { opacity:1; }
.hero-motion .is-video-ready img { opacity:0; }
.hero-motion .scene-caption { bottom:96px; }
.hero-motion .hero-controls { right:auto; width:min(calc(100% - 76px),340px); gap:18px; }
.hero-motion .scene-dots button { position:relative; width:36px; height:44px; padding:21px 0; }
.hero-motion .scene-dots button::before { height:2px; background:#ffffff55; }
.hero-motion .scene-dots button::after {
  content:""; position:absolute; top:21px; left:0; width:100%; height:2px;
  background:white; transform:scaleX(0); transform-origin:left;
}
.hero-motion .scene-dots button.is-active::after { transform:scaleX(var(--scene-progress,0)); }
.hero-motion[data-motion="paused"] .scene-dots button.is-active::after { transform:scaleX(1); }
.hero-motion .scene-pause { flex:0 0 44px; width:44px; height:44px; }
.hero-motion .scene-count { white-space:nowrap; }
@media(max-width:900px) {
  .hero-motion .hero-controls { width:calc(100% - 52px); max-width:340px; }
}
@media(max-width:600px) {
  .hero-motion .hero-film { object-position:center center; }
  .hero-motion .hero-controls { width:calc(100% - var(--gutter)*2); gap:12px; }
  .hero-motion .scene-caption { bottom:96px; }
}
@media(prefers-reduced-motion:reduce) {
  .hero-motion .hero-scene { transition:none; }
  .hero-motion .hero-scene img { animation:none !important; transform:none; filter:none; }
}

/* Preserve the reels' full frames, including their animated typography. */
.hero-motion .hero-reel-scene { background: #080808; }
.hero-motion .hero-reel-scene .hero-film,
.hero-motion .hero-reel-scene > img {
  position: absolute; inset: 0 0 auto; width: 100%; height: calc(100% - 170px);
  object-fit: contain; object-position: center; transform: none;
}
.hero-motion .hero-reel-scene::after { display: none; }
.hero-motion .hero-reel-scene .scene-sound {
  position: absolute; z-index: 3; top: 22px; right: 24px;
  min-height: 44px; padding: 10px 15px; border: 1px solid #ffffff55;
  background: #080808cc; color: #fff; font: inherit; font-size: 11px;
  border-radius: 24px; pointer-events: auto; cursor: pointer; visibility: hidden;
}
.hero-motion .hero-reel-scene.is-video-ready .scene-sound { visibility: visible; }
.hero-motion .hero-reel-scene .scene-sound:hover { border-color: #fff; }
.hero-motion .hero-reel-scene .scene-sound:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media(max-width:600px) {
  .hero-motion .hero-reel-scene .scene-sound { top: 12px; right: var(--gutter); }
}
