/* Shared flat pixel environment and responsive layouts. */
:root{--pixel-bg:#eaf3ff;--pixel-ink:#164baa}
html,body{background-color:var(--pixel-bg)!important;background-image:linear-gradient(90deg,#a9c9fa33 1px,transparent 1px),linear-gradient(#a9c9fa33 1px,transparent 1px),conic-gradient(from 90deg at 25% 25%,#d0e2ff 25%,transparent 0),conic-gradient(from 180deg at 75% 75%,#6399e728 25%,transparent 0)!important;background-size:24px 24px,24px 24px,192px 192px,288px 288px!important}
.world{background:transparent!important}.world::before{display:none!important}#heading{color:#1753ab;text-shadow:0 2px 0 #fff!important}.back-bottom{background:#eaf3fff2;color:#164baa;border:2px solid #75a4e7;border-radius:8px;box-shadow:4px 4px 0 #b2cef7}
.hero{position:absolute;inset:0;overflow:hidden}.hero video{width:100%;height:100%;object-fit:cover}.corner-title{width:290px!important;height:auto!important;aspect-ratio:1672/941}.corner-title img{top:0!important}
body:has(#works){color:#18437e}body:has(#works)::before{display:none}body:has(#works) header a,body:has(#works) header small,body:has(#works) footer{color:#18437e}body:has(#works) footer a{background:#f4f8ff;border-color:#8bade0}
@media(pointer:fine){html,body,body *{cursor:url('assets/cursor-arrow.png') 2 2,auto!important}body:active,body:active *{cursor:url('assets/cursor-hand-pressed.png') 14 15,pointer!important}}
@media(max-width:900px){
 html,body{height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
 .stage{height:auto;min-height:100svh;overflow:visible;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:60px 0 40px}
 .hero{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:16/9;flex-shrink:0;box-shadow:0 8px 0 #9dbfee55}
 .hero video{object-fit:contain}.hero .brand{width:86%;max-width:none}.hero .corner-title{width:26%!important;left:12px;top:10px}.hero .replay{width:30px;height:30px;right:10px;top:10px;font-size:20px}
 .hero .prompt{bottom:4%;font-size:10px;padding:7px 11px;letter-spacing:0;white-space:nowrap}.hero .status{bottom:0;font-size:10px}
 .stage .entries{position:relative;inset:auto;display:flex;flex-direction:column;align-items:center;width:100%;gap:4px;min-height:140px;flex-shrink:0}
 .stage .portal,.stage .portal:nth-child(2),.stage .portal:hover{position:relative;left:auto;top:auto;width:min(76vw,380px);max-width:none;height:auto;aspect-ratio:3/1;transform:none;flex-shrink:0;margin:0;padding:0}
 .stage.ready .portal{animation:mobile-arrive .8s both}.stage.ready .portal:nth-child(2){animation-delay:.12s}
 .world{min-height:100svh}.gallery{min-height:100svh;padding:85px 0 90px}#heading{top:25px;font-size:clamp(21px,5.5vw,32px);width:100%;white-space:normal;text-align:center}
 .carousel{height:calc(100svh - 175px);min-height:380px;width:100vw}.student-card{width:min(66vw,300px)}.float{max-width:17vw}.back-bottom{bottom:max(14px,env(safe-area-inset-bottom));padding:11px 22px}
 body:has(#works) header{height:66px;padding:0 12px}body:has(#works) header span{font-size:14px}body:has(#works) header a{font-size:11px}body:has(#works) main{max-width:100%;box-shadow:none}
}
@keyframes mobile-arrive{0%{opacity:0;transform:translateY(16px) rotate(-4deg)}45%{opacity:1;transform:translateY(-3px) rotate(3deg)}75%{transform:rotate(-1deg)}100%{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.stage.ready .portal{animation:none;opacity:1}}
html,body{background-image:none!important;background-color:#edf5ff!important}body{isolation:isolate}canvas.pixel-texture{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}body::before{display:none!important}
@media(max-width:900px){.stage{justify-content:flex-start;padding-top:0;gap:20px}.hero{margin-top:0;align-self:flex-start}}
main .portfolio-video{display:block;width:100%;height:auto;max-width:100%;background:#000;aspect-ratio:16/9;object-fit:contain;margin:0}

:root{--pixel-bg:#fcfdff;--pixel-ink:#3367b3;--palette-light:#5e96e2;--palette-deep:#3367b3}html,body{background-color:#fcfdff!important}#heading{color:#3367b3!important}.back-bottom{color:#3367b3;background:#fcfdfff2;border-color:#5e96e2;box-shadow:3px 3px 0 #5e96e233}body:has(#works) header a,body:has(#works) header small,body:has(#works) footer{color:#3367b3}body:has(#works) footer a{background:#fcfdff;border-color:#5e96e2}.reading-progress{background:#5e96e2!important}

/* Sampled palette: primary #3367b3, secondary #5e96e2, accent #fbfdff. */
:root{--pixel-bg:#3367b3;--pixel-ink:#fbfdff}
html,body{background-color:#3367b3!important}
#heading{color:#fbfdff;text-shadow:0 2px 0 #28558f!important}
.back-bottom{background:#3367b3eb;color:#fbfdff;border-color:#5e96e2;box-shadow:3px 3px 0 #28558f}
body:has(#works),body:has(#works) header a,body:has(#works) header small,body:has(#works) footer{color:#fbfdff}
body:has(#works) footer a{background:#3367b3;border-color:#5e96e2}
.hero{box-shadow:0 8px 0 #5e96e255}
html,body{background-color:#007bff!important;background-image:radial-gradient(ellipse at 46% 40%,#d7f5fa 0%,#b0e0e6bb 22%,transparent 65%),linear-gradient(125deg,#79cddd 0%,#36aef1 32%,#007bff 64%,#b0e0e6 100%)!important;background-attachment:fixed!important;background-size:cover!important}

/* Pure blues, opaque carousel cards and height-aware sizing. */
html,body{background-image:radial-gradient(ellipse at 42% 38%,#d4e8ff 0%,#92c1ff99 25%,transparent 66%),linear-gradient(125deg,#82b8ef 0%,#429bea 32%,#087bff 65%,#b0d2ff 100%)!important}
#heading{color:#fff!important;text-shadow:0 2px 10px #145fb04d!important;position:relative;left:auto;top:auto;transform:none;margin:0 0 16px;flex-shrink:0}
.gallery{min-height:max(100svh,320px);padding:28px 0 84px;display:flex;justify-content:flex-start;gap:0}
.carousel{height:calc(100svh - 170px);min-height:160px;-webkit-mask-image:none!important;mask-image:none!important}
.student-card{width:min(23vw,calc((100svh - 190px)*.5625),460px)}
@media(max-width:900px){.gallery{padding:22px 0 80px}#heading{position:relative;top:auto;left:auto;transform:none;margin-bottom:16px}.carousel{height:calc(100svh - 160px);min-height:160px}.student-card{width:min(66vw,calc((100svh - 190px)*.5625),300px)}}
@media(max-height:360px){.student-card{width:100px}.carousel{height:180px}.gallery{min-height:320px}.back-bottom{position:absolute}}
body:has(#works) header{height:94px;padding:8px 24px;gap:18px}body:has(#works) header>a,body:has(#works) header>span{width:210px;min-height:68px;flex:0 1 210px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:url('assets/menu-pixel.png') center/100% 100% no-repeat;color:#fff!important;padding:15px 22px;font-size:14px;text-shadow:0 1px 3px #131151}body:has(#works) header small{color:#fff!important;margin:0;font-size:10px}body:has(#works) header>span{font-size:17px}
@media(max-width:650px){body:has(#works) header{height:76px;gap:6px;padding:5px 8px}body:has(#works) header>a,body:has(#works) header>span{flex-basis:32%;min-height:54px;font-size:10px;padding:10px 11px}body:has(#works) header>span{font-size:13px}body:has(#works) header small{font-size:8px}}
/* Shared gallery title and paired navigation. */
#heading{line-height:1;min-height:40px;z-index:700;margin-bottom:2px!important}.pixel-heading{display:block;margin:0 auto;image-rendering:pixelated;max-width:94vw}.gallery-subtitle{font:500 12px/1.5 Arial,sans-serif;letter-spacing:.22em;color:#fff;margin:0 0 12px;z-index:700;text-align:center;pointer-events:none}.gallery-navigation{position:fixed;z-index:900;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;justify-content:center;gap:18px}.gallery-navigation a{width:210px;height:62px;display:grid;place-items:center;background:url('assets/menu-pixel.png') center/100% 100% no-repeat;color:#fff;text-decoration:none;font-size:14px;font-weight:700;text-shadow:0 1px 3px #121751;padding:10px 20px;text-align:center}.float.f6{width:200px;left:15%;top:11%}.is-video-gallery .f6{display:none!important}.is-video-gallery .world{height:100svh;min-height:500px;overflow:hidden}.is-video-gallery .gallery{padding:20px 0 90px;min-height:100svh}.is-video-gallery .gallery-subtitle{margin:0}.is-video-gallery .stellar-stage{position:absolute;inset:0;width:100%;height:100%;min-height:0;overflow:visible}.is-video-gallery .stellar-controls{position:absolute;z-index:750;right:22px;bottom:94px}.is-video-gallery .floaters{z-index:1;opacity:.7}.is-video-gallery #heading,.is-video-gallery .gallery-subtitle{pointer-events:none}.orbit-center{position:absolute;left:50%;top:50%;width:190px;transform:translate(-50%,-50%);pointer-events:none;z-index:450;filter:drop-shadow(0 12px 20px #13438745)}.orbit-center img{width:100%;height:auto;display:block;animation:drift 8s ease-in-out infinite}.galaxy-card{padding:0!important;background:transparent!important;border:0!important;backdrop-filter:none!important;box-shadow:none!important;border-radius:16px;outline:none}.galaxy-card img{height:100%!important;object-fit:contain!important;border-radius:0!important;filter:drop-shadow(0 9px 12px #174d6d44)}.galaxy-card span{display:none}.galaxy-card:hover,.galaxy-card:focus-visible{outline:none;box-shadow:none;filter:drop-shadow(0 0 8px #007bff) drop-shadow(0 0 20px #5ebcff)}.stellar-detail{width:min(520px,94vw);background:#1c59a1bf;padding:10px;border:1px solid #a2d8ff99}.stellar-detail .detail-art{max-height:78svh}.stellar-detail .detail-layout{gap:2px}.stellar-detail h2,.stellar-detail p{display:none}.detail-actions{margin-top:8px}.detail-close{position:sticky;top:0;z-index:3}
@media(max-width:700px){.gallery-navigation{gap:8px;bottom:max(10px,env(safe-area-inset-bottom))}.gallery-navigation a{width:44vw;max-width:210px;height:55px;font-size:12px;padding:10px}.gallery-subtitle{font-size:10px;letter-spacing:.16em}.float.f6{width:135px;left:8%;top:11%}.orbit-center{width:125px}.is-video-gallery .stellar-controls{right:10px;bottom:82px}.is-video-gallery .world{min-height:100svh}}
/* Use the supplied bilingual title artwork within its existing centered title area. */
#heading{height:86px!important;min-height:86px!important;display:flex;align-items:center;justify-content:center;margin:0 auto 4px!important;flex-shrink:0}.gallery-heading-art{display:block;width:100%;height:100%;overflow:visible}.gallery-navigation{gap:64px!important}.gallery-navigation a{display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;padding:0 18px!important}.gallery-navigation a span{display:block;transform:translateY(-3px)}
@media(max-width:700px){.gallery-navigation{width:100%;gap:20px!important;padding:0 12px}.gallery-navigation a{width:42vw;height:55px;flex:0 1 210px;padding:0 8px!important}.gallery-navigation a span{transform:translateY(-2px)}}

/* Center labels on the opaque artwork, whose transparent footer occupies 28%. */
.gallery-navigation a{position:relative}
.gallery-navigation a span{position:absolute!important;inset:0 0 28%!important;display:flex!important;align-items:center;justify-content:center;transform:none!important;line-height:1!important}
body:has(#works) header>a,body:has(#works) header>span{position:relative;box-sizing:border-box;height:54px;min-height:54px;flex-direction:row;gap:8px;padding:0 16px;background:rgba(25,112,219,.35);border:1px solid #ffffff70;border-radius:14px;backdrop-filter:blur(12px);color:#fff!important;box-shadow:inset 0 1px 12px #ffffff24,0 0 18px #ffffff16;text-shadow:none;line-height:1.2;white-space:nowrap;transition:transform .18s ease-out,box-shadow .22s,background .22s;isolation:isolate}
body:has(#works) header>a:before,body:has(#works) header>span:before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at var(--glow-x,50%) var(--glow-y,50%),#ffffff66,transparent 65%);opacity:0;transition:opacity .2s;z-index:-1}
body:has(#works) header>a:hover,body:has(#works) header>span:hover{box-shadow:0 0 24px #ffffff66,inset 0 0 12px #ffffff44;background:#348cfb70}
body:has(#works) header>a:hover:before,body:has(#works) header>span:hover:before{opacity:1}
body:has(#works) header>span{width:auto;flex-basis:260px;font-size:16px}
body:has(#works) header .menu-divider{font:400 15px/1 Arial;opacity:.7}
body:has(#works) header small{display:inline!important;margin:0!important;font:500 13px/1.2 Arial,sans-serif!important;white-space:nowrap}
@media(max-width:650px){body:has(#works) header{gap:7px;padding:8px;height:80px}body:has(#works) header>a,body:has(#works) header>span{height:48px;min-height:48px;padding:0 7px;font-size:10px;border-radius:10px;gap:4px}body:has(#works) header>span{flex-basis:42%;font-size:11px}body:has(#works) header small{font-size:9px!important}}
@media(prefers-reduced-motion:reduce){body:has(#works) header>a,body:has(#works) header>span{transform:none!important;transition:none}}

.sound-unlock{position:absolute;right:58px;top:16px;z-index:30;color:#fff;background:#2178d8aa;border:1px solid #fff8;border-radius:12px;backdrop-filter:blur(10px);padding:9px 14px;font:600 12px/1.2 Arial,sans-serif;box-shadow:0 0 15px #fff4}.sound-unlock[hidden]{display:none}

.gallery-navigation a:active,.gallery-navigation a.is-pressed{filter:hue-rotate(75deg) saturate(1.8) brightness(1.2);transform:translateY(2px)}

.is-visual-gallery .carousel{width:100vw!important;overflow:visible!important;max-width:none}.is-visual-gallery .gallery{overflow:visible}
