/* Shared viewport adaptations. Keep artwork proportions and let content grow;
   only the interactive galleries deliberately clip their moving neighbours. */
html{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);-webkit-text-size-adjust:100%;text-size-adjust:100%}
.hdr{--pt:max(20px,var(--safe-top))}
.hdr__nav{max-width:calc(100% - 24px - var(--safe-left) - var(--safe-right))}
.hdr__nav a{min-height:44px}
.hero__actions,.services__title,.services__detail,.how__header>*,.process__steps li,.team-intro__copy,.team-contact__top>*,.cs__txt{min-width:0}
.services__title h3,.process__steps h4,.team-person h2,.cs__h1,.cs__nb-t{overflow-wrap:anywhere}
.team-roster{scroll-margin-top:96px}
.team-footer nav a{display:inline-flex;align-items:center;min-height:44px}
.foot,.team-contact{padding-bottom:max(28px,var(--safe-bottom))}
.foot__mark{width:min(100%,max(200px,calc((100svh - 312px) * 2.006)))}

/* A complete navigation is available on every page, including touch galleries. */
.wg-header,.cinema-header{top:max(12px,var(--safe-top));left:max(16px,var(--safe-left))}
.wg-header nav,.cinema-header nav{align-items:center;gap:6px}
.wg-header nav a,.cinema-header nav a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding-inline:5px}
.wg-footer,.cinema-footer{left:max(16px,var(--safe-left));right:max(16px,var(--safe-right));bottom:max(16px,var(--safe-bottom))}
.wg-mode,.cinema-pause,.cinema-step{min-height:44px}
.cinema-step{width:44px;height:44px;flex:none}
.cinema-pause{opacity:1}
.wg-live .wg-stage,.cinema-live .cinema-stage{touch-action:pinch-zoom}
.wg-live .wg-grid{--wg-columns:3}
.wg-live .wg-card{width:min(29%,calc((100svh - 140px) * .7))}
.wg-card h2{overflow-wrap:anywhere}
.cinema-title{font-size:var(--fitted-title-size,clamp(23px,2.6vw,40px))}
.cinema-player__inner{padding:max(16px,var(--safe-top)) max(16px,var(--safe-right)) max(16px,var(--safe-bottom)) max(16px,var(--safe-left))}
.cinema-player__bar{min-width:0;gap:12px}
.cinema-player__bar p{min-width:0;overflow-wrap:anywhere}
.cinema-player__close{min-height:44px;flex:none}

/* Six generous touch targets fit even a 320px viewport. */
.how-globe__controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;width:min(396px,calc(100vw - 32px));gap:6px}
.how-globe__controls .how-globe__arrow{width:44px;height:44px}
.how-globe__steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;min-width:0}
.how-globe__steps button{width:100%;min-width:0;min-height:56px}
.how-globe__object{touch-action:pan-y pinch-zoom}

@media(max-width:1099px){
 .wg-header nav,.cinema-header nav{padding:3px 6px;border:1px solid #002fa710;border-radius:28px;background:#f2f0e7ed}
 .wg-header::before{content:none}
}

@media(min-width:768px) and (max-width:1100px){
 .how__header{align-items:start}
 .process__usual,.process__steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}
 .process__usual li{font-size:14px}
 .process__usual li:nth-child(2)::after{display:none}
 .process__steps::before{display:none}
 .process__steps p{max-width:34ch;font-size:15px}
 .process__steps h4{font-size:29px}
 .process__symbol{width:100px;height:100px}
 .process__wyrd-heading{align-items:start;flex-wrap:wrap;gap:12px}
 .process__closing{align-items:start;flex-wrap:wrap}
 .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .team-contact__top{flex-wrap:wrap}
}

