/* ============================================================
   Beane Lab — stylesheet
   Boston University palette: BU Red #CC0000, Black #2D2926
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper:        #FBFBFC;
  --paper-2:      #F3F4F6;
  --paper-3:      #E6E8EB;
  --card:         #FFFFFF;
  --ink:          #0F1115;
  --ink-2:        #3D434D;
  --ink-3:        #6B727D;
  --ink-4:        #9AA1AB;
  --rule:         #E3E6E9;
  --rule-2:       #CBD0D6;

  --red:          #CC0000;
  --red-soft:     #FBECEC;
  --red-deep:     #A30000;
  --on-red:       #FFFFFF;

  --c-campbell:   #7340B8;
  --c-burks:      #44586E;
  --c-spira:      #1E5F79;
  --c-billatos:   #5A7A1E;
  --c-kola:       #2563C4;
  --c-mazzilli:   #0E7C6B;
  --c-lenburg:    #B4690E;
  --c-varelas:    #B02A7A;

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --maxw:         1180px;
  --maxw-text:    680px;
  --radius:       3px;
  --radius-sm:    2px;

  --shadow-1: 0 1px 1px rgba(15,17,21,.04);
  --shadow-2: 0 1px 2px rgba(15,17,21,.06), 0 6px 18px rgba(15,17,21,.06);
  --shadow-3: 0 2px 6px rgba(15,17,21,.08), 0 18px 44px rgba(15,17,21,.10);

  --ease: cubic-bezier(.22,.61,.36,1);
}

:root { color-scheme: light; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
::selection { background: var(--red); color: var(--on-red); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: var(--on-red); padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ============================================================
   MASTHEAD  — two-row, non-sticky, journal-style
   ============================================================ */
.site-head { background: var(--paper); border-bottom: 1px solid var(--ink); }
.head-in { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .head-in { padding: 0 20px; } }

.head-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 22px 0 18px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: none; }
.brand-txt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-txt b {
  font-family: var(--font-display); font-weight: 500; font-size: 25px;
  letter-spacing: -.02em; color: var(--ink); line-height: 1;
}
.brand-txt span {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
  padding-left: 10px; border-left: 1px solid var(--rule-2);
}

.head-nav { border-top: 1px solid var(--rule); }
.nav { display: flex; gap: 0; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink-2);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 0; margin-right: 30px; position: relative;
  transition: color .18s var(--ease);
}
.nav a:last-child { margin-right: 0; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--red); }
.nav a.on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--red);
}

.head-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink-2);
  border-radius: 2px; cursor: pointer; padding: 0;
  transition: all .18s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .head-nav { display: none; }
  .head-nav.open { display: block; }
  .nav { flex-direction: column; }
  .nav a { margin-right: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 12.5px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.on::after { display: none; }
  .nav-toggle { display: grid; }
  .head-top { padding: 16px 0; }
  .brand-txt b { font-size: 21px; }
}

/* ============================================================
   HERO — split: argument on the left, the field itself on the right
   ============================================================ */
.hero { padding: 76px 0 70px; border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -.022em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--red); }

.hero-lede {
  font-size: 1.02rem; line-height: 1.68; color: var(--ink-2);
  max-width: 54ch; margin-bottom: 30px;
}
.hero-lede em { font-style: italic; color: var(--ink); font-weight: 500; }

/* text links, not buttons — the pill row was the giveaway */
.hero-cta { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.tlink {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding-bottom: 5px; border-bottom: 2px solid var(--red);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.tlink:hover { color: var(--red); }
.tlink.quiet { border-bottom-color: var(--rule-2); color: var(--ink-2); }
.tlink.quiet:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* the field-of-injury plate — foreground, framed, captioned */
.field-plate { border: 1px solid var(--ink); background: var(--card); }
.field-plate svg { display: block; width: 100%; height: auto; }
.field-cap {
  border-top: 1px solid var(--rule); padding: 13px 16px 15px;
  font-family: var(--font-body); font-size: 12.6px;
  color: var(--ink-3); line-height: 1.62;
}
.field-cap b { color: var(--ink-2); font-weight: 600; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 86px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section.tight { padding: 56px 0; }

.sec-head { margin-bottom: 44px; max-width: 70ch; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -.018em; line-height: 1.08;
  margin-bottom: 14px;
}
.sec-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; margin: 0; }

.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.sec-head-row .sec-head { margin-bottom: 0; }

.link-more {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 14.5px; font-weight: 600; color: var(--red); white-space: nowrap;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-more:hover { border-bottom-color: var(--red); gap: 11px; }
.link-more svg { width: 14px; height: 14px; }

.page-head { padding: 64px 0 20px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 3.7rem); letter-spacing: -.033em; line-height: 1.05;
  margin-bottom: 18px;
}
.page-head .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 64ch; }

/* ============================================================
   RESEARCH
   ============================================================ */
.research-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.research-grid.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .research-grid.cols-2 { grid-template-columns: 1fr; } }

