/* Each clean film fills its own natural-ratio stage. No duplicate image,
   blurred wings, nonuniform scale, or invented surrounding scenery. */
:is(#hero,.phead)[data-responsive-intro] {
  --intro-selected-aspect: var(--intro-desktop-aspect);
  display: block;
  position: relative;
  height: auto;
  min-height: 0;
  padding: 88px 0 0;
  background: #171511;
  isolation: isolate;
  overflow: clip;
}
:is(#hero,.phead)[data-responsive-intro] > .responsive-intro-media {
  position: relative;
  inset: auto;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--intro-active-aspect, var(--intro-selected-aspect));
  overflow: hidden;
  background: none;
  transform: none;
  filter: none;
  pointer-events: none;
}
:is(#hero,.phead)[data-responsive-intro] :is(.intro-picture,.intro-picture img,video) {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
  filter: none;
}
:is(#hero,.phead)[data-responsive-intro]::before,
:is(#hero,.phead)[data-responsive-intro] > .bp { display: none; }
:is(#hero,.phead)[data-responsive-intro] .intro-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
  opacity: .46;
  transition: opacity 250ms ease;
  pointer-events: none;
}
/* Match the stage selector's ID specificity so the film stays fully bright.
   The existing ended handler releases this rule and starts the 250ms fade. */
:is(.home-intro-enabled,.villa-intro-enabled,.scene-intro-enabled)
:is(#hero,.phead)[data-responsive-intro]:is(
  [data-home-state="pending"], [data-home-state="playing"],
  [data-villa-state="pending"], [data-villa-state="playing"],
  [data-scene-state="pending"], [data-scene-state="playing"]
) .intro-shade { opacity: 0; }
:is(#hero,.phead)[data-responsive-intro]:is([data-home-state="complete"], [data-villa-state="complete"], [data-scene-state="complete"]) .intro-shade { transition-delay: 100ms; }
.phead[data-responsive-intro] > .wrap {
  position: absolute;
  z-index: 2;
  top: calc(88px + clamp(120px,16vw,240px));
  left: 0;
  right: 0;
}
#hero[data-responsive-intro] > .hero-in {
  position: absolute;
  z-index: 2;
  inset: 160px 0 auto;
  padding: 0 var(--gutter);
}
#hero[data-responsive-intro] > .hero-stats { z-index: 2; bottom: 26px; }
@media (min-width:1101px) and (min-aspect-ratio:21/10) {
  :is(#hero,.phead)[data-responsive-intro] { --intro-selected-aspect:var(--intro-wide-aspect); }
}
/* Tablets and phones retain a safe image above their existing copy. The film
   stage stays full-width and edge-to-edge; this is a separate content section. */
@media (max-width:1100px) {
  :is(#hero,.phead)[data-responsive-intro] > :is(.wrap,.hero-in,.hero-stats) {
    position: relative;
    inset: auto;
    z-index: 2;
    transform: none;
  }
  .phead[data-responsive-intro] > .wrap { padding-block: 32px 42px; }
  #hero[data-responsive-intro] > .hero-in { padding: 32px var(--gutter) 30px; }
  #hero[data-responsive-intro] > .hero-stats { padding: 0 0 34px; }
}
@media (min-width:601px) and (max-width:1100px) and (orientation:portrait) {
  :is(#hero,.phead)[data-responsive-intro] { --intro-selected-aspect:var(--intro-tablet-aspect); }
}
@media (max-width:600px) and (orientation:portrait) {
  :is(#hero,.phead)[data-responsive-intro] { --intro-selected-aspect:var(--intro-mobile-aspect); }
}
@media (prefers-reduced-motion:reduce) {
  :is(#hero,.phead)[data-responsive-intro] .intro-shade { transition:none; }
}
html[data-a11y-rm] :is(#hero,.phead)[data-responsive-intro] .intro-shade { transition:none; }
