/* Dark P04 only — current Figma 386:369. Legacy content remains for LIGHT. */
.work-dark-content{display:none}
html[data-theme="dark"] #main #work{display:block;min-height:0;height:auto;padding:0;background:#000!important;overflow:clip}
html[data-theme="dark"] #main #work>.u-background,html[data-theme="dark"] #main #work>.sheet-content{display:none!important}
html[data-theme="dark"] #main #work .work-dark-content{display:flow-root;min-height:78.22916667cqw;box-sizing:border-box;padding:4.47916667cqw 4.16666667cqw 5.72916667cqw;color:#fff;font:400 1.14583333cqw/1.5 'Portfolio Inter','PingFang SC',sans-serif}
#main #work .work-dark-content *{box-sizing:border-box;font-family:inherit}
#main #work .work-dark-content :is(h2,h3,h4,p){margin:0}
#main #work .work-dark-content a{color:inherit;text-decoration:none}
#main #work .work-dark-content :is(h2,h3){font-family:'Portfolio Title','LogoSC Unbounded Sans',sans-serif;font-weight:400;font-synthesis:none}
#main #work .work-dark-content :is(.wd-en,.wd-disciplines,.wd-year>span,.wd-watermark){font-family:'Portfolio Trash','Portfolio Inter','PingFang SC',sans-serif}
#main #work .work-dark-content :is(.wd-latin,.wd-case strong,.wd-tags,.wd-platforms,.wd-nav p){font-family:var(--u-body)}
#main #work .wd-background{position:absolute;inset:0;overflow:clip;pointer-events:none;z-index:-1}
#main #work .wd-background>img{position:absolute;max-width:none}
#main #work .wd-base{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.8),#000 48.688%,#270046 110.31%),linear-gradient(180deg,rgba(93,1,158,0) 32.701%,#27004a)}
#main #work .wd-base:after{content:'';position:absolute;inset:0;background:url('../assets/work-dark/226ff.png') 0 0/100% auto no-repeat;opacity:.02}
#main #work .wd-backdrop{position:absolute;inset:4.16666667cqw 0 5.3125cqw;mask:url('../assets/work-dark/71099.svg') center/100% 100% no-repeat;-webkit-mask:url('../assets/work-dark/71099.svg') center/100% 100% no-repeat}
#main #work .wd-backdrop img{width:100%;height:100%;object-fit:cover}
#main #work .wd-check-top{left:0;top:-16.30208333cqw;width:100%;height:auto;transform:scaleY(-1)}
#main #work .wd-check-bottom{left:0;bottom:-15.36458333cqw;width:100%;height:auto}
#main #work .wd-base-glow{left:4.94791667cqw;bottom:-13.38541667cqw;width:90.10416667cqw;height:auto}
#main #work .wd-blue-ambience{left:36.09375cqw;top:-44.84375cqw;width:68.22916667cqw;height:auto;mix-blend-mode:difference}
#main #work .wd-orange-ambience{left:63.07291667cqw;top:-31.77083333cqw;width:62.5cqw;height:auto}
#main #work .wd-light-trace{left:var(--wd-beam-left,70cqw);top:var(--wd-beam-top,8cqw);width:30.15625cqw;height:53.64583333cqw;object-fit:contain;transform-origin:10% 19%;transform:rotate(60deg);mix-blend-mode:screen;opacity:.25}
#main #work .wd-heading{position:relative}
#main #work .wd-year{display:flex;align-items:center;gap:0.83333333cqw;font-size:1.66666667cqw;line-height:1.3}
#main #work .wd-year>p{font-size:1.66666667cqw;line-height:1.3;font-weight:700}
#main #work .wd-year>span{display:flex;align-items:center;justify-content:center;padding:0.10416667cqw 0.46875cqw;min-width:5.46875cqw;height:1.875cqw;border:0.05208333cqw solid #fff;border-radius:1.25cqw;font-size:1.25cqw;font-weight:700;transform:skewX(-6.63deg)}
#main #work .wd-title-arrow{width:1.31455208cqw;height:1.53438021cqw}
#main #work .wd-title-row{display:flex;align-items:center;gap:0.625cqw;margin-top:0.625cqw}
#main #work .wd-title-row h2{font-size:4.375cqw;line-height:1.2;transform:skewX(-6.63deg) scaleY(.99);transform-origin:left center;white-space:nowrap}
#main #work .wd-en{font-size:1.04166667cqw;line-height:1.2;opacity:.5;transform:skewX(-6.63deg)}
#main #work .work-dark-content .wd-introduction{margin-top:1.875cqw;font-size:1.45833333cqw;line-height:1.5;color:rgba(255,255,255,.8)}
#main #work .wd-disciplines{position:absolute;right:0;top:0;font-size:0.625cqw;line-height:1.9;text-align:right;color:#b4a8c1}
#main #work .wd-projects{position:relative;margin-top:2.60416667cqw}
#main #work .wd-main-grid{display:grid;grid-template-columns:52.08333333cqw minmax(0,1fr);gap:1.25cqw;min-height:39.0625cqw;height:auto}
#main #work .wd-card{position:relative;isolation:isolate;background:#0b0b21;border:0.10416667cqw solid #576aff;border-radius:0.9375cqw;overflow:clip;padding:2.08333333cqw;box-shadow:0 0 1.25cqw 0.05208333cqw rgba(87,106,255,.38)}
#main #work .wd-featured{display:flex;flex-direction:column;justify-content:space-between;gap:1.875cqw;min-height:39.0625cqw}
#main #work .wd-featured-copy{width:23.54166667cqw;max-width:100%;display:flex;flex-direction:column;gap:3.33333333cqw}
#main #work .wd-case{display:flex;gap:0.625cqw;align-items:center;white-space:nowrap;line-height:1.5}
#main #work .wd-case strong{font-size:1.30208333cqw;color:#c47aff;font-weight:700}
#main #work .wd-case>span{font-size:1.04166667cqw;color:#c9c4e8}
#main #work .wd-featured-description{display:flex;flex-direction:column;gap:2.08333333cqw}
#main #work .wd-featured h3{font-size:2.91666667cqw;line-height:1.5}
#main #work .wd-featured h4{font-size:1.5625cqw;line-height:1.5;color:#ede9ff;font-weight:700}
#main #work .wd-featured-description>p{font-size:1.14583333cqw;line-height:1.5;color:#d3d0e8;text-align:justify}
#main #work .wd-featured-bottom{display:flex;justify-content:space-between;align-items:center;gap:1.04166667cqw}
#main #work .wd-tags{display:flex;flex-wrap:wrap;gap:1.04166667cqw;align-items:center}
#main #work .wd-tags>span{padding:0.46875cqw 1.04166667cqw;background:rgba(35,28,68,.62);border:0.05208333cqw solid rgba(117,104,208,.75);border-radius:1.30208333cqw;font-size:0.88541667cqw;line-height:1.5;white-space:nowrap;color:#f9f7ff;font-weight:500}
#main #work .wd-platforms{font-size:1.09375cqw;color:#ded4ff;white-space:nowrap}
#main #work .wd-side-grid{display:grid;grid-template-rows:minmax(min-content,1fr);gap:1.25cqw;min-width:0;min-height:0;height:auto}

