@charset "utf-8";
/* ==========================================================================
   Targeting Foundry — design system
   One stylesheet. Tokens first, then shell, then page furniture.
   Replaces styles.css + archive.css + brand.css + motion.css.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
  /* Brand */
  --purple: #4e2a84;          /* Northwestern purple */
  --purple-deep: #33195c;
  --purple-lift: #7c4fbd;     /* purple that survives on dark grounds */
  --gold: #b48a36;            /* instrument gold — passes AA on paper */
  --gold-lift: #d6b364;       /* gold for dark grounds */

  /* Neutrals, biased toward the brand hue rather than pure grey */
  --paper: #fdfcfe;
  --raised: #ffffff;
  --soft: #f5f1fa;
  --softer: #faf8fc;
  --ink: #1b1622;
  --muted: #6a6275;
  --faint: #716b7f;           /* 4.6:1+ on every light surface here */
  --line: #e3ddec;
  --line-strong: #cfc5de;

  /* Inverted surfaces (hero, join) keep their own ramp in both themes */
  --night: #161022;
  --night-2: #1f1630;
  --night-line: #ffffff1f;
  --night-ink: #f2eef8;
  --night-muted: #b9b1c7;

  /* Accent aliases — components read these, never the raw brand colors */
  --accent: var(--purple);
  --accent-ink: #ffffff;
  --accent-soft: #f2ecfa;
  --rule: var(--gold);

  /* Type */
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --display: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --t-micro: .6875rem;
  --t-tiny: .75rem;
  --t-small: .8125rem;
  --t-meta: .875rem;
  --t-body: .9375rem;
  --t-base: 1rem;
  --t-lead: 1.125rem;
  --t-h4: 1.1875rem;
  --t-h3: 1.375rem;
  --t-h2: clamp(1.9rem, 1.2rem + 2.2vw, 2.85rem);
  --t-h1: clamp(2.35rem, 1.3rem + 4.1vw, 4.05rem);

  /* Space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --gutter: 48px;
  --measure: 62ch;
  --radius: 3px;              /* the mark is faceted, not rounded */
  --shadow: 0 1px 2px #1b162209, 0 8px 24px #1b16220a;
  --shadow-lift: 0 2px 4px #1b16220d, 0 14px 38px #1b162214;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131019;
    --raised: #1a1522;
    --soft: #1b1626;
    --softer: #17131f;
    --ink: #ece7f4;
    --muted: #a79eb6;
    --faint: #8b8299;
    --line: #2e2739;
    --line-strong: #453b55;

    --night: #0e0a17;
    --night-2: #171029;
    --night-line: #ffffff17;

    --accent: #b08ce8;
    --accent-ink: #1b1030;
    --accent-soft: #241a36;
    --rule: var(--gold-lift);
    --purple-lift: #c3a4ec;

    --shadow: 0 1px 2px #00000040, 0 8px 24px #00000038;
    --shadow-lift: 0 2px 4px #00000050, 0 14px 38px #00000055;
  }
}

:root[data-theme="dark"] {
  --paper: #131019;
  --raised: #1a1522;
  --soft: #1b1626;
  --softer: #17131f;
  --ink: #ece7f4;
  --muted: #a79eb6;
  --faint: #8b8299;
  --line: #2e2739;
  --line-strong: #453b55;

  --night: #0e0a17;
  --night-2: #171029;
  --night-line: #ffffff17;

  --accent: #b08ce8;
  --accent-ink: #1b1030;
  --accent-soft: #241a36;
  --rule: var(--gold-lift);
  --purple-lift: #c3a4ec;

  --shadow: 0 1px 2px #00000040, 0 8px 24px #00000038;
  --shadow-lift: 0 2px 4px #00000050, 0 14px 38px #00000055;
}

/* --- 2. Base ------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--t-base)/1.65 var(--sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p, h1, h2, h3, h4, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, details:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

img, svg { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 550;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 500; line-height: 1.04; letter-spacing: -.038em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.032em; }
h3 { font-size: var(--t-h3); line-height: 1.28; letter-spacing: -.018em; }
h4 { font-size: var(--t-h4); line-height: 1.35; letter-spacing: -.012em; }

.wrap {
  width: min(1180px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip {
  position: fixed; left: 12px; top: -100px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 20px; font-weight: 600; font-size: var(--t-body);
}
.skip:focus { top: 12px; }

/* Shared atoms ------------------------------------------------------------ */

.eyebrow {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--mono);
  font-size: var(--t-tiny);
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--s5);
}
.eyebrow::before {
  content: ''; flex: none;
  width: 22px; height: 2px;
  background: var(--rule);
}

/* Technical metadata: coordinates, registry IDs, sample sizes, versions.
   This lab works in these units; they get a face that reads as instrument. */
.tech {
  font-family: var(--mono);
  font-size: var(--t-small);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.button {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: var(--s6);
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 20px;
  font-weight: 550; font-size: var(--t-body);
  border: 1px solid transparent;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.button:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.button:active { transform: translateY(1px); }
.button.light { background: #fff; color: var(--purple); }
.button.light:hover { background: #f0e8fb; }
.button.ghost {
  background: transparent; color: var(--accent);
  border-color: var(--line-strong);
}
.button.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-body); font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s ease;
}
.text-link:hover { color: var(--accent); }

.source-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-meta); color: var(--accent);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

/* --- 3. Institution bar + header ----------------------------------------- */

.institution { background: var(--purple); color: #fff; }
.institution .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); padding: 9px 0;
}
.institution .medicine-link { flex: 0 1 205px; min-width: 0; }
.institution .feinberg-link { flex: 0 1 190px; min-width: 0; margin-left: auto; }
.institution img { width: 100%; height: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-icon { width: 46px; height: 46px; flex: none; }
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.3125rem; font-weight: 650;
  letter-spacing: -.028em; line-height: 1.15;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: var(--t-tiny); line-height: 1.4;
  color: var(--accent); margin-top: 2px;
}