.rcard {
  background: var(--paper); padding: 34px 32px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; position: relative;
  transition: background .22s var(--ease);
}
.rcard:hover { background: var(--card); }
.rcard .num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--red); letter-spacing: .06em; margin-bottom: 16px;
}
.rcard h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.55rem;
  letter-spacing: -.022em; line-height: 1.15; margin-bottom: 10px;
}
.rcard .kicker { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; font-weight: 500; }
.rcard p { color: var(--ink-2); font-size: 14.8px; line-height: 1.6; margin: 0; }
.rcard .go {
  margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 7px;
  transition: gap .2s var(--ease);
}
.rcard:hover .go { gap: 12px; }
.rcard .go svg { width: 13px; height: 13px; }

/* long-form research sections */
.thread {
  display: grid; grid-template-columns: 180px 1fr; gap: 48px;
  padding: 58px 0; border-top: 1px solid var(--rule);
}
.thread:first-of-type { border-top: 0; }
@media (max-width: 820px) { .thread { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; } }

.thread-side { position: sticky; top: 100px; align-self: start; }
@media (max-width: 820px) { .thread-side { position: static; } }
.thread-num {
  font-family: var(--font-mono); font-size: 2.6rem; font-weight: 400;
  color: var(--rule-2); line-height: 1; letter-spacing: -.03em; margin-bottom: 10px;
}
.thread-kicker { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

.thread-body h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -.026em; margin-bottom: 18px;
}
.thread-lede {
  font-size: 1.12rem; line-height: 1.6; color: var(--ink);
  padding-left: 20px; border-left: 3px solid var(--red); margin-bottom: 26px;
}
.thread-body p { color: var(--ink-2); max-width: var(--maxw-text); font-size: 15.6px; }
.thread-body strong { color: var(--ink); font-weight: 600; }

.anchors { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.anchor-chip {
  font-size: 12.5px; padding: 5px 12px; border-radius: 2px;
  background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink-2);
  font-weight: 500;
}

/* ============================================================
   SHARED PROJECTS — the collaboration map
   ============================================================ */
.map-shell {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-1); margin-bottom: 44px;
  position: relative; overflow: hidden;
}
.map-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.map-shell svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
@media (max-width: 760px) { .map-shell svg { min-width: 720px; } .map-shell { padding: 14px; } }

.map-node-label { font-family: var(--font-body); font-weight: 600; font-size: 13px; }
.map-node-sub   { font-family: var(--font-body); font-weight: 500; font-size: 10px; }
.map-proj-label { font-family: var(--font-body); font-weight: 500; font-size: 11.5px; }

.map-link { transition: stroke-opacity .25s var(--ease), stroke-width .25s var(--ease); }
.map-person, .map-proj { cursor: pointer; }
.map-person circle, .map-proj rect { transition: all .25s var(--ease); }
.map-dim { opacity: .13; }
.map-hint {
  text-align: center; font-size: 12.5px; color: var(--ink-3);
  margin-top: 6px; padding-bottom: 4px;
}

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--rule-2); background: transparent; color: var(--ink-2);
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  transition: all .18s var(--ease);
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* project cards */
.proj-list { display: flex; flex-direction: column; gap: 22px; }
.proj {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
}
.proj:hover { box-shadow: var(--shadow-2); }
.proj.hide { display: none; }

.proj-bar { height: 4px; display: flex; }
.proj-bar i { flex: 1; display: block; }

.proj-top { padding: 28px 30px 0; }
@media (max-width: 640px) { .proj-top { padding: 24px 20px 0; } }

.proj-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.proj-status {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-mazzilli); background: color-mix(in srgb, var(--c-mazzilli) 12%, transparent);
  padding: 4px 10px; border-radius: 2px;
}
.proj-sub { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }

.proj h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.72rem;
  letter-spacing: -.024em; line-height: 1.14; margin-bottom: 14px;
}
.proj-lede { color: var(--ink-2); font-size: 15.4px; line-height: 1.62; max-width: 70ch; }

