/* Museum interface: plain typography, paintings and one continuous camera. */
body.world-gallery{background:#30251c;color:#fff6e9;overflow-x:clip;font-family:Onest,system-ui,sans-serif}
.world-loading{display:none;position:fixed;inset:0;z-index:20;box-sizing:border-box;flex-direction:column;align-items:center;justify-content:center;padding:clamp(24px,5vw,72px);background:#eee5d7;color:#30251c;opacity:1;transition:opacity .35s ease}
html[data-world-loading=true]{overflow:hidden!important}
html[data-world-loading=true] .world-loading,.world-loading.is-leaving{display:flex}
html[data-world-loading=true] body.world-gallery :is(.world-menu,.world-nav,.world-controls){visibility:hidden;pointer-events:none}
html[data-world-loading=true] body.world-gallery .cookie-banner{display:none!important}
html[data-world-loading=true] .world-render{opacity:1;transition:none}
html[data-world-loading=true] .world-poster{visibility:hidden;opacity:0;transition:none}
.world-loading.is-leaving{opacity:0;pointer-events:none}
.world-loading__eyebrow{position:absolute;top:clamp(24px,5vw,72px);left:clamp(24px,5vw,72px);font:11px/1.4 ui-monospace,monospace;letter-spacing:.15em}
.world-loading__name{font:800 clamp(62px,12vw,180px)/.86 Onest,system-ui,sans-serif;letter-spacing:-.075em;padding-bottom:70px;isolation:isolate}
.world-loading__name>span{display:block}
.world-loading__name>span+span{margin-left:.48em}
.world-loading__period{color:#a75531}
.world-loading__bottom{position:absolute;bottom:clamp(24px,5vh,64px);width:min(360px,calc(100% - 48px));text-align:center}
.world-loading__bottom p{margin:0 0 18px;font:400 13px/1.5 Onest,system-ui,sans-serif}
.world-loading__progress{position:relative;height:6px;background:#c8baa5;overflow:hidden}
.world-loading__progress span{display:block;width:100%;height:100%;background:#30251c;transform:scaleX(var(--load-step,0));transform-origin:left;transition:transform .35s ease}
.world-loading__progress::after{content:"";position:absolute;inset:0 auto 0 0;width:8px;background:#30251c;animation:world-loading-pulse 1.2s ease-in-out infinite alternate}
.world-gallery .world-loading [data-world-skip]{display:inline-flex;align-items:center;min-height:44px;margin-top:14px;padding:0;border:0;background:none;color:#71614e;font:12px/1.4 Onest,system-ui,sans-serif;text-decoration:underline;text-underline-offset:4px;box-shadow:none}
.world-gallery .world-loading [data-world-skip]:hover{color:#30251c;box-shadow:none}
.world-loading.is-leaving .world-loading__progress::after{animation:none}
@keyframes world-loading-pulse{from{opacity:.25}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.world-loading,.world-loading__progress span{transition:none}.world-loading__progress::after,.world-loading__name>span{animation:none}}
.world-gallery .wp-site-blocks{margin:0!important;padding:0!important}
.world-gallery .wp-site-blocks>*{margin-block:0!important}
.world-gallery .wp-site-blocks>header,.world-gallery #wpadminbar{display:none}
html:has(body.world-gallery){margin-top:0!important;scroll-padding-top:0;overscroll-behavior-y:none}
.world-gallery .evolkov-home{position:relative;isolation:isolate;max-width:none;margin:0!important;padding:0!important;background:none;color:inherit}
.world-gallery .home-world{position:fixed;inset:0;width:100%;height:100vh;height:100lvh;overflow:clip;z-index:0}
.world-render,.world-poster,.world-poster img,.world-hotspots{position:absolute;inset:0;width:100%;height:100%}
.world-poster img{object-fit:cover}
.world-render{opacity:0;transition:opacity .65s}
.world-render canvas{touch-action:pan-y!important}
[data-home-world][data-state=ready] .world-render{opacity:1}
[data-home-world][data-state=ready] .world-poster{opacity:0;pointer-events:none;transition:opacity .65s}
.home-world::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#1e1711c9,#1e171177 23%,transparent 62%);transition:opacity .5s}
body[data-world-area=travel] .home-world::after{opacity:.25}
.world-gallery .evolkov-home>.wp-block-post-content{position:relative;z-index:1;width:100%;max-width:none;margin:0;padding:0;pointer-events:none}
.world-gallery .evolkov-home>h1{position:relative;z-index:1;width:min(610px,47vw);margin:0 0 28px 6vw;padding:16svh 0 0;font:500 clamp(40px,4.7vw,70px)/1.06 Onest,system-ui,sans-serif;letter-spacing:-.035em;color:#fff7e9;text-wrap:balance;scroll-margin-top:0}
.world-gallery .home-introduction{position:relative;width:min(440px,37vw);margin:0 0 0 6vw;min-height:65svh;font-size:16px;line-height:1.6;pointer-events:auto}
.world-gallery .evolkov-home :is(h2,h3){color:inherit}
.world-gallery .evolkov-home a,.world-gallery .world-controls button,.world-gallery .world-nav a{color:#fff2db;text-underline-offset:6px;text-decoration-thickness:1px}
.world-gallery .home-directions{display:block;grid-template-columns:none;gap:0;margin:0;padding:0;border:0}
.world-gallery .home-direction{display:block;min-height:260svh;position:relative;margin:0;padding:0;border:0;max-width:none;pointer-events:none}
.world-gallery .world-caption{position:sticky;top:24svh;width:min(390px,33vw);margin:0 0 0 6vw;padding:60px 0;pointer-events:auto}
.world-caption h2{font:500 clamp(32px,3.2vw,48px)/1.1 Onest,system-ui,sans-serif;letter-spacing:-.025em;margin:14px 0 22px}
.world-caption p{font-size:15px;line-height:1.65;margin:12px 0;color:#f0e7d9}
.world-caption .world-project-links{font-size:12px;line-height:1.9;margin:14px 0}
.world-caption>p:first-child{font:11px/1.4 ui-monospace,monospace;letter-spacing:.15em}
.world-gallery .world-action{display:inline-block;min-height:44px;padding:10px 0;margin:8px 0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;font:inherit;font-size:15px;color:#fff2db;text-decoration:underline;text-underline-offset:7px;cursor:pointer}
.world-contact-stage{position:relative;z-index:1;min-height:190svh;padding:0;margin:0;pointer-events:none}
.world-contact-caption{position:sticky;top:12svh;width:min(560px,43vw);margin:0 0 0 6vw;padding:30px 0;pointer-events:auto}
.world-gallery .commercial-contact{width:100%;max-width:none;margin:0;padding:0;border:0;min-height:0;background:none;color:inherit}
.world-gallery .world-contact-caption .commercial-contact{margin:0;padding:0;}
.world-gallery .commercial-contact h2{font:500 clamp(34px,3.7vw,54px)/1.1 Onest,system-ui,sans-serif;letter-spacing:-.03em;margin:0 0 20px}
.world-gallery .commercial-contact p{font-size:14px;line-height:1.6;margin:12px 0}
.world-gallery .commercial-contact label{color:#f7ecdc;font-size:12px}
.world-gallery .commercial-contact :is(input:not([type=checkbox]),textarea){border:0;border-bottom:1px solid #f6ead296;border-radius:0;background:#211a144d;box-shadow:none;color:#fff6e7;font:inherit;padding:8px;min-height:42px}
.world-gallery .commercial-contact textarea{height:85px;min-height:85px}
.world-gallery .commercial-contact button{border:0;border-radius:0;background:none;box-shadow:none;color:#fff6e7;padding:10px 0;min-height:44px;text-decoration:underline;text-underline-offset:7px;font:inherit;cursor:pointer}
.world-footer{margin-top:26px;border:0;padding:0;font-size:12px;color:#e8dbc5}
.world-footer nav{display:flex;flex-wrap:wrap;gap:0 20px;margin:4px 0}
.world-footer a,.world-footer button{display:inline-flex;min-height:36px;align-items:center;color:inherit;font:inherit}
.world-footer button{padding:0;border:0;background:none;text-decoration:underline;cursor:pointer}
.world-footer p{font-size:10px!important;line-height:1.5;margin:8px 0}
.world-menu{position:absolute;top:max(22px,env(safe-area-inset-top));left:6vw;z-index:5;font:13px/1.5 Onest,system-ui,sans-serif;pointer-events:auto}
.world-menu summary{list-style:none;display:flex;align-items:center;min-height:44px;padding:0;background:none;border:0;color:#fff6e9;font-size:18px;cursor:pointer;text-shadow:0 1px 8px #000}
.world-menu summary::-webkit-details-marker{display:none}
.world-menu nav{display:flex;flex-direction:column;box-sizing:border-box;padding:24px 30px;background:#eee5d7;color:#30251c;min-width:210px;max-height:calc(100dvh - max(22px,env(safe-area-inset-top)) - 56px);overflow:auto;border:0;border-radius:0}
.world-gallery .world-menu nav a{display:flex;align-items:center;min-height:44px;color:#30251c;text-decoration:none}
.world-menu nav a:hover{text-decoration:underline}
.world-languages{display:flex;gap:22px;border-top:1px solid #30251c40;margin-top:12px}
.world-languages [aria-current]{text-decoration:underline!important}
.world-controls{position:fixed;left:6vw;bottom:max(18px,env(safe-area-inset-bottom));z-index:4;display:flex;align-items:center;gap:24px;pointer-events:none;font:11px/1.4 Onest,system-ui,sans-serif}
.world-controls button{border:0;border-radius:0;background:none;padding:0;min-height:44px;font:inherit;text-decoration:underline;text-underline-offset:5px;cursor:pointer;pointer-events:auto}
.world-controls [hidden],.world-preview-label{display:none!important}
.world-controls p{font:inherit;margin:0;max-width:230px;color:#f5ead6}
.world-controls .world-load-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.home-world:is([data-state=failed],[data-state=awaiting-source]) .world-controls .world-instructions{display:none}
.home-world:is([data-state=failed],[data-state=awaiting-source]) .world-controls .world-load-status{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;white-space:normal;max-width:230px;color:#f5ead6}
[data-state=ready] .world-controls p{display:none}
.world-nav{position:fixed;right:5vw;bottom:max(18px,env(safe-area-inset-bottom));z-index:4;display:flex;gap:24px;font:12px/1.5 Onest,system-ui,sans-serif}
.world-gallery .world-nav a{display:flex;align-items:center;min-height:44px;text-decoration:none}
.world-nav a:hover{text-decoration:underline}
.world-hotspots{z-index:2;pointer-events:none}
.world-gallery .world-hotspot{position:absolute;left:0;top:0;pointer-events:auto;padding:8px 0;min-height:44px;font:12px/1.5 Onest,system-ui,sans-serif;color:#fff5e1;text-decoration:underline;text-underline-offset:7px;white-space:nowrap;border:0;background:none;text-shadow:0 1px 6px #000}
.world-hotspot[hidden]{display:none}
.world-dialog{position:fixed;inset:0;width:min(720px,calc(100vw - 48px));max-width:none;height:fit-content;max-height:calc(100svh - 48px);margin:auto;padding:48px;border:0;border-radius:32px;background:#fff;color:#181818;overflow:auto;box-sizing:border-box;box-shadow:none;opacity:0;transform:translateY(20px);transition:opacity .38s,transform .48s cubic-bezier(.2,.65,.2,1)}
.world-dialog[data-visible=true]{opacity:1;transform:translateY(0)}
.world-dialog::backdrop{background:#0009;backdrop-filter:none;opacity:0;transition:opacity .38s}
.world-dialog[data-visible=true]::backdrop{opacity:1}
.world-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border:0;padding-bottom:30px}
.world-dialog-heading h2{font:600 36px/1.22 Onest,system-ui,sans-serif;letter-spacing:-.025em;margin:0}
.world-dialog-heading button{min-width:48px;min-height:48px;border:1px solid #bcbcbc;border-radius:50%;background:#fff;color:#181818;font:28px/1 Onest;cursor:pointer;padding:0}
.world-dialog p,.world-dialog li,.world-dialog dd{font:15px/1.75 Onest,system-ui,sans-serif}
.world-dialog h3{font:500 27px/1.2 Onest,system-ui,sans-serif;margin:34px 0 15px}
.world-gallery .world-dialog a,.world-gallery .world-dialog button[data-world-play]{color:#181818;text-underline-offset:6px}
.world-dialog img{display:block;width:100%;height:auto;max-height:48svh;object-fit:contain;margin-bottom:26px;border-radius:0}
.world-dialog ul{list-style:none;padding:0}
.world-dialog li{border:0;padding:10px 0}
.world-process{margin:24px 0}
.world-process>div{padding:14px 0;border:0}
.world-process dt{font:500 22px/1.2 Onest,system-ui,sans-serif}
.world-process dd{margin:8px 0 0;color:#666}
.world-illustration-label{font-size:11px!important;color:#666}
.world-dialog [data-world-play]{border:0;background:none;border-radius:0;padding:12px 0;font:inherit;text-decoration:underline;cursor:pointer;min-height:44px}
.world-game{display:block;width:100%;height:70svh;border:0;margin-top:20px}
.world-gallery :is(a,button,summary):focus-visible{outline:2px solid #e6c68f;outline-offset:5px}
.world-dialog :is(a,button):focus-visible{outline-color:#57442d}
/* The original PHP content stays in document order without a working scene. */
body[data-world-preparing=true]:not([data-world-ready=true]) .evolkov-home>h1,body[data-world-preparing=true]:not([data-world-ready=true]) .home-introduction{opacity:0;visibility:hidden;pointer-events:none}
html[data-world-layout=true] body .home-directions{padding-top:240svh}
html[data-world-layout=true] body .evolkov-home>h1,html[data-world-layout=true] body .home-introduction,html[data-world-layout=true] body .world-caption,html[data-world-layout=true] body .world-contact-caption{position:fixed;z-index:2;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s,visibility .45s;}
html[data-world-layout=true] body .evolkov-home>h1{top:17svh;left:6vw;margin:0;padding:0}
html[data-world-layout=true] body .home-introduction{top:calc(17svh + 280px);left:6vw;margin:0;min-height:0;padding:0}
html[data-world-layout=true] body .home-introduction p{margin:12px 0}
html[data-world-layout=true] body .home-introduction{width:min(420px,36vw)}
html[data-world-layout=true] body .world-caption{left:6vw;top:50svh;transform:translateY(-40%);margin:0;padding:0}
html[data-world-layout=true] body .world-contact-caption{top:10svh;left:6vw;max-height:none;overflow:visible;margin:0;padding:0}
html[data-world-layout=true] body[data-world-area=development] .evolkov-home>h1,html[data-world-layout=true] body[data-world-area=development] .home-introduction,html[data-world-layout=true] body[data-world-area=seo] .home-direction:has(#seo) .world-caption,html[data-world-layout=true] body[data-world-area=gamedev] .home-direction:has(#gamedev) .world-caption,html[data-world-layout=true] body[data-world-area=contact] .world-contact-caption{opacity:1;visibility:visible;pointer-events:auto}
html[data-world-layout=true] body .evolkov-home>h1{top:auto;bottom:16svh;width:min(1050px,80vw);font-size:clamp(34px,3vw,44px)}
html[data-world-layout=true] body .home-introduction{top:auto;bottom:7svh;display:flex;flex-wrap:wrap;gap:8px 24px;width:min(600px,50vw)}
html[data-world-layout=true] body .home-introduction p{margin:0}
body[data-world-area=overview] .home-world::after{opacity:.12}
body[data-world-area=overview] [data-state=ready] .world-controls p{display:block}
body[data-world-inspecting=true] .world-caption,body[data-world-inspecting=true] .world-hotspots{opacity:0!important;pointer-events:none!important}
body[data-world-inspecting=true] .evolkov-home>h1,body[data-world-inspecting=true] .home-introduction,body[data-world-inspecting=true] .world-contact-caption{opacity:0!important;pointer-events:none!important}
@media(max-width:769px){
 .home-world::after{background:linear-gradient(180deg,#21180f80,transparent 36%,#21180f55 50%,#21180fe6 75%)}
 .world-menu{left:22px;top:max(12px,env(safe-area-inset-top))}.world-nav{display:none}.world-controls{left:22px;bottom:max(12px,env(safe-area-inset-bottom))}
 .world-gallery .evolkov-home>h1{width:calc(100vw - 44px);font-size:clamp(31px,8.6vw,42px);margin-left:22px;padding-top:100px}
 .world-gallery .home-introduction{width:calc(100vw - 44px);margin-left:22px;font-size:14px;min-height:80svh}
 .world-gallery .world-caption{width:calc(100vw - 44px);margin-left:22px;top:62svh;padding:30px 0}
 .world-caption h2{font-size:29px;margin:9px 0 12px;max-width:360px}.world-caption p{font-size:13px;line-height:1.55;margin:8px 0}.world-caption>p:first-child{font-size:10px}
 .world-gallery .world-action{font-size:13px;padding:6px 0;margin:0}
 .world-contact-caption{width:calc(100vw - 44px);margin-left:22px;top:12svh}
 .world-gallery .commercial-contact h2{font-size:32px}.world-gallery .commercial-contact p{font-size:12px}
 .world-dialog{width:calc(100vw - 24px);height:fit-content;inset:0;max-height:calc(100svh - 24px);padding:32px 24px;border-radius:24px;transform:translateY(20px)}
 .world-dialog[data-visible=true]{transform:translateY(0)}.world-dialog-heading{padding-bottom:20px}.world-dialog-heading h2{font-size:30px}.world-dialog img{max-height:30svh}
 html[data-world-layout=true] body .evolkov-home>h1{top:auto;bottom:26svh;left:22px;width:calc(100vw - 44px);font-size:clamp(29px,7.7vw,36px)}
 html[data-world-layout=true] body .home-introduction{top:auto;bottom:12svh;left:22px;width:calc(100vw - 44px)}
 html[data-world-layout=true] body .world-caption{top:auto;bottom:max(24px,calc(env(safe-area-inset-bottom) + 16px));left:22px;transform:none;max-height:none;overflow:visible;}
 .world-gallery .world-caption{padding:0;}
 .world-caption>p:first-child{margin:0 0 6px;}
 .world-gallery .world-caption h2{font-size:clamp(24px,6.7vw,29px);line-height:1.12;margin:0 0 12px;}
 .world-gallery .world-caption p{font-size:14px;line-height:1.55;margin:8px 0;}
 .world-gallery .world-caption>p:first-child{font-size:10px;}
 .world-gallery .world-caption>p:has(a){display:inline-block;font-size:13px;margin:4px 14px 0 0;}
 .world-caption .world-action{display:block;min-height:40px;padding:6px 0;margin:0;}
 html[data-world-layout=true] body .world-contact-caption{top:12svh;left:22px;max-height:76svh}
 .world-footer{margin-top:16px}.world-footer nav{gap:0 16px}
}
@media(prefers-reduced-motion:reduce){.world-gallery *{scroll-behavior:auto!important}.world-render,.world-poster,.world-caption,.world-dialog,.world-dialog::backdrop{transition:none!important}}

/* Form and typography from the owner's konovalova project; scoped to the world. */
.world-gallery .commercial-contact .evolkov-contact-form { gap:18px; font-family:Onest,system-ui,sans-serif; }
.world-gallery .commercial-contact .evolkov-contact-form :is(input:not([type=checkbox]):not([type=hidden]),textarea) { box-sizing:border-box; width:100%; border:0; border-radius:12px; background:#f0f0f0; color:#181818; padding:16px 18px; min-height:54px; font:400 16px/1.5 Onest,system-ui,sans-serif; transition:background .2s; box-shadow:none; }
.world-gallery .commercial-contact .evolkov-contact-form textarea { height:110px; min-height:110px; resize:vertical; }
.world-gallery .commercial-contact .evolkov-contact-form :is(input,textarea):focus { background:#e8e8e8; outline:none; box-shadow:none; }
.world-gallery .commercial-contact .evolkov-contact-form label { font:400 13px/1.5 Onest,system-ui,sans-serif; }
.world-gallery .commercial-contact .evolkov-contact-form button[type=submit],.world-gallery .world-dialog [data-world-play] { display:inline-flex; justify-content:center; align-items:center; width:fit-content; min-height:56px; padding:14px 24px; border:0; border-radius:8px; background:#181818; color:#fff; font:500 16px/1.5 Onest,system-ui,sans-serif; text-decoration:none; transition:background .25s; }
.world-gallery .commercial-contact .evolkov-contact-form button[type=submit]:hover,.world-gallery .world-dialog [data-world-play]:hover { background:#333; }
.world-gallery .evolkov-contact-consent input { accent-color:#181818; width:18px; height:18px; flex:none; }
.world-gallery .world-footer { border:0; }
.world-gallery .world-controls p { font:400 11px/1.5 Onest,system-ui,sans-serif; }
.world-gallery .home-introduction>p:first-child { font:inherit; color:inherit; }
.world-gallery .commercial-contact .evolkov-contact-form button[type=submit] { background:#f0e8da; color:#30251c; }
.world-gallery .commercial-contact .evolkov-contact-form button[type=submit]:hover { background:#fff8ed; }
.world-gallery :is(a,button,summary):focus:not(:focus-visible) { outline:none; box-shadow:none; }
/* Short screens use the document scroll, never a second scrollbar inside the form. */
@media(max-height:1050px),(max-width:769px){
 html[data-world-layout=true] body .world-contact-caption{position:relative;top:auto;left:auto;max-height:none;overflow:visible;transform:none;margin-left:6vw;}
 .world-contact-stage{min-height:100svh;padding:90px 0 40px;box-sizing:border-box;}
}
.world-gallery .home-world:has(.world-menu[open]){z-index:5;}
.world-menu[open]~.world-render{pointer-events:none;}
.world-menu [data-world-pause]{display:block;border:0;border-top:1px solid #30251c40;background:none;color:#30251c;font:inherit;font-size:11px;min-height:44px;margin-top:18px;padding:14px 0 0;text-align:left;cursor:pointer;}
.world-menu [data-world-pause][hidden]{display:none;}
.world-gallery button { cursor:pointer; }
.world-gallery button:not(:disabled) { transition:background-color .18s,color .18s,box-shadow .18s; }
.world-gallery button:not(:disabled):hover { box-shadow:inset 0 -2px currentColor; }
.world-gallery button:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.world-gallery [data-cookie-settings]:hover { box-shadow:none; background:transparent; color:inherit; }
.world-gallery .commercial-contact .evolkov-direct-contacts a { color:#30251c; background:#f0e8da; text-decoration:none; }
.world-gallery .commercial-contact .evolkov-direct-contacts a:hover { color:#30251c; background:#fff8ed; }
.world-gallery .commercial-contact .evolkov-direct-contacts svg { color:inherit; fill:currentColor; }
.world-gallery .world-footer nav :is(a,button) { padding:0; border:0; background:transparent; color:inherit; font:inherit; text-decoration:none; box-shadow:none; transition:color .18s; }
.world-gallery .world-footer nav :is(a,button):hover { color:#fff8ed; background:transparent; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; box-shadow:none; }
.world-gallery .world-footer nav :is(a,button):focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.world-gallery .cookie-banner button:not(:disabled):hover { box-shadow:none; }
.world-gallery .world-menu [data-world-pause]:hover{box-shadow:none;background:none;color:#30251c;text-decoration:none;}
/* The gallery remains visible beside a quiet, warm detail panel. */
html:has(body.world-gallery),body.world-gallery,.world-dialog{scrollbar-width:none;}
html:has(body.world-gallery)::-webkit-scrollbar,body.world-gallery::-webkit-scrollbar,.world-dialog::-webkit-scrollbar{display:none;}
.world-dialog{inset:0 0 0 auto;width:min(500px,42vw);height:100svh;max-height:100svh;margin:0;padding:42px 36px;border-radius:0;background:#eee5d7;color:#30251c;transform:translateX(36px);overscroll-behavior:contain;}
.world-dialog[open]{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden;}
.world-dialog-heading{flex:none;position:relative;z-index:1;background:#eee5d7;}
.world-dialog-heading h2{min-width:0;overflow-wrap:anywhere;}
.world-dialog-heading button{flex:none;}
[data-world-dialog-body]{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(12px,env(safe-area-inset-bottom));scrollbar-width:none;}
[data-world-dialog-body]::-webkit-scrollbar{display:none;width:0;height:0;}
.world-dialog[data-visible=true]{transform:translateX(0);}
.world-dialog::backdrop{background:#0002;}
.world-dialog-heading h2{font-size:30px;}
.world-dialog-heading button{background:#eee5d7;color:#30251c;border-color:#c8baa5;}
.world-dialog-heading button:focus{outline:none;box-shadow:none;}
.world-dialog-heading button:focus-visible{background:#d6c6ad;}
.world-dialog h3{font-size:24px;}
.world-gallery .world-dialog [data-world-play]{background:#dacbb5;color:#30251c;}
.world-gallery .world-dialog [data-world-play]:hover{background:#cdbb9e;}
html[data-world-layout=true] body .evolkov-home>h1{bottom:26svh;}
html[data-world-layout=true] body .home-introduction{bottom:8svh;width:min(620px,52vw);}
.world-gallery .home-introduction>.home-lead{flex-basis:100%;font:400 15px/1.6 Onest,system-ui,sans-serif;max-width:580px;margin-bottom:12px;}
@media(max-width:769px){
 .world-dialog{inset:auto 0 0;width:100%;height:auto;max-height:72svh;padding:28px 24px;border-radius:20px 20px 0 0;transform:translateY(30px);}
 .world-dialog[open]{height:min(82dvh,840px);max-height:calc(100dvh - 64px);padding:22px 22px 0;}
 .world-dialog[data-visible=true]{transform:translateY(0);}
 .world-dialog-heading h2{font-size:27px;}.world-dialog h3{font-size:22px;}
 html[data-world-layout=true] body .evolkov-home>h1{bottom:35svh;}
 html[data-world-layout=true] body .home-introduction{bottom:10svh;width:calc(100vw - 44px);}
 .world-gallery .home-introduction>.home-lead{font-size:13px;line-height:1.5;margin-bottom:4px;}
 .world-contact-caption .evolkov-contact-fields{grid-template-columns:1fr;}
 html[data-world-layout=true] body .world-contact-caption{margin-left:22px;}
}

/* Dynamic browser chrome must never reveal the body below the gallery. */
@media(max-width:769px),(max-height:480px){
 .world-menu nav{box-sizing:border-box;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - 56px);padding:16px 24px;}
 .world-gallery .world-menu nav a{min-height:40px;}
 .world-menu [data-world-pause]{margin-top:12px;padding-top:10px;}
 .world-dialog-heading h2{font-size:clamp(21px,5.7vw,27px);line-height:1.15;}
 .world-dialog-heading{gap:12px;padding-bottom:18px;}
 html[data-world-layout=true] body .world-contact-caption{position:fixed;top:72px;bottom:max(12px,env(safe-area-inset-bottom));left:22px;width:calc(100vw - 44px);margin:0;max-height:none;overflow-y:auto;overscroll-behavior:auto;scrollbar-width:none;padding:0 0 12px;}
 .world-gallery .commercial-contact h2{font-size:27px;margin:0 0 12px;}
 .world-gallery .commercial-contact p{font-size:12px;line-height:1.5;margin:10px 0;}
 .world-gallery .commercial-contact .evolkov-direct-contacts{margin:10px 0;gap:12px;}
 .world-gallery .commercial-contact .evolkov-direct-contacts a{width:42px;height:42px;min-height:42px;}
 .world-gallery .commercial-contact .evolkov-contact-form{display:grid;gap:10px;margin:14px 0;}
 .world-gallery .commercial-contact .evolkov-contact-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;}
 .world-gallery .commercial-contact .evolkov-contact-form label{font-size:12px;}
 .world-gallery .commercial-contact .evolkov-contact-form .evolkov-contact-consent{margin:0;}
 .world-gallery .commercial-contact .evolkov-contact-form .evolkov-contact-status:empty{display:none;}
 .world-gallery .commercial-contact .evolkov-contact-form :is(input:not([type=checkbox]):not([type=hidden]),textarea){min-height:44px;margin-top:5px;padding:10px 12px;border-radius:9px;}
 .world-gallery .commercial-contact .evolkov-contact-form textarea{height:72px;min-height:72px;}
 .world-gallery .commercial-contact .evolkov-contact-form button[type=submit]{min-height:48px;padding:10px 18px;}
 .world-gallery .world-footer{margin-top:16px;}
 .world-gallery .world-footer p{font-size:10px;}
 .world-gallery .world-footer nav{gap:0 14px;}
 .world-gallery .world-footer a,.world-gallery .world-footer button{min-height:32px;}
}
@media(max-width:359px){.world-gallery .commercial-contact .evolkov-contact-fields{grid-template-columns:1fr;}}
@media(max-width:769px) and (max-height:600px){
 .world-gallery .world-caption h2{font-size:23px;margin-bottom:10px;}
 .world-gallery .world-caption p{font-size:13px;line-height:1.5;margin:6px 0;}
 .world-caption .world-action{min-height:36px;font-size:12px;}
}
@media(min-width:600px) and (max-height:480px){
 .world-nav{display:none;}
 html[data-world-layout=true] body .world-caption{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(0,1.15fr);gap:4px 24px;width:min(620px,calc(100vw - 44px));left:22px;top:auto;bottom:max(16px,env(safe-area-inset-bottom));transform:none;max-height:none;overflow:visible;margin:0;padding:0;}
 .world-caption>p:first-child{grid-column:1;grid-row:1;font-size:10px;margin:0;}
 .world-gallery .world-caption h2{grid-column:1;grid-row:2 / span 4;font-size:26px;line-height:1.12;margin:0;}
 .world-gallery .world-caption>p:not(:first-child):not(:has(a)){grid-column:2;grid-row:1 / span 2;font-size:12px;line-height:1.45;margin:0 0 4px;}
 .world-gallery .world-caption>p:has(a),.world-caption .world-action{grid-column:2;font-size:12px;margin:0;padding:2px 0;min-height:28px;text-align:left;justify-self:start;}
}
@media(max-height:480px){
 .world-loading{align-items:flex-start;}
 .world-loading__name{font-size:clamp(44px,18dvh,76px);padding:30px 0 0;}
 .world-loading__bottom{right:24px;bottom:24px;width:36%;text-align:left;}
 .world-loading__bottom p{font-size:11px;margin-bottom:12px;}
}
/* The heading sits above the measured introduction, rather than at an unrelated
   viewport percentage. Wrapping and font changes cannot make them overlap. */
.world-gallery .evolkov-home{--world-intro-bottom:8svh;--world-intro-gap:20px;}
html[data-world-layout=true] body .home-introduction{bottom:var(--world-intro-bottom);}
html[data-world-layout=true] body .evolkov-home>h1{bottom:calc(var(--world-intro-bottom) + var(--world-intro-height,180px) + var(--world-intro-gap));}
@media(max-width:769px){
 .world-gallery .evolkov-home{--world-intro-bottom:10svh;--world-intro-gap:18px;}
}
@media(max-height:480px){
 .world-gallery .evolkov-home{--world-intro-bottom:24px;--world-intro-gap:14px;}
 html[data-world-layout=true] body .evolkov-home>h1{font-size:clamp(24px,4vw,30px);}
 .world-gallery .home-introduction>.home-lead{font-size:13px;line-height:1.5;margin-bottom:4px;}
}
.world-menu[popover]{margin:0;padding:0;border:0;background:transparent;right:auto;bottom:auto}