.site-nav {
  display: flex; align-items: center; gap: 22px;
  font-size: var(--t-body);
}
.site-nav > a:not(.nav-join) {
  position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.site-nav > a:not(.nav-join)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.site-nav > a:not(.nav-join):hover { color: var(--accent); }
.site-nav > a:not(.nav-join):hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 550; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-join {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  font-weight: 550;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.nav-join:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.more-nav { position: relative; }
.more-nav > summary {
  list-style: none; cursor: pointer; padding: 4px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.more-nav > summary::-webkit-details-marker { display: none; }
.more-nav > summary::after {
  content: ''; width: 5px; height: 5px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}
.more-nav[open] > summary { color: var(--accent); }
.more-nav > div {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5;
  display: flex; flex-direction: column;
  min-width: 172px;
  background: var(--raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 6px;
}
.more-nav > div > a { padding: 9px 12px; }
.more-nav > div > a:hover { background: var(--soft); color: var(--accent); }

/* Theme toggle + hamburger */
.nav-tools { display: flex; align-items: center; gap: 10px; }

.theme-toggle, .nav-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: inherit; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
}

.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span {
  display: block; width: 17px; height: 1.5px; background: currentColor;
  transition: transform .24s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- 4. Hero ------------------------------------------------------------- */

.hero {
  background: var(--night);
  background-image:
    radial-gradient(90ch 60ch at 18% 8%, #40206e5c, transparent 62%),
    radial-gradient(70ch 55ch at 92% 78%, #2a1a4a52, transparent 66%);
  color: var(--night-ink);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s7);
  padding-top: 72px; padding-bottom: 60px;
}
.hero .eyebrow { color: #cdb3f5; }
.hero .eyebrow::before { background: var(--gold-lift); }
.hero h1 em { font-style: normal; color: #c3a4ec; }
.intro {
  max-width: 46ch;
  font-size: var(--t-lead); line-height: 1.68;
  color: var(--night-muted);
  margin-top: var(--s5);
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5);
  margin-top: var(--s6);
}
.hero .button { background: #d9c6f3; color: #27163f; }
.hero .button:hover { background: #eddffd; }
.hero .text-link { color: var(--night-ink); }
.hero .text-link:hover { color: #d9c6f3; }

.hero-art { min-width: 0; margin: 0; }
.hero-art figcaption {
  display: flex; justify-content: space-between; gap: var(--s4);
  padding-top: var(--s3);
  font-family: var(--mono);
  font-size: var(--t-micro); letter-spacing: .05em;
  color: #9b93ab; text-transform: uppercase;
}
.signal-controls { display: flex; justify-content: flex-end; margin-top: 6px; }
.signal-toggle {
  background: transparent; border: 1px solid var(--night-line);
  color: var(--night-muted); font: 500 var(--t-micro)/1 var(--mono);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 10px; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.signal-toggle:hover { border-color: #d9c6f3; color: #d9c6f3; }

.hero-foot {
  display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7);
  border-top: 1px solid var(--night-line);
  padding: 18px 0;
  font-family: var(--mono);
  font-size: var(--t-tiny); letter-spacing: .06em; text-transform: uppercase;
  color: var(--night-muted);
}
.hero-foot span { display: inline-flex; align-items: center; gap: 10px; }
.hero-foot span::before {
  content: ''; width: 4px; height: 4px; flex: none;
  background: var(--gold-lift); transform: rotate(45deg);
}

/* --- 5. Section scaffolding ---------------------------------------------- */

.section { padding-block: var(--s9); }
.section-soft { background: var(--soft); }
.section-line { border-top: 1px solid var(--line); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  column-gap: var(--s9); align-items: end;
}
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: var(--s4); }
.section-heading > p:last-child {
  font-size: var(--t-lead); line-height: 1.7;
  color: var(--muted); max-width: 50ch; justify-self: end;
}

.section-top {
  display: flex; justify-content: space-between; align-items: end;
  gap: var(--s6); margin-bottom: var(--s7);
}
.section-top .eyebrow { margin-bottom: var(--s3); }
.section-top .text-link { flex: none; }

.page-intro {
  font-size: var(--t-lead); line-height: 1.7;
  color: var(--muted); max-width: var(--measure);
  margin-top: var(--s5);
}

/* --- 6. Method: how a target gets found ---------------------------------- */

.method-section { background: var(--softer); border-block: 1px solid var(--line); }
.method-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  gap: 1px;
  margin-top: var(--s7);
  background: var(--line);
  border: 1px solid var(--line);
}
.method-step {
  display: flex; flex-direction: column;
  gap: var(--s3);
  background: var(--paper);
  padding: var(--s5) var(--s5) var(--s6);
}
.method-step-n {
  font-family: var(--mono); font-size: var(--t-tiny);
  letter-spacing: .12em; color: var(--gold);
  font-weight: 500;
}
.method-art { width: 100%; height: auto; display: block; }
.method-step h3 { font-size: var(--t-h4); }
.method-step p { font-size: var(--t-body); line-height: 1.6; color: var(--muted); }
.method-step .tech {
  margin-top: auto; padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: var(--t-micro); color: var(--faint);
  letter-spacing: .04em;
}
.method-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5);
  margin-top: var(--s5);
  font-size: var(--t-meta); color: var(--muted);
}

/* Diagram parts are styled here, not inline, so both themes stay in sync. */
.method-art { max-width: 232px; }
.method-art .brain {
  fill: var(--accent-soft);
  stroke: var(--line-strong);
  stroke-width: 1.6;
}
.method-art .mark { fill: var(--accent); }
.method-art .hot { fill: var(--rule); }
.method-art .ln { fill: none; stroke: var(--line-strong); stroke-width: 1.6; stroke-linecap: round; }
.method-art .trace { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
.method-art .dash { stroke-dasharray: 3 4.5; }
.method-art .cross {
  fill: none; stroke: var(--rule);
  stroke-width: 2; stroke-linecap: round;
}
.method-art .cross .dot { fill: var(--rule); stroke: none; }
.method-step em { font-style: normal; color: var(--ink); font-weight: 550; }

/* --- 7. Research pillars -------------------------------------------------- */

.research-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  margin-top: var(--s7);
}
.research-grid article {
  display: flex; flex-direction: column; gap: var(--s3);
  border-top: 2px solid var(--accent);
  padding-top: var(--s4);
}
.research-grid article:nth-child(2) { border-top-color: var(--rule); }
.research-grid article:nth-child(3) { border-top-color: var(--line-strong); }
.research-grid h3 { font-size: var(--t-h3); }
.research-grid p { color: var(--muted); font-size: var(--t-body); }
.method {
  display: block; margin-top: auto; padding-top: var(--s4);
  font-family: var(--mono); font-size: var(--t-micro);
  line-height: 1.7; letter-spacing: .03em;
  color: var(--accent);
}

/* --- 8. Recruiting band --------------------------------------------------- */

.trial-band { background: var(--night-2); color: var(--night-ink); }
.trial-band-inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--s7); align-items: center;
  padding-block: var(--s8);
}
.trial-band .eyebrow { color: #d8c2ff; margin-bottom: var(--s4); }
.trial-band .eyebrow::before { background: var(--gold-lift); }
.trial-band h2 { font-size: clamp(1.65rem, 1.1rem + 1.7vw, 2.3rem); }
.trial-band p { color: var(--night-muted); max-width: 48ch; margin-top: var(--s4); }
.trial-band .button { background: #d9c6f3; color: #27163f; }
.trial-band .button:hover { background: #eddffd; }
.trial-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin-top: var(--s5); }
.trial-actions .text-link { color: var(--night-ink); }

.trial-facts {
  display: grid; gap: 0;
  border: 1px solid var(--night-line);
}
.trial-fact {
  display: grid; grid-template-columns: 116px minmax(0, 1fr);
  gap: var(--s4);
  padding: 13px var(--s4);
  font-size: var(--t-body);
  border-bottom: 1px solid var(--night-line);
}
.trial-fact:last-child { border-bottom: 0; }
.trial-fact dt {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .08em; text-transform: uppercase;
  color: #a294bb; padding-top: 3px;
}
.trial-fact dd { margin: 0; color: var(--night-ink); }

/* --- 9. People ------------------------------------------------------------ */

.people-section { background: var(--soft); padding-block: var(--s9); }
.people-top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s7); align-items: end; margin-bottom: var(--s7);
}
.people-intro { color: var(--muted); max-width: 46ch; margin-top: var(--s4); }

.profile {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--s6); align-items: center;
  background: var(--raised);
  border: 1px solid var(--line);
  padding: var(--s5);
  margin-bottom: var(--s5);
}
.profile img { width: 150px; height: 196px; object-fit: cover; object-position: 50% 28%; }
.profile .eyebrow { margin-bottom: var(--s2); }
.profile h3 { font-size: 1.5rem; margin-bottom: var(--s2); }
.profile p:not(.eyebrow) { font-size: var(--t-body); color: var(--muted); line-height: 1.5; }
.profile-detail { margin: 6px 0 var(--s4); }
.profile-statement {
  border-left: 2px solid var(--rule);
  padding-left: var(--s5);
  align-self: stretch;
  display: flex; align-items: center;
}
.profile-statement p { font-size: var(--t-body); line-height: 1.65; color: var(--muted); }

.roster {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.roster-person {
  display: flex; align-items: center; gap: var(--s3);
  background: var(--raised);
  padding: 13px var(--s4);
  min-width: 0;
}
.roster-person img, .roster-person .person-initials {
  width: 38px; height: 38px; flex: none;
  object-fit: cover; object-position: 50% 25%;
  border-radius: 50%;
}
.roster-person .person-initials {
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font: 550 var(--t-tiny)/1 var(--display); letter-spacing: .04em;
}
.roster-person div { min-width: 0; }
.roster-person strong {
  display: block; font-size: var(--t-body); font-weight: 550;
  line-height: 1.3; overflow-wrap: break-word;
}
.roster-person span {
  display: block; font-size: var(--t-tiny); color: var(--muted);
  line-height: 1.4; margin-top: 1px;
}
.roster-more {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: var(--accent-soft);
  padding: 13px var(--s4);
}
.roster-more strong { font-size: var(--t-body); font-weight: 550; }
.roster-more a { font-size: var(--t-tiny); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- 10. Publications ----------------------------------------------------- */

.papers { border-top: 1px solid var(--line); }
.paper {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 20px;
  gap: var(--s5); align-items: center;
  padding: var(--s4) var(--s3);
  margin-inline: calc(var(--s3) * -1);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}
.paper:hover { background: var(--soft); }
.paper-illustration {
  width: 104px; height: 74px; object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
}
.paper-text { min-width: 0; }
.journal {
  font-family: var(--mono);
  font-size: var(--t-micro); letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent); margin-bottom: 5px;
}
.paper-year { color: var(--faint); }
.paper h3 { font-size: var(--t-base); line-height: 1.4; font-weight: 600; }
.authors { font-size: var(--t-small); color: var(--muted); margin-top: 4px; }
.paper-note {
  font-size: var(--t-small); line-height: 1.55;
  color: var(--ink); margin-top: 7px;
  padding-left: 11px; border-left: 2px solid var(--rule);
}
.paper-arrow {
  font-size: 1.25rem; color: var(--accent); align-self: center;
  transition: transform .24s cubic-bezier(.2,.7,.2,1);
}
.paper:hover .paper-arrow { transform: translateX(3px); }
.paper-credit {
  font-size: var(--t-tiny); line-height: 1.6;
  color: var(--faint); margin-top: var(--s4);
}
.paper-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* --- 11. Resources + join ------------------------------------------------- */

.resources-section { background: var(--soft); padding-block: var(--s9); }
.resources-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--s9);
}
.resources-grid > div > p { margin-top: var(--s5); max-width: 40ch; color: var(--muted); }

.resource-list a {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5);
  border-bottom: 1px solid var(--line-strong);
  padding: 18px 0;
  transition: padding-left .22s ease;
}
.resource-list a:first-child { padding-top: 0; }
.resource-list a:hover { padding-left: 8px; }
.resource-list a:hover strong { color: var(--accent); }
.resource-list strong { font-weight: 600; transition: color .2s ease; }
.resource-list small {
  display: block; font-size: var(--t-small);
  color: var(--muted); margin-top: 4px;
}
.resource-list > a > span:last-child { color: var(--accent); }

.join-section { background: var(--purple); color: #fff; padding-block: var(--s9); }
.join-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s9); align-items: start;
}
.join-section .eyebrow { color: #d7c6ec; }
.join-section .eyebrow::before { background: var(--gold-lift); }
.join-section h2 { font-size: clamp(2.1rem, 1.3rem + 2.5vw, 3.1rem); }
.join-section h2 + p { max-width: 48ch; margin: var(--s5) 0 var(--s6); color: #e2d7f0; font-size: var(--t-lead); }
.join-guide {
  display: inline-flex; align-items: center; gap: 9px;
  margin-left: var(--s5); color: #f2dfb6;
  text-decoration: underline; text-underline-offset: 5px;
  font-size: var(--t-body);
}
.join-aside { border-left: 1px solid #ffffff40; padding: 6px 0 6px var(--s6); }
.join-aside > p:first-child {
  font-family: var(--mono); font-size: var(--t-tiny);
  letter-spacing: .09em; text-transform: uppercase;
  color: #d5c5e9; margin-bottom: var(--s4);
}
.join-aside > a {
  font-size: clamp(1rem, .85rem + .6vw, 1.3rem);
  text-decoration: underline; text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.join-note { color: #e2d7f0; margin-top: var(--s4); max-width: 38ch; font-size: var(--t-body); }
.join-aside > span {
  display: block; font-size: var(--t-small);
  color: #d5c5e9; margin-top: var(--s6); line-height: 1.7;
}

/* --- 12. Footer ----------------------------------------------------------- */

footer.wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: var(--s6);
  padding-block: var(--s7);
  font-size: var(--t-small); color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 0;
}
footer strong { color: var(--ink); font-size: var(--t-base); font-family: var(--display); }
footer > div:nth-child(2) { display: flex; flex-direction: column; gap: 6px; }
footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
footer .lab-affiliation { color: var(--accent); margin-top: 3px; }

/* --- 13. Team page -------------------------------------------------------- */

.team-heading { padding-top: var(--s8); padding-bottom: var(--s6); }
.team-jumps {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin-top: var(--s5);
}
.team-jumps a {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  font-size: var(--t-body);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.team-jumps a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.team-section { padding-bottom: var(--s8); }
.team-section-heading { margin-bottom: var(--s5); }
.team-section-heading h2 { font-size: 1.75rem; }
.team-section-heading h2::after {
  content: ''; display: block; width: 32px; height: 2px;
  background: var(--rule); margin-top: 9px;
}
.team-section-heading p { color: var(--muted); font-size: var(--t-body); margin-top: 11px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: var(--s5);
}
.person-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: var(--s4);
  align-content: start;
  align-self: start;
  background: var(--raised);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-strong);
  padding: var(--s4);
  transition: border-top-color .2s ease, box-shadow .2s ease;
}
.person-card:hover { border-top-color: var(--accent); box-shadow: var(--shadow); }
.person-card > img, .person-card .person-initials {
  width: 74px; height: 84px; object-fit: cover; object-position: 50% 22%;
}
.person-card .person-initials {
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font: 550 1.25rem/1 var(--display); letter-spacing: .04em;
}
.person-card h3 { font-size: var(--t-base); line-height: 1.3; }
.person-role p { font-size: var(--t-small); color: var(--muted); line-height: 1.5; margin-top: 3px; }
.person-links { font-size: var(--t-small); margin-top: 7px; color: var(--muted); }
.person-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.person-bio { grid-column: 1 / -1; margin-top: var(--s2); }
.person-bio > summary {
  cursor: pointer; font-size: var(--t-small); color: var(--accent);
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.person-bio > summary::-webkit-details-marker { display: none; }
.person-bio > summary::after {
  content: ''; width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.person-bio[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.person-bio p { font-size: var(--t-small); color: var(--muted); line-height: 1.6; margin-top: var(--s3); }

.team-growing {
  display: flex; flex-direction: column; gap: 7px;
  align-self: start;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--rule);
  padding: var(--s4);
}
.team-growing h3 { font-size: var(--t-h4); }
.team-growing p { font-size: var(--t-body); line-height: 1.5; color: var(--muted); }
.team-growing a { font-size: var(--t-small); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- 14. Trials page ------------------------------------------------------ */

.trial-hero { padding-top: var(--s8); padding-bottom: var(--s6); }
.trial-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: var(--t-tiny);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 5px 11px;
  margin-bottom: var(--s5);
}
.trial-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #2f9e6b; flex: none;
}
.trial-layout {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--s8);
  padding-bottom: var(--s9);
  align-items: start;
}
.trial-body > * + * { margin-top: var(--s5); }
.trial-body h2 { font-size: 1.6rem; margin-top: var(--s7); }
.trial-body h3 { font-size: var(--t-h4); margin-top: var(--s6); }
.trial-body p { color: var(--muted); max-width: var(--measure); }
.trial-body ul { list-style: none; display: grid; gap: 10px; }
.trial-body li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  font-size: var(--t-body); color: var(--muted);
}
.trial-body li::before {
  content: ''; width: 7px; height: 7px; margin-top: 9px;
  background: var(--rule); transform: rotate(45deg);
}
.trial-aside {
  position: sticky; top: 104px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: var(--s5);
}
.trial-aside h2 { font-size: var(--t-h4); margin-bottom: var(--s4); }
.trial-aside dl { display: grid; gap: 0; margin: 0 0 var(--s5); }
.trial-aside dt {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); padding-top: 11px;
}
.trial-aside dd {
  margin: 2px 0 11px; font-size: var(--t-body);
  border-bottom: 1px solid var(--line); padding-bottom: 11px;
}
.trial-aside dd:last-of-type { border-bottom: 0; }
.trial-aside .button { width: 100%; }
.trial-conditions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s5); }
.trial-conditions span {
  font-size: var(--t-small);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  color: var(--muted);
}
.trial-disclaimer {
  font-size: var(--t-small); line-height: 1.6; color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: var(--s4); margin-top: var(--s7);
  max-width: var(--measure);
}

