/* Only the generated walkthrough replaces the bottom storefront treatment. */
/* Preserve the full-width overlapping Studio composition and correct the shallow crop. */
@media(min-width:701px){
 body[data-cinematic-direction=studio] #shop>.in{width:100%;max-width:1600px;margin-inline:auto}
 body[data-cinematic-direction=studio] #shop .plate:nth-child(1){width:100vw;max-width:none;justify-self:center}
 body[data-cinematic-direction=studio] #shop .plate:nth-child(2){height:auto;aspect-ratio:4/3;align-self:start}
}
/* Wide cinematic stage preserves the portrait film instead of cropping off the cut. */
@media(min-width:701px){
 body[data-cinematic-direction] #social{padding:0;overflow:hidden;background:#08090a}
 body[data-cinematic-direction] #social>.in{position:relative;isolation:isolate;width:calc(100% - 12vw);max-width:1040px;margin:0 auto;padding:0;height:clamp(620px,78svh,800px);display:block;background:#08090a}
 #social .mid{position:static;margin:0;padding:0;text-align:left}
 #social .mid .eyebrow{position:absolute;z-index:2;left:0;top:23%;margin:0}
 #social .mid h2{position:absolute;z-index:2;left:0;top:31%;width:48%;max-width:9ch;margin:0;font-size:clamp(50px,5.6vw,80px);line-height:1.02;text-align:left;text-shadow:none}
 #social .mid>p:not(.eyebrow){position:absolute;z-index:2;left:0;top:60%;max-width:42%;margin:0;font-size:18px;line-height:1.5;text-align:left}
 body[data-cinematic-direction] #social .shop-film{position:absolute;top:32px;bottom:32px;left:auto;right:0;width:48%;height:calc(100% - 64px);max-width:none;margin:0;border:0;background:transparent;scale:none!important}
 #social .shop-film video{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;object-position:center}
 #social .shop-film::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(0deg,#08090a99,transparent 25%)}
 #social .shop-film-tools{position:absolute;z-index:3;left:50%;right:auto;transform:translateX(-50%);bottom:20px;width:230px;padding:0;background:none;gap:12px}
 #social .shop-film-tools button{min-height:44px;padding:10px 16px;background:#08090aaa;border:1px solid #ffffff4d;border-radius:999px;color:#fff;font-size:12px}
 #social .shop-film-time{display:none}
 #social .shop-film-progress{z-index:3}
 body[data-cinematic-direction] #social .soc-wrap{position:absolute;z-index:3;left:0;top:72%;margin:0;padding:0}
 #social .soc-links{margin:0;justify-content:flex-start;gap:12px}
}
/* Mobile shop film: original copy floats above the portrait footage. */
@media(max-width:700px){
 body[data-cinematic-direction] #social{padding:0;overflow:hidden}
 body[data-cinematic-direction] #social>.in{position:relative;isolation:isolate;width:100%;max-width:none;padding:0;height:calc(100svh - var(--barh) - var(--mbarh));min-height:580px}
 #social .shop-film::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#000b 0%,#0005 25%,transparent 47%,#0003 65%,#000d 100%)}
 #social .mid{position:static;margin:0;padding:0;text-align:left}
 #social .mid .eyebrow{position:absolute;z-index:2;top:28px;left:24px;margin:0}
 #social .mid h2{position:absolute;z-index:2;top:62px;left:24px;width:calc(100% - 48px);max-width:310px;margin:0;font-size:clamp(34px,10vw,44px);line-height:1.04;text-shadow:0 2px 18px #0006}
 #social .mid>p:not(.eyebrow){position:absolute;z-index:2;left:24px;right:24px;bottom:88px;margin:0;font-size:15px;line-height:1.5;text-shadow:0 2px 12px #000}
 #social .shop-film{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;border:0;background:#08090a;scale:none!important}
 #social .shop-film video{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center}
 #social .shop-film-tools{position:absolute;z-index:3;bottom:20px;left:20px;right:auto;width:auto;gap:8px;padding:0;background:transparent;border:0}
 #social .shop-film-tools button{min-height:44px;padding:8px 10px;font-size:11px;background:#08090a99;border:1px solid #ffffff4d;border-radius:999px;color:#fff}
 #social .shop-film-time{display:none}
 #social .shop-film-progress{position:absolute;z-index:3;bottom:0;left:0;right:0}
 #social .soc-wrap{position:absolute;z-index:3;bottom:20px;right:20px;margin:0;padding:0;border:0}
 #social .soc-links{gap:4px;margin:0}
 #social .soc-links a{width:40px;height:44px;padding:10px;background:transparent;border:0}
}
/* A quiet still-image interlude before the moving shop walkthrough. */
body[data-chair-preview] #house{height:auto;min-height:0;padding:0}
body[data-chair-preview] #house>.in{position:relative;top:auto;height:auto;min-height:clamp(680px,58vw,900px);padding:90px 7vw;display:flex;align-items:center;justify-content:flex-start}
body[data-chair-preview] #house .house-copy{width:38%;max-width:510px;background:none;padding:0}
body[data-chair-preview] #house .art-frame>img{visibility:visible;opacity:1;filter:none;object-fit:cover;object-position:65% center}
body[data-chair-preview] #house>.in::after{background:linear-gradient(90deg,#000b,transparent 62%)}
@media(min-width:701px){
 body[data-chair-preview] #house .house-photo,body[data-chair-preview] #house .art-frame{background:#000}
 body[data-chair-preview] #house .art-frame>img{object-fit:contain;object-position:right bottom}
}
@media(max-width:700px){
 body[data-chair-preview] #house>.in{min-height:850px;padding:54px 7vw 430px;align-items:flex-start}
 body[data-chair-preview] #house .house-copy{width:100%;max-width:440px}
 body[data-chair-preview] #house .house-photo{top:260px;height:calc(100% - 260px)}
 body[data-chair-preview] #house .art-frame>img{object-position:72% center}
 body[data-chair-preview] #house>.in::after{background:linear-gradient(#000 0%,#000d 27%,transparent 53%)}
}
#walkthrough-frames{display:none}
#find.sequence-ready #walkthrough-frames{display:block;position:relative;width:100%;height:100%}
#find.sequence-ready #walkthrough-frames img,#find.sequence-ready #walkthrough-frames canvas{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
#find.sequence-ready #walkthrough-frames canvas{visibility:hidden}
#find.sequence-ready #walkthrough-frames.has-frame canvas{visibility:visible}
#find.sequence-ready #walkthrough-frames.has-frame img{visibility:hidden}
#find.sequence-ready #walkthrough-video{display:none}
body[data-cinematic-direction] #find{height:auto;min-height:0;overflow:visible;background:#08090a}
body[data-cinematic-direction] #find>.in{position:relative;top:0;height:auto;min-height:0;max-width:none;padding:60px 6vw;overflow:hidden;display:flex;flex-direction:column;gap:32px}
body[data-cinematic-direction] #find>.in::after{display:none}
#find .walkthrough-media{position:relative;width:100%;margin:0;background:#08090a;z-index:0}
#find .walkthrough-media video{display:block;width:100%;height:auto;object-fit:contain;background:#08090a}
#find .mid,#find .find-locations{position:relative;z-index:1}
#find .find-locations{margin-top:0}
body[data-cinematic-direction] #find.scrub-ready{height:295vh;height:295svh}
body[data-cinematic-direction] #find.scrub-ready>.in{position:sticky;top:0;height:100vh;height:100svh;min-height:0;padding:calc(var(--barh) + 24px) 6vw 36px;justify-content:space-between}
#find.scrub-ready .walkthrough-media{position:absolute;inset:0;height:100%;pointer-events:none}
#find.scrub-ready .walkthrough-media video{height:100%;width:100%;object-fit:contain}
#find.scrub-ready .mid{align-self:flex-start;max-width:70%;text-shadow:0 2px 24px #000}
#find.scrub-ready h2{font-size:clamp(32px,4.4vw,68px)}
#find.scrub-ready .find-locations{max-width:650px;text-shadow:0 2px 15px #000}
#find.scrub-ready .mid::before,#find.scrub-ready .find-locations::before{content:"";position:absolute;inset:-30px;z-index:-1;background:radial-gradient(ellipse,#08090a99,transparent 72%);pointer-events:none}
@media(max-width:700px){
 body[data-cinematic-direction] #find.scrub-ready>.in{padding:calc(var(--barh) + 20px) 7vw calc(var(--mbarh) + 24px);gap:20px;justify-content:flex-start}
 #find.scrub-ready .walkthrough-media{position:relative;inset:auto;flex:1 1 auto;min-height:0;max-height:52svh;width:calc(100% + 14vw);margin:0 -7vw;overflow:hidden}
 #find.sequence-ready.scrub-ready #walkthrough-frames img,#find.sequence-ready.scrub-ready #walkthrough-frames canvas{object-fit:cover;object-position:center}
 #find.scrub-ready .mid{max-width:100%}
 #find.scrub-ready .mid .eyebrow{margin-bottom:12px}
 #find.scrub-ready h2{font-size:clamp(32px,9vw,40px);margin:0}
 #find.scrub-ready .find-locations{max-width:100%;flex:0 0 auto}
 #find.scrub-ready .find-locations p{max-width:34ch;font-size:14px;line-height:1.5;margin:0}
 #find.scrub-ready .find-locations .btn{display:none}
 #find.scrub-ready .mid::before,#find.scrub-ready .find-locations::before{display:none}
}
/* Keep the film visible on short landscape screens; the tall stage exits naturally. */
@media(max-width:700px) and (max-height:500px){
 body[data-cinematic-direction] #find.scrub-ready{min-height:1534px}
 body[data-cinematic-direction] #find.scrub-ready>.in{height:520px;min-height:520px}
}
@media(prefers-reduced-motion:reduce){
 body[data-cinematic-direction] #find.scrub-ready{height:auto}
 body[data-cinematic-direction] #find.scrub-ready>.in{position:relative;height:auto;min-height:0}
 #find.scrub-ready .walkthrough-media{position:relative;height:auto;pointer-events:auto}
 #find.scrub-ready .walkthrough-media video{height:auto}
}

/* Minimal film sound control; playback remains automatic. */
#social .shop-film-tools [data-film-play],#social .shop-film-time{display:none}
#social .shop-film-tools{left:20px;right:auto;transform:none;width:auto}
#social .shop-film-tools [data-film-sound]{position:relative;width:44px;height:44px;padding:0;font-size:0;border-radius:50%}
#social [data-film-sound]::before{content:"";position:absolute;inset:11px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M11 5 6 9H3v6h3l5 4V5m4 4 6 6m0-6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
#social [data-film-sound][aria-pressed=true]::before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M11 5 6 9H3v6h3l5 4V5m4 3a6 6 0 0 1 0 8m3-11a10 10 0 0 1 0 14'/%3E%3C/svg%3E")}

/* Fill wide desktop screens without letterboxing the walkthrough. */
@media(min-width:701px){
 body[data-cinematic-direction] #find.scrub-ready>.in{width:100%;max-width:none}
 #find.sequence-ready #walkthrough-frames img,#find.sequence-ready #walkthrough-frames canvas,#find.scrub-ready .walkthrough-media video{object-fit:cover;object-position:center}
}
