/* R118: the hero's film and two original architectural studies. */
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__scene{
  position:absolute; inset:0; opacity:0; pointer-events:none;
  transition:none; z-index:0;
}
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__scene[data-active="true"]{ opacity:1; z-index:2 }
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__scene[data-leaving="true"]{ opacity:1; z-index:1 }
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__scene:not(.hero__scene--film) img,
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__scene-video{
  object-position:50% 54%;
}
/* R121: the shared rail marks, horizontal and clearer over the stone floor. */
.hero__controls{
  position:absolute; right:var(--space-3); bottom:var(--space-3);
  z-index:4;
  display:flex; align-items:center;
  min-width:0;
  max-width:calc(100% - 2 * var(--space-3));
  gap:var(--space-3);
  color:var(--shell);
  filter:none;
}
.hero__controls .rail__step{ color:inherit }
/* The same thin rail marks, reversed over photography for contrast. */
.hero__controls .rail__mark::before,
.hero__controls .rail__mark::after{ background:var(--shell) }
.hero__controls[hidden]{ display:none }
.hero__marker-stack{
  min-width:0;
  flex:0 1 auto;
  width:calc(var(--hero-count, 3) * var(--mark-w) + (var(--hero-count, 3) - 1) * var(--mark-gap));
}
.hero__pause{ flex-shrink:0 }
.hero__pause .hero__play-icon{ display:none }
.hero__pause[data-paused="true"] .hero__pause-icon{ display:none }
.hero__pause[data-paused="true"] .hero__play-icon{ display:block }
@media(prefers-reduced-motion:reduce){ :root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__scene{ transition:none } }

/* R123: paint the curtain immediately. The film supplies the motion itself. */
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .enter .hero__frame {
  animation:none;
  clip-path:none;
}
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .enter .hero__frame img,
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .enter .hero__frame video {
  animation:none;
  transform:none;
}
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__frame video {
  transition:none;
}

/* Preserve the selected pavilion crop without an inline style blocked by CSP. */
:root[data-lane="property"] .hero__scene[data-hero-slide="1"] img{ object-position:50% 76% }

/* Pavilion still: retain furniture in the wide desktop frame. */
:root[data-lane="property"] .hero__scene[data-hero-slide="1"] img{
  object-position:50% 76%;
}

/* Real images occupy the shared native rail and follow the hand. */
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__frame{ touch-action:auto; user-select:none; -webkit-user-select:none }
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__track{
  position:absolute; inset:0; width:100%; height:100%; display:flex; overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:auto;
  touch-action:pan-x pan-y pinch-zoom;
}
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__track::-webkit-scrollbar{ display:none }
:root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__track > .hero__scene{
  position:relative; inset:auto; flex:0 0 100%; width:100%; min-width:0; height:100%;
  pointer-events:auto; opacity:1; z-index:auto;
  scroll-snap-align:start; scroll-snap-stop:always;
}
@media(hover:hover) and (pointer:fine){
  :root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__track{ cursor:grab }
  :root:is([data-lane="property"], [data-lane="product"], [data-lane="art"]) .hero__track[data-grabbed]{ cursor:grabbing }
}

:root[data-lane="property"] .hero__scene[data-hero-slide="1"] video{ object-position:50% 76% }

/* Give the macaw headroom in wide, shallow desktop hero frames. */
:root[data-lane="property"] .hero__scene[data-hero-slide="2"] img,
:root[data-lane="property"] .hero__scene[data-hero-slide="2"] video{ object-position:60% 30% }


/* Opt-in mobile art direction: preserve furniture silhouettes and film framing. */
@media(max-width:40em){
  .screen:has(.hero__frame[data-hero-mobile="landscape"]){min-height:0}
  .hero:has([data-hero-mobile="landscape"]){flex:none;padding-bottom:1.5rem}
  .hero__plate:has([data-hero-mobile="landscape"]){flex:none;margin-top:0;gap:.7rem}
  .hero__plate:has([data-hero-mobile="landscape"]) .hero__caption{min-height:0;justify-content:space-between;gap:1rem}
  /* Rodrigo 2026-10-06: every homepage hero is 3:4 on phones, never so tall that the slide bullets fall below the fold. */
  .hero__frame[data-hero-mobile="landscape"]{flex:none;min-height:0;aspect-ratio:3/4;max-height:calc(100svh - 300px)}
  [data-hero-mobile="landscape"] .hero__controls{right:.65rem;bottom:.65rem;gap:.75rem}
}

[data-hero-motion] picture{overflow:hidden}
:root[data-lane="product"] .hero__scene[data-shot-id="pipeline-airport"] :is(img,video){ object-position:50% 60% }
:root[data-lane="product"] .hero__scene[data-shot-id="tanguor"] :is(img,video){ object-position:50% 60% }
:root[data-lane="product"] .hero__scene[data-shot-id="caon-modulo"] :is(img,video){ object-position:50% 55% }
:root[data-lane="product"] .hero__scene[data-shot-id="argyle-original"] :is(img,video){ object-position:50% 0% }
:root[data-lane="product"] .hero__scene[data-shot-id="habitat-white"] :is(img,video){ object-position:50% 60% }
:root[data-lane="product"] .hero__scene[data-shot-id="apparel"] :is(img,video){ object-position:50% 65% }
:root[data-lane="product"] .hero__scene[data-shot-id="hangman"] :is(img,video){ object-position:50% 50% }
@media(max-width:40em){
:root[data-lane="product"] .hero__scene[data-shot-id="pipeline-airport"] :is(img,video){ object-position:50% 60% }
:root[data-lane="product"] .hero__scene[data-shot-id="tanguor"] :is(img,video){ object-position:68% 50% }
:root[data-lane="product"] .hero__scene[data-shot-id="caon-modulo"] :is(img,video){ object-position:50% 50% }
:root[data-lane="product"] .hero__scene[data-shot-id="argyle-original"] :is(img,video){ object-position:50% 50% }
:root[data-lane="product"] .hero__scene[data-shot-id="habitat-white"] :is(img,video){ object-position:50% 60% }
:root[data-lane="product"] .hero__scene[data-shot-id="apparel"] :is(img,video){ object-position:50% 67% }
:root[data-lane="product"] .hero__scene[data-shot-id="hangman"] :is(img,video){ object-position:50% 50% }
}