/* --- 15. Data & code ------------------------------------------------------ */

.data-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  padding-bottom: var(--s9);
}
.data-card {
  display: flex; flex-direction: column; gap: 9px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  padding: var(--s4);
  transition: box-shadow .2s ease, border-top-color .2s ease;
}
.data-card:nth-child(3n+2) { border-top-color: var(--rule); }
.data-card:hover { box-shadow: var(--shadow-lift); }
.study-card-image {
  width: 100%; aspect-ratio: 1000 / 559;
  object-fit: contain; background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 6px;
}
.data-card h2 { font-size: var(--t-base); line-height: 1.4; letter-spacing: -.012em; font-weight: 600; }
.data-card .eyebrow { margin-bottom: 0; font-size: var(--t-micro); }
.data-open {
  margin-top: auto; padding-top: var(--s3);
  font-size: var(--t-small); color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.data-card:hover .data-open > span { transform: translateX(3px); }
.data-open > span { display: inline-block; transition: transform .24s cubic-bezier(.2,.7,.2,1); }

/* --- 16. Press ------------------------------------------------------------ */

.press-section { padding-bottom: var(--s6); }
.press-section h2 { font-size: 1.5rem; margin-bottom: var(--s4); }
.press-item {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s5);
  padding: 15px var(--s3);
  margin-inline: calc(var(--s3) * -1);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease;
}
.press-item:hover { background: var(--soft); }
.press-item h3 { font-size: var(--t-base); line-height: 1.45; margin: 3px 0; font-weight: 600; }
.press-meta {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .04em; color: var(--accent);
}
.press-kind { font-size: var(--t-small); color: var(--muted); }
.press-item > span { color: var(--accent); flex: none; }

