/* Xiao Yao — interests in motion.
   A neutral exhibition surface; colour belongs to the work. */
:root{--paper:#fff;--ink:#000;--stone:#f1f1f1;--exhibit:#d2d2d2;--mute:#666;--rule:#dedede;--rule-dark:#bbb;--signal:#ff3028;--on-ink:#fff;--on-ink-quiet:#bdbdbd;--on-ink-line:#404040;--gutter:clamp(18px,2.2vw,40px);--header-h:64px;color-scheme:light;font-family:var(--font);color:var(--ink);background:var(--paper);font-synthesis:none}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 20px);-webkit-text-size-adjust:100%}
body{margin:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.menu-is-open{overflow:hidden}
a,button,input{-webkit-tap-highlight-color:transparent}
a,button{touch-action:manipulation}
a{color:inherit;text-decoration:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
button:disabled{opacity:.4;cursor:default}
img,video{display:block;max-width:100%}
figure,p,h1,h2,h3,h4{margin:0}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;flex-shrink:0}
:focus-visible{outline:2px solid currentColor;outline-offset:4px}
[hidden]{display:none!important}
::selection{background:var(--ink);color:var(--paper)}
.page-width{width:100%;max-width:1920px;margin-inline:auto;padding-inline:var(--gutter)}
.skip-link{position:fixed;top:-70px;left:16px;z-index:70;padding:14px 20px;background:var(--ink);color:var(--paper);font-size:14px}
.skip-link:focus{top:12px}
/* The homepage gallery lives in home-gallery.css. */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:12px 21px;border-radius:30px;background:var(--ink);color:var(--on-ink);font-size:14px;line-height:1.2}
.button:hover{background:#383838}
.button svg{width:16px;height:16px}
.button-quiet{background:var(--stone);color:var(--ink)}
.button-quiet:hover{background:var(--ink);color:var(--paper)}
.film-button{display:flex;align-items:center;gap:9px;font-size:14px}
.film-button:hover{text-decoration:underline;text-underline-offset:5px}
.play-mark{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--stone)}
.play-mark svg{width:15px;height:15px;stroke:none}
/* An index and a persistent preview, rather than repeated image cards. */
.work{padding-block:90px 110px}
.work-head{display:flex;align-items:end;justify-content:space-between;gap:24px;padding-bottom:36px}
h2{font-size:clamp(36px,4vw,64px);line-height:1.12;font-weight:500;letter-spacing:-.045em}
.work-head h2{min-width:0;font-size:clamp(64px,9vw,148px);letter-spacing:-.07em;line-height:1}
/* Align the view switch with the full-width work heading and preview edge. */
.view-controls{display:flex;margin-left:auto;gap:2px;padding:3px;background:var(--paper);border:1px solid #e5e5e5;border-radius:10px;flex:0 0 auto}
.view-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border-radius:6px;color:#737373;transition:background-color .15s ease,color .15s ease}
.view-button svg{width:17px;height:17px;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.view-button.is-active{background:#ededed;color:var(--ink)}
.view-button:hover:not(.is-active){color:var(--ink);background:#f5f5f5}
.view-button:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
@media(pointer:coarse){.view-button{width:40px;height:40px}}
.work-browser{display:grid;grid-template-columns:minmax(275px,.36fr) minmax(0,1fr);gap:clamp(20px,1.6vw,28px);align-items:start}
.work-index{min-width:0;position:sticky;top:calc(var(--header-h) + 16px);max-height:calc(100dvh - var(--header-h) - 36px);display:flex;flex-direction:column}
.work-toolbar{display:flex;flex-direction:column;gap:20px;padding-bottom:22px}

.work-search{position:relative;min-width:0;width:100%}
.work-index:has(.search-categories:not([hidden])){z-index:5}
.search-box{display:flex;align-items:center;gap:12px;min-height:52px;border-bottom:1px solid var(--rule)}
.search-box:focus-within{border-color:var(--ink)}
.search-box input{min-width:0;width:100%;padding:12px 0;border:0;border-radius:0;background:transparent;font-size:16px;line-height:1.5;caret-color:var(--ink)}
.search-box input:focus{outline:none}
.search-box input::placeholder{color:var(--mute);opacity:1}
.work-search.has-category input::placeholder{color:var(--ink)}
.search-box input::-webkit-search-cancel-button{display:none}
.search-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;color:var(--mute)}
.search-toggle svg{width:24px;height:24px;stroke-width:1.5;transition:transform .18s ease}
.search-toggle:hover,.search-toggle[aria-expanded="true"]{color:var(--ink)}
.search-toggle:focus-visible{outline-offset:-3px}
.search-categories{position:absolute;z-index:10;top:calc(100% + 8px);left:0;width:100%;max-height:min(560px,60dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:8px;border-radius:4px;background:linear-gradient(110deg,var(--stone),#fafafa);box-shadow:0 12px 24px rgb(0 0 0 / .07);animation:search-reveal .16s ease both}
.search-category{display:flex;align-items:center;gap:14px;width:100%;min-height:44px;padding:10px 12px;border-radius:2px;color:var(--mute);font-size:16px;line-height:1.45;text-align:left;overflow-wrap:anywhere}
.search-category::after{content:'';flex:0 0 5px;width:5px;height:5px;margin-left:auto;border-radius:50%;background:currentColor;opacity:0}
.search-category[aria-selected="true"]{color:var(--ink)}
.search-category[aria-selected="true"]::after{opacity:1}
.search-category:hover,.search-category.is-active{color:var(--ink);background:rgb(0 0 0 / .05)}
@keyframes search-reveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.search-categories{animation:none}.search-toggle svg{transition:none}}
.work-toolbar,.work-sub{flex-shrink:0}
.work-sub{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px;margin-bottom:12px}
.work-count,.work-status{font-size:12px;color:var(--mute)}
.work-status:empty{display:none}
.work-index>.work-status:not(:empty){flex-shrink:0;margin-bottom:12px}
.work-status a,.work-status button{text-decoration:underline;text-underline-offset:4px}
.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 22px}
.project-card{min-width:0}
.project-card-open{display:block;width:100%;text-align:left}
.project-image-wrap{position:relative;height:clamp(240px,31vw,530px);background:var(--stone);overflow:hidden}
.project-image-wrap>img{width:100%;height:100%;object-fit:cover}
.project-open-icon{position:absolute;right:15px;bottom:15px;display:grid;place-items:center;width:32px;height:32px;background:var(--paper);border-radius:50%;opacity:0}
.project-open-icon svg{width:16px;height:16px}
.project-card-open:hover .project-open-icon,.project-card-open:focus-visible .project-open-icon{opacity:1}
.media-badge{position:absolute;top:12px;left:12px;padding:5px 9px;border-radius:20px;background:var(--paper);font-size:11px}
.project-info{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding-top:13px}
.project-info h3{font-size:19px;line-height:1.3;font-weight:400;letter-spacing:-.025em}
.project-category{color:var(--mute);font-size:12px;line-height:1.5;text-align:right}
.project-grid.is-list{display:flex;flex-direction:column;gap:6px;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:none;padding:4px 5px 8px 0;min-height:0}
.project-grid.is-list::-webkit-scrollbar{display:none}
.project-grid.is-list .project-card{flex:0 0 auto}
.is-list .project-card-open{display:grid;grid-template-columns:64px 1fr;align-items:start;gap:16px;padding:13px 12px;border-radius:12px;min-height:90px}
.is-list .project-image-wrap{width:64px;height:64px;background:var(--stone);border-radius:12px}
.is-list .project-image-wrap>img{object-fit:cover}
.is-list .project-info{display:flex;flex-direction:column;gap:1px;align-items:flex-start;padding:0}
.is-list .project-info h3{font-size:16px}
.is-list .project-category{font-size:12px;text-align:left}
.is-list .project-card-open:hover,.is-list .project-card.is-preview .project-card-open,.is-list .project-card:has([aria-current="true"]) .project-card-open{background:var(--stone)}
/* Fully visible rows stay still; only a row leaving the lower edge recedes. */
@media(min-width:901px){
  .project-grid.is-list{position:relative;isolation:isolate}
  .is-list .project-card{position:relative}
  .is-list .project-card-open{background:var(--paper);transform-origin:50% 100%}
  .is-list.has-edge-stack .project-card-open{transform:translateY(var(--stack-y,0px)) scale(var(--stack-scale,1));opacity:var(--stack-opacity,1)}
  .is-list.has-edge-stack .project-card-open:focus-visible{transform:none;opacity:1;outline-offset:-3px}
  .is-list.has-edge-stack .is-stack-hidden .project-card-open{pointer-events:none}
}
.is-list .media-badge,.is-list .project-open-icon{display:none}
.load-more-wrap{margin-top:24px}
.load-more-wrap:has(>button[hidden]){display:none}
.text-button{font-size:13px;text-decoration:underline;text-underline-offset:5px;padding:8px 0}
.empty-state{grid-column:1/-1;padding:38px 0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.empty-state h3{font-size:20px;font-weight:400}
.empty-state p{font-size:14px;color:var(--mute);line-height:1.6}
.work-preview{min-width:0;scroll-margin-top:calc(var(--header-h) + 16px)}
@media(min-width:901px){
  /* Keep the document's height stable when replacing long and short galleries. */
  .work-browser:not(.is-overview) .work-preview{height:calc(100dvh - var(--header-h) - 36px);overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;scrollbar-color:var(--rule) transparent;scrollbar-gutter:stable}
}
.preview-stage{position:relative;width:100%;margin-top:40px}
.preview-media{display:flex;flex-direction:column;gap:22px;animation:preview-in .2s ease both}
.preview-media-item{width:100%;min-width:0;overflow:hidden;background:var(--stone)}
.preview-media-item>img,.preview-media-item>video{width:100%;height:auto;max-height:none;object-fit:contain}
.preview-media-item.is-portrait>img,.preview-media-item.is-portrait>video{width:auto;max-width:100%;max-height:var(--media-fit-height,calc(100dvh - var(--header-h) - 240px));margin-inline:auto}
.preview-media-item>video{background:var(--ink)}
.preview-media>.project-game-cover{min-height:440px}
.preview-gallery-footer{display:grid;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);align-items:center;gap:12px;padding:25px 0 12px;color:var(--mute);font-size:13px;line-height:1.6}
.preview-gallery-count{grid-column:1;min-width:0}
.preview-continue{grid-column:2;display:grid;place-items:center;width:48px;height:48px;color:var(--ink)}
.preview-continue svg{width:24px;height:24px;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}
.preview-continue:focus-visible{outline:1px solid currentColor;outline-offset:-5px;border-radius:50%}
@media(hover:hover) and (pointer:fine){.preview-continue:hover svg{transform:translateY(2px)}}
@media(prefers-reduced-motion:reduce){.preview-continue:hover svg{transform:none}}
/* The matching entry at the top of the gallery returns to the opening screen.
   It hangs off the heading, so it never changes the reading layout or the
   fitting height of the first artwork. */
.preview-return{position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:48px;height:48px;color:var(--ink)}
.preview-return svg{width:24px;height:24px;stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}
.preview-return:focus-visible{outline:1px solid currentColor;outline-offset:-5px;border-radius:50%}
@media(hover:hover) and (pointer:fine){.preview-return:hover svg{transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.preview-return:hover svg{transform:none}}
.preview-media-item figcaption{padding:12px 16px;font-size:12px;color:var(--mute);line-height:1.6}
@keyframes preview-in{from{opacity:.6}to{opacity:1}}
.interaction-note{font-size:13px;line-height:1.6;color:var(--mute);margin-top:12px}
.preview-meta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:0}
.preview-category{font-size:13px;color:var(--mute)}

.preview-heading{position:relative;display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin-top:20px}
.preview-heading h3{font-size:clamp(27px,2.65vw,48px);font-weight:400;letter-spacing:-.04em;line-height:1.1}

/* The measure stops short of the return arrow's 48 px rail so the copy never
   slides under it when the column narrows. */
.preview-description{margin-top:10px;max-width:min(64ch,calc(100% - 64px));color:var(--mute);font-size:14px;line-height:1.6}
.work-browser.is-overview{display:block}
.is-overview .work-index{position:static;max-height:none;display:block}
.is-overview .work-preview{display:none}
.is-overview .work-toolbar{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding-bottom:20px}
.is-overview .work-search{width:min(100%,380px);flex:0 0 auto}
.is-overview .work-sub{margin-bottom:22px}
.is-overview .load-more-wrap{text-align:center;margin-top:42px}
.project-game-cover{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;padding:30px;background:var(--ink);color:var(--paper);text-align:center}
.game-cover-symbol{font-size:60px;line-height:1}
.game-cover-title{font-size:28px;letter-spacing:-.035em}
.game-cover-action{font-size:13px;color:var(--on-ink-quiet)}
.is-list .project-game-cover{padding:5px;gap:0}
.is-list .game-cover-symbol{font-size:28px}
.is-list .game-cover-title,.is-list .game-cover-action{display:none}
/* Biography has one clear introduction, then experience and tools. */
.about{background:var(--stone);padding-block:100px}
.about-inner{display:grid;grid-template-columns:1fr 1.2fr;gap:10%}
.about-lede h2>span{display:block}
.about-location{margin-top:25px;font-size:14px;color:var(--mute)}
.resume-link{display:inline-flex;align-items:center;gap:18px;margin-top:32px;padding:11px 17px;border-radius:30px;background:var(--paper);font-size:14px}
.resume-link:hover{background:var(--ink);color:var(--paper)}
.file-format{font-size:11px}
.about-lead{font-size:clamp(22px,2.3vw,33px);line-height:1.5;letter-spacing:-.035em;max-width:30ch}
.about-description{max-width:60ch;margin-top:24px;font-size:15px;line-height:1.85;color:var(--mute)}
.facts{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:24px;font-size:13px;color:var(--mute)}
.ledger{margin-top:46px}
.ledger h3{font-size:15px;font-weight:400;margin-bottom:12px}
.ledger-row{position:relative;display:grid;grid-template-columns:155px 1fr;gap:18px;padding:20px 0;border-top:1px solid #ccc}
.ledger-row time,.ledger-label{font-size:12px;color:var(--mute);line-height:1.5}
.ledger-row h4{font-size:15px;font-weight:400;line-height:1.4}
.ledger-row p{margin-top:6px;font-size:13px;line-height:1.7;color:var(--mute)}
.tool-list{display:flex;flex-wrap:wrap;gap:5px 16px}
.ledger-row .tool-list{margin-top:0}
.current-marker{position:absolute;right:0;top:22px;font-size:11px;color:var(--mute)}
/* Contact gives actual actions, with a large closing type treatment. */
.contact{background:var(--ink);color:var(--paper);padding-block:100px 80px}
.contact-inner{display:grid;grid-template-columns:1fr 1fr;gap:32px 8%}
.contact h2{font-size:clamp(45px,5.4vw,88px);letter-spacing:-.055em;line-height:1.12;grid-row:1/span 2}
.contact h2>span{display:block}
.contact-note{font-size:16px;line-height:1.7;max-width:none;color:var(--on-ink-quiet)}
.contact-rows{grid-column:2;margin-top:8px}
.contact-row{display:grid;grid-template-columns:1fr auto;gap:10px;width:100%;text-align:left;padding:22px 0;border-top:1px solid var(--on-ink-line);text-decoration:none}
.contact-label{font-size:13px;color:var(--on-ink-quiet);grid-column:1}
.contact-value{font-size:clamp(26px,3.1vw,48px);letter-spacing:-.035em;grid-column:1;text-decoration:none;transition:color 160ms ease}
.contact-email{grid-template-columns:minmax(0,1fr) auto}
.contact-email .contact-value{font-size:clamp(22px,2.5vw,38px);overflow-wrap:anywhere}
.contact-row svg{grid-column:2;grid-row:1/span 2;align-self:center;transition:transform 160ms ease,color 160ms ease}
@media(hover:hover) and (pointer:fine){
  .contact-row:hover .contact-value,.contact-row:hover svg{color:#dedede}
  .contact-row:hover svg{transform:translate(3px,-3px)}
  .contact-row[data-wechat]:hover svg{transform:translateY(-2px)}
}
.contact-row:focus-visible .contact-value,.contact-row:focus-visible svg{color:#dedede}
.contact-row:active .contact-value,.contact-row:active svg{color:var(--on-ink-quiet)}
.contact-row:active svg{transform:none}
@media(prefers-reduced-motion:reduce){.contact-row:hover svg{transform:none}}
.contact-status{min-height:25px;margin-top:15px;font-size:13px;color:var(--on-ink-quiet)}
/* The reference Hero's dark horizon closes the page. All artwork is confined
   to the footer; its natural scroll distance reveals the light and arc. */
.site-footer{--horizon-progress:1;position:relative;isolation:isolate;overflow:hidden;background:var(--ink);color:var(--paper)}
.footer-horizon{position:relative;height:clamp(360px,58svh,680px);overflow:hidden;pointer-events:none;user-select:none}
.footer-horizon::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,#000 0%,#000 26%,#292b2b 58%,#898e8e 82%,#fff 100%);opacity:calc(.45 + var(--horizon-progress)*.55)}
.footer-horizon::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,transparent 76%,#000 100%)}
.footer-horizon-arc{position:absolute;left:50%;top:64%;width:140%;min-width:700px;height:clamp(520px,54vw,800px);border-radius:50%;border:1px solid rgba(255,255,255,.9);background:radial-gradient(closest-side,#000 84%,#111 92%,#fff 100%);box-shadow:0 -3px 5px rgba(255,255,255,.85),0 -18px 45px rgba(255,255,255,.65),0 -50px 95px rgba(255,255,255,.25);transform:translate3d(-50%,calc((1 - var(--horizon-progress))*64px),0);opacity:calc(.55 + var(--horizon-progress)*.45)}
.footer-inner{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:26px;background:var(--ink)}
.footer-name{font-size:15px}
.site-footer p,.back-top{font-size:12px;color:var(--on-ink-quiet)}
.back-top{display:flex;align-items:center;gap:8px}
.back-top svg{width:16px;height:16px}
.back-top:hover{color:var(--paper)}
/* Full project details preserve the supplied media and native video controls. */
.project-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:var(--paper);color:var(--ink);overscroll-behavior:contain}
.project-dialog[open]{display:flex;flex-direction:column}
.project-dialog::backdrop{background:var(--ink)}
.dialog-topbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px var(--gutter);font-size:13px;color:var(--mute)}
.dialog-close{display:flex;align-items:center;gap:8px;padding:9px 15px;border-radius:24px;background:var(--stone);font-size:13px;color:var(--ink)}
.dialog-close:hover{background:var(--ink);color:var(--paper)}
.dialog-close svg{width:15px;height:15px}
.dialog-scroll{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:35px var(--gutter) 50px}
.dialog-heading{display:grid;grid-template-columns:1fr 1fr;gap:25px 6%;align-items:start;margin-bottom:40px}
.dialog-heading h2{font-size:clamp(38px,5.5vw,88px);letter-spacing:-.055em}
.dialog-heading>p{font-size:16px;line-height:1.8;max-width:56ch;color:var(--mute)}
#dialog-link{grid-column:1/-1}
.dialog-external-link{display:inline-flex;padding:12px 20px;border-radius:30px;background:var(--ink);color:var(--paper);font-size:14px}
.dialog-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.dialog-media figure{min-width:0;align-self:start;background:var(--stone);overflow:hidden}
.dialog-media figure:only-child,.dialog-media figure:has(video),.dialog-media .media-wide{grid-column:1/-1}
.dialog-media img{width:100%;height:auto;max-height:88vh;object-fit:contain}
.dialog-media video{width:100%;height:auto;max-height:80vh;background:var(--ink)}
.dialog-media .is-portrait>img,.dialog-media .is-portrait>video{width:auto;max-width:100%;height:auto;max-height:var(--media-fit-height,calc(100dvh - 260px));object-fit:contain;margin-inline:auto}
.dialog-media>.project-game-cover{grid-column:1/-1;min-height:300px}
.media-error{padding:15px;font-size:13px;color:var(--mute)}
.media-error a{text-decoration:underline}
.dialog-bottom{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px var(--gutter);border-top:1px solid var(--rule);background:var(--paper)}
.dialog-bottom>span{font-size:12px;color:var(--mute);white-space:nowrap}
.dialog-bottom .button{font-size:13px}
@media(max-width:1180px){

.work-browser{grid-template-columns:minmax(260px,.4fr) minmax(0,1fr);gap:20px}.is-list .project-card-open{padding-inline:8px;gap:12px}.is-list .project-info h3{font-size:15px}.preview-description{font-size:13px}
.about-inner{gap:6%}.ledger-row{grid-template-columns:135px 1fr}
}
@media(max-width:900px){

:root{--header-h:60px}
.work{padding-bottom:75px}.work-head{padding-bottom:28px}.work-browser{display:block}.work-toolbar,.is-overview .work-toolbar{flex-direction:column;align-items:stretch;gap:17px}.work-search,.is-overview .work-search{width:100%}.work-preview{display:none}.work-index{position:static;max-height:none;display:block}
.project-grid,.project-grid.is-list{overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 18px}.is-list .project-card-open{display:block;min-height:0;padding:0;border-radius:0}.is-list .project-image-wrap,.project-image-wrap{width:100%;height:auto;aspect-ratio:4/3;border-radius:0}.is-list .project-image-wrap>img{object-fit:cover}.is-list .project-info{gap:7px;padding-top:12px}.is-list .project-info h3{font-size:18px}.is-list .project-category{font-size:12px}.is-list .project-card-open:hover,.is-list .project-card.is-preview .project-card-open,.is-list .project-card:has([aria-current="true"]) .project-card-open{background:none}.is-list .media-badge{display:block}.is-list .project-game-cover{padding:25px;gap:15px}.is-list .game-cover-symbol{font-size:40px}.is-list .game-cover-title{display:block;font-size:22px}.load-more-wrap{margin-top:32px}
.about{padding-block:70px}.about-inner{grid-template-columns:1fr;gap:42px}.about-lede h2{font-size:45px}.about-lede h2>span{display:inline}.about-lead{max-width:36ch}.about-description{max-width:62ch}
.contact{padding-block:70px 55px}.contact-inner{grid-template-columns:1fr;gap:28px}.contact h2{grid-row:auto;max-width:12ch}.contact-rows{grid-column:1}.contact-note{max-width:none}.contact-value{font-size:35px}
.dialog-heading{grid-template-columns:1fr;gap:20px}.dialog-media{grid-template-columns:1fr}.dialog-heading h2{max-width:15ch}
}
@media(max-width:560px){

:root{--gutter:18px}
.work-head{align-items:end;gap:12px}.work-head h2{font-size:66px}
html:not([lang='zh-CN']) .work-head h2{font-size:clamp(26px,7.5vw,42px)}
.project-grid,.project-grid.is-list{grid-template-columns:1fr;gap:30px}.project-image-wrap,.is-list .project-image-wrap{aspect-ratio:4/3;max-height:420px}.project-info,.is-list .project-info{display:flex;flex-direction:row;justify-content:space-between;align-items:baseline;gap:12px}.project-info h3,.is-list .project-info h3{font-size:20px}.project-category,.is-list .project-category{font-size:11px;text-align:right;max-width:11ch}.is-list .game-cover-title{font-size:26px}
.about{padding-block:58px}.about-inner{gap:35px}.about-lede h2{font-size:38px}.about-lede h2>span{display:block}.about-location{margin-top:20px}.resume-link{margin-top:22px}.about-lead{font-size:25px}.about-description{font-size:14px}.facts{gap:10px 18px}.ledger{margin-top:35px}.ledger-row{grid-template-columns:1fr;gap:7px;padding-block:17px}.current-marker{top:18px}
.contact h2{font-size:43px}.contact-note{font-size:14px}.contact-value{font-size:34px}.footer-inner{flex-wrap:wrap;padding-block:22px;gap:20px}.site-footer p{order:3;width:100%}.back-top{margin-left:auto}.dialog-scroll{padding-top:25px}.dialog-heading h2{font-size:38px}.dialog-heading>p{font-size:14px}.dialog-bottom{gap:8px;padding-block:12px}.dialog-bottom .button{font-size:11px;padding:11px 12px}.dialog-bottom>span{font-size:11px}
.footer-horizon{height:clamp(320px,48svh,420px)}.footer-horizon-arc{width:190%;height:520px}
}
@media(max-width:900px) and (max-height:500px){
.dialog-topbar{padding-block:8px}.dialog-close{padding-block:6px}.dialog-bottom{padding-block:8px}
.dialog-scroll{padding:16px var(--gutter) 24px}.dialog-heading{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:20px}
.dialog-heading h2{font-size:30px;max-width:none}.dialog-heading>p{font-size:12px;line-height:1.5}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.site-footer{--horizon-progress:1!important}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Both supplied resumes share the existing about-section entry style. */
.resume-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:32px}
.resume-links .resume-link{margin-top:0}
@media(max-width:600px){.resume-links{margin-top:22px}}
