.personal-home{width:calc(100% - 112px);max-width:720px;margin:74px auto 0;font-family:var(--ui)}
.home-about{margin:0 0 64px;scroll-margin-top:40px}
.personal-home h1{font:500 58px/1.12 var(--ui);letter-spacing:-2.8px;margin:0 0 24px}
.intro-copy{font-size:20px;line-height:1.75;color:#66676c;margin:0;max-width:590px}
.home-essay{font:400 18px/1.9 var(--ui);color:#414248;letter-spacing:.005em;overflow-wrap:break-word;scroll-margin-top:40px}
.home-essay p{margin:0 0 1.5em}
.home-essay p:last-child{margin-bottom:0}
body[data-page=home] .site-footer{max-width:720px;margin-top:88px}
@media(max-width:780px){.personal-home{width:calc(100% - 48px);margin-top:43px}.personal-home h1{font-size:43px;letter-spacing:-2px;margin-bottom:20px}.home-about{margin-bottom:46px}.intro-copy{font-size:18px;line-height:1.75}.home-essay{font-size:17px;line-height:1.85}.home-essay p{margin-bottom:1.35em}body[data-page=home] .site-footer{width:calc(100% - 48px);margin-top:60px}}
.home-about{margin-bottom:40px}
.home-portrait{margin-top:34px;font-size:18px;line-height:1.85;color:#48494e}
.home-portrait p{margin:0 0 20px}
.essay-preview{position:relative;display:block;padding:24px 26px 0;border:1px solid rgba(90,95,110,.13);border-radius:16px;background:rgba(255,255,255,.35);text-decoration:none;color:inherit;overflow:hidden;transition:border-color .2s,background .2s;scroll-margin-top:30px}
.essay-preview:hover{border-color:rgba(90,95,110,.3);background:rgba(255,255,255,.65)}
.essay-preview:focus-visible{outline:2px solid #676d7a;outline-offset:5px}
.essay-preview-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;font-size:14px;color:#575b63}
.essay-open{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(100,110,130,.07);transition:transform .2s}
.essay-open svg{width:18px;height:18px}.essay-preview:hover .essay-open{transform:translateX(3px)}
.essay-excerpt{height:210px;overflow:hidden;position:relative;font:400 16px/30px var(--ui);color:#5c5e64;user-select:none;pointer-events:none;mask-image:linear-gradient(#000 0%,#000 62%,transparent 100%);-webkit-mask-image:linear-gradient(#000 0%,#000 62%,transparent 100%)}
.essay-excerpt p{margin:0 0 12px}
.essay-excerpt:after{content:'';position:absolute;inset:95px 0 0;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);mask-image:linear-gradient(transparent,#000 85%);-webkit-mask-image:linear-gradient(transparent,#000 85%);pointer-events:none}
.home-coda{margin-top:32px;font-size:16px;line-height:1.8;color:#777980}.home-coda p{margin:0}
.story-page{position:relative;margin-top:55px}.story-back{margin:0 0 24px;width:44px;height:44px;padding:0;border-radius:50%;background:rgba(255,255,255,.65);border:1px solid rgba(100,108,124,.16);box-shadow:0 2px 8px rgba(30,35,50,.06),inset 0 1px 0 #fff;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#454950}.story-back:hover{background:rgba(235,238,244,.85)}.story-back:focus-visible{outline:2px solid #676d7a;outline-offset:4px}.story-back svg{width:20px;height:20px}.personal-home .story-title{font-size:30px;line-height:1.3;letter-spacing:-.8px;margin-bottom:42px}
@media(max-width:780px){.home-portrait{font-size:17px;margin-top:28px}.essay-preview{padding:18px 20px 0;border-radius:12px}.essay-preview-top{font-size:13px}.essay-excerpt{font-size:15px;line-height:28px;height:196px}.home-coda{font-size:15px}.story-page{margin-top:30px}.personal-home .story-title{font-size:26px}}

.home-facts{margin:0 0 44px;display:flex;flex-direction:column;gap:38px}
.fact-section{display:block;margin:0;scroll-margin-top:30px}
.fact-section h2{margin:0 0 14px;font:500 23px/1.3 var(--ui);letter-spacing:-.5px;color:#303238}
.fact-content{font-size:16px;line-height:1.8;color:#55575e}
.fact-content>p{margin:0 0 12px}.fact-content>p:last-child{margin-bottom:0}
.fact-item{position:relative;padding:10px 0;margin:0}.fact-item:first-child{padding-top:0}.fact-item:last-child{padding-bottom:0}
.fact-item h3{margin:0;font:500 17px/1.5 var(--ui);color:#303238}
.fact-item p{margin:3px 0 0;color:#777980;font-size:14px;line-height:1.65;max-width:590px}
.fact-link{display:flex;justify-content:space-between;align-items:center;gap:20px;text-decoration:none;color:inherit;border-radius:8px}
.fact-link>span{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:rgba(100,110,130,.06);color:#7b7e87;transition:background .2s,transform .2s}
.fact-link svg{width:16px;height:16px}.fact-link:hover>span{background:rgba(100,110,130,.13);transform:translateX(3px)}.fact-link:focus-visible{outline:2px solid #676d7a;outline-offset:6px}
body[data-page=home] .personal-home{max-width:680px;margin-top:58px}body[data-page=home] .home-about{margin-bottom:38px}body[data-page=home] .personal-home h1{font-size:52px;margin-bottom:16px}body[data-page=home] .intro-copy{font-size:18px}body[data-page=home] .site-footer{max-width:680px;margin-top:60px}
@media(max-width:780px){body[data-page=home] .personal-home{margin-top:36px}body[data-page=home] .personal-home h1{font-size:42px}.home-facts{gap:32px}.fact-section h2{font-size:21px}.fact-content{font-size:16px}.fact-item p{font-size:14px}}
body[data-page=home] .visual-home{max-width:1040px;margin-top:56px}.profile-cover{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:64px;align-items:center;margin-bottom:70px}.profile-copy p{font-size:16px;line-height:1.8;color:#62636b;margin:0 0 18px}.profile-copy p:last-child{margin-bottom:0}.profile-copy .profile-lead{font-size:23px;line-height:1.5;color:#34363d;margin:24px 0}.photo-slot{background:linear-gradient(145deg,#eeeef1,#e2e3e9);min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:5px;color:#90939e}.photo-slot svg{width:42px;height:42px;stroke:currentColor;fill:none;stroke-width:1.2;margin-bottom:15px}.photo-slot span{font-size:14px;color:#727581}.photo-slot small{font-size:11px;margin-top:6px}.portrait-slot{height:460px;background:linear-gradient(150deg,#e7e8ee,#f0ece8)}.visual-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.visual-heading h2{font-size:23px;font-weight:500;letter-spacing:-.5px;margin:0}.visual-heading .icon-button{background:rgba(100,110,130,.06);width:36px;height:36px;padding:8px}.project-pair,.life-pair,.life-captions{display:grid;grid-template-columns:1fr 1fr;gap:28px}.visual-project{text-decoration:none;color:inherit}.project-art{display:block;width:100%;height:auto;border-radius:5px;stroke:none;stroke-width:initial}.project-caption{display:flex;align-items:center;justify-content:space-between;padding-top:16px;gap:16px}.project-caption h3{font-size:18px;font-weight:500;margin:0 0 5px}.project-caption p{font-size:14px;color:#7b7d85;margin:0;line-height:1.6}.project-caption>svg{width:18px;height:18px;color:#878b96}.visual-project:focus-visible{outline:2px solid #7b7f89;outline-offset:6px}.work-context{font-size:15px;color:#73757c;line-height:1.85;max-width:850px;margin:26px 0 0}.visual-work,.visual-life{margin-bottom:58px;scroll-margin-top:30px}.life-captions p{font-size:15px;line-height:1.8;color:#73757c;margin:15px 0 0}.visual-home .essay-preview{max-width:720px;margin:0 auto}.visual-home .life-pair .photo-slot:last-child{background:linear-gradient(145deg,#ede7e2,#e7e4e2)}body[data-page=home] .site-footer{max-width:1040px}
@media(max-width:780px){body[data-page=home] .visual-home{margin-top:32px}.profile-cover{grid-template-columns:1fr;gap:28px;margin-bottom:44px}.profile-copy .profile-lead{font-size:21px;margin:20px 0}.portrait-slot{height:310px;min-height:0}.project-pair{grid-template-columns:1fr;gap:28px}.life-pair,.life-captions{gap:16px}.life-pair .photo-slot{min-height:190px}.visual-work,.visual-life{margin-bottom:40px}.visual-heading h2{font-size:21px}.life-captions p{font-size:14px}.photo-slot span{font-size:12px}}

/* Shared section edges; variation stays inside the image grid. */
body[data-page=home] .visual-home{max-width:1040px}
.profile-cover{grid-template-columns:minmax(0,1fr) 280px;gap:64px;align-items:center;margin-bottom:40px}
.profile-copy{padding:0}.portrait-slot{width:100%;height:300px;min-height:0;margin:0;justify-self:end;border-radius:4px;background:#e9e9ed}
.visual-home .essay-preview{max-width:670px;margin:0 auto 64px}
.visual-work,.visual-life{margin:0 0 60px}
.visual-heading{max-width:none;margin-bottom:22px}
.project-pair,.life-pair{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px;align-items:start}
.visual-project:last-child{margin-top:0}.visual-project .project-art{aspect-ratio:1.65;object-fit:cover}
.work-context{max-width:800px;margin-top:26px}
.life-frame{margin:0;min-width:0;padding:0}.life-frame .photo-slot{height:270px;min-height:0;background:#e9e9ed}.life-frame:last-child .photo-slot{height:230px;background:#ece9e6}
.life-frame figcaption{font-size:14px;line-height:1.8;color:#73757c;margin-top:14px;max-width:440px}
@media(max-width:780px){.profile-cover{grid-template-columns:minmax(0,1fr) 190px;gap:28px;margin-bottom:32px}.portrait-slot{height:240px}.visual-home .essay-preview{margin:0 auto 44px}.project-pair,.life-pair{gap:22px}.visual-work,.visual-life{margin-bottom:44px}.life-frame .photo-slot{height:220px}.life-frame:last-child .photo-slot{height:190px}}
@media(max-width:560px){.profile-cover{grid-template-columns:1fr}.portrait-slot{width:170px;height:195px;justify-self:center}.project-pair{grid-template-columns:1fr;gap:28px}.life-pair{grid-template-columns:1fr 1fr;gap:16px}.life-frame .photo-slot{height:180px}.life-frame:last-child .photo-slot{height:160px}.life-frame figcaption{font-size:13px}}

/* The essay is a continuation of the introduction, not a separate card. */
.visual-home .profile-copy .essay-preview{max-width:none;margin:28px 0 0;padding:20px 0 0;border:0;border-top:1px solid rgba(90,95,110,.12);border-radius:0;background:transparent;box-shadow:none}
.profile-copy .essay-preview-top{margin-bottom:12px}.profile-copy .essay-excerpt{height:160px;font-size:15px;line-height:28px}.profile-copy .essay-excerpt p{font-size:15px;line-height:28px;margin:0 0 10px}.profile-copy .essay-excerpt:after{top:65px}
.profile-cover{align-items:start}.portrait-slot{margin-top:20px}
.project-placeholder{width:100%;aspect-ratio:1.65;min-height:0;height:auto;background:#e9e9ed}.visual-project:last-child .project-placeholder{background:#ece9e6}
@media(max-width:560px){.portrait-slot{margin-top:0}.profile-copy .essay-excerpt{height:150px}.visual-home .profile-copy .essay-preview{margin-top:24px}}

/* Featured projects have equal visual weight. */
.project-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.project-pair .project-placeholder{aspect-ratio:1.65}.project-pair .visual-project{width:100%;margin-top:0}
@media(max-width:560px){.project-pair{grid-template-columns:1fr}}

/* Consistent image proportions across work and life. */
.life-pair{grid-template-columns:repeat(2,minmax(0,1fr))}
.life-pair .life-frame .photo-slot{width:100%;height:auto;min-height:0;aspect-ratio:1.65}
.profile-cover>.profile-copy{grid-column:1;grid-row:1;min-width:0}
.profile-cover>.portrait-slot{grid-column:2;grid-row:1}
@media(max-width:560px){
 .life-pair{grid-template-columns:1fr;gap:28px}
 .profile-cover{display:flow-root}
 .profile-cover>.portrait-slot{float:right;width:clamp(88px,25vw,128px);height:auto;aspect-ratio:3/4;margin:0 0 16px 20px}
 .profile-cover>.profile-copy{display:contents}
 body[data-page=home] .profile-cover h1{font-size:clamp(28px,7.4vw,40px);letter-spacing:-1.3px;padding-top:4px;margin-bottom:16px}
 .profile-copy .profile-lead{font-size:19px;line-height:1.5;margin:0 0 20px}
 .profile-copy .essay-preview{clear:both}
}

/* Frame the original portrait without modifying the photograph. */
.profile-cover>.portrait-slot{position:relative;overflow:hidden;height:auto;aspect-ratio:3/4}
.portrait-slot>img{position:absolute;display:block;width:118%;max-width:none;height:auto;left:-9%;top:-22.5%}

.personal-home[lang="zh-CN"] h1{letter-spacing:0}
.story-page[lang="zh-CN"] .home-essay{line-height:2;letter-spacing:.025em}

.education-cover{margin:0 0 32px}.education-cover img{display:block;width:100%;max-height:520px;object-fit:cover;border-radius:5px}.education-cover figcaption{font-size:12px;color:#777;line-height:1.5;margin-top:8px}