/* --- 17. Archive + legacy pages ------------------------------------------- */

.archive-title { padding-top: var(--s8); padding-bottom: var(--s6); }
.breadcrumb {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-small); color: var(--muted);
  margin-bottom: var(--s4);
}
.breadcrumb::before { content: '←'; }
.breadcrumb:hover { color: var(--accent); }
.archive-notice {
  font-size: var(--t-body); line-height: 1.65; color: var(--muted);
  background: var(--soft);
  border-left: 2px solid var(--rule);
  padding: var(--s4) var(--s5);
  margin-top: var(--s5);
  max-width: var(--measure);
}
.archive-notice a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.archive-index {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--s7);
  padding-bottom: var(--s9);
}
.archive-index h2 { font-size: var(--t-h4); margin-bottom: var(--s4); }
.archive-list { display: flex; flex-direction: column; }
.archive-list a {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s4);
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: var(--t-body);
  transition: padding-left .22s ease, color .2s ease;
}
.archive-list a:last-child { border-bottom: 1px solid var(--line); }
.archive-list a:hover { padding-left: 7px; color: var(--accent); }
.archive-list a > span:last-child { color: var(--accent); flex: none; }

.legacy-content { padding-bottom: var(--s9); max-width: 80ch; }
.legacy-content h2 { font-size: 1.5rem; margin: var(--s6) 0 var(--s4); }
.legacy-content h3, .legacy-content h4 { margin: var(--s5) 0 var(--s3); font-size: var(--t-h4); font-weight: 550; }
.legacy-content p { margin-bottom: var(--s4); color: var(--muted); }
.legacy-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legacy-content img { margin: var(--s4) 0; border: 1px solid var(--line); }
.legacy-content ul, .legacy-content ol { margin: 0 0 var(--s4) var(--s5); padding-left: var(--s4); }
.legacy-content li { margin-bottom: 7px; color: var(--muted); }
.x-section, .x-row, .x-row-inner, .x-col { display: block; width: 100%; min-width: 0; }
.wp-caption { max-width: 100%; margin: var(--s4) 0; }
.wp-caption-text { font-size: var(--t-small); color: var(--faint); margin-top: 6px; }
.study-figure { margin: 0 0 var(--s5); }
.study-figure img { max-height: 620px; object-fit: contain; margin-inline: auto; }
.source-note, .research-note { font-size: var(--t-small); color: var(--faint); line-height: 1.6; }
.code-section { margin-top: var(--s6); }
.code-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  background: var(--soft); border: 1px solid var(--line);
  padding: 11px var(--s4);
  font-family: var(--mono); font-size: var(--t-small);
}

