/* ==========================================================================
   S&S PRC@USM - design system
   Orange from the logo · USM purple · warm paper · PK-PD curve motifs
   ========================================================================== */

:root {
  --orange: #FF8303;
  --orange-600: #E06A00;
  --orange-700: #B25200;
  --orange-100: #FFE6CB;
  --orange-50: #FFF5EA;

  --ink: #1C1530;
  --ink-2: #2A2045;
  --text: #2B2539;
  --muted: #6B6480;
  --line: rgba(28, 21, 48, .12);

  --purple: #5B3A8C;
  --lav: #EEE8F7;
  --lav-2: #E0D6F0;
  --paper: #FFFCF8;
  --white: #fff;

  --teal: #2F5D73;
  --sky: #2C9AD1;
  --pagmas: #D6283F;

  --yellow: #F8C81E;
  --pink: #FF6FB0;
  --cyan: #74D2E7;

  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --shadow-1: 0 1px 2px rgba(28, 21, 48, .06), 0 6px 18px -6px rgba(28, 21, 48, .12);
  --shadow-2: 0 2px 4px rgba(28, 21, 48, .06), 0 18px 40px -14px rgba(28, 21, 48, .22);

  --f-head: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;

  --topbar-h: 68px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.1; margin: 0; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font-family: var(--f-mono); font-size: .75em; padding: .1em .45em; border: 1px solid currentColor; border-radius: 5px; opacity: .8; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: .8em; letter-spacing: .02em; }