.proj-people { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 4px; }
.person-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; padding: 5px 12px 5px 9px;
  border-radius: 2px; border: 1px solid currentColor;
}
.person-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* the "who brings what" braid */
.split { margin: 26px 0 0; border-top: 1px solid var(--rule); }
.split-row {
  display: grid; grid-template-columns: 190px 1fr; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--rule);
  align-items: start;
}
.split-row:last-child { border-bottom: 0; }
@media (max-width: 640px) { .split-row { grid-template-columns: 1fr; gap: 5px; } }
.split-who {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600;
}
.split-who .bar { width: 3px; height: 17px; border-radius: 3px; background: currentColor; flex-shrink: 0; }
.split-what { font-size: 14.2px; color: var(--ink-2); line-height: 1.55; }

/* expandable detail */
.proj-more {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.proj.open .proj-more { grid-template-rows: 1fr; }
.proj-more > div { overflow: hidden; }
.proj-more-in { padding: 4px 30px 28px; }
@media (max-width: 640px) { .proj-more-in { padding: 4px 20px 24px; } }

.why {
  background: var(--paper-2); border-left: 3px solid var(--red);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.6px; line-height: 1.6; color: var(--ink-2); margin: 20px 0 24px;
}
.why b {
  display: block; font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--red); margin-bottom: 7px; font-weight: 700;
}

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; gap: 22px; } }
.detail-col h4 {
  font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px; font-weight: 700;
}
.detail-col ul { margin: 0; padding: 0; list-style: none; }
.detail-col li {
  font-size: 13.6px; color: var(--ink-2); line-height: 1.5;
  padding: 7px 0 7px 18px; position: relative; border-bottom: 1px solid var(--rule);
}
.detail-col li:last-child { border-bottom: 0; }
.detail-col li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 6px; height: 1px; background: var(--ink-4);
}
.acc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.acc {
  font-family: var(--font-mono); font-size: 11.5px; padding: 4px 10px;
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 6px;
  color: var(--ink-2);
}

.proj-papers { margin-top: 26px; }
.proj-papers h4 {
  font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px; font-weight: 700;
}

.proj-foot {
  padding: 0 30px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
@media (max-width: 640px) { .proj-foot { padding: 0 20px 22px; } }
.toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--rule-2); color: var(--ink-2);
  font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 17px; border-radius: 2px; cursor: pointer;
  transition: all .18s var(--ease);
}
.toggle-btn:hover { border-color: var(--ink-4); color: var(--ink); background: var(--paper-2); }
.toggle-btn svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.proj.open .toggle-btn svg { transform: rotate(180deg); }
.proj-count { font-size: 12.5px; color: var(--ink-3); }

/* ============================================================
   PAPERS
   ============================================================ */
.paper-tools {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 26px;
}
.search-box {
  position: relative; flex: 1; min-width: 240px;
}
.search-box svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-4); pointer-events: none;
}
.search-box input {
  width: 100%; padding: 11px 15px 11px 40px;
  border: 1px solid var(--rule-2); border-radius: 2px;
  background: var(--card); color: var(--ink);
  font-family: var(--font-body); font-size: 14.5px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.search-box input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent);
}
.search-box input::placeholder { color: var(--ink-4); }

.paper-list { border-top: 1px solid var(--rule); }
.yr-head {
  font-family: var(--font-mono); font-size: .95rem; font-weight: 500;
  color: var(--ink-3); padding: 26px 0 10px; letter-spacing: -.01em;
}
.paper {
  display: block; padding: 20px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit; position: relative;
  transition: background .18s var(--ease);
}
.paper:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.paper.hide { display: none; }

.paper-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.badge {
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px;
}
.badge-first  { background: var(--red); color: var(--on-red); }
.badge-senior { background: var(--ink); color: var(--paper); }
.badge-pre    { background: var(--paper-3); color: var(--ink-3); }
.badge-tag    { background: transparent; color: var(--ink-3); border: 1px solid var(--rule-2); font-weight: 600; }

.paper h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.22rem;
  line-height: 1.28; letter-spacing: -.016em; margin-bottom: 7px;
  transition: color .18s var(--ease);
}
.paper:hover h3 { color: var(--red); }
.paper .authors { font-size: 13.4px; color: var(--ink-3); margin-bottom: 7px; }
.paper .venue { font-size: 13.4px; color: var(--ink-2); margin-bottom: 9px; }
.paper .venue i { font-style: italic; }
.paper .note {
  font-size: 14.2px; color: var(--ink-2); line-height: 1.55;
  padding-left: 15px; border-left: 2px solid var(--rule-2); max-width: 78ch;
}
.paper:hover .note { border-left-color: var(--red); }

