/* ─── TOKENS ──────────────────────────────────────────────────── */
:root {
  --navy:       #0B2545;
  --navy-mid:   #1A3A5C;
  --navy-light: #2E5E8A;
  --blue-mid:   #5B9EC9;
  --blue-light: #B8D8F0;
  --blue-pale:  #EAF4FB;
  --white:      #FFFFFF;
  --off-white:  #F7FAFC;
  --text-dark:  #0B2545;
  --text-mid:   #3A5068;
  --text-muted: #7A9BB5;
  --border:     #D0E6F3;

  --font-display: 'EB Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1040px;
  --section-pad: 96px;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── NAV ────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(11, 37, 69, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 216, 240, 0.12);
}
.nav-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.01em;
}
#nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}
#nav ul a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-light);
  opacity: 0.8;
  transition: opacity 0.2s;
}
#nav ul a:hover { opacity: 1; }

/* ─── HERO ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  overflow: hidden;
}
#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: fadeUp 0.9s ease both;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--blue-light);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 40px;
}
.hero-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 12px 28px;
  background: var(--blue-mid);
  color: var(--white);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #4A8CB8; transform: translateY(-1px); }
.btn-ghost {
  padding: 12px 28px;
  border: 1px solid rgba(184, 216, 240, 0.4);
  color: var(--blue-light);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--blue-light); color: var(--white); }

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: fadeUp 1.2s ease 0.4s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue-mid), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
section {
  padding: var(--section-pad) 0;
}
.section-alt { background: var(--off-white); }
.section-dark {
  background: var(--navy);
  color: var(--white);
}

/* ─── SECTION LABELS ─────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 12px;
}
.section-label.light { color: var(--blue-light); opacity: 0.7; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.section-dark h2 { color: var(--white); }

/* ─── ABOUT ──────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}
.about-left p {
  color: var(--text-mid);
  margin-bottom: 16px;
  font-size: 16px;
}
.affiliation-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.badge {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 2px;
  background: var(--blue-pale);
  color: var(--navy-mid);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  overflow: hidden;
}
.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-initials {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--blue-mid);
}
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: var(--white);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ─── RESEARCH ───────────────────────────────────────────────── */
.section-intro {
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 52px;
  font-size: 17px;
  line-height: 1.65;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.research-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.research-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 4px 24px rgba(91, 158, 201, 0.12);
}
.card-icon {
  width: 40px;
  height: 40px;
  color: var(--blue-mid);
  margin-bottom: 20px;
}
.research-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}
.research-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ─── PUBLICATIONS ───────────────────────────────────────────── */
.pub-list {
  border-top: 1px solid var(--border);
  margin-bottom: 40px;
}
.pub-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.pub-year {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding-top: 3px;
  letter-spacing: 0.04em;
}
.pub-title {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 10px;
}
.pub-title em { font-style: italic; }
.pub-title strong { color: var(--text-dark); font-weight: 500; }
.pub-links {
  display: flex;
  gap: 12px;
}
.pub-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.pub-link:hover { color: var(--navy); }
.btn-outline {
  display: inline-block;
  font-size: 14px;
  color: var(--navy-light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--navy-light); color: var(--navy); }

/* ─── CONTACT ────────────────────────────────────────────────── */
.contact-inner { max-width: 700px; }
.contact-inner h2 { color: var(--white); margin-bottom: 12px; }
.contact-sub {
  color: var(--blue-light);
  opacity: 0.75;
  margin-bottom: 52px;
  font-size: 16px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.contact-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 10px;
}
.contact-item span,
.contact-item a {
  font-size: 15px;
  color: var(--blue-light);
  line-height: 1.7;
}
.contact-item a:hover { color: var(--white); }
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-links a {
  font-size: 14px;
  color: var(--blue-light);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.contact-links a:hover { opacity: 1; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: #081D36;
  padding: 24px 0;
  border-top: 1px solid rgba(184, 216, 240, 0.1);
}
footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 52px; }
  .about-right { max-width: 360px; }
  .research-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --section-pad: 64px; }
  .container { padding: 0 20px; }
  #nav { padding: 0 20px; }
  #nav ul { gap: 20px; }
  .pub-item { grid-template-columns: 1fr; gap: 6px; }
  .pub-year { padding-top: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.about-left a {
  color: var(--blue-mid);
  border-bottom: 1px solid var(--blue-light);
  transition: border-color 0.2s, color 0.2s;
}
.about-left a:hover {
  color: var(--navy-light);
  border-color: var(--blue-mid);
}

/* ─── PUBLICITY ──────────────────────────────────────────────── */
.publicity-list {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.publicity-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.publicity-item:hover .publicity-title { color: var(--navy-light); }
.publicity-item:hover .publicity-arrow { transform: translateX(4px); color: var(--blue-mid); }
.publicity-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-column: 1;
}
.publicity-outlet {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-mid);
}
.publicity-date {
  font-size: 12px;
  color: var(--text-muted);
}
.publicity-title {
  font-size: 16px;
  color: var(--text-mid);
  grid-column: 1;
  transition: color 0.2s;
}
.publicity-arrow {
  font-size: 18px;
  color: var(--text-muted);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  transition: transform 0.2s, color 0.2s;
}

/* ─── AWARDS ─────────────────────────────────────────────────── */
.awards-list {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.award-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.award-year {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.award-title {
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 3px;
}
.award-org {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── FMRI IN CONTACT ────────────────────────────────────────── */
.fmri-block {
  margin-top: 0;
  border: 1px solid rgba(184, 216, 240, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.fmri-gif {
  width: 100%;
  display: block;
  opacity: 0.75;
  filter: brightness(1.1) contrast(1.05);
}

.contact-item .fmri-block {
  margin-top: 0;
}