@media(max-width:767px){
 .hero__actions{width:min(360px,calc(100% - 32px));max-width:none;gap:12px}
 .hero__action.btn{flex:1;min-width:0;--bh:47px;padding-inline:6px;font-size:clamp(10px,3vw,12px)}
 .hero__logo{top:calc(var(--hdr) + max(14px,var(--safe-top)))}
 .home-story .how__intro{max-width:100%}
 .process.copy-glass .process__steps{gap:0}
 .process__steps li{padding-left:84px}
 .process__symbol{width:68px;height:68px}
 .process__steps::before{left:34px;top:34px;bottom:80px}
 .process__steps h4{font-size:clamp(24px,6vw,29px)}
 .process__closing .story-link.btn{min-width:0;width:min(100%,240px);max-width:100%;font-size:10px}
 .how-globe__point{width:200px}
 .how-globe__point>span{font-size:clamp(23px,6vw,27px);max-width:10ch}
 .how-globe__emblem{width:80px;height:80px}
 .how-globe__hint{max-width:100%;text-align:center;font-size:10px}
 .how-globe__step-art{width:35px;height:35px}
 .how-globe__step-art svg{inset:6px;width:23px;height:23px}
 .foot__mark{width:100%}
 .team-intro h1{font-size:clamp(48px,12.6vw,88px)}
 .team-intro{min-height:min(660px,88svh);padding-top:132px;padding-bottom:120px}
 .team-footer p{max-width:25ch}
 .cs__h1{font-size:clamp(38px,11.8vw,64px)}
 .cs__nb-t{font-size:clamp(23px,6.5vw,30px)}
 .wg-header,.cinema-header{left:auto;right:max(16px,var(--safe-right))}
 .wg-header a:first-child,.wg-header a:nth-child(4),.cinema-header a:first-child,.cinema-header a:nth-child(4){display:inline-flex}
 .wg-logo,.wg-live .wg-logo,.cinema-logo,.cinema-live .cinema-logo{top:max(14px,var(--safe-top));left:max(16px,var(--safe-left));width:90px}
 .wg-live .wg-grid{--wg-columns:1}
 .wg-live .wg-card{width:min(100%,calc((100svh - 200px) * .7))}
 .wg-card__caption{left:12px;right:12px;bottom:15px}
 .wg-card h2{font-size:clamp(23px,6vw,32px)}
 .wg-index .wg-mode{color:var(--cream)}
 .cinema-title{font-size:var(--fitted-title-size,25px)}
 .cinema-footer{gap:8px}
 .cinema-controls{gap:7px}
 .cinema-pause{margin-right:0;padding-inline:10px;font-size:10px}
 .cinema-player__bar p{font-size:18px;line-height:1.25}
}

