/* BEI digital world. Scene presentation lives here; shared form/gallery styles remain in site.css. */
.digital-site{--ink:#182c40;--muted:#4e5b65;--gold:#99733b;background:#f6f0e6;color:var(--ink);overflow-x:clip}
.digital-site::before,.digital-site::after{display:none}
.digital-site main{flex:1;min-width:0}
.digital-site .site-footer{position:relative;z-index:1;background:transparent;padding-block:48px 22px;margin-top:0}
.digital-site .footer-company{font:600 13px var(--body)}
.digital-site .footer-established{font-size:11px}.digital-site .footer-bottom{font-size:10px}
.scene{position:relative;isolation:isolate;min-height:760px;min-height:max(760px,94svh);overflow:hidden;background:#f5edde;--scene-x:0px;--scene-y:0px;--scene-progress:0}
.scene-world{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:-3;pointer-events:none}
.scene::before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#fff8ecda 0%,#fff8ec88 35%,transparent 70%);pointer-events:none}
.scene-layout{width:min(1360px,calc(100% - 112px));margin:auto;min-height:inherit;display:grid;grid-template-columns:1fr 1.13fr;align-items:center;gap:12px;padding:110px 0 95px}
.scene-copy{position:relative;z-index:4;max-width:590px;min-width:0}
.scene-wordmark{font:500 clamp(110px,13vw,196px)/.9 var(--serif);letter-spacing:-.06em;margin:8px 0 18px}
.entry-mark{display:block;width:74px;height:74px;object-fit:contain;margin-bottom:12px}
.scene-slogan{font:500 clamp(23px,2.6vw,37px)/1.3 var(--serif);text-wrap:balance;margin-bottom:32px}
.scene-title{font:500 clamp(56px,6.3vw,94px)/.98 var(--serif);letter-spacing:-.045em;text-wrap:balance;margin-bottom:28px;max-width:620px}
.scene-kicker{font-size:11px;letter-spacing:.12em;line-height:1.7;margin-bottom:28px;font-weight:600}
.scene-description{font-size:15px;line-height:1.9;max-width:400px;color:#405366;margin-bottom:32px;text-wrap:pretty}
.scene-button,.scene-text-link{display:inline-flex;align-items:center;gap:26px;min-height:48px;padding:13px 25px;border:1px solid #304859;border-radius:40px;text-decoration:none;font:500 16px var(--serif);background:#1c3145;color:#fff8ed;transition:background .2s,transform .2s}
.scene-button:hover{background:#334d64;transform:translateY(-2px)}
.scene-text-link{display:flex;width:fit-content;border:0;background:transparent;color:#243f51;padding:14px 0;margin-top:8px;font:600 12px var(--body)}
.scene-controls{display:flex;align-items:center;gap:16px;position:absolute;top:28px;right:44px;z-index:8;flex-wrap:wrap;justify-content:flex-end}
.scene-controls .language{position:static;display:flex;align-items:center;gap:6px;padding:0;border:0;background:transparent}
.scene-controls .language button{font-size:12px;min-width:44px;min-height:44px;color:inherit}
.motion-toggle{border:1px solid currentColor;color:inherit;background:transparent;border-radius:24px;min-height:44px;padding:6px 14px;font-size:11px;cursor:pointer;opacity:.85}
.scene-topbar{position:absolute;inset:0 0 auto;z-index:7;min-height:90px}
.scene-brand{position:absolute;top:25px;left:44px;display:flex;align-items:center;gap:12px;text-decoration:none;font:28px var(--serif)}
.scene-brand img{width:44px;height:44px;object-fit:contain;background:#f7f0e4;border-radius:50%;padding:3px}
.scene-art{position:relative;min-width:0;height:550px;align-self:center;pointer-events:none;perspective:900px}
.cat-layer{position:absolute;z-index:4;bottom:10px;right:0;width:94%;transform:translate3d(var(--layer-x,0px),var(--layer-y,0px),0)}
.scene-cat{display:block;width:100%;height:auto;filter:drop-shadow(0 22px 20px #1522342d)}
.art-curiosity .cat-layer{width:88%;right:-3%;bottom:0}
.scene-yarn{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:.8}
.scene-yarn path{fill:none;stroke-width:1.3;vector-effect:non-scaling-stroke}
.scene-yarn .yarn-halo{stroke:#fbd39b;stroke-width:6;filter:blur(5px);opacity:.8}
.orbit-object{position:absolute;left:3%;top:0;width:130px;height:130px;z-index:5;transform:translate3d(var(--layer-x,0px),var(--layer-y,0px),0)}
.yarn-orb{position:absolute;inset:14%;border-radius:50%;background:repeating-radial-gradient(ellipse at 36% 34%,#cfdef0 0px,#647c97 2px,#b8cce3 3px,#5a7492 5px);box-shadow:inset -14px -9px 20px #183047b0,0 0 24px #eabc7670;transform:rotate(-30deg);overflow:hidden}
.yarn-orb i{position:absolute;inset:0;border-radius:50%;border:1px solid #f7d29b;transform:rotate(30deg) scaleX(.6)}.yarn-orb i:nth-child(2){transform:rotate(70deg) scaleX(.6)}.yarn-orb i:nth-child(3){transform:rotate(120deg) scaleX(.6)}
.orbit-ring{position:absolute;inset:32% -25%;border:1px solid #b98c48;border-radius:50%;transform:rotate(-24deg);box-shadow:0 0 12px #ffdc8a70}.orbit-ring.second{transform:rotate(58deg)}
.orbit-ring::after{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff5cf,#aa753b 65%,#493723);left:4%;top:12%;box-shadow:0 3px 6px #3e352940}
.stage-ring{position:absolute;bottom:-7px;right:-12%;width:105%;height:48px;border:1px solid #c5a16688;border-radius:50%;background:linear-gradient(#fff8e655,#d7c4a022);z-index:2}
.scene-imagination{background:#0e2135;color:#fff8ec}
.scene-imagination .scene-world{filter:brightness(.2) saturate(.4);opacity:.66}
.scene-imagination::before{background:radial-gradient(ellipse at 80% 40%,#39597855,transparent 50%),linear-gradient(90deg,#0d1e32 0%,#0d1e32dd 30%,#0e223580 100%)}
.scene-imagination::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.45;background-image:radial-gradient(circle,#ebcc93 1px,transparent 1.5px),radial-gradient(circle,#d0e4f7 1px,transparent 1.4px);background-size:137px 137px,223px 223px;background-position:28px 18px,91px 83px}
.scene-imagination .scene-description{color:#d1dce4}.scene-imagination .scene-kicker{color:#e5c690}
.scene-imagination .scene-layout{padding-top:140px;padding-bottom:120px}
.art-imagination .cat-layer{width:116%;right:-12%;bottom:100px}
.art-imagination .stage-ring{display:none}
.scene-nav{display:grid;grid-template-columns:1fr;max-width:360px;margin-top:30px;gap:8px}
.scene-nav-link{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none;border:1px solid #b9cddd55;border-radius:4px 20px 4px 4px;background:#b4d0e00b;padding:13px 17px;min-height:48px;font-size:13px;font-weight:600;transition:background .2s,border-color .2s}
.scene-nav-link:hover{background:#aac6de20;border-color:#ddbf85}
.scene-scroll{position:absolute;bottom:25px;left:56px;display:flex;align-items:center;gap:24px;min-height:44px;color:#d7e2ec;text-decoration:none;font-size:11px;letter-spacing:.08em}
.scene-scroll>span:last-child{font-size:20px}
.floating-card{position:absolute;padding:10px;background:linear-gradient(135deg,#ffffffb8,#e6edf4b0);border:1px solid #fff8;border-radius:10px;box-shadow:0 20px 50px #091b302a;z-index:2;transform:translate3d(var(--layer-x,0px),var(--layer-y,0px),0) rotate(var(--card-angle,-8deg));overflow:hidden}
.card-web{width:235px;height:175px;top:0;left:15%;--card-angle:-9deg}
.card-phone{width:83px;height:158px;left:-2%;bottom:110px;--card-angle:-13deg}
.card-data{width:170px;height:119px;right:-3%;bottom:30px;--card-angle:10deg}
.card-chrome{display:flex;gap:4px;margin-bottom:10px}.card-chrome i{width:4px;height:4px;border-radius:50%;background:#87959d}
.mini-landscape{height:75px;border-radius:4px;background:linear-gradient(145deg,transparent 40%,#8c9ea5 40% 55%,transparent 55%),linear-gradient(30deg,#8599a1 35%,transparent 35%),linear-gradient(#b6d1e1,#fff1d4)}
.mini-lines{height:22px;margin-top:12px;background:linear-gradient(#8599a144 0 3px,transparent 3px 9px,#8599a144 9px 12px,transparent 12px 18px,#8599a144 18px 21px);width:72%}
.phone-dot{width:22px;height:3px;border-radius:4px;background:#526473;margin:auto}.mini-orbit{border:1px solid #aa8650;border-radius:50%;width:48px;height:48px;margin:18px auto;box-shadow:inset 0 0 0 10px #9cb0bd33}
.chart-bars{display:flex;align-items:end;gap:8px;height:55px;padding:8px;border-bottom:1px solid #7597ad66}.chart-bars i{width:15%;height:30%;background:#c9a76a}.chart-bars i:nth-child(2){height:55%}.chart-bars i:nth-child(3){height:45%}.chart-bars i:nth-child(4){height:70%}.chart-bars i:nth-child(5){height:95%}
.scene-imagination .floating-card{background:linear-gradient(135deg,#82b5d933,#142e48aa);border-color:#9cbbd477;box-shadow:0 0 25px #8daedd12}
.scene-imagination .mini-landscape{opacity:.7}.scene-imagination .card-web{top:10px;left:2%}.scene-imagination .card-data{bottom:0;right:0}.scene-imagination .card-phone{left:13%;bottom:0}
.learning-symbol,.sport-symbol{position:absolute;width:92px;height:92px;color:#e0bf86;z-index:1;transform:translate3d(var(--layer-x,0px),var(--layer-y,0px),0)}
.learning-symbol{bottom:10%;left:-12%;transform:rotate(-12deg)}.sport-symbol{top:-16px;right:0;width:78px}
.learning-symbol svg,.sport-symbol svg{width:100%;fill:#adc8e011;stroke:currentColor;stroke-width:1.2}
.scene-collaboration{min-height:760px}.scene-collaboration .scene-world{object-position:65% center}.art-collaboration .cat-layer{width:64%;right:0;bottom:5px}.art-collaboration .card-web{top:40px;left:0}.art-collaboration .card-phone{bottom:90px;left:-5%}.art-collaboration .card-data{bottom:145px;left:18%;right:auto;z-index:3}
.scene-content{position:relative;background:radial-gradient(ellipse at 95% 20%,#c3d7e533,transparent 45%),#f5efe5;padding:40px 0 70px}
.scene-content::before{content:'';position:absolute;top:0;bottom:0;left:30px;width:1px;background:linear-gradient(transparent,#c7a368,transparent)}
.scene-content .services{background:transparent;padding:65px 0}.scene-content .service-grid{gap:24px}.scene-content .service-card{padding:28px;border:1px solid #c1b39788;border-radius:6px 40px 6px 6px;background:#fffaf380}
.scene-content .service-card h3{font-size:27px}.scene-content .service-card p{font-size:14px;line-height:1.9}
.scene-content .case-card{border:1px solid #c1b39766;border-radius:8px;overflow:hidden;background:#fffbf4}.scene-content .case-card h3,.scene-content .case-card p{margin-inline:24px}.scene-content .case-media{background:radial-gradient(ellipse at center,#6f8b9e,#162e45);color:#e7d0a4;height:190px}.scene-content .case-media.alternate{background:radial-gradient(ellipse at center,#e9d7b7,#bfaa88);color:#243b4c}
.digital-subpage{position:relative;background:radial-gradient(ellipse at 85% 5%,#d2dfee77,transparent 42%),#f6f0e6;isolation:isolate}
.digital-subpage .sub-header{position:relative;z-index:3}.digital-subpage .sub-main{position:relative;z-index:2;padding-top:40px}
.digital-subpage .sub-main>h1{font-size:clamp(48px,7vw,84px);letter-spacing:-.035em;margin-bottom:45px}
.subpage-orbit{position:absolute;top:85px;right:0;width:48%;height:640px;border:1px solid #bb965633;border-radius:50% 0 0 50%;transform:skewY(-12deg);z-index:-1;pointer-events:none;box-shadow:inset 22px 0 80px #c8dded22}
.digital-subpage .about-grid figure{position:relative;padding:25px;background:url('/assets/scenes/ivory-world.webp') center/cover;border-radius:220px 220px 12px 12px}.digital-subpage .about-grid img{border-radius:0;max-height:490px;object-fit:contain}
.digital-subpage .about-copy p{font-size:15px;line-height:2}.digital-subpage .about-services{padding-bottom:30px}.digital-subpage .service-card{background:#fffaf477;border-radius:6px 24px 6px 6px}
.digital-subpage .contact-form-panel{background:#fffcf5bd;border:1px solid #d2c3aa;padding:30px;border-radius:6px 44px 6px 6px}
.digital-subpage .concept-art{border:1px solid #c4b18f;border-radius:14px 70px 14px 14px;background:radial-gradient(ellipse at 65% 20%,#456079,#152c40)}
.digital-subpage .concept-art .concept-symbol{color:#e2c698}.digital-subpage .concept-art-1{background:radial-gradient(ellipse at 65% 20%,#e2cead,#a9bac3)}.digital-subpage .concept-art-2{background:radial-gradient(ellipse at 65% 20%,#8ca8b9,#3b5167)}
html:lang(zh-Hant) .digital-site .scene-title{font-size:clamp(38px,4.7vw,66px);line-height:1.3;letter-spacing:.01em}html:lang(zh-Hant) .digital-site .scene-slogan{font-size:clamp(23px,2.4vw,33px);line-height:1.6}html:lang(zh-Hant) .digital-site .scene-description{font-size:14px;line-height:2}
/* Motion activates only after JS capability checks. Static is the safe default. */
body[data-motion=on] [data-scene][data-visible=true] .scene-cat{animation:cat-breathe 7s ease-in-out infinite}
body[data-motion=on] [data-scene][data-visible=true] .orbit-ring{animation:orbit-pulse 6s ease-in-out infinite}
@keyframes cat-breathe{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes orbit-pulse{50%{opacity:.45}}
body[data-motion=off] [data-depth]{--layer-x:0px!important;--layer-y:0px!important}
@media(min-width:1600px){.scene-art{height:660px}.art-curiosity .cat-layer{width:92%}}
@media(max-width:1050px){.scene-layout{width:calc(100% - 64px);grid-template-columns:1fr 1fr}.scene-art{height:450px}.scene-title{font-size:64px}.card-web{width:180px;height:150px}.card-phone{width:65px;height:125px}.art-collaboration .cat-layer{width:77%}.scene-content .service-grid{gap:12px}.scene-content .service-card{padding:20px}}
@media(max-width:700px){
.scene{min-height:0}.scene-layout{min-height:0;width:calc(100% - 40px);grid-template-columns:1fr;gap:8px;padding:112px 0 26px}.scene-copy{max-width:100%;text-align:left}.scene-world{object-position:70% center}.scene::before{background:linear-gradient(#fff8eef0 0%,#fff8eedd 35%,#fff8ee22 72%)}
.scene-controls{top:15px;right:15px;gap:4px}.motion-toggle{font-size:10px;padding:5px 10px}.scene-controls .language{gap:0}.scene-controls .language button{font-size:11px}.entry-mark{width:56px;height:56px;margin-bottom:18px}.scene-wordmark{font-size:116px;margin-bottom:12px}.scene-slogan{font-size:26px;max-width:340px}.scene-title{font-size:53px;max-width:400px;margin-bottom:20px}.scene-kicker{font-size:10px;margin-bottom:20px}.scene-description{font-size:13px;max-width:340px;margin-bottom:24px}.scene-button{font-size:15px;min-height:46px;padding:11px 22px}.scene-art{height:340px;margin-top:10px}.art-curiosity .cat-layer{width:86%;right:0;bottom:0}.orbit-object{width:84px;height:84px;top:15px;left:8%}.stage-ring{right:0;width:90%;bottom:0}
.scene-brand{left:20px;top:20px;font-size:24px;gap:8px}.scene-brand img{width:35px;height:35px}.scene-topbar .scene-controls{max-width:240px}.scene-imagination .scene-layout{padding-top:120px;padding-bottom:66px}.scene-imagination::before{background:linear-gradient(#102237ee 0%,#102237da 45%,#132c4299 100%)}.scene-nav{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:22px}.scene-nav-link{min-height:64px;flex-direction:column;align-items:flex-start;padding:10px 9px;border-radius:4px 16px 4px 4px;font-size:11px;gap:7px;line-height:1.5}.scene-nav-link .arrow-icon{width:15px;height:15px;align-self:flex-end}.art-imagination{height:300px}.art-imagination .cat-layer{width:108%;bottom:48px;right:-7%}.scene-scroll{left:20px;bottom:13px;font-size:10px}.card-web{width:128px;height:100px;top:5px!important;left:0!important;padding:6px}.mini-landscape{height:43px}.card-chrome{margin-bottom:6px}.mini-lines{height:16px;margin-top:7px}.card-phone{width:55px;height:98px;bottom:12px!important;left:8%!important;padding:6px}.mini-orbit{width:30px;height:30px;margin:12px auto}.card-data{width:95px;height:76px;right:0;bottom:0;padding:6px}.chart-bars{height:37px;padding:4px;gap:4px}.learning-symbol{width:58px;left:0;bottom:35px}.sport-symbol{width:50px;height:50px;right:5%;top:6px}.scene-collaboration .scene-layout{padding-top:66px}.art-collaboration{height:350px}.art-collaboration .cat-layer{width:66%;right:0}.art-collaboration .card-web{top:42px!important;left:3%!important}.art-collaboration .card-data{left:7%;bottom:142px}.art-collaboration .card-phone{bottom:40px!important;left:0!important}.scene-content{padding:10px 0 30px}.scene-content::before{left:9px}.scene-content .services{padding:45px 0 15px}.scene-content .service-grid{grid-template-columns:1fr;gap:16px}.scene-content .service-card{padding:24px}.scene-content .case-media{height:160px}.digital-site .site-footer{padding-top:36px;gap:16px}.digital-subpage .sub-main{padding-top:20px}.digital-subpage .contact-form-panel{padding:22px 18px}.digital-subpage .about-grid figure{max-width:300px}.digital-subpage .sub-main>h1{font-size:44px}.digital-subpage .about-copy p{font-size:14px}.digital-site .footer-established{display:block;margin-top:7px}html:lang(zh-Hant) .digital-site .scene-title{font-size:39px;line-height:1.35}html:lang(zh-Hant) .digital-site .scene-slogan{font-size:24px}.scene-text-link{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.digital-site *,.digital-site *::before,.digital-site *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.digital-site [data-depth]{--layer-x:0px!important;--layer-y:0px!important}}
/* Keep card art full width; only the foreground layers move. */
.scene-content .case-media{width:100%;max-width:none}
.scene [data-depth]{transition:transform .55s cubic-bezier(.2,.7,.2,1)}
body[data-motion=off] [data-depth]{transition:none}
.scene-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:25px 44px;flex-wrap:wrap}
.scene-topbar .scene-brand,.scene-topbar .scene-controls{position:static}
@media(max-width:700px){.scene-topbar{padding:15px 20px;gap:8px}.scene-topbar .scene-brand{margin-top:5px}.scene-topbar .scene-controls{max-width:230px}.scene-collaboration .scene-world{object-position:70% center}}
/* Reflow at high zoom; release short unbroken Chinese endings only in narrow text columns. */
.digital-subpage .sub-header{flex-wrap:wrap;gap:8px;justify-content:space-between}
.digital-subpage .sub-header .language{flex-wrap:wrap;gap:2px;max-width:100%}
.digital-subpage .sub-header .language button{min-height:44px;min-width:44px;padding:6px}
.digital-site .scene-copy,.digital-site .about-copy,.digital-site .service-card,.digital-site .case-card,.digital-site .contact-form-panel{min-width:0;container-type:inline-size}
@container(max-width:240px){.phrase-end{white-space:normal}}
/* Header remains in normal flow when controls wrap at high zoom. */
.scene-imagination .scene-topbar{position:relative;min-height:94px}
.scene-imagination .scene-layout{min-height:calc(94svh - 94px);padding-top:40px}
@container(max-width:260px){
 .scene-title{font-size:36px!important;line-height:1.12!important}
 .scene-wordmark{font-size:70px;letter-spacing:-.06em;white-space:nowrap}
 .scene-nav{grid-template-columns:1fr}
 .scene-nav-link{flex-direction:row;align-items:center;font-size:12px}
 .scene-nav-link .arrow-icon{align-self:center;flex-shrink:0}
 .scene-button{padding:12px 16px;gap:12px}
}
@media(max-width:700px){.scene-imagination .scene-layout{padding-top:30px;min-height:0}.scene-imagination .scene-topbar{min-height:80px}}