.empty {
  padding: 60px 20px; text-align: center; color: var(--ink-3); font-size: 15px;
}

/* compact paper rows (inside project cards / home) */
.mini-papers { display: flex; flex-direction: column; }
.mini-paper {
  display: flex; gap: 14px; padding: 11px 0; border-top: 1px solid var(--rule);
  text-decoration: none; color: inherit; align-items: baseline;
  transition: padding-left .2s var(--ease);
}
.mini-paper:hover { padding-left: 6px; }
.mini-paper .my { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); flex-shrink: 0; width: 34px; }
.mini-paper .mt { font-size: 14.2px; line-height: 1.45; color: var(--ink); }
.mini-paper:hover .mt { color: var(--red); }
.mini-paper .mj { font-size: 12.6px; color: var(--ink-3); font-style: italic; }

/* featured papers on home */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px 24px 22px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--rule-2); }
.feat .fy { font-family: var(--font-mono); font-size: 11.5px; color: var(--red); margin-bottom: 12px; letter-spacing: .05em; }
.feat h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.16rem;
  line-height: 1.28; letter-spacing: -.016em; margin-bottom: 10px;
}
.feat .fj { font-size: 12.8px; color: var(--ink-3); font-style: italic; margin-bottom: 12px; }
.feat .fn { font-size: 13.8px; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* ============================================================
   NEWS
   ============================================================ */
.news-list { border-top: 1px solid var(--rule); }
.news-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
}
@media (max-width: 760px) { .news-item { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; } }
.news-when { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.news-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.news-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 5px; background: var(--red-soft); color: var(--red);
}
.news-body h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.32rem;
  line-height: 1.24; letter-spacing: -.018em; margin-bottom: 10px;
}
.news-body p { color: var(--ink-2); font-size: 14.8px; line-height: 1.6; margin: 0; max-width: 72ch; }
.news-body a.nlink {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 13.3px; font-weight: 600; color: var(--red); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.news-body a.nlink:hover { border-bottom-color: var(--red); }
.news-body a.nlink svg { width: 12px; height: 12px; }

/* ============================================================
   TEAM
   ============================================================ */
.pi-block {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start;
  padding-bottom: 54px; border-bottom: 1px solid var(--rule); margin-bottom: 54px;
}
@media (max-width: 820px) { .pi-block { grid-template-columns: 1fr; gap: 28px; } }
.pi-photo {
  width: 100%; aspect-ratio: 454/560; object-fit: cover; object-position: center top;
  border-radius: var(--radius); background: var(--paper-3); box-shadow: var(--shadow-2);
}
.pi-photo-ph {
  width: 100%; aspect-ratio: 454/560; border-radius: var(--radius);
  background: linear-gradient(145deg, var(--paper-3), var(--paper-2));
  display: grid; place-items: center; color: var(--ink-4); font-size: 13px;
  border: 1px solid var(--rule);
}
.pi-info h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 2.1rem;
  letter-spacing: -.028em; margin-bottom: 8px;
}
.pi-role { color: var(--red); font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.pi-titles { font-size: 14px; color: var(--ink-3); line-height: 1.55; margin-bottom: 22px; }
.pi-info p.bio { color: var(--ink-2); font-size: 15.4px; line-height: 1.68; max-width: 68ch; }
.pi-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .team-grid { grid-template-columns: 1fr; } }
.member { background: var(--paper); padding: 26px 22px; transition: background .2s var(--ease); }
.member:hover { background: var(--card); }
.member .avatar {
  width: 48px; height: 48px; border-radius: 50%; margin-bottom: 15px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  background: var(--red-soft); color: var(--red);
}
.member h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.member .mrole { font-size: 12.5px; color: var(--red); font-weight: 600; margin-bottom: 9px; }
.member .mfocus { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.alumni-list { display: flex; flex-wrap: wrap; gap: 9px; }
.alum {
  font-size: 13.5px; padding: 7px 15px; border-radius: 2px;
  background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink-2);
}

/* ============================================================
   FUNDERS + FOOTER
   ============================================================ */
