@charset "UTF-8";
:root{--ink:#3d2b26;--red:#c73341;--coral:#fe7271;--blue:#2a5897;--sky:#a7c9f2;--pale-blue:#f0f7ff;--pale-red:#fff0f0;--muted:#746a68;--line:#e5e5e5;--radius:20px;font-family:"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;color:var(--ink);font-size:16px;background:#fff;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}button{border:0;background:none}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid var(--blue);outline-offset:5px}::selection{background:#cfe4ff}h1,h2,h3,p{margin:0}p{line-height:1.85}h1,h2,h3{line-height:1.4}em{font-style:normal}html{scroll-padding-top:100px}html.modal-open{overflow:hidden}.skip-link{position:fixed;top:-100px;left:10px;padding:14px;background:white;z-index:100}.skip-link:focus{top:10px}.site-header{height:88px;position:fixed;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 max(4vw,24px);background:#fffffff5;z-index:20;border-bottom:1px solid #f0f7ff}.brand{display:flex;gap:10px;align-items:center;white-space:nowrap;font-size:23px;font-family:Georgia,serif;font-weight:600;color:var(--blue)}.brand small{font-family:"Microsoft YaHei",sans-serif;font-size:12px;font-weight:400;color:var(--muted);display:block;letter-spacing:.16em;margin-top:2px}nav{display:flex;gap:25px;align-items:center;font-size:14px}nav a{padding:8px 0;white-space:nowrap}nav a.active{color:var(--red);box-shadow:0 2px 0 var(--coral)}.menu-toggle{display:none}.button{display:inline-flex;align-items:center;justify-content:center;gap:16px;background:var(--red);border:1px solid var(--red);border-radius:10px;color:white;padding:15px 25px;font-size:15px;line-height:1.3;font-weight:600;min-height:48px}.button span{font-size:11px;opacity:.8}.button.secondary{color:var(--blue);background:var(--pale-blue);border-color:#cfe4ff}.button.small{font-size:14px;padding:11px 20px;min-height:42px}.button:hover{filter:brightness(.96)}.section{max-width:1176px;margin:0 auto;padding:105px 28px;scroll-margin-top:0}.section-heading{margin-bottom:38px;text-align:center}.eyebrow{font-size:12px;letter-spacing:.2em;color:var(--red);font-family:Georgia,serif;line-height:1.7;margin-bottom:14px}.section-heading h2,h2{font-size:36px;letter-spacing:.02em;font-weight:700}.section-heading>p:last-child:not(.eyebrow){color:var(--muted);margin-top:12px;font-size:15px}.hero{min-height:790px;display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center;padding-top:154px;padding-bottom:80px}.hello-label{display:inline-block;color:var(--red);font:14px Georgia,serif;letter-spacing:.14em;border-bottom:1px dashed var(--coral);padding-bottom:8px;margin-bottom:22px}.hero h1{font-size:46px;font-weight:500;line-height:1.4}.hero h1>span{display:block;font-size:64px;letter-spacing:.08em;font-weight:750;color:var(--blue);position:relative;width:max-content;margin-top:4px}.title-spark{position:absolute;font-size:42px;right:-50px;top:-8px;color:var(--coral)}.hero-role{font-size:22px;margin-top:21px;font-weight:600}.role-list{font-size:16px;color:var(--red);margin-top:5px;letter-spacing:.07em}.hero-intro{font-size:15px;color:var(--muted);margin-top:23px;line-height:1.95;max-width:530px}.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.tags span{font-size:12px;border-radius:30px;padding:7px 12px;color:var(--blue);background:var(--pale-blue)}.tags span:nth-child(odd){color:var(--red);background:#fff7f7}.hero-actions{display:flex;gap:14px;margin-top:30px}.hero-art{height:540px;position:relative;isolation:isolate}.photo-checks{position:absolute;inset:75px -5px 8px 20px;background-color:var(--pale-blue);background-image:linear-gradient(#cfe4ff80 1px,transparent 1px),linear-gradient(90deg,#cfe4ff80 1px,transparent 1px);background-size:24px 24px;border-radius:150px 150px 18px 18px;transform:rotate(7deg);z-index:-3}.photo-circle{position:absolute;width:350px;height:350px;border-radius:50%;top:50px;left:52px;background:#ffe5e5;z-index:-2}.portrait-frame{position:absolute;inset:0 0 2px;overflow:hidden;border-radius:0 0 125px 125px}.portrait{width:auto;max-width:none;height:100%;position:absolute;left:50%;transform:translateX(-50%);object-fit:contain}.hand-note{position:absolute;right:0;bottom:-25px;font:italic 27px Georgia,serif;color:var(--red);transform:rotate(-9deg)}.hero-star{position:absolute;right:-5px;top:10px;font-size:78px;color:var(--sky)}.tiny-heart{position:absolute;left:0;top:52px;font-size:50px;color:var(--red);transform:rotate(-16deg)}.bow{display:block;position:absolute;width:68px;height:24px}.bow:before,.bow:after{content:"";position:absolute;width:34px;height:21px;border:3px solid var(--red);top:0}.bow:before{left:0;border-radius:70% 70% 0 70%;transform:rotate(20deg)}.bow:after{right:0;border-radius:70% 70% 70% 0;transform:rotate(-20deg)}.hero-bow{right:20px;top:100px;transform:rotate(14deg)}
.strengths{border-top:1px solid var(--pale-blue);padding-top:80px}.strength-top{display:grid;grid-template-columns:1fr 430px;align-items:center;gap:60px;min-height:265px;margin-bottom:38px}.strength-top h2{font-size:34px}.strength-top em{color:var(--red);font:italic 46px Georgia,serif;margin-left:8px}.strength-subtitle{font-size:17px;color:var(--muted);line-height:2;max-width:520px;margin-top:18px}.mbti-visual{position:relative;height:270px}.trait{position:absolute;font-size:13px;border-radius:30px;border:1px solid #cfe4ff;background:#f0f7fff5;color:var(--blue);padding:7px 15px}.trait:nth-of-type(even){color:var(--red);background:#fff7f7;border-color:#ffe5e5}.trait-0{left:4px;top:22px}.trait-1{right:8px;top:25px}.trait-2{left:-12px;top:112px}.trait-3{right:-2px;top:124px}.trait-4{left:30px;bottom:4px}.trait-5{right:28px;bottom:0}.skills-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.skill-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;border-radius:18px;border:1px solid #e3f0ff;background:#f0f7ff;padding:25px 22px 22px;min-height:280px}.skill-card.tone-1{background:#fff7f7;border-color:#fff0f0}.card-number{font:italic 29px Georgia,serif;color:var(--sky);margin-bottom:12px}.tone-1 .card-number{color:var(--coral)}.skill-card h3{font-size:18px;margin-bottom:13px}.skill-card p{font-size:14px;color:var(--muted);line-height:1.9;margin-bottom:18px}.card-action{margin-top:auto;font-size:12px;color:var(--blue);border-bottom:1px solid var(--sky);padding-bottom:3px}.skill-card:hover{border-color:var(--sky)}
.education{position:relative;padding-top:85px}.honor{padding:9px 17px;border-radius:35px;background:#f0f7ffba;color:var(--blue);font-size:12px;border:1px solid #e3f0ff}.honor:nth-child(even){background:#fff7f7d9;border-color:#fff0f0;color:var(--red)}.schools-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}.school-card{border-radius:var(--radius);border:1px solid #e3f0ff;overflow:hidden;background:var(--pale-blue);box-shadow:0 8px 24px #2a589708}.school-card:nth-child(2){background:#fff7f7;border-color:#fff0f0}.school-photo{position:relative}
.school-photo > img[alt="重庆大学校园"] { object-position: center 5%; }.school-photo>img:first-child{height:235px;width:100%;object-fit:cover}.school-logo{position:absolute;bottom:-29px;right:24px;background:white;border:7px solid white;border-radius:50%;width:76px;height:76px;object-fit:contain;box-shadow:0 3px 10px #2a589710}.school-copy{padding:28px 30px 30px}.school-top{display:flex;align-items:center;gap:20px;margin-bottom:8px}.school-top time{font-size:12px;color:var(--red)}.school-copy h3{font-size:26px;margin-bottom:12px}.school-copy h3 small{font-weight:400;color:var(--blue);font-size:12px;vertical-align:middle;margin-left:10px}.school-copy p{font-size:14px;color:var(--ink)}.school-copy .degree{color:var(--ink);font-size:15px;margin-top:3px}.school-copy ul{font-size:14px;line-height:2;margin:15px 0 0;padding-left:18px;color:var(--muted)}
.projects{overflow:hidden;padding-bottom:80px}.projects .section-heading{margin-bottom:28px}.project-fan{height:380px;position:relative;margin:0 -10px}.project-card{width:225px;height:310px;position:absolute;top:20px;left:calc(50% - 112px);background:#fff;border:1px solid #e5e5e5;padding:12px 12px 16px;text-align:left;box-shadow:0 8px 24px #3d2b2610;transform:translateX(calc(var(--delta)*172px)) translateY(calc(abs(var(--delta))*19px)) rotate(calc(var(--delta)*9deg));z-index:calc(5 - abs(var(--delta)));border-radius:3px}.project-card.selected{z-index:9;border-color:#cfe4ff;box-shadow:0 12px 32px #2a58971c;transform:translateX(0) rotate(-2deg)}.project-card>img{height:170px;width:100%;object-fit:cover;object-position:top;background:var(--pale-blue)}.photo-tape{position:absolute;width:60px;height:19px;top:-9px;left:calc(50% - 30px);background:#cfe4ffb3;transform:rotate(-5deg)}.project-role{display:block;font-size:11px;color:var(--red);margin-top:10px}.project-card h3{font-size:14px;line-height:1.6;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.project-card time{font-size:11px;color:var(--muted);display:block;margin-top:8px}.project-switch{display:flex;align-items:center;justify-content:center;gap:25px;margin:-3px 0 28px;color:var(--blue)}.project-switch button{border:1px solid #cfe4ff;border-radius:30px;padding:9px 20px;font-size:12px;background:#f0f7ff}.project-switch span{font:14px Georgia,serif;letter-spacing:.1em}
.interests{padding-top:90px}.interest-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:20px}.interest-card{position:relative;border-radius:20px;padding:25px 28px;text-align:left;min-height:215px;overflow:hidden;border:1px solid #e3f0ff;isolation:isolate}.interest-card:before{position:absolute;inset:0;content:"";z-index:-1;opacity:.55}.interest-name h3{font-size:24px}.interest-name>span{font:italic 15px Georgia,serif;color:var(--blue);margin-top:5px;display:block}.interest-illustration{position:absolute;object-fit:contain;right:0;bottom:-10px;width:210px;height:210px}.interest-action{position:absolute;bottom:25px;left:28px;font-size:12px;color:var(--blue);border-bottom:1px solid #a7c9f2;padding-bottom:3px}.hobby-photography{grid-column:span 5;background:#f0f7ff;min-height:255px}.hobby-photography:before{background-image:linear-gradient(#cfe4ff 1px,transparent 1px),linear-gradient(90deg,#cfe4ff 1px,transparent 1px);background-size:24px 24px}.hobby-painting{grid-column:span 4;background:#fff7f7}.hobby-painting:before{background:radial-gradient(#ffe5e5 1.5px,transparent 2px);background-size:15px 15px}.hobby-podcasts{grid-column:span 3;background:#f0f7ff}.hobby-travel{grid-column:span 4;background:#fff7f7}.hobby-travel:before{background-image:linear-gradient(90deg,#ffe5e5 1px,transparent 1px);background-size:13px 13px}.hobby-singing{grid-column:span 3;background:#f0f7ff}.hobby-badminton{grid-column:span 5;background:#fff7f7}.hobby-badminton:before{background-image:linear-gradient(45deg,#fff0f0 25%,transparent 25%,transparent 75%,#fff0f0 75%);background-size:22px 22px}.hobby-podcasts .interest-illustration,.hobby-singing .interest-illustration{width:160px;height:160px}.hobby-badminton .interest-illustration{right:25px;width:235px;height:235px}.interest-card:hover:is(button){border-color:var(--sky)}
.contact{padding-top:80px;padding-bottom:60px}.contact-card{position:relative;text-align:center;border-radius:26px;padding:68px 50px 46px;border:1px solid #e3f0ff;background-color:#f0f7ff;background-image:linear-gradient(#cfe4ff40 1px,transparent 1px),linear-gradient(90deg,#cfe4ff40 1px,transparent 1px);background-size:28px 28px}.contact-card .eyebrow{margin-bottom:18px}.contact-card h2{font-size:38px;color:var(--red);line-height:1.6}.contact-intro{max-width:620px;font-size:16px;color:var(--muted);margin:23px auto 0}.availability{display:flex;flex-wrap:wrap;justify-content:center;gap:9px;margin-top:24px}.availability span{background:#fff;border:1px solid #e3f0ff;padding:7px 14px;border-radius:30px;color:var(--blue);font-size:12px}.contact-buttons{display:flex;gap:18px;align-items:flex-start;justify-content:center;margin-top:29px}.contact-buttons>div{min-width:160px}.contact-buttons .button{min-width:160px}.contact-value{font-size:12px;color:var(--blue);margin-top:12px;overflow-wrap:anywhere;min-height:22px}.text-download{font-size:14px;line-height:48px;border-bottom:1px solid #a7c9f2;color:var(--blue);white-space:nowrap}.contact-bow{right:65px;top:40px;transform:rotate(15deg)}.site-footer{max-width:1120px;padding:25px 0 35px;margin:auto;display:flex;justify-content:space-between;border-top:1px solid #e3f0ff;font-size:12px;color:var(--muted)}.site-footer a{color:var(--blue)}.music-control{position:fixed;right:22px;bottom:22px;z-index:21;display:flex;align-items:center;gap:8px;border:1px solid #cfe4ff;padding:8px 13px 8px 8px;background:#fffffff5;border-radius:30px;box-shadow:0 3px 14px #2a589710;color:var(--blue)}.music-disc{border:1px solid #a7c9f2;display:grid;place-items:center;border-radius:50%;width:30px;height:30px;font-size:18px;background:var(--pale-blue)}.music-label{font-size:12px}.playing .music-disc{background:var(--blue);color:white}
dialog{border:1px solid #cfe4ff;color:var(--ink);padding:0;background:white;box-shadow:0 20px 90px #3d2b2633}dialog::backdrop{background:#3d2b2659;backdrop-filter:blur(3px)}.detail-dialog{width:min(1100px,90vw);max-height:88dvh;border-radius:20px;overflow:auto}.dialog-bar{position:sticky;top:0;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 32px;border-bottom:1px solid #f0f7ff;z-index:3}.dialog-bar h2{font-size:22px;letter-spacing:0}.close-button{background:var(--pale-blue);color:var(--blue);border-radius:50%;width:36px;height:36px;min-width:36px;font-size:25px;line-height:1;display:grid;place-items:center}.close-button:hover{background:#e3f0ff}#detail-body{padding:30px 32px 34px}.project-copy{font-size:15px}.detail-meta{color:var(--red);font-size:12px;letter-spacing:.02em;margin-bottom:23px}.detail-meta span{padding:0 7px}.project-copy h3{font-size:17px;color:var(--blue);margin:20px 0 8px}.project-copy p{font-size:14px;color:var(--muted);line-height:1.95}.project-copy .detail-meta{font-size:12px;color:var(--red)}.project-copy h3:first-of-type{margin-top:0}.design-summary{display:grid;grid-template-columns:1.65fr 1fr;gap:30px}.evidence-pictures .gallery-row{gap:10px;height:260px;padding-bottom:0}.evidence-pictures .gallery-item{min-width:0;width:50%;background:#f0f7ff;border-radius:8px}.evidence-pictures img{width:100%;height:100%;object-fit:contain}.gallery-heading{font-size:16px;color:var(--blue);margin:30px 0 16px}.gallery-row{display:flex;gap:14px;overflow-x:auto;padding:0 0 18px;scroll-snap-type:x proximity;scrollbar-color:#a7c9f2 #f0f7ff;scrollbar-width:thin}.gallery-item{flex-shrink:0;scroll-snap-align:start;padding:0;border-radius:6px;overflow:hidden;background:#f0f7ff;height:230px;min-width:160px}.gallery-item>img{height:100%;width:auto;max-width:280px;object-fit:contain}.media-works{display:flex;overflow:auto;gap:20px;padding:12px 0 20px;margin-top:24px;scrollbar-color:#a7c9f2 #f0f7ff;scrollbar-width:thin}.media-work{flex:0 0 230px;border:1px solid #e3f0ff;border-radius:12px;overflow:hidden;padding-bottom:16px}.media-cover{aspect-ratio:4/3;background:#f0f7ff;padding:4px}.media-cover img{height:100%;width:100%;object-fit:contain}.platform{display:block;font-size:11px;color:var(--red);margin:12px 14px 6px}.media-work h3{font-size:14px;line-height:1.7;margin:0 14px}.project-two-column{display:grid;grid-template-columns:1fr 1fr;gap:30px}.project-slides{min-width:0}.slide-image{display:block;padding:14px;background:#f0f7ff;border-radius:12px;width:100%;height:380px}.slide-image img{width:100%;height:100%;object-fit:contain}.pager{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:18px;font-size:12px;color:var(--blue)}.pager button{padding:9px 16px;border:1px solid #cfe4ff;background:#f0f7ff;border-radius:7px;min-height:38px}.report-link{font-size:13px;color:var(--blue);line-height:1.9;display:block;margin-top:22px;text-decoration:underline;text-underline-offset:3px}.image-dialog{width:min(1100px,94vw);height:90dvh;border-radius:16px;overflow:hidden;padding:44px 30px 65px;background:#fff}.image-dialog>.close-button{position:absolute;right:14px;top:12px;z-index:2}.image-dialog>img{height:100%;width:100%;object-fit:contain}.lightbox-controls{position:absolute;left:0;right:0;bottom:18px;display:flex;gap:25px;justify-content:center;align-items:center;font-size:13px;color:var(--blue)}.lightbox-controls button{padding:10px 15px;background:#f0f7ff;border:1px solid #cfe4ff;border-radius:8px}.album-paper{aspect-ratio:4/3;max-height:64vh;max-width:850px;margin:0 auto;background:#f0f7ff;border:1px solid #e3f0ff;padding:24px}.album-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:16px;height:100%}.album-images>button{padding:0;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center}.album-images img{height:100%;width:100%;object-fit:contain}.album-images.count-1{grid-template-columns:1fr}.album-images.count-3{grid-template-rows:repeat(2,minmax(0,1fr))}.album-images.count-3>button:first-child{grid-row:span 2}.album-images.count-4{grid-template-rows:repeat(2,minmax(0,1fr))}.single-art{background:#fff;padding:12px}.album-pager{margin-top:22px}.travel-layout{display:grid;grid-template-columns:1fr 1.1fr;gap:24px}.travel-map{position:sticky;top:90px;align-self:start;aspect-ratio:1;background:#f0f7ff;border-radius:18px;isolation:isolate;overflow:hidden}.map-land{position:absolute;inset:25px 10px 25px 15px;background:#e3f0ff;clip-path:polygon(8% 26%,20% 17%,34% 26%,44% 13%,60% 22%,67% 12%,78% 7%,92% 20%,83% 31%,91% 39%,78% 47%,85% 61%,74% 68%,66% 79%,47% 88%,31% 80%,25% 67%,16% 65%,12% 49%,1% 38%);z-index:-1}.travel-pin{position:absolute;width:13px;height:13px;background:var(--red);border:3px solid white;box-shadow:0 0 0 1px #fe7271;border-radius:50%;transform:translate(-50%,-50%);padding:0}.travel-pin:before{content:"";position:absolute;inset:-8px}.map-caption{position:absolute;left:20px;top:14px;font-size:12px;color:var(--blue)}.map-direction{position:absolute;right:20px;top:14px;font-size:12px;color:var(--muted)}.travel-note{position:absolute;left:25px;bottom:22px;font-size:17px;letter-spacing:.12em;color:var(--blue)}.place-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.place-card{border:1px solid #e3f0ff;padding:5px 5px 8px;border-radius:10px;overflow:hidden;background:white;text-align:left}.place-card>img{width:100%;height:95px;object-fit:cover;border-radius:6px}.place-card>span{display:flex;justify-content:space-between;align-items:center;padding:8px 3px 0;font-size:13px;color:var(--blue)}.place-card small{color:var(--muted);font-size:10px}.toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);padding:11px 20px;border:1px solid #cfe4ff;border-radius:30px;background:#fff;color:var(--blue);box-shadow:0 4px 20px #2a589715;z-index:50;font-size:13px;display:none}.toast.visible{display:block}
@media(min-width:1500px){.hero{min-height:850px}.section{padding-top:115px;padding-bottom:115px}.hero{padding-top:170px}}
@media(max-width:1100px){nav{gap:15px;font-size:12px}.site-header{gap:16px;padding:0 24px}.brand{font-size:21px}.hero{gap:32px}.hero-art{height:480px}.photo-circle{width:290px;height:290px;left:25px}.hero h1{font-size:38px}.hero h1>span{font-size:56px}.hero-star{right:5px}.hero-bow{right:0}.strength-top{grid-template-columns:1fr 380px;gap:25px}.skills-grid{gap:12px}.skill-card{padding:22px 17px}.interest-illustration{width:180px;height:180px}.site-footer{margin:0 28px}.project-card{transform:translateX(calc(var(--delta)*145px)) translateY(calc(abs(var(--delta))*19px)) rotate(calc(var(--delta)*9deg))}.project-card.selected{transform:translateX(0) rotate(-2deg)}}
@media(max-width:850px){.site-header{height:74px}.brand{font-size:20px}.header-resume{margin-left:auto}.menu-toggle{display:block;font-size:13px;color:var(--blue);order:3;border:1px solid #cfe4ff;padding:10px 14px;border-radius:8px}nav{display:none;position:absolute;left:16px;right:16px;top:75px;flex-direction:column;gap:0;align-items:stretch;padding:12px 20px;background:#fff;border:1px solid #cfe4ff;border-radius:12px;box-shadow:0 12px 25px #2a589710;font-size:14px}nav.expanded{display:flex}nav a{padding:13px 4px}nav a.active{box-shadow:none;color:var(--red)}.section{padding:75px 24px}.hero{padding-top:125px;gap:25px;min-height:740px}.hero-art{height:440px}.hero h1{font-size:33px}.hero h1>span{font-size:48px}.hero-intro{font-size:13px}.hero-role{font-size:20px}.role-list{font-size:14px}.photo-circle{height:250px;width:250px;left:5px;top:70px}.hero-bow{top:80px;right:0;transform:scale(.8)}.strength-top{grid-template-columns:1fr 310px;gap:25px}.strength-top h2{font-size:29px}.strength-top em{font-size:36px}.strength-subtitle{font-size:15px}.mbti-visual{height:260px}.trait{font-size:11px;padding:6px 10px}.trait-2{left:-10px}.trait-3{right:-10px}.skills-grid{grid-template-columns:repeat(2,1fr);gap:16px}.skill-card{min-height:250px;padding:24px}.schools-grid{gap:20px}.school-photo>img:first-child{height:185px}.school-copy{padding:24px}.school-logo{width:65px;height:65px;right:14px;bottom:-25px}.school-top{flex-wrap:wrap;gap:8px}.school-copy h3{font-size:24px}.school-copy h3 small{margin-left:4px}.project-card{width:205px;left:calc(50% - 102px);transform:translateX(calc(var(--delta)*130px)) translateY(calc(abs(var(--delta))*19px)) rotate(calc(var(--delta)*9deg))}.interest-card{padding:22px;min-height:210px}.interest-illustration{width:150px;height:150px}.interest-name h3{font-size:21px}.interest-name>span{font-size:13px}.interest-action{left:22px}.hobby-badminton .interest-illustration{width:190px;height:190px;right:0}.hobby-podcasts .interest-illustration,.hobby-singing .interest-illustration{height:135px;width:135px}.contact-card{padding:55px 30px 35px}.contact-card h2{font-size:32px}.contact-intro{font-size:14px}.contact-bow{right:30px;top:25px;transform:scale(.8)}.detail-dialog{width:94vw}.dialog-bar{padding:18px 22px}.dialog-bar h2{font-size:18px}#detail-body{padding:24px}.project-two-column{gap:22px}.slide-image{height:320px}.travel-layout{grid-template-columns:1fr}.travel-map{position:relative;top:auto;max-width:450px;width:100%;margin:auto}.place-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){html{scroll-padding-top:84px}.site-header{padding:0 18px;gap:10px}.brand small{font-size:10px}.button.small{font-size:12px;padding:10px 12px;min-height:38px}.menu-toggle{padding:9px 11px;font-size:12px}.section{padding:62px 22px}.section-heading{margin-bottom:28px}.section-heading h2,h2{font-size:28px}.section-heading>p:last-child:not(.eyebrow){font-size:13px}.eyebrow{font-size:11px;margin-bottom:10px}.hero{grid-template-columns:1fr;gap:32px;padding-top:116px;padding-bottom:50px}.hero h1{font-size:34px}.hero h1>span{font-size:52px;display:inline-block;margin-left:9px}.title-spark{font-size:27px;right:-25px;top:-5px}.hello-label{margin-bottom:17px;font-size:12px}.hero-role{margin-top:17px;font-size:20px}.hero-intro{font-size:14px;line-height:1.95;margin-top:19px}.role-list{font-size:14px;letter-spacing:.04em}.tags{gap:7px;margin-top:19px}.tags span{font-size:11px;padding:6px 10px}.hero-actions{margin-top:24px;gap:12px}.button{padding:14px 22px;font-size:14px}.hero-art{height:410px;width:100%;max-width:360px;margin:0 auto}.photo-circle{width:255px;height:255px;left:35px;top:60px}.photo-checks{inset:60px 14px 8px 28px}.portrait-frame{inset:0 0 2px;border-radius:0 0 100px 100px}.hero-star{font-size:54px;right:12px;top:0}.hero-bow{right:18px;top:87px}.tiny-heart{font-size:37px;left:10px;top:50px}.hand-note{font-size:24px;bottom:-18px;right:12px}.strength-top{grid-template-columns:1fr;gap:20px;margin-bottom:25px;text-align:center}.strength-top h2{font-size:27px}.strength-top em{font-size:36px;margin-left:3px}.strength-subtitle{font-size:14px;max-width:330px;margin:15px auto 0}.mbti-visual{width:320px;max-width:100%;margin:0 auto}.trait{font-size:12px;padding:6px 12px}.trait-2{left:-2px}.trait-3{right:-2px}.skills-grid{gap:12px}.skill-card{min-height:305px;padding:19px 16px}.skill-card h3{font-size:16px}.skill-card p{font-size:13px;line-height:1.9}.card-number{font-size:26px;margin-bottom:10px}.card-action{font-size:11px}.schools-grid{grid-template-columns:1fr;gap:24px}.honor{font-size:11px;padding:7px 11px}.school-photo>img:first-child{height:210px}.school-copy{padding:25px}.school-top{gap:15px}.school-copy h3{font-size:25px}.project-fan{height:350px;margin:0 -22px;overflow:hidden}.project-card{width:210px;height:300px;left:calc(50% - 105px);top:18px;transform:translateX(calc(var(--delta)*145px)) translateY(calc(abs(var(--delta))*19px)) rotate(calc(var(--delta)*7deg))}.project-card.selected{transform:translateX(0) rotate(-2deg)}.project-card>img{height:163px}.project-switch{gap:20px;margin-bottom:22px}.interest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.interest-card{grid-column:auto;min-height:210px;padding:19px 17px;border-radius:15px}.hobby-photography,.hobby-painting,.hobby-travel{min-height:235px}.interest-name h3{font-size:20px}.interest-name>span{font-size:12px}.interest-illustration{height:150px;width:150px;right:-7px;bottom:9px}.interest-action{font-size:10px;bottom:16px;left:17px}.hobby-podcasts{order:4}.hobby-travel{order:3}.hobby-singing{order:5}.hobby-badminton{order:6}.hobby-podcasts .interest-illustration,.hobby-singing .interest-illustration,.hobby-badminton .interest-illustration{height:140px;width:140px;right:-2px;bottom:0}.contact{padding:42px 15px}.contact-card{padding:48px 22px 30px;border-radius:20px}.contact-card h2{font-size:27px;line-height:1.65}.contact-intro{font-size:14px;margin-top:20px}.contact-bow{right:18px;top:20px;transform:scale(.55);transform-origin:right top}.availability{gap:6px;margin-top:20px}.availability span{font-size:10px;padding:6px 9px}.contact-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}.contact-buttons>div{min-width:0}.contact-buttons .button{min-width:0;width:100%;font-size:13px;padding:13px 10px}.contact-value{font-size:10px}.text-download{grid-column:span 2;justify-self:center;font-size:13px;line-height:30px;margin-top:2px}.site-footer{margin:0 22px;padding-bottom:85px;font-size:11px}.music-control{right:15px;bottom:14px;padding:6px 10px 6px 6px}.music-label{font-size:11px}.music-disc{height:27px;width:27px;font-size:16px}.detail-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:100%;border:0;border-radius:0;margin:0}.dialog-bar{padding:18px;gap:12px}.dialog-bar h2{font-size:17px}#detail-body{padding:22px 18px}.project-two-column,.design-summary{grid-template-columns:1fr;gap:24px}.project-copy h3{font-size:17px}.project-copy p{font-size:14px}.project-two-column .project-copy{order:-1}.slide-image{height:350px}.evidence-pictures .gallery-row{height:230px;max-width:380px}.gallery-item{height:210px}.media-work{flex-basis:220px}.image-dialog{width:100%;height:100dvh;max-width:100%;max-height:100dvh;margin:0;border:0;border-radius:0;padding:55px 12px 75px}.album-paper{aspect-ratio:4/3;padding:12px;max-height:none}.album-images{gap:8px}.album-pager{gap:15px}.place-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.place-card>img{height:90px}.place-card>span{font-size:12px}.place-card small{font-size:9px}.travel-map{max-width:350px}.toast{font-size:12px;max-width:90vw;width:max-content;bottom:75px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Homepage details confirmed in the November 23 review. */
.brand-cherries {
  position: relative;
  display: inline-block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  transform: rotate(-6deg);
}
.brand-cherries img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.4);
}
.hero-intro-card {
  margin-top: 23px;
  max-width: 530px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgb(240 247 255 / 70%);
}
.hero-intro-card .hero-intro { margin-top: 0; }
.hero-paper {
  position: absolute;
  top: -3%;
  left: -6%;
  width: 112%;
  height: 112%;
  max-width: none;
  object-fit: contain;
  z-index: -1;
  opacity: .9;
  pointer-events: none;
}
.hero h1 > span { color: inherit; }
.hero .title-spark { color: var(--red); width: .85em; height: .95em; transform: rotate(9deg); }
.hero-role, .hero .role-list { color: var(--blue); }
.hello-label { font-family: inherit; border-bottom-style: solid; }
.hero-role-separator { margin-left: 10px; font-weight: 400; }
.hero-role-english {
  display: inline-block;
  margin-left: 6px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-style: italic;
  font-weight: 500;
}
.role-list { font-weight: 700; }
.hero .tags { gap: 10px; }
.hero .tags span {
  font-size: 14px;
  padding: 9px 15px;
  line-height: 1.5;
}
.portrait {
  filter: drop-shadow(2px 0 0 white)
          drop-shadow(-2px 0 0 white)
          drop-shadow(0 2px 0 white)
          drop-shadow(0 -2px 0 white);
}
.hero { position: relative; padding-bottom: 100px; }
.hero .hand-note { left: 3%; right: auto; bottom: -3%; }
.hero-cherries {
  position: absolute;
  right: 11%;
  bottom: -4%;
  transform: rotate(-16deg);
  width: clamp(74px, 20%, 110px);
  pointer-events: none;
}
.hero-scroll {
  position: absolute;
  bottom: 20px;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #c6dcf5;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgb(42 88 151 / 10%);
  font-size: 13px;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll { animation: scroll-hint-float 3s ease-in-out infinite; }
  .hero-scroll:hover, .hero-scroll:focus-visible { animation-play-state: paused; }
  @keyframes scroll-hint-float { 50% { transform: translateY(-4px); } }
}
@media (max-width: 600px) {
  .brand-cherries { transform: scale(.9) rotate(-6deg); flex-basis: 31px; width: 31px; height: 34px; }
  .hero-intro-card { margin-top: 19px; padding: 17px 18px; border-radius: 15px; }
  .hero-role-separator { margin-left: 8px; }
  .hero-role-english { margin-left: 5px; font-size: 19px; }
  .hero .tags { gap: 8px; }
  .hero .tags span { font-size: 13px; padding: 8px 13px; }
}

/* Profile and education */
.mbti-character, .mbti-visual::before {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  aspect-ratio: 1;
}
.mbti-character {
  width: min(43%, 185px);
  height: auto;
  object-fit: cover;
  border: 2px solid #bdd7f3;
}
.mbti-visual::before {
  content: "";
  width: min(56%, 240px);
  border: 1px dashed #aeb5be;
  pointer-events: none;
}
.honors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 840px;
  margin: 30px auto 0;
}
.honor {
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 12px;
  min-height: 40px;
}
@media (max-width: 850px) {
  .honors { gap: 8px; }
}

/* The five ticks follow the same quadratic curve as the timeline. */
.time-arc {
  position: relative;
  height: clamp(112px, 13vw, 156px);
  margin: 30px 20px 0;
  color: #7294bb;
  font: 13px Georgia, serif;
}
.time-arc svg { display: block; width: 100%; height: 100%; overflow: visible; color: #a7c9f2; }
.time-arc span { position: absolute; transform: translateX(-50%); text-align: center; }
.time-arc span::before {
  content: "";
  display: block;
  height: 7px;
  width: 1px;
  background: #a7c9f2;
  margin: 0 auto 5px;
}
.time-arc span:nth-of-type(1) { left: 0; top: 70%; }
.time-arc span:nth-of-type(2) { left: 25%; top: 20%; }
.time-arc span:nth-of-type(3) { left: 50%; top: 3.333%; }
.time-arc span:nth-of-type(4) { left: 75%; top: 20%; }
.time-arc span:nth-of-type(5) { left: 100%; top: 70%; }

/* Polaroid fan and clock navigation */
.project-fan { height: 440px; margin: 10px 0 0; }
.project-card {
  width: 240px;
  height: 344px;
  left: calc(50% - 120px);
  top: 12px;
  padding: 8px 8px 16px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 26px rgb(0 0 0 / 12%);
  transform: translateX(calc(var(--delta) * 170px)) translateY(calc(abs(var(--delta)) * 34px)) rotate(calc(var(--delta) * 18deg));
}
.project-card.selected {
  transform: translateX(0) rotate(0);
  border: 0;
  box-shadow: 0 14px 30px rgb(0 0 0 / 16%);
}
.project-card > img { height: 222px; background: #fff; }
.project-card[data-project="community"] > img { object-position: 43% center; }
.project-card[data-project="design"] > img { object-position: center top; }
.project-card h3 { margin: 4px 5px 0; font-size: 13px; line-height: 1.45; }
.project-card .project-role { margin: 8px 5px 0; font-size: 11px; }
.project-card time { margin: 4px 5px 0; font-size: 10px; }
.project-clock { position: relative; width: min(700px, 90%); height: 190px; margin: 0 auto; }
.project-clock .time-arc { height: 140px; margin: 0 20px; }
.project-clock .time-arc span { margin-top: -32px; }
.project-clock .time-arc span::before { position: absolute; top: 24px; left: 50%; height: 12px; }
.clock-pointer {
  position: absolute; width: 2px; height: 120px;
  bottom: 4px; left: calc(50% - 1px);
  background: var(--blue);
  transform: rotate(var(--pointer-angle, 0deg));
  transform-origin: center bottom;
  transition: transform .35s ease;
}
.clock-pointer::before { content: ""; position: absolute; top: -7px; left: -4px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--blue); }
.clock-pointer::after { content: ""; position: absolute; bottom: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.project-switch { margin: 18px 0 0; }
@media(max-width:1100px) {
  .project-card { transform: translateX(calc(var(--delta) * 140px)) translateY(calc(abs(var(--delta)) * 34px)) rotate(calc(var(--delta) * 18deg)); }
  .project-card.selected { transform: none; }
}
@media(max-width:850px) {
  .project-card { width: 205px; left: calc(50% - 102.5px); transform: translateX(calc(var(--delta) * 110px)) translateY(calc(abs(var(--delta)) * 34px)) rotate(calc(var(--delta) * 15deg)); }
  .project-card.selected { transform: none; }
}
@media(max-width:600px) {
  .project-fan { height: 395px; margin: 0 -20px; overflow: hidden; }
  .project-card { width: 210px; left: calc(50% - 105px); transform: translateX(calc(var(--delta) * 156px)) translateY(calc(abs(var(--delta)) * 24px)) rotate(calc(var(--delta) * 12deg)); }
  .project-card.selected { transform: none; }
  .project-clock { width: 100%; height: 170px; }
  .project-clock .time-arc { height: 115px; font-size: 11px; }
  .clock-pointer { height: 105px; }
}
@media(prefers-reduced-motion:reduce) { .clock-pointer { transition: none; } }

.detail-dialog { scrollbar-width: none; -ms-overflow-style: none; }
.detail-dialog::-webkit-scrollbar { display: none; }
@media(min-width:851px) {
  .projects.section { padding-top: 100px; padding-bottom: 24px; }
  .projects .section-heading { margin-bottom: 14px; }
  .projects .section-heading h2 { font-size: 29px; }
  .projects .section-heading .eyebrow { margin-bottom: 4px; }
  .projects .section-heading > p:last-child { margin-top: 5px; font-size: 13px; }
  .project-fan { height: clamp(270px, 43vh, 340px); margin-top: 0; }
  .project-card { width: 210px; height: 276px; left: calc(50% - 105px); top: 3px; transform: translateX(calc(var(--delta) * 162px)) translateY(calc(abs(var(--delta)) * 19px)) rotate(calc(var(--delta) * 16deg)); }
  .project-card > img { height: 166px; }
  .project-card.selected { transform: none; }
  .project-clock { height: 100px; width: min(640px, 78%); margin-top: 8px; }
  .project-clock .time-arc { height: 80px; font-size: 11px; }
  .clock-pointer { height: 55px; }
  .project-switch { margin: 9px 0 0; gap: 22px; }
  .project-switch button { padding: 7px 16px; }
  .detail-dialog[data-type="project"] { width: min(1140px, 94vw); max-height: 92dvh; }
  .detail-dialog[data-type="project"] .dialog-bar { padding: 14px 26px; }
  .detail-dialog[data-type="project"] #detail-body { padding: 18px 26px 22px; }
  .detail-dialog[data-type="project"] .slide-image { height: min(355px, calc(92dvh - 160px)); padding: 10px; }
  .detail-dialog[data-type="project"] .pager { margin-top: 10px; }
  .detail-dialog[data-type="project"] .project-copy p { font-size: 13px; line-height: 1.8; }
  .detail-dialog[data-type="project"] .project-copy h3 { margin: 15px 0 6px; font-size: 16px; }
  .detail-dialog[data-type="project"] .project-copy h3:first-of-type { margin-top: 0; }
  .detail-dialog[data-type="project"] .detail-meta { margin-bottom: 13px; }
}
@media(min-width:851px) and (max-height:700px) {
  .projects.section { padding-top: 94px; padding-bottom: 16px; }
  .projects .section-heading { margin-bottom: 8px; }
  .projects .section-heading h2 { font-size: 26px; }
  .project-fan { height: 250px; }
  .project-card { width: 194px; height: 244px; left: calc(50% - 97px); transform: translateX(calc(var(--delta) * 152px)) translateY(calc(abs(var(--delta)) * 14px)) rotate(calc(var(--delta) * 14deg)); }
  .project-card.selected { transform: none; }
  .project-card > img { height: 135px; }
  .project-card h3 { font-size: 12px; }
  .project-card .project-role { margin-top: 5px; }
  .project-clock { height: 85px; margin-top: 8px; }
  .project-clock .time-arc { height: 65px; }
  .clock-pointer { height: 42px; }
}
@media(min-width:851px) {
  .projects.section { padding-top: 20px; }
}
@media(min-width:851px) and (max-height:700px) {
  .projects.section { padding-top: 12px; }
  .project-fan { height: 270px; }
}

/* Desktop sections share the project gallery's scale and viewport spacing. */
@media (min-width: 851px) {
  .section:not(.projects):not(.hero) {
    min-height: calc(100dvh - 100px);
    padding-top: 20px;
    padding-bottom: 24px;
  }
  .section:not(.projects) .section-heading { margin-bottom: 20px; }
  .section:not(.projects) .section-heading h2 { font-size: 29px; }
  .section:not(.projects) .section-heading .eyebrow { margin-bottom: 4px; }
  .section:not(.projects) .section-heading > p:last-child { margin-top: 5px; font-size: 13px; }
  .hero.section {
    min-height: 100dvh;
    padding-top: 108px;
    padding-bottom: 60px;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
  .hero h1 { font-size: 34px; line-height: 1.25; }
  .hero h1 > span { font-size: 48px; }
  .hero .hello-label { margin-bottom: 12px; font-size: 12px; padding-bottom: 5px; }
  .hero-role { margin-top: 12px; font-size: 19px; }
  .hero-role-english { font-size: 19px; }
  .hero .role-list { font-size: 14px; }
  .hero-intro-card { margin-top: 14px; padding: 14px 18px; }
  .hero-intro { font-size: 14px; line-height: 1.8; }
  .hero .tags { margin-top: 14px; gap: 8px; }
  .hero .tags span { font-size: 12px; padding: 7px 12px; }
  .hero-actions { margin-top: 18px; }
  .hero-actions .button { padding: 11px 20px; font-size: 14px; }
  .hero-art { height: clamp(340px, 56dvh, 480px); }
  .hero-scroll { bottom: 14px; font-size: 12px; padding: 6px 14px; }
  .hero .hand-note { font-size: 24px; }
  .strength-top { min-height: 0; grid-template-columns: 1fr 380px; gap: 38px; margin-bottom: 20px; }
  .strength-top h2 { font-size: 29px; }
  .strength-top em { font-size: 38px; }
  .strength-subtitle { font-size: 15px; line-height: 1.8; margin-top: 12px; }
  .mbti-visual { height: 210px; }
  .mbti-character { width: 155px; }
  .mbti-visual::before { width: 198px; }
  .trait { font-size: 12px; padding: 5px 12px; }
  .trait-0, .trait-1 { top: 8px; }
  .trait-2, .trait-3 { top: 87px; }
  .trait-4, .trait-5 { bottom: 0; }
  .skills-grid { gap: 16px; }
  .skill-card { min-height: 210px; padding: 17px 18px; border-radius: 15px; }
  .card-number { font-size: 23px; margin-bottom: 8px; }
  .skill-card h3 { font-size: 16px; margin-bottom: 8px; }
  .skill-card p { font-size: 13px; line-height: 1.75; margin-bottom: 12px; }
  .card-action { font-size: 11px; }
  .schools-grid { gap: 24px; }
  .school-photo > img:first-child { height: clamp(125px, 21dvh, 190px); }
  .school-logo { width: 58px; height: 58px; border-width: 5px; bottom: -21px; }
  .school-copy { padding: 18px 24px; }
  .school-top { margin-bottom: 5px; }
  .school-copy h3 { font-size: 23px; margin-bottom: 7px; }
  .school-copy p, .school-copy .degree { font-size: 13px; }
  .school-copy ul { font-size: 13px; line-height: 1.8; margin-top: 8px; }
  .honors { margin-top: 18px; gap: 8px; }
  .honor { min-height: 32px; padding: 6px 14px; font-size: 11px; }
  .interest-grid { gap: 16px; }
  .interest-grid .interest-card { min-height: clamp(175px, 29dvh, 225px); padding: 20px 22px; }
  .interest-name h3 { font-size: 21px; }
  .interest-name > span { font-size: 13px; }
  .interest-illustration { width: 175px; height: 175px; bottom: -5px; }
  .hobby-podcasts .interest-illustration, .hobby-singing .interest-illustration { width: 140px; height: 140px; }
  .hobby-badminton .interest-illustration { width: 190px; height: 190px; right: 8px; }
  .interest-action { left: 22px; bottom: 18px; font-size: 11px; }
  .contact-card { max-width: 1000px; margin: 0 auto; padding: 32px 40px 22px; }
  .contact-card .eyebrow { margin-bottom: 10px; }
  .contact-card h2 { font-size: 30px; line-height: 1.45; }
  .contact-intro { font-size: 14px; line-height: 1.85; max-width: 670px; margin-top: 16px; }
  .availability { margin-top: 16px; }
  .contact-buttons { margin-top: 20px; gap: 16px; }
  .contact-buttons .button { padding: 11px 20px; font-size: 14px; }
  .contact-value { margin-top: 8px; }
}
@media (min-width: 851px) and (max-height: 700px) {
  .section:not(.projects):not(.hero) { padding-top: 12px; padding-bottom: 16px; }
  .section:not(.projects) .section-heading { margin-bottom: 14px; }
  .section:not(.projects) .section-heading h2 { font-size: 26px; }
  .hero.section { padding-top: 104px; padding-bottom: 50px; gap: 40px; }
  .hero h1 { font-size: 30px; }
  .hero h1 > span { font-size: 44px; }
  .hero-intro { font-size: 13px; }
  .hero-art { height: 350px; }
  .strength-top { margin-bottom: 14px; }
  .mbti-visual { height: 195px; }
  .mbti-character { width: 142px; }
  .mbti-visual::before { width: 182px; }
  .trait-2, .trait-3 { top: 80px; }
  .strength-top h2 { font-size: 26px; }
  .strength-top em { font-size: 34px; }
  .strength-top .eyebrow { margin-bottom: 8px; }
  .skill-card { min-height: 200px; padding: 14px 16px; }
  .school-photo > img:first-child { height: 125px; }
  .school-copy { padding: 14px 22px; }
  .honors { margin-top: 14px; }
  .interest-grid .interest-card { min-height: 175px; }
}

.project-fan .project-card.selected { transform: scale(1.25); transform-origin: center top; }
.project-card:not(.selected) > img { filter: none; opacity: .7; }
.project-switch .current-project { font: 12px "Microsoft YaHei", sans-serif; letter-spacing: 0; }
@media(min-width:851px) {
  .project-fan { height: clamp(335px, 48vh, 410px); }
}
@media(min-width:851px) and (max-height:700px) {
  .project-fan { height: 300px; }
  .project-clock { height: 65px; }
  .project-clock .time-arc { height: 50px; }
  .clock-pointer { height: 32px; }
  .project-switch { margin-top: 5px; }
}
@media(max-width:600px) {
  .project-fan { height: 445px; }
  .project-switch { gap: 10px; }
  .project-switch .current-project { font-size: 10px; }
  .project-switch button { padding: 8px 10px; }
}
.detail-dialog[data-type="design"] .gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 14px;
  overflow: visible;
  height: auto;
  padding: 0;
}
.detail-dialog[data-type="design"] .gallery-item {
  width: 100%;
  min-width: 0;
  height: 170px;
  background: transparent;
  border-radius: 0;
}
.detail-dialog[data-type="design"] .gallery-item > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.detail-dialog[data-type="design"] .evidence-pictures .gallery-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}
.detail-dialog[data-type="design"] .evidence-pictures .gallery-item { height: 250px; }
@media(max-width:600px) {
  .detail-dialog[data-type="design"] .gallery-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-dialog[data-type="design"] .evidence-pictures .gallery-item { height: 210px; }
}

.work-carousel { position: relative; isolation: isolate; }
.work-carousel::before, .work-carousel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 32px;
  z-index: 1; pointer-events: none;
}
.work-carousel::before { left: 0; background: linear-gradient(90deg, #fff, #fff0); opacity: 0; transition: opacity .2s; }
.work-carousel::after { right: 0; background: linear-gradient(270deg, #fff, #fff0); opacity: 0; transition: opacity .2s; }
.work-carousel.has-left-content::before, .work-carousel.has-right-content::after { opacity: 1; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fffffff2; border: 1px solid #f2bec3;
  box-shadow: 0 2px 10px #00000012; color: var(--red);
  font-size: 27px; line-height: 1; display: grid; place-items: center;
}
.carousel-arrow.previous { left: 2px; }
.carousel-arrow.next { right: 2px; }
.carousel-arrow { padding: 0; font-size: 0; }
.carousel-arrow::after { content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translate(-70%, -50%) rotate(45deg); }
.carousel-arrow.previous::after { transform: translate(-30%, -50%) rotate(-135deg); }
.detail-dialog[data-type="design"] .work-carousel .gallery-row {
  display: flex; overflow-x: auto; gap: 14px; padding: 0 22px;
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.detail-dialog[data-type="design"] .work-carousel .gallery-item {
  width: auto; height: 210px; flex: 0 0 auto; overflow: visible;
}
.detail-dialog[data-type="design"] .work-carousel .gallery-item > img {
  width: auto; height: 100%; max-width: none; display: block;
}
.work-carousel .media-works { scrollbar-width: none; padding: 0 22px; }
.work-carousel .gallery-row::-webkit-scrollbar,
.work-carousel .media-works::-webkit-scrollbar { display: none; }
/* Compact project headers and uncropped media covers. */
.detail-dialog[data-type="design"] .dialog-bar,
.detail-dialog[data-type="media"] .dialog-bar { padding-left: 48px; }
.detail-dialog[data-type="design"] .project-copy,
.detail-dialog[data-type="design"] .gallery-heading { padding-left: 22px; }
.detail-dialog[data-type="media"] .detail-meta,
.detail-dialog[data-type="media"] .project-point:first-child { padding-left: 22px; }
.work-carousel .gallery-row, .work-carousel .media-works { scroll-snap-type: none !important; }
.evidence-figure { margin: 0; min-width: 0; }
.evidence-figure figcaption { text-align: center; color: var(--muted); font-size: 11px; line-height: 18px; margin-top: 5px; }
#image-dialog { background: transparent; border: 0; box-shadow: none; }
#image-dialog::backdrop { background: #211c1970; backdrop-filter: blur(8px); }
#image-dialog .lightbox-controls { color: white; }
#image-dialog .lightbox-controls button { background: #ffffffed; color: var(--blue); }
#detail-dialog[data-type="album"] { width:min(1180px,98vw); max-height:98dvh; border:0; outline:0; background:transparent; box-shadow:none; overflow:visible; }
#detail-dialog[data-type="album"]::backdrop { background:#211c1960; backdrop-filter:blur(8px); }
#detail-dialog[data-type="album"] .dialog-bar { display:none; }
#detail-dialog[data-type="album"] #detail-body { padding:0 48px 36px; }
.book-stage { position:relative; width:min(100%,142dvh); margin:auto; }
.book-stage .album-paper { position:relative; aspect-ratio:16/9; max-width:none; max-height:none; margin:0; padding:5% 5% 6%; border:0; border-radius:5px 9px 9px 5px; background:linear-gradient(90deg,#fff 48%,#f7f7f6 49.5%,#e9e9e7 50%,#fafaf9 51%,#fff 54%); box-shadow:0 22px 45px #0003,0 5px 0 -2px #eee,0 8px 0 -3px #d5d5d5; }
.book-layout { height:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-template-rows:minmax(0,1fr) auto; gap:2%; }
.book-photo { padding:0; background:transparent; min-width:0; min-height:0; display:flex; align-items:center; justify-content:center; }
.book-photo img { width:100%; height:100%; object-fit:contain; }
.book-copy { align-self:center; color:var(--blue); }
.book-copy small { font-size:clamp(7px,.7vw,10px); letter-spacing:.18em; }
.book-copy h3 { font-family:Georgia,serif; font-size:clamp(17px,2.4vw,34px); font-weight:400; line-height:1.15; margin:8px 0; }
.book-copy p { font-family:Georgia,serif; color:var(--muted); font-size:clamp(9px,1vw,15px); line-height:1.5; }
.book-spring .book-copy,.book-city .book-copy,.book-blossom .book-copy,.book-coast .book-copy { grid-column:1/-1; text-align:center; }
.book-spring .book-copy small,.book-city .book-copy small,.book-blossom .book-copy small,.book-coast .book-copy small { display:none; }
.book-spring .book-layout { grid-template-columns:1fr 1fr .67fr; }
.book-quiet .book-layout,.book-craft .book-layout { grid-template-columns:1fr 1fr .8fr; grid-template-rows:minmax(0,1fr); gap:3%; }
.book-architecture .book-layout { grid-template-columns:1.2fr .9fr .9fr; grid-template-rows:1fr 1fr; gap:2%; }
.book-architecture .photo-0 { grid-column:1;grid-row:1; }.book-architecture .photo-1 {grid-column:1;grid-row:2;}
.book-architecture .photo-2 {grid-column:2;grid-row:2;}.book-architecture .photo-3 {grid-column:3;grid-row:2;}
.book-architecture .book-copy {grid-column:2/4;grid-row:1;padding:0 8%;}
.book-drawing .book-layout {grid-template-columns:1.2fr .8fr;grid-template-rows:1fr;gap:10%;}
.book-folio {position:absolute;bottom:2%;left:5%;font-size:8px;color:#aaa;letter-spacing:.15em;}
.book-arrow {position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;padding:0;border-radius:50%;background:white;color:var(--blue);box-shadow:0 4px 14px #0002;font-size:0;}
.book-arrow::after {content:'';position:absolute;left:50%;top:50%;width:7px;height:7px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:translate(-70%,-50%) rotate(45deg);}
.book-arrow.previous {left:-43px;}.book-arrow.previous::after {transform:translate(-30%,-50%) rotate(-135deg);}.book-arrow.next {right:-43px;background:var(--blue);color:white;}
.book-arrow:disabled {opacity:.35;cursor:default;}
.book-progress {display:flex;position:relative;align-items:center;justify-content:center;gap:7px;margin:22px auto 0;}
.book-progress button {width:7px;height:7px;border-radius:10px;background:#fff8;padding:0;}
.book-progress button[aria-current="page"] {width:22px;background:var(--blue);}
.book-progress span {position:absolute;top:16px;color:white;font-size:11px;letter-spacing:.12em;}
#detail-dialog[data-type="travel"] {width:min(1140px,125dvh,96vw);max-height:96dvh;}
#detail-dialog[data-type="travel"] .dialog-bar {display:none;}
#detail-dialog[data-type="travel"] .dialog-bar h2 {display:none;}
#detail-dialog[data-type="travel"] #detail-body {padding:0;}
.travel-atlas {position:relative;aspect-ratio:1527/1080;isolation:isolate;}
.atlas-base {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:-1;}
.atlas-intro {position:absolute;top:4%;left:4%;width:44%;}
.atlas-intro h3 {font-size:clamp(20px,2.4vw,32px);color:var(--blue);margin:5px 0 12px;}
.atlas-intro>p:last-child {font-size:clamp(10px,1.05vw,14px);line-height:1.8;color:var(--ink);}
.atlas-intro strong {font-weight:600;color:var(--blue);}
.atlas-intro .eyebrow {font-size:9px;margin:0;}
.atlas-compass {position:absolute;right:6%;top:7%;width:5%;text-align:center;color:var(--blue);font-family:Georgia,serif;}
.atlas-compass svg {display:block;width:100%;}
.map-photo {position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:6.5%;padding:2px;background:white;border-radius:2px;box-shadow:0 2px 6px #243f5740;transition:transform .2s;}
.map-photo img {display:block;width:100%;aspect-ratio:4/5;object-fit:cover;}
.map-photo span {display:block;color:var(--blue);font-size:clamp(8px,.9vw,12px);line-height:1.5;white-space:nowrap;}
.map-photo:hover,.map-photo:focus-visible {transform:translate(-50%,-50%) scale(1.2);z-index:4;}
.school-card:first-child .school-photo>img:first-child {object-position:center;}
@media(max-width:600px) {
 #detail-dialog[data-type="album"] {height:auto;margin:auto;}
 #detail-dialog[data-type="album"] #detail-body {padding:0 28px 36px;}
 .book-arrow {width:25px;height:25px;}.book-arrow.previous {left:-27px;}.book-arrow.next {right:-27px;}
 .book-copy h3 {font-size:15px;}.book-copy p {font-size:8px;}.book-copy small,.book-folio {display:none;}
 #detail-dialog[data-type="travel"] {height:auto;margin:auto;border-radius:12px;overflow:auto;}
 .travel-atlas {min-width:700px;}
 .hobby-travel {order:2;}.hobby-painting {order:3;}
}
body:has(#image-dialog[open]) #detail-dialog { visibility: hidden; }
.restored-viewer-focus:focus,.restored-viewer-focus:focus-visible {outline:none !important;}
/* Shared photo navigation and stable project positions. */
.viewer-arrow { position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;padding:0;border:0;border-radius:50%;background:#fff;color:var(--blue);box-shadow:0 4px 14px #0002;font-size:0;z-index:5; }
.viewer-arrow::after {content:'';position:absolute;left:50%;top:50%;width:7px;height:7px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:translate(-70%,-50%) rotate(45deg);}
.viewer-arrow.previous {left:8px;}.viewer-arrow.previous::after {transform:translate(-30%,-50%) rotate(-135deg);}
.viewer-arrow.next {right:8px;background:var(--blue);color:#fff;}
.viewer-arrow:disabled {opacity:.35;cursor:default;}
.work-carousel .carousel-arrow {background:#fff;color:var(--blue);border-color:#d7e5f4;}
.work-carousel .carousel-arrow.next {background:var(--blue);color:#fff;border-color:var(--blue);}
.viewer-progress {display:flex;flex-direction:column;gap:9px;align-items:center;justify-content:center;margin-top:16px;font-size:11px;color:var(--blue);}
.viewer-progress>div {display:flex;gap:7px;align-items:center;justify-content:center;flex-wrap:wrap;}
.viewer-progress button {width:7px;height:7px;padding:0;border:0;border-radius:10px;background:#b6c9dd;}
.viewer-progress button[aria-current="page"] {width:22px;background:var(--blue);}
#image-dialog {width:98vw;max-width:98vw;height:96dvh;max-height:96dvh;margin:auto;padding:20px 60px 65px;outline:0;}
#image-dialog .lightbox-controls {bottom:12px;margin:0;gap:9px;}
#image-dialog .lightbox-controls button {padding:0;border:0;background:#ffffff80;}
#image-dialog .lightbox-controls button[aria-current="page"] {background:var(--blue);}
.slide-stage {position:relative;padding:0 40px;}
.slide-stage .viewer-arrow.previous {left:0;}.slide-stage .viewer-arrow.next {right:0;}
.project-slides .slide-image {background:transparent;}
.project-fan {--fan-step:clamp(125px,15vw,185px);}
.project-fan .project-card {transition:transform .25s ease,box-shadow .25s ease;transform:translateX(calc(var(--delta)*var(--fan-step))) translateY(calc(abs(var(--delta))*14px)) rotate(calc(var(--delta)*14deg));}
.project-fan .project-card.selected {z-index:10;transform:translateX(calc(var(--delta)*var(--fan-step))) translateY(calc(abs(var(--delta))*14px)) rotate(calc(clamp(-1,var(--delta),1)*14deg)) scale(1.25);transform-origin:center top;}
.project-fan .project-card>img {transition:opacity .25s;filter:none;opacity:.75;}
.project-fan .project-card.selected>img {opacity:1;}
.clock-pointer {transition:transform .3s ease;}
.interest-card[data-interest] {transition:transform .25s ease,box-shadow .25s ease;}
.interest-card[data-interest]:hover,.interest-card[data-interest]:focus-visible {transform:translateY(-4px) scale(1.025);box-shadow:0 12px 24px #2a589718;}
#detail-dialog[data-type="travel"] {width:min(1190px,181dvh,96vw);border:0;background:transparent;box-shadow:none;outline:0;}
.travel-layout {display:grid;grid-template-columns:minmax(0,3.4fr) minmax(0,1fr);gap:24px;align-items:stretch;}
.travel-atlas {background:#fff;border-radius:16px;overflow:hidden;}
.travel-guides {min-height:0;display:flex;flex-direction:column;gap:10px;}
.travel-guides h3 {font-size:clamp(12px,1.25vw,18px);color:var(--blue);margin:0;line-height:1.5;padding:10px 8px;width:100%;text-align:center;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-text-stroke:2px white;paint-order:stroke fill;}
.travel-guides>div {display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:7px;min-height:0;flex:1;}
.travel-guides a {display:flex;min-height:0;align-items:center;justify-content:center;transition:transform .2s;}
.travel-guides img {height:100%;max-height:25dvh;width:100%;object-fit:contain;filter:drop-shadow(0 2px 3px #0002);}
.travel-guides a:hover {transform:scale(1.025);}
.contact-card .contact-intro {max-width:880px;width:100%;}
@media(min-width:1000px) {.contact-intro>span {white-space:nowrap;}.contact-card .contact-intro {font-size:14px;}}
@media(max-width:850px) {.project-fan {--fan-step:110px;}.travel-layout {gap:12px;}.contact-break{display:none;}}
@media(max-width:600px) {.project-fan {--fan-step:calc((100vw - 130px)/5);overflow:visible;}.project-fan .project-card {width:140px;left:calc(50% - 70px);height:230px;}.project-fan .project-card>img{height:130px;}#image-dialog {padding:20px 42px 65px;}.travel-layout {min-width:700px;}.travel-layout .travel-atlas {min-width:0;}.travel-guides img{max-height:none;}.viewer-arrow{width:30px;height:30px;}}
@media(prefers-reduced-motion:reduce) {.project-fan .project-card,.project-fan .project-card>img,.clock-pointer,.interest-card[data-interest] {transition:none;}}
.school-top .school-tag { color: var(--blue); margin-left: 12px; }
.school-name-row { display: flex; align-items: center; gap: 16px; }
.school-name-row h3 { flex: 0 0 auto; }
.school-copy .school-program { color: var(--blue); font-size: 12px; line-height: 1.7; }
.school-program span { margin: 0 5px; }
@media(min-width:851px) {
  .school-copy { padding: 12px 20px; }
  .school-name-row { gap: 12px; }
  .school-name-row h3 { font-size: 22px; margin: 0; }
  .school-photo > img:first-child { height: clamp(185px, 31dvh, 260px); object-position: center 25%; }
  .school-card:nth-child(2) .school-photo > img:first-child { object-position: center 12%; }
  .hero .hero-art { height: clamp(420px, 68dvh, 560px); }
}
@media(max-width:600px) {
  .school-name-row { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media(min-width:851px) {
  .site-header { height: 68px; min-height: 68px; }
  .site-header .button { padding: 9px 21px; }
  html { scroll-padding-top: 68px; }
  .section { scroll-margin-top: 0; }
  .section.hero, .section.strengths, .section.education, .section.interests { max-width: 1056px; }
  .section:not(.projects):not(.hero), .projects.section { min-height: calc(100dvh - 68px); padding-top: 24px; padding-bottom: 24px; }
  .hero.section { padding-top: 92px; padding-bottom: 52px; }
  .strength-top { grid-template-columns: 1fr 350px; gap: 30px; }
  .skills-grid { gap: 14px; }
  .hero-art { width: 100%; }
  .section.strengths { display: flex; flex-direction: column; justify-content: center; }
  .section.contact { display: flex; flex-direction: column; justify-content: center; min-height: calc(100dvh - 128px); }
  .contact-card { width: 100%; }
}
.detail-dialog .dialog-bar,
.detail-dialog[data-type="project"] .dialog-bar { padding: 10px 26px; }
.detail-dialog .dialog-bar h2 { margin: 0; font-size: 20px; line-height: 1.5; }
.detail-dialog[data-type="media"] .media-works { gap: 20px; margin-top: 18px; }
.detail-dialog[data-type="media"] .media-work { flex: 0 0 174px; border: 0; border-radius: 0; background: transparent; padding: 0; }
.detail-dialog[data-type="media"] .media-cover { aspect-ratio: 3 / 4; padding: 0; background: transparent; }
.detail-dialog[data-type="media"] .media-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media-caption { position: relative; margin-top: 7px; min-height: 40px; }
.detail-dialog[data-type="media"] .media-caption h3 { margin: 0; font-size: 12px; line-height: 20px; padding-right: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.detail-dialog[data-type="media"] .media-caption .platform { position: absolute; right: 0; top: 20px; margin: 0; font-size: 10px; line-height: 20px; }
@media(min-width:851px) {
  .detail-dialog[data-type="design"], .detail-dialog[data-type="media"] { width: min(1140px,94vw); max-height: 94dvh; }
  .detail-dialog[data-type="design"] #detail-body,
  .detail-dialog[data-type="media"] #detail-body { padding: 14px 26px 18px; }
  .detail-dialog[data-type="design"] .project-copy p,
  .detail-dialog[data-type="media"] .project-copy p { font-size: 13px; line-height: 1.75; }
  .detail-dialog[data-type="design"] .project-copy h3,
  .detail-dialog[data-type="media"] .project-copy h3 { font-size: 16px; margin: 10px 0 5px; }
  .detail-dialog[data-type="design"] .detail-meta,
  .detail-dialog[data-type="media"] .detail-meta { margin-bottom: 8px; }
  .detail-dialog[data-type="media"] .project-points { display: grid; grid-template-columns: .8fr 1.05fr 1.2fr; gap: 24px; }
  .detail-dialog[data-type="media"] .project-point h3 { margin-top: 0; }
  .detail-dialog[data-type="design"] .design-summary { grid-template-columns: 1.6fr 1fr; gap: 24px; }
  .detail-dialog[data-type="design"] .evidence-pictures .gallery-item { height: 190px; }
  .detail-dialog[data-type="design"] .gallery-heading { margin: 12px 0 10px; font-size: 16px; }
  .detail-dialog[data-type="design"] .work-carousel .gallery-item { height: clamp(150px, 28dvh, 220px); }
}
@media(max-width:850px) {
  .detail-dialog .dialog-bar { padding: 10px 18px; }
  .detail-dialog .dialog-bar h2 { font-size: 17px; }
  .project-point + .project-point { margin-top: 16px; }
}
@media(max-width:600px) {
  .detail-dialog[data-type="design"] .work-carousel .gallery-item { height: 185px; }
}
.contact-card .availability span { font-size: 14px; padding: 8px 16px; }
.contact-buttons .button, .contact-buttons .button.secondary { background: #fff0f2; color: #b52a3c; border: 1px solid #f3cbd1; }
.contact-buttons .text-download { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 46px; padding: 11px 20px; border: 1px solid var(--red); border-radius: 10px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.6; text-decoration: none; }
.contact-value:empty { display: none; }

/* Pointer guidance and gentle, unclipped card motion. */
.pointer-hint {position:fixed;z-index:10000;pointer-events:none;padding:7px 12px;border:1px solid #d9e7f7;border-radius:20px;background:#fffffff2;color:var(--blue);box-shadow:0 4px 16px #244c7a20;font:12px/1.5 "Microsoft YaHei",sans-serif;white-space:nowrap;}
.pointer-hint[hidden] {display:none;}
.project-switch.viewer-progress {flex-direction:column;gap:8px;margin-top:8px;}
.project-switch.viewer-progress button {width:8px;height:8px;min-height:0;padding:0;border:0;border-radius:12px;background:#c5d1de;}
.project-switch.viewer-progress button[aria-current="page"] {width:26px;background:var(--blue);}
.project-switch.viewer-progress .project-count {font:12px/1.4 "Microsoft YaHei",sans-serif;letter-spacing:.05em;}
.skill-card,.work-carousel .gallery-item,.work-carousel .media-work {transition:transform .22s ease,box-shadow .22s ease;transform-origin:center;}
.detail-dialog[data-type="design"] .work-carousel .gallery-row,.work-carousel .media-works {padding-top:9px;padding-bottom:9px;}
@media(hover:hover) {
 .skill-card:hover,.skill-card:focus-visible {transform:translateY(-5px) scale(1.02);box-shadow:0 12px 24px #2a589718;}
 .work-carousel .gallery-item:hover,.work-carousel .media-work:hover {transform:translateY(-3px) scale(1.02);box-shadow:0 7px 16px #244c7a20;}
 .travel-guides a:hover {transform:translateY(-3px) scale(1.025);}
}
@media(prefers-reduced-motion:reduce) {.skill-card,.work-carousel .gallery-item,.work-carousel .media-work,.travel-guides a {transition:none;}}

.project-card-footer {position:absolute;left:13px;right:13px;bottom:12px;display:flex;align-items:baseline;justify-content:space-between;gap:5px;}
.project-card .project-card-footer time {margin:0;font-size:9px;white-space:nowrap;}
.project-detail-link {flex-shrink:0;font-size:9px;line-height:1.6;color:var(--blue);text-decoration:underline;text-decoration-color:var(--sky);text-underline-offset:4px;}
@media(max-width:600px) {.project-fan .project-card {height:250px;}.project-card-footer {flex-wrap:wrap;row-gap:4px;}.project-detail-link {margin-left:auto;}}

/* Keep card copy anchored above the fixed footer. */
.project-fan .project-card {display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;}
.project-fan .project-card>img {flex-shrink:0;}
/* Gentle button affordances, without changing layout dimensions. */
.header-resume,.hero-actions .button,.contact-buttons .button,.contact-buttons .text-download {transition:transform .22s ease,box-shadow .22s ease;transform-origin:center;}
@media(hover:hover) {
 .header-resume:hover,.hero-actions .button:hover,.contact-buttons .button:hover,.contact-buttons .text-download:hover {transform:scale(1.045);box-shadow:0 7px 18px #b52a3c19;}
 .hero .portrait-frame:hover .portrait {scale:1.035;}
}
.hero .portrait {transition:scale .45s ease;transform-origin:center 60%;}
@keyframes intro-centre-reveal {from {opacity:.15;scale:.97;filter:blur(3px);} to {opacity:1;scale:1;filter:blur(0);}}
@keyframes soft-arrival {from {opacity:0;} to {opacity:1;}}
@keyframes gentle-drift {0%,100% {translate:0 0;} 35% {translate:3px -6px;} 70% {translate:-3px -2px;}}
@keyframes portrait-drift {0%,100% {translate:0 0;} 50% {translate:0 -4px;}}
@media(prefers-reduced-motion:no-preference) {
 .hero-copy {animation:intro-centre-reveal .9s ease-out both;transform-origin:center;}
 .hero .portrait-frame {animation:soft-arrival 1s .3s both,portrait-drift 7s 1.3s ease-in-out infinite;}
 .hero-paper {animation:soft-arrival 1.1s .55s backwards;}
 .hero .hand-note,.hero-cherries {animation:soft-arrival 1s .65s backwards,gentle-drift 6.5s 1.65s ease-in-out infinite;}
 .hero-cherries {animation-duration:1s,7.8s;}
 .hero .title-spark,.hero-pencil-decoration,.hero-star-decoration {animation:gentle-drift 7s 1.6s ease-in-out infinite;}
 .hero-star-decoration {animation-duration:8.5s;animation-direction:reverse;}
 .mbti-visual .trait {animation:gentle-drift 6s ease-in-out infinite;}
 .mbti-visual .trait:nth-of-type(2n) {animation-duration:7.4s;animation-delay:-2s;animation-direction:reverse;}
 .mbti-visual .trait:nth-of-type(3n) {animation-duration:8.2s;animation-delay:-4s;}
}
@media(prefers-reduced-motion:reduce) {
 .header-resume,.hero-actions .button,.contact-buttons .button,.contact-buttons .text-download,.hero .portrait {transition:none;}
}

/* Square covers give all five projects a taller, consistent image area. */
.project-fan {--card-width:210px;height:370px;}
.project-fan .project-card {width:var(--card-width);left:calc(50% - var(--card-width)/2);height:calc(var(--card-width) + 82px);}
.project-fan .project-card>img {width:100%;height:auto;aspect-ratio:1;object-fit:cover;}
.project-card[data-project="teaching"] h3,.project-card[data-project="community"] h3 {display:block;white-space:nowrap;font-size:11px;letter-spacing:0;}
@media(min-width:851px) and (max-height:700px) {.project-fan {--card-width:194px;height:350px;}}
@media(max-width:600px) {.project-fan {--card-width:160px;height:330px;}.project-card[data-project="teaching"] h3,.project-card[data-project="community"] h3 {font-size:9px;margin-left:0;margin-right:0;}.project-fan .project-card {height:260px;}}

/* Compact desktop project spread: keep all navigation within one viewport. */
@media(min-width:851px) {
 .projects.section {min-height:calc(100dvh - 68px);padding-top:12px;padding-bottom:12px;}
 .projects .section-heading {margin-bottom:8px;}
 .projects .section-heading .eyebrow {margin-bottom:3px;}
 .projects .section-heading h2 {font-size:26px;}
 .projects .section-heading>p:last-child {margin-top:4px;font-size:13px;}
 .project-fan {--card-width:clamp(172px,calc((100dvh - 350px)*.65),210px);height:calc(var(--card-width)*1.25 + 105px);margin-top:0;}
 .project-fan .project-card {height:auto;padding-bottom:12px;}
 .project-fan .project-card .project-role {margin:6px 3px 0;font-size:10px;line-height:1.5;}
 .project-fan .project-card h3 {margin:3px 3px 0;font-size:10.5px;line-height:1.5;white-space:nowrap;display:block;letter-spacing:0;}
 .project-card .project-card-footer {position:static;margin:7px 3px 0;gap:3px;}
 .project-card .project-card-footer time,.project-card .project-detail-link {font-size:8px;line-height:1.5;}
 .project-clock {height:64px;margin-top:0;}
 .project-clock .time-arc {height:47px;}
 .clock-pointer {height:34px;}
 .project-switch.viewer-progress {margin-top:5px;gap:6px;}
}

/* Portrait phones are invited to rotate; landscape shows the original site. */
.orientation-notice[hidden] {display:none;}
.orientation-notice {position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:32px;background:#f3f8ff;background-image:linear-gradient(#dceaff70 1px,transparent 1px),linear-gradient(90deg,#dceaff70 1px,transparent 1px);background-size:32px 32px;text-align:center;color:#295b9e;}
.orientation-card {max-width:400px;}
.orientation-card .eyebrow {font-size:13px;letter-spacing:3px;}
.rotate-phone {width:120px;height:120px;margin:28px auto 18px;}
.orientation-card h2 {font-size:32px;margin:0 0 20px;}
.orientation-card>p:not(.eyebrow) {font-size:19px;line-height:1.9;color:#55677e;}
.orientation-card small {display:block;margin-top:32px;font-size:14px;line-height:1.8;color:#718198;}
.awaiting-landscape {overflow:hidden;}
@media(prefers-reduced-motion:no-preference) {.rotate-phone {animation:rotate-invitation 3s ease-in-out infinite;} @keyframes rotate-invitation {0%,20%,100%{transform:rotate(0)}50%,75%{transform:rotate(90deg)}}}

/* Center the return link independently of copyright and the floating player. */
.site-footer {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;padding-top:20px;padding-bottom:24px;min-height:92px;}
.site-footer>p {grid-column:1;margin:0;}
.site-footer .back-to-top {grid-column:2;display:inline-flex;align-items:center;justify-content:center;gap:10px;color:var(--red);font-size:14px;white-space:nowrap;min-height:44px;text-decoration:none;}
.back-to-top-icon {display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--red);color:#fff;transition:transform .2s ease;}
.back-to-top-icon svg {width:25px;height:25px;}
@media(hover:hover) {.back-to-top:hover .back-to-top-icon {transform:translateY(-3px);}.back-to-top:hover>span:last-child {text-decoration:underline;text-underline-offset:4px;}}
@media(max-width:600px) {.site-footer {grid-template-columns:1fr;padding-bottom:85px;gap:16px;text-align:center;}.site-footer>p,.site-footer .back-to-top {grid-column:1;}.site-footer .back-to-top {grid-row:1;justify-self:center;}}
@media(prefers-reduced-motion:reduce) {.back-to-top-icon {transition:none;}}