.muted { color: var(--muted); font-size: .95rem; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 1em; height: 1em; }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.4em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s;
}
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: 0 8px 22px -8px rgba(255, 131, 3, .8); }
.btn--primary:hover { background: #FF9528; transform: translateY(-2px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: .5em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); font-size: .92rem; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips--static li { padding: .35em .85em; border-radius: 999px; background: var(--orange-50); border: 1px solid var(--orange-100); color: var(--orange-700); font-size: .88rem; font-weight: 500; }

.badge { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--lav); color: var(--purple); }
.badge--orange, .badge--workshop { background: var(--orange-100); color: var(--orange-700); }
.badge--purple, .badge--invited { background: var(--lav-2); color: var(--purple); }
.badge--plenary { background: var(--purple); color: #fff; }
.badge--presentation, .badge--poster { background: #DDEFF7; color: #1F6785; }
.badge--award { background: var(--yellow); color: #4B3800; }
.badge--grant { background: #D9F0DD; color: #226B32; }
.badge--fellow { background: var(--pink); color: #5A0F33; }
.badge--contest { background: var(--yellow); color: #4B3800; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--orange-700); border-bottom: 2px solid var(--orange-100); transition: border-color .2s; }
.link:hover { border-color: var(--orange); }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 60; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.topbar.is-scrolled { background: rgba(255, 252, 248, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--orange), var(--pink), var(--purple)); transform-origin: 0 50%; transform: scaleX(0); }
.topbar__inner { height: 100%; width: min(100% - 32px, 1320px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-family: var(--f-head); font-size: 1.05rem; letter-spacing: -.01em; }
.brand__text small { font-size: .72rem; color: var(--muted); }

.topnav { display: none; gap: 2px; }
.tn { position: relative; }
.tn__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.tn__link:hover { background: rgba(28, 21, 48, .06); }
.tn.is-active .tn__link { background: var(--ink); color: #fff; }
.tn__drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; padding: 8px; background: #fff; border-radius: var(--r);
  box-shadow: var(--shadow-2); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.tn--menu:hover .tn__drop, .tn--menu:focus-within .tn__drop { opacity: 1; visibility: visible; transform: none; }
.tn__drop a { display: grid; padding: 10px 14px; border-radius: 12px; line-height: 1.3; }
.tn__drop a:hover { background: var(--orange-50); }
.tn__drop b { font-weight: 600; }
.tn__drop small { color: var(--muted); font-size: .82rem; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font-weight: 600; transition: background .2s, color .2s;
}
.menu-btn:hover { background: var(--ink); color: #fff; }
.menu-btn__icon { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: grid; place-content: center; gap: 4px; }
.menu-btn__icon i { display: block; width: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn.is-open .menu-btn__icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-open .menu-btn__icon i:nth-child(2) { opacity: 0; }
.menu-btn.is-open .menu-btn__icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1080px) { .topnav { display: flex; } }
@media (max-width: 520px) { .brand__text small { display: none; } .menu-btn__label { display: none; } .menu-btn { padding: 6px; } }

/* ==========================================================================
   Navigation panel
   ========================================================================== */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20, 12, 36, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.scrim.is-open { opacity: 1; }
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--ink); color: #fff; transform: translateX(102%); transition: transform .4s var(--ease); box-shadow: -24px 0 60px -20px rgba(0, 0, 0, .5);
  background-image: radial-gradient(500px 300px at 100% 0, rgba(255, 131, 3, .18), transparent 70%);
}
.panel.is-open { transform: none; }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 14px; }
.panel__brand { display: flex; align-items: center; gap: 14px; }
.panel__brand img { width: 44px; height: 44px; object-fit: contain; }
.panel__brand strong { font-family: var(--f-head); font-size: 1.15rem; display: block; line-height: 1.1; }
.panel__brand small { color: rgba(255, 255, 255, .6); font-size: .8rem; }
.panel .icon-btn { border-color: rgba(255, 255, 255, .25); color: #fff; }

.panel__nav { flex: 1; overflow-y: auto; padding: 8px 14px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.pn-group { margin-top: 18px; }
.pn-group__t { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); padding: 0 12px 6px; }
.pn { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; position: relative; transition: background .2s, transform .25s var(--ease); }
.pn:hover { background: rgba(255, 255, 255, .07); }
.pn__n { font-family: var(--f-mono); font-size: .8rem; color: rgba(255, 255, 255, .45); }
.pn__t { display: grid; line-height: 1.25; }
.pn__t b { font-family: var(--f-head); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.pn__t small { color: rgba(255, 255, 255, .55); font-size: .82rem; }
.pn__go { opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease); color: var(--orange); }
.pn:hover .pn__go, .pn:focus-visible .pn__go { opacity: 1; transform: none; }
.pn.is-active { background: rgba(255, 131, 3, .14); }
.pn.is-active::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--orange); }
.pn.is-active .pn__n { color: var(--orange); }
.pn--home { margin-top: 4px; }
.panel :focus-visible { outline-color: #fff; }

.panel__foot { padding: 16px 24px 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 12px; }
.panel__cta { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 700; transition: background .2s; }
.panel__cta:hover { background: #FF9528; }
.panel__foot p { font-size: .8rem; color: rgba(255, 255, 255, .5); text-align: center; }

/* ---------- dot rail ---------- */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 4px; }
.rail a { position: relative; width: 22px; height: 22px; display: grid; place-items: center; }
.rail a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(28, 21, 48, .28); transition: transform .3s var(--ease), background .2s; }
.rail a:hover::before { background: var(--ink); transform: scale(1.4); }
.rail a.is-active::before { background: var(--orange); transform: scale(1.9); box-shadow: 0 0 0 4px rgba(255, 131, 3, .2); }
.rail__tip { position: absolute; right: 30px; top: 50%; transform: translate(6px, -50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 500; padding: 5px 11px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.rail a:hover .rail__tip, .rail a:focus-visible .rail__tip { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 1240px) { .rail { display: flex; } }

/* ==========================================================================
   Section tabs (About / Team / Activities / Outputs / PAGMAS / Contact)
   ========================================================================== */
.sectiontabs {
  position: sticky; top: var(--topbar-h); z-index: 30; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px min(24px, 4vw); background: rgba(255, 252, 248, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 var(--line);
}
.stab {
  padding: .6em 1.3em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .95rem; color: var(--text); transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.stab:hover { border-color: var(--ink); transform: translateY(-1px); }
.stab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.tabpanel { display: none; }
.tabpanel.is-active { display: block; }

/* ==========================================================================
   Sections - shared
   ========================================================================== */
section { scroll-margin-top: calc(var(--topbar-h) + 64px); }
#home { scroll-margin-top: calc(var(--topbar-h) - 4px); }
main .sec:focus { outline: none; }
.sec { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.sec--tint { background: var(--orange-50); }
.sec--lav { background: var(--lav); }
.sec--ink { background: var(--ink); color: rgba(255, 255, 255, .86); }
.sec--ink h2, .sec--ink h3, .sec--ink h4 { color: #fff; }
.sec--ink .muted { color: rgba(255, 255, 255, .6); }

.sec__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
.sec__head h2 .thin { font-weight: 500; color: var(--muted); font-size: .6em; display: block; margin-top: .3em; letter-spacing: 0; }
.lede { margin-top: 16px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.sec--ink .lede { color: rgba(255, 255, 255, .7); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-700); margin-bottom: 14px; }
.kicker span { display: inline-grid; place-items: center; min-width: 30px; padding: 3px 8px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.sec--ink .kicker { color: var(--orange); }
.kicker--light { color: var(--ink); } .kicker--light span { background: var(--ink); color: #fff; }

.sub { font-size: 1.35rem; font-weight: 700; margin-bottom: 20px; }
.sub .muted { font-family: var(--f-body); font-weight: 400; font-size: .85em; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 28px; }
.toolbar .sub { margin: 0; }
.count { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
.more { display: flex; justify-content: center; margin-top: 36px; }
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

/* reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* image buttons */
.ph, .ev__ph, .ach__ph, .collab__ph, .pub__ph { display: block; padding: 0; border: 0; background: var(--lav); overflow: hidden; position: relative; cursor: zoom-in; }
.ph img, .ev__ph img, .ach__ph img, .collab__ph img, .pub__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ph:hover img, .ev__ph:hover img, .ach__ph:hover img, .collab__ph:hover img, .pub__ph:hover img { transform: scale(1.05); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: calc(var(--topbar-h) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 6vw, 84px); overflow: hidden;
  background: radial-gradient(900px 520px at 85% 20%, #F1EAFB 0%, transparent 70%), radial-gradient(700px 500px at 0% 0%, #FFE9D0 0%, transparent 65%), var(--paper); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .curve { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
#dots circle { animation: pop 3.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { transform: scale(.85); opacity: .35; } to { transform: scale(1.15); opacity: .8; } }

.hero__grid { position: relative; display: grid; gap: 32px 40px; align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 500; box-shadow: var(--shadow-1); }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 131, 3, .25); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; margin-top: 22px; letter-spacing: -.03em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--orange-600); background: linear-gradient(transparent 82%, rgba(255, 131, 3, .3) 82%); }
.hero .lead { margin-top: 24px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__art { position: relative; margin: 0; }
.hero__art img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 22px 30px rgba(91, 58, 140, .18)); }
.hero__blob { position: absolute; inset: 6% 2% 0; border-radius: 42% 58% 55% 45% / 48% 45% 55% 52%; background: linear-gradient(140deg, #F3ECFC, #FFF0DD); transform: rotate(-4deg); }

.stats { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: clamp(36px, 5vw, 64px) 0 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: rgba(255, 255, 255, .8); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 22px 16px; }
.stats dt { order: 2; font-size: .82rem; color: var(--muted); font-weight: 500; }
.stats dd { order: 1; margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--orange-600); line-height: 1; }
.stats > div { display: flex; flex-direction: column; gap: 6px; }

/* ==========================================================================
   About / pharmacometrics
   ========================================================================== */
.pmx { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.pmx__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--paper); border-bottom: 1px solid var(--line); }
.pmx__tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 12px; border-radius: 999px; border: 0; background: transparent; font-weight: 600; transition: background .2s, color .2s; }
.pmx__tabs button b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lav); color: var(--purple); font-family: var(--f-mono); font-size: .8rem; }
.pmx__tabs button:hover { background: var(--orange-50); }
.pmx__tabs button.is-active { background: var(--ink); color: #fff; }
.pmx__tabs button.is-active b { background: var(--orange); color: var(--ink); }
.pmx__pane { display: grid; gap: 28px; padding: clamp(18px, 3vw, 32px); align-items: center; }
.pmx__pane[hidden] { display: none; }
@media (min-width: 900px) { .pmx__pane { grid-template-columns: 1.25fr 1fr; gap: 44px; } }
.pmx__pane figure { margin: 0; border-radius: var(--r); overflow: hidden; background: #EEEEEE; }
.pmx__pane figure img { width: 100%; height: auto; }
.pmx__pane.is-active { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.pmx__text { display: grid; gap: 16px; align-content: center; }
.pmx__text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.qs { display: grid; gap: 10px; counter-reset: q; }
.qs li { counter-increment: q; display: flex; gap: 14px; align-items: baseline; font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; color: var(--orange-700); line-height: 1.25; }
.qs li::before { content: counter(q, decimal-leading-zero); font-family: var(--f-mono); font-size: .75rem; color: var(--muted); font-weight: 500; }

/* ==========================================================================
   Objectives
   ========================================================================== */
.objs { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.obj { --c: var(--yellow); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 34px 24px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s; }
.obj:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.obj--yellow { --c: var(--yellow); --cf: #3F3000; } .obj--pink { --c: var(--pink); --cf: #4D0A2B; } .obj--cyan { --c: var(--cyan); --cf: #0A3947; } .obj--ink { --c: var(--ink); --cf: #fff; }
.obj__disc { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--cf); box-shadow: 0 14px 26px -10px var(--c); }
.obj--ink .obj__disc { box-shadow: 0 14px 26px -10px rgba(28, 21, 48, .6); }
.obj__disc .ico { width: 38px; height: 38px; stroke-width: 1.6; }
.obj__tag { padding: .3em 1.1em; border-radius: 999px; background: color-mix(in srgb, var(--c) 28%, #fff); font-weight: 700; font-size: .85rem; }
.obj--ink .obj__tag { background: var(--ink); color: #fff; }
.obj p { font-size: 1.05rem; color: var(--text); max-width: 22ch; }

/* ==========================================================================
   Offers
   ========================================================================== */
.offers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(6, 1fr); } .offers li { grid-column: span 2; } .offers li:nth-child(n+4) { grid-column: span 3; } }
.offer { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 28px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s; }
.offer:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.offer__ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--lav); color: var(--purple); border: 2px solid var(--lav-2); transition: background .25s, color .25s; }
.offer:hover .offer__ico { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.offer__ico .ico { width: 28px; height: 28px; }
.offer h3 { font-size: 1.35rem; font-weight: 700; text-transform: none; }
.offer__go { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .95rem; color: var(--orange-700); }
.offer:hover .offer__go .ico { transform: translateX(4px); }
.offer__go .ico { transition: transform .25s var(--ease); }

/* ==========================================================================
   Team
   ========================================================================== */
.sec--team { background: #fff; }
.pis { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 72px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.pi { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 24px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(160deg, #F3EEFA, #FFF3E4); border: 1px solid var(--line); }
.pi img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 70%; border-radius: var(--r); box-shadow: var(--shadow-1); }
.pi__rank { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.pi h4 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; margin: 6px 0 10px; }
.pi__deg { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
@media (max-width: 460px) { .pi { grid-template-columns: 1fr; } .pi img { aspect-ratio: 4 / 5; max-width: 300px; } }

.people { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; line-height: 1.3; padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow-1); }
.person__ph { position: relative; width: 132px; height: 132px; border-radius: 50%; padding: 4px; background: conic-gradient(from 210deg, var(--sky), var(--teal), var(--orange), var(--sky)); margin-bottom: 10px; transition: transform .4s var(--ease); }
.person:hover .person__ph { transform: scale(1.06) rotate(-3deg); }
.person__ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #fff; background: #fff; }
.person__ini { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--teal); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 2rem; }
.person b { font-family: var(--f-head); font-weight: 700; font-size: .98rem; color: var(--teal); }
.person small { color: var(--muted); font-size: .8rem; }
.person small.grad { color: var(--orange-700); font-weight: 600; }
.person__proj { width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.person__proj h4 { color: var(--purple); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.person__proj p { margin: 7px 0 0; font-size: .86rem; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.person__proj p + p { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ==========================================================================
   Activities
   ========================================================================== */
.split { display: grid; gap: 24px; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.card-lg { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-1); display: grid; gap: 22px; }
.card-lg header { display: grid; gap: 8px; justify-items: start; }
.card-lg h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; }
.mosaic { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.mosaic .ph { border-radius: 14px; aspect-ratio: 4 / 3; }
.mosaic .ph--0 { grid-column: span 2; aspect-ratio: 16 / 9; }
.mosaic .ph--3 img { object-position: 50% 30%; }

.wk { display: grid; gap: 22px; position: relative; }
.wk::before { content: ""; position: absolute; left: 34px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--lav-2) 0 6px, transparent 6px 12px); }
.wk__item { display: grid; grid-template-columns: 70px 1fr; gap: 14px; position: relative; }
.wk__year { position: relative; z-index: 1; align-self: start; font-family: var(--f-mono); font-weight: 600; font-size: .85rem; padding: 6px 0; text-align: center; border-radius: 999px; background: var(--orange); color: var(--ink); }
.wk__date { font-weight: 600; margin: 4px 0 10px; }
.wk__imgs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.wk__imgs .ph { border-radius: 12px; aspect-ratio: 16 / 10; }

/* ==========================================================================
   Consultations
   ========================================================================== */
.consults { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); }
.consult { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.consult__imgs { display: grid; gap: 3px; background: #fff; }
.consult__imgs.is-two { grid-template-columns: 1fr 1fr; }
.consult__imgs .ph { aspect-ratio: 16 / 10; }
.consult__imgs .ph img { object-position: 50% 0; }
.consult__body { padding: 22px 26px 28px; display: grid; gap: 12px; align-content: start; }
.consult__body h3 { font-size: 1.35rem; font-weight: 800; }
.consult__who { line-height: 1.45; }
.consult__who b { color: var(--ink); }

/* ==========================================================================
   Event / conference cards
   ========================================================================== */
.ev { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s; }
.ev:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.ev__ph { aspect-ratio: 16 / 10; }
.ev__ph--doc img { object-position: 50% 0; }
.ev__n { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(28, 21, 48, .78); color: #fff; font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px); }
.ev__body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; flex: 1; }
.ev__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.ev h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.ev__who { font-weight: 600; font-size: .95rem; color: var(--purple); }
.ev--award { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(248, 200, 30, .35), var(--shadow-1); }

/* ==========================================================================
   Collaborations (dark)
   ========================================================================== */
.collabs { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.collab { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 22px; align-items: center; padding: 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); transition: background .3s, transform .35s var(--ease); }
.collab:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.collab__ph { border-radius: var(--r); aspect-ratio: 4 / 5; }
.collab__ph img { object-position: 50% 0; }
.collab__place { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.collab h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.collab p:last-child { color: rgba(255, 255, 255, .72); font-size: .98rem; }
@media (max-width: 520px) { .collab { grid-template-columns: 1fr; } .collab__ph { aspect-ratio: 16 / 10; } }

/* ==========================================================================
   Achievements
   ========================================================================== */
.ach { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .35s var(--ease), box-shadow .35s; }
.ach:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.ach__ph { aspect-ratio: 4 / 3; }
.ach__ph img { object-position: 50% 15%; }
.ach__body { padding: 16px 18px 20px; display: grid; gap: 6px; align-content: start; }
.ach__meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.ach h3 { font-size: 1.2rem; font-weight: 800; }
.ach__event { font-size: .93rem; font-weight: 600; line-height: 1.3; color: var(--purple); }

/* ==========================================================================
   Publications
   ========================================================================== */
.pubs { display: grid; gap: 8px; }
.pubyear { display: grid; gap: 4px 28px; padding: 22px 0; border-top: 1px solid rgba(28, 21, 48, .14); }
@media (min-width: 760px) { .pubyear { grid-template-columns: 110px 1fr; } .pubyear__y { position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; } }
.pubyear__y { font-size: 1.9rem; font-weight: 600; color: var(--purple); }
.pubyear__list { display: grid; gap: 14px; }
.pub { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: start; padding: 14px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.pub:hover { transform: translateX(4px); box-shadow: var(--shadow-2); }
.pub__ph { width: 148px; height: 108px; border-radius: 10px; border: 1px solid var(--line); flex-shrink: 0; }
.pub__ph img { object-position: 50% 0; }
.pub h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; letter-spacing: -.005em; margin-bottom: 6px; }
.pub__authors { font-size: .9rem; color: var(--muted); line-height: 1.4; margin-bottom: 6px; }
.pub__roles { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 6px; }
.pub__role { font-size: .85rem; color: var(--ink); }
.pub__role-k { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--purple); margin-right: 5px; }
.pub .muted { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .88rem; }
.venue { color: var(--orange-700); font-weight: 600; }
.pub__doi { color: var(--link, #2f6fed); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.pub__doi:hover { color: var(--purple); }
@media (max-width: 560px) { .pub { grid-template-columns: 96px 1fr; gap: 12px; } .pub__ph { width: 96px; height: 84px; } .pub h4 { font-size: .95rem; } }

/* ==========================================================================
   PAGMAS
   ========================================================================== */
.sec--pagmas { background: linear-gradient(180deg, #fff, #FFF4F5 60%, #fff); }
.sec--pagmas .kicker { color: var(--pagmas); } .sec--pagmas .kicker span { background: var(--pagmas); color: #fff; }
.pag-intro { display: grid; gap: 22px; }
@media (min-width: 960px) { .pag-intro { grid-template-columns: 1fr 1.2fr; } }
.pag-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 18px; align-content: start; }
.pag-card h3 { font-size: 1.7rem; font-weight: 800; }
.pag-card dl { margin: 0; display: grid; gap: 4px; }
.pag-card dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--pagmas); margin-top: 10px; }
.pag-card dd { margin: 0; }
.pag-card .btn { justify-self: start; }
.pag-card--obj { background: var(--ink); color: rgba(255, 255, 255, .85); }
.pag-card--obj h3 { color: #fff; }
.pag-card--obj ol { display: grid; gap: 16px; }
.pag-card--obj li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.pag-card--obj li b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--f-mono); font-size: .85rem; background: var(--pagmas); color: #fff; }

/* ==========================================================================
   Contact + footer
   ========================================================================== */
.sec--contact { background: radial-gradient(700px 400px at 90% 10%, rgba(255, 255, 255, .3), transparent 70%), linear-gradient(135deg, #FF9A2E, #FF8303 55%, #FF7A12); color: var(--ink); overflow: hidden; }
.sec--contact::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); pointer-events: none; }
.contact { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 860px) { .contact { grid-template-columns: 1.4fr 1fr; } }
.contact h2 { color: var(--ink); font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; }
.contact .lede { color: rgba(28, 21, 48, .88); }
.mails { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mails a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .4); transition: transform .25s var(--ease), background .2s; }
.mails a:hover { transform: translateY(-3px); background: var(--ink); color: #fff; }
.rail.on-dark a::before { background: rgba(255, 255, 255, .4); }
.rail.on-dark a:hover::before { background: #fff; }
.rail.on-dark a.is-active::before { background: var(--orange); }
.where { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: rgba(28, 21, 48, .88); font-weight: 500; }
.contact__logo { justify-self: center; width: min(320px, 70%); padding: 28px; background: #fff; border-radius: 40px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35); transform: rotate(3deg); }
.contact__logo img { width: 100%; height: auto; }

.footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 28px 0; font-size: .9rem; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; line-height: 1.3; }
.footer__brand strong { color: #fff; font-family: var(--f-head); }
.footer__partners { height: 34px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.to-top:hover { color: var(--orange); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb { border: 0; padding: 0; background: transparent; width: 100vw; height: 100dvh; max-width: none; max-height: none; color: #fff; }
.lb[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb::backdrop { background: rgba(14, 9, 26, .92); backdrop-filter: blur(6px); }
.lb__fig { grid-column: 2; margin: 0; min-width: 0; display: grid; gap: 14px; justify-items: center; }
.lb__fig img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb__fig figcaption { text-align: center; font-size: .95rem; max-width: 70ch; color: rgba(255, 255, 255, .85); padding-inline: 12px; }
.lb .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); justify-self: center; }
.lb .icon-btn:hover { background: rgba(255, 255, 255, .18); }
.lb__close { position: fixed; top: 16px; right: 16px; z-index: 2; }
.lb .icon-btn[hidden] { display: none; }
.lb__prev { grid-column: 1; grid-row: 1; } .lb__next { grid-column: 3; grid-row: 1; } .lb__fig { grid-row: 1; }
@media (max-width: 640px) { .lb[open] { grid-template-columns: 1fr; } .lb__fig { grid-column: 1; padding-inline: 12px; } .lb__nav { position: fixed; bottom: 16px; } .lb__prev { left: 16px; } .lb__next { right: 16px; } }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .person__ph { width: 116px; height: 116px; }
  .wk__item { grid-template-columns: 54px 1fr; }
  .wk::before { left: 26px; }
  .sectiontabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sectiontabs::-webkit-scrollbar { display: none; }
  .stab { flex: none; }
}

@media (hover: none) { .panel__foot p { display: none; } }

@media print { .topbar, .rail, .panel, .scrim { display: none; } .js .reveal { opacity: 1; transform: none; } }
