/* ==========================================================================
   Dixit Lab — Laboratory of Computational Systems Biology and Biophysics
   Yale University, Department of Biomedical Engineering
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Hero and footer bands: light grey with a blue cast. */
  --ink:        #E6EBF1;
  --ink-2:      #DDE4EC;
  --paper:      #FFFFFF;
  --paper-2:    #F7F8F9;
  --paper-3:    #EDEFF2;
  --text:       #16191F;
  --text-2:     #444C58;
  --muted:      #7C848F;
  --line:       #E3E6EA;
  --line-2:     #F0F2F4;
  --line-dark:  #CCD6E1;

  --accent:     #00356B;   /* Yale blue */
  --accent-dk:  #002548;
  --accent-lt:  #93AECC;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1100px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 3px;
  --nav-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 7.5vw, 96px); }
.hero--page + .section { padding-top: clamp(44px, 5vw, 64px); }
.section--tight { padding-block: clamp(44px, 5.5vw, 68px); }
.section--dark { background: var(--ink); color: var(--text-2); }
.section--alt { background: var(--paper-2); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Eyebrow ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.hero .kicker { color: var(--muted); }

.lede {
  font-size: clamp(18px, 1.9vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 66ch;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.015em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 22px; height: 22px; flex: none; opacity: 0.9; }
.brand__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 10px;
}

.nav__links { display: flex; align-items: center; gap: 2px; }

.nav__links a {
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-2);
  padding: 8px 12px;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--text); font-weight: 500; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  width: 17px; height: 1px;
  background: var(--text);
  position: relative;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 17px; height: 1px;
  background: var(--text);
  transition: transform 0.2s;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Transparent nav while over the dark hero */
.nav--over-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav--over-hero .brand { color: var(--text); }
.nav--over-hero .nav__links a { color: var(--text-2); }
.nav--over-hero .nav__links a:hover,
.nav--over-hero .nav__links a[aria-current="page"] { color: var(--text); }
.nav--over-hero .brand__sub { color: var(--muted); border-left-color: var(--line-dark); }
.nav--over-hero .nav__toggle { border-color: var(--line-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line-dark);
}
.hero--home { min-height: min(78vh, 660px); display: flex; align-items: flex-end; }
.hero--page { padding-top: calc(var(--nav-h) + clamp(52px, 7vw, 84px)); padding-bottom: clamp(44px, 5.5vw, 68px); }

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.5;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(230, 235, 241, 0.4) 0%, rgba(230, 235, 241, 0.05) 45%, rgba(230, 235, 241, 0.45) 100%);
  pointer-events: none;
}

.hero__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(84px, 11vw, 118px) var(--gutter) clamp(48px, 6vw, 72px);
  position: relative;
}

.hero__title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.028em;
  margin: 0 0 22px;
  max-width: 18ch;
}
.hero__title em { font-style: normal; color: var(--accent); }

.hero__sub {
  font-size: clamp(16.5px, 1.8vw, 19px);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 58ch;
  margin: 0 0 30px;
}
.hero__sub a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.hero__affil {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.hero--page .hero__title { font-size: clamp(30px, 4.2vw, 48px); margin-bottom: 16px; }

/* ---------- Buttons and text links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); color: #fff; }
.btn--ghost { border-color: var(--line-dark); color: var(--text); }
.btn--ghost:hover { border-color: var(--text-2); color: var(--text); }
.btn--dark { border-color: var(--line); color: var(--text); background: transparent; }
.btn--dark:hover { border-color: var(--text-2); }
.btn__arrow { transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Ghost buttons sit on light backgrounds inside callouts */
.callout .btn--ghost { border-color: var(--line); color: var(--text); }
.callout .btn--ghost:hover { border-color: var(--text-2); color: var(--text); }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--line-dark);
  gap: 8px;
}
.stat { padding: 22px 0 2px; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.split--even { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- Sub-headings inside a prose column ---------- */
.subhead {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 10px;
}
.subhead + p { margin-bottom: 0; }
.subhead:not(:first-child) { margin-top: 30px; }

/* ---------- Research areas ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  column-gap: clamp(24px, 3.5vw, 44px);
  row-gap: 0;
}
@media (min-width: 900px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area {
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  color: inherit;
}
.area:hover { text-decoration: none; }
.area__idx {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.area h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.18s;
}
.area:hover h3 { color: var(--accent); }
.area p { font-size: 15.5px; line-height: 1.62; color: var(--text-2); margin: 0; }
.area__link {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s;
}
.area:hover .area__link { color: var(--accent); }

/* ---------- Tabs ---------- */
/* Hidden until JS enhances, so a no-JS reader gets all three panels stacked. */
.tabs__list { display: none; }
.tabs.is-enhanced .tabs__list {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.tabs__tab {
  flex: 1 1 0;
  font-family: var(--display);
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s, border-color 0.15s;
}
.tabs__tab:hover { color: var(--text-2); }
.tabs__tab[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tabs__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

/* Inside the tab container every panel is the first one. */
.tabs.is-enhanced .topic {
  border-top: none;
  padding-top: 0;
}

/* .topic sets display:grid, which would otherwise beat the browser's
   [hidden] rule and leave every panel on screen. */
.topic[hidden] { display: none; }

@media (max-width: 640px) {
  .tabs.is-enhanced .tabs__list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tabs__tab { flex: 0 0 auto; white-space: nowrap; text-align: left; }
}

/* ---------- Long-form research entries ---------- */
.topic {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: clamp(22px, 4.5vw, 60px);
  padding-block: clamp(36px, 4.5vw, 58px);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.topic:first-of-type { border-top: none; padding-top: 0; }
.topic__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.topic__num {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}
.topic h2 { font-size: clamp(22px, 2.7vw, 29px); margin-bottom: 14px; }
.topic__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.topic__body p { font-size: 16.5px; color: var(--text-2); }
.topic__refs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--muted);
}
.topic__refs strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.topic__refs ul { margin: 0; padding-left: 17px; }
.topic__refs li { margin-bottom: 6px; }

/* ---------- Publications ---------- */
.pubfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.pubfilter__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
.chip {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px 11px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--line); }
.chip[aria-pressed="true"] {
  color: var(--text);
  font-weight: 500;
  border-color: var(--text-2);
}

.pubyear {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: var(--muted);
  padding: 30px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}

.pub {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.pub__badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 4px;
}
.pub__title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 6px;
}
.pub__title a { color: inherit; }
.pub__title a:hover { color: var(--accent); }
.pub__authors { font-size: 14.5px; color: var(--text-2); margin: 0 0 6px; line-height: 1.5; }
.pub__authors .me { font-weight: 600; color: var(--text); }
.pub__authors .lab { color: var(--accent); }
.pub__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.pub__venue { font-style: italic; }
.pub__flag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 2px;
}
.pub__flag--select { display: none; }
.pub__flag--status { color: var(--accent); border-color: var(--accent-lt); }