/* --- 18. Lab guide -------------------------------------------------------- */

.guide-page { padding-bottom: var(--s9); }
.guide-banner { padding-top: var(--s8); padding-bottom: var(--s5); }
.guide-description, .guide-audience, .guide-reading {
  color: var(--muted); font-size: var(--t-body); max-width: var(--measure);
}
.guide-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr);
  gap: var(--s8); align-items: start;
}
.guide-sidebar {
  position: sticky; top: 104px;
  max-height: calc(100vh - 130px); overflow-y: auto;
  border-left: 1px solid var(--line);
  padding-left: var(--s4);
  font-size: var(--t-small);
}
.guide-toc { display: flex; flex-direction: column; gap: 3px; }
.guide-toc a { padding: 5px 0; color: var(--muted); }
.guide-toc a:hover { color: var(--accent); }
.guide-section { margin-bottom: var(--s7); scroll-margin-top: 110px; }
.guide-section h2 { font-size: 1.5rem; margin-bottom: var(--s4); }
.guide-section h3 { font-size: var(--t-h4); margin: var(--s5) 0 var(--s3); }
.guide-section p, .guide-section li { color: var(--muted); }
.guide-section p { margin-bottom: var(--s4); max-width: var(--measure); }
.guide-section ul, .guide-section ol { margin: 0 0 var(--s4); padding-left: var(--s5); }
.guide-section li { margin-bottom: 6px; }
.guide-cover-text { color: var(--muted); }
.guide-contact, .guide-back { font-size: var(--t-body); }
.guide-back a, .guide-contact a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- 19. Motion ----------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .button > span, .paper-arrow, .data-open > span,
  .resource-list > a > span:last-child, .archive-list a > span:last-child {
    display: inline-block;
    transition: transform .24s cubic-bezier(.2,.7,.2,1);
  }
  .button:hover > span,
  .resource-list > a:hover > span:last-child,
  .archive-list a:hover > span:last-child { transform: translateX(3px); }
  .more-nav[open] > div { animation: menu-in 170ms ease-out; }
  @keyframes menu-in {
    from { opacity: .2; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- 20. Responsive ------------------------------------------------------- */

@media (max-width: 1180px) {
  :root { --gutter: 36px; --s9: 80px; }
  .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile { grid-template-columns: 150px minmax(0, 1fr); }
  .profile-statement {
    grid-column: 1 / -1; border-left: 0;
    border-top: 1px solid var(--line); padding: var(--s4) 0 0;
  }
  .resources-grid, .join-grid { gap: var(--s7); }
  .section-heading { column-gap: var(--s7); }
}

@media (max-width: 960px) {
  :root { --gutter: 28px; }
  html { scroll-padding-top: 84px; }

  /* Real navigation instead of a wrapping pile of links */
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--raised);
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--shadow-lift);
    padding: var(--s2) var(--gutter) var(--s5);
    max-height: calc(100vh - 100px); overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.nav-join) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .site-nav > a:not(.nav-join)::after { display: none; }
  .nav-join { justify-content: space-between; margin-top: var(--s4); padding: 12px 16px; }
  .more-nav { border-bottom: 1px solid var(--line); }
  .more-nav > summary { padding: 13px 0; justify-content: space-between; }
  .more-nav > div {
    position: static; border: 0; box-shadow: none; padding: 0 0 var(--s3) var(--s4);
    background: transparent; min-width: 0;
  }
  .more-nav > div > a { padding: 9px 0; }
  .site-header { position: sticky; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s7); }
  .hero-art { max-width: 460px; }
  .section-heading { grid-template-columns: 1fr; row-gap: var(--s4); }
  .section-heading > p:last-child { justify-self: start; }
  .research-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .trial-band-inner { grid-template-columns: 1fr; gap: var(--s6); }
  .people-top { grid-template-columns: 1fr; gap: var(--s5); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resources-grid, .join-grid, .trial-layout, .guide-layout { grid-template-columns: 1fr; }
  .trial-aside, .guide-sidebar { position: static; max-height: none; }
  .guide-sidebar { border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 var(--s4); }
  .guide-toc { flex-flow: row wrap; gap: var(--s3); }
  .join-aside { border-left: 0; border-top: 1px solid #ffffff40; padding: var(--s5) 0 0; }
  .section-top { flex-direction: column; align-items: flex-start; gap: var(--s4); }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --s9: 60px; --s8: 48px; }
  .institution .wrap { gap: var(--s4); padding: 7px 0; }
  .institution .medicine-link { flex-basis: 140px; }
  .institution .feinberg-link { flex-basis: 126px; }

  .brand-icon { width: 38px; height: 38px; }
  .brand strong { font-size: 1.0625rem; white-space: normal; }
  .brand small { font-size: var(--t-micro); }
  .header-inner { padding: 11px 0; gap: var(--s3); }
  .theme-toggle, .nav-toggle { width: 34px; height: 34px; }

  .hero-grid { padding-top: var(--s6); padding-bottom: var(--s5); }
  .hero-actions { gap: var(--s4); }
  .hero-foot { gap: 10px var(--s5); padding: 15px 0; }

  .method-steps { grid-template-columns: 1fr; }
  .method-step { padding: var(--s4) var(--s4) var(--s5); }
  .method-art { max-width: 200px; }

  .profile { grid-template-columns: 96px minmax(0, 1fr); gap: var(--s4); align-items: start; padding: var(--s4); }
  .profile img { width: 96px; height: 126px; }
  .profile h3 { font-size: 1.25rem; }
  .roster { grid-template-columns: 1fr; }

  .paper { grid-template-columns: 64px minmax(0, 1fr) 14px; gap: var(--s3); padding: var(--s3) var(--s2); }
  .paper-illustration { width: 64px; height: 56px; padding: 2px; }
  .paper h3 { font-size: var(--t-body); }

  .team-grid { grid-template-columns: 1fr; }
  .trial-fact { grid-template-columns: 1fr; gap: 2px; }
  .press-item { gap: var(--s4); }
  .join-guide { margin-left: 0; margin-top: var(--s4); }
  .hero-art figcaption { font-size: 9px; }
  footer.wrap { flex-direction: column; gap: var(--s5); }
}

