@font-face{font-family:Cormorant;src:url('./cormorant.ttf') format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:Cormorant;src:url('./cormorant-italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
:root{--paper:#e9e4d9;--ink:#293a32;--muted:#4a594f;--display:Cormorant,'Songti SC',SimSun,serif;--body:'Segoe UI','Microsoft YaHei',sans-serif;--gutter:6vw}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.85 var(--body);transition:color .6s}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:7px}button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}button:disabled{opacity:.4;cursor:wait}button,a,summary{-webkit-tap-highlight-color:transparent}button:active{transform:translateY(2px)}:focus-visible{outline:2px solid currentColor;outline-offset:6px}::selection{background:#40594c;color:var(--paper)}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--display);font-weight:400;line-height:1.2;letter-spacing:-.04em;text-wrap:balance}h2{font-size:clamp(40px,4.3vw,64px);margin-bottom:32px}h3{font-size:28px}p{margin-bottom:24px}p:last-child{margin-bottom:0}.small{font-size:14px}.lead{font-size:24px;line-height:1.65}.skip{position:fixed;top:-90px;z-index:100;padding:16px;background:var(--paper)}.skip:focus{top:0}
.world-header{position:fixed;inset:0 0 auto;z-index:20;display:flex;align-items:center;justify-content:space-between;padding:20px var(--gutter);gap:24px;pointer-events:none}.world-header>*{pointer-events:auto}.wordmark{font:italic 32px var(--display)}nav{display:flex;gap:30px}nav a{font-size:15px}nav a[aria-current=location]{text-decoration:underline;text-underline-offset:8px}.world-header button{font-size:14px;min-height:44px}.world-header:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(to bottom,rgba(233,228,217,.92),rgba(233,228,217,0));pointer-events:none}
.stage{position:fixed;inset:0;z-index:0;overflow:hidden;background:#dedbd1}.world-canvas{position:absolute;inset:0}#model{display:block;width:100%;height:100%;opacity:0;transition:opacity 1s;touch-action:pan-y;cursor:grab}#model:active{cursor:grabbing}#poster{position:absolute;width:100%;height:100%;object-fit:cover;pointer-events:none}.loaded #model{opacity:1}.loaded #poster{opacity:0}.stage-bottom{position:fixed;bottom:0;left:0;right:0;z-index:30}.journey-bar{display:flex;align-items:center;justify-content:flex-end;gap:22px;padding:12px 28px;background:rgba(233,228,217,.94);font-size:13px;color:#293a32}.journey-bar #scene-name{margin-right:auto;font-size:15px}.journey-bar #model-status{color:#4a594f}.journey-bar button{font-size:13px;min-height:32px}.journey-bar button:hover{text-decoration:underline;text-underline-offset:5px}.stage:fullscreen{z-index:100}.stage:fullscreen .journey-bar{background:rgba(233,228,217,.94)}
main{position:relative;z-index:2;pointer-events:none}main a,main button,main summary,main video,main .scene-copy,main .hero-copy{pointer-events:auto}.intro,.world-section{position:relative;min-height:115svh;padding:150px var(--gutter) 140px;isolation:isolate}.intro{min-height:100svh;display:flex;align-items:center}.intro:before,.world-section:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(233,228,217,.94) 0%,rgba(233,228,217,.85) 27%,rgba(233,228,217,.38) 44%,rgba(233,228,217,0) 63%);pointer-events:none}.hero-copy{width:43%;}.hero-copy>div{display:contents}.intro h1{font-size:clamp(110px,14vw,230px);font-style:italic;line-height:1;letter-spacing:-.075em;margin:0 0 50px -.03em}.intro .lead{font-size:clamp(24px,2.1vw,32px);margin-bottom:28px}.intro p:not(.lead){font-size:16px;max-width:30ch}.primary{display:inline-block;padding:12px 0;margin-top:14px;font-size:16px;transition:transform .25s}.primary:hover{transform:translateX(8px)}.scene-copy{width:43%;max-width:630px}.scene-copy p{max-width:38ch}.place-name{position:absolute;right:var(--gutter);bottom:130px;font:italic 64px var(--display);opacity:.65;pointer-events:none}#about .scene-copy,#projects .scene-copy,#clips .scene-copy{margin-left:auto}#about:before,#projects:before,#clips:before{background:linear-gradient(270deg,rgba(233,228,217,.97) 0%,rgba(233,228,217,.88) 28%,rgba(233,228,217,.34) 46%,rgba(233,228,217,0) 65%)}#about .place-name,#projects .place-name,#clips .place-name{left:var(--gutter);right:auto}#about{display:flex;align-items:center}#about h2{font-size:clamp(44px,4.8vw,72px);line-height:1.35}.avatar{width:68px;height:68px;object-fit:cover;border-radius:50%;vertical-align:middle;margin:20px 20px 0 0}.text-link{display:inline-block;margin-top:20px}.chapter-intro{margin-bottom:48px}.skills{margin:0}.skills>div{margin-bottom:32px}.skills dt{font-size:23px;margin-bottom:8px}.skills dd{margin:0;max-width:37ch}.skills>div:nth-child(even){margin-left:8%}.project{margin-bottom:12px}.project summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 0;font-size:22px;cursor:pointer}.project summary::-webkit-details-marker{display:none}.project summary .expand{font-size:25px;transition:transform .3s;flex-shrink:0}.project[open] .expand{transform:rotate(45deg)}.project[open]{padding-bottom:24px}.project-body{padding:12px 0 20px;font-size:16px}.project-body li{margin-bottom:8px}.project-body ul{padding-left:20px}.tech-line{font-size:14px}.project-body a{font-weight:600}.project summary:hover{transform:translateX(6px);transition:transform .3s}.miniapp{display:flex;gap:24px;align-items:center;margin:40px 0}.miniapp img{width:120px;height:120px;object-fit:contain;display:block}.miniapp h3{font:400 22px/1.5 var(--body);margin-bottom:12px}.miniapp p{font-size:16px}.server-meta{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:30px 0}.server-meta dt{font-size:14px}.server-meta dd{margin:0;overflow-wrap:anywhere}#dos h2{font-size:clamp(44px,5vw,72px)}#spaced h2{font-size:clamp(76px,9vw,140px);font-style:italic}#spaced summary{font-size:20px;cursor:pointer;padding:18px 0;list-style:none}#spaced summary:after{content:'＋';float:right}#spaced details[open] summary:after{content:'−'}#spaced summary::-webkit-details-marker{display:none}#spaced details p{font-size:16px}#spaced:before{background:linear-gradient(90deg,rgba(10,27,32,.97),rgba(10,27,32,.88) 28%,rgba(10,27,32,.3) 48%,rgba(10,27,32,0) 69%)}#clips:before{background:linear-gradient(270deg,rgba(15,26,32,.97),rgba(15,26,32,.88) 28%,rgba(15,26,32,.3) 48%,rgba(15,26,32,0) 69%)}#spaced,#clips{color:#e0e8df}.film{margin:52px 0}.film:nth-child(2){margin-left:10%;width:90%}.film video{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#172a2c}.film h3{margin:20px 0 12px;font:400 22px/1.5 var(--body)}.film p{font-size:16px}.film .small{font-size:13px}.email{display:block;font:italic 400 clamp(36px,4.6vw,72px)/1.2 var(--display);letter-spacing:-.045em;margin:48px 0;overflow-wrap:anywhere}.social{display:flex;flex-wrap:wrap;gap:24px;margin-bottom:40px}footer{position:relative;z-index:2;padding:32px var(--gutter) 100px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;font-size:13px;background:rgba(233,228,217,.94)}footer div{display:flex;flex-wrap:wrap;gap:24px}footer img{vertical-align:middle;margin-right:6px}.reveal-in{animation:rise .8s both}@keyframes rise{from{opacity:.4;translate:0 20px}to{opacity:1;translate:0 0}}body[data-scene=spaced] .world-header,body[data-scene=cinema] .world-header{color:#e0e8df}body[data-scene=spaced] .world-header:before,body[data-scene=cinema] .world-header:before{background:linear-gradient(to bottom,rgba(15,26,32,.95),rgba(15,26,32,0))}.world-fallback .stage{background:#c7cec3}.world-fallback .scene-copy{background:rgba(233,228,217,.96);padding:24px}.world-fallback #spaced .scene-copy,.world-fallback #clips .scene-copy{background:#152b2e}
@media(min-width:1700px){.scene-copy{width:40%}}
@media(max-width:1000px) and (min-width:601px){.world-header{padding:18px 4vw}nav{gap:20px}.intro,.world-section{padding-left:4vw;padding-right:4vw}.scene-copy{width:48%}.hero-copy{width:46%}.intro h1{font-size:16vw}.intro .lead{font-size:24px}.scene-copy h2{font-size:42px}#spaced h2{font-size:90px}.miniapp{gap:16px}.miniapp img{width:90px;height:90px}.miniapp h3{font-size:19px}.miniapp p{font-size:14px}.journey-bar{gap:14px}.place-name{font-size:44px}.scene-copy>p{font-size:16px}}
@media(max-width:600px){:root{--gutter:24px}.world-header{padding:12px 24px;flex-wrap:wrap;gap:6px}.wordmark{font-size:28px}nav{order:3;justify-content:space-between;width:100%;gap:16px;font-size:14px}nav a{font-size:14px}.world-header button{font-size:13px}.intro{align-items:start;padding-top:19vh;min-height:110svh}.hero-copy{width:100%;pointer-events:none}.hero-copy a{pointer-events:auto}.intro h1{font-size:30vw;width:80%;margin-bottom:38vh}.intro .lead{font-size:21px;margin-bottom:16px}.intro p:not(.lead){font-size:14px;max-width:27ch;display:none}.intro .primary{margin-top:0}.intro:before{background:linear-gradient(to bottom,rgba(233,228,217,.15) 0%,rgba(233,228,217,0) 47%,rgba(233,228,217,.85) 67%,rgba(233,228,217,.97) 94%)}.world-section{min-height:125svh;padding:58vh 24px 140px}.scene-copy{width:100%;max-width:none}.world-section:before,#about:before,#projects:before{background:linear-gradient(to bottom,rgba(233,228,217,0) 0%,rgba(233,228,217,.05) 20vh,rgba(233,228,217,.94) 56vh,rgba(233,228,217,.98) 75vh)}#about{display:block}#about h2{font-size:43px}h2,.scene-copy h2{font-size:38px}.place-name{top:43vh;bottom:auto;left:24px!important;right:auto;font-size:28px;opacity:.9}.chapter-intro{margin-bottom:40px}.skills dt{font-size:22px}.skills dd{font-size:16px}.project summary{font-size:21px}.miniapp{gap:20px}.miniapp img{width:96px;height:96px}.miniapp h3{font-size:20px}.miniapp p{font-size:14px}#dos h2{font-size:48px}#spaced h2{font-size:88px}#spaced:before{background:linear-gradient(to bottom,rgba(10,27,32,0),rgba(10,27,32,.08) 22vh,rgba(10,27,32,.94) 56vh,rgba(10,27,32,.98) 75vh)}#clips:before{background:linear-gradient(to bottom,rgba(15,26,32,0),rgba(15,26,32,.08) 22vh,rgba(15,26,32,.94) 56vh,rgba(15,26,32,.98) 75vh)}.email{font-size:45px;margin:36px 0}.social{gap:20px}.journey-bar{padding:8px 16px;gap:16px;flex-wrap:wrap;justify-content:space-between}.journey-bar #scene-name{font-size:14px}.journey-bar #model-status{display:none}.journey-bar button{font-size:12px;min-height:32px}.journey-bar #focus-model{display:none}.journey-bar #scene-name{margin-right:auto}.film{margin:40px 0}.film h3{font-size:22px}footer{padding:24px 24px 90px}.world-fallback .scene-copy{padding:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
.stage-bottom{z-index:30}.journey-bar{position:relative}.world-header{z-index:40}
.world-header .stage-bottom{position:static}.journey-bar{padding:0;background:none;color:inherit;gap:14px}.journey-bar #scene-name{display:none}.journey-bar #model-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.world-header{gap:20px}.world-header #music{margin-left:auto}.place-name{display:none}.world-header nav{margin-left:auto}.world-header .journey-bar button{white-space:nowrap}.stage:fullscreen .stage-bottom{position:absolute;top:20px;bottom:auto;left:24px;right:24px}.stage:fullscreen .journey-bar{padding:12px 20px;background:rgba(233,228,217,.94);color:#293a32}.stage:fullscreen #scene-name{display:block}.noscript-note{position:fixed;bottom:12px;left:24px;z-index:50;background:var(--paper);padding:8px 16px;font-size:14px}
@media(max-width:1000px){.world-header .journey-bar #reset-view{display:none}.world-header nav{gap:20px}.world-header{gap:16px}}
@media(max-width:600px){.world-header .stage-bottom{order:2}.world-header #music{margin-left:auto}.world-header nav{order:3;margin-left:0}.world-header .journey-bar{padding:0;gap:0}.world-header{gap:8px}.world-header .journey-bar button{font-size:13px}.stage:fullscreen #reset-view{display:block}}

.chapter-paging{scroll-padding-top:0}.chapter-paging .intro,.chapter-paging .world-section{height:100svh;min-height:680px;padding-top:130px;padding-bottom:90px;scroll-margin-top:0}.chapter-paging .scene-copy{max-height:calc(100svh - 240px);min-height:340px;overflow:hidden}.chapter-paging .scene-copy.is-reading{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:18px}.read-chapter{position:absolute;bottom:42px;left:var(--gutter);font-size:15px;padding:10px 0;text-decoration:underline;text-underline-offset:6px}.read-chapter[hidden]{display:none}#about .read-chapter,#projects .read-chapter,#clips .read-chapter{left:57%;right:auto}.chapter-paging .intro{padding-top:120px}.chapter-paging .intro h1{margin-bottom:32px}.chapter-paging .intro .lead{margin-bottom:20px}
@media(max-width:1000px) and (min-width:601px){#about .read-chapter,#projects .read-chapter,#clips .read-chapter{left:52%}}
@media(max-width:600px){.chapter-paging .intro{padding-top:17vh;min-height:680px}.chapter-paging .intro h1{margin-bottom:36vh}.chapter-paging .world-section{padding-top:47vh;min-height:680px;padding-bottom:80px}.chapter-paging .scene-copy{max-height:calc(53svh - 90px);min-height:230px}.chapter-paging .world-section:before{background:linear-gradient(to bottom,rgba(233,228,217,0) 0%,rgba(233,228,217,.08) 20vh,rgba(233,228,217,.96) 47vh,rgba(233,228,217,.98) 65vh)}.chapter-paging #spaced:before,.chapter-paging #clips:before{background:linear-gradient(to bottom,rgba(10,27,32,0),rgba(10,27,32,.08) 20vh,rgba(10,27,32,.96) 47vh,rgba(10,27,32,.98) 65vh)}.read-chapter,#about .read-chapter,#projects .read-chapter,#clips .read-chapter{left:24px;bottom:20px}.chapter-paging .scene-copy h2{margin-bottom:24px}}
html[data-entry-open]{overflow:hidden}.entry-screen{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#e9e4d9;color:#293a32;padding:32px;isolation:isolate;transition:opacity .85s ease,visibility .85s}.entry-screen:before{content:'';position:absolute;inset:0;z-index:-1;background:url('./courtyard.webp') center/cover;opacity:.12}.entry-content{width:min(480px,100%);text-align:center;animation:entry-arrive 1s both}.entry-content h2{font:italic 400 clamp(84px,12vw,146px)/1 Cormorant,serif;letter-spacing:-.075em;margin:0 0 30px}.entry-invitation{font-size:18px;margin-bottom:52px}.entry-loading{width:min(300px,100%);margin:auto;transition:opacity .5s}.entry-progress{height:3px;background:#c9cbbf;overflow:hidden}.entry-progress span{display:block;height:100%;background:#52634c;transform:scaleX(0);transform-origin:left;transition:transform .3s linear}.entry-status{font-size:13px;display:flex;justify-content:space-between;gap:20px;margin:16px 0 0}.entry-choices{display:grid;gap:14px;margin-top:28px;animation:entry-arrive .9s both}.entry-choices[hidden]{display:none}.entry-ready{font-size:14px;margin:0 0 8px}.entry-play{justify-self:center;width:min(310px,100%);padding:20px 24px;background:#344637;color:#f1eee7;font-size:17px;display:flex;align-items:center;justify-content:space-between;gap:20px;transition:background .25s,transform .25s}.entry-play:hover{background:#495f46;transform:translateY(-3px)}.entry-play:active{transform:translateY(0)}.entry-silent{justify-self:center;font-size:13px;padding:12px 16px;min-height:44px}.entry-silent:hover{text-decoration:underline;text-underline-offset:6px}.entry-is-ready .entry-loading{opacity:.5}.entry-is-ready .entry-status{display:none}.entry-leaving{opacity:0;visibility:hidden;pointer-events:none}.entry-leaving .entry-content{transform:translateY(-20px);transition:transform .8s}.entered-world .hero-copy{animation:entry-arrive 1.2s both}@keyframes entry-arrive{from{opacity:0;translate:0 20px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.entry-screen,.entry-content,.entry-choices,.entry-progress span,.entry-play{animation:none;transition:none}}
html:has(.qr-card[open]){overflow:hidden}.qr-card{width:min(420px,calc(100vw - 40px));max-height:calc(100svh - 48px);padding:44px 32px 30px;border:0;border-radius:4px;background:#f2efe8;color:#293a32;box-shadow:0 24px 90px #081b2438;text-align:center;overflow-y:auto;overscroll-behavior:contain}.qr-card::backdrop{background:#10272199}.qr-card[open]{animation:qr-arrive .35s ease-out both}.qr-card h2{font:400 29px/1.4 var(--display);letter-spacing:-.025em;margin:0 8px 26px}.qr-card .qr-code{display:block;width:min(240px,100%);height:auto;aspect-ratio:1;object-fit:contain;margin:0 auto 24px;background:white;padding:12px}.qr-card p{font-size:15px;line-height:1.7;margin:0}.qr-card .qr-hint{font-size:13px;color:#596759;margin-top:20px}.qr-close{position:absolute;right:10px;top:8px;width:44px;height:44px;font:300 30px/1 var(--body);border-radius:50%}.qr-close:hover{background:#e3e6db}.qr-close:focus-visible{outline-offset:-4px}@keyframes qr-arrive{from{opacity:0;transform:translateY(14px) scale(.97)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.qr-card[open]{animation:none}}
.chapter-paging .scene-copy.is-reading{--scroll-thumb:#82917b;--scroll-hover:#52694e;scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) transparent;scrollbar-gutter:stable;padding-right:22px}
.chapter-paging .scene-copy.is-reading:hover{scrollbar-color:var(--scroll-hover) transparent}
#spaced .scene-copy.is-reading,#clips .scene-copy.is-reading{--scroll-thumb:#647f7a;--scroll-hover:#a6beb1}
.scene-copy.is-reading::-webkit-scrollbar{width:6px}
.scene-copy.is-reading::-webkit-scrollbar-track{background:transparent}
.scene-copy.is-reading::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:20px;min-height:44px}
.scene-copy.is-reading::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)}
.scene-copy.is-reading::-webkit-scrollbar-button{display:none;width:0;height:0}
.scene-copy.is-reading::-webkit-scrollbar-corner{background:transparent}
.chapter-paging #contact footer{position:absolute;inset:auto var(--gutter) 16px;padding:14px 0 0;background:transparent;gap:8px 24px;font-size:12px;line-height:1.7;pointer-events:auto}.chapter-paging #contact footer div{gap:6px 22px}.chapter-paging #contact .scene-copy{min-height:0;max-height:calc(100svh - 180px - var(--contact-footer-height,110px))}.chapter-paging #contact .read-chapter{bottom:calc(var(--contact-footer-height,110px) + 30px)}
@media(max-width:600px){.chapter-paging #contact footer{inset:auto 24px 14px;display:block}.chapter-paging #contact footer>span{display:block}.chapter-paging #contact footer div{display:flex;flex-direction:column;gap:3px;margin:4px 0}.chapter-paging #contact .scene-copy{max-height:calc(53svh - var(--contact-footer-height,150px) - 76px)}.chapter-paging #contact .read-chapter{bottom:calc(var(--contact-footer-height,150px) + 24px)}}
main[tabindex="-1"]:focus{outline:none}
@media(max-width:600px){
  :root{--gutter:20px;--mobile-top:max(112px,40svh);--mobile-bottom:calc(76px + env(safe-area-inset-bottom,0px))}
  html.chapter-paging{overscroll-behavior-y:none}body{font-size:15px;line-height:1.75}
  .world-header{padding:calc(8px + env(safe-area-inset-top,0px)) 20px 6px;column-gap:12px;row-gap:0}.world-header .wordmark{font-size:29px;min-height:44px;display:flex;align-items:center}.world-header #music,.world-header .journey-bar button{font-size:12px;min-height:44px;padding:6px}.world-header nav{gap:0;min-height:40px}.world-header nav a{font-size:14px;min-height:40px;padding:8px 4px}.world-header:before{background:linear-gradient(to bottom,rgba(233,228,217,.98) 60%,rgba(233,228,217,0))}
  .chapter-paging .intro,.chapter-paging .world-section{height:100svh;min-height:0;max-height:none;padding:var(--mobile-top) 20px var(--mobile-bottom)}
  .chapter-paging .intro{padding-top:calc(110px + env(safe-area-inset-top,0px));display:block}.chapter-paging .hero-copy{width:100%}.chapter-paging .intro h1{font-size:clamp(86px,28vw,128px);margin:0 0 0 -.025em;width:auto}.chapter-paging .intro .lead{position:absolute;left:20px;right:20px;bottom:calc(100px + env(safe-area-inset-bottom,0px));font-size:20px;line-height:1.7;margin:0}.chapter-paging .intro .primary{position:absolute;left:20px;bottom:calc(40px + env(safe-area-inset-bottom,0px));font-size:15px;min-height:44px;padding:10px 0}
  .chapter-paging .scene-copy{width:100%;margin:0!important;min-height:0;max-height:calc(100svh - var(--mobile-top) - var(--mobile-bottom));padding:0;overflow:hidden}.chapter-paging .scene-copy h2,.chapter-paging #about h2{font-size:clamp(28px,8.5vw,38px);line-height:1.3;margin-bottom:18px}.chapter-paging #dos h2{font-size:clamp(32px,9.3vw,42px)}.chapter-paging #spaced h2{font-size:clamp(62px,18vw,82px)}.scene-copy p{max-width:none;margin-bottom:18px;font-size:15px}.scene-copy .lead{font-size:19px;line-height:1.6}.chapter-intro{margin-bottom:28px}
  .skills>div{margin:0 0 25px!important}.skills dt{font-size:20px;margin-bottom:6px}.skills dd{font-size:15px;max-width:none}.project summary{font-size:18px;line-height:1.5;min-height:48px;padding:14px 0;gap:12px}.project-body{font-size:15px;padding:8px 0 16px}.project-body p,.project-body li{font-size:15px}.tech-line{overflow-wrap:anywhere}.miniapp{gap:16px;margin:24px 0}.miniapp a{flex-shrink:0}.miniapp img{width:80px;height:80px}.miniapp h3{font-size:18px;margin-bottom:7px}.miniapp p{font-size:14px;margin:0;line-height:1.65}.server-meta{gap:16px 20px;margin:22px 0}.server-meta dt{font-size:12px}.server-meta dd{font-size:14px}.film{margin:28px 0}.film:nth-child(2){margin-left:0;width:100%}.film h3{font-size:19px;line-height:1.5;margin:14px 0 10px}.film .small{font-size:12px}.email{font-size:clamp(32px,9.6vw,43px);margin:24px 0;line-height:1.2}.social{gap:8px 20px;margin-bottom:20px}.social a{min-height:36px;display:inline-flex;align-items:center;font-size:14px}.avatar{width:52px;height:52px;margin:12px 16px 0 0}.text-link{font-size:14px;min-height:44px}
  .read-chapter,#about .read-chapter,#projects .read-chapter,#clips .read-chapter{left:20px;bottom:calc(18px + env(safe-area-inset-bottom,0px));font-size:14px;min-height:44px;padding:10px 0}
  .chapter-paging .scene-copy.is-reading{position:absolute;z-index:6;inset:calc(108px + env(safe-area-inset-top,0px)) 20px var(--mobile-bottom);width:auto;max-height:none;min-height:0;padding:22px 18px;background:#e9e4d9;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;scrollbar-gutter:stable}.chapter-paging #spaced .scene-copy.is-reading{background:#10262c}.chapter-paging #clips .scene-copy.is-reading{background:#18252b}.reading-open .read-chapter{z-index:7}
  .chapter-paging #contact footer{inset:auto 20px calc(10px + env(safe-area-inset-bottom,0px));padding:0;font-size:11px;line-height:1.65}.chapter-paging #contact footer div{gap:2px;margin:3px 0}.chapter-paging #contact footer img{width:13px;height:13px}.chapter-paging #contact .scene-copy{max-height:calc(100svh - var(--mobile-top) - var(--contact-footer-height,120px) - 76px)}.chapter-paging #contact .read-chapter{bottom:calc(var(--contact-footer-height,120px) + 20px + env(safe-area-inset-bottom,0px))}.chapter-paging #contact .scene-copy.is-reading{bottom:calc(var(--contact-footer-height,120px) + 72px + env(safe-area-inset-bottom,0px));max-height:none}
  .entry-screen{padding:24px 22px calc(24px + env(safe-area-inset-bottom,0px))}.entry-content h2{font-size:clamp(80px,25vw,112px);margin-bottom:24px}.entry-invitation{font-size:16px;margin-bottom:36px}.entry-play{font-size:16px;padding:18px 22px;min-height:56px}.entry-silent{min-height:44px;font-size:13px}.entry-choices{gap:10px}.entry-ready{font-size:13px}.qr-card{max-height:calc(100svh - 40px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:44px 24px 24px}.qr-card h2{font-size:25px;margin-bottom:20px}.qr-card .qr-code{width:min(220px,100%)}
}
@media(max-width:600px) and (max-height:700px){:root{--mobile-top:max(165px,32svh)}.chapter-paging .intro h1{font-size:26vw}.chapter-paging .intro .lead{font-size:18px;bottom:90px}.chapter-paging .intro .primary{bottom:28px}.entry-invitation{margin-bottom:24px}.entry-content h2{font-size:80px}.entry-choices{margin-top:20px}}
@media(orientation:landscape) and (max-height:520px) and (pointer:coarse){.world-header{padding:4px 20px;flex-wrap:nowrap}.world-header nav{order:0;width:auto;gap:16px}.world-header .stage-bottom{order:0}.world-header .journey-bar #reset-view,.world-header .journey-bar #focus-model{display:none}.chapter-paging .intro,.chapter-paging .world-section{height:100svh;min-height:0;padding:80px 24px 56px}.chapter-paging .scene-copy{width:48%;min-height:0;max-height:calc(100svh - 150px)}.chapter-paging .scene-copy h2,.chapter-paging #about h2{font-size:30px;margin-bottom:16px}.chapter-paging #spaced h2{font-size:60px}.chapter-paging .intro h1{font-size:90px;margin-bottom:16px}.chapter-paging .intro .lead{font-size:19px}.chapter-paging .intro p:not(.lead){display:none}.chapter-paging .hero-copy{width:48%}.read-chapter{bottom:12px}.chapter-paging #contact .scene-copy{max-height:calc(100svh - 140px - var(--contact-footer-height,70px))}.chapter-paging #contact footer{bottom:8px;font-size:10px}.entry-screen{padding:16px}.entry-content h2{font-size:65px;margin-bottom:8px}.entry-invitation{margin-bottom:16px}.entry-choices{margin-top:14px;gap:4px}.entry-play{padding:12px 20px}.entry-ready{margin:0}.qr-card{max-height:90svh;width:440px;padding:22px 28px}.qr-card .qr-code{width:150px;margin-bottom:10px}.qr-card h2{font-size:23px;margin-bottom:10px}.qr-card .qr-hint{margin-top:8px}}
@media(max-width:600px){.entered-world .intro .hero-copy{position:static;animation:none;translate:none;transform:none}}
@media(max-width:600px){
  :root{--mobile-top:62svh}
  .chapter-paging .world-section:before,.chapter-paging #about:before,.chapter-paging #projects:before{background:linear-gradient(to bottom,rgba(233,228,217,0) 0%,rgba(233,228,217,0) 44svh,rgba(233,228,217,.55) 60svh,rgba(233,228,217,.94) 82svh)}
  .chapter-paging #spaced:before,.chapter-paging #clips:before{background:linear-gradient(to bottom,rgba(10,27,32,0),rgba(10,27,32,0) 44svh,rgba(10,27,32,.55) 60svh,rgba(10,27,32,.96) 82svh)}
  .chapter-paging .scene-copy:not(.is-reading)>*:not(h2):not(.chapter-intro){display:none}
  .chapter-paging .scene-copy:not(.is-reading)>h2+p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .scene-copy:not(.is-reading) .chapter-intro{margin:0}.scene-copy:not(.is-reading) .chapter-intro p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:14px;line-height:1.7;margin:0}
  .scene-copy:not(.is-reading) .chapter-intro p~p{display:none}
  .chapter-paging .scene-copy:not(.is-reading) h2,.chapter-paging #about .scene-copy:not(.is-reading) h2{font-size:30px;line-height:1.25;margin-bottom:14px}.chapter-paging #spaced .scene-copy:not(.is-reading) h2{font-size:62px}.chapter-paging #dos .scene-copy:not(.is-reading) h2{font-size:34px}
  .chapter-paging #contact{--mobile-top:56svh}.chapter-paging #contact .scene-copy:not(.is-reading)>p{display:none}.chapter-paging #contact .scene-copy:not(.is-reading) .email{display:block;font-size:clamp(29px,9vw,38px);margin:18px 0 0}
  .chapter-paging #contact footer div{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;white-space:nowrap;letter-spacing:-.2px}.chapter-paging #contact footer div a{font-size:clamp(8.5px,2.65vw,11px)}.chapter-paging #contact footer img{width:11px;height:11px;margin-right:3px}
}
@media(max-width:600px) and (max-height:700px){:root{--mobile-top:58svh}.chapter-paging .scene-copy:not(.is-reading) h2,.chapter-paging #about .scene-copy:not(.is-reading) h2{font-size:27px;margin-bottom:10px}.scene-copy:not(.is-reading) .chapter-intro p{-webkit-line-clamp:1}.chapter-paging #contact{--mobile-top:48svh}.chapter-paging #contact .scene-copy:not(.is-reading) .email{margin-top:12px}}
.film--guitar video{aspect-ratio:1920/1888;object-fit:contain}
.film-open{position:relative;display:block;width:100%;padding:0;overflow:hidden;background:#162824;text-align:center}.film-open img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .5s}.film--guitar .film-open img{aspect-ratio:1920/1888;object-fit:contain}.film-open span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:14px 24px;background:#f2efe8;color:#293a32;white-space:nowrap;font-size:15px}.film-open:hover img{transform:scale(1.025)}html:has(.video-card[open]){overflow:hidden}.video-card{width:min(900px,calc(100vw - 40px));max-height:90svh;padding:0;border:0;background:#f2efe8;color:#293a32;border-radius:5px;box-shadow:0 28px 100px #0005;overflow-y:auto;overscroll-behavior:contain}.video-card::backdrop{background:#071b20bb}.video-card[open]{animation:qr-arrive .3s ease-out both}.video-heading{position:static;display:flex;align-items:center;justify-content:space-between;padding:16px 24px;gap:20px}.video-heading h2{font:400 23px/1.4 var(--display);margin:0;letter-spacing:0}.video-close{font-size:28px;min-width:44px;min-height:44px}.video-card video{display:block;width:100%;max-height:calc(90svh - 180px);aspect-ratio:16/9;object-fit:contain;background:#0f1e20}.video-card.video-portrait{width:min(680px,calc(100vw - 40px))}.video-portrait video{aspect-ratio:1920/1888}.video-controls{padding:16px 24px 20px}.video-seek{display:block;width:100%;accent-color:#4c6850;height:6px;margin:4px 0 16px;cursor:pointer}.video-buttons{display:flex;align-items:center;gap:20px;font-size:14px}.video-buttons button{min-height:36px;padding:4px}.video-time{margin-right:auto;font-variant-numeric:tabular-nums;font-size:13px}.video-volume{width:80px;accent-color:#4c6850}.video-card:fullscreen{width:100%;height:100%;max-height:none;border-radius:0}.video-card:fullscreen video{max-height:calc(100svh - 180px)}@media(max-width:600px){.video-card{width:calc(100vw - 24px);max-height:90svh}.video-heading{padding:10px 14px;gap:12px}.video-heading h2{font-size:19px}.video-controls{padding:14px}.video-buttons{gap:12px;font-size:13px}.video-volume{display:none}.video-time{font-size:12px}.video-buttons button{min-height:44px}.video-card video{max-height:calc(90svh - 174px)}.film-open span{font-size:14px;padding:12px 20px}}
.video-shell:fullscreen{display:flex;flex-direction:column;width:100%;height:100%;background:#f2efe8;color:#293a32;overflow:hidden}.video-shell:fullscreen .video-heading,.video-shell:fullscreen .video-controls{flex-shrink:0}.video-shell:fullscreen video{flex:1;min-height:0;max-height:none;width:100%;object-fit:contain}.video-expanded,.video-card.video-portrait.video-expanded{width:calc(100vw - 24px);height:calc(100svh - 24px);max-height:none}.video-expanded .video-shell{height:100%;display:flex;flex-direction:column}.video-expanded video{flex:1;min-height:0;max-height:none;object-fit:contain}.video-expanded .video-heading,.video-expanded .video-controls{flex-shrink:0}
/* Media previews remain directly reachable on phones, with full details in reading mode. */
@media(max-width:600px){
  .chapter-paging #life,.chapter-paging #clips{--mobile-top:50svh}
  .chapter-paging #life .scene-copy:not(.is-reading)>.films,.chapter-paging #clips .scene-copy:not(.is-reading)>.films{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
  .chapter-paging #clips .scene-copy:not(.is-reading)>.films{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .scene-copy:not(.is-reading) .films .film,.scene-copy:not(.is-reading) .films .film:nth-child(2){margin:0;width:100%;min-width:0}
  .scene-copy:not(.is-reading) .film-open img,.scene-copy:not(.is-reading) .film--guitar .film-open img{aspect-ratio:4/3;object-fit:cover}
  .scene-copy:not(.is-reading) .films .film>p{display:none}.scene-copy:not(.is-reading) .films .film h3{font:400 12px/1.5 var(--body);margin:8px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .scene-copy:not(.is-reading) .film-open span{font-size:12px;padding:8px 10px;background:#f2efe8ed;min-width:68px}
  .chapter-paging #life .scene-copy:not(.is-reading)>p,.chapter-paging #clips .scene-copy:not(.is-reading)>p{-webkit-line-clamp:1;font-size:13px;margin:0}
  .chapter-paging #life .scene-copy:not(.is-reading) h2,.chapter-paging #clips .scene-copy:not(.is-reading) h2{margin-bottom:12px;font-size:28px}
}
@media(max-width:600px) and (max-height:700px){.chapter-paging #life,.chapter-paging #clips{--mobile-top:42svh}.chapter-paging #life .scene-copy:not(.is-reading)>.films,.chapter-paging #clips .scene-copy:not(.is-reading)>.films{margin-top:12px;gap:8px}.scene-copy:not(.is-reading) .film-open img,.scene-copy:not(.is-reading) .film--guitar .film-open img{aspect-ratio:16/10}}
.video-card,.video-card.video-portrait{max-height:calc(var(--player-viewport,100svh) - 32px);overflow:hidden}.video-shell{display:flex;flex-direction:column;max-height:inherit}.video-heading,.video-controls{flex-shrink:0}.video-stage{position:relative;width:100%;aspect-ratio:16/9;max-height:calc(var(--player-viewport,100svh) - 210px);min-height:0;background:#0f1e20;flex-shrink:1;overflow:hidden}.video-portrait .video-stage{aspect-ratio:1920/1888}.video-card .video-stage video{width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain}.video-tap-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);background:#f2efe8ed;color:#293a32;padding:16px 24px;min-height:48px;font-size:15px;white-space:nowrap}.video-tap-play[hidden]{display:none}.video-tap-play:active{transform:translate(-50%,-50%)}.video-message{font:13px/1.5 var(--body);margin:0 0 8px}.video-message:empty{display:none}.video-seek{height:24px;margin:0 0 6px;touch-action:pan-x}.video-seek:disabled{opacity:.5}.video-card .video-close{flex-shrink:0}.video-shell:fullscreen .video-stage,.video-expanded .video-stage{flex:1;aspect-ratio:auto;max-height:none;min-height:0}.video-shell:fullscreen,.video-expanded .video-shell{max-height:none}
@media(max-width:600px){.video-card,.video-card.video-portrait{width:calc(100vw - 24px);max-height:calc(var(--player-viewport,100svh) - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:8px;margin:auto}.video-heading{padding:8px 12px;min-height:60px}.video-heading h2{font-size:18px;line-height:1.5;min-width:0;overflow-wrap:anywhere}.video-heading .video-close{width:44px;height:44px;font-size:28px}.video-controls{padding:8px 12px 12px}.video-buttons{display:grid;grid-template-columns:44px minmax(0,1fr) auto 44px;gap:8px;align-items:center}.video-buttons button{padding:4px 0;min-height:44px;font-size:13px;white-space:nowrap}.video-time{margin:0;white-space:nowrap;font-size:12px}.video-volume{display:none}.video-stage{max-height:calc(var(--player-viewport,100svh) - 210px)}.video-card.video-expanded{height:calc(var(--player-viewport,100svh) - 24px)}.scene-copy.is-reading .film-open span{font-size:14px;min-height:44px;display:flex;align-items:center}}
@media(orientation:landscape) and (max-height:520px) and (pointer:coarse){.video-card,.video-card.video-portrait{width:min(720px,calc(100vw - 32px));max-height:calc(var(--player-viewport,100svh) - 16px)}.video-heading{padding:2px 14px;min-height:44px}.video-heading h2{font-size:17px}.video-controls{padding:4px 14px}.video-buttons button{min-height:36px}.video-stage{max-height:calc(var(--player-viewport,100svh) - 144px)}.video-seek{height:20px;margin-bottom:0}}

.profile-links{display:flex;flex-wrap:wrap;gap:12px 26px;margin-top:20px}
.profile-links .text-link{margin-top:0}
@media(max-width:600px){.profile-links{gap:8px 20px;margin-top:16px}.profile-links .text-link{display:inline-flex;align-items:center;min-height:40px}}

/* ── 手机端排版优化：文字贴底、遮罩加深、媒体卡片横滑、修复导语被隐藏 ── */
@media(max-width:600px){
  /* 章节文字块统一贴近底部，3D 场景完整留在上半屏 */
  .chapter-paging .world-section,.chapter-paging #about{display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;padding-top:calc(118px + env(safe-area-inset-top,0px));padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  .chapter-paging .scene-copy:not(.is-reading){flex:0 1 auto;min-height:0;max-height:100%;overflow:hidden}
  /* 底部遮罩：从 40% 处开始渐入，文字区域接近不透明，保证可读性 */
  .chapter-paging .world-section:before,.chapter-paging #about:before,.chapter-paging #projects:before{background:linear-gradient(to bottom,rgba(233,228,217,0) 0,rgba(233,228,217,0) 40%,rgba(233,228,217,.72) 58%,rgba(233,228,217,.97) 74%)}
  .chapter-paging #spaced:before,.chapter-paging #clips:before{background:linear-gradient(to bottom,rgba(10,27,32,0) 0,rgba(10,27,32,0) 38%,rgba(10,27,32,.75) 56%,rgba(10,27,32,.97) 72%)}
  /* 标题与导语节奏 */
  .chapter-paging .scene-copy:not(.is-reading) h2,.chapter-paging #about .scene-copy:not(.is-reading) h2{font-size:clamp(26px,7.6vw,31px);line-height:1.32;margin-bottom:12px;letter-spacing:-.02em}
  .chapter-paging #dos .scene-copy:not(.is-reading) h2{font-size:clamp(30px,8.6vw,36px)}
  .chapter-paging #spaced .scene-copy:not(.is-reading) h2{font-size:clamp(56px,16vw,68px);margin-bottom:8px}
  .scene-copy:not(.is-reading) .chapter-intro p,.chapter-paging .scene-copy:not(.is-reading)>h2+p{font-size:14px;line-height:1.75;color:inherit;opacity:.86}
  .scene-copy:not(.is-reading) .chapter-intro .lead{font-size:16px;opacity:1}
  /* 修复：h2 后的导语段落被通用隐藏规则覆盖（关于 / 生活 / 影像） */
  .chapter-paging .world-section .scene-copy:not(.is-reading)>h2+p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:0 0 4px}
  .chapter-paging #life .scene-copy:not(.is-reading)>h2+p,.chapter-paging #clips .scene-copy:not(.is-reading)>h2+p{-webkit-line-clamp:2}
  .chapter-paging #contact .scene-copy:not(.is-reading){max-height:100%}
  /* 「展卷细读」按钮加上箭头，更像可点击入口 */
  .read-chapter,#about .read-chapter,#projects .read-chapter,#clips .read-chapter{bottom:calc(16px + env(safe-area-inset-bottom,0px));font-size:14px;letter-spacing:.04em}
  .chapter-paging .world-section:not(.reading-open)>.read-chapter:after{content:' ↑';text-decoration:none;display:inline-block;margin-left:4px}

  /* 生活 / 影像：缩略图上只留圆形播放标记，不再遮住画面 */
  .chapter-paging #life,.chapter-paging #clips{--mobile-top:0}
  .scene-copy:not(.is-reading) .film-open span{font-size:0;min-width:0;width:42px;height:42px;padding:0;border-radius:50%;background:#f2efe8e6;box-shadow:0 4px 14px #0002;display:flex;align-items:center;justify-content:center}
  .scene-copy:not(.is-reading) .film-open span:before{content:'';display:block;margin-left:3px;border-style:solid;border-width:7px 0 7px 11px;border-color:transparent transparent transparent #293a32}
  .scene-copy:not(.is-reading) .films .film h3{font-size:12.5px;line-height:1.5;margin-top:8px;text-wrap:pretty}
  /* 影像三张卡片改为横向滑动，第三张露出一角提示可滑 */
  .chapter-paging #clips .scene-copy:not(.is-reading)>.films{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:40vw;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;margin-right:-20px;padding-right:20px;scrollbar-width:none;touch-action:pan-x pan-y}
  .chapter-paging #clips .scene-copy:not(.is-reading)>.films::-webkit-scrollbar{display:none}
  .chapter-paging #clips .scene-copy:not(.is-reading) .film{scroll-snap-align:start}
  .chapter-paging #life .scene-copy:not(.is-reading)>p,.chapter-paging #clips .scene-copy:not(.is-reading)>p{font-size:13.5px;opacity:.86}

  /* 小程序卡片 */
  .miniapp{align-items:center}

  /* 作品列表：标题避免孤字换行，副标题略小 */
  .project summary{font-size:16.5px;line-height:1.55;text-wrap:pretty}
  .project-body li{margin-bottom:6px;line-height:1.7}
  .tech-line{font-size:12.5px!important;line-height:1.7;opacity:.8}
  /* 阅读面板：圆角 + 轻阴影，与 3D 背景区分 */
  .chapter-paging .scene-copy.is-reading{border-radius:10px;box-shadow:0 10px 40px #2b3a3022;padding:24px 20px}
  .chapter-paging #spaced .scene-copy.is-reading,.chapter-paging #clips .scene-copy.is-reading{box-shadow:0 10px 40px #0006}

  /* 联系页：邮箱下方直接给出社交链接，填补空白 */
  .chapter-paging #contact{padding-bottom:calc(var(--contact-footer-height,120px) + 70px + env(safe-area-inset-bottom,0px))}
  .chapter-paging #contact .scene-copy:not(.is-reading)>.social{display:flex;flex-wrap:wrap;gap:4px 18px;margin:14px 0 0}
  .chapter-paging #contact .scene-copy:not(.is-reading)>.social a{font-size:13.5px;min-height:36px}
  .chapter-paging #contact .scene-copy:not(.is-reading) .email{margin:14px 0 0}

  /* 首屏：大标题与下方文字之间留出呼吸 */
  .chapter-paging .intro .lead{font-size:clamp(18px,5.2vw,21px);line-height:1.65;text-wrap:pretty}
}
@media(max-width:600px) and (max-height:700px){
  .chapter-paging .world-section{padding-top:calc(108px + env(safe-area-inset-top,0px));padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}
  .chapter-paging .scene-copy:not(.is-reading) h2,.chapter-paging #about .scene-copy:not(.is-reading) h2{font-size:25px;margin-bottom:8px}
  .chapter-paging .world-section .scene-copy:not(.is-reading)>h2+p{-webkit-line-clamp:2}
  .chapter-paging #clips .scene-copy:not(.is-reading)>.films{grid-auto-columns:40vw}
}
