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

:root {
  --blue:    #3d7ebf;
  --blue-dk: #2a5f96;
  --blue-lt: #5a9fd4;
  --black:   #0a0a0a;
  --white:   #ffffff;
  --gray-bg: #f7f7f7;
  --gray-bd: #e5e5e5;
  --text:    #1a1a1a;
  --mid:     #555555;
  --nav-h:   72px;
  --font:    'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html { font-size: 17.5px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.18);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  z-index: 100;
  background: var(--black);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 4px;
  background: var(--black);
  position: relative;
}

.nav-pill li a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
  position: relative;
  z-index: 1;
}

.nav-pill li a:hover { color: var(--white); }

.nav-pill li a.active {
  color: rgba(168,212,255,1);
  font-weight: 700;
}

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero {
  background: var(--black);
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 64px) 80px 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 60%, rgba(61,126,191,.13) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero-content { position: relative; z-index: 1; max-width: 640px; }

.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
}

.page-hero h1 .grad {
  background: linear-gradient(90deg, var(--blue-lt) 0%, var(--white) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HOME HERO ───────────────────────────────────────────── */
.home-hero {
  background: #000000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 80px 80px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 55% 50%, rgba(61,126,191,.14) 0%, transparent 65%);
  pointer-events: none;
}

.home-hero-content { position: relative; z-index: 1; max-width: 700px; }

.home-hero h1 {
  font-family: var(--font);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.07;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.home-hero h1 .grad {
  background: linear-gradient(90deg, var(--blue-lt) 0%, var(--white) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero p {
  font-size: .92rem;
  line-height: 1.78;
  color: rgba(255,255,255,.5);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  color: var(--blue);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}
.hero-cta:hover { color: var(--blue-lt); }

/* ── LAB SUMMARY ─────────────────────────────────────────── */
.lab-summary {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-bd);
  padding: 80px;
}

.lab-summary h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .9rem;
}

.lab-summary > .container > p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--mid);
  margin-bottom: 48px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border: 1px solid var(--gray-bd);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
}

.card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(61,126,191,.1); }
.card img { width: 100%; height: 175px; object-fit: cover; display: block; }

.card-body { padding: 20px 20px 22px; }
.card-body h3 { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: .55rem; }
.card-body p  { font-size: .8rem; line-height: 1.65; color: var(--mid); }

.research-bullets {
  list-style: disc;
  padding-left: 1.4rem;
  margin: 1.6rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.research-bullets li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--mid);
}

.research-bullets li strong {
  color: var(--text);
}

.lab-closing {
  margin-top: 44px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #212121;
}

/* ── ALTERNATING ROWS ────────────────────────────────────── */
.rows-wrap { background: var(--white); }

.row {
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 80px;
  border-bottom: 1px solid var(--gray-bd);
  max-width: 100%;
}

.row:nth-child(even) { background: var(--gray-bg); flex-direction: row-reverse; }
#precision-psychiatry { background: var(--white); }
.row:last-child { border-bottom: none; }

.row-image { width: 38%; flex-shrink: 0; }

.row-image img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  display: block;
}

.row-image iframe {
  width: 100%;
  height: 420px;
  border-radius: 8px;
  display: block;
}

.row-body { flex: 1; }

.row-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--mid);
  margin-bottom: .55rem;
}

.row-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blue);
  margin-bottom: 1.1rem;
}

.row-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #373737;
  margin-bottom: .85rem;
}

.row-body p:last-of-type { margin-bottom: 0; }

.row-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity .2s;
}
.row-link:hover { opacity: .65; }

/* ── PUBLICATIONS ────────────────────────────────────────── */
.pub-section { padding: 72px 80px; }
.pub-section .inner { max-width: 820px; margin: 0 auto; }

.pub-list { list-style: none; }

.pub-list li {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-bd);
}
.pub-list li:last-child { border-bottom: none; }

.pub-num {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  width: 18px;
  padding-top: 2px;
}

.pub-text { font-size: 1rem; line-height: 1.8; color: #212121; }
.pub-text em  { font-style: italic; }
.pub-text strong { font-weight: 700; }
.pub-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; transition: opacity .2s; }
.pub-text a:hover { opacity: .65; }

/* ── TEAM ────────────────────────────────────────────────── */
.team-leader { text-align: center; padding: 56px 80px 36px; }
.team-leader h2 { font-size: 1.3rem; font-weight: 700; color: var(--blue); margin-bottom: .55rem; }
.team-leader p  { font-size: 1.05rem; color: var(--text); }

.team-divider { border: none; border-top: 1px solid var(--gray-bd); margin: 0 80px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 48px;
  padding: 60px 80px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.team-group h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: .65rem; }
.team-group ul { list-style: none; }
.team-group ul li { font-size: 1rem; color: var(--text); line-height: 1.7; }
/* keep an affiliation on the same line as the name it belongs to */
.team-group ul li.nowrap { white-space: nowrap; }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-wrap {
  padding: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--blue);
  margin-bottom: .9rem;
}

.contact-wrap h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
  max-width: 580px;
}

.contact-wrap p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--mid);
  max-width: 560px;
  margin-bottom: 2.4rem;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--blue-dk);
  color: var(--white);
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--black);
  text-align: center;
  padding: 30px;
  font-size: .78rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .04em;
  font-family: var(--font);
}

/* ── CONTAINER ───────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; }
