/* Mobile shell: a single owner for the menu, opening composition and request dock. */
.ss-mobile-controls,.ss-menu-chevron{display:none}
#ss-mobile-menu{display:none;position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#fff8e8;color:#271544;font:inherit;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto}
#ss-mobile-menu[open]{display:block}
#ss-mobile-menu::backdrop{background:#271544b8}
#ss-mobile-menu .ss-menu-heading{position:sticky;inset-block-start:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(20px,env(safe-area-inset-right)) 12px max(20px,env(safe-area-inset-left));padding-block-start:max(12px,env(safe-area-inset-top));background:#271544;color:#fff8e8}
#ss-mobile-menu .ss-menu-heading strong{min-width:0;font-size:19px;line-height:1.3}
#ss-mobile-menu .ss-menu-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:1px solid #79648f;border-radius:50%;background:#4b3967;color:#fff8e8;cursor:pointer}
#ss-mobile-menu .ss-menu-close svg{width:22px;height:22px}
#ss-mobile-menu .ss-menu-body{max-width:660px;margin-inline:auto;padding:20px max(20px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))}
#ss-mobile-menu .ss-menu-nav{display:grid;gap:7px;min-width:0}
#ss-mobile-menu .ss-menu-nav a{display:flex;align-items:center;gap:13px;min-height:54px;min-width:0;padding:12px 15px;background:#eee4fc;color:#271544;border:1px solid #e1d4ef;border-radius:14px;text-align:start;text-decoration:none;font-size:18px;line-height:1.35;font-weight:700}
#ss-mobile-menu .ss-nav-icon{width:24px;height:24px;flex:none;color:#5225b8}
#ss-mobile-menu .ss-nav-label{min-width:0;overflow-wrap:break-word}
#ss-mobile-menu .ss-menu-chevron{display:block;margin-inline-start:auto;flex:none;width:18px;height:18px;color:#5225b8}
html[dir=rtl] #ss-mobile-menu .ss-menu-chevron{transform:scaleX(-1)}
#ss-mobile-menu .ss-menu-section{margin-block-start:24px}
#ss-mobile-menu .ss-menu-section>strong{display:block;margin-block-end:10px;font-size:14px;line-height:1.4;color:#5c4775}
#ss-mobile-menu .ss-menu-languages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#ss-mobile-menu .ss-menu-languages a{display:flex;align-items:center;justify-content:center;min-height:48px;min-width:0;padding:10px;border-radius:12px;background:#e8dcfb;color:#271544;text-decoration:none;font-size:16px;line-height:1.4;font-weight:700}
#ss-mobile-menu .ss-menu-languages a[aria-current=true]{background:#ffe66d}
#ss-mobile-menu .ss-menu-requests{display:grid;gap:8px}
#ss-mobile-menu .ss-menu-requests a,#ss-mobile-menu .ss-motion-toggle{display:flex;align-items:center;gap:6px;min-height:48px;min-width:0;padding:12px 16px;border:1px solid #e1d4ef;border-radius:12px;background:#eee4fc;color:#271544;text-decoration:none;text-align:start;font:inherit;font-weight:700;line-height:1.35;white-space:normal}
#ss-mobile-menu .ss-menu-requests .ss-menu-request{background:#ffe66d;border-color:#ffe66d}
#ss-mobile-menu :is(a,button):focus-visible,.ss-mobile-controls button:focus-visible{outline:3px solid #7560c5;outline-offset:3px}
#ss-mobile-menu .ss-menu-close:focus-visible{outline-color:#ffe66d}
html.ss-menu-open{overflow:hidden}
html.ss-menu-open body.science-show-site{position:fixed;inset-inline:0;top:var(--ss-menu-scroll-top,0px);width:100%;overflow:hidden}
.f-mobile-booking[hidden]{display:none!important}
.ss-hero-media-slot{display:none}
@media(max-width:960px),(max-height:500px) and (pointer:coarse){
 html{scroll-padding-top:calc(var(--ss-header-height,64px) + 12px);scroll-padding-bottom:calc(var(--ss-dock-height,0px) + 12px)}
 .science-show-site .d-header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%;min-height:0;padding:10px 16px}
 .science-show-site .d-header .f-brand{min-width:0;top:0;justify-self:start}
 .science-show-site .d-header .f-brand img{width:40px;height:40px;flex:none}
 .science-show-site .d-header .f-brand span{display:block;font-size:12px;line-height:1.2}
 .science-show-site .d-header nav.ss-main-nav{display:grid;grid-template-columns:1fr;gap:6px;width:100%;max-width:100%;overflow:visible;font-size:16px}
 .science-show-site .d-header .ss-main-nav a{flex:none;max-width:none;flex-direction:row;justify-content:flex-start;text-align:start;gap:10px;min-height:48px}
 .science-show-site .d-header .f-header-controls{width:100%;grid-column:auto;grid-row:auto;justify-content:stretch}
 .science-show-site .d-header .f-header-controls>.primary{display:none}
 .science-show-site .d-header .language-toggle{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .ss-mobile-ready .ss-utility,.ss-mobile-ready .science-show-site .d-header nav.ss-main-nav,.ss-mobile-ready .science-show-site .d-header .f-header-controls{display:none}
 .ss-mobile-ready .science-show-site .d-header{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));min-height:64px;padding-block-start:max(10px,env(safe-area-inset-top))}
 .ss-mobile-ready .ss-mobile-controls{display:flex;align-items:center;gap:6px;min-width:0}
 .ss-mobile-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;padding:10px 12px;border:1px solid #79648f;border-radius:13px;background:#4b3967;color:#fff8e8;font:inherit;font-size:13px;line-height:1.2;font-weight:800;cursor:pointer}
 .ss-mobile-controls .ss-menu-trigger{border-color:#ffe66d;background:#ffe66d;color:#271544}
 .ss-mobile-controls .ss-menu-trigger svg{width:18px;height:18px;flex:none}
 .ss-mobile-controls .ss-mobile-language{padding-inline:9px}
 .ss-mobile-ready .science-show-site .d-header .f-brand{gap:7px}
 .ss-mobile-ready .science-show-site .d-header .f-brand b{font-size:10px}
 .festival-11 .d-hero.ss-hero-motion{display:flex;flex-direction:column;--ss-hero-gutter-left:max(16px,env(safe-area-inset-left));--ss-hero-gutter-right:max(16px,env(safe-area-inset-right))}
 .festival-11 .ss-hero-motion:before{content:none}
 .festival-11 .ss-hero-motion .d-hero-copy,html[lang=ar][dir=rtl] .festival-11 .ss-hero-motion .d-hero-copy{width:calc(100% - var(--ss-hero-gutter-left) - var(--ss-hero-gutter-right));margin:0 var(--ss-hero-gutter-right) 0 var(--ss-hero-gutter-left);padding:24px 0}
 .festival-11 .ss-hero-motion h1,html[lang=ar][dir=rtl] .festival-11 .ss-hero-motion h1{font-size:clamp(34px,9vw,40px);line-height:1.06;max-width:none;text-wrap:balance}
 html[lang=ar][dir=rtl] .festival-11 .ss-hero-motion h1{line-height:1.3;letter-spacing:0}
 .festival-11 .ss-hero-motion .d-eyebrow{margin-block:0 17px;font-size:10px;line-height:1.5}
 .ss-hero-mobile-layout .ss-hero-media-slot{display:block;margin:22px calc(-1 * var(--ss-hero-gutter-right)) 0 calc(-1 * var(--ss-hero-gutter-left))}
 .festival-11 .ss-hero-motion .ss-hero-media-slot .ss-hero-video-frame{position:relative;inset:auto;z-index:0;width:100%;height:auto;aspect-ratio:16/9}
 .festival-11 .ss-hero-motion .ss-hero-media-slot .ss-hero-toggle{margin:8px var(--ss-hero-gutter-right) 0 var(--ss-hero-gutter-left);padding:8px 12px;min-height:44px;font-size:11px;background:#27154466}
 .festival-11 .ss-hero-motion .d-hero-desc,html[lang=ar][dir=rtl] .festival-11 .ss-hero-motion .d-hero-desc{margin-block:22px;font-size:16px;line-height:1.55;max-width:none}
 html[lang=ar][dir=rtl] .festival-11 .ss-hero-motion .d-hero-desc{line-height:1.7}
 .festival-11 .ss-hero-motion .f-actions{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:10px;width:100%}
 .festival-11 .ss-hero-motion .f-actions .primary{justify-content:center;width:100%;min-height:52px;font-size:15px;line-height:1.35;padding:14px 18px;text-align:center;white-space:normal}
 .festival-11 .ss-hero-motion .f-actions .f-watch{justify-content:center;min-height:44px;padding:10px 16px;font-size:14px}
 .festival-11 .ss-hero-motion .d-hero-facts{margin-block:18px 0;font-size:12px;line-height:1.5}
 .festival-11 .ss-hero-motion .d-hero-bottom{position:static;width:100%;padding:12px 16px;font-size:12px;gap:14px;background:#271544}
 .festival-11 .ss-hero-motion .d-hero-bottom a{width:44px;height:44px;flex:none}
 .science-show-site .f-mobile-booking{position:fixed;inset:auto 0 0;z-index:45;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:9px;padding:9px max(12px,env(safe-area-inset-right)) max(9px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#fff8e8}
 .science-show-site .f-mobile-booking>a{min-width:0;min-height:44px;padding:10px;font-size:12px;line-height:1.35;white-space:normal}
 .science-show-site .f-footer{padding-bottom:calc(28px + var(--ss-dock-height,0px))}
}
@media(max-width:350px){
 .ss-mobile-ready .science-show-site .d-header{padding-inline:12px;gap:6px}
 .ss-mobile-ready .science-show-site .d-header .f-brand img{width:34px;height:34px}
 .ss-mobile-ready .science-show-site .d-header .f-brand span{font-size:11px}
 .ss-mobile-controls .ss-menu-trigger{padding-inline:10px;gap:5px}
 #ss-mobile-menu .ss-menu-body{padding-inline:16px}
 #ss-mobile-menu .ss-menu-nav a{font-size:17px;padding-inline:12px}
}
@keyframes ss-menu-arrive{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:none}}
html:not([data-ss-motion-reduced=true]) #ss-mobile-menu[open] .ss-menu-body{animation:ss-menu-arrive .22s ease-out}
@media(prefers-reduced-motion:reduce){html:not([data-ss-motion-preference=full]) #ss-mobile-menu[open] .ss-menu-body{animation:none}}

/* Short landscape phones keep the complete scene beside the opening text. */
@media(min-width:600px) and (max-width:960px) and (max-height:500px){
 .festival-11 .ss-hero-motion .d-hero-copy,html[lang=ar][dir=rtl] .festival-11 .ss-hero-motion .d-hero-copy{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:0 24px;align-items:start;padding-block:18px}
 .ss-hero-mobile-layout .ss-hero-intro{grid-column:1;grid-row:1}
 .ss-hero-mobile-layout .ss-hero-story{grid-column:1;grid-row:2}
 .ss-hero-mobile-layout .ss-hero-media-slot{grid-column:2;grid-row:1/3;margin:0;align-self:start}
 .festival-11 .ss-hero-motion .ss-hero-media-slot .ss-hero-toggle{margin-inline:0}
 .festival-11 .ss-hero-motion h1,html[lang=ar][dir=rtl] .festival-11 .ss-hero-motion h1{font-size:34px}
}