#main #work .wd-secondary{min-height:0;display:flex;align-items:center;justify-content:space-between;gap:1.25cqw}

#main #work .wd-case-03{border-color:#ee6e38;box-shadow:0 0 1.25cqw 0.05208333cqw rgba(238,110,56,.38)}
#main #work .wd-side-body{position:relative;flex:none;width:17.34375cqw;display:flex;flex-direction:column;gap:1.66666667cqw}
#main #work .wd-side-copy{display:flex;flex-direction:column;gap:2.08333333cqw}
#main #work .wd-side-description{display:flex;flex-direction:column;gap:1.25cqw}
#main #work .wd-secondary h3{font-size:1.77083333cqw;line-height:1.5}
#main #work .wd-secondary h4{font-size:1.25cqw;line-height:1.5;font-weight:700;color:#f6edff}
#main #work .wd-side-description>p{font-size:0.9375cqw;line-height:1.5;color:#d7d2e8;text-align:justify}
#main #work .wd-side-body .wd-tags{flex-wrap:wrap;width:100%;min-width:0}
#main #work .wd-preview{flex:none;width:14.58333333cqw;height:10.9375cqw;position:relative;border:0.10416667cqw solid #5969fa;border-radius:0.83333333cqw;background:#101434;box-shadow:0 0 0.83333333cqw rgba(89,105,250,.35)}
#main #work .wd-watermark{position:absolute;z-index:-1;right:2.08333333cqw;top:-3.38541667cqw;font-size:10.97395833cqw;line-height:1.2;font-weight:700;background:linear-gradient(180deg,rgba(173,163,235,.25) 50.038%,rgba(173,163,235,.03) 92.928%);background-clip:text;color:transparent;pointer-events:none}
#main #work .wd-secondary .wd-watermark{right:0;top:-3.4375cqw;font-size:8.1646875cqw}
#main #work .wd-glow{position:absolute;z-index:-1;max-width:none;pointer-events:none}
#main #work .wd-featured .wd-g1{left:18.33333333cqw;top:-2.1875cqw;width:45.83333333cqw;height:auto}
#main #work .wd-featured .wd-g2{left:-13.22916667cqw;top:8.125cqw;width:36.45833333cqw;height:auto}
#main #work .wd-featured .wd-g3{left:15.20833333cqw;top:16.40625cqw;width:46.875cqw;height:auto}
#main #work .wd-secondary .wd-g1{left:13.61354167cqw;top:-1.65416667cqw;width:34.10036458cqw;height:auto}
#main #work .wd-secondary .wd-g2{left:-9.86927083cqw;top:6.01822917cqw;width:27.12526042cqw;height:auto}
#main #work .wd-secondary .wd-g3{left:11.28854167cqw;top:12.1796875cqw;width:34.87536458cqw;height:auto}
#main #work .wd-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25cqw;margin-top:1.25cqw}
#main #work .wd-nav>a{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:13.02083333cqw;padding:1.45833333cqw 0.625cqw 0.83333333cqw;background:#0b0b21;border:0.10416667cqw solid #365bfa;border-radius:0.9375cqw;box-shadow:0 0 0.625cqw rgba(54,91,250,.38);text-align:center}
#main #work .wd-nav>a:nth-child(even){border-color:#6244be;box-shadow:0 0 0.625cqw rgba(98,68,190,.38)}
#main #work .wd-nav-glow{position:absolute;top:-0.65104167cqw;left:50%;transform:translateX(-50%);width:14.58333333cqw;height:auto;z-index:-1;pointer-events:none}
#main #work .wd-nav :is(h3,p){width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
#main #work .wd-nav h3{font-size:1.35416667cqw;line-height:1.5;text-wrap:balance}
#main #work .wd-nav p{font-size:0.78125cqw;line-height:1.5;letter-spacing:-.025em;color:#c6b9ea;margin-top:0.10416667cqw}
#main #work .work-dark-content a:focus-visible{outline:0.15625cqw solid #fff;outline-offset:0.26041667cqw}
@media(max-width:1100px){
 html[data-theme="dark"] #main #work .work-dark-content{padding:45px 24px 50px;min-height:0;font-size:16px}
 #main #work .wd-year{gap:10px;font-size:18px;flex-wrap:wrap}
 #main #work .wd-year>p{font-size:18px}
 #main #work .wd-year>span{font-size:16px;height:28px;min-width:70px;padding:2px 8px}
 #main #work .wd-title-arrow{width:18px;height:auto}
 #main #work .wd-title-row{gap:15px;margin-top:14px;flex-wrap:wrap}
 #main #work .wd-title-row h2{font-size:44px;white-space:normal}
 #main #work .wd-en{font-size:14px}
 #main #work .work-dark-content .wd-introduction{font-size:16px;line-height:1.8;margin-top:24px}
 #main #work .wd-disciplines{display:none}
 #main #work .wd-projects{margin-top:30px}
 #main #work .wd-main-grid{grid-template-columns:1fr;min-height:0;height:auto;gap:20px}
 #main #work .wd-featured{min-height:480px;gap:55px}
 #main #work .wd-card{padding:28px;border-width:1px;border-radius:16px}
 #main #work .wd-featured-copy{width:70%;gap:34px}
 #main #work .wd-case{gap:10px;white-space:normal;flex-wrap:wrap}
 #main #work .wd-case strong{font-size:18px}
 #main #work .wd-case>span{font-size:14px}
 #main #work .wd-featured-description{gap:25px}
 #main #work .wd-featured h3{font-size:32px}
 #main #work .wd-featured h4{font-size:20px}
 #main #work .wd-featured-description>p{font-size:16px;line-height:1.8}
 #main #work .wd-featured-bottom{flex-wrap:wrap;gap:16px}
 #main #work .wd-tags{gap:10px}
 #main #work .wd-tags>span{font-size:12px;padding:7px 12px}
 #main #work .wd-platforms{font-size:14px}
 #main #work .wd-side-grid{gap:20px;grid-template-rows:auto;height:auto}
 #main #work .wd-secondary{min-height:300px;gap:25px}
 #main #work .wd-side-body{width:54%;gap:26px}
 #main #work .wd-side-copy{gap:25px}
 #main #work .wd-side-description{gap:18px}
 #main #work .wd-secondary h3{font-size:26px}
 #main #work .wd-secondary h4{font-size:18px}
 #main #work .wd-side-description>p{font-size:15px;line-height:1.8}
 #main #work .wd-preview{width:35%;height:auto;aspect-ratio:4/3;border-radius:12px;border-width:1px}
 #main #work .wd-watermark{font-size:150px;top:-25px;right:20px}
 #main #work .wd-secondary .wd-watermark{font-size:125px;top:-40px}
 #main #work .wd-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
 #main #work .wd-nav>a{height:180px;padding:20px 12px 16px;border-width:1px;border-radius:16px;overflow:clip}
 #main #work .wd-nav-glow{width:230px;top:-25px}
 #main #work .wd-nav h3{font-size:18px}
 #main #work .wd-nav p{font-size:12px}
}
@media(max-width:700px){
 html[data-theme="dark"] #main #work .work-dark-content{padding:34px 20px 38px}
 #main #work .wd-title-row h2{font-size:36px}
 #main #work .wd-year{font-size:15px}
 #main #work .wd-year>p{font-size:15px}
 #main #work .wd-card{padding:22px}
 #main #work .wd-featured-copy{width:100%}
 #main #work .wd-featured h3{font-size:30px}
 #main #work .wd-featured h4{font-size:19px}
 #main #work .wd-secondary{flex-direction:column;align-items:stretch;gap:25px}
 #main #work .wd-side-body{width:100%}
 #main #work .wd-side-body .wd-tags{flex-wrap:wrap;width:auto}
 #main #work .wd-preview{width:100%;height:auto;aspect-ratio:4/3}
 #main #work .wd-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 #main #work .wd-nav>a{height:175px;padding:20px 4px 14px}
 #main #work .wd-nav h3{font-size:16px}
}
