/* Original two-column profile structure with the shared white visual system. */
body[data-profile-view=true]{height:100dvh;overflow:hidden}
body[data-profile-view=true] .app-shell{height:100dvh;display:grid;grid-template-rows:76px minmax(0,1fr) 44px;max-width:none}
body[data-profile-view=true] main{min-height:0;overflow:clip}
body[data-profile-view=true] .site-footer{padding:0}
body[data-profile-view=true] .landing-shell{height:100%;min-height:0;display:grid;grid-template-columns:minmax(260px,.56fr) minmax(0,1.44fr);gap:clamp(24px,2.8vw,50px);padding:12px 0 5px}
body[data-profile-view=true] .landing-sidebar{display:flex;flex-direction:column;min-width:0;min-height:0;padding:clamp(28px,5vh,56px) clamp(18px,1.7vw,32px) 26px 0;border-right:1px solid var(--line)}
body[data-profile-view=true] .identity-eyebrow{font-size:9px;letter-spacing:.12em;line-height:1.6;color:var(--accent);margin:0 0 28px}
body[data-profile-view=true] .identity-eyebrow:before{content:none}
body[data-profile-view=true] .landing-name{display:inline-block;align-self:flex-start}
body[data-profile-view=true] .landing-name h1{font-family:var(--sans);font-style:normal;font-weight:700;font-size:clamp(38px,3.4vw,64px);line-height:1.08;letter-spacing:-.05em;margin:0;color:var(--ink)}
body[data-profile-view=true] .landing-chinese{font-size:17px;color:var(--ink);margin:16px 0 26px;letter-spacing:.03em}
body[data-profile-view=true] .landing-chinese>span{font-size:12px;color:var(--muted);margin-left:8px;letter-spacing:0}
body[data-profile-view=true] .landing-role{font-size:clamp(17px,1.45vw,23px);font-weight:500;line-height:1.65;margin:0 0 16px;letter-spacing:-.02em}
body[data-profile-view=true] .landing-tagline{font-size:14px;line-height:1.95;color:var(--muted);margin:0;letter-spacing:0}
body[data-profile-view=true] .landing-location{font-size:11px;color:var(--muted);margin:20px 0 0;letter-spacing:0}
body[data-profile-view=true] .landing-location>span{margin-right:8px;color:var(--ink)}
body[data-profile-view=true] .landing-nav{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:0;border:0;margin:clamp(28px,5vh,60px) 0 28px}
body[data-profile-view=true] .landing-nav a{display:flex;align-items:center;gap:16px;padding:11px 0;font-size:12px;color:var(--muted);letter-spacing:0;transition:color .2s}
body[data-profile-view=true] .landing-nav a>span{display:block}
body[data-profile-view=true] .landing-nav small{font-size:9px;letter-spacing:.08em;margin-left:10px;color:inherit}
body[data-profile-view=true] .nav-rule{display:block;width:28px;height:1px;background:var(--line);transition:width .25s,background .25s}
body[data-profile-view=true] .landing-nav a[aria-current],body[data-profile-view=true] .landing-nav a:hover{color:var(--ink)}
body[data-profile-view=true] .landing-nav a[aria-current] .nav-rule,body[data-profile-view=true] .landing-nav a:hover .nav-rule{width:52px;background:var(--ink)}
body[data-profile-view=true] .landing-bottom{margin-top:auto}
body[data-profile-view=true] .landing-socials{display:flex;align-items:center;gap:24px;color:var(--muted)}
body[data-profile-view=true] .landing-socials a{display:flex;align-items:center;gap:7px;font-size:11px}
body[data-profile-view=true] .landing-socials svg{width:17px;height:17px}
body[data-profile-view=true] .landing-socials button{font-size:11px}
body[data-profile-view=true] .landing-socials button>span{margin-left:5px}
body[data-profile-view=true] .landing-socials a:hover,body[data-profile-view=true] .landing-socials button:hover{color:var(--ink)}
body[data-profile-view=true] .landing-bottom>p{font-size:9px;color:var(--muted);margin:22px 0 0;letter-spacing:.08em}
body[data-profile-view=true] .landing-bottom>p>span{display:block;font-size:9px;margin-top:5px;letter-spacing:0}
body[data-profile-view=true] .profile-scroll{height:100%;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ccc transparent;scroll-padding-top:40px;padding:clamp(28px,5vh,56px) 8px 32px 0;outline-offset:-3px}
body[data-profile-view=true] .profile-section{max-width:1120px;min-width:0;margin:0 0 clamp(64px,9vh,100px);scroll-margin-top:0}
body[data-profile-view=true] .profile-section:last-child{margin-bottom:0}
body[data-profile-view=true] .landing-section-label{font-size:10px;font-weight:500;letter-spacing:.12em;color:var(--accent);line-height:1.5;margin:0 0 28px}
body[data-profile-view=true] .landing-section-label:before{content:none}
body[data-profile-view=true] .intro-content{display:block}
body[data-profile-view=true] .intro-content>p{font-size:clamp(14px,.95vw,16px);font-weight:400;line-height:1.9;color:#686868;margin:0 0 16px;max-width:none;letter-spacing:0}
body[data-profile-view=true] .intro-content>.intro-lead{font:inherit;font-size:clamp(14px,.95vw,16px);line-height:1.9;color:#686868;letter-spacing:0}
body[data-profile-view=true] .intro-content strong{font-weight:400;color:inherit}
body[data-profile-view=true] .intro-section{margin-bottom:clamp(44px,6vh,64px)}
body[data-profile-view=true] .intro-section .landing-section-label{margin-bottom:20px}
body[data-profile-view=true] .landing-project-link{font-size:12px;padding:10px 0;gap:28px;margin-top:8px;border-bottom-color:var(--line)}
body[data-profile-view=true] .landing-project-link>span{font-size:10px;color:var(--muted)}
body[data-profile-view=true] .resume-group{margin-bottom:60px}
body[data-profile-view=true] .resume-group>h2{font-size:14px;font-weight:600;letter-spacing:-.01em;gap:8px;margin:0 0 25px;color:var(--ink)}
body[data-profile-view=true] .resume-group>h2>span{font-size:16px;color:var(--muted);font-weight:300}
body[data-profile-view=true] .resume-group>h2 small{font-size:11px;letter-spacing:0}
body[data-profile-view=true] .resume-row{grid-template-columns:110px minmax(0,1fr);gap:24px;padding:24px 0;min-width:0}
body[data-profile-view=true] .resume-date{font-size:11px;line-height:1.85;letter-spacing:0;padding-top:3px}
body[data-profile-view=true] .resume-date br{display:initial}
body[data-profile-view=true] .resume-row>div{min-width:0}
body[data-profile-view=true] .resume-row h3{font-size:17px;font-weight:550;line-height:1.6;letter-spacing:-.015em;margin:0 0 9px;overflow-wrap:anywhere}
body[data-profile-view=true] .resume-row p{font-size:13px;line-height:1.95;letter-spacing:0;overflow-wrap:anywhere}
body[data-profile-view=true] .experience-points{font-size:13px;line-height:1.95;letter-spacing:0;margin:12px 0 0;padding-left:1.3em}
body[data-profile-view=true] .experience-points li+li{margin-top:5px}
body[data-profile-view=true] .resume-stack{margin:0;padding:25px 0 0 134px}
body[data-profile-view=true] .profile-project{display:grid;grid-template-columns:144px minmax(0,1fr);gap:25px;padding:25px 0;align-items:start}
body[data-profile-view=true] .profile-project-image{grid-column:1;grid-row:1;order:0;aspect-ratio:16/10;overflow:hidden;background:#f5f5f5;border-radius:5px;margin-top:4px}
body[data-profile-view=true] .project-row-copy{grid-column:2;grid-row:1;order:0}
body[data-profile-view=true] .project-row-number{font-size:9px;letter-spacing:.08em;margin:0 0 7px}
body[data-profile-view=true] .profile-project h3{font-size:18px;font-weight:600;line-height:1.4;letter-spacing:-.025em;margin:0 0 8px}
body[data-profile-view=true] .profile-project p{font-size:13px;line-height:1.9;letter-spacing:0;margin:0;max-width:none;color:var(--muted)}
body[data-profile-view=true] .profile-tags{gap:7px;margin:12px 0 0}
body[data-profile-view=true] .profile-tags li{font-size:9px;background:#f4f4f4;border-radius:20px;padding:3px 10px}
body[data-profile-view=true] .project-row-link{font-size:10px;margin-top:10px;padding:3px 0;border-bottom-color:var(--line)}
body[data-profile-view=true] .profile-end{margin-top:8px;padding:0 0 25px;gap:20px}
body[data-profile-view=true] .landing-back-top{font-size:11px}
@media(max-width:1100px) and (min-width:761px){body[data-profile-view=true] .landing-shell{gap:24px}body[data-profile-view=true] .landing-sidebar{padding-right:18px}body[data-profile-view=true] .landing-name h1{font-size:40px}body[data-profile-view=true] .landing-role{font-size:17px}body[data-profile-view=true] .landing-nav small{font-size:8px;margin-left:6px}body[data-profile-view=true] .landing-socials{gap:14px}body[data-profile-view=true] .resume-row{grid-template-columns:85px minmax(0,1fr);gap:18px}body[data-profile-view=true] .profile-project{grid-template-columns:115px minmax(0,1fr);gap:20px}}
@media(max-height:740px) and (min-width:761px){body[data-profile-view=true] .landing-sidebar,body[data-profile-view=true] .profile-scroll{padding-top:25px;padding-bottom:20px}body[data-profile-view=true] .identity-eyebrow{margin-bottom:20px}body[data-profile-view=true] .landing-name h1{font-size:40px}body[data-profile-view=true] .landing-chinese{margin:12px 0 18px;font-size:14px}body[data-profile-view=true] .landing-role{font-size:17px;margin-bottom:12px}body[data-profile-view=true] .landing-tagline{font-size:13px}body[data-profile-view=true] .landing-location{margin-top:12px}body[data-profile-view=true] .landing-nav{margin:24px 0}body[data-profile-view=true] .landing-nav a{padding:8px 0}body[data-profile-view=true] .landing-bottom>p{display:none}}
@media(max-height:650px) and (min-width:761px){body[data-profile-view=true] .identity-eyebrow,body[data-profile-view=true] .landing-tagline{display:none}body[data-profile-view=true] .landing-sidebar{padding-top:20px;padding-bottom:18px}body[data-profile-view=true] .landing-nav{margin:16px 0}body[data-profile-view=true] .landing-nav a{padding:7px 0;font-size:11px}}
@media(max-height:550px) and (min-width:761px){body[data-profile-view=true] .landing-name h1{font-size:36px}body[data-profile-view=true] .landing-chinese{font-size:12px;margin:8px 0 10px}body[data-profile-view=true] .landing-role{font-size:14px;margin-bottom:10px}body[data-profile-view=true] .landing-location{display:none}body[data-profile-view=true] .landing-nav a{padding:5px 0;font-size:10px}body[data-profile-view=true] .landing-nav small{font-size:8px}}
@media(max-width:760px){
 body[data-profile-view=true] .app-shell{grid-template-rows:104px minmax(0,1fr) 38px}
 body[data-profile-view=true] .site-header{height:104px;min-height:0;padding:14px 0 10px;gap:8px 15px}
 body[data-profile-view=true] .site-footer{flex-wrap:nowrap;font-size:9px;gap:8px}body[data-profile-view=true] .site-footer>div{gap:12px}
 body[data-profile-view=true] .landing-shell{display:flex;flex-direction:column;gap:0;padding:0}
 body[data-profile-view=true] .landing-sidebar{flex:none;display:block;border-right:0;border-bottom:1px solid var(--line);padding:20px 0 13px}
 body[data-profile-view=true] .identity-eyebrow,body[data-profile-view=true] .landing-tagline,body[data-profile-view=true] .landing-location,body[data-profile-view=true] .landing-bottom{display:none}
 body[data-profile-view=true] .landing-name h1{font-size:36px}
 body[data-profile-view=true] .landing-chinese{font-size:12px;margin:7px 0 10px}body[data-profile-view=true] .landing-chinese>span{font-size:10px}
 body[data-profile-view=true] .landing-role{font-size:14px;margin:0}
 body[data-profile-view=true] .landing-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 20px;margin:15px 0 0}
 body[data-profile-view=true] .landing-nav a{gap:6px;padding:5px 0;font-size:10px;white-space:nowrap}body[data-profile-view=true] .landing-nav small{font-size:7px;margin-left:5px}
 body[data-profile-view=true] .nav-rule{width:12px}body[data-profile-view=true] .landing-nav a[aria-current] .nav-rule,body[data-profile-view=true] .landing-nav a:hover .nav-rule{width:16px}
 body[data-profile-view=true] .profile-scroll{flex:1 1 0;height:auto;min-height:0;padding:23px 3px 22px 0;scroll-padding-top:23px}
 body[data-profile-view=true] .profile-section{margin-bottom:60px}body[data-profile-view=true] .landing-section-label{font-size:9px;margin-bottom:20px}
 body[data-profile-view=true] .intro-content>p{font-size:13px;line-height:1.85;margin-bottom:14px}body[data-profile-view=true] .intro-content>.intro-lead{font-size:13px;line-height:1.85}
 body[data-profile-view=true] .landing-project-link{font-size:10px;gap:16px}body[data-profile-view=true] .landing-project-link>span{font-size:9px}
 body[data-profile-view=true] .resume-row{grid-template-columns:73px minmax(0,1fr);gap:15px;padding:20px 0}body[data-profile-view=true] .resume-date{font-size:9px}body[data-profile-view=true] .resume-row h3{font-size:14px;margin-bottom:7px}body[data-profile-view=true] .resume-row p,body[data-profile-view=true] .experience-points{font-size:11px;line-height:1.9}
 body[data-profile-view=true] .resume-group{margin-bottom:45px}body[data-profile-view=true] .resume-group>h2{font-size:13px}body[data-profile-view=true] .resume-group>h2 small{font-size:10px}
 body[data-profile-view=true] .profile-project{grid-template-columns:90px minmax(0,1fr);gap:16px;padding:20px 0}body[data-profile-view=true] .profile-project h3{font-size:15px}body[data-profile-view=true] .profile-project p{font-size:11px}body[data-profile-view=true] .project-row-number{font-size:8px}body[data-profile-view=true] .profile-tags{gap:5px;margin-top:10px}body[data-profile-view=true] .profile-tags li{font-size:8px;padding:2px 7px}body[data-profile-view=true] .profile-end a{font-size:10px}
}
@media(prefers-reduced-motion:reduce){body[data-profile-view=true] .nav-rule,body[data-profile-view=true] .profile-project img{transition:none}}

/* Phones: the profile reads as one normal page instead of a small inner scroll box */
@media(max-width:760px){
 body[data-profile-view=true]{height:auto;overflow:visible}
 body[data-profile-view=true] .app-shell{height:auto;min-height:100svh}
 body[data-profile-view=true] main{height:auto;overflow:visible}
 body[data-profile-view=true] .landing-shell{height:auto}
 body[data-profile-view=true] .profile-scroll{flex:none;height:auto;overflow:visible;padding-right:0}
}