/* ---------- People ---------- */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr));
  column-gap: clamp(20px, 3vw, 36px);
  row-gap: 0;
}
.person {
  padding: 26px 0 28px;
  border-top: 1px solid var(--line);
}
.person__avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-2);
  background: var(--paper-3);
  margin-bottom: 16px;
  overflow: hidden;
  flex: none;
}
/* Same box whether it holds initials or a photograph. */
img.person__avatar { object-fit: cover; object-position: center top; }
.person h3 { font-size: 17.5px; margin-bottom: 4px; }
.person__role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.person__bio { font-size: 14.5px; color: var(--text-2); line-height: 1.58; margin: 0 0 12px; }
.person__links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }

.person--pi {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-top: none;
  padding-top: 0;
  padding-bottom: 34px;
}
.person--pi h3 { font-size: 24px; }
.person--pi .person__avatar { width: 132px; height: 132px; font-size: 38px; margin: 0; }
.person--pi .person__bio { font-size: 16px; }

.alumni { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: clamp(24px, 4vw, 44px); }
.alum { padding: 15px 0; border-top: 1px solid var(--line); }
.alum strong { display: block; font-family: var(--display); font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em; }
.alum span { font-size: 14px; color: var(--muted); }

/* ---------- News timeline ---------- */
.timeline { border-left: 1px solid var(--line); margin-left: 4px; }
.tl { position: relative; padding: 0 0 30px 28px; }
.tl::before {
  content: "";
  position: absolute;
  left: -3.5px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.tl--major::before { background: var(--accent); }
.tl__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tl__body { font-size: 16px; color: var(--text-2); }
.tl__body strong { color: var(--text); font-weight: 600; }

/* ---------- Callout ---------- */
.callout {
  border-top: 1px solid var(--line);
  padding-top: clamp(30px, 4vw, 44px);
}
.callout h2 { font-size: clamp(23px, 3vw, 30px); }
.callout p { color: var(--text-2); max-width: 60ch; }

.checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 16.5px;
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 10px; height: 1px;
  background: var(--muted);
}

.card { border-top: 1px solid var(--line); padding: 24px 0 4px; }
.card h3 { font-size: 18px; }
.card p { font-size: 15.5px; color: var(--text-2); margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  column-gap: clamp(28px, 5vw, 56px);
}

/* ---------- Funding ---------- */
.fund {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.fund__agency { font-family: var(--display); font-weight: 500; font-size: 16px; }
.fund__meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; margin-top: 4px; }
.fund__desc { color: var(--text-2); font-size: 16px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--text-2);
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(44px, 5.5vw, 64px) 28px;
  font-size: 14.5px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 13px;
}
.footer a { color: var(--accent); }
.footer a:hover { color: var(--accent-dk); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 34px;
}
.footer__brand {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 30px; }
.mt-l { margin-top: 48px; }
.mb-m { margin-bottom: 30px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Scroll reveal retired for a quieter page. */
.reveal { opacity: 1; transform: none; transition: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .topic, .person--pi { grid-template-columns: minmax(0, 1fr); }
  .topic__head { position: static; }
  .person--pi .person__avatar { width: 96px; height: 96px; font-size: 28px; }
  .fund { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    color: var(--text) !important;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px;
  }
  .brand__sub { display: none; }
  body { font-size: 16.5px; }
}

@media (max-width: 560px) {
  .pub { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pub__badge { display: none; }
  .hero--home { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .nav, .hero__canvas, .footer, .pubfilter { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero__title, .hero__sub { color: #000 !important; }
}
