/* ==========================================================================
   Michael Gubanov — academic site
   Plain CSS, no build step. Colors live in the tokens below; everything
   else reads from them, so a re-theme is a one-block edit.
   ========================================================================== */

:root {
  /* Florida State University palette: Garnet #782F40, Gold #CEB888, White, Slate #2C2A29 */
  --garnet: #782f40;
  --gold: #ceb888;
  --slate: #2c2a29;

  --bg: #ffffff;
  --bg-2: #f6f1e5;
  --ink: #2c2a29;
  --ink-soft: #4b4745;
  --muted: #6c6661;
  --line: rgba(44, 42, 41, .16);
  --accent: #782f40;
  --accent-deep: #57202e;
  --accent-tint: rgba(120, 47, 64, .08);

  --hero-bg: #782f40;
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, .78);
  --hero-line: rgba(255, 255, 255, .2);
  --hero-accent: #ceb888;

  --band-bg: var(--bg-2);
  --band-ink: var(--ink);
  --band-muted: var(--muted);
  --band-line: var(--line);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --max: 1200px;
  --gutter: 28px;
  --radius: 6px;
}

:root[data-theme="dark"] {
  --bg: #1d1b1a;
  --bg-2: #262322;
  --ink: #f3eee4;
  --ink-soft: #d1cabd;
  --muted: #a39b8e;
  --line: rgba(243, 238, 228, .14);
  --accent: #ceb888;
  --accent-deep: #e3d4ad;
  --accent-tint: rgba(206, 184, 136, .12);

  --hero-bg: #4f1e2b;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--serif); margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
::selection { background: var(--accent-tint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.eyebrow.sm { font-size: 11px; letter-spacing: .14em; margin-bottom: 10px; }
.h2 {
  font-weight: 500; font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.05; letter-spacing: -.015em;
}
.h2::before {
  content: ""; display: block; width: 30px; height: 3px; background: var(--accent); margin-bottom: 12px;
}
.thread-head .h2::before, .card-box .h2::before { display: none; }
.lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 1.9vw, 25px); line-height: 1.4; text-wrap: pretty;
}
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; cursor: pointer;
  font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.2;
  padding: 10px 20px; border-radius: var(--radius);
  border: 1px solid var(--accent); color: var(--accent); background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-tint); color: var(--accent-deep); }
.btn.quiet { border-color: var(--line); color: var(--ink); }
.btn.quiet:hover { background: var(--accent-tint); }
.btn.sm { font-size: 14px; padding: 7px 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.nav {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  text-decoration: none; color: var(--ink); white-space: nowrap;
  font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 20px; font-size: 13.5px; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); border-bottom: 2px solid var(--accent); margin-bottom: -1px; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  cursor: pointer; display: grid; place-items: center; transition: background .2s;
}
.icon-btn:hover { background: var(--accent-tint); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* light / dark switch, at the left of the header */
/* pinned to the left edge of the window; the brand makes room only when the window is too narrow to leave a gap */
.theme-switch { position: absolute; left: 14px; top: 19px; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.nav-left .brand { margin-left: clamp(0px, calc(642px - 50vw), 42px); }
.ts-track {
  display: block; position: relative; width: 44px; height: 24px; border-radius: 12px;
  background: color-mix(in srgb, var(--ink) 22%, transparent); transition: background .2s;
}
.ts-thumb {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s;
}
.theme-switch[aria-checked="true"] .ts-track { background: var(--accent); }
.theme-switch[aria-checked="true"] .ts-thumb { transform: translateX(20px); }
.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .ts-track, .ts-thumb { transition: none; } }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); border-bottom: 1px solid var(--hero-line); position: relative; overflow: hidden; }
.hero::before { /* faint grid texture, pure CSS */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, var(--hero-line) 0 1px, transparent 1px 14px);
  -webkit-mask-image: radial-gradient(ellipse at 85% 10%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse at 85% 10%, #000 0%, transparent 62%);
  opacity: .4;
}
.hero-inner { position: relative; padding-top: 72px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 80px; align-items: center;
  padding-bottom: 56px;
}
.hero .eyebrow { color: var(--hero-accent); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--hero-accent); }
.hero .prior-line { font-size: 12.5px; line-height: 1.5; letter-spacing: 0; color: var(--hero-accent); margin: -14px 0 22px; padding-left: 40px; }
@media (min-width: 1000px) { .hero .prior-line { white-space: nowrap; } }
.hero h1 {
  font-weight: 500; font-size: clamp(44px, 5.6vw, 76px);
  line-height: .98; letter-spacing: -.02em; margin-bottom: 22px;
}
.hero-tag {
  font-family: var(--serif); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25;
  max-width: 24em; margin-bottom: 18px; text-wrap: pretty;
}
.hero-sub { font-size: 16px; line-height: 1.65; color: var(--hero-muted); max-width: 38em; margin-bottom: 26px; text-wrap: pretty; }
.hero-callout {
  font-size: 15px; line-height: 1.7; max-width: 40em; margin-bottom: 30px;
  border-left: 1px solid var(--hero-accent); padding-left: 16px;
}
.hero-callout strong { font-weight: 600; color: var(--hero-accent); }
.hero .btn { border-color: var(--hero-accent); color: var(--hero-accent); }
.hero .btn:not(.quiet) { background: var(--hero-accent); color: var(--slate); }
.hero .btn:not(.quiet):hover { background: #e3d4ad; color: var(--slate); }
.hero .btn:hover { background: rgba(206, 184, 136, .14); color: var(--hero-accent); }
.hero .btn.quiet { border-color: var(--hero-line); color: var(--hero-ink); }
.hero .btn.quiet:hover { background: rgba(255, 255, 255, .06); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-side { justify-self: start; width: min(400px, 100%); }
.portrait { position: relative; isolation: isolate; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border: 6px solid rgba(255, 255, 255, .08); outline: 1px solid var(--hero-line); border-radius: 4px;
}
.ss-frame { position: relative; isolation: isolate; aspect-ratio: 5 / 4; border-radius: 4px; }
.ss-frame::after { /* offset frame */
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--hero-accent); opacity: .5; z-index: -1; border-radius: 4px;
}
.ss-frame .ss-slide { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; background: radial-gradient(ellipse at 50% 40%, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02) 70%), var(--hero-bg); opacity: 0; transition: opacity .9s ease; }
.ss-frame .ss-slide.on { opacity: 1; }
.ss-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; }
.ss-cap { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--hero-muted); min-width: 0; }
.ss-dots { display: flex; gap: 2px; flex: none; }
.ss-dots button { position: relative; width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.ss-dots button::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid var(--hero-accent); transition: background .25s, transform .25s; }
.ss-dots button:hover::before { background: rgba(206, 184, 136, .35); }
.ss-dots button.on::before { background: var(--hero-accent); transform: scale(1.1); }
.ss-dots button:focus-visible { outline: 2px solid var(--hero-accent); outline-offset: 1px; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .ss-frame .ss-slide, .ss-dots button::before { transition: none; } }
.portrait:not([data-slideshow])::after { /* offset frame */
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--hero-accent); opacity: .5; z-index: -1; border-radius: 4px;
}

