*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:#fafafa;color:#171719;font-family:Arial,"Microsoft YaHei",sans-serif}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}header{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd;margin:0 5%}.logo{font-size:25px;font-weight:800;display:flex;gap:18px;align-items:center}.logo span{font-size:12px;letter-spacing:1px}nav{display:flex;gap:36px;font-size:14px}nav a:hover{color:#315dff}main{margin:auto}.hero{padding:65px 5% 55px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:600}h1{font-size:clamp(56px,7.6vw,114px);line-height:1.2;letter-spacing:-5px;margin:36px 0;position:relative;font-weight:800}h1 span{color:#315dff}h1 i{font-style:normal;position:absolute;right:5%;top:0;color:#315dff;font-size:190px;line-height:1}.intro{display:flex;justify-content:space-between;align-items:end;margin-top:36px}.intro p{font-size:17px;line-height:1.9;margin:0;color:#555}.intro a{border-bottom:1px solid #222;padding:12px 0;min-width:190px;font-size:16px}.intro a span{float:right}#work{padding:45px 5% 95px}.section-title{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #bbb;padding:25px 0 32px}.section-title h2{font-size:26px;margin:0}.section-title h2 span{font-size:14px;font-weight:400;color:#777;margin-left:18px}.section-title p{font-size:13px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:55px 28px}.project:first-child{grid-column:1/-1}.cover{position:relative;display:block;width:100%;padding:0;border:0;background:#ededf0;overflow:hidden}.cover img{width:100%;display:block;aspect-ratio:16/9;object-fit:cover;transition:transform .5s}.project:first-child .cover img{aspect-ratio:2.25;object-fit:cover}.cover:hover img{transform:scale(1.025)}.cover span{position:absolute;bottom:20px;right:20px;background:#fff;color:#151515;padding:12px 18px;border-radius:30px;font-size:14px;box-shadow:0 3px 20px #0001}.caption{display:flex;justify-content:space-between;padding-top:20px;gap:14px}.caption p{font-size:12px;color:#777;margin:0 0 9px}.caption h3{font-size:23px;margin:0;font-weight:600}.caption b{font-size:14px;color:#888;font-weight:400}.about{background:#efeff1;padding:90px 7%;display:grid;grid-template-columns:1fr 1.2fr;gap:10%}.about h2{font-size:46px;line-height:1.35;margin:25px 0 35px;letter-spacing:-2px}.portrait{width:190px;border-radius:100px 100px 0 0;filter:grayscale(1)}.bio h3{font-size:22px}.bio p{font-size:16px;line-height:1.9;color:#666}.skills{display:flex;flex-wrap:wrap;gap:9px;margin:25px 0 40px}.skills span{border:1px solid #c5c5c9;border-radius:30px;padding:8px 13px;font-size:14px}h4{font-size:13px;letter-spacing:1px}ol{padding:0;list-style:none}li{display:flex;gap:24px;border-top:1px solid #ceced2;padding:19px 0;font-size:14px;line-height:1.7}time{color:#666;flex-shrink:0}small{display:block;color:#777;font-size:13px;margin-top:5px}#contact{background:#315dff;color:white;padding:75px 7%}#contact h2{font-size:clamp(45px,6vw,78px);line-height:1.3;margin:25px 0 35px;letter-spacing:-3px}#contact>a{font-size:26px;border-bottom:1px solid #ffffff80;padding-bottom:9px}#contact>p:last-child{font-size:14px;margin-top:30px;color:#e0e6ff}footer{padding:30px 5%;display:flex;justify-content:space-between;font-size:12px;gap:20px}dialog{border:0;width:min(1120px,95vw);padding:0;max-height:92vh;background:#fafafa}dialog::backdrop{background:#111d}.dialogbar{position:sticky;top:0;background:#fafafa;display:flex;align-items:center;justify-content:space-between;padding:20px 24px;z-index:2;border-bottom:1px solid #ddd}.dialogbar h2{font-size:20px;margin:0}.dialogbar button{border:1px solid #bbb;background:white;padding:10px 14px;white-space:nowrap}#project-images{padding:20px}#project-images img{width:100%;display:block;margin-bottom:18px}.skip{position:absolute;top:-60px}.skip:focus{top:0;background:white;padding:15px;z-index:9}:focus-visible{outline:3px solid #ff8e35;outline-offset:5px}@media(max-width:650px){header{height:76px}.logo{gap:8px}.logo span{font-size:10px}nav{gap:18px}h1{letter-spacing:-3px;font-size:54px}h1 i{font-size:70px;right:0;top:10px}.hero{padding-top:42px}.eyebrow{font-size:10px;letter-spacing:1px}.intro{display:block}.intro a{display:block;margin-top:25px;width:190px}.grid{grid-template-columns:1fr;gap:36px}.project:first-child .cover img{aspect-ratio:16/9}.section-title h2 span{display:block;margin:8px 0 0}.caption h3{font-size:21px}.about{grid-template-columns:1fr;gap:30px;padding:55px 6%}.about h2{font-size:38px}.portrait{width:150px}.bio h3{font-size:20px}li{gap:15px}.dialogbar{padding:15px}.dialogbar h2{font-size:17px}#project-images{padding:7px}footer{flex-wrap:wrap}footer span:last-child{display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.cover img{transition:none}}
/* Layer supplied brand assets without flattening the composition. */
#project-brand .brand-art{position:absolute;inset:0;overflow:hidden;background:#f1f4ff;isolation:isolate}
#project-brand .brand-art img{position:absolute;display:block;border-radius:0;max-width:none;transform:none;transition:transform .6s ease}
#project-brand .brand-art-background{inset:0;width:100%;height:100%;object-fit:cover}
#project-brand .brand-art-laptop{left:0;bottom:-5%;width:66%;height:auto;object-fit:contain;z-index:1}
#project-brand .brand-art-label{position:absolute;z-index:2;left:20%;top:5%;padding:12px 22px;border:1px solid #9095a5;border-radius:18px;background:#fff;color:#111;font-size:clamp(12px,1.6vw,23px);line-height:1.3}
#project-brand .cover:hover .brand-art-laptop{transform:translateY(-4px)}
@media(max-width:600px){#project-brand .brand-art-label{padding:8px 12px;border-radius:12px;left:15%}}
#project-brand .cover{aspect-ratio:2.25}#project-brand .brand-art img{aspect-ratio:auto}#project-brand .cover>span{z-index:3}@media(max-width:700px){#project-brand .cover{aspect-ratio:16/9}}

#project-images .game-reveal{opacity:0;transition:opacity .85s ease}#project-images .game-reveal.is-visible{opacity:1}@media(prefers-reduced-motion:reduce){#project-images .game-reveal{opacity:1;transition:none}}

#project-illustration .cover img { object-position: center 28%; }
