:root {
  --paper: #F3F5F7;
  --panel: #FFFFFF;
  --ink: #18202E;
  --muted: #586374;
  --rule: #D6DCE4;
  --uv: #4B3BC4;
  --uv-dark: #3B2DA6;
  --uv-soft: #E7E4FA;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --measure: 40rem;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }

a { color: var(--uv); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--uv); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--panel); padding: .5rem 1rem; z-index: 20; }

/* Text you still need to write. Delete the class="fill-in" once you've replaced it. */
.fill-in { color: var(--ink); background: #FFF4CC; box-shadow: 0 0 0 1px #F0D77A; border-radius: 3px; padding: 0 .2em; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(243, 245, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.topbar-inner {
  max-width: 74rem; margin: 0 auto; padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; color: var(--ink); text-decoration: none; font-size: 1rem; white-space: nowrap; }
.topbar nav ul { list-style: none; display: flex; gap: 1.2rem; margin: 0; padding: 0; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; padding: .2rem 0; }
.topbar nav a:hover { color: var(--ink); }
.topbar nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--uv); }

/* ---------- photo slots ---------- */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: #E4E8EE; }
.photo figcaption { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .5rem; line-height: 1.45; }
.frame { aspect-ratio: var(--ratio, 4 / 3); }
.frame > img, .frame > .empty { width: 100%; height: 100%; }

/* Shown automatically when an image file is missing */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  text-align: center; padding: 1rem;
  border: 1.5px dashed #B9B2EE; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #F7F6FE 0 12px, #F1EFFC 12px 24px);
  color: #4A4380; font-family: var(--sans); font-size: .8rem; line-height: 1.35;
}
.empty svg { width: 1.6rem; height: 1.6rem; opacity: .7; }
.empty code { font-size: .75rem; background: rgba(255,255,255,.8); padding: .1rem .35rem; border-radius: 3px; word-break: break-all; }