.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-links .btn { flex: 1 1 auto; justify-content: center; }

.edu { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--hero-line); position: relative; }
.edu > div { padding: 28px 20px 26px; position: relative; }
.edu > div:first-child { padding-left: 0; }
.edu > div:last-child { padding-right: 0; }
.edu > div::before { /* marker on the rule */
  content: ""; position: absolute; top: -5px; left: 20px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--hero-accent); box-shadow: 0 0 0 4px var(--hero-bg);
}
.edu > div:first-child::before { left: 0; }
.edu > div:last-child::before { background: var(--hero-bg); border: 2px solid var(--hero-accent); box-sizing: border-box; }
.edu .k { font-family: var(--serif); font-size: 24px; color: var(--hero-accent); line-height: 1; }
.edu .t { font-size: 14px; margin-top: 8px; }
.edu .s { font-size: 13px; color: var(--hero-muted); margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.band { background: var(--band-bg); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.band .section-in { padding-top: 64px; padding-bottom: 72px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 36px;
}
.section-head .side { font-size: 13.5px; color: var(--muted); }
.section-head a.side { color: var(--accent); text-decoration: none; font-size: 14px; }
.section-head a.side:hover { text-decoration: underline; }
.split { display: grid; grid-template-columns: .42fr 1fr; gap: 48px; }
.split.even { grid-template-columns: 1fr 1fr; gap: 40px; }

/* research */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pillar {
  background: var(--bg); border: 1px solid var(--band-line); border-top: 3px solid var(--accent); border-radius: var(--radius);
  padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .07); }
.pillar .n { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pillar h3 { font-weight: 600; font-size: 24px; line-height: 1.15; }
.pillar p { font-size: 13.5px; line-height: 1.6; color: var(--band-muted); text-wrap: pretty; }
.pillar .sup { margin-top: auto; border-top: 1px solid var(--band-line); padding-top: 12px; }
.pillar .sup .lbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 8px; }
.pillar .sup li { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
.pillar .sup li b { font-family: var(--serif); font-weight: 600; font-size: 16px; }
.pillar .more { font-size: 13px; text-decoration: none; line-height: 1.45; }
.pillar .more:hover { text-decoration: underline; }
.pillar .more span { color: var(--band-muted); }

/* papers */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .07); color: inherit; }
.card .plate {
  aspect-ratio: 16 / 7; border-bottom: 1px solid var(--line);
  background: var(--bg-2); position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; padding: 14px 18px;
}
.card .plate::before { /* decorative concentric arcs */
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 22px transparent, 0 0 0 23px var(--line), 0 0 0 45px transparent, 0 0 0 46px var(--line);
}
.card .plate .v { font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1; letter-spacing: -.02em; position: relative; }
.card .plate .y { font-family: var(--serif); font-size: 20px; color: var(--accent); position: relative; }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--accent); color: var(--accent); padding: 3px 8px; border-radius: 3px;
}
.tag.fill { border-color: transparent; background: var(--accent-tint); color: var(--accent-deep); }
:root[data-theme="dark"] .tag.fill { color: var(--accent); }
.card h3 { font-weight: 600; font-size: 21px; line-height: 1.2; }
.card .au { font-size: 12.5px; color: var(--muted); margin-top: auto; line-height: 1.5; }
.au b { color: var(--ink); font-weight: 600; }