@media print {
  .site-header, .institution, .skip, .nav-tools, .signal-controls { display: none; }
  body { background: #fff; color: #000; }
  * { animation: none !important; transition: none !important; }
}

/* Diagram folds — the internal contour lines that make the outline read as a brain. */
.method-art .fold { fill: none; stroke: var(--line-strong); stroke-width: 1.3; stroke-linecap: round; }

/* --- Extended publication list ------------------------------------------- */

.pub-more { margin-top: var(--s8); border-top: 1px solid var(--line-strong); padding-top: var(--s6); }
.pub-more-head { font-size: var(--t-h3); }
.pub-more-note { font-size: var(--t-body); color: var(--muted); margin-top: 7px; max-width: 54ch; }
.pub-group { margin-top: var(--s6); }
.pub-group > h4 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  padding-bottom: var(--s2);
  border-bottom: 2px solid var(--accent);
}
.pub-group:nth-of-type(2) > h4 { border-bottom-color: var(--rule); }
.pub-group:nth-of-type(3) > h4 { border-bottom-color: var(--line-strong); }
.pub-group > h4 span {
  font-family: var(--mono); font-weight: 400;
  font-size: var(--t-micro); letter-spacing: .05em;
  color: var(--faint); text-transform: none;
}
.pub-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s7);
}
.pub-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px var(--s3) 13px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .22s ease;
}
.pub-item:hover { padding-left: 7px; }
.pub-item:hover strong { color: var(--accent); }
.pub-item .journal { margin-bottom: 1px; }
.pub-item strong {
  font-size: var(--t-body); font-weight: 600; line-height: 1.4;
  transition: color .2s ease;
}
.pub-item .authors { font-size: var(--t-tiny); color: var(--muted); margin-top: 2px; }

