.art-hero-motion {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 49%; opacity: 0; pointer-events: none;
}
.gallery-images > .art-hero-motion { z-index: auto; }
.art-hero-motion[data-presented] { opacity: 1; }
.art-motion-tools {
  position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(1.25rem, 3vw, 3rem);
  display: grid; justify-items: end; gap: .35rem; max-width: min(18rem, 80vw);
}
.showcase .art-motion-tools { bottom: calc(4.4rem + 1rem); }
.art-motion-action {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .55rem .85rem;
  background: #12232ce8; color: #fffaed; border: 1px solid #c8af8a; border-radius: 0;
  font: 500 .94rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.art-motion-action:hover { background: #253a43; }
.art-motion-action:focus-visible { outline: 2px solid #fff4ce; outline-offset: 3px; }
.art-motion-icon { display: block; width: .82rem; height: .82rem; position: relative; }
.art-motion-icon::after {
  content: ''; position: absolute; left: .15rem; top: .1rem; border-style: solid;
  border-width: .31rem 0 .31rem .48rem; border-color: transparent transparent transparent currentColor;
}
[data-motion="playing"] .art-motion-icon::after {
  top: .10rem; left: .09rem; width: .52rem; height: .63rem;
  border: 0; border-inline: .15rem solid currentColor;
}
[data-motion="loading"] .art-motion-icon::after { inset: .14rem; border: 0; background: currentColor; }
.art-motion-message:empty { display: none; }
.art-motion-message:not(:empty) { padding: .5rem .7rem; color: #fffaed; background: #12232c; font: 400 .91rem/1.35 var(--sans); }
.art-residence-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; margin: 1.2rem 0 0 1rem; color: #fff8ed; text-decoration: underline; text-underline-offset: .28em; }
@media (max-width: 760px), (max-width: 1000px) and (orientation: portrait) {
  .art-hero > .art-hero-motion { top: var(--art-header); height: var(--art-window); }
  .art-hero-motion { object-position: 73% 49%; }
  .art-hero .art-motion-tools {
    inset: auto .75rem auto auto; top: calc(var(--art-header) + var(--art-window) - 3.5rem);
  }
  .art-motion-message:not(:empty) { position: absolute; bottom: calc(100% + .3rem); right: 0; width: min(16rem, 75vw); }
}
@media (max-width: 420px) {
  .art-residence-link { margin: .45rem .8rem 0 0; }
  .tour-bar:has([href="#prologue"]) nav { gap: .6rem; }
}

/* The scroll itself is the transport. The play control remains available in stills mode. */
[data-scroll-motion].art-hero .art-motion-tools,
.hero-scroll[data-scroll-motion] .art-motion-tools { display: none; }
.scroll-art { transition: opacity .18s linear; }
/* Later gallery pictures are decoded on demand and can follow the video in DOM order. */
.gallery-images > .art-hero-motion { z-index: 1; }
.art-hero .gallery-images::after { z-index: 2; }