.callout-row {
  margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0;
}
.callout-row .grow { flex: 1; min-width: 240px; }
.callout-row .ttl { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; margin-top: 4px; }
.callout-row .sub { font-size: 13px; color: var(--muted); }
.seal {
  width: 44px; height: 64px; border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-family: var(--serif); font-size: 13px; text-align: center; line-height: 1.1;
}

/* funding */
.funding-top { align-items: end; margin-bottom: 40px; }
.big {
  font-family: var(--serif); font-weight: 400; line-height: .95; letter-spacing: -.03em;
  font-size: clamp(64px, 7vw, 96px); font-variant-numeric: tabular-nums;
}
.big em { font-style: normal; color: var(--accent); }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wall .nm { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1; }
.wall .full { font-size: 12px; color: var(--band-muted); margin: 6px 0 16px; }
.grant { border-top: 1px solid var(--band-line); padding-top: 8px; margin-top: 10px; }
.grant .amt { font-family: var(--serif); font-size: 22px; color: var(--accent); line-height: 1.1; }
.grant .ttl { font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.grant .meta { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--band-muted); margin-top: 4px; }

/* lab */
.lab-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 40px; align-items: start; }
.photo-frame {
  border: 6px solid var(--bg-2); outline: 1px solid var(--line);
  overflow: hidden; background: var(--bg-2);
}
.photo-frame img { width: 100%; height: auto; }
figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 26px; }
.stats > div { padding: 14px 14px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats .n { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); }
.stats .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--line); }
.two-col li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.quote {
  margin: 0 0 26px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4;
  border-left: 2px solid var(--accent); padding-left: 16px; color: var(--ink-soft);
}
.quote cite { display: block; font-style: normal; font-family: var(--body); font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.alumni { margin-top: 36px; }
.alumni ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; border-top: 1px solid var(--line); }
.alumni li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.alumni li b { font-family: var(--serif); font-weight: 600; font-size: 17px; display: block; }
.alumni li span { color: var(--muted); font-size: 13px; }
.alumni a { text-decoration: none; }
.alumni a:hover { text-decoration: underline; }

/* news */
.news-list { border-top: 1px solid var(--band-line); }
.news-list li {
  display: grid; grid-template-columns: 70px 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--band-line);
}
.news-list .d { font-size: 13px; color: var(--accent); padding-top: 3px; }
.news-list .t { font-size: 14.5px; line-height: 1.55; }
.honors { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--band-muted); line-height: 1.5; margin-top: 26px; }
.honors div { border-top: 1px solid var(--band-line); padding-top: 6px; }
.honors b { color: var(--band-ink); font-weight: 600; }

