@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#0e0718;color:#f7f2ff;font-family:'DM Sans',sans-serif;overflow-x:hidden}#chem-bg{position:fixed;inset:0;width:100%;height:100%;z-index:-1;background:radial-gradient(circle at 70% 10%,#321452 0,transparent 35%),radial-gradient(circle at 10% 60%,#24103c 0,transparent 32%),#0e0718}header{height:78px;display:flex;align-items:center;justify-content:space-between;padding:0 max(6vw,24px);position:sticky;top:0;z-index:10;background:#0e0718cc;backdrop-filter:blur(14px);border-bottom:1px solid #ffffff12}.brand{font:600 27px 'Playfair Display';color:#d8b4fe;text-decoration:none}nav{display:flex;gap:28px}nav a{color:#d9cce7;text-decoration:none;font-size:14px}main{width:min(1120px,88vw);margin:auto}.hero{min-height:78vh;display:flex;flex-direction:column;justify-content:center;max-width:820px}.eyebrow,.section-no{color:#c084fc;letter-spacing:.18em;font-size:12px;font-weight:700}.hero h1{font:600 clamp(70px,12vw,150px)/.78 'Playfair Display';margin:22px 0 30px;letter-spacing:-.055em}.hero h1 span{color:#c9a4f4;font-style:italic}.hero>p{font-size:clamp(18px,2.2vw,25px);line-height:1.55;color:#cfc3db;max-width:720px}.actions{display:flex;gap:14px;margin-top:24px;flex-wrap:wrap}.btn{display:inline-block;padding:14px 20px;border:1px solid #a977d5;border-radius:999px;color:#fff;text-decoration:none;font-weight:600;transition:.25s}.btn:hover{transform:translateY(-2px);background:#ffffff10}.btn.primary{background:#9b5de5;border-color:#9b5de5}.formula{margin-top:45px;color:#846e99;font-family:serif;letter-spacing:.08em}.card{background:linear-gradient(145deg,#21132fdd,#160c22dd);border:1px solid #ffffff17;border-radius:26px;padding:34px;box-shadow:0 20px 80px #0005}.intro{display:grid;grid-template-columns:1fr 2fr;gap:60px;margin:40px 0 130px}.intro h2,.section-head h2,.contact h2{font:600 clamp(35px,5vw,58px) 'Playfair Display';margin:10px 0}.intro p,.card p,.timeline p{color:#cbbfd6;line-height:1.7}section{margin:100px 0}.section-head{margin-bottom:36px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid .card{min-height:250px}.icon{font-size:38px;margin-bottom:34px}.card small,time{color:#b993db}.card h3,.timeline h3{font-size:22px;margin:9px 0}.timeline{border-left:1px solid #865bb0;margin-left:10px}.timeline article{position:relative;padding:5px 0 48px 40px;max-width:820px}.timeline article:before{content:'';position:absolute;left:-7px;top:10px;width:13px;height:13px;border-radius:50%;background:#c084fc;box-shadow:0 0 20px #c084fc}.timeline b{color:#d9c3ee}.chips{display:flex;gap:12px;flex-wrap:wrap}.chips span{padding:12px 17px;border-radius:999px;background:#ffffff0d;border:1px solid #ffffff1c;color:#dfd3ea}.contact{text-align:center;margin-bottom:80px}.contact p{font-size:17px;margin-bottom:28px}.contact a:not(.btn){color:#d8b4fe}footer{text-align:center;color:#786788;padding:30px;border-top:1px solid #ffffff10}@media(max-width:700px){nav{display:none}.intro,.grid{grid-template-columns:1fr}.intro{gap:10px}.hero{min-height:82vh}.card{padding:25px}main{width:min(92vw,1120px)}}

