/* Product-story pacing, adapted to the portfolio's own gold/cyan identity. */
:root{--story-ease:cubic-bezier(.22,1,.36,1);--side:clamp(1.25rem,6vw,7rem)}
body{font-family:Arial,Helvetica,sans-serif;letter-spacing:-.012em}
.site-header{padding-block:.7rem;backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%);background:color-mix(in srgb,var(--bg) 82%,transparent)}
.site-header .wordmark{font-size:.875rem;letter-spacing:.14em}
.site-header nav{font-size:.8rem;gap:clamp(.6rem,1.3vw,1.3rem)}
.theme-toggle,.menu-button,.nav-cv{border-radius:999px}
.button{border-radius:999px;padding:.85rem 1.7rem;min-height:50px;font-weight:500}
.hero{min-height:min(900px,calc(100svh - 63px));display:flex;flex-direction:column;padding-top:1.6rem}
.hero-layout{flex:1;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);padding-block:clamp(3rem,6vh,6rem) 1rem;gap:1rem}
.hero .intro{font-size:clamp(1.6rem,3.1vw,3.3rem);letter-spacing:-.045em}
.hero h1{font-size:clamp(3.5rem,8.3vw,8.7rem);line-height:1.12}
.hero-description{max-width:34rem;font-size:clamp(1rem,1.4vw,1.25rem);line-height:1.65;margin-top:1.8rem}
.hero-actions{margin-top:1.9rem}
.hero-chapter{margin-top:2.1rem}
.hero .portrait-blend{width:112%;max-width:620px;transform:translate3d(0,var(--portrait-y,0px),0) scale(var(--portrait-scale,1))}
.hero-atmosphere{transform:translate3d(0,var(--field-y,0px),0);opacity:var(--field-opacity,1)}
.hero-field{opacity:.4;animation:field-drift 24s ease-in-out infinite alternate}
.hero-light{animation:light-breathe 12s ease-in-out infinite}
.hero-bottom{font-size:.8rem;padding-block:1.2rem 1.4rem;border-color:color-mix(in srgb,var(--line) 70%,transparent)}
.hero-bottom a{display:flex;align-items:center;gap:.8rem}
.hero-bottom a:after{content:'';width:7px;height:7px;border:solid var(--accent);border-width:0 1px 1px 0;transform:rotate(45deg);margin-top:-4px}
.credential-strip{background:var(--bg);border:0;padding-block:3.8rem;gap:2.5rem}
.credential-strip div{border-left:1px solid var(--line);padding-left:1.8rem}
.credential-strip strong{font-size:3.7rem;letter-spacing:-.06em}
.credential-strip .text-stat{font-size:2.8rem;line-height:1.6}
.credential-strip span{max-width:12rem;line-height:1.5}
main>section:not(.hero){padding-block:clamp(5rem,9vw,9rem)}
.section-heading,.projects .section-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.48fr);column-gap:4rem;row-gap:1.6rem;margin-bottom:4rem}
.section-heading .section-number{grid-column:1/-1;padding:0;font-size:.75rem;letter-spacing:.15em}
.section-heading h2{font-size:clamp(2.6rem,4.8vw,5rem);line-height:1.07;letter-spacing:-.055em;text-wrap:balance}
.section-heading h2 em{letter-spacing:-.045em}
.section-heading>p{grid-column:auto;align-self:end;font-size:1.05rem;line-height:1.65;max-width:31rem;padding:0}
.interests{background:var(--surface)}
.interests .section-heading h2{grid-column:1/-1;max-width:1050px}
.research-journey{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:clamp(3rem,6vw,7rem);position:relative;align-items:start}
.journey-visual{position:sticky;top:calc(65px + 6vh);height:min(690px,78svh);min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;isolation:isolate;pointer-events:none}
.journey-glow{position:absolute;inset:14%;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--cyan) 12%,transparent),transparent 68%);filter:blur(20px);transform:scale(var(--orb-scale,1));z-index:-1}
.journey-orb{display:block;width:100%;max-width:600px;height:auto;overflow:visible;transform:scale(var(--orb-scale,.96)) rotate(var(--orb-turn,0deg));transform-origin:center}
.journey-orb .orb-grid{stroke:var(--cyan);stroke-width:.7;opacity:.28}
.journey-orb .orb-shell{stroke:var(--cyan);stroke-width:1;opacity:.5}
.orb-waves{opacity:var(--signal-opacity,1);color:var(--accent)}
.orb-network{opacity:var(--network-opacity,.18);color:var(--cyan)}
.orb-network circle{fill:currentColor;stroke:none}
.orb-network path{stroke-width:1;opacity:.55}
.orb-orbit{stroke:var(--accent);stroke-width:1;opacity:.7;transform-origin:300px 300px;animation:orb-turn 60s linear infinite;animation-play-state:paused}
.journey-visual.in-view .orb-orbit{animation-play-state:running}
.orb-orbit.second{animation-direction:reverse;animation-duration:75s;opacity:.35;stroke:var(--cyan)}
.journey-caption{margin-top:1rem;text-align:center;display:flex;align-items:center;gap:1rem;font-size:.75rem;color:var(--muted);letter-spacing:.1em;text-transform:uppercase}
.journey-caption i{width:40px;height:1px;background:linear-gradient(90deg,var(--accent),var(--cyan));display:block}
.research-journey .interests-grid{display:block}
.research-journey .interest-card{min-height:65svh;display:flex;flex-direction:column;justify-content:center;padding:4rem 0;border:0;border-radius:0;background:none}
.research-journey .interest-card+article{border-top:1px solid var(--line)}
.interest-card h3{font-size:clamp(2.2rem,3.8vw,3.5rem);line-height:1.12;letter-spacing:-.04em;margin:1.4rem 0}
.interest-card p{font-size:1.12rem;line-height:1.75;color:var(--muted)}
.interest-card .small-label{color:var(--accent)}
.journey-meter{width:100%;height:2px;margin-top:2rem;max-width:140px;background:var(--line);overflow:hidden}
.journey-meter span{display:block;width:100%;height:100%;transform-origin:left;transform:scaleX(var(--journey-progress,.05));background:linear-gradient(90deg,var(--accent),var(--cyan))}
.career-interests{margin-top:3rem;padding:3rem;border:0;border-radius:24px;background:var(--bg)}
.career-interests h3{font-size:clamp(1.8rem,3vw,2.6rem);letter-spacing:-.035em}
.career-interests p{color:var(--muted);margin-bottom:1.25rem}
.research{background:var(--bg)}
.subheading{border:0;padding-bottom:1.1rem}.subheading h3{font-size:1.6rem}
.publication-year{grid-template-columns:6.5rem minmax(0,1fr);gap:2rem;padding:2.6rem;border:0;border-radius:24px;background:var(--surface);margin-top:1rem}
.year-label{font-size:3.1rem}.paper h5{font-size:clamp(1.4rem,2.2vw,2.05rem);line-height:1.32;max-width:65rem}
.paper-footer{margin-top:2rem}.paper-footer a{white-space:nowrap}
.ip-heading{margin-top:6rem}.ip-heading h3{font-size:2rem;letter-spacing:-.035em}
.filters{border:0;border-radius:999px;background:var(--surface);padding:.35rem}
.filters button{border-radius:999px;font-size:.8rem;padding:.65rem 1rem}
.ip-grid{gap:1.3rem}.ip-card{background:var(--surface);border-color:transparent;border-radius:24px;padding:2.2rem;box-shadow:none}
.ip-card:hover{box-shadow:none;border-color:color-mix(in srgb,var(--accent) 35%,transparent)}
.ip-card h4{font-size:1.35rem}.status,.tag,.tags span{border-radius:999px}.status{font-size:.75rem}
.experience{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(3rem,7vw,7rem)}
.experience .section-heading{position:sticky;top:130px;display:block;align-self:start;margin:0}
.experience .section-heading h2{margin-top:1.5rem}.experience .section-heading>p{margin-top:1.5rem;max-width:25rem}
.experience-timeline:before,.experience-timeline:after{left:5px}
.experience-row{display:block;padding-left:2.4rem;padding-bottom:4rem}
.experience-date{padding:0 0 1.4rem}.experience-date>span:not(.timeline-node){max-width:none;margin-top:.5rem}
.timeline-node{left:calc(-2.4rem - 1px);right:auto;top:.4rem}
.experience-row>div:last-child{margin:0;padding:2rem;border:0;border-radius:24px;background:var(--surface);box-shadow:none}
.experience-row h3{font-size:1.8rem}.experience-footer{flex-direction:column;align-items:flex-start;gap:1.5rem}
.projects{border:0;background:var(--surface)}
.project-grid{display:flex;flex-direction:column;gap:3rem;perspective:none}
.project-card{display:grid;grid-template-columns:1.1fr 1fr;min-height:550px;border:0;border-radius:28px;box-shadow:none;transform-style:flat;background:var(--bg)}
.project-card:nth-child(even){grid-template-columns:1fr 1.1fr}
.project-card:nth-child(even) .project-visual{order:2}
.project-visual{height:100%;aspect-ratio:auto;min-height:400px;border:0;display:flex;align-items:center;justify-content:center;padding:3.5rem 1rem;isolation:isolate}
.project-visual:before{content:'';position:absolute;width:90%;aspect-ratio:1;border:1px solid currentColor;opacity:.09;border-radius:50%;box-shadow:0 0 110px color-mix(in srgb,currentColor 15%,transparent);transform:scale(var(--project-scale,1));z-index:-1}
.project-visual svg{height:auto;transform:translate3d(0,var(--project-y,0px),0) scale(var(--project-scale,1));transform-origin:center}
.visual-label{left:2rem;top:2rem;font-size:.65rem}
.project-body{padding:clamp(2rem,3.7vw,4rem);align-self:center}
.project-main{padding-block:1.4rem 1.6rem}.project-main h3{font-size:clamp(2.4rem,3.5vw,3.7rem);line-height:1.06}
.project-main>p{font-size:.95rem;line-height:1.6}.project-description p{font-size:.95rem;line-height:1.75}
.signal-flow,.node-pulse,.in-view .timeline-node{animation-iteration-count:infinite}
.toolkit{background:var(--bg)}
.tool-group{display:grid;grid-template-columns:180px minmax(0,1fr);gap:2rem;align-items:start}
.tool-group>h3{font-size:.75rem;line-height:1.5;padding-top:1.5rem;letter-spacing:.08em}
.tool-group+.tool-group{margin-top:1.3rem}
.tool-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}
.tool-card{border:1px solid transparent;border-radius:22px;padding:1.6rem;background:var(--surface);min-height:210px}
.tool-logo{border:0;border-radius:14px;height:76px;max-width:150px;margin-bottom:1.6rem}
.tool-card:after{display:none}.tool-card p{font-size:.8rem}.tool-light{opacity:.6}
.in-view .tool-light{animation:tile-light 12s ease-in-out infinite;animation-delay:var(--stagger,0ms)}
.tool-card:hover{box-shadow:none;border-color:color-mix(in srgb,var(--accent) 35%,transparent)}
.about{background:var(--surface)}.recognition{border-radius:24px}.education h3{font-size:1.7rem}.education h4{font-size:1.3rem}.about-statement{font-size:clamp(2rem,3.5vw,3.6rem)}
.contact h2{font-size:clamp(3.5rem,8vw,8rem);letter-spacing:-.055em}
.contact-form{border:0;border-radius:26px;padding:2.8rem;box-shadow:none}.contact-form:before{display:none}
.contact-form input,.contact-form textarea,.contact-form select{border-radius:10px}
.contact-form h3{font-size:2.5rem;margin-bottom:2rem}
.signature-signoff{border:0!important;background:var(--bg)!important;padding-block:3rem 5rem!important}
footer{border-color:var(--line);font-size:.8rem}
@keyframes orb-turn{to{transform:rotate(360deg)}}
@media(min-width:1500px){.hero{min-height:880px}}
@media(max-width:1100px){.site-header{gap:.8rem}.site-header nav{gap:.65rem;font-size:.75rem}.experience{gap:2rem}.tool-group{grid-template-columns:140px 1fr;gap:1.5rem}.project-body{padding:2rem}.publication-year{padding:2rem}}
@media(max-width:900px){.section-heading,.projects .section-heading{grid-template-columns:1fr;gap:1.25rem}.section-heading>p{max-width:38rem}.section-heading h2{font-size:clamp(2.5rem,6vw,4rem)}.research-journey{gap:2rem;grid-template-columns:1fr 1fr}.journey-visual{min-height:350px;height:65svh}.interest-card h3{font-size:2.5rem}.research-journey .interest-card{min-height:60svh}.interest-card p{font-size:1rem}.experience{display:block}.experience .section-heading{position:static;margin-bottom:3rem}.experience .section-heading>p{max-width:34rem}.tool-group{grid-template-columns:1fr;gap:0}.tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.tool-card{padding:1.15rem}.tool-group:first-of-type .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-card,.project-card:nth-child(even){grid-template-columns:1fr;min-height:0}.project-card:nth-child(even) .project-visual{order:0}.project-visual{min-height:0;aspect-ratio:1.8;padding:2rem}.project-visual svg{max-width:700px}.project-body{padding:2.3rem}.project-main{max-width:none}.project-main>p{max-width:none}}
@media(max-width:750px){.site-header{padding-block:.65rem}.site-header .wordmark{font-size:.82rem}.site-header nav{font-size:1rem}.hero{min-height:0}.hero-layout{grid-template-columns:1fr;padding-top:2.7rem;gap:1.5rem}.hero h1{font-size:clamp(3.2rem,13vw,5.5rem)}.hero .intro{font-size:clamp(1.55rem,6vw,2.4rem)}.hero-description{font-size:1rem;margin-top:1.5rem}.hero .portrait-blend{width:min(112%,470px);max-width:none;margin-top:1rem}.hero-bottom{margin-top:-1rem;position:relative}.hero-top{align-items:flex-end}.hero-chapter{margin-top:1.8rem}.hero .hero-field{opacity:.45}.credential-strip{padding-block:2.5rem;gap:2rem 1rem}.credential-strip div{padding-left:1rem}.credential-strip strong{font-size:3rem}.credential-strip .text-stat{font-size:2.2rem}.credential-strip span{font-size:.75rem}.section-heading,.projects .section-heading{margin-bottom:3rem;display:block}.section-heading h2{margin-top:1.3rem;font-size:clamp(2.5rem,7.8vw,3.8rem)}.section-heading>p{margin-top:1.5rem;font-size:1rem}.research-journey{display:flex;flex-direction:column;gap:0}.journey-visual{position:relative;top:auto;height:auto;min-height:0;width:100%;max-width:450px;align-self:center;margin:0 auto 2rem}.journey-orb{width:92%}.journey-caption{font-size:.65rem;gap:.6rem}.journey-meter{display:none}.research-journey .interest-card{min-height:0;padding:2rem 0}.interest-card h3{font-size:clamp(2rem,7vw,2.8rem)}.career-interests{padding:1.7rem;margin-top:1.5rem;border-radius:20px}.publication-year{grid-template-columns:1fr;padding:1.7rem;gap:1.1rem}.year-label{font-size:2.7rem}.paper h5{font-size:1.4rem}.paper-footer{margin-top:1.5rem;flex-wrap:wrap}.ip-heading{margin-top:4rem}.ip-heading h3{font-size:1.8rem}.ip-card{padding:1.7rem;border-radius:20px}.filters{border-radius:20px}.filters button{padding:.6rem .8rem}.experience-row{padding-left:1.7rem;padding-bottom:3rem}.timeline-node{left:calc(-1.7rem - 1px)}.experience-row>div:last-child{padding:1.6rem}.experience-row h3{font-size:1.6rem}.project-grid{gap:1.5rem}.project-card{border-radius:22px}.project-body{padding:1.7rem}.project-main h3{font-size:2.7rem}.visual-label{top:1.2rem;left:1.5rem;font-size:.6rem}.project-visual{padding:2.4rem .25rem 1rem;aspect-ratio:1.65}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.tool-group+.tool-group{margin-top:1.6rem}.tool-card{min-height:190px;padding:1.2rem;border-radius:18px}.tool-logo{height:66px;padding:10px;border-radius:10px;margin-bottom:1.3rem}.tool-card h4{font-size:1rem}.tool-card p{font-size:.75rem}.contact h2{font-size:clamp(3rem,11vw,5rem)}.contact-form{padding:1.6rem;border-radius:22px}.contact-form h3{font-size:2.15rem}.signature-signoff{padding-block:1rem 3rem!important}main>section:not(.hero){padding-block:4.5rem}}
@media(prefers-reduced-motion:reduce){.hero .portrait-blend,.hero-atmosphere,.journey-orb,.journey-glow,.project-visual svg,.project-visual:before{transform:none!important}.orb-waves{opacity:.6}.orb-network{opacity:.7}.journey-visual{position:relative;top:auto}.research-journey .interest-card{min-height:0;padding-block:3rem}}
@media print{.journey-visual{display:none}.research-journey,.experience{display:block}.research-journey .interest-card{min-height:0;padding:1rem}.project-card{break-inside:avoid}.hero .portrait-blend,.project-visual svg{transform:none}.section-heading h2{font-size:2rem}}