/* lists with year column (talks) */
.rows { border-top: 1px solid var(--line); }
.rows li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 72px 1fr; gap: 14px; }
.rows .y { font-family: var(--serif); font-size: 20px; color: var(--accent); line-height: 1.2; }
.rows .tt { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.25; }
.rows .vn { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rows a { text-decoration: none; }
.rows a:hover { text-decoration: underline; }
.band .rows, .band .rows li { border-color: var(--band-line); }

.feature {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 26px;
  background: var(--accent-tint); transition: border-color .2s;
}
.feature:hover { border-color: var(--accent); color: inherit; }
.feature .tt { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; margin: 6px 0 4px; }
.feature .go { font-size: 13.5px; color: var(--accent); }
.links-list { border-top: 1px solid var(--line); }
.links-list li { border-bottom: 1px solid var(--line); }
.links-list a { display: block; padding: 11px 0; text-decoration: none; font-size: 14.5px; }
.links-list a:hover { text-decoration: underline; }

details.more-list { margin-top: 18px; }
details.more-list > summary {
  cursor: pointer; list-style: none; color: var(--accent); font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
}
details.more-list > summary::-webkit-details-marker { display: none; }
details.more-list > summary::after { content: "+"; font-family: var(--serif); font-size: 18px; line-height: 1; }
details.more-list[open] > summary::after { content: "–"; }
details.more-list > summary:hover { text-decoration: underline; }
details.more-list .rows { margin-top: 8px; }
.group-label { font-family: var(--serif); font-size: 15px; color: var(--muted); letter-spacing: .04em; margin: 22px 0 6px; }

/* teaching & service */
.plain-list li { padding: 11px 0; border-bottom: 1px solid var(--band-line); font-size: 14px; line-height: 1.5; display: flex; justify-content: space-between; gap: 16px; }
.plain-list { border-top: 1px solid var(--band-line); }
.plain-list .r { color: var(--band-muted); font-size: 12.5px; text-align: right; flex: none; }
.plain-list b { font-weight: 600; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery .photo-frame { aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* join */
.join-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 1px solid var(--band-line); }
.join-list > div { padding: 14px 0; border-bottom: 1px solid var(--band-line); }
.join-list .t { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; }
.join-list .d { font-size: 13.5px; color: var(--band-muted); margin-top: 3px; }
.band-p { font-size: 14.5px; line-height: 1.65; color: var(--band-muted); margin: 0 0 22px; text-wrap: pretty; }

/* footer */
.site-footer { background: var(--hero-bg); color: var(--hero-ink); border-top: 3px solid var(--accent); }
.foot { padding-top: 52px; padding-bottom: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--hero-line); }
.foot h4 { font-family: var(--body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--hero-accent); margin-bottom: 12px; }
.foot .nm { font-family: var(--serif); font-size: 28px; font-weight: 500; margin-bottom: 8px; }
.foot p, .foot li { font-size: 14px; line-height: 1.7; color: var(--hero-muted); }
.foot a { color: var(--hero-ink); text-decoration: none; }
.foot a:hover { color: var(--hero-accent); text-decoration: underline; }
.foot .copy { padding-top: 22px; font-size: 12.5px; color: var(--hero-muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- publications page ---------- */
.page-hero { background: var(--hero-bg); color: var(--hero-ink); border-bottom: 1px solid var(--hero-line); }
.page-hero .wrap { padding-top: 56px; padding-bottom: 44px; }
.page-hero .eyebrow { color: var(--hero-accent); margin-bottom: 16px; }
.page-hero h1 { font-weight: 500; font-size: clamp(38px, 4.6vw, 60px); line-height: 1; letter-spacing: -.02em; margin-bottom: 14px; }
.page-hero p { color: var(--hero-muted); max-width: 40em; }
.page-hero a { color: var(--hero-accent); }

.filters {
  position: sticky; top: 62px; z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filters .wrap { display: flex; gap: 14px 20px; align-items: center; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.search {
  flex: 1; min-width: 220px; max-width: 420px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px;
}
.search::placeholder { color: var(--muted); }
.search:focus { border-color: var(--accent); outline: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 13px; background: transparent; color: var(--ink-soft); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: var(--slate); }
.count { margin-left: auto; font-size: 13px; color: var(--muted); }

.year-block { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.year-block > h2 { font-weight: 400; font-size: 40px; line-height: 1; color: var(--accent); letter-spacing: -.02em; position: sticky; top: 140px; align-self: start; }
.pub { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.pub:first-child { padding-top: 0; }
.pub:last-child { border-bottom: 0; padding-bottom: 0; }
.pub h3 { font-weight: 600; font-size: 19px; line-height: 1.25; text-wrap: pretty; }
.pub .au { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.pub .au b { color: var(--ink); }
.pub .ve { font-size: 13px; color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.pub .ve .tag { font-size: 10.5px; padding: 2px 7px; }
.pub .ve a { text-decoration: none; border-bottom: 1px solid var(--accent-tint); }
.pub .ve a:hover { border-bottom-color: var(--accent); }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
mark { background: var(--accent-tint); color: inherit; border-radius: 2px; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transition: none; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .nav-links {
    position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 0; width: 100%; font-size: 15px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: grid; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; width: min(380px, 88vw); }
  .edu { grid-template-columns: 1fr 1fr; }
  .edu > div:nth-child(2) { border-right: 0; }
  .edu > div:nth-child(n+3) { border-top: 1px solid var(--hero-line); }
  .edu > div:nth-child(3) { padding-left: 0; }
  .edu > div:nth-child(odd) { padding-left: 0; }
  .edu > div:nth-child(even) { padding-left: 20px; }
  .edu > div:nth-child(odd)::before { left: 0; }
  .edu > div:nth-child(even)::before { left: 20px; }
  .split, .split.even, .lab-grid { grid-template-columns: 1fr; gap: 28px; }
  .pillars, .wall { grid-template-columns: 1fr 1fr; }
  .cards, .gallery { grid-template-columns: 1fr 1fr; }
  .alumni ul { grid-template-columns: 1fr 1fr; }
  .join-list { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .year-block { grid-template-columns: 1fr; gap: 12px; }
  .year-block > h2 { position: static; font-size: 32px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .pillars, .wall, .cards, .gallery, .alumni ul, .two-col { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
  .edu > div, .edu > div:nth-child(even), .edu > div:nth-child(odd) { padding: 16px 0; border-right: 0; border-top: 1px solid var(--hero-line); }
  .edu > div:first-child { border-top: 0; }
  .edu > div::before, .edu > div:nth-child(even)::before { left: 0; }
  .news-list li { grid-template-columns: 52px 1fr; gap: 12px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .count { margin-left: 0; width: 100%; }
  .brand { font-size: 18px; }
  .nav-left .brand { margin-left: 54px; }
  .theme-switch { left: 12px; }
}
@media print {
  .site-header, .filters, .menu-toggle { display: none; }
  .js .rv { opacity: 1; transform: none; }
}

/* ==========================================================================
   Multi-page additions: inner-page hero, paper pages, research threads,
   funding timeline, galleries, talks/teaching/service/awards, openings.
   ========================================================================== */

[hidden] { display: none !important; }

.h3 { font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.01em; }
.h4 { font-weight: 600; font-size: 20px; line-height: 1.2; margin: 26px 0 12px; }
.h5 { font-family: var(--body); font-weight: 400; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 22px 0 8px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 10px; }
.plain { color: inherit; text-decoration: none; }
.plain:hover { color: var(--accent); }
.band-more { margin-top: 26px; font-size: 14px; }
.band-more a { text-decoration: none; }
.band-more a:hover { text-decoration: underline; }
.more-link { display: inline-block; margin-top: 12px; font-size: 13.5px; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.count-badge { font-family: var(--body); font-size: 12px; font-weight: 400; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; margin-left: 6px; vertical-align: middle; }

/* inner-page hero */
.crumbs { font-size: 13px; color: var(--hero-muted); margin-bottom: 18px; }
.crumbs a { color: var(--hero-accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero .btn-row { margin-top: 22px; }
.page-hero .btn { border-color: var(--hero-accent); color: var(--hero-accent); }
.page-hero .btn:hover { background: rgba(206, 184, 136, .14); color: var(--hero-accent); }
.page-hero .btn.quiet { border-color: var(--hero-line); color: var(--hero-ink); }
.page-hero .btn.quiet:hover { background: rgba(255, 255, 255, .06); }
.hero-stat { margin-top: 16px; color: var(--hero-accent) !important; font-size: 14px; letter-spacing: .06em; }
.hero-big { display: flex; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin-top: 28px; }
.hero-big .big { color: var(--hero-ink); font-size: clamp(56px, 7vw, 88px); }
.hero-big .big em { color: var(--hero-accent); }
.hero-big > span:last-child { color: var(--hero-muted); max-width: 22em; padding-bottom: 10px; }
.tag.light { border-color: var(--hero-line); color: var(--hero-ink); }
.tag.gold { border-color: transparent; background: rgba(206, 184, 136, .18); color: var(--hero-accent); }

/* publications list extras */
.topic-row { flex-wrap: nowrap !important; align-items: flex-start !important; padding-top: 0 !important; padding-bottom: 14px !important; }
.topic-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex: none; padding-top: 7px; }
.chip-n { opacity: .6; font-size: 11px; margin-left: 2px; }
.pub h3 a { color: inherit; text-decoration: none; }
.pub h3 a:hover { color: var(--accent); }
.pub .ve .details-link { margin-left: auto; color: var(--accent); border-bottom: 0; white-space: nowrap; }
.pub .ve .details-link:hover { text-decoration: underline; }
.year-block > h2 { top: 150px; }

/* paper page */
.paper-title { font-weight: 500; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.015em; margin: 16px 0 14px; max-width: 24em; text-wrap: balance; }
.paper-authors { color: var(--hero-muted); font-size: 17px; max-width: 44em; }
.paper-authors b { color: var(--hero-ink); font-weight: 600; }
.paper-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 48px; padding-bottom: 40px; }
.block { margin-bottom: 40px; }
.block .h3 { margin-bottom: 14px; }
.abstract { font-size: 17px; line-height: 1.75; max-width: 44em; text-wrap: pretty; }
.cite-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.cite-head .eyebrow { margin: 0; }
.cite-text { font-size: 15px; line-height: 1.65; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.code {
  margin: 0; padding: 16px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink);
}
.side-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; }
.card-box .eyebrow.sm { margin-bottom: 12px; }
.card-box.photo { padding: 0; overflow: hidden; margin: 0; }
.card-box.photo img { width: 100%; height: auto; }
.card-box.photo figcaption { padding: 10px 14px 12px; margin: 0; }
.facts { margin: 0; }
.fact { padding: 9px 0; border-bottom: 1px solid var(--line); }
.fact:first-child { padding-top: 0; }
.fact:last-child { border-bottom: 0; padding-bottom: 0; }
.fact dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.45; word-break: break-word; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12.5px; border: 1px solid var(--accent); color: var(--accent); padding: 3px 10px; border-radius: 999px; text-decoration: none; line-height: 1.5; }
.pill:hover { background: var(--accent-tint); color: var(--accent-deep); }
.pill.plain { border-color: var(--line); color: var(--ink-soft); }
.pill.plain:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

.related { padding-bottom: 20px; }
.rel-list li a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.rel-list { border-top: 1px solid var(--line); }
.rel-list li a:hover .tt { color: var(--accent); }
.rel-list .y { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.rel-list .tt { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.3; }
.rel-list .tt .tag { margin-left: 10px; vertical-align: 2px; }
.rel-list .vn { font-size: 13px; color: var(--muted); text-align: right; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 72px; }
.pager a { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: border-color .2s; }
.pager a:hover { border-color: var(--accent); }
.pager .next { text-align: right; }
.pager .eyebrow { margin-bottom: 6px; }
.pager .tt { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.3; display: block; }

/* research threads */
.with-toc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 72px; }
.toc { position: sticky; top: 86px; align-self: start; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc .eyebrow { padding: 0 0 10px 14px; }
.toc a { padding: 8px 14px; margin-left: -1px; font-size: 14px; text-decoration: none; color: var(--ink-soft); border-left: 2px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--accent); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }
.thread { padding-bottom: 60px; margin-bottom: 60px; border-bottom: 1px solid var(--line); }
.thread:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.thread-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.thread-head .n { font-family: var(--serif); font-size: 22px; color: var(--accent); }
.thread-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; }
.prose p { font-size: 16.5px; line-height: 1.72; margin: 0 0 16px; max-width: 42em; text-wrap: pretty; }
.prose-p { font-size: 16px; line-height: 1.7; max-width: 42em; margin-bottom: 4px; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 15px; line-height: 1.55; max-width: 40em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.link-list li a { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.link-list li:first-child a { padding-top: 0; }
.link-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.link-list li a b { font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.link-list li a span { font-size: 13px; color: var(--muted); }
.link-list li a:hover b { color: var(--accent); }
.thread-papers { margin-top: 34px; }
.subthread { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.subthread .h3 { margin-bottom: 10px; }

/* funding */
.wall > div, .wall > a { background: var(--bg); border: 1px solid var(--band-line); border-top: 3px solid var(--hero-bg); border-radius: var(--radius); padding: 22px 20px 24px; }
.wall > a { display: block; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.wall > a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .07); color: inherit; }
.grant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grant-card { background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.grant-card:target { outline: 2px solid var(--accent); outline-offset: 3px; }
.gc-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gc-top .sp { color: var(--accent); }
.gc-amt { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -.02em; }
.grant-card h3 { font-weight: 600; font-size: 18px; line-height: 1.3; }
.gc-links { margin-top: auto; padding-top: 8px; font-size: 13px; line-height: 1.6; display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.plain-list.flat { border-top: 1px solid var(--line); }
.plain-list.flat li { border-color: var(--line); }

/* people & galleries */
.stats.two { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.two-col.numbered { counter-reset: n; }
.two-col.numbered li::before { counter-increment: n; content: counter(n); display: inline-block; width: 24px; font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.alumni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; border-top: 1px solid var(--band-line); }
.alumni-grid li { padding: 14px 0; border-bottom: 1px solid var(--band-line); font-size: 14px; line-height: 1.45; }
.alumni-grid li b { font-family: var(--serif); font-weight: 600; font-size: 18px; display: block; }
.alumni-grid li span { color: var(--band-muted); font-size: 13px; }
.alumni-grid a { text-decoration: none; }
.alumni-grid a:hover { text-decoration: underline; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.thumb { display: block; text-decoration: none; color: inherit; }
.thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--bg-2); outline: 1px solid var(--line); transition: transform .25s, filter .25s; }
.band .thumb img { border-color: var(--bg); }
.thumb:hover img { transform: translateY(-2px); filter: brightness(1.04); }
.thumb .cap { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.gallery a.photo-frame { display: block; }
.gallery .photo-frame img { transition: transform .3s; }
.gallery a.photo-frame:hover img { transform: scale(1.02); }
.lightbox { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; max-height: 94vh; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 17, 17, .9); }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; height: auto; margin: 0 auto; border: 0; outline: 1px solid rgba(255, 255, 255, .15); }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: 14px; max-width: 46em; margin: 12px auto 0; }
.lb-btn { position: fixed; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(44, 42, 41, .75); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* talks / teaching / service */
.group-title { font-family: var(--body); font-weight: 400; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 34px 0 6px; }
.year-group:first-of-type .group-title, .course-group:first-of-type .group-title { margin-top: 0; }
.sticky-aside { position: sticky; top: 150px; align-self: start; }
.rows .y { white-space: nowrap; }
.rows li { grid-template-columns: 72px 1fr; }
.course-rows li { grid-template-columns: 110px minmax(0, 1fr) auto; align-items: baseline; }
.course-rows .term { font-family: var(--serif); font-size: 17px; color: var(--accent); }
.course-rows .tt { font-family: var(--body); font-weight: 400; font-size: 15.5px; }
.course-rows .tt b { font-family: var(--serif); font-weight: 600; font-size: 16.5px; }
.course-rows .vn a { text-decoration: none; }
.course-rows .enr { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bars {
  display: flex; align-items: stretch; gap: 0; align-self: start; padding-top: 26px;
  border-bottom: 1px solid var(--line);
}
.bar-row { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; font-size: 11.5px; }
.bar-track {
  height: 170px; display: flex; align-items: flex-end; justify-content: center;
  background: repeating-linear-gradient(0deg, var(--line) 0, var(--line) 1px, transparent 1px, transparent 25%);
}
.bar-fill {
  display: block; position: relative; width: 56%; max-width: 40px; background: color-mix(in srgb, var(--hero-bg) 70%, var(--bg));
  border-radius: 4px 4px 0 0;
}
.bar-val { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); padding-bottom: 4px; font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.bar-label { color: var(--muted); text-align: center; line-height: 1.25; padding: 8px 2px 0; }
.svc .year-group { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc .year-group .group-title { font-family: var(--serif); font-size: 38px; letter-spacing: -.02em; text-transform: none; font-weight: 400; margin: 0; line-height: 1; }
.svc-rows { columns: 2; column-gap: 36px; }
.svc-rows li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.svc-rows li b { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 15.5px; }

/* awards */
.awards-list { border-top: 1px solid var(--line); }
.award { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.award.with-img { grid-template-columns: 110px minmax(0, 1fr) 260px; }
.award .ay { font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.award h3 { font-weight: 600; font-size: 24px; line-height: 1.2; }
.award h3 a { color: inherit; text-decoration: none; }
.award h3 a:hover { color: var(--accent); }
.award .aw { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.award .ab p { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; max-width: 40em; }
.award figure { margin: 0; }
.award figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid var(--bg-2); outline: 1px solid var(--line); }

/* openings */
.callout-note { margin-top: 28px; border-left: 2px solid var(--accent); padding: 4px 0 4px 16px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.callout-note a { display: block; margin-top: 4px; }
.topic-list { border-top: 1px solid var(--line); }
.topic-list li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.topic-list li a b { font-family: var(--serif); font-weight: 600; font-size: 20px; display: block; line-height: 1.2; }
.topic-list li a span { font-size: 14px; color: var(--muted); }
.topic-list li a:hover b { color: var(--accent); }
.links-list { border-top: 1px solid var(--band-line); }
.band .links-list li { border-color: var(--band-line); }

/* home */
.card-go { font-size: 13px; color: var(--accent); margin-top: 6px; }
.card:hover .card-go { text-decoration: underline; }
.pillar h3 a { color: inherit; }

/* responsive for the additions */
@media (max-width: 1060px) {
  .with-toc { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 6px; }
  .toc .eyebrow { display: none; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 5px 12px; font-size: 13px; }
  .toc a.active { border-color: var(--accent); }
}
@media (max-width: 900px) {
  .paper-body, .thread-grid { grid-template-columns: 1fr; gap: 32px; }
  .grant-grid, .gallery-grid, .alumni-grid { grid-template-columns: 1fr 1fr; }
  .sticky-aside { position: static; }
  .award.with-img { grid-template-columns: 110px minmax(0, 1fr); }
  .award.with-img figure { grid-column: 2; max-width: 320px; }
  .svc .year-group { grid-template-columns: 1fr; gap: 10px; }
  .svc-rows { columns: 1; }
  .topic-row { flex-wrap: wrap !important; }
  .year-block > h2 { top: auto; }
}
@media (max-width: 560px) {
  .grant-grid, .gallery-grid, .alumni-grid, .pager { grid-template-columns: 1fr; }
  .rel-list li a { grid-template-columns: 48px minmax(0, 1fr); }
  .rel-list .vn { grid-column: 2; text-align: left; }
  .award, .award.with-img { grid-template-columns: 1fr; gap: 8px; }
  .award.with-img figure { grid-column: 1; }
  .course-rows li { grid-template-columns: 1fr; gap: 2px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-close { top: 8px; right: 8px; }
}
@media print {
  .toc, .lb-btn { display: none; }
}

/* ==========================================================================
   Rich paper pages (papers with an entry in js/paper-details.js)
   ========================================================================== */
.paper-affil { color: var(--hero-muted); font-size: 14.5px; margin-top: 6px; max-width: 46em; }
.paper-where { color: var(--hero-accent) !important; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }
.kw-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 2px; }
.kw { font-size: 12.5px; border: 1px solid var(--hero-line); color: var(--hero-ink); padding: 3px 11px; border-radius: 999px; line-height: 1.5; }

.rich-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; padding-top: 48px; align-items: start; }
.tldr-card { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 26px 28px 28px; background: color-mix(in srgb, var(--bg-2) 45%, var(--bg)); }
.tldr { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.4; margin-top: 14px; text-wrap: pretty; }
.plain-box { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.plain-box p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin-top: 10px; text-wrap: pretty; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { padding: 22px 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.tile:nth-child(2n) { border-right: 0; }
.tile:nth-last-child(-n+2) { border-bottom: 0; }
.tv { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); color: var(--accent); line-height: 1.05; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tl { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 10px; }

.figs { padding-top: 44px; }
.fig { margin: 0; }
.fig-plate {
  display: block; background: #fff; padding: 14px; cursor: zoom-in;
  border: 6px solid var(--bg-2); outline: 1px solid var(--line); outline-offset: 0; border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.fig-plate img { display: block; margin: 0 auto; width: auto; height: auto; max-width: 100%; max-height: 640px; }
.fig figcaption { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin-top: 10px; max-width: 58em; }
.fig figcaption b { color: var(--ink); font-weight: 600; }
.fig-grid { display: grid; gap: 28px; margin-top: 32px; align-items: start; }
.fig-grid.n1 { grid-template-columns: minmax(0, 780px); }
.fig-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-grid .fig-plate img { max-height: 360px; }
.fig-show { --fs-h: clamp(260px, 50vw, 500px); max-width: 900px; margin: 0 auto; }
.fs-stage { position: relative; display: grid; }
.fs-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.fs-slide.on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.fs-slide .fig-plate { height: var(--fs-h); display: flex; align-items: center; justify-content: center; }
.fs-slide .fig-plate img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.fs-slide figcaption { margin-top: 14px; }
.fs-nav {
  position: absolute; top: calc(var(--fs-h) / 2); transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12); opacity: .92; transition: background .2s, color .2s, border-color .2s;
}
.fs-nav.prev { left: 14px; }
.fs-nav.next { right: 14px; }
.fs-nav:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.fs-nav:focus-visible, .fs-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.fs-count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.fs-dots { display: flex; gap: 2px; }
.fs-dots button { position: relative; width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.fs-dots button::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid var(--accent); transition: background .25s, transform .25s; }
.fs-dots button:hover::before { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.fs-dots button.on::before { background: var(--accent); transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .fs-slide, .fs-slide.on, .fs-dots button::before { transition: none; } }
.fig-source { font-size: 12.5px; color: var(--muted); margin-top: 20px; }

.chart-wrap { padding-top: 48px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.chart-unit { font-size: 13px; color: var(--muted); }
.chart-note { font-size: 14px; color: var(--muted); margin: 8px 0 16px; max-width: 48em; }
.chart-bars {
  display: flex; align-items: stretch; padding-top: 30px; overflow-x: auto; border-bottom: 1px solid var(--line);
}
.chart .bar-row { flex: 1 0 68px; max-width: 150px; font-size: 12px; }
.chart .bar-track { height: 230px; }
.chart .bar-row:first-child { margin-left: auto; }
.chart .bar-row:last-child { margin-right: auto; }
.chart .bar-fill { width: 52%; max-width: 44px; background: color-mix(in srgb, var(--hero-bg) 55%, var(--bg)); }
.chart .bar-val { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chart .bar-label { color: var(--ink-soft); padding-top: 9px; overflow-wrap: break-word; hyphens: manual; }
.chart .bar-row.hi .bar-fill { background: var(--accent); }
.chart .bar-row.hi .bar-label, .chart .bar-row.hi .bar-val { color: var(--accent); font-weight: 600; }

.rich-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 56px; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.sn { font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1.05; }
.sh { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.25; }
.sd { font-size: 15px; color: var(--muted); line-height: 1.62; margin-top: 4px; max-width: 46em; text-wrap: pretty; }
.rich-main .block + .block { margin-top: 8px; }
.side-block + .side-block { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.side-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.sl-n { font-size: 15px; line-height: 1.35; }
.sl-u { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.side-list li.bullet { position: relative; padding: 5px 0 5px 16px; font-size: 14px; line-height: 1.55; border-bottom: 0; color: var(--ink-soft); }
.side-list li.bullet::before { content: ""; position: absolute; left: 2px; top: 1em; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.pill.static { pointer-events: none; }
.rich-cite { padding-top: 40px; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; margin-top: 12px; margin-bottom: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-row p { font-family: var(--serif); font-size: 20px; }

/* thumbnails of figure-rich papers in lists and cards */
.rel-list li a.has-thumb { grid-template-columns: 84px 52px minmax(0, 1fr) auto; align-items: center; }
.rel-thumb { width: 96px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 2px; }
.pub.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 184px; gap: 4px 24px; align-items: start; }
.pub-thumb { width: 184px; height: 106px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; margin-top: 2px; display: block; }
.card .plate.fig { display: block; aspect-ratio: 16 / 9; padding: 0; background: #fff; }
.card .plate.fig::before { display: none; }
.card .plate.fig img { width: 100%; height: 100%; object-fit: contain; padding: 12px; display: block; }
.card:hover .plate.fig img { transform: scale(1.02); }
.card .plate.fig img { transition: transform .3s; }
.card .tags .tag.fill { white-space: nowrap; }

@media (max-width: 900px) {
  .rich-top, .rich-cols { grid-template-columns: 1fr; gap: 32px; }
  .fig-grid.n2, .fig-grid.n3 { grid-template-columns: 1fr; }
  .fig-grid.n1 { grid-template-columns: 1fr; }
  .fig-plate { padding: 8px; }
  .fig-plate img { max-height: 520px; }
  .fs-nav { width: 34px; height: 34px; }
  .fs-nav.prev { left: 8px; }
  .fs-nav.next { right: 8px; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile:nth-child(2n) { border-right: 0; }
  .tile:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tile:last-child { border-bottom: 0; }
  .tldr-card { padding: 20px; }
  .rel-list li a.has-thumb { grid-template-columns: 64px minmax(0, 1fr); }
  .rel-list li a.has-thumb .y, .rel-list li a.has-thumb .vn { grid-column: 2; }
  .rel-thumb { width: 64px; height: 44px; grid-row: 1 / span 3; }
  .pub.has-thumb { grid-template-columns: 1fr; }
  .pub-thumb { display: none; }
}

.topic-active { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); white-space: nowrap; }
.topic-active:hover { background: var(--accent-tint); }

/* ---------- news ticker ---------- */
.ticker {
  display: flex; align-items: stretch; background: var(--slate); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 13px; position: relative; z-index: 51;
}
.tk-label {
  flex: none; display: flex; align-items: center; padding: 0 16px 0 var(--gutter);
  background: var(--gold); color: var(--slate); text-decoration: none;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 26px;
}
.tk-label:hover { color: var(--slate); background: #e3d4ad; }
.tk-view { flex: 1; min-width: 0; overflow: hidden; display: flex; white-space: nowrap; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.tk-view.dragging { cursor: grabbing; }
.tk-track { flex: none; display: flex; align-items: center; min-width: 100%; }
.tk-track li { flex: none; }
.tk-track a { display: inline-block; padding: 9px 0; color: #fff; text-decoration: none; -webkit-user-drag: none; }
.tk-track a:hover { color: var(--hero-accent); }
.tk-track li::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 22px; background: var(--gold); transform: rotate(45deg); opacity: .8; vertical-align: middle; }
.tk-d { color: var(--hero-accent); margin-right: 10px; font-variant-numeric: tabular-nums; }
.tk-pause {
  flex: none; width: 40px; border: 0; border-left: 1px solid var(--hero-line); background: transparent;
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.tk-pause:hover { background: rgba(255, 255, 255, .08); color: var(--hero-accent); }
.tk-pause svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-pause .r { display: none; fill: currentColor; stroke: none; }
.tk-pause[aria-pressed="true"] .p { display: none; }
.tk-pause[aria-pressed="true"] .r { display: block; }
@media (prefers-reduced-motion: reduce) { .tk-pause { display: none; } }
@media (max-width: 560px) {
  .tk-label { padding-left: var(--gutter); }
  .tk-pause { width: 34px; }
}
@media print { .ticker { display: none; } }

.foot .email-img { height: 20px; width: auto; display: block; margin: 2px 0; }
