/* A spacious portfolio inside a quiet, illustrated night studio. */
:root{--bg:#070a10;--surface:#0a101a;--ink:#eff4fa;--muted:#aebccc;--subtle:#8899ad;--accent:#9ce5db;--line:#26323e}
body{font-size:16px;line-height:1.85;background:var(--bg);isolation:isolate}body.ambient-paused .typing-hands{animation-play-state:paused}
.container{width:calc(100% - 96px);max-width:1180px}p{text-wrap:pretty}h1,h2,h3{font-weight:500}h2{font-size:40px;letter-spacing:-1.2px;line-height:1.25}h2>span{color:#9badc2}.eyebrow{font-size:12px;letter-spacing:1.8px;margin-bottom:22px}.text-link{font-size:15px;gap:0}.text-link:hover{text-decoration:underline;text-underline-offset:6px}.button{font-size:14px;padding:13px 23px;min-height:48px;border-radius:7px;gap:0}.button-primary{background:#a8e2d9;border-color:#a8e2d9}.button-secondary{background:#0b111c90;border-color:#617286}.quick-links{gap:28px;margin-top:28px}.quick-links .text-link{font-size:14px}
.night-backdrop{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none;background:#070a10}.night-stage{position:absolute;right:0;top:50%;width:max(100vw,177.58svh);height:max(56.31vw,100svh);transform:translateY(-50%);background:url('/assets/night-workbench-v4.webp') center/100% 100% no-repeat}.night-sky{position:absolute;left:35.35%;top:5%;width:45%;height:43%;opacity:1;mask-image:linear-gradient(transparent,#000 4%,#000 94%,transparent);clip-path:polygon(0 0,100% 0,100% 71%,68% 71%,62% 62%,43% 57%,43% 100%,0 100%)}.typing-hands{position:absolute;inset:0;background:inherit;clip-path:polygon(72.890% 66.631%,72.831% 65.250%,74.087% 63.868%,75.165% 63.443%,76.481% 64.506%,76.960% 63.231%,77.977% 62.274%,79.533% 62.168%,80.969% 63.549%,82.226% 64.187%,81.987% 66.844%,80.491% 67.056%,78.995% 66.419%,78.276% 68.438%,77.139% 68.544%,75.524% 67.269%,74.087% 67.269%);animation:typing-tap .24s steps(2,end) infinite;will-change:transform}.night-veil{position:absolute;inset:0;background:linear-gradient(90deg,#03060be0 0%,#03060bc2 22%,#03060b4d 38%,transparent 52%),linear-gradient(0deg,#05091260,transparent 35%)}.inner-page .night-backdrop{opacity:.18}.inner-page .typing-hands{animation:none}
@keyframes typing-tap{0%,100%{transform:translateY(0)}50%{transform:translateY(.8px)}}
.site-header{background:#05080d91;backdrop-filter:blur(20px);border-bottom:1px solid #ffffff0b}.nav-wrap{min-height:82px}.brand{gap:12px;font-size:14px;letter-spacing:1.8px}.brand .brand-avatar{display:block;width:44px;height:44px;flex:0 0 44px;overflow:hidden;border-radius:50%;border:1px solid #9ce5db66;box-shadow:0 0 0 3px #9ce5db08}
.brand .brand-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%;transform:scale(1.35);transform-origin:50% 35%}nav{gap:32px;font-size:15px}.nav-resume{padding:9px 18px;border-radius:6px;border-color:#5a6a7a}
.hero{position:relative;width:calc(100% - 112px);max-width:none;min-height:calc(100svh - 82px);padding:70px 0 100px;display:flex;align-items:center;gap:0}.hero-copy{width:min(410px,34vw);padding-bottom:25px;text-shadow:0 2px 22px #000b}.hero h1.name-heading{font-size:clamp(32px,3.1vw,45px);line-height:1.24;letter-spacing:-1.6px;margin-bottom:25px}.hero .affiliation{font-size:15px;line-height:1.95;color:#c4cfda;margin-bottom:25px}.hero .hero-description{font-size:17px;line-height:1.95;color:#c0ccd9;max-width:370px;margin-bottom:31px}.hero-actions{gap:14px;flex-wrap:wrap}.hero .quick-links{margin-top:29px;gap:27px}.hero-scroll-link{position:absolute;left:0;bottom:33px;color:#bdcbd8;font-size:13px;letter-spacing:.3px}.hero-scroll-link:hover{color:var(--accent)}
.discipline-strip{background:#070c14e8;border-color:#ffffff12;backdrop-filter:blur(18px)}.discipline-strip>.container{min-height:90px;gap:30px}.discipline-strip span{font-size:12px;letter-spacing:1.5px}.discipline-strip .strip-note{font-size:14px;color:#94a7bb}.discipline-strip i{font-size:17px}
.work-section{margin-top:100px;margin-bottom:100px;padding:64px;background:#080e18ee;border:1px solid #d6e8ff13;border-radius:18px;box-shadow:0 25px 80px #0002;backdrop-filter:blur(22px)}.section-heading{align-items:flex-start;gap:35px;margin-bottom:50px}.section-heading h2{font-size:38px}.section-heading>p{font-size:16px;line-height:1.9;color:var(--muted);margin-top:8px;max-width:340px}.section-heading>p br{display:none}.projects-grid{display:flex;flex-direction:column;gap:48px}.project-card,.featured,.projects-grid>.project-card:nth-child(4){display:grid;grid-template-columns:1fr 1.05fr;border-radius:12px;background:#101a27a3;border:1px solid #d7e8ff18;overflow:hidden}.project-card .visual-link,.featured .visual-link{height:100%;min-height:340px;display:flex;align-items:stretch}.project-card .project-visual,.featured .project-visual{height:100%;min-height:340px;display:flex;align-items:center;background:#0b1928}.project-card .project-visual>img{height:100%;object-fit:contain}.project-card .project-visual.emg-photo>img{object-fit:cover;min-height:340px}.project-copy,.featured .project-copy,.projects-grid>.project-card:nth-child(4) .project-copy{padding:35px 34px;display:flex;flex-direction:column;justify-content:center}.project-eyebrow{font-size:12px;line-height:1.8;letter-spacing:.8px;margin-bottom:21px}.project-arrow,.more-arrow{display:none}.project-copy h3{font-size:28px;line-height:1.3;letter-spacing:-.7px;margin-bottom:20px}.project-copy>p{font-size:16px;line-height:1.9;margin-bottom:25px}.tags{gap:9px}.tags>span{font-size:12px;line-height:1.7;padding:3px 9px;border-color:#425063}.project-bottom{margin-top:28px;padding-top:22px;flex-direction:column;align-items:flex-start;gap:14px}.project-bottom>span{font-size:13px;max-width:none;line-height:1.8;color:#a0b4c7}.project-bottom .text-link{font-size:14px}.visual-caption{font-size:10px;letter-spacing:1.1px;left:22px;bottom:20px}.more-project{border-top:1px solid var(--line);margin-top:45px;padding-top:33px;display:block}.more-project .eyebrow{font-size:11px;letter-spacing:1.4px}.more-project h3{font-size:27px;line-height:1.4;margin:14px 0}.more-project p{font-size:16px;line-height:1.9;max-width:730px}
.research-section{padding:100px 0;background:#080e18f0;backdrop-filter:blur(25px);border-color:#d7e9ff16}.research-layout{gap:90px;grid-template-columns:.9fr 1.1fr}.research-layout h2{font-size:43px;line-height:1.25;letter-spacing:-1.3px}.research-layout h2>span{color:var(--accent)}.research-affiliation{font-size:15px;line-height:1.9;margin-top:28px}.research-copy{padding-top:36px}.large-copy{font-size:21px;line-height:1.8;letter-spacing:-.2px}.research-copy>p:not(.large-copy){font-size:16px;line-height:2}.research-specs{padding:28px 0;margin:35px 0 28px;gap:22px}.research-specs strong{font-size:34px}.research-specs span{font-size:13px;margin-top:9px}.research-specs small{font-size:18px}
.about-section{margin-top:100px;margin-bottom:100px;padding:64px;background:#080e18ef;border:1px solid #d6e8ff13;border-radius:18px;backdrop-filter:blur(22px)}
.about-heading{margin-bottom:46px}.about-heading h2{font-size:38px}
.about-profile{display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;align-items:start}
.about-portrait{display:block;width:240px;height:300px;object-fit:cover;object-position:50% 30%;border-radius:14px;border:1px solid #50647755}
.about-copy>p:not(.large-copy){font-size:16px;line-height:2;margin-bottom:23px}.about-copy>.text-link{margin-top:7px}
.skills-section{margin:100px auto;padding:52px 64px;background:#080e18ef;border:1px solid #d6e8ff13;border-radius:18px;backdrop-filter:blur(22px)}
.skills-section>h2{font-size:34px;line-height:1.4;letter-spacing:-.8px;margin:0 0 28px}
.skills-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 56px}
.skills-grid>div{padding:24px 0;border-top:1px solid var(--line)}
.skills-grid h3{font-size:18px;font-weight:500;line-height:1.5;margin:0 0 12px;color:var(--ink)}
.skills-grid p{font-size:16px;line-height:1.9;color:var(--muted);margin:0}

.contact-section{padding:92px 0;background:#080f1af2;backdrop-filter:blur(25px);border-color:#d7e9ff16}.contact-layout{gap:70px;grid-template-columns:1fr 1fr}.contact-layout h2{font-size:40px}.contact-layout p:not(.eyebrow){font-size:16px;line-height:1.9}.email-link{font-size:24px;padding-bottom:19px;margin:0}.contact-actions{gap:14px 22px;margin-top:15px}.contact-actions .text-link,.copy-email{font-size:13px}.copy-email{padding:10px 0}.contact-links .quick-links{gap:27px;margin-top:27px}footer{padding:34px 0;background:#070b13ed}.footer-inner{font-size:12px;color:#a1b2c4}
.inner-page main{position:relative}.detail-hero{padding-top:50px;padding-bottom:45px}.back-link{font-size:14px;margin-bottom:40px}.detail-hero h1{font-size:clamp(36px,4vw,54px);line-height:1.2;letter-spacing:-1.8px;margin-bottom:24px}.detail-lead{font-size:21px;line-height:1.8;margin-bottom:30px}.detail-meta{margin-top:35px;padding-top:30px;gap:35px}.detail-meta span{font-size:12px;letter-spacing:1.2px}.detail-meta p{font-size:14px;line-height:1.9;margin-top:10px}.detail-visual{margin-bottom:80px}.detail-visual>.project-visual>img{max-height:450px}.detail-body{grid-template-columns:220px minmax(0,1fr);gap:70px;padding-bottom:40px}.detail-sidebar{top:125px;gap:17px}.detail-sidebar .eyebrow{font-size:12px}.detail-sidebar>a:not(.button){font-size:14px}.detail-sidebar .button{font-size:13px;padding:11px 16px;margin-top:20px}.detail-content>section{margin-bottom:76px}.detail-content .eyebrow{font-size:12px;margin-bottom:18px}.detail-content h2{font-size:34px;line-height:1.35;margin-bottom:25px}.detail-content h3{font-size:20px;line-height:1.5;margin-bottom:15px}.detail-content p{font-size:17px;line-height:2}.contribution-list article{gap:24px;padding:30px 0}.contribution-number{display:none}.contribution-list article p{font-size:16px}.result-list>div{grid-template-columns:150px 1fr;padding:24px 0;gap:28px}.result-list h3{font-size:14px;line-height:1.9}.result-list p{font-size:15px;line-height:1.9}.detail-content .limits-title{font-size:19px;margin-top:35px}.next-project{padding-top:40px;padding-bottom:75px}.next-project .eyebrow{font-size:12px}.next-project>a{font-size:30px;line-height:1.45}
.resume-hero{padding-top:50px;padding-bottom:45px}.resume-title-row h1{font-size:45px;line-height:1.25;letter-spacing:-1.5px}.resume-title-row p{font-size:17px;line-height:1.9}.resume-contact{gap:27px;margin-top:30px}.resume-document{max-width:1000px;padding-bottom:90px}.resume-document>section{margin-top:48px}.resume-document h2{font-size:29px;padding-bottom:19px;margin-bottom:28px}.resume-document h3{font-size:21px;line-height:1.5;margin-top:34px;margin-bottom:13px}.resume-document p{font-size:16px;line-height:1.95;margin-bottom:12px}.resume-document ul{padding-left:24px;margin:20px 0 35px}.resume-document li{font-size:16px;line-height:1.95;margin-bottom:15px;padding-left:5px}
@media(max-width:1100px){.container{width:calc(100% - 72px)}.hero{width:calc(100% - 80px)}.hero-copy{width:360px;max-width:42vw}.hero h1.name-heading{font-size:36px}.hero .affiliation{font-size:14px}.hero .hero-description{font-size:16px}.work-section,.about-section{padding:46px}.project-card,.featured,.projects-grid>.project-card:nth-child(4){grid-template-columns:.95fr 1.05fr}.project-copy,.featured .project-copy,.projects-grid>.project-card:nth-child(4) .project-copy{padding:30px}.project-copy h3{font-size:25px}.project-copy>p{font-size:16px}.research-layout{gap:55px}.contact-layout{gap:45px}.email-link{font-size:21px}}
@media(max-width:850px){.container{width:calc(100% - 56px)}nav{gap:22px;font-size:14px}.hero-copy{max-width:43vw}.hero h1.name-heading{font-size:33px}.hero .affiliation{font-size:13px}.hero-actions{gap:11px}.hero .button{font-size:13px;padding:12px 17px}.hero .quick-links{gap:22px}.work-section,.about-section{padding:35px}.section-heading{flex-direction:column;gap:16px;margin-bottom:35px}.section-heading>p{margin-top:0;max-width:100%}.section-heading h2{font-size:34px}.project-card,.featured,.projects-grid>.project-card:nth-child(4){grid-template-columns:1fr}.project-card .visual-link,.featured .visual-link{min-height:0;height:300px}.project-card .project-visual,.featured .project-visual{height:300px;min-height:0}.project-card .project-visual>img{width:100%;height:300px}.project-card .project-visual.emg-photo>img{min-height:0;object-position:center 52%}.project-copy,.featured .project-copy,.projects-grid>.project-card:nth-child(4) .project-copy{padding:34px}.project-copy h3{font-size:28px}.project-bottom{flex-direction:row;align-items:center;justify-content:space-between;gap:18px}.project-bottom>span{max-width:60%}.research-layout{grid-template-columns:1fr;gap:20px}.research-copy{padding-top:10px}.research-layout h2{font-size:38px}.research-layout h2 br{display:none}.research-affiliation{margin-top:20px}.research-specs{max-width:650px}.contact-layout{grid-template-columns:1fr;gap:40px}.contact-links{max-width:550px}.detail-body{grid-template-columns:1fr;gap:40px}.detail-sidebar{position:static;flex-direction:row;flex-wrap:wrap;border-block:1px solid var(--line);padding:20px 0;gap:14px 23px}.detail-sidebar .eyebrow{width:100%;margin-bottom:0}.detail-sidebar .button{margin-top:0;max-width:none}.detail-content{max-width:none}.detail-visual{margin-bottom:40px}}
@media(max-width:720px){.night-backdrop{position:absolute;top:72px;bottom:auto;height:56.31vw;z-index:-1}.night-stage{position:absolute;inset:0;width:100%;height:100%;transform:none;background-size:100% 100%}.night-veil{background:linear-gradient(0deg,#070a10 0%,transparent 24%)}.inner-page .night-backdrop{display:none}.nav-wrap{min-height:72px}.hero{width:calc(100% - 48px);min-height:0;padding:calc(56.31vw + 40px) 0 78px;display:block}.hero-copy{width:100%;max-width:540px;padding:0;margin:auto}.hero h1.name-heading{font-size:clamp(30px,6.6vw,41px);letter-spacing:-1px;line-height:1.3;margin-bottom:20px}.hero .affiliation{font-size:14px;line-height:1.9;margin-bottom:22px}.hero .hero-description{font-size:17px;line-height:1.9;max-width:480px;margin-bottom:28px}.hero .button{font-size:14px;padding:12px 22px}.hero .quick-links{margin-top:27px;gap:28px}.hero-scroll-link{display:none}.discipline-strip>.container{min-height:74px;justify-content:space-between;gap:12px}.discipline-strip span{font-size:10px;letter-spacing:1px}.discipline-strip .strip-note{display:none}.discipline-strip i{font-size:14px}.work-section,.about-section{margin-top:64px;margin-bottom:64px;background:#0a111cf5;backdrop-filter:none}.research-section,.contact-section{padding:66px 0;backdrop-filter:none}.section-heading h2{font-size:34px}.research-layout h2{font-size:35px}.about-heading h2{font-size:34px}.large-copy{font-size:20px}.research-specs strong{font-size:30px}.research-specs span{font-size:12px}.about-heading{margin-bottom:30px}.contact-layout h2{font-size:35px}.footer-inner{font-size:12px;gap:12px 24px}.footer-name{width:100%}.footer-inner>a:last-child{margin-left:auto}}
@media(max-width:540px){.container{width:calc(100% - 40px)}.brand{font-size:12px;letter-spacing:1px;gap:9px}.brand .brand-avatar{width:38px;height:38px;flex-basis:38px}.menu-toggle{width:40px;height:36px}.site-header{background:#070b12f2}nav{top:72px;padding:20px;background:#0a111cf9}nav.open{display:flex}nav>a{font-size:15px;padding:13px 12px}.nav-resume{margin-top:10px}.hero{width:calc(100% - 44px);padding-top:calc(56.31vw + 33px);padding-bottom:60px}.hero .hero-description{font-size:16px}.hero .affiliation{font-size:13px}.hero h1.name-heading{font-size:clamp(27px,7.25vw,38px)}.hero .button{padding:12px 20px}.hero-actions{gap:12px}.hero .quick-links{gap:27px}.discipline-strip>.container{min-height:68px;gap:8px}.discipline-strip span{font-size:9px;letter-spacing:.65px}.work-section,.about-section{padding:28px 22px;border-radius:13px;width:calc(100% - 28px);margin-block:48px}.eyebrow{font-size:11px;margin-bottom:17px}.section-heading h2{font-size:31px}.section-heading{gap:14px;margin-bottom:30px}.section-heading>p{font-size:15px;line-height:1.9}.projects-grid{gap:30px}.project-card .visual-link,.featured .visual-link{height:220px}.project-card .project-visual,.featured .project-visual{height:220px}.project-card .project-visual>img{height:220px}.project-copy,.featured .project-copy,.projects-grid>.project-card:nth-child(4) .project-copy{padding:25px 22px 27px}.project-eyebrow{font-size:11px;line-height:1.9;letter-spacing:.45px;margin-bottom:16px}.project-copy h3{font-size:25px;line-height:1.35;margin-bottom:18px}.project-copy>p{font-size:16px;line-height:1.9;margin-bottom:22px}.tags{gap:7px}.tags>span{font-size:12px;padding:3px 8px}.project-bottom{flex-direction:column;align-items:flex-start;gap:15px;margin-top:24px;padding-top:20px}.project-bottom>span{max-width:none;font-size:13px}.project-bottom .text-link{font-size:14px}.visual-caption{font-size:9px;letter-spacing:.8px;left:17px;bottom:16px}.more-project{margin-top:30px;padding-top:27px}.more-project .eyebrow{font-size:10px}.more-project h3{font-size:24px}.more-project p{font-size:15px;line-height:1.9}.research-section,.contact-section{padding-block:55px}.research-layout h2{font-size:32px}.research-affiliation{font-size:14px}.research-copy>.large-copy{font-size:19px}.research-copy>p:not(.large-copy){font-size:16px;line-height:1.95}.research-specs{gap:16px;padding:25px 0;margin-block:28px 24px}.research-specs strong{font-size:27px}.research-specs small{font-size:16px}.research-specs span{font-size:11px}.about-heading{gap:20px}.about-heading h2{font-size:32px}.about-copy .large-copy{font-size:19px}.about-copy>p:not(.large-copy){font-size:16px;line-height:1.95}.contact-layout{gap:33px}.contact-layout h2{font-size:32px}.contact-layout p:not(.eyebrow){font-size:16px}.email-link{font-size:clamp(16px,5vw,22px);letter-spacing:-.3px}.contact-actions{gap:9px 19px}.contact-actions .text-link,.copy-email{font-size:12px}.contact-links .quick-links{gap:26px;margin-top:23px}.footer-inner{font-size:11px}.detail-hero{padding-top:28px;padding-bottom:32px}.back-link{font-size:14px;margin-bottom:30px}.detail-hero>.eyebrow{font-size:11px;letter-spacing:.9px}.detail-hero h1{font-size:35px;line-height:1.23;letter-spacing:-1.2px}.detail-lead{font-size:18px;line-height:1.85;margin-bottom:25px}.detail-meta{grid-template-columns:1fr;gap:20px;padding-top:25px;margin-top:28px}.detail-meta>div{grid-template-columns:62px 1fr;gap:14px}.detail-meta span{font-size:10px;letter-spacing:1px}.detail-meta p{font-size:13px;margin-top:0}.detail-visual{margin-bottom:34px}.detail-visual>.emg-photo>img{height:280px}.detail-sidebar{padding-block:18px;gap:13px 18px}.detail-sidebar>a:not(.button){font-size:13px}.detail-sidebar .eyebrow{font-size:11px}.detail-sidebar .button{font-size:12px;padding:9px 13px}.detail-content h2{font-size:28px;line-height:1.4}.detail-content h3{font-size:19px}.detail-content p{font-size:16px;line-height:1.95}.detail-content>section{margin-bottom:53px}.detail-content .eyebrow{font-size:11px}.contribution-list article{padding:25px 0}.contribution-list article p{font-size:16px}.result-list>div{grid-template-columns:1fr;gap:8px;padding:22px 0}.result-list h3{font-size:14px}.result-list p{font-size:15px}.next-project{padding-block:30px 50px}.next-project>a{font-size:25px}.next-project .eyebrow{font-size:11px}.resume-hero{padding-top:28px}.resume-title-row h1{font-size:33px;letter-spacing:-1px}.resume-title-row p{font-size:15px}.resume-title-row .button{margin-top:25px}.resume-document{padding-bottom:65px}.resume-document>section{margin-top:40px}.resume-document h2{font-size:26px;padding-bottom:15px}.resume-document h3{font-size:19px;line-height:1.6}.resume-document p,.resume-document li{font-size:16px;line-height:1.95}.resume-document ul{padding-left:21px}.resume-contact{gap:24px}.toast{font-size:13px}}
@media(prefers-reduced-motion:reduce){.typing-hands{animation:none!important}}
@media(min-width:601px) and (max-width:720px){.menu-toggle{display:flex;flex-direction:column;gap:6px;justify-content:center;align-items:center;background:none;border:1px solid #334256;border-radius:5px;width:40px;height:36px;cursor:pointer}.menu-toggle>span{width:17px;height:1px;background:var(--ink)}nav{display:none;position:absolute;left:0;right:0;top:72px;padding:20px;background:#0a111cf9;border-bottom:1px solid var(--line);box-shadow:0 16px 25px #0004;gap:0}nav.open{display:flex;flex-direction:column;align-items:stretch}nav>a{padding:13px 12px;font-size:15px}nav .nav-resume{margin-top:10px}}

@media(max-width:1100px){.about-profile{grid-template-columns:210px minmax(0,1fr);gap:40px}.about-portrait{width:210px;height:263px}.skills-section{padding:46px}.skills-grid{column-gap:36px}}
@media(max-width:850px){.about-profile{grid-template-columns:180px minmax(0,1fr);gap:30px}.about-portrait{width:180px;height:225px}.skills-section{padding:35px}.skills-grid{column-gap:30px}}
@media(max-width:720px){.about-profile{grid-template-columns:1fr;gap:30px}.about-portrait{width:210px;height:263px}.skills-section{margin-block:64px;background:#0a111cf5;backdrop-filter:none}.skills-grid{column-gap:26px}}
@media(max-width:540px){.about-portrait{width:200px;height:250px}.skills-section{width:calc(100% - 28px);margin-block:48px;padding:28px 22px;border-radius:13px}.skills-grid{grid-template-columns:1fr;gap:0}.skills-grid>div{padding:25px 0}.skills-grid h3{font-size:18px}.skills-grid p{font-size:16px}.skills-section>h2{font-size:29px;margin-bottom:20px}}

/* Self-hosted brand glyphs accompany text labels on every social link. */
.social-link{gap:9px;white-space:nowrap}
.social-icon{display:block;width:20px;height:20px;flex:0 0 20px;fill:currentColor}
.social-icon-github{color:#dce6f0}.social-icon-linkedin{color:#8cc5ff}.social-icon-instagram{color:#f0a8cc}.social-icon-xiaohongshu{color:#fff;background:#ff2442;border-radius:5px;width:22px;height:22px;flex-basis:22px}
.about-social-links{display:flex;flex-wrap:wrap;align-items:center;gap:16px 27px;margin-top:28px}
.about-social-links .text-link{font-size:14px;min-height:32px}
@media(max-width:540px){.hero .quick-links{gap:23px}.about-social-links{gap:13px 22px}}

.resume-document .resume-inline-link{color:var(--accent);text-decoration:underline;text-decoration-color:#9ce5db80;text-underline-offset:3px;overflow-wrap:anywhere}
.resume-document .resume-inline-link:hover{color:#d4fff7;text-decoration-color:currentColor}

.code-screen{position:absolute;left:0;top:0;width:640px;height:440px;transform-origin:0 0;pointer-events:none;opacity:0;backface-visibility:hidden;clip-path:inset(0 round 3px)}
.home-page .code-screen.is-ready{opacity:1}
.scope-screen{position:absolute;left:0;top:0;width:320px;height:220px;transform-origin:0 0;pointer-events:none;opacity:0;clip-path:inset(0 round 5px)}
.home-page .scope-screen.is-ready{opacity:1}
.scope-wiring-art{position:absolute;inset:0;pointer-events:none;background:url('/assets/scope-natural.webp') center/100% 100% no-repeat;mask-image:radial-gradient(ellipse 8.5% 8% at 42% 62.2%,#000 75%,transparent 100%)}
.pc-fans{position:absolute;left:0;top:0;width:240px;height:480px;transform-origin:0 0;opacity:0;pointer-events:none}
.home-page .pc-fans.is-ready{opacity:1}
.email-address{color:inherit;text-decoration:none}.email-address:hover{color:var(--accent)}

.desk-pet-screen{position:absolute;left:0;top:0;width:300px;height:200px;transform-origin:0 0;pointer-events:none;opacity:0;backface-visibility:hidden;clip-path:inset(0 round 12px)}
.home-page .desk-pet-screen.is-ready{opacity:1}
.desk-pet-rest,.desk-pet-head{position:absolute;inset:0;pointer-events:none;opacity:0;clip-path:polygon(54.52% 61.85%,55.18% 60.57%,56.19% 59.94%,59.31% 59.51%,59.61% 59.94%,60.32% 65.36%,59.96% 66.1%,55.6% 67.38%,55.06% 66.84%)}
.desk-pet-rest{background:linear-gradient(173deg,#123449 59%,#183142 68%)}
.desk-pet-head{background:inherit;transform-origin:57.45% 67.48%}
.home-page .pet-ready .desk-pet-rest,.home-page .pet-ready .desk-pet-head{opacity:1}
/* Mobile menu: fully opaque so hero text does not show through */
nav.open{background:#0a111c}
/* Let the photo visual fill its card when the card stacks */
.visual-link>.project-visual{width:100%}
/* Larger tap targets for small links */
footer a,.contact-actions a,.contact-actions button{display:inline-flex;align-items:center;min-height:28px}
.resume-inline-link{padding-block:4px}
/* Real photos fill their card visual (diagrams keep their own framing) */
.project-visual.photo-visual{padding:0;overflow:hidden}
.project-visual.photo-visual>img{width:100%;height:100%;object-fit:cover;object-position:center}
.detail-visual>.photo-visual>img{height:600px;max-height:none}
.detail-visual>.photo-visual>img[src*="eog-worn"]{object-position:center 70%}
@media(max-width:720px){.detail-visual>.photo-visual>img{height:auto;aspect-ratio:720/430}}
/* Hardware close-up on project pages */
.hardware-section{margin-bottom:56px}
.hardware-figure{margin:20px 0 0;max-width:650px}
.hardware-figure img{display:block;width:100%;height:auto;border-radius:9px;border:1px solid var(--line)}
.hardware-figure figcaption{margin-top:12px;font-size:.9rem;color:var(--muted,#8ca0b3)}