/* Contact details: a native country picker with a compact selected value. */
#contact-form{scroll-margin-top:5rem}
.contact-form input::placeholder,.contact-form textarea::placeholder{color:var(--muted);font-size:inherit;opacity:1}
.contact-form #subject:invalid{color:var(--muted)}.contact-form #subject option{color:var(--text);background:var(--field)}
.mobile-field{min-inline-size:0;border:0;margin:0 0 1.3rem;padding:0}
.mobile-field legend,.message-field>label{color:var(--muted);font-size:.875rem;line-height:1.5;padding:0}
.optional-label{font-size:.8rem}
.mobile-pair{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.6rem;margin-top:.55rem}
.mobile-pair input{min-width:0;margin:0}
.dial-picker{position:relative;min-width:6.4rem;border:1px solid var(--line);border-radius:10px;background:var(--field)}
.dial-picker:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}
.dial-display{display:flex;align-items:center;justify-content:center;gap:.45rem;height:100%;padding:0 .65rem;color:var(--text);font-size:1rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.dial-chevron{width:.45rem;height:.45rem;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-.12rem) rotate(45deg)}
.contact-form #phone-country{position:absolute;inset:0;width:100%;height:100%;min-height:0;min-width:0;margin:0;padding:0;opacity:0;cursor:pointer}
#mobile-help,.message-meta{font-size:.75rem;line-height:1.45;color:var(--muted)}
#mobile-help{margin:.45rem 0 0}#mobile-help[hidden]{display:none}.mobile-field:has(input[aria-invalid=true]) #mobile-help{color:var(--text)}
.message-field{margin-bottom:1.3rem}.message-field>label{margin:0}
.message-meta{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:.25rem .7rem;margin-top:.45rem}
#message-count{margin-inline-start:auto;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:370px){.mobile-pair{gap:.4rem}.dial-picker{min-width:5.6rem}.dial-display{gap:.3rem;padding:0 .45rem}}
@media(max-width:350px){.mobile-pair{gap:.3rem}.dial-picker{min-width:5rem}.mobile-pair input{padding-inline:.55rem}}
@media(forced-colors:active){.dial-picker:focus-within{outline:2px solid Highlight}}