/* ---------- home hero (photo) ---------- */
.hero {
  position: relative; min-height: min(100svh, 56rem);
  display: flex; align-items: flex-end;
  color: #fff; background: #0C1020;
  background-image:
    linear-gradient(90deg, rgba(8, 11, 24, .82) 0%, rgba(8, 11, 24, .55) 38%, rgba(8, 11, 24, 0) 62%),
    linear-gradient(0deg, rgba(8, 11, 24, .7) 0%, rgba(8, 11, 24, 0) 35%),
    url("../images/hanle-hct.jpg");
  background-size: cover, cover, max(125%, 1500px) auto; background-position: 0 0, 0 0, 0% 66%; background-repeat: no-repeat;
}
@media (min-aspect-ratio: 16/8) { .hero { background-size: cover, cover, cover; background-position: 0 0, 0 0, 30% 66%; } }
.hero-inner { width: 100%; max-width: 74rem; margin: 0 auto; padding: 8rem 1.5rem 5.5rem; }
.hero-inner > * { max-width: 31rem; }
.hero-inner > h1 { max-width: none; }
.portrait {
  width: 7rem; height: 7rem; margin: 0 0 1.4rem; border-radius: 50%;
  padding: 3px; background: rgba(255,255,255,.85);
}
.portrait img, .portrait .empty { border-radius: 50%; width: 100%; height: 100%; }
.portrait .empty { padding: .5rem; font-size: .68rem; border-color: transparent; }
.portrait .empty svg { width: 1.2rem; height: 1.2rem; }
.portrait .empty code { display: none; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(2.6rem, 5.6vw, 4.3rem); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 .8rem; text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.role { font-family: var(--sans); font-size: 1.15rem; color: rgba(255,255,255,.85); margin: 0 0 1.25rem; line-height: 1.5; }
.lede { margin: 0 0 1.75rem; color: rgba(255,255,255,.92); }
.hero .links a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(4px); }
.hero .links a:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }
.hero .links a.primary { background: #fff; border-color: #fff; color: var(--ink); }
.hero .links a.primary:hover { background: var(--uv-soft); color: var(--ink); }
.hero a:focus-visible { outline-color: #fff; }
.photo-credit {
  position: absolute; right: 1.25rem; bottom: .9rem; margin: 0; max-width: 60%;
  font-family: var(--sans); font-size: .75rem; color: rgba(255,255,255,.7); text-align: right;
}
.photo-credit a { color: rgba(255,255,255,.9); }

.links { display: flex; flex-wrap: wrap; gap: .6rem; font-family: var(--sans); font-size: .95rem; margin: 0; padding: 0; list-style: none; }
.links a, .btn {
  display: inline-block; padding: .45rem .9rem; border: 1px solid var(--rule); border-radius: 999px;
  color: var(--ink); text-decoration: none; background: var(--panel); font-family: var(--sans); font-size: .95rem; cursor: pointer;
}
.links a:hover, .btn:hover { border-color: var(--uv); color: var(--uv); }
.links a.primary { background: var(--uv); border-color: var(--uv); color: #fff; }
.links a.primary:hover { background: var(--uv-dark); color: #fff; }

/* menu floats over the photo on the home page until you scroll */
body.home .topbar { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .25s, border-color .25s; }
body.home .topbar .wordmark, body.home .topbar nav a { color: rgba(255,255,255,.88); }
body.home .topbar nav a:hover { color: #fff; }
body.home .topbar nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
body.home .topbar.solid { background: rgba(243, 245, 247, 0.94); border-bottom-color: var(--rule); backdrop-filter: blur(8px); }
body.home .topbar.solid .wordmark { color: var(--ink); }
body.home .topbar.solid nav a { color: var(--muted); }
body.home .topbar.solid nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--uv); }

/* ---------- inner page header: a band of the Hanle sky ---------- */
.page-head {
  color: #fff;
  background-image: linear-gradient(90deg, rgba(8, 11, 24, .78), rgba(8, 11, 24, .35)), url("../images/hanle-hct.jpg");
  background-size: cover; background-position: center 28%;
}
.page-head .inner { max-width: 74rem; margin: 0 auto; padding: 4rem 1.5rem 3rem; }
.page-head h1 { font-weight: 600; font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .6rem; }
.page-head p { margin: 0; max-width: 40rem; color: rgba(255,255,255,.85); }
.page-head .fill-in { color: var(--ink); }
.intro-block { padding: 3.25rem 0; }

/* ---------- sections ---------- */
main { max-width: 74rem; margin: 0 auto; padding: 0 1.5rem 4rem; }
.section {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2.5rem;
  padding: 3.25rem 0; border-top: 1px solid var(--rule);
}
.section > h2 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; letter-spacing: .01em; color: #2A3346; margin: .35rem 0 0; }
.section-body { max-width: var(--measure); }
.section-body.wide { max-width: 52rem; }
.section-body.full { max-width: none; }
.section-body > p:first-child { margin-top: 0; }
.more { font-family: var(--sans); font-size: .95rem; margin-top: 1.5rem; }

h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 2rem 0 .5rem; line-height: 1.3; }
.section-body > h3:first-child { margin-top: 0; }
.note { font-family: var(--sans); font-size: .9rem; color: var(--muted); }

/* research themes with figures */
.theme { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 2rem; align-items: start; }
.theme + .theme { margin-top: 2.5rem; }
.theme h3 { margin-top: 0; }
.theme p { margin: 0; }
.theme.compact { display: block; }

.tags { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; font-family: var(--sans); font-size: .85rem; }
.tags li { background: var(--uv-soft); color: #33288f; padding: .25rem .7rem; border-radius: 999px; }

/* news */
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.news li:last-child { border-bottom: 0; }
.news .when { font-family: var(--sans); font-size: .9rem; color: var(--muted); padding-top: .15rem; font-variant-numeric: tabular-nums; }

/* entries */
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.entries li:last-child { border-bottom: 0; }
.entries .what { font-weight: 500; }
.entries .where { grid-column: 1; color: var(--muted); font-size: 1rem; }
.entries .when { grid-column: 2; grid-row: 1; font-family: var(--sans); font-size: .9rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* publications */
.pub-summary { font-family: var(--sans); font-size: .95rem; color: var(--muted); margin: 0 0 1.5rem; }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: .9rem 0 .9rem 1.1rem; border-left: 2px solid transparent; margin-left: -1.1rem; }
.pubs li + li { border-top: 1px solid var(--rule); }
.pubs li.key { border-left-color: var(--uv); }
.pub-title { display: block; font-weight: 500; line-height: 1.4; }
.pub-authors { display: block; color: var(--muted); font-size: 1rem; }
.pub-authors b { color: var(--ink); font-weight: 600; }
.pub-meta { display: block; font-family: var(--sans); font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.pub-meta a { margin-left: .6rem; }
.key-legend { display: inline-block; width: 2px; height: 1em; background: var(--uv); vertical-align: -0.15em; margin-right: .35rem; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; font-family: var(--sans); font-weight: 600; font-size: .95rem; padding: 1.5rem 0 .4rem; }
th { text-align: left; font-family: var(--sans); font-weight: 500; font-size: .85rem; color: var(--muted); padding: .4rem .75rem .4rem 0; border-bottom: 1px solid var(--rule); }
td { padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num { font-family: var(--sans); font-size: .9rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.totals li { font-family: var(--sans); font-size: .85rem; color: var(--muted); line-height: 1.3; }
.totals strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); }

.talks { list-style: none; margin: 0; padding: 0; }
.talks li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: .45rem 0; }
.talks .when { font-family: var(--sans); font-size: .9rem; color: var(--muted); padding-top: .15rem; font-variant-numeric: tabular-nums; }

.plain { padding-left: 1.1rem; margin: 0; }
.plain li { margin: .5rem 0; }
.plain li span { color: var(--muted); }

/* ---------- about ---------- */
.about-intro { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.about-intro .frame { --ratio: 4 / 5; }
.about-intro h1 { margin-top: 0; }
.about-intro p { color: var(--ink); max-width: 38rem; margin: 0 0 1rem; }

/* ---------- photo + text rows (outreach, mentoring) ---------- */
.story { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; align-items: start; padding: 1.75rem 0; border-bottom: 1px solid var(--rule); }
.story:first-of-type { padding-top: 0; }
.story:last-child { border-bottom: 0; }
.story h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.story .meta { font-family: var(--sans); font-size: .88rem; color: var(--muted); margin: 0 0 .6rem; }
.story p { margin: 0; }
.story .photos { display: grid; gap: .6rem; }
.story .photos.two { grid-template-columns: 1fr 1fr; }
.story.feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; }
.story.feature .photos { grid-template-columns: 1.6fr 1fr; }
.story.feature .photos .photo:first-child { grid-row: span 2; }
.story.feature .photos .photo:first-child .frame { --ratio: auto; height: 100%; min-height: 16rem; }


/* ---------- media ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0F1420; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.videos h3 { margin: .9rem 0 .2rem; font-size: 1.1rem; }
.videos p { margin: 0; font-size: 1rem; }
.press { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.clip h3 { font-size: 1.05rem; margin: .85rem 0 .2rem; line-height: 1.35; }
.clip h3 a { color: var(--ink); text-decoration: none; }
.clip h3 a:hover { color: var(--uv); text-decoration: underline; }
.clip .meta { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery { columns: 3 16rem; column-gap: 1rem; }
.gallery .tile { break-inside: avoid; margin: 0 0 1rem; }
.gallery button.open { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: var(--radius); }
.gallery button.open:focus-visible { outline: 2px solid var(--uv); outline-offset: 3px; }
.gallery .tile img { border-radius: var(--radius); display: block; width: 100%; }
.gallery .tile figcaption { font-family: var(--sans); font-size: .85rem; color: var(--muted); margin-top: .4rem; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 70rem); max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(14, 18, 28, .88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: #E8EBF0; font-family: var(--sans); text-align: center; margin-top: .75rem; }
.lightbox .nav { display: flex; justify-content: center; gap: .6rem; margin-top: .75rem; }

/* ---------- contact ---------- */
.contact-card {
  display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 2rem;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.75rem 2rem; border-top: 3px solid var(--uv);
}
.contact-card h3 { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--muted); margin: 0 0 .35rem; letter-spacing: .01em; }
.contact-card p { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.contact-card .big { font-size: 1.15rem; font-weight: 600; word-break: break-word; }

/* ---------- about extras ---------- */
.skills { margin: 0; }
.skills div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.skills div:last-child { border-bottom: 0; }
.skills dt { font-family: var(--sans); font-weight: 600; font-size: .95rem; padding-top: .1rem; }
.skills dd { margin: 0; }
.story.text-only { grid-template-columns: minmax(0, 1fr); }
.beyond-intro { max-width: 42rem; margin-bottom: 2rem; }
.beyond-intro p { margin: 0; }

/* CV link in the menu */
.topbar nav a.nav-cv { border: 1px solid currentColor; border-radius: 999px; padding: .15rem .7rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .9rem; color: var(--muted); }
footer .inner { max-width: 74rem; margin: 0 auto; padding: 2.25rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.25rem; }
footer .foot-contact p { margin: 0; line-height: 1.5; }
footer .foot-name { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: .2rem !important; }
footer .credit { flex-basis: 100%; margin: 0; font-size: .8rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: .35rem; padding: .6rem 1.25rem; }
  .topbar nav { width: 100%; overflow-x: auto; }
}
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    background-image: linear-gradient(180deg, rgba(8,11,24,.35) 0, rgba(8,11,24,0) 18%, rgba(12,16,32,0) 34%, #0C1020 54svh), url("../images/hanle-hct.jpg");
    background-size: 100% 100%, auto 62svh; background-position: 0 0, 52% 0;
  }
  .hero-inner { padding: 50svh 1.25rem 4.5rem; }
  .photo-credit { left: 1.25rem; right: 1.25rem; max-width: none; text-align: left; bottom: .6rem; }
  .section { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 2.5rem 0; }
  .theme { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .theme .photo { order: -1; max-width: 24rem; }
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .about-intro .photo { max-width: 18rem; }
  .press { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story, .story.feature { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .videos, }
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .press, .contact-card { grid-template-columns: minmax(0, 1fr); }
  .entries li { grid-template-columns: 1fr; }
  .entries .when { grid-column: 1; grid-row: auto; }
  .skills div { grid-template-columns: 1fr; gap: .1rem; }
  .contact-card { padding: 1.25rem; }
  .talks li, .news li { grid-template-columns: 1fr; gap: 0; }
  table, caption, tbody, tr, td { display: block; }
  thead { position: absolute; left: -9999px; }
  tr { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
  td { border: 0; padding: 0; }
  td:first-child { font-weight: 500; }
  td.num { display: inline; color: var(--muted); }
  td.num + td.num::before { content: ", "; }
  td:last-child { margin-top: .2rem; }
}

/* Small, unobtrusive research navigation; original design otherwise unchanged. */
.hero .quick-highlights { margin: 1.25rem 0 0; font-size: .94rem; line-height: 1.8; color: rgba(255,255,255,.88); }
.hero .quick-highlights a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.5); text-underline-offset: .2em; }
.hero .quick-highlights a:hover { text-decoration-color: #fff; }
.theme p + p { margin-top: .8rem; }
.theme .research-reference { margin-top: .8rem; font-family: var(--sans); font-size: .93rem; }
.theme[id] { scroll-margin-top: 6rem; }

/* November 2026 refinement: legibility, contact access, and presentation lists. */
.topbar nav a { font-size: 1rem; font-weight: 500; }
.topbar nav a.nav-contact { color: var(--uv); font-weight: 700; border-bottom: 1px solid currentColor; }
body.home .topbar:not(.solid) nav a.nav-contact { color: #fff; }
.page-head h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
body:not(.home) .section-body p, body:not(.home) .section-body .story p, body:not(.home) .section-body .theme p { max-width: 74ch; }
body:has(.page-head) .section-body { line-height: 1.7; }
body:has(.page-head) .section-body p { hyphens: auto; }
/* Justification is intentionally limited to About and Research. */
body.page-justified main p { text-align: justify; text-justify: inter-word; hyphens: auto; }
.talks-intro { max-width: 65ch; margin: 0 0 2rem; color: var(--muted); font-family: var(--sans); font-size: 1.04rem; }
.talks-section { margin: 0 0 3rem; }
.talks-section h2 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; letter-spacing: .015em; border-bottom: 2px solid var(--ink); padding-bottom: .75rem; margin-bottom: .4rem; }
.talk-list { padding: 0; margin: 0; list-style: none; }
.talk-item { display: grid; grid-template-columns: 8.3rem minmax(0,1fr); gap: 1.6rem; padding: 1rem .2rem; border-bottom: 1px solid var(--rule); align-items: baseline; }
.talk-date { font-family: var(--sans); color: var(--muted); font-size: .93rem; font-variant-numeric: tabular-nums; }
.talk-title { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; line-height: 1.35; }
.talk-venue { font-family: var(--sans); color: var(--muted); font-size: .96rem; margin-top: .25rem; }
.talk-badge { display: inline-block; margin-top: .45rem; font-family: var(--sans); font-size: .75rem; font-weight: 700; color: var(--uv-dark); background: var(--uv-soft); border-radius: 3px; padding: .12rem .5rem; }
@media(max-width:600px) { .talk-item { grid-template-columns: 1fr; gap: .25rem; } body.page-justified main p { text-align: left; } }

/* 2026 refinement: understated research-interest feature */
.research-pitch{font-family:"Source Serif 4",Georgia,serif;font-size:clamp(1.25rem,2.1vw,1.65rem);line-height:1.48;max-width:48rem;margin:0 0 1.35rem;color:var(--ink,#202b35);text-align:left!important}
.research-pitch strong{font-weight:600}
.interest-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid #d9dedb;border-bottom:1px solid #d9dedb;margin:1.1rem 0 1.3rem}
.interest-links a{padding:1.05rem .85rem 1.1rem 0;display:flex;gap:.55rem;align-items:baseline;text-decoration:none;font-size:1rem;line-height:1.35;font-weight:600;color:inherit;border-right:1px solid #d9dedb}
.interest-links a:not(:first-child){padding-left:.85rem}
.interest-links a:last-child{border-right:0}
.interest-links a span{font-size:.74rem;opacity:.55;font-weight:500}
.interest-links a b{margin-left:auto;font-weight:400;opacity:.6}
.interest-links a:hover{color:#2b6d59}
.soft-separator{margin:0 .65rem;color:#9da5a0}
.about-interest{font-family:"Source Serif 4",Georgia,serif;font-size:1.18rem;line-height:1.7;max-width:55rem;text-align:justify}
@media(max-width:720px){.interest-links{grid-template-columns:1fr}.interest-links a,.interest-links a:not(:first-child){padding:.8rem 0;border-right:0;border-bottom:1px solid #d9dedb}.interest-links a:last-child{border-bottom:0}.about-interest{text-align:left}}

/* November 2026 readability and typographic refinement */
:root { --serif: Georgia, 'Times New Roman', serif; --sans: 'Source Sans 3', system-ui, -apple-system, sans-serif; }
.topbar nav a { font-size: 1.065rem !important; font-weight: 600; letter-spacing: .005em; }
.topbar .brand { letter-spacing: -.012em; }
.page-head h1 { font-family: var(--serif); font-size: clamp(2.05rem, 3.15vw, 2.65rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.17; }
.section > h2, .talks-section h2 { font-size: 1.18rem; letter-spacing: 0; line-height: 1.35; }
main p, main li { line-height: 1.75; }
main a:not(.button) { text-underline-offset: .18em; text-decoration-thickness: .065em; }
main a:hover { text-decoration-thickness: .12em; }
.talks-intro { color: var(--ink); font-family: var(--serif); font-size: 1.28rem; font-weight: 500; margin-bottom: 2rem; }
.talks-section { margin-bottom: 2.75rem; }
.talk-item { padding-block: 1.05rem; }
.talk-title { font-size: 1.18rem; }
.secondary-email { margin-top: .25rem !important; font-size: 1rem; color: var(--muted); }
@media (max-width: 700px) { .topbar nav a { font-size: 1rem !important; } }

/* Refined typographic system: Newsreader + Inter */
:root { --serif: "Newsreader", Georgia, serif; --sans: "Inter", system-ui, sans-serif; }
body {font-size:1.09rem;line-height:1.7;}
.topbar nav a {font-size:1rem;font-weight:550;}
.wordmark {font-size:1.12rem;letter-spacing:-.02em;}
.hero h1 {font-size:clamp(2.8rem,5vw,4rem);font-weight:500;letter-spacing:-.035em;}
.page-head h1 {font-size:clamp(2.15rem,3.5vw,2.85rem);font-weight:500;}
h2,h3,.section>h2 {letter-spacing:-.018em;}
.section>h2 {font-size:1.18rem;font-weight:650;}
.research-pitch,.about-interest {font-family:var(--serif);font-weight:400;}
.talk-title {font-family:var(--serif);font-weight:500;}
.pub-title {font-weight:550;}
/* Larger, editorial publication numbers without repeating the CV */
.achievement-strip {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem;margin:0 0 1.65rem;padding:1.3rem 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);}
.achievement-strip .value {font-family:var(--serif);font-size:clamp(2.65rem,5vw,4.2rem);font-weight:500;letter-spacing:-.05em;line-height:1.1;color:var(--ink);display:block;}
.achievement-strip .label {font-family:var(--sans);font-size:.79rem;line-height:1.45;color:var(--muted);display:block;margin-top:.3rem;}
/* A wider, more useful contact destination and footer */
.contact-section .contact-card {grid-template-columns:1.4fr 1fr 1fr;padding:2rem;gap:2rem;}
.contact-section .contact-card .big {font-size:clamp(1.1rem,1.8vw,1.5rem);}
.contact-invite {font-family:var(--serif);font-size:clamp(1.45rem,2.3vw,2rem);line-height:1.35;max-width:48rem;margin:0 0 1.3rem;}
.contact-actions {display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.3rem;font-family:var(--sans);font-size:.95rem;}
.contact-actions a {display:inline-block;border:1px solid var(--rule);border-radius:4px;padding:.6rem 1rem;text-decoration:none;background:#fff;}
.contact-actions a:first-child {background:var(--ink);color:#fff;border-color:var(--ink);}
footer .inner {max-width:82rem;padding:3.4rem 2rem 2.8rem;gap:2rem;}
footer {background:#e9edf2;}
footer .foot-name {font-size:1.3rem;}
footer ul {gap:1.3rem;}
@media(max-width:760px){.achievement-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}.achievement-strip .value{font-size:2.3rem}.achievement-strip .label{font-size:.71rem}.contact-section .contact-card{grid-template-columns:1fr;padding:1.4rem;gap:1.2rem}}

/* Public-facing research and About refinements */
.research-pitch {font-family:var(--serif);font-size:clamp(1.32rem,2.15vw,1.7rem);line-height:1.52;max-width:56rem}
.interest-links a {font-family:var(--sans);font-size:clamp(1.05rem,1.35vw,1.18rem);line-height:1.45;font-weight:600;align-items:flex-start;padding-top:1.3rem;padding-bottom:1.3rem}
.interest-links a span {font-size:.82rem;flex-shrink:0;margin-top:.12rem}
.about-intro {grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);gap:clamp(1.5rem,3.5vw,3rem)}
.about-intro .about-copy p {font-size:clamp(1.18rem,1.45vw,1.32rem);line-height:1.72;max-width:66ch;margin-bottom:1.2rem}
.about-intro .about-copy .about-lead {font-size:clamp(1.27rem,1.75vw,1.48rem);line-height:1.57;font-weight:500}
.page-head > .inner > p {font-size:clamp(1.2rem,1.6vw,1.42rem);line-height:1.5}
.about-intro a {text-decoration-color:rgba(75,59,196,.45)}
@media(max-width:720px){.about-intro{grid-template-columns:1fr}.about-intro .about-copy p{text-align:left!important}.interest-links a{font-size:1.1rem}}

/* November 2026: restore the original small portrait above the homepage name. */
.hero-portrait{display:block;width:7.25rem;height:7.25rem;margin:0 0 1.25rem;border-radius:50%;background:rgba(255,255,255,.16);border:2px solid rgba(255,255,255,.75);overflow:hidden;position:relative}
.hero-portrait img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.hero-portrait:has(img:not([src]))::after{content:'Your photo';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:500 .85rem var(--sans)}
/* Clear, consistent research project headings without oversized display typography. */
.theme h3{font-family:var(--sans);font-size:clamp(1.3rem,2vw,1.58rem);line-height:1.27;font-weight:650;letter-spacing:-.018em;color:var(--ink);margin:0 0 .8rem}
.theme p + p{margin-top:1rem}
.theme .research-reference{margin-top:1.05rem}
.research-wordcloud{margin:2.7rem 0 .25rem;padding:1rem;background:#fff;border:1px solid var(--rule);border-radius:8px}
.research-wordcloud img{display:block;width:100%;height:auto}
.research-wordcloud figcaption{font-family:var(--sans);font-size:.84rem;color:var(--muted);margin:.3rem .35rem 0}
@media(max-width:650px){.hero-portrait{width:6.2rem;height:6.2rem}.research-wordcloud{padding:.35rem}}

/* Compact word cloud beneath the Research projects heading */
.research-section-side{min-width:0}
.research-section-side h2{font-family:var(--sans);font-weight:600;font-size:1.1rem;letter-spacing:.01em;color:#2A3346;margin:.35rem 0 0}
.research-sidebar-wordcloud{display:block;width:100%;max-width:13rem;height:auto;margin:1.15rem auto 0}
@media(max-width:750px){.research-sidebar-wordcloud{max-width:12rem;margin:1rem 0 0}}

/* Research questions in the existing Research projects sidebar */
.research-questions {
  margin: 1.2rem 0 1.5rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: left;
}
.research-questions li { margin-bottom: 0.8rem; }

/* Homepage research questions: wider, balanced two-column layout. */
.home-research-interests .section-body{max-width:none;min-width:0}
.home-research-interests .research-pitch{max-width:66rem}
.home-research-interests .research-question-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:1.6rem}
.home-research-interests .research-question-links a{min-width:0;gap:.9rem;align-items:flex-start;padding:1.2rem 1.4rem 1.2rem 0;border-right:0;border-bottom:1px solid var(--rule);font-size:clamp(1.05rem,1.5vw,1.25rem);font-weight:550;line-height:1.4}
.home-research-interests .research-question-links a:nth-child(even){padding-left:1.5rem}
.home-research-interests .research-question-links a:nth-child(-n+2){border-top:0}
.home-research-interests .research-question-links a:nth-last-child(-n+2){border-bottom:0}
.home-research-interests .research-question-links .question-text{flex:1;opacity:1;font-size:inherit;font-weight:inherit;margin:0}
.home-research-interests .research-question-links a > span:first-child{margin-top:.18rem}
.home-research-interests .research-question-links a b{flex-shrink:0}
@media(max-width:760px){.home-research-interests .research-question-links{grid-template-columns:1fr}.home-research-interests .research-question-links a,.home-research-interests .research-question-links a:nth-child(even){padding:1rem 0;border-bottom:1px solid var(--rule)}.home-research-interests .research-question-links a:last-child{border-bottom:0}}

/* Research figures: edit these two values to resize ALL three together. */
:root {
  --research-figure-width: 29rem;
  --research-figure-ratio: 1 / 1;
}
@media (min-width: 780px) {
  .theme { grid-template-columns: minmax(0, 1fr) var(--research-figure-width); }
}
.theme .photo { width: 100%; min-width: 0; }
.theme .frame {
  aspect-ratio: var(--research-figure-ratio);
  width: 100%;
  height: auto;
  overflow: hidden;
}
.theme .frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* show complete scientific figures, without cropping */
  background: transparent;
}
@media (max-width: 779px) {
  .theme .photo { max-width: min(100%, var(--research-figure-width)); }
}

/* Allow the research descriptions and much larger figures to use the available page width. */
#research-projects .section-body.wide { max-width: none; }
@media (min-width: 780px) { #research-projects .theme { gap: 1.5rem; } }

/* Research page: full-width section heading with a compact word cloud,
   readable consistent text columns, and independently adjustable figures. */
#research-projects {
  grid-template-columns: minmax(0, 1fr);
  gap: 1.7rem;
}
#research-projects .research-section-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 12rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .85rem;
}
#research-projects .research-section-side h2 { margin: 0; flex: 0 0 auto; }
#research-projects .research-sidebar-wordcloud {
  width: auto;
  height: 11rem;
  max-width: min(52vw, 24rem);
  object-fit: contain;
  margin: 0;
}
#research-projects .section-body.wide { width: 100%; max-width: none; min-width: 0; }
#research-projects {
  --research-text-width: 34rem; /* common width for every description */
  --research-column-gap: 2.2rem;
}
#research-projects #m82 { --figure-width: 34rem; }
#research-projects #ufds { --figure-width: 30rem; }
#research-projects #globular { --figure-width: 30rem; }
@media (min-width: 900px) {
  #research-projects .theme {
    display: grid;
    grid-template-columns: minmax(0, var(--research-text-width)) minmax(0, 1fr);
    column-gap: var(--research-column-gap);
    align-items: start;
  }
  #research-projects .theme > div:first-child { min-width: 0; }
  #research-projects .theme .photo {
    width: min(100%, var(--figure-width));
    max-width: none;
    justify-self: start;
  }
}
#research-projects .theme .frame {
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
}
#research-projects .theme .frame > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 899px) {
  #research-projects .theme { display: block; }
  #research-projects .theme .photo {
    width: min(100%, var(--figure-width));
    max-width: 100%;
    margin: 1.3rem 0 0;
  }
}
@media (max-width: 520px) {
  #research-projects .research-section-side { gap: .75rem; min-height: 7.5rem; }
  #research-projects .research-sidebar-wordcloud { height: 7rem; max-width: 48%; }
}

/* Homepage word cloud: below research interests, responsive and transparent. */
.home-research-wordcloud { display:flex; justify-content:center; margin:1.8rem auto 1.2rem; width:100%; }
.home-research-wordcloud img { display:block; width:min(100%, 23rem); height:auto; object-fit:contain; }
@media (max-width:650px) { .home-research-wordcloud img { width:min(100%, 19rem); } }

/* Research page heading no longer needs space for a word cloud. */
#research-projects .research-section-side { min-height:0; padding-bottom:.85rem; }

/* Homepage research: word cloud directly below heading, questions to its right. */
@media (min-width: 901px) {
  .home-research-interests {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 2.5rem;
    row-gap: .8rem;
  }
  .home-research-interests > h2 { grid-column: 1; grid-row: 1; }
  .home-research-interests > .home-research-wordcloud { grid-column: 1; grid-row: 2; align-self: start; }
  .home-research-interests > .section-body { grid-column: 2; grid-row: 1 / span 2; }
}
.home-research-interests > .home-research-wordcloud {
  margin: 0; width: 100%; justify-content: flex-start;
}
.home-research-interests > .home-research-wordcloud img {
  display: block; width: 100%; max-width: 17rem; height: auto; object-fit: contain;
}
@media (max-width: 900px) {
  .home-research-interests > .home-research-wordcloud { margin: .3rem 0 .8rem; }
  .home-research-interests > .home-research-wordcloud img { max-width: 16rem; }
}

/* Homepage research: preserve the standard section text alignment.
   Word cloud fits inside the existing heading column rather than shifting text. */
@media (min-width: 901px) {
  .home-research-interests {
    grid-template-columns: 13rem minmax(0, 1fr);
    column-gap: 2.5rem;
  }
  .home-research-interests > .home-research-wordcloud img {
    width: 11rem;
    max-width: 100%;
  }
}

/* Research page: no redundant section heading or separator; single-line tagline on desktop. */
#research-projects { padding-top: 0; border-top: 0; gap: 0; }
#research-projects::before { display: none; }
.page-head .research-page-tagline { white-space: nowrap; max-width: none; }
@media (max-width: 850px) {
  .page-head .research-page-tagline { white-space: normal; }
}

/* Final refinements: breathing room below Research page title. */
#research-projects { padding-top: clamp(2.5rem, 4vw, 4rem); }
#research-projects .theme:first-child { margin-top: .3rem; }
/* Talks: venue and location share a line with the presentation name. */
.talk-heading-line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .85rem; row-gap: .15rem; }
.talk-heading-line .talk-title { flex: 0 1 auto; }
.talk-heading-line .talk-venue { margin-top: 0; color: #627d91; font-size: .91rem; font-weight: 500; flex: 0 1 auto; }
.talk-heading-line .talk-venue::before { content: '·'; margin-right: .85rem; color: #a2abb4; }
@media (max-width: 600px) { .talk-heading-line { gap: .25rem .6rem; } .talk-heading-line .talk-venue::before { margin-right: .6rem; } }


/* Outreach page only — image-first, flexible photo collages. */
.outreach-gallery-page { max-width: 74rem; padding-top: 1.3rem; }
.outreach-intro { width: 100%; max-width: none; padding: 1.2rem 0 2.2rem; }
.outreach-intro p { font-size: clamp(1.06rem, 1.65vw, 1.23rem); line-height: 1.7; margin: 0; }
.outreach-showcase { border-top: 1px solid var(--rule); padding: 2.7rem 0 3.5rem; }
.outreach-showcase-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.4rem; }
.outreach-showcase-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.65rem, 2.7vw, 2.25rem); font-weight: 600; line-height: 1.15; }
.outreach-eyebrow { font: 600 .74rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .45rem; }
.outreach-visit { color: var(--uv); font: 600 .9rem/1.5 var(--sans); text-decoration: none; white-space: nowrap; }
.outreach-visit:hover { text-decoration: underline; }
.outreach-mosaic { display: grid; grid-template-columns: 1.5fr .85fr; grid-template-rows: 15rem 12rem; gap: .7rem; }
.outreach-tile { position: relative; margin: 0; overflow: hidden; border-radius: .45rem; background: #ddd; }
.outreach-tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.outreach-tile-main { grid-row: 1 / span 2; }
.outreach-tile-main img { object-position: center; }
.outreach-tile-portrait img { object-position: center 30%; }
.outreach-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: white; font: 500 .83rem/1.4 var(--sans); padding: 2.5rem 1rem .8rem; background: linear-gradient(transparent,rgba(0,0,0,.65)); }
.outreach-description { display: grid; grid-template-columns: minmax(9rem,.36fr) 1fr; gap: 2rem; margin-top: 1.5rem; align-items: start; }
.outreach-role { color: var(--muted); font: 600 .9rem/1.5 var(--sans); margin: 0; }
.outreach-description > p:last-child, .outreach-event-copy > p:not(.outreach-role) { margin: 0 0 .8rem; max-width: 67ch; line-height: 1.7; }
.outreach-event-layout, .outreach-video-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,.8fr); gap: 2rem; align-items: start; }
.outreach-event-photo { margin: 0; }
.outreach-event-photo img { display: block; width: 100%; max-height: 32rem; object-fit: cover; border-radius: .45rem; }
.outreach-event-photo figcaption { margin-top: .65rem; font: .82rem/1.5 var(--sans); color: var(--muted); }
.outreach-event-copy { display: grid; gap: .8rem; padding-top: .25rem; }
.outreach-video { aspect-ratio: 16/9; background: #141820; border-radius: .45rem; overflow: hidden; }
.outreach-video iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 700px) {
 .outreach-showcase { padding: 2rem 0 2.5rem; }
 .outreach-showcase-head { align-items: start; flex-direction: column; gap: .6rem; }
 .outreach-mosaic { grid-template-rows: 11rem 9rem; gap: .45rem; }
 .outreach-description, .outreach-event-layout, .outreach-video-layout { grid-template-columns: 1fr; gap: 1rem; }
 .outreach-event-photo img { max-height: none; }
}