.section-lead{color:#a995b9;max-width:650px;line-height:1.65}.focus-tag{display:inline-flex;align-items:center;margin:2px 3px;padding:3px 9px;border-radius:999px;font-weight:700;font-size:.88em;border:1px solid #d8b4fe44;background:#c084fc16;color:#ead7ff;box-shadow:inset 0 0 18px #c084fc0a}.focus-tag.system{background:#a855f72b;border-color:#d8b4fe77;color:#f1ddff}.focus-tag.method{background:#ffffff0b}.focus-tag.pharm{background:#7c3aed22}.focus-tag.alert{background:#e9d5ff18}.role-focus{display:inline-flex!important;gap:8px;align-items:center;margin:4px 0 7px;padding:7px 12px;border-radius:12px;background:#c084fc10;border:1px solid #c084fc22}.role-focus span{color:#d8b4fe}.focus-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}.focus-badge{display:flex;align-items:center;gap:12px;padding:12px 15px;border-radius:16px;background:linear-gradient(135deg,#c084fc18,#ffffff08);border:1px solid #d8b4fe35;min-width:245px;transition:.25s}.focus-badge:hover{transform:translateY(-3px);border-color:#d8b4fe77}.focus-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#c084fc1f;color:#e9d5ff;font-size:22px}.focus-badge strong{display:block;color:#f2e8ff;letter-spacing:.06em}.focus-badge small{display:block;margin-top:2px;color:#9884aa;font-size:10px}.focus-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.focus-card{position:relative;overflow:hidden;min-height:235px;padding:28px;border-radius:24px;background:linear-gradient(145deg,#251535dd,#160c22dd);border:1px solid #ffffff18;transition:.3s}.focus-card:after{content:'';position:absolute;width:120px;height:120px;border-radius:50%;right:-45px;top:-45px;background:#a855f71a;filter:blur(4px)}.focus-card:hover{transform:translateY(-6px);border-color:#c084fc66;box-shadow:0 24px 70px #0005}.focus-big-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:#c084fc18;border:1px solid #d8b4fe33;color:#e9d5ff;font:600 27px 'Playfair Display';margin-bottom:30px}.focus-card h3{font:600 25px 'Playfair Display';margin:0 0 10px}.focus-card p{color:#a998b8;line-height:1.55;margin:0}@media(max-width:900px){.focus-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.focus-grid{grid-template-columns:1fr}.focus-badge{min-width:100%}}

/* Keep anchor targets visible below the sticky navigation bar. */
html { scroll-padding-top: 105px; }
section[id], main[id] { scroll-margin-top: 105px; }

/* V5 — pharmaceutical chemistry hero */
.hero{position:relative;isolation:isolate}.hero>*:not(.hero-flask){position:relative;z-index:2}.hero-flask{position:absolute;z-index:0;right:-12vw;top:6%;width:min(47vw,520px);color:#c084fc;opacity:.115;transform:rotate(45deg);filter:drop-shadow(0 0 42px #a855f733);pointer-events:none}.hero-flask svg{display:block;width:100%;height:auto}.pharm-formula{display:flex;flex-wrap:wrap;gap:10px 24px;max-width:760px;font-family:Georgia,serif;letter-spacing:.035em}.pharm-formula span{white-space:nowrap}.pharm-formula sub{font-size:.7em}@media(max-width:700px){.hero-flask{right:-32vw;top:14%;width:88vw;opacity:.08}.pharm-formula{gap:8px 14px;font-size:12px}}

/* V6 — mobile-first hero refinement */
.hero{max-width:none;padding-right:clamp(0px,24vw,270px)}
.hero>p{max-width:680px}
.hero-flask{right:-20vw;top:4%;width:min(43vw,500px);opacity:.10}
@media(max-width:900px){
  header{height:68px;padding:0 20px}
  main{width:min(92vw,1120px)}
  .hero{min-height:calc(100svh - 68px);padding-right:18vw;padding-top:24px;padding-bottom:36px}
  .hero-flask{right:-38vw;top:10%;width:82vw;opacity:.065}
  .hero h1{font-size:clamp(64px,16vw,112px)}
  .hero>p{max-width:620px}
}
@media(max-width:700px){
  header{height:62px;padding:0 18px}.brand{font-size:24px}
  main{width:calc(100% - 32px)}
  section{margin:72px 0}
  .hero{min-height:calc(100svh - 62px);padding:38px 0 44px;justify-content:center}
  .hero-flask{right:-58vw;top:7%;width:112vw;opacity:.052;transform:rotate(45deg)}
  .hero h1{font-size:clamp(58px,20vw,88px);line-height:.82;margin:18px 0 24px}
  .hero>p{font-size:17px;line-height:1.55;max-width:94%}
  .eyebrow{font-size:10px;letter-spacing:.14em}
  .actions{gap:10px;margin-top:20px}.btn{padding:12px 16px;font-size:14px}
  .pharm-formula{margin-top:30px;max-width:88%;font-size:11px;line-height:1.5;gap:6px 12px}
  .pharm-formula span{white-space:normal}
  .intro{margin-bottom:80px}.timeline article{padding-left:28px}.timeline{margin-left:7px}
  .contact p{overflow-wrap:anywhere}
}
@media(max-width:420px){
  main{width:calc(100% - 26px)}
  .hero-flask{right:-72vw;top:9%;width:128vw;opacity:.045}
  .hero h1{font-size:clamp(54px,21vw,78px)}
  .actions{flex-direction:column;align-items:flex-start}.actions .btn{width:100%;text-align:center}
  .card{padding:22px 19px;border-radius:21px}.focus-card{padding:23px;min-height:210px}
  .focus-badge{padding:11px;gap:9px}.focus-badge small{font-size:9px}
}

/* V7 — portrait extracted from the original CV PDF */
.hero-portrait{position:absolute;right:-2vw;top:50%;transform:translateY(-50%);z-index:3;width:clamp(190px,23vw,300px);aspect-ratio:1;border-radius:50%;padding:7px;background:linear-gradient(145deg,#d8b4feaa,#7c3aed55);box-shadow:0 22px 70px #0008,0 0 0 1px #ffffff1c;pointer-events:none}
.hero-portrait:after{content:'';position:absolute;inset:-13px;border-radius:50%;border:1px solid #c084fc42;box-shadow:0 0 55px #a855f72e}
.hero-portrait img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 31%;border-radius:50%;filter:saturate(.88) contrast(1.02)}
@media(max-width:900px){.hero-portrait{right:-5vw;width:clamp(160px,25vw,230px);opacity:.92}}
@media(max-width:700px){.hero-portrait{position:relative;right:auto;top:auto;transform:none;width:148px;margin:8px 0 20px;align-self:flex-end;opacity:1}.hero{padding-right:0}.hero-flask{z-index:0}}
@media(max-width:420px){.hero-portrait{width:126px;margin-bottom:16px}}

/* V8 — balanced editorial hero: title left, portrait right, flask as edge decoration */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);
  grid-template-areas:
    "eyebrow portrait"
    "title portrait"
    "lead portrait"
    "actions portrait"
    "formula portrait";
  align-content:center;
  column-gap:clamp(36px,6vw,88px);
  min-height:calc(100svh - 78px);
  padding:clamp(60px,8vh,100px) 0;
}
.hero .eyebrow{grid-area:eyebrow;align-self:end}.hero h1{grid-area:title}.hero>p{grid-area:lead}.hero .actions{grid-area:actions}.hero .pharm-formula{grid-area:formula}
.hero-portrait{
  grid-area:portrait;
  position:relative;
  right:auto;top:auto;transform:none;
  justify-self:end;align-self:center;
  width:min(29vw,330px);
  min-width:250px;
  z-index:3;
}
.hero-portrait:before{content:'⚗';position:absolute;left:-54px;bottom:10px;width:82px;height:82px;display:grid;place-items:center;border-radius:24px;background:#1b0d29e8;border:1px solid #d8b4fe30;color:#d8b4fe;font-size:36px;box-shadow:0 16px 45px #0006;z-index:2}
.hero-flask{right:-28vw;top:1%;width:min(44vw,540px);opacity:.075;z-index:0}
.hero h1{font-size:clamp(72px,10vw,136px);margin:20px 0 28px}
.hero>p{font-size:clamp(18px,1.8vw,23px)}
@media(max-width:900px){
  .hero{grid-template-columns:minmax(0,1fr) 210px;column-gap:30px;min-height:calc(100svh - 68px);padding:54px 0}
  .hero-portrait{width:210px;min-width:0;right:auto}
  .hero h1{font-size:clamp(66px,11vw,100px)}
  .hero-flask{right:-42vw;width:72vw;opacity:.055}
}
@media(max-width:700px){
  .hero{display:grid;grid-template-columns:1fr;grid-template-areas:"portrait" "eyebrow" "title" "lead" "actions" "formula";gap:0;min-height:auto;padding:34px 0 54px}
  .hero-portrait{justify-self:center;width:158px;margin:0 0 30px;align-self:auto}
  .hero-portrait:before{left:-29px;bottom:-8px;width:58px;height:58px;border-radius:18px;font-size:27px}
  .hero h1{text-align:center;font-size:clamp(58px,20vw,88px);margin:16px 0 22px}
  .hero .eyebrow{text-align:center;align-self:auto}.hero>p{text-align:center;max-width:100%;margin-left:auto;margin-right:auto}
  .hero .actions{justify-content:center}.hero .pharm-formula{justify-content:center;text-align:center;max-width:100%}
  .hero-flask{right:-72vw;top:2%;width:122vw;opacity:.038}
}
@media(max-width:420px){
  .hero-portrait{width:138px;margin-bottom:26px}
  .hero h1{font-size:clamp(54px,20vw,76px)}
  .hero .actions{width:100%}.hero .actions .btn{width:100%}
}

/* V9 — CV-inspired hero: portrait left, identity right, no decorative flask */
.hero{
  display:grid;
  grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);
  grid-template-areas:"portrait copy";
  align-items:center;
  column-gap:clamp(46px,7vw,104px);
  min-height:calc(100svh - 78px);
  padding:clamp(58px,8vh,96px) 0;
}
.hero-portrait{grid-area:portrait;position:relative;justify-self:start;align-self:center;width:min(31vw,350px);min-width:240px;margin:0;right:auto;top:auto;transform:none;z-index:2}
.hero-portrait:before{display:none!important;content:none!important}
.hero-copy{grid-area:copy;position:relative;z-index:2;min-width:0}
.hero-copy .eyebrow{margin-bottom:18px}
.hero-copy h1{font-size:clamp(72px,10vw,138px);margin:0 0 30px;line-height:.78}
.hero-copy>p{font-size:clamp(18px,1.8vw,23px);line-height:1.55;color:#cfc3db;max-width:650px}
.hero-copy .formula{margin-top:38px}
.hero-flask{display:none!important}
@media(max-width:900px){
  .hero{grid-template-columns:220px minmax(0,1fr);column-gap:38px;padding:52px 0;min-height:calc(100svh - 68px)}
  .hero-portrait{width:220px;min-width:0}
  .hero-copy h1{font-size:clamp(64px,10vw,96px)}
}
@media(max-width:700px){
  .hero{grid-template-columns:1fr;grid-template-areas:"portrait" "copy";row-gap:30px;min-height:auto;padding:38px 0 56px}
  .hero-portrait{justify-self:center;width:160px;min-width:0;margin:0}
  .hero-copy{text-align:center}
  .hero-copy h1{font-size:clamp(58px,20vw,86px);margin:14px 0 23px}
  .hero-copy>p{margin-left:auto;margin-right:auto;max-width:100%}
  .hero-copy .actions,.hero-copy .pharm-formula{justify-content:center}
}
@media(max-width:420px){
  .hero-portrait{width:140px}
  .hero-copy h1{font-size:clamp(54px,20vw,76px)}
  .hero-copy .actions{width:100%}.hero-copy .actions .btn{width:100%}
}
/* V11 — 3D ball-and-stick molecular ambience */
#chem-bg{filter:saturate(.9);}
@media (prefers-reduced-motion: reduce){#chem-bg{opacity:.55}}


/* V11 — softly falling pharmaceutical SVG particles */
#pharma-particles{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.pharma-particle{position:absolute;top:-90px;width:var(--size);height:var(--size);opacity:var(--opacity);filter:drop-shadow(0 0 15px rgba(216,180,254,.28)) drop-shadow(0 5px 12px rgba(20,8,40,.18));animation:pharmaFall var(--duration) linear var(--delay) infinite;will-change:transform}
.pharma-particle svg{display:block;width:100%;height:100%;overflow:visible}
.pharma-particle .glass{fill:rgba(255,255,255,.075);stroke:rgba(248,240,255,.88);stroke-width:2.15}
.pharma-particle .accent{fill:rgba(192,132,252,.30);stroke:rgba(238,220,255,.78);stroke-width:1.7}
.pharma-particle .shine{fill:none;stroke:rgba(255,255,255,.78);stroke-width:1.4;stroke-linecap:round}
@keyframes pharmaFall{0%{transform:translate3d(0,-12vh,0) rotate(var(--r0))}50%{transform:translate3d(var(--drift),52vh,0) rotate(var(--r1))}100%{transform:translate3d(calc(var(--drift) * -.45),116vh,0) rotate(var(--r2))}}
@media(max-width:700px){.pharma-particle:nth-child(n+9){display:none}.pharma-particle{filter:drop-shadow(0 0 12px rgba(216,180,254,.24))}}
@media(prefers-reduced-motion:reduce){.pharma-particle{animation:none;display:none}#chem-bg{display:none}}

/* V13 — tighter hero/header spacing */
.hero{
  min-height:auto;
  padding-top:clamp(28px,4.2vh,48px);
  padding-bottom:clamp(52px,7vh,78px);
}
@media(max-width:900px){
  .hero{min-height:auto;padding-top:30px;padding-bottom:58px}
}
@media(max-width:700px){
  .hero{padding-top:24px;padding-bottom:50px;row-gap:24px}
}
@media(max-width:420px){
  .hero{padding-top:20px}
}

/* V16 — stationary 3D reaction flask beside the portrait */
.hero-portrait{overflow:visible}
#hero-reaction{
  position:absolute;
  width:245px;height:330px;
  left:72%;top:48%;
  transform:translateY(-48%);
  z-index:-1;
  pointer-events:none;
  opacity:.88;
  filter:drop-shadow(0 0 18px rgba(192,132,252,.12));
}
@media(max-width:1050px){
  #hero-reaction{width:205px;height:285px;left:67%;opacity:.74}
}
@media(max-width:700px){
  #hero-reaction{width:160px;height:235px;left:66%;top:47%;opacity:.62}
}
@media(max-width:420px){
  #hero-reaction{width:138px;height:205px;left:64%;opacity:.55}
}
@media(prefers-reduced-motion:reduce){#hero-reaction{display:none}}

/* V17 — pharmaceutical MSc icon + reaction flask moved into Profile */
.pill-icon{width:62px;height:48px;margin-bottom:24px;filter:drop-shadow(0 8px 18px rgba(168,85,247,.22))}
.pill-icon svg{display:block;width:100%;height:100%}
.profile-card{position:relative;overflow:hidden;align-items:center;min-height:310px}
.profile-heading{position:relative;min-height:220px;padding-right:105px;display:flex;flex-direction:column;justify-content:flex-start}
#hero-reaction{position:absolute;width:220px;height:285px;left:78px;top:-30px;transform:none;z-index:0;pointer-events:none;opacity:.84;filter:drop-shadow(0 0 18px rgba(192,132,252,.13))}
.profile-heading .section-no,.profile-heading h2{position:relative;z-index:2}
.profile-card>p{position:relative;z-index:2}
@media(max-width:900px){#hero-reaction{width:195px;height:255px;left:66px;top:-16px}.profile-heading{padding-right:75px}}
@media(max-width:700px){.profile-card{min-height:0}.profile-heading{min-height:170px;padding-right:0}.profile-card{gap:2px}.profile-card>p{margin-top:0}#hero-reaction{width:170px;height:220px;left:auto;right:-18px;top:-28px;opacity:.66}}
@media(max-width:420px){.profile-heading{min-height:150px}#hero-reaction{width:145px;height:190px;right:-22px;top:-20px;opacity:.56}}
@media(prefers-reduced-motion:reduce){#hero-reaction{display:none}.profile-heading{min-height:auto}}

/* V18 — interactive pharmaceutical formula constellation */
.interactive-formulas{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important;max-width:800px!important;align-items:stretch}
.formula-chip{appearance:none;position:relative;overflow:hidden;min-width:0;padding:13px 14px 12px;text-align:left;border:1px solid rgba(216,180,254,.16);border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(155,93,229,.025));color:#d9cce7;font:inherit;cursor:pointer;transition:transform .28s ease,border-color .28s ease,background .28s ease,box-shadow .28s ease}
.formula-chip:before{content:'';position:absolute;width:80px;height:80px;border-radius:50%;left:var(--mx,50%);top:var(--my,50%);transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(216,180,254,.17),transparent 68%);opacity:0;transition:opacity .25s;pointer-events:none}
.formula-chip:hover:before,.formula-chip.active:before{opacity:1}.formula-chip:hover{transform:translateY(-3px);border-color:rgba(216,180,254,.34)}
.formula-chip.active{border-color:rgba(192,132,252,.52);background:linear-gradient(145deg,rgba(192,132,252,.13),rgba(255,255,255,.035));box-shadow:0 10px 34px rgba(88,28,135,.16)}
.formula-symbol{display:inline-grid;place-items:center;min-width:34px;height:25px;padding:0 7px;margin-bottom:8px;border-radius:999px;background:rgba(192,132,252,.13);color:#e8d5ff;font:700 10px 'DM Sans',sans-serif;letter-spacing:.12em}
.formula-eq{display:block;color:#eadff5;font:500 13px Georgia,serif;letter-spacing:.015em;line-height:1.35;white-space:normal!important}.formula-hint{display:block;margin-top:6px;color:#8f7ba3;font:600 9px 'DM Sans',sans-serif;letter-spacing:.09em;text-transform:uppercase;white-space:normal!important}
.formula-detail{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;min-height:48px;padding:10px 13px;border-left:1px solid rgba(192,132,252,.38);color:#9f8eb0;font:12px/1.45 'DM Sans',sans-serif;letter-spacing:0;transition:opacity .18s ease,transform .18s ease}.formula-detail strong{display:block;color:#cdb6e2;font-size:11px;letter-spacing:.04em}.formula-detail p{margin:2px 0 0}.formula-dot{width:6px;height:6px;flex:0 0 6px;margin-top:6px;border-radius:50%;background:#c084fc;box-shadow:0 0 10px rgba(192,132,252,.65)}
.formula-detail.switching{opacity:.25;transform:translateY(2px)}
@media(max-width:700px){.interactive-formulas{grid-template-columns:1fr!important;gap:7px!important;text-align:left!important}.formula-chip{padding:11px 13px}.formula-detail{padding:8px 12px;min-height:44px}.formula-eq{font-size:12px}}
@media(prefers-reduced-motion:reduce){.formula-chip,.formula-detail{transition:none!important}.formula-chip:hover{transform:none}}

/* V19 — lighter 3D rendering: reduced geometry density while preserving silhouettes. */

/* V20 — reaction flask aligned to the right of the Profile text */
.profile-card{
  grid-template-columns:minmax(150px,.72fr) minmax(0,2.28fr);
  align-items:start;
  min-height:0;
}
.profile-heading{
  min-height:0;
  padding-right:0;
}
.profile-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) 230px;
  gap:clamp(22px,3.2vw,46px);
  align-items:center;
  min-width:0;
}
.profile-content>p{
  position:relative;
  z-index:2;
  margin:0;
}
#hero-reaction{
  position:relative;
  inset:auto;
  width:230px;
  height:285px;
  justify-self:end;
  align-self:center;
  transform:none;
  opacity:.84;
  z-index:1;
  pointer-events:none;
  filter:drop-shadow(0 0 18px rgba(192,132,252,.13));
}
@media(max-width:900px){
  .profile-card{grid-template-columns:1fr;gap:18px}
  .profile-content{grid-template-columns:minmax(0,1fr) 190px;gap:22px}
  #hero-reaction{width:190px;height:245px}
}
@media(max-width:700px){
  .profile-heading{min-height:0}
  .profile-content{grid-template-columns:minmax(0,1fr) 135px;gap:12px;align-items:center}
  #hero-reaction{width:135px;height:190px;opacity:.66}
}
@media(max-width:480px){
  .profile-content{grid-template-columns:1fr}
  #hero-reaction{width:150px;height:190px;justify-self:center;margin-top:4px;opacity:.62}
}
@media(prefers-reduced-motion:reduce){
  .profile-content #hero-reaction{display:none}
  .profile-content{grid-template-columns:1fr}
}

/* V22 — falling pharmaceutical equations; no section numbering. */
.section-no{display:none!important}
#formula-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.bg-formula{position:absolute;top:-4rem;color:rgba(232,216,247,.13);font:500 1em Georgia,'Times New Roman',serif;letter-spacing:.02em;white-space:nowrap;text-shadow:0 0 16px rgba(168,85,247,.08);transform:translate3d(0,0,0) rotate(var(--fall-rot));animation:formulaFall var(--fall-duration) linear var(--fall-delay) infinite;will-change:transform}
@keyframes formulaFall{0%{transform:translate3d(0,-10vh,0) rotate(var(--fall-rot));opacity:0}8%{opacity:.8}88%{opacity:.8}100%{transform:translate3d(var(--fall-drift),115vh,0) rotate(calc(var(--fall-rot) + 5deg));opacity:0}}
@media(max-width:700px){.bg-formula{opacity:.7}}
@media(prefers-reduced-motion:reduce){.bg-formula{animation:none!important;opacity:.45}}

/* V23 — lower-cost ambient motion. Slower background, fewer expensive effects. */
#chem-bg{filter:none}
.pharma-particle{filter:drop-shadow(0 0 8px rgba(216,180,254,.18));}
.bg-formula{text-shadow:none;}
@media(max-width:700px){.pharma-particle:nth-child(n+7){display:none}}

/* V24 — keep falling equations visibly above the opaque 3D canvas. */
#chem-bg{z-index:-3}
#pharma-particles{z-index:-2}
#formula-bg{z-index:-1}
.bg-formula{
  color:rgba(238,222,252,.24);
  font-weight:500;
  text-shadow:0 0 10px rgba(192,132,252,.12);
}
@keyframes formulaFall{
  0%{transform:translate3d(0,-10vh,0) rotate(var(--fall-rot));opacity:0}
  7%{opacity:.95}
  90%{opacity:.95}
  100%{transform:translate3d(var(--fall-drift),115vh,0) rotate(calc(var(--fall-rot) + 4deg));opacity:0}
}
@media(max-width:700px){.bg-formula{color:rgba(238,222,252,.20);opacity:.85}}

/* V25 — tighter portrait crop: larger face without enlarging the portrait frame */
.hero-portrait img{
  transform:scale(1.22);
  transform-origin:50% 31%;
  object-position:50% 29%;
}
.hero-portrait{overflow:hidden;border-radius:50%}

/* V26 — mouse/pointer wind added to the existing falling paths. */
.bg-formula,.pharma-particle{--mouse-x:0px;--mouse-y:0px}
@keyframes formulaFall{
  0%{transform:translate3d(var(--mouse-x),calc(-10vh + var(--mouse-y)),0) rotate(var(--fall-rot));opacity:0}
  7%{opacity:.95}
  90%{opacity:.95}
  100%{transform:translate3d(calc(var(--fall-drift) + var(--mouse-x)),calc(115vh + var(--mouse-y)),0) rotate(calc(var(--fall-rot) + 4deg));opacity:0}
}
@keyframes pharmaFall{
  0%{transform:translate3d(var(--mouse-x),calc(-12vh + var(--mouse-y)),0) rotate(var(--r0))}
  50%{transform:translate3d(calc(var(--drift) + var(--mouse-x)),calc(52vh + var(--mouse-y)),0) rotate(var(--r1))}
  100%{transform:translate3d(calc(var(--drift) * -.45 + var(--mouse-x)),calc(116vh + var(--mouse-y)),0) rotate(var(--r2))}
}


/* V31 — MSc thesis download placeholder. Add Szasz_Adrienn_MSc_dolgozat.pdf beside index.html when available. */
.thesis-download{display:inline-flex;align-items:center;gap:10px;margin-top:18px;padding:10px 14px;border:1px solid rgba(216,180,254,.24);border-radius:12px;color:#eadcff;text-decoration:none;background:rgba(168,85,247,.07);font-size:.88rem;font-weight:650;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.thesis-download span{font-size:.74rem;letter-spacing:.08em;color:#c99cff}
@media(hover:hover) and (pointer:fine){.thesis-download:hover{background:rgba(168,85,247,.14);border-color:rgba(216,180,254,.42);transform:translateY(-1px)}}
.thesis-download:focus-visible{outline:2px solid #d8b4fe;outline-offset:3px}

/* V32 — calmer background motion and lower rendering cadence. */
/* JS canvas: ~12.5 FPS; reaction flask: ~10 FPS. */

/* V33 — headings are display text, not text-entry targets. */
h1,h2,h3,.eyebrow,.section-head,.profile-heading{cursor:default;-webkit-user-select:none;user-select:none}

/* V35 — center both contact actions */
#kapcsolat .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}
@media (max-width: 420px) {
  #kapcsolat .actions .btn { width: min(100%, 320px); text-align: center; }
}
