/* Phone presentation. The CMS, routes and published content are shared. */
:root{--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);--phone-header:calc(var(--safe-top) + 72px);--phone-gallery-top:calc(var(--safe-top) + 124px)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.gallery-mobile-tools,.gallery-dim,.gallery-help,#gallery-info-close,#information-back{display:none}
#gallery[hidden],#information[hidden],#gallery-images[hidden]{display:none!important}
#gallery.is-open:not(.show-info) #gallery-images.is-touch-enabled{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#gallery-images.is-touch-enabled img{will-change:transform;pointer-events:none}
#gallery-images.is-zoomed{cursor:grab}
#gallery-images.is-gesturing{cursor:grabbing}
#gallery-images.is-gesturing img{transition:none}
.gallery-information{touch-action:pan-y pinch-zoom;overscroll-behavior:contain}
.project-card{touch-action:pan-y pinch-zoom;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.project-card.is-preview .project-photo{transform:scale(1.12);opacity:.48}
.project-card.is-preview .project-label{opacity:1;transform:translateY(0)}
.project-card.is-preview .scribble-frame path{stroke-dashoffset:0;opacity:1}
.sketch-back{font:400 17px/1.02 Schoolbell,cursive;text-align:left;position:absolute}
.sketch-back:active .back-circle path{stroke-dashoffset:0;opacity:1}
@media(hover:none){
 .wiggle:hover img,.wiggle:hover svg,.language-button:hover span,#gallery-back:hover .back-lettering{animation:none}
 .wiggle:active img,.wiggle:active svg,.language-button:active span{animation:scribble-wiggle .4s ease-in-out}
 #gallery-back:not(:active):not(:focus-visible) .back-circle path{stroke-dashoffset:1;opacity:0}
 .language-button:not([aria-pressed=true]):not(:active):not(:focus-visible) path{stroke-dashoffset:1;opacity:0}
 .language-button:not([aria-pressed=true]):not(:active):not(:focus-visible){color:#aaa}
 .gallery-arrow,.language-button{min-width:44px;min-height:44px}
 .contact-details a{display:inline-block;min-height:44px;padding:9px 0}
}
html[data-layout=mobile] #site-header{height:var(--phone-header);isolation:isolate}
html[data-layout=mobile] #site-header::before{content:"";position:absolute;inset:0 0 -14px;background:linear-gradient(to bottom,var(--header-bg,#000) 65%,transparent);z-index:-1;pointer-events:none}
html[data-layout=mobile] .home-button{top:calc(var(--safe-top) + 12px);left:max(18px,var(--safe-left));width:52px;height:48px;padding:3px 0;display:flex;align-items:center;justify-content:center}
html[data-layout=mobile] .home-button img{width:50px}
html[data-layout=mobile] #site-header nav{top:calc(var(--safe-top) + 14px);right:max(18px,var(--safe-right));gap:19px;height:44px}
html[data-layout=mobile] .nav-button{width:77px;min-height:44px;padding:8px 0}
html[data-layout=mobile] .nav-button.contacts{width:72px}
html[data-layout=mobile] .brand-button{width:clamp(200px,56vw,290px)}
html[data-layout=mobile] #cover{height:var(--layout-height,100svh)}
html[data-layout=mobile] #cover-brand{top:49%}
html[data-layout=mobile] .cover-dinosaur{width:64%;margin-bottom:36px}
html[data-layout=mobile] #scroll-cue{width:44px;height:48px;left:calc(50% - 22px);bottom:calc(var(--safe-bottom) + 28px);padding:0 5px}
/* Let native mobile scrolling move the page; no full-list JS translation. */
html[data-layout=mobile] #scroll-viewport{position:relative;inset:auto;clip-path:none;overflow:visible}
html[data-layout=mobile] #scroll-surface{position:relative;will-change:auto}
html[data-layout=mobile] #scroll-spacer{display:none}
html[data-layout=mobile] .cover-space{height:var(--layout-height,100svh)}
html[data-layout=mobile] #projects{width:88%;margin:64px 0 0 6%}
html[data-layout=mobile] .project-card{--blur-padding:62px}
html[data-layout=mobile] .project-label{padding:0 10%}
html[data-layout=mobile] .project-label strong{font-size:clamp(22px,6vw,29px);line-height:1.12;overflow-wrap:anywhere}
html[data-layout=mobile] .project-label span{font-size:16px;margin-top:8px}
html[data-layout=mobile] #footer{margin:80px 22px 0;height:calc(112px + var(--safe-bottom));min-height:0;padding:24px 0 var(--safe-bottom)}
html[data-layout=mobile] #footer-home{min-height:44px;padding:4px 0}
html[data-layout=mobile] #footer-home img{width:105px}
html[data-layout=mobile] #gallery{height:100%;height:100dvh;overscroll-behavior:none}
html[data-layout=mobile] .gallery-image-boundary{left:0;width:100%;top:var(--phone-gallery-top);height:calc(100% - var(--phone-gallery-top) - var(--safe-bottom));overflow:hidden;isolation:isolate}
html[data-layout=mobile] .gallery-image{left:0;top:0;width:100%;height:100%;max-width:100%;object-fit:contain;transform:none;transform-origin:50% 50%}
html[data-layout=mobile] #gallery-back{left:max(22px,var(--safe-left));top:calc(var(--phone-header) + 2px);width:65px;min-height:44px;font-size:17px;line-height:1.03;display:flex;align-items:center;z-index:5}
html[data-layout=mobile] #gallery-back .back-circle{left:-10px;top:-3px;width:calc(100% + 16px);height:calc(100% + 6px)}
html[data-layout=mobile] .gallery-mobile-tools{position:absolute;right:max(18px,var(--safe-right));top:calc(var(--phone-header) + 2px);display:flex;gap:12px;z-index:5;align-items:center}
html[data-layout=mobile] .gallery-mobile-tools button{min-width:44px;min-height:44px;font:400 19px/1 Schoolbell,cursive;color:#eee;border-radius:50%}
html[data-layout=mobile] #gallery-info-toggle{border:1px solid #ffffff6b;transform:rotate(-5deg)}
html[data-layout=mobile] #gallery-info-toggle[aria-expanded=true]{background:#eee;color:#111}
html[data-layout=mobile] #gallery-zoom:disabled{opacity:.3}
html[data-layout=mobile] .gallery-navigation{inset:auto 0 calc(var(--safe-bottom) + 12px);height:44px;padding:0 max(16px,var(--safe-left));flex-direction:row;justify-content:space-between;pointer-events:none;z-index:4}
html[data-layout=mobile] .gallery-arrow{height:44px;width:44px;padding:8px 11px;pointer-events:auto;border-radius:50%;background:#0005;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
html[data-layout=mobile] #gallery-counter{position:fixed;left:50%;top:calc(var(--phone-header) + 16px);transform:translateX(-50%);font:13px/20px Arial,sans-serif;letter-spacing:.07em;color:#bbb}
html[data-layout=mobile] .gallery-help{display:block;position:absolute;bottom:calc(var(--safe-bottom) + 22px);left:50%;transform:translateX(-50%);margin:0;white-space:nowrap;font:15px/1.3 Schoolbell,cursive;color:#fff;pointer-events:none;text-shadow:0 1px 8px #000,0 1px 8px #000;transition:opacity .2s;z-index:3}
html[data-layout=mobile] #gallery.has-interacted .gallery-help,html[data-layout=mobile] #gallery.show-info .gallery-help{opacity:0}
html[data-layout=mobile] .gallery-dim{display:block;position:absolute;inset:var(--phone-gallery-top) 0 0;opacity:0;background:#0009;transition:opacity .2s ease;pointer-events:none;z-index:1}
html[data-layout=mobile] #gallery.show-info .gallery-dim{opacity:1}
html[data-layout=mobile] .gallery-information{position:absolute;inset:calc(var(--phone-gallery-top) + 20px) max(26px,var(--safe-right)) calc(var(--safe-bottom) + 68px) max(26px,var(--safe-left));width:auto;max-height:none;padding:42px 0 24px;overflow-y:auto;-webkit-overflow-scrolling:touch;font:400 16px/1.65 Arial,Helvetica,sans-serif;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(9px);transition:opacity .2s ease,transform .25s var(--ease),visibility .2s;z-index:2;scrollbar-width:thin;scrollbar-color:#888 transparent}
html[data-layout=mobile] #gallery.show-info .gallery-information{opacity:1;visibility:visible;pointer-events:auto;transform:none}
html[data-layout=mobile] .gallery-information h1{font-size:clamp(26px,7vw,34px);font-weight:500;line-height:1.15;margin-bottom:10px;overflow-wrap:anywhere}
html[data-layout=mobile] .gallery-information .project-facts{margin-top:32px}
html[data-layout=mobile] .gallery-information .project-description{margin-top:24px!important}
html[data-layout=mobile] #gallery-info-close{display:block;position:absolute;top:0;right:0;min-width:64px;min-height:44px;font:18px/1 Schoolbell,cursive;color:#ddd}
html[data-layout=mobile] #gallery-info-close span{font:24px/1 Arial;margin-left:8px}
html[data-layout=mobile] .gallery-information.revealed .info-step{opacity:0;transform:translateY(7px)}
html[data-layout=mobile] #gallery.show-info .info-step{opacity:1;transform:none}
html[data-layout=mobile] #gallery.show-info .info-step:nth-of-type(2){transition-delay:45ms}
html[data-layout=mobile] #gallery.show-info .info-step:nth-of-type(3){transition-delay:90ms}
html[data-layout=mobile] #gallery.show-info .info-step:nth-of-type(4){transition-delay:135ms}
/* Each About screen scrolls naturally. A new gesture at its edge changes panels. */
html[data-layout=mobile] .information{height:100%;height:100dvh;font-size:16px;line-height:1.75;overscroll-behavior:none}
html[data-layout=mobile] #about-language{left:max(28px,var(--safe-left));top:calc(var(--phone-header) + 7px);height:44px;flex-direction:row;align-items:center;gap:14px;z-index:4}
html[data-layout=mobile] .language-button{min-height:44px;min-width:60px;font-size:19px}
html[data-layout=mobile] .language-button.korean-lettering{font-size:25px}
html[data-layout=mobile] .language-divider{display:block;font-size:18px}
html[data-layout=mobile] .language-button svg{left:-7px;top:3px;width:calc(100% + 14px);height:38px}
html[data-layout=mobile] #information-back{display:flex;align-items:center;right:max(26px,var(--safe-right));top:calc(var(--phone-header) + 7px);min-height:44px;min-width:58px;color:#ddd;z-index:4}
html[data-layout=mobile] #information-back .back-circle{left:-9px;top:-1px;width:calc(100% + 18px);height:calc(100% + 2px)}
html[data-layout=mobile] .about-panel{inset:calc(var(--phone-header) + 70px) 0 calc(var(--safe-bottom) + 68px);overflow-y:auto;overscroll-behavior:none;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;padding:14px max(26px,var(--safe-right)) 34px max(26px,var(--safe-left))}
html[data-layout=mobile] .about-wordmark{position:relative;top:auto;left:auto;width:min(65vw,270px);transform:none;margin:12px auto 42px}
html[data-layout=mobile] .info-columns{position:relative;inset:auto;width:100%;display:block;max-height:none;overflow:visible}
html[data-layout=mobile] .studio-record{margin-top:40px}
html[data-layout=mobile] .studio-record h2{margin-bottom:20px}
html[data-layout=mobile] .studio-record dl{column-gap:12px;row-gap:8px}
html[data-layout=mobile] .studio-record section+section{margin-top:32px}
html[data-layout=mobile] .information h1,html[data-layout=mobile] .information h2,html[data-layout=mobile] .information h3{font-size:16px}
html[data-layout=mobile] .team-photograph{width:100%;height:auto;max-height:none;margin:0 0 36px}
html[data-layout=mobile] .team-biographies{overflow:visible;max-height:none}
html[data-layout=mobile] .team-heading{gap:8px 24px;flex-wrap:wrap;margin-bottom:7px}
html[data-layout=mobile] .team-member+.team-member{margin-top:32px}
html[data-layout=mobile] .about-cue{left:calc(50% - 22px);bottom:calc(var(--safe-bottom) + 12px);width:44px;height:44px;padding:0 5px;z-index:3}
html[data-layout=mobile] .contact-layout{inset:calc(var(--phone-header) + 70px) 0 0;width:100%;max-height:none;display:block;overflow-y:auto;overscroll-behavior:none;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;padding:12px max(26px,var(--safe-right)) calc(48px + var(--safe-bottom)) max(26px,var(--safe-left))}
html[data-layout=mobile] .contact-map{width:100%;height:auto;margin-bottom:32px}
html[data-layout=mobile] .contact-details{min-height:0;margin:0;padding:0;gap:30px;display:flex}
html[data-layout=mobile] #contact-top{display:block}
html[data-layout=mobile] #contact-top>*+*{margin-top:26px}
html[data-layout=mobile] #contact-top h1+address{margin-top:8px}
html[data-layout=mobile] .contact-details address{font-style:normal}
html[data-layout=mobile] .contact-details a{display:inline-block;min-height:44px;padding:8px 0}
html[data-layout=mobile] .contact-instagram{width:48px;height:48px;margin:0;padding:0!important;flex-shrink:0}
html[data-layout=mobile] .contact-registration p+p{margin-top:25px}
html[data-layout=mobile] #content-load-error{width:calc(100% - 36px);bottom:calc(20px + var(--safe-bottom));font-size:16px}
@media(max-height:500px){
 html[data-layout=mobile]{--phone-header:calc(var(--safe-top) + 54px);--phone-gallery-top:calc(var(--safe-top) + 98px)}
 html[data-layout=mobile] .home-button{top:calc(var(--safe-top) + 5px);height:44px;width:46px}
 html[data-layout=mobile] #site-header nav{top:calc(var(--safe-top) + 5px)}
 html[data-layout=mobile] .brand-button{width:155px;flex-direction:row;gap:22px}
 html[data-layout=mobile] .cover-dinosaur{width:70px;margin:0}
 html[data-layout=mobile] .cover-wordmark{width:140px}
 html[data-layout=mobile] #scroll-cue{bottom:12px}
 html[data-layout=mobile] .about-panel{top:calc(var(--phone-header) + 56px);bottom:48px}
 html[data-layout=mobile] .contact-layout{top:calc(var(--phone-header) + 56px)}
 html[data-layout=mobile] .about-cue{bottom:3px}
 html[data-layout=mobile] .gallery-navigation{bottom:calc(var(--safe-bottom) + 5px)}
 html[data-layout=mobile] .gallery-help{bottom:calc(var(--safe-bottom) + 17px)}
}