.funders { display: flex; flex-wrap: wrap; gap: 10px; }
.funder {
  font-size: 13.5px; padding: 9px 17px; border-radius: 2px;
  border: 1px solid var(--rule); color: var(--ink-2); background: var(--card);
}

.site-foot {
  border-top: 1px solid var(--rule); background: var(--paper-2);
  padding: 56px 0 36px; margin-top: 0;
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 42px; margin-bottom: 42px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 13.8px; color: var(--ink-3); line-height: 1.6; max-width: 42ch; margin: 0; }
.foot-col h4 {
  font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px; font-weight: 700;
}
.foot-col a, .foot-col p {
  display: block; font-size: 14px; color: var(--ink-2); text-decoration: none;
  margin-bottom: 9px; transition: color .18s var(--ease);
}
.foot-col a:hover { color: var(--red); }
.foot-bot {
  border-top: 1px solid var(--rule); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 12.8px; color: var(--ink-4);
}
.foot-bot a { color: var(--ink-3); text-decoration: none; }
.foot-bot a:hover { color: var(--red); }

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- utility ---------- */
.note-box {
  background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 25%, transparent);
  border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13.8px;
  color: var(--ink-2); line-height: 1.55; margin-bottom: 28px;
}
.note-box b { color: var(--red); }

/* map hint: swap wording on small screens */
.hint-narrow { display: none; }
@media (max-width: 760px) {
  .hint-wide { display: none; }
  .hint-narrow { display: inline; }
}

/* ============================================================
   Additions: BU framing, collaborator links, map captions
   ============================================================ */
.page-head .lede-note {
  font-size: 14.6px; line-height: 1.6; color: var(--ink-2);
  max-width: 62ch; margin-top: 16px; padding: 13px 16px;
  background: var(--paper-2); border-left: 2px solid var(--red);
}
.page-head .lede-note strong { color: var(--ink); font-weight: 600; }

.person-tag { text-decoration: none; }
.person-tag.is-link svg { width: 10px; height: 10px; opacity: .6; margin-left: 1px; }
.person-tag.is-link { transition: background .16s var(--ease); }
.person-tag.is-link:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.person-tag.is-link:hover svg { opacity: 1; }

.map-caption {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .13em; font-weight: 500;
}

/* sharper, more technical chrome */
.badge { border-radius: 2px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .07em; }
.acc { border-radius: 2px; }
.news-tag { border-radius: 2px; font-family: var(--font-mono); font-weight: 500; }
.proj-status { font-family: var(--font-mono); font-weight: 500; }
.detail-col h4, .proj-papers h4, .foot-col h4, .why b {
  font-family: var(--font-mono); font-weight: 500;
}
.rcard .num, .feat .fy, .news-date, .mini-paper .my { font-family: var(--font-mono); }
.member .avatar { font-family: var(--font-mono); font-size: 14px; border-radius: 2px; }

.badge-consortium { background: var(--paper-3); color: var(--ink-2); }

/* ---------- team: members + alumni ---------- */
.member .mjoint { font-size: 12.5px; font-weight: 500; margin-bottom: 8px; line-height: 1.4; }
.member .mjoint a { text-decoration: none; border-bottom: 1px solid currentColor; }
.member .memail {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3);
  text-decoration: none; word-break: break-all;
}
.member .memail:hover { color: var(--red); }

.alumni-table { border-top: 1px solid var(--rule); }
.alum-row {
  display: grid; grid-template-columns: 96px minmax(0,1.1fr) minmax(0,1.4fr);
  gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.alum-row:hover { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.alum-when { font-family: var(--font-mono); font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.alum-who b { display: block; font-size: 14.6px; font-weight: 600; color: var(--ink); }
.alum-who span { display: block; font-size: 12.6px; color: var(--ink-3); margin-top: 2px; }
.alum-now { font-size: 13.6px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 760px) {
  .alum-row { grid-template-columns: 1fr; gap: 3px; padding: 15px 0; }
  .alum-when { order: -1; }
}

/* keep the PI headshot from going full-bleed once the layout stacks */
@media (max-width: 820px) {
  .pi-photo, .pi-photo-ph { max-width: 260px; }
}

.news-tag.is-upcoming { background: var(--ink); color: var(--paper); }

/* ---------- section eyebrow (inner page heads) ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
  padding-top: 9px; border-top: 1px solid var(--ink);
}

/* key for the field plate, in the caption rather than the drawing */
.field-key { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 9px; }
.field-key i { display: inline-flex; align-items: center; gap: 6px; font-style: normal;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-4); }
.field-key b { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