@media(max-width:599px){
 body.cinema{--mobile-poster-width:min(67.5vw,max(96px,calc((100svh - 310px - var(--safe-top) - var(--safe-bottom)) * .7)))}
 .wg-header,.cinema-header{left:max(12px,var(--safe-left));right:max(12px,var(--safe-right));top:calc(max(14px,var(--safe-top)) + 45px)}
 .wg-header nav,.cinema-header nav{justify-content:space-between;gap:0;padding:3px 6px;border:1px solid #002fa710;border-radius:28px;background:#f2f0e7ed;font-size:12px}
 .wg-header::before{content:none}
 .wg-logo,.wg-live .wg-logo,.wg-index .wg-logo,html:not(.wg-live) .wg-logo,.cinema-logo,.cinema-live .cinema-logo{width:74px}
 .wg-index .wg-grid,html:not(.wg-live) .wg-grid{padding-top:145px;width:calc(100% - 40px);max-width:390px}
 .wg-live .wg-card{width:min(100%,calc((100svh - 230px) * .7))}
 .team-grid{grid-template-columns:minmax(0,1fr);max-width:390px}
 .cinema-live .cinema-card{top:48%}
 .cinema-live .cinema-reel{--poster-w:var(--mobile-poster-width)}
 .cinema-live .cinema-titles{top:calc(48% + var(--mobile-poster-width) / 1.4 + 14px)}
}

@media(max-width:699px){.team-grid{grid-template-columns:minmax(0,1fr);max-width:390px}}

@media(max-width:599px) and (max-height:520px){.cinema-meta{display:none}}

/* Short screens use a natural document flow instead of pinning controls below
   the viewport. Both globe routes stay available through the chapter button. */
@media(max-height:620px){
 .how-globe-ready .how__journey{height:auto}
 .how-globe{position:relative;height:auto;min-height:0;padding-top:105px;padding-bottom:48px}
 .how-globe__object{height:320px}
 .how-globe__mode{display:block;min-height:44px;margin-top:20px;padding:10px 16px;border:1px solid #002fa733;border-radius:24px;background:var(--cream);color:var(--blue);font:500 13px var(--font-body)}
 .how-globe-ready .how__summary{margin-top:0;opacity:1}
 .team-intro{min-height:540px}
}
@media(max-width:767px) and (max-height:620px){
 .home-story:not(.dot-sequence-ready) .why__stage{min-height:0;padding:104px 24px 64px}
 .home-story:not(.dot-sequence-ready) .why__dot-poster{width:250px;top:315px}
 .home-story:not(.dot-sequence-ready) .why__copy{margin-top:252px;margin-bottom:0}
 .how-globe__emblem{width:78px;height:78px}
 .how-globe__point>span{font-size:25px}
 .hero{min-height:560px}
}
@media(orientation:landscape) and (max-height:620px){
 .hero{height:auto;min-height:100svh;padding:152px 24px 100px}
 .hero__logo{top:80px;width:120px}
 .hero .reel{width:min(74vw,720px);max-width:100%;--zoom:1}
 .hero__actions{bottom:30px}
 .home-story:not(.dot-sequence-ready) .why__stage{min-height:540px;padding:110px max(24px,5vw) 70px}
 .home-story:not(.dot-sequence-ready) .why__message{text-align:left}
 .home-story:not(.dot-sequence-ready) .why h2{max-width:13ch;font-size:clamp(36px,5.6vw,56px)}
 .home-story:not(.dot-sequence-ready) .why__copy{width:50%;margin:24px 0 0;font-size:14px}
 .home-story:not(.dot-sequence-ready) .why__dot-poster{width:min(40vw,360px);left:76%;top:50%}
 .wg-live .wg-grid{--wg-columns:3;width:82%}
 .wg-live .wg-card{width:min(29%,calc((100svh - 140px) * .7))}
 .wg-card h2{font-size:clamp(20px,3vw,28px)}
 .wg-card__category{font-size:9px}
 .wg-card__caption{bottom:12px}
 .wg-card__open{display:none}
}
@media(max-width:767px) and (orientation:landscape) and (max-height:500px){
 .cinema-live .cinema-reel{--poster-w:min(44vw,32svh)}
 .cinema-live .cinema-card{top:44%}
 .cinema-live .cinema-titles{top:auto;bottom:calc(max(12px,var(--safe-bottom)) + 52px);height:40px;--title-line:30px}
 .cinema-titles__window{inset:4px 16px}
 .cinema-title{font-size:var(--fitted-title-size,23px)}
 .cinema-meta{display:none}
 .cinema-footer{bottom:max(10px,var(--safe-bottom))}
}
@media(max-width:359px){
 .hdr__nav a{font-size:11px;padding-inline:9px}
 .hero__actions{gap:10px}
 .hero__action.btn{--bh:44px;font-size:10px}
 .services{--service-media:86px}
 .services__row{gap:12px}
 .services__title p{font-size:10px}
 .home-story .process.copy-glass{padding-inline:14px}
 .process__steps li{padding-left:78px}
 .process__steps h4{font-size:24px}
 .cinema-controls{gap:5px}
 .cinema-pause{padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){
 .home-story:not(.dot-sequence-ready) .why__stage{min-height:0}
 .how-globe__controls button{transition:none}
}