/* Outreach: optional photo pairs and compact CV-based activity timeline. */
.outreach-photo-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; align-items:stretch; }
.outreach-photo-pair .outreach-event-photo { min-width:0; }
.outreach-photo-pair .outreach-event-photo img { width:100%; aspect-ratio:4/3; height:auto; object-fit:cover; }
.outreach-photo-slot { position:relative; min-height:11rem; border-radius:.45rem; background:rgba(110,125,140,.09); border:1px dashed rgba(110,125,140,.45); overflow:hidden; }
.outreach-photo-slot.has-photo { border:0; background:transparent; }
.outreach-photo-slot .outreach-photo-prompt { display:flex; min-height:11rem; height:100%; padding:1rem; align-items:center; justify-content:center; flex-direction:column; text-align:center; color:var(--muted); font:500 .85rem/1.6 var(--sans); }
.outreach-photo-slot.has-photo .outreach-photo-prompt { display:none; }
.outreach-photo-prompt small { font-size:.7rem; overflow-wrap:anywhere; }
.outreach-timeline { margin:0; padding:0; list-style:none; max-width:65rem; }
.outreach-timeline li { display:grid; grid-template-columns:7.5rem minmax(0,1fr); gap:1.5rem; padding:1rem 0; border-bottom:1px solid var(--rule); }
.outreach-timeline time { color:var(--muted); font:600 .83rem/1.5 var(--sans); }
.outreach-timeline strong { display:block; font:600 1rem/1.5 var(--sans); }
.outreach-timeline span { display:block; margin-top:.25rem; line-height:1.6; color:var(--muted); }
@media(max-width:620px) { .outreach-photo-pair { gap:.45rem; } .outreach-timeline li { grid-template-columns:5.5rem minmax(0,1fr); gap:.8rem; } }

/* Outreach alignment: full-width copy and single-line desktop subtitle. */
body:has(.outreach-gallery-page) .page-head > .inner > p {
  max-width: none;
  white-space: nowrap;
}
.outreach-gallery-page .outreach-intro p {
  width: 100%;
  max-width: none;
}
.outreach-gallery-page .outreach-description {
  display: block;
  width: 100%;
}
.outreach-gallery-page .outreach-description .outreach-role {
  margin-bottom: .45rem;
}
.outreach-gallery-page .outreach-description > p:last-child {
  max-width: none;
  width: 100%;
}
@media (max-width: 850px) {
  body:has(.outreach-gallery-page) .page-head > .inner > p {
    white-space: normal;
  }
}

/* Contact page: keep the header subtitle on one line when space permits. */
.page-head .contact-tagline { max-width: none; white-space: nowrap; }
@media (max-width: 760px) { .page-head .contact-tagline { white-space: normal; } }
