/* Version C: Plum & Sun. Warm, human, editorial: serif headlines, arch-masked photos, a career timeline. */
:root{--bg:#F0EEFB;--ink:#2B1D4F;--soft:#5B4F7C;--violet:#6A4DF4;--lav:#DDD6FF;--sun:#FFBE3D;--white:#fff;--r:28px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:400 1.0625rem/1.65 "Figtree",system-ui,sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:var(--violet)}
:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.skip{position:absolute;left:-999px;top:8px;background:var(--sun);padding:.5rem 1rem;border-radius:99px;z-index:99}.skip:focus{left:8px}
.prose p{margin:0 0 1em;max-width:64ch}.prose p:last-child{margin:0}

/* header: floating pill */
.top{position:sticky;top:.8rem;z-index:20;margin:.8rem auto 0;width:min(1180px,calc(100% - 1.6rem));display:flex;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;padding:.5rem .6rem .5rem 1rem;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-radius:99px;box-shadow:0 6px 24px rgba(43,29,79,.12)}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink);font-family:"Young Serif",serif;font-size:1.1rem;white-space:nowrap}
.brand-av{width:36px;height:36px;border-radius:50%;object-fit:cover}
.top nav{display:flex;gap:.2rem;overflow-x:auto;scrollbar-width:none}
.top nav a{white-space:nowrap;text-decoration:none;color:var(--soft);font-weight:500;font-size:.92rem;padding:.45rem .9rem;border-radius:99px}
.top nav a:hover{background:var(--lav);color:var(--ink)}
.top nav a[aria-current]{background:var(--ink);color:#fff}

/* hero */
.hero{max-width:1180px;margin:0 auto;padding:clamp(2.5rem,7vw,5.5rem) clamp(1rem,4vw,2rem) 1rem;display:grid;gap:2rem}
.hero.has-pic{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:center}
.hero h1{margin:0;font:400 clamp(2.8rem,7.5vw,6.2rem)/1 "Young Serif",serif;letter-spacing:-.02em;color:var(--ink);overflow-wrap:break-word}
.hero-sub{margin:1.2rem 0 0;font-size:clamp(1.2rem,2.2vw,1.65rem);font-weight:500;color:var(--violet)}
.hero-intro{margin-top:1.5rem;font-size:1.18rem;color:var(--soft)}
.hero-arch{margin:0;position:relative;justify-self:end;width:min(100%,420px);aspect-ratio:4/5;border-radius:999px 999px var(--r) var(--r);overflow:hidden;background:var(--sun);box-shadow:16px 16px 0 var(--lav)}
.hero-arch img{width:100%;height:100%;object-fit:cover}
.hero-arch.is-portrait{width:112px;aspect-ratio:1;border-radius:50%;box-shadow:0 0 0 6px var(--sun);align-self:center;justify-self:end;margin-right:6px}

/* sections as soft sheets */
.content{max-width:1180px;margin:0 auto;padding:1rem clamp(1rem,4vw,2rem) 5rem;display:grid;gap:1.5rem}
.s{margin:0}
.s-text,.s-list,.s-tags,.s-cards,.gallery,.project,.study{background:var(--white);border-radius:var(--r);padding:clamp(1.5rem,4vw,3rem)}
.s h2{margin:0 0 1rem;font:400 clamp(1.7rem,3.6vw,2.5rem)/1.1 "Young Serif",serif;letter-spacing:-.01em}
.s-divider{padding:clamp(2rem,5vw,3.5rem) .5rem .2rem}
.s-divider h2{font-size:clamp(2.2rem,5vw,3.6rem);margin:0}
.btn{display:inline-block;margin:1.3rem .6rem 0 0;padding:.7rem 1.3rem;border-radius:99px;background:var(--ink);color:#fff;text-decoration:none;font-weight:700}
.btn:hover{background:var(--violet)}
.btn:nth-child(2){background:var(--sun);color:var(--ink)}
.s-text.has-img{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.7fr);gap:2.5rem;align-items:center}
.s-fig{margin:0}
.s-text .s-fig{aspect-ratio:4/5;border-radius:999px 999px var(--r) var(--r);overflow:hidden;box-shadow:12px 12px 0 var(--lav)}
.s-text .s-fig img{width:100%;height:100%;object-fit:cover}

.list{list-style:none;margin:0;padding:0}
.s-key-skills .list{columns:2 320px;column-gap:3rem}
.s-key-skills .list li{break-inside:avoid;position:relative;padding:0 0 1rem 2rem}
.s-key-skills .list li::before{content:"";position:absolute;left:0;top:.35em;width:1.1rem;height:1.1rem;border-radius:50%;background:var(--sun)}
.tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.tags li{padding:.35rem 1rem;background:var(--lav);border-radius:99px;font-weight:500}
.s-education{display:grid;grid-template-columns:1fr minmax(0,.6fr);gap:1rem 2.5rem;align-items:center;background:var(--white);border-radius:var(--r);padding:clamp(1.5rem,4vw,3rem)}
.s-education h2{grid-column:1/-1;margin:0}
.s-education .list li{font-size:1.2rem;padding:.4rem 0}
.s-education .s-fig{border-radius:var(--r);overflow:hidden}
.s-education .s-fig img{width:100%;aspect-ratio:3/2;object-fit:cover}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.card-link{display:block;text-decoration:none;color:var(--ink);background:var(--bg);border-radius:var(--r);overflow:hidden;height:100%;transition:transform .25s}
.card-link:hover{transform:translateY(-4px)}
.card figure{margin:0;aspect-ratio:4/3;overflow:hidden;background:#fff}
.card figure img{width:100%;height:100%;object-fit:cover}
.card-text{padding:1.2rem 1.5rem 1.6rem}
.card h3{margin:0 0 .6rem;font:400 1.5rem/1.15 "Young Serif",serif}
.card-cta{display:inline-block;padding:.35rem 1rem;border-radius:99px;background:var(--sun);color:var(--ink);font-weight:700;font-size:.92rem}

/* timeline */
.job{position:relative;margin-left:clamp(1.2rem,3vw,2.2rem);padding:0 0 0 clamp(1.4rem,3.5vw,2.6rem);border-left:3px solid var(--lav);display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.job::before{content:"";position:absolute;left:-12px;top:.35rem;width:21px;height:21px;border-radius:50%;background:var(--sun);border:4px solid var(--bg)}
.job:last-of-type{border-left-color:transparent}
.job>*{background:var(--white)}
.job-meta{padding:1.6rem 1.8rem 0;border-radius:var(--r) var(--r) 0 0;display:grid;grid-template-columns:1fr minmax(0,230px);grid-template-areas:"p fig" "o fig" "r fig";column-gap:2rem;align-items:start}
.job-period{grid-area:p;margin:0 0 .3rem;font-weight:700;color:var(--violet)}
.job-org{grid-area:o;margin:0;font:400 clamp(1.6rem,3vw,2.2rem)/1.1 "Young Serif",serif}
.job-role{grid-area:r;margin:.3rem 0 0;color:var(--soft);font-weight:500}
.job-fig{grid-area:fig;grid-row:1/4;margin:0;border-radius:18px;overflow:hidden}
.job-fig img{width:100%;aspect-ratio:4/3;object-fit:cover}
.job-fig.is-logo img{aspect-ratio:auto;object-fit:contain;padding:.5rem}
.job-body{padding:1.2rem 1.8rem 1.8rem;border-radius:0 0 var(--r) var(--r)}
.job-summary{margin:0 0 1.2rem;font-size:1.12rem;max-width:64ch}
.job-group{margin-top:1.4rem}
.job-group h4{margin:0 0 .5rem;font-size:1rem;color:var(--violet)}
.job-group ul{list-style:none;margin:0;padding:0;max-width:72ch}
.job-group li{position:relative;padding:.25rem 0 .25rem 1.4rem}
.job-group li::before{content:"";position:absolute;left:0;top:.85em;width:.55rem;height:.55rem;border-radius:50%;background:var(--sun)}
.job+.job{margin-top:1.2rem}

/* projects & studies */
.project{display:grid;grid-template-columns:minmax(0,1fr);gap:1.2rem}
.project.has-img{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:1.2rem 2.5rem}
.project-head{grid-column:1/-1}.project h2{margin:0}
.project.has-img .project-body{grid-column:1;grid-row:2}
.project.has-img .project-fig{grid-column:2;grid-row:2;align-self:start}
.project-fig{margin:0}.project-fig img{width:100%;border-radius:18px;background:var(--bg)}
.role{margin-top:1.5rem;padding:1.2rem 1.5rem;background:var(--bg);border-radius:20px}
.role h3{margin:0 0 .5rem;font:400 1.15rem "Young Serif",serif}
.role ul{margin:0;padding-left:1.1rem}.role li{padding:.15rem 0}
.study{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr);gap:1.2rem 2.5rem}
.study-head{grid-column:1/-1}.study h2{margin:0}
.study h3{margin:1.4rem 0 .4rem;font:400 1.15rem "Young Serif",serif;color:var(--violet)}.study-body h3:first-child{margin-top:0}
.study-facts{align-self:start;background:var(--bg);border-radius:20px;padding:1.3rem 1.5rem}
.study-facts h3{margin:0 0 .8rem;color:var(--ink)}
.study-facts dl{margin:0;display:grid;gap:.8rem}.study-facts dt{font-weight:700;font-size:.9rem;color:var(--violet)}.study-facts dd{margin:0}
.study-imgs{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}
.study-imgs figure,.gallery figure{margin:0}
.study-imgs img,.gallery img{width:100%;border-radius:16px;background:var(--bg)}
.zoom{display:block;cursor:zoom-in}
.gallery-head{margin-bottom:1.2rem}.gallery-head h2{margin:0 0 .5rem}.gallery .note{margin:0;color:var(--soft)}
.gallery .grid{columns:3 260px;column-gap:1rem}
.gallery figure{break-inside:avoid;margin-bottom:1rem}
.gallery figure:has(img[height="2151"]) img{max-height:640px;object-fit:cover;object-position:top}

.foot{background:var(--ink);color:#e9e4ff;padding:2.5rem clamp(1rem,4vw,3rem);border-radius:var(--r) var(--r) 0 0;display:flex;flex-wrap:wrap;gap:.4rem 2rem;align-items:baseline}
.foot p{margin:0}.foot-name{font:400 1.3rem "Young Serif",serif;color:#fff}.foot a{margin-left:auto;color:var(--sun);font-weight:700}
dialog#lightbox{border:0;border-radius:20px;padding:.6rem;max-width:94vw;max-height:94vh;background:#fff}
dialog#lightbox::backdrop{background:rgba(43,29,79,.82)}
dialog#lightbox img{max-width:90vw;max-height:84vh;width:auto;height:auto;margin:0 auto;border-radius:12px}
dialog#lightbox button{display:block;margin:0 0 .5rem auto;background:var(--ink);color:#fff;border:0;border-radius:99px;padding:.35rem 1rem;font:inherit;font-weight:700;cursor:pointer}

@media (max-width:860px){
  .top{border-radius:22px;flex-wrap:wrap}.top nav{width:100%}
  .hero.has-pic,.s-text.has-img,.s-education,.project.has-img,.study{grid-template-columns:1fr}
  .hero-arch{justify-self:start;width:min(100%,320px)}
  .project.has-img .project-body,.project.has-img .project-fig{grid-column:1;grid-row:auto}
  .job-meta{grid-template-columns:1fr;grid-template-areas:"p" "o" "r" "fig"}
  .job-fig{grid-row:auto;margin-top:1rem;max-width:300px}
  .s-text .s-fig{max-width:320px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}.card-link:hover{transform:none}}
