/* =====================================================================
   Global Health & AI Lab
   Navy + sage academic style with sidebar layout.
   ===================================================================== */

:root {
  --navy:        #002145;
  --navy-2:      #0055b7;
  --navy-3:      #003e85;
  --link:        #1f6cb8;
  --sage:        #a8c08c;
  --sage-2:      #92ad77;
  --sage-soft:   #eef3e8;
  --ink:         #1a1a1a;
  --ink-soft:    #4a4a4a;
  --ink-mute:    #6e6e6e;
  --rule:        #e3e6ea;
  --rule-strong: #cfd5dc;
  --bg:          #ffffff;
  --bg-soft:     #f4f6f8;
  --bg-tint:     #eaf1f9;
  --shadow:        0 1px 2px rgba(0,33,69,.06), 0 4px 14px rgba(0,33,69,.06);
  --shadow-strong: 0 2px 6px rgba(0,33,69,.08), 0 18px 40px rgba(0,33,69,.12);
  --max:         1180px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-mute); }

/* ---------- identity band ---------- */
.id-band { background: var(--navy); color: #fff; }
.id-band-inner { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.id-band-faculty { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.id-band-unit { font-size: .9rem; color: #c9d4e3; }

/* ---------- page title ---------- */
.page-title { background: #fff; border-bottom: 4px solid var(--sage); }
.page-title-inner { max-width: var(--max); margin: 0 auto; padding: 34px 24px 26px; }
.page-title-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); font-weight: 700; margin-bottom: 6px; }
.page-title h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; letter-spacing: -.01em; }
.page-title h1 .amp { color: var(--sage-2); font-style: italic; font-weight: 400; padding: 0 .05em; }
.page-title-formerly { margin-top: 8px; font-size: 13px; color: var(--ink-mute); font-style: italic; }

/* ---------- tabs ---------- */
.tab-strip { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 2px 6px rgba(0,33,69,.04); }
.tab-strip-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; }
.tab-link { flex: 1; text-align: center; padding: 20px 10px 17px; font-size: 15px; font-weight: 700; letter-spacing: .14em; color: var(--navy); border-bottom: 3px solid transparent; transition: border-color .15s, background .15s; }
.tab-link:hover { background: var(--bg-soft); text-decoration: none; }
.tab-link.active { border-bottom-color: var(--sage); }
@media (max-width: 560px) { .tab-link { font-size: 12px; letter-spacing: .08em; padding: 16px 4px 13px; } }

/* ---------- layout ---------- */
.page-wrap-inner { max-width: var(--max); margin: 0 auto; padding: 36px 24px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; }
@media (max-width: 1000px) { .page-wrap-inner { grid-template-columns: 1fr; } .page-sidebar { position: static !important; } }
.page-main { min-width: 0; }
.block { margin-bottom: 56px; }
.block h2 { border-bottom: 2px solid var(--sage); padding-bottom: 8px; margin-bottom: 18px; display: inline-block; padding-right: 14px; }
.block-intro { color: var(--ink-soft); margin: 0 0 18px; max-width: 70ch; }
.sub-h3 { font-size: 1.25rem; margin: 8px 0 14px; }
.sub-h3-mt { margin-top: 40px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mission ---------- */
.hero-mission { position: relative; border-radius: 4px; overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); background: var(--navy); }
.hero-mission-image { width: 100%; height: 360px; object-fit: cover; filter: saturate(.85); animation: slowzoom 24s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero-mission::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,33,69,.15) 0%, rgba(0,33,69,.55) 60%, rgba(0,33,69,.85) 100%); pointer-events: none; }
.hero-mission-overlay { position: absolute; left: 36px; right: 36px; bottom: 32px; color: #fff; z-index: 2; }
.hero-mission-title { font-size: clamp(2.2rem, 5vw, 3.4rem); color: #fff; margin: 0 0 8px; font-weight: 700; border: 0 !important; display: block !important; padding: 0 !important; }
.hero-mission-text { max-width: 56ch; font-size: 1.08rem; color: #fff; line-height: 1.5; margin: 0; }
.hero-mission-title, .hero-mission-text { text-shadow: 0 2px 8px rgba(0,0,0,.45); }
@media (max-width: 560px) { .hero-mission-image { height: 260px; } .hero-mission-overlay { left: 20px; right: 20px; bottom: 20px; } }

/* ---------- goals ---------- */
.goals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .goals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .goals-grid { grid-template-columns: 1fr; } }
.goal-card { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--sage); border-radius: 4px; padding: 22px 22px 24px; transition: box-shadow .2s, transform .2s; }
.goal-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.goal-icon { width: 36px; height: 36px; margin-bottom: 12px; color: var(--navy-2); }
.goal-icon svg { width: 100%; height: 100%; }
.goal-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.goal-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- about ---------- */
.mhealth-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 720px) { .mhealth-grid { grid-template-columns: 1fr; } }
.mhealth-text p { color: var(--ink-soft); }
.mhealth-figure { margin: 0; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.about-illustration { display: block; width: 100%; height: auto; aspect-ratio: 360 / 280; }
.mhealth-figure figcaption { padding: 10px 14px; font-size: 12.5px; color: var(--ink-mute); font-style: italic; background: #fff; border-top: 1px solid var(--rule); }
.inline-person { font-weight: 600; }

/* ---------- timeline ---------- */
.timeline-wrap { position: relative; }
.timeline { list-style: none; margin: 0; padding: 22px 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.timeline li { scroll-snap-align: start; position: relative; background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--sage); border-radius: 4px; padding: 16px 18px; transition: box-shadow .2s, transform .2s; }
.timeline li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tl-year { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.tl-title { font-weight: 700; color: var(--navy-3); margin: 8px 0 4px; font-size: .95rem; }
.timeline p { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.timeline-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.tl-btn { width: 34px; height: 34px; border-radius: 4px; border: 1px solid var(--rule-strong); background: #fff; color: var(--navy); font-weight: 700; }
.tl-btn:hover { background: var(--bg-soft); }

/* ---------- map ---------- */
.map-wrap { background: #fff; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.world-map { width: 100%; height: 400px; background: var(--bg-soft); z-index: 0; }
.leaflet-container { font-family: var(--sans); }
.map-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
@media (max-width: 720px) { .map-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.map-list li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.map-list button { width: 100%; height: 100%; text-align: left; background: #fff; border: 0; padding: 10px 14px; border-left: 3px solid transparent; transition: background .15s; }
.map-list button:hover, .map-list button.on { background: var(--bg-soft); border-left-color: var(--sage); }
.map-list strong { display: block; color: var(--navy); font-size: .95rem; }
.map-list span { display: block; font-size: 12px; color: var(--ink-mute); line-height: 1.35; }
.map-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--navy-2); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(0,85,183,.2); }
.map-pin.key { background: #c75b12; box-shadow: 0 0 0 4px rgba(199,91,18,.25); animation: ping 2.4s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 9px rgba(199,91,18,0); } }
.leaflet-popup-content strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 1rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.chips-sm { margin: 12px 0 14px; }
.chip { border: 1px solid var(--rule-strong); background: #fff; border-radius: 3px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--navy); transition: background .15s, border-color .15s; }
.chips-sm .chip { padding: 4px 10px; font-size: 12.5px; }
.chip:hover { background: var(--bg-soft); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { opacity: .6; margin-left: 4px; font-weight: 400; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.member { display: flex; flex-direction: column; justify-content: flex-start; text-align: left; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 0; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.member:hover { box-shadow: var(--shadow-strong); transform: translateY(-3px); }
.member-photo { position: relative; aspect-ratio: 1 / 1.08; background: var(--bg-soft); overflow: hidden; border-bottom: 4px solid var(--sage); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform .5s; }
.member:hover .member-photo img { transform: scale(1.04); }
.member-photo .initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--serif); font-size: 2.8rem; font-weight: 600; color: #fff; background: var(--navy); }
.member-hover { position: absolute; inset: auto 0 0; padding: 30px 10px 10px; display: flex; flex-wrap: wrap; gap: 4px; background: linear-gradient(transparent, rgba(0,33,69,.88)); opacity: 0; transition: opacity .25s; }
.member:hover .member-hover, .member:focus-visible .member-hover { opacity: 1; }
.member-hover span { font-size: 11px; color: #fff; background: rgba(255,255,255,.18); padding: 2px 7px; border-radius: 3px; }
.member-info { padding: 12px 14px 14px; }
.member-name { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.02rem; line-height: 1.3; }
.member-creds { color: var(--ink-mute); font-family: var(--sans); font-weight: 400; font-size: 12.5px; }
.member-role { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.is-hidden { display: none !important; }

/* ---------- projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.project { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--sage); border-radius: 4px; padding: 18px 18px 16px; transition: box-shadow .2s, transform .2s; }
.project:hover { box-shadow: var(--shadow-strong); transform: translateY(-3px); }
.project-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.status { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); background: var(--bg-soft); padding: 2px 8px; border-radius: 3px; }
.status-active { color: #2f5f1e; background: var(--sage-soft); }
.project-where { font-size: 12px; color: var(--ink-mute); text-align: right; }
.project h3 { font-size: 1.08rem; margin: 0 0 6px; }
.project p { color: var(--ink-soft); font-size: .93rem; flex: 1; margin: 0; }
.avatars { display: flex; margin-top: 12px; }
.avatars .av { width: 28px; height: 28px; margin-right: -6px; border: 2px solid #fff; }
.project-more { font-size: 13px; font-weight: 600; color: var(--link); margin-top: 10px; }
.av { border-radius: 50%; overflow: hidden; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* ---------- publications ---------- */
.pub-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 0 12px; }
.search:focus-within { border-color: var(--navy-2); box-shadow: 0 0 0 3px var(--bg-tint); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-mute); stroke-width: 2; flex: none; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; padding: 9px 0; width: 100%; color: var(--ink); }
.pub-controls select { background: #fff; border: 1px solid var(--rule-strong); border-radius: 4px; padding: 9px 10px; font: inherit; font-size: 14px; color: var(--ink); }
.toggle { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.toggle input { accent-color: var(--navy); }
.pub-status { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--ink-mute); margin-bottom: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; }
.pub-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.pub { border-bottom: 1px solid var(--rule); animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.pub.open { background: var(--bg-soft); }
.pub-head { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; width: 100%; text-align: left; background: none; border: 0; padding: 14px 6px; }
.pub-head:hover .pub-title { color: var(--link); }
.pub-year { font-family: var(--serif); font-weight: 700; color: var(--sage-2); font-size: 1.05rem; line-height: 1.5; }
.pub-title { display: block; font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.4; }
.pub-meta { display: block; font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.pub-meta i { color: var(--ink-soft); }
.pub-desc { color: var(--ink-soft); font-size: .93rem; margin-top: 5px; }
.pub-chev { color: var(--navy-2); font-size: .8rem; padding-top: 4px; transition: transform .25s; }
.pub.open .pub-chev { transform: rotate(180deg); }
.pub-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.pub.open .pub-body { grid-template-rows: 1fr; }
.pub-body > div { overflow: hidden; }
.pub-detail { padding: 0 6px 16px 74px; }
@media (max-width: 640px) { .pub-head { grid-template-columns: 1fr auto; } .pub-year { grid-column: 1 / -1; } .pub-detail { padding-left: 6px; } }
.pub-authors { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 8px; }
.pub-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: var(--bg-tint); color: var(--navy-3); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-actions a, .pub-actions button { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 3px; border: 1px solid var(--rule-strong); background: #fff; color: var(--navy); }
.pub-actions a:hover, .pub-actions button:hover { background: var(--navy); color: #fff; text-decoration: none; }
.star { color: #c99a06; margin-left: 6px; font-size: .85em; }
mark { background: #fff1a8; color: inherit; padding: 0 1px; }
.more-btn { display: block; width: 100%; margin-top: 14px; padding: 10px; background: #fff; border: 1px solid var(--rule-strong); border-radius: 4px; font-weight: 600; color: var(--navy); }
.more-btn:hover { background: var(--bg-soft); }
.pub-source { margin-top: 14px; font-size: 13px; color: var(--ink-mute); }
.pub-source code { background: var(--bg-soft); padding: 1px 5px; border-radius: 3px; }
.empty { padding: 30px; text-align: center; color: var(--ink-mute); }

/* ---------- partners ---------- */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.partner-tile { background: #fff; border: 1px solid var(--rule); border-radius: 4px; height: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px 10px; transition: box-shadow .2s; }
.partner-tile:hover { box-shadow: var(--shadow); }
.partner-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.partner-name { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 70px 110px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
@media (max-width: 600px) { .news-list li { grid-template-columns: 1fr; gap: 4px; } }
.news-date { font-family: var(--serif); font-weight: 700; color: var(--navy); }

/* ---------- COI ---------- */
.block-coi { background: var(--bg-soft); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 22px; }
.block-coi h3 { margin: 0 0 8px; font-size: .85rem; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.block-coi p { font-size: 13.5px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------- sidebar ---------- */
.page-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 78px; max-height: calc(100vh - 90px); overflow-y: auto; scrollbar-width: thin; }
.side-block { background: #fff; border: 1px solid var(--rule); border-radius: 4px; }
.side-title { background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; font-size: 14.5px; padding: 10px 14px; border-radius: 4px 4px 0 0; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px solid var(--rule); }
.side-links li:last-child { border-bottom: 0; }
.side-links a { display: block; padding: 9px 14px; font-size: 14px; color: var(--ink-soft); border-left: 3px solid transparent; transition: background .15s, border-color .15s; }
.side-links a:hover { background: var(--bg-soft); color: var(--navy); text-decoration: none; }
.side-links a.active { border-left-color: var(--sage); color: var(--navy); font-weight: 600; background: var(--bg-soft); }
.faculty-block-side { display: block; width: 100%; text-align: left; background: #fff; border: 0; padding: 12px 14px; border-radius: 0 0 4px 4px; }
.faculty-block-side:hover { background: var(--bg-soft); }
.faculty-name { display: block; font-family: var(--serif); color: var(--navy); font-weight: 600; font-size: 1.02rem; }
.faculty-meta { display: block; font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.accordion { list-style: none; padding: 0; margin: 0; }
.accordion li { border-bottom: 1px solid var(--rule); }
.accordion li:last-child { border-bottom: 0; }
.accordion summary { cursor: pointer; padding: 9px 14px 9px 32px; font-size: 13.5px; color: var(--ink-soft); position: relative; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: "+"; position: absolute; left: 14px; top: 8px; font-weight: 700; color: var(--navy-2); }
.accordion details[open] summary::before { content: "\2212"; }
.accordion details[open] summary { color: var(--navy); font-weight: 600; }
.accordion summary:hover { background: var(--bg-soft); color: var(--navy); }
.acc-body { padding: 0 14px 12px 32px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.acc-more { display: inline; background: none; border: 0; padding: 0; color: var(--link); font-weight: 600; font-size: 13px; }
.side-block-pubs { background: var(--bg-tint); border-color: var(--rule-strong); }
.side-block-pubs p { padding: 12px 14px 0; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 10px; }
.side-link-button { display: block; margin: 0 14px 14px; background: var(--navy); color: #fff; text-align: center; padding: 9px 12px; font-size: 13.5px; font-weight: 600; border-radius: 3px; }
.side-link-button:hover { background: var(--navy-3); text-decoration: none; }

/* ---------- contact ---------- */
.contact-strip { background: var(--bg-soft); border-top: 4px solid var(--sage); }
.contact-strip-inner { max-width: var(--max); margin: 0 auto; padding: 28px 24px 36px; }
.contact-block { font-size: 14px; color: var(--navy); line-height: 1.7; }
.contact-title { font-size: 15.5px; margin-bottom: 4px; }
.contact-row a { color: var(--navy); text-decoration: underline; }
.back-to-top { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--navy); text-decoration: underline; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,33,69,.55); animation: fade .2s; }
.modal-panel { position: relative; width: min(860px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 4px; border-top: 5px solid var(--sage); box-shadow: var(--shadow-strong); animation: pop .25s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } }
.modal-close { position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; width: 36px; height: 36px; border-radius: 4px; border: 1px solid var(--rule-strong); background: #fff; font-size: 1.4rem; line-height: 1; color: var(--navy); z-index: 2; }
.profile { display: grid; grid-template-columns: 230px 1fr; }
@media (max-width: 680px) { .profile { grid-template-columns: 1fr; } .profile-side { flex-direction: row; align-items: center; } .profile-side .av { width: 96px !important; height: 96px !important; } }
.profile-side { padding: 30px 22px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 16px; }
.profile-side .av { width: 100%; height: auto; aspect-ratio: 1 / 1.1; border-radius: 4px; font-family: var(--serif); font-size: 3rem; }
.profile-links { display: flex; flex-direction: column; gap: 6px; }
.profile-links a { font-size: 14px; font-weight: 600; }
.profile-main { padding: 32px 32px 28px; }
@media (max-width: 680px) { .profile-main { padding: 22px; } }
.profile-main h2 { font-size: 1.75rem; margin-bottom: 4px; padding-right: 40px; }
.profile-role { color: var(--navy-2); font-weight: 600; }
.profile-aff { color: var(--ink-mute); font-size: 14px; margin-bottom: 18px; font-style: italic; }
.profile-main p { color: var(--ink-soft); }
.profile-main h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--sage); display: inline-block; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-list span { font-size: 13px; padding: 3px 9px; border-radius: 3px; background: var(--sage-soft); color: #2f5f1e; }
.plain-list { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.plain-list li { margin-bottom: 4px; }
.edu div { margin-bottom: 8px; }
.edu strong { display: block; color: var(--ink); }
.edu span { color: var(--ink-mute); font-size: 14px; }
.proj-modal { padding: 34px; }
@media (max-width: 680px) { .proj-modal { padding: 22px; } }
.proj-modal h2 { padding-right: 40px; }
.proj-modal .section-lede { font-size: 1.05rem; color: var(--ink); }
.proj-modal .eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.proj-people { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-person { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; }
.proj-person:hover { background: var(--bg-soft); }
.proj-person .av { width: 30px; height: 30px; font-size: .75rem; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 4px; font-size: 14px; opacity: 0; transition: all .3s; z-index: 120; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