@media (max-width: 960px) {
  .pub-list { grid-template-columns: 1fr; }
}

/* Press page groupings */
.press-section { padding-bottom: var(--s7); }
.press-lede {
  font-size: var(--t-body); color: var(--muted);
  margin: -6px 0 var(--s4); max-width: 56ch;
}
.press-note {
  font-size: var(--t-body); color: var(--muted);
  border-top: 1px solid var(--line); padding-top: var(--s5);
}
.press-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Study cards stay three across wherever three will actually fit — including
   inside a narrow preview or side panel. */
@media (max-width: 760px) {
  .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
}
@media (max-width: 460px) {
  .data-grid { grid-template-columns: 1fr; }
}
.data-card h2 { font-size: var(--t-body); }

/* Recorded talks carry a play marker so they read as watchable, not readable. */
.press-item[data-media] h3 { display: flex; align-items: baseline; gap: 9px; }
.press-item[data-media] h3::before {
  content: ''; flex: none;
  width: 0; height: 0;
  border-left: 8px solid var(--accent);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: translateY(-1px);
}
.press-item[data-media="audio"] h3::before {
  border: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rule); transform: translateY(1px);
}

/* --- Publication filter + categories ------------------------------------- */

[hidden] { display: none !important; }

.pub-filter {
  display: flex; flex-wrap: wrap; gap: var(--s2);
  margin: var(--s5) 0 var(--s7);
}
.pub-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 var(--t-small)/1.2 var(--sans);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.pub-chip span {
  font-family: var(--mono); font-size: var(--t-micro);
  font-variant-numeric: tabular-nums; color: var(--faint);
}
.pub-chip:hover { border-color: var(--accent); color: var(--accent); }
.pub-chip:hover span { color: var(--accent); }
.pub-chip.is-on {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
.pub-chip.is-on span { color: inherit; opacity: .7; }

.pub-tag {
  display: inline-block; margin-left: 9px;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line-strong);
  padding: 1px 6px;
}
.pub-item .authors b { font-weight: 650; color: var(--ink); }
.pub-item .authors { line-height: 1.55; }

