/* Subject-aware hero framing; the other story surfaces show the complete still. */
.hero .hp-band{aspect-ratio:auto;background:var(--ink)!important}
.hero .hp-band>.hp-push{position:relative!important;inset:auto!important;aspect-ratio:2.39/1;max-width:1280px;margin:0 auto}
.hero .hp-band>div:nth-child(2){display:none}
.hero .hp-band>div:last-child{position:relative!important;inset:auto!important;padding:30px 40px 34px!important}
.hero .hp-hero-row{gap:28px}
.hero .hp-up{gap:16px!important}
.hero #hp-h1{font-size:clamp(44px,5vw,76px)!important}
.hero .hp-up>p{font-size:18px!important;max-width:45ch!important}
img[src*="/remix_06_clean_cast/"]{--scene-focus:50% 0%}
img[src$="eot_frame_03.webp"]{--scene-focus:50% 50%}
.hero .hp-band .story_reel_frame img{object-position:var(--scene-focus,50% 50%)}
.hero .hp-band .story_reel_frame:is([data-scene="6"],[data-scene="12"],[data-scene="15"]) img{object-fit:contain;background:var(--ink)}

/* A frame and its caption each get their own space on the back of a card. */
#shape .hp-card .hp-flip>span:last-child{display:flex;flex-direction:column;background:var(--ink)!important}
#shape .hp-card img{flex:1;min-height:0;height:0!important;object-fit:contain!important;object-position:center center}
#shape .hp-card .frame_caption{position:static;flex:none;gap:5px;padding:10px 12px 12px;background:var(--ink)}
/* Render one face at a time, avoiding mirrored text from mobile 3D compositing. */
#shape .hp-card{perspective:none!important}
#shape .hp-card .hp-flip{transform:none!important;transform-style:flat!important;transition:none!important}
#shape .hp-card .hp-flip>span{display:none!important;transform:none!important}
#shape .hp-card:not([aria-pressed=true]) .hp-flip>span:first-child,
#shape .hp-card[aria-pressed=true] .hp-flip>span:last-child{display:flex!important;animation:sceneFaceReveal .18s ease-out}
@keyframes sceneFaceReveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
 #shape .hp-card .hp-flip>span{animation:none!important}
}
.journey_steps img{height:auto;max-height:none;aspect-ratio:auto;object-fit:contain}

/* Storyboard, world and trailer examples preserve the whole composition. */
.output_storyboard img,.pitch_choices img,.sequence_choices img,.output_world_nodes img{aspect-ratio:3/2;object-fit:contain;background:var(--ink)}
.output_monitor{aspect-ratio:auto}
.output_monitor>img{position:relative;inset:auto;display:block;width:100%;height:auto;object-fit:contain}
.output_monitor>div{position:relative;inset:auto;padding:16px 20px;background:var(--ink)}
.output_monitor span{position:static;align-self:flex-start;margin-bottom:8px}
.pitch_people>img{position:relative;inset:auto;display:block;width:100%;height:auto;object-fit:contain}
.pitch_people>div{min-height:0;padding:20px 24px;background:var(--ink)}
.pitch_people h4{margin:8px 0 12px}

@media(max-width:760px){
 .hero .hp-band>.hp-push{aspect-ratio:4/5}
 .hero .hp-band>div:last-child{padding:24px 20px 6px!important}
 .hero #hp-h1{font-size:clamp(40px,11.5vw,60px)!important}
 .hero .hp-up>p{font-size:16px!important}
 .hero .hp-band .story_reel_frame:is([data-scene="3"],[data-scene="6"]) img{object-fit:cover}
 .hero .hp-band .story_reel_frame:is([data-scene="6"],[data-scene="7"]) img{object-position:40% top}
 .hero .hp-band .story_reel_frame:is([data-scene="12"],[data-scene="15"]) img{object-fit:contain;object-position:center center;background:var(--ink)}
}