/* --- The circuit motif, carried across page banners ----------------------- */

.archive-title, .team-heading, .trial-hero, .guide-banner {
  background-image: url('/assets/circuit-motif-soft.png');
  background-repeat: no-repeat;
  background-position: right -10px center;
  background-size: min(430px, 36%) auto;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .archive-title,
  :root:not([data-theme="light"]) .team-heading,
  :root:not([data-theme="light"]) .trial-hero {
    background-image: url('/assets/circuit-motif-dark.png');
  }
}
:root[data-theme="dark"] .archive-title,
:root[data-theme="dark"] .team-heading,
:root[data-theme="dark"] .trial-hero {
  background-image: url('/assets/circuit-motif-dark.png');
}

/* The motif is decoration — it never competes with text for space. */
@media (max-width: 860px) {
  .archive-title, .team-heading, .trial-hero, .guide-banner { background-image: none; }
}

/* --- Study resource pages ------------------------------------------------- */

.study-cite {
  font-size: var(--t-body); line-height: 1.6; color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: var(--s4);
  margin-top: var(--s5);
  max-width: var(--measure);
}
.study-cite a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.study-section { padding-bottom: var(--s8); }
.study-section > h2 {
  font-size: 1.6rem; scroll-margin-top: 110px;
  padding-bottom: var(--s3);
  border-bottom: 2px solid var(--accent);
  margin-bottom: var(--s5);
}
.study-section > h3 { font-size: var(--t-h4); margin-top: var(--s6); margin-bottom: var(--s3); }
.study-section > p { color: var(--muted); max-width: var(--measure); margin-bottom: var(--s4); }

/* File manifests: what exists, and what is still to come. */
.file-list { border-top: 1px solid var(--line); margin-top: var(--s5); }
.file-row {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: var(--s3) var(--s5);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.file-row > div { min-width: 0; flex: 1 1 320px; }
.file-row strong { display: block; font-weight: 600; font-size: var(--t-body); }
.file-row small {
  display: block; font-size: var(--t-small); line-height: 1.55;
  color: var(--muted); margin-top: 4px; max-width: 62ch;
}
.file-row > a {
  flex: none; font-size: var(--t-body); color: var(--accent);
  text-decoration: underline; text-underline-offset: 4px;
}

/* A link we do not have yet is marked as missing, never faked. */
.file-pending, .file-none {
  flex: none;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border: 1px dashed var(--line-strong);
  color: var(--faint);
}
.file-none { border-style: solid; }

/* --- Gradient correlation table ------------------------------------------- */

.table-scroll { overflow-x: auto; margin: var(--s5) 0 var(--s6); }
.gradient-table {
  width: 100%; border-collapse: collapse;
  font-size: var(--t-body);
  min-width: 620px;
}
.gradient-table caption {
  caption-side: bottom; text-align: left;
  font-size: var(--t-small); line-height: 1.6; color: var(--faint);
  padding-top: var(--s4); max-width: var(--measure);
}
.gradient-table th, .gradient-table td {
  text-align: left; vertical-align: top;
  padding: 13px var(--s4) 13px 0;
  border-bottom: 1px solid var(--line);
}
.gradient-table thead th {
  font-family: var(--mono); font-weight: 500;
  font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint);
  border-bottom: 2px solid var(--line-strong);
  padding-bottom: var(--s2);
}
.gradient-table tbody th {
  font-family: var(--sans); font-weight: 600; color: var(--ink);
  padding-right: var(--s5);
}
.gradient-table tbody th small, .gradient-table td small {
  display: block; font-weight: 400; font-size: var(--t-tiny);
  color: var(--muted); margin-top: 2px;
}
.gradient-table td { color: var(--muted); }
.gradient-table .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink); white-space: nowrap;
}
.gradient-table .t-sub { color: var(--faint); font-size: var(--t-small); }
.gradient-table tbody tr:hover { background: var(--soft); }
.gradient-table a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.gradient-table .file-pending, .gradient-table .file-none { display: inline-block; }

@media (max-width: 640px) {
  .study-section > h2 { font-size: 1.35rem; }
  .file-row { padding: var(--s3) 0; }
}

/* Published figures reproduced on study pages */
.study-figure {
  margin: var(--s5) 0 var(--s6);
  background: #fff;
  border: 1px solid var(--line);
  padding: var(--s4);
}
.study-figure img { width: 100%; height: auto; margin-inline: auto; }
.study-figure figcaption {
  font-size: var(--t-small); line-height: 1.6; color: var(--muted);
  margin-top: var(--s4); padding-top: var(--s3);
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}
