/* =============================================
   CUSTOM PROPERTIES
   To change the color scheme, edit these values.
============================================= */
:root {
  --navy:       #0a2342;   /* primary dark background */
  --navy-mid:   #112d4e;   /* card backgrounds on dark sections */
  --navy-deep:  #071829;   /* footer background */
  --teal:       #2e86ab;   /* primary accent: links, CTAs, highlights */
  --teal-light: #a8dadc;   /* secondary accent: tags, subtle text on dark */
  --maroon:     #500000;   /* Texas A&M accent — used sparingly on badges */
  --sand:       #f8f5f0;   /* warm light section background */
  --white:      #ffffff;   /* card and clean section background */
  --text-dark:  #1a1a2e;   /* body text on light backgrounds */
  --text-muted: #6b7280;   /* secondary / metadata text */
  --gold:       #c9a227;   /* award badge background */
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

/* Skip link — accessibility */
.skip-link {
  position: absolute;
  top: -200%;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* Focus ring — visible on keyboard navigation */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* =============================================
   LAYOUT
============================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* =============================================
   FADE-UP ANIMATION (triggered by JS on scroll)
============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Disable all motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =============================================
   NAVIGATION
============================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
#nav.scrolled {
  background: rgba(10, 35, 66, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.22);
  padding: 0.7rem 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--teal-light); }
.nav-links a.active { color: var(--teal-light); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

/* Hamburger button (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen overlay */
#navMobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}
#navMobile.open { display: flex; }
#navMobile a {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
}
#navMobile a:hover { color: var(--teal-light); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* =============================================
   SECTION LABELS & TITLES
============================================= */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

/* =============================================
   BUTTONS
============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: var(--teal);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid var(--teal);
  transition: background 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #3a95bc;
  box-shadow: 0 4px 18px rgba(46,134,171,0.38);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(46,134,171,0.12);
  transform: translateY(-1px);
}

.btn-small {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  background: var(--sand);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-small:hover { background: var(--teal-light); border-color: var(--teal); }

.btn-outline-teal {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  background: transparent;
  color: var(--teal-light);
  border: 1px solid rgba(168,218,220,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-outline-teal:hover { background: rgba(46,134,171,0.15); border-color: var(--teal); }

.btn-teal-full {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  background: var(--teal);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.2s ease;
}
.btn-teal-full:hover { background: #3a95bc; transform: translateY(-1px); }

/* =============================================
   HERO
============================================= */
#hero {
  min-height: 100vh;
  background-color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 130px 2rem 100px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 18% 55%, rgba(46,134,171,0.14) 0%, transparent 60%),
    radial-gradient(ellipse at 82% 18%, rgba(46,134,171,0.09) 0%, transparent 52%),
    radial-gradient(ellipse at 50% 90%, rgba(80,0,0,0.07) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
}

.hero-logo-col {
  flex-shrink: 0;
  width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.4rem;
}

.hero-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(168,218,220,0.9);
  line-height: 1.65;
  border-left: 3px solid var(--teal);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.8;
  color: rgba(168,218,220,0.65);
  margin: 0 0 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  #hero { text-align: center; }
  .hero-content { flex-direction: column; align-items: center; gap: 2rem; }
  .hero-logo-img { height: auto; width: 140px; max-width: 140px; }
  .hero-ctas { justify-content: center; }
  .hero-quote { text-align: left; }
}


/* Wave SVG divider at bottom of hero */
.wave-divider {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg { display: block; width: 100%; }

/* =============================================
   RESEARCH
============================================= */
/* ---- NEWS ---- */
#news {
  background: #ffffff;
  padding: 70px 0 170px;
  position: relative;
}
@media (max-width: 768px) { #news { padding: 50px 0 120px; } }
#news .section-title { color: var(--text-dark); }

.news-list {
  margin-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.09);
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}

.news-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--maroon);
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
}

.news-headline {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.news-read-more {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid rgba(46,134,171,0.35);
  padding-bottom: 1px;
  align-self: center;
  transition: color 0.2s, border-color 0.2s;
}
.news-read-more:hover { color: var(--navy); border-color: var(--navy); }

@media (max-width: 600px) {
  .news-item { flex-direction: column; gap: 0.3rem; }
  .news-read-more { align-self: flex-start; }
}

/* ---- NEWS ARTICLE PAGES ---- */
.news-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 120px 0 80px;
}

.news-hero-inner { max-width: 720px; }

.news-hero-date {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal-light);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.news-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.news-hero-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(168,218,220,0.7);
  letter-spacing: 0.04em;
}

.news-body {
  background: var(--sand);
  padding: 60px 0 80px;
}

/* ---- NEWS STANDALONE PAGE ---- */
.news-page-hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: 130px 0 170px;
  position: relative;
  text-align: center;
}

.news-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.5rem;
}

.news-page-list {
  background: #ffffff;
  padding: 60px 0 80px;
}

.news-article-card {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  border-radius: 4px;
}
.news-article-card:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.news-article-card:hover .news-article-title { color: var(--teal); }
.news-article-card:hover .news-article-arrow { color: var(--teal); transform: translateX(4px); }

.news-article-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--maroon);
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 4px;
}

.news-article-body { flex: 1; }

.news-article-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.news-article-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.news-article-arrow {
  font-size: 20px;
  color: var(--text-muted);
  align-self: center;
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .news-article-card { flex-direction: column; gap: 0.4rem; }
  .news-article-arrow { display: none; }
}

/* ---- RESEARCH ---- */
#research {
  background: var(--sand);
  padding: 100px 0 170px;
  position: relative;
}
@media (max-width: 768px) { #research { padding: 60px 0; } }

#research .section-title { color: var(--text-dark); }

.research-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3.5rem;
  line-height: 1.75;
}

.research-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.research-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.11); }
/* .reverse flips text/illustration order on alternating cards */
.research-card.reverse { direction: rtl; }
.research-card.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .research-card { grid-template-columns: 1fr; }
  .research-card.reverse { direction: ltr; }
}

.card-text {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 768px) { .card-text { padding: 2rem; } }

.card-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  background: rgba(168,218,220,0.22);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.card-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.78;
  margin-bottom: 1.5rem;
}

/* Tags row at bottom of research cards (species / tools) */
.species-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.species-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal-light);
  background: var(--navy);
  padding: 3px 10px;
  border-radius: 100px;
}

.card-pub-spotlight {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(46,134,171,0.07);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
}
.card-pub-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.card-pub-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.card-pub-title:hover { color: var(--teal); text-decoration: underline; }
.card-pub-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.card-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(10,35,66,0.03), rgba(46,134,171,0.07));
  min-height: 240px;
}


/* =============================================
   PEOPLE
============================================= */
#people {
  background: var(--white);
  padding: 100px 0 170px;
  position: relative;
}
@media (max-width: 768px) { #people { padding: 60px 0; } }

#people .section-title { color: var(--text-dark); }

/* PI Card */
.pi-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 2.5rem;
  margin-bottom: 4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pi-card:hover { transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.11); }

@media (max-width: 600px) {
  .pi-card { flex-direction: column; align-items: center; text-align: center; }
  .pi-links { justify-content: center; }
}

/* Rectangular photo for PI card */
.pi-photo {
  flex-shrink: 0;
  width: 180px;
  height: 220px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .pi-photo { width: 140px; height: 175px; }
}

.pi-info { flex: 1; }

.pi-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.pi-role {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.pi-contact {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--teal);
  margin: 0.6rem 0 1rem;
}
.pi-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.pi-research-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 1.1rem 0 1.1rem;
}

.pi-edu-block { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.08); }
.pi-edu-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.pi-edu-value { font-size: 13px; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.85rem; }

/* Member grid heading */
.members-heading {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

.members-tier-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(46,134,171,0.2);
  padding-bottom: 0.65rem;
  margin: 2.5rem 0 1.25rem;
}

/* Publication spotlight carousel on research cards */
.card-pub-slide { display: none; }
.card-pub-slide.active { display: block; }
.card-pub-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.card-pub-dots-row { display: flex; gap: 5px; align-items: center; }
.card-pub-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(46,134,171,0.2);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s;
}
.card-pub-dot.active { background: var(--teal); }
.card-pub-arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(46,134,171,0.3);
  background: none;
  color: var(--teal);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.card-pub-arrow:hover { background: rgba(46,134,171,0.1); border-color: var(--teal); }

/* 2-column grid of member cards */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (max-width: 780px) { .members-grid { grid-template-columns: 1fr; gap: 1rem; } }

.member-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: row;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.member-photo-col {
  width: 170px;
  flex-shrink: 0;
  overflow: hidden;
}

.member-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: #fff;
  font-weight: 700;
}

.member-info-col {
  flex: 1;
  padding: 1.4rem 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 600px) {
  /* Keep photo on the left — just shrink the column */
  .member-photo-col { width: 130px; }
  .member-photo-placeholder { min-height: 180px; }
  .member-info-col { padding: 0.75rem 0.75rem 0.75rem 0.9rem; }
  .member-name { font-size: 14px; }
  .member-research { font-size: 12px; margin-bottom: 0.5rem; }
  .mkw { font-size: 10px; padding: 2px 7px; }
  .member-email { font-size: 10px; }
  .btn-bio { font-size: 12px; padding: 6px 13px; }

  .bio-photo-reel { order: 2; width: 100%; }
  .bio-hero-text { order: 1; }
  .bio-hero-inner { gap: 1.5rem; }

  .lab-gallery {
    aspect-ratio: unset;
    height: 220px;
    min-height: unset;
    margin-bottom: 2rem;
    max-width: 100%;
  }
  .gallery-track { max-width: 100%; }
  .gallery-arrow {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .gallery-arrow.prev { left: 0.5rem; }
  .gallery-arrow.next { right: 0.5rem; }
}
/* Teal left accent bar — appears on hover */
.member-card::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; height: 76%;
  width: 3px;
  background: var(--teal);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.member-card:hover {
  border-color: rgba(46,134,171,0.28);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.member-card:hover::before { opacity: 1; }

/* Small circular avatar (members) */
.avatar-sm {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #fff;
  font-weight: 700;
  margin: 0 auto 1rem;
  position: relative;
  cursor: default;
  flex-shrink: 0;
}
/* Small camera icon overlay on avatar */
.avatar-sm .cam-badge {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 22px; height: 22px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Tooltip shown on avatar hover */
.photo-tip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.avatar-sm:hover .photo-tip { opacity: 1; }

/* Role and award badges */
.role-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--maroon);
  color: #fff;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0.6rem;
}
.award-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: var(--gold);
  color: #1a1000;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 0.4rem;
}

.member-name {
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}
.member-research {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.member-research::before { content: '\201C'; }
.member-research::after  { content: '\201D'; }
.member-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}
.member-email:hover { color: var(--teal-light); }

/* Full-width member card (used for featured members, e.g. award recipients) */
.member-card-wide { grid-column: 1 / -1; }
.member-wide-inner {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Badge + joined date row */
.member-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.member-meta-row .role-badge { margin-bottom: 0; }
.member-joined {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Research keyword pills */
.member-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0.85rem;
}
.mkw {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal-light);
  background: var(--navy);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* Member card footer: email left, bio button right */
.member-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: auto;
}

/* Bio link button */
.btn-bio {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  display: inline-block;
}
.btn-bio:hover { background: var(--navy); transform: translateY(-1px); }

/* =============================================
   LAB PHOTO GALLERY (People section)
============================================= */
.lab-gallery {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  background: var(--navy);
  aspect-ratio: 16 / 7;
  min-height: 220px;
}

.gallery-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  user-select: none;
}

/* Placeholder slide content */
.gallery-placeholder-inner {
  text-align: center;
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.gallery-placeholder-inner svg { margin: 0 auto 0.75rem; opacity: 0.4; }
.gallery-placeholder-inner p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Actual photo inside a slide */
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Prev / Next arrow buttons */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(10,35,66,0.55);
  border: 1px solid rgba(168,218,220,0.2);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 20px;
  line-height: 1;
}
.gallery-arrow:hover { background: rgba(46,134,171,0.7); }
.gallery-arrow.prev { left: 1rem; }
.gallery-arrow.next { right: 1rem; }

/* Dot indicators */
.gallery-dots {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}
.gallery-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.gallery-dot.active {
  background: #fff;
  transform: scale(1.4);
}

/* Alumni timeline */
.alumni-heading {
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
}
.alumni-list {
  list-style: none;
  border-left: 2px solid rgba(46,134,171,0.2);
  padding-left: 2rem;
}
.alumni-item {
  position: relative;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.alumni-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
/* Dot on the timeline line */
.alumni-item::before {
  content: '';
  position: absolute;
  left: -2.38rem; top: 5px;
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--white);
}
.alumni-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  background: rgba(46,134,171,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.2rem;
}
.alumni-name {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--text-dark);
}
.alumni-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.alumni-now {
  font-size: 13px;
  color: var(--teal);
  font-style: italic;
}
.alumni-extra { display: none; }
.alumni-extra.open { display: list-item; }
.alumni-toggle {
  margin-top: 1rem;
  background: none;
  border: 1px solid rgba(46,134,171,0.35);
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.alumni-toggle:hover { background: rgba(46,134,171,0.08); border-color: var(--teal); }

/* =============================================
   PUBLICATIONS
============================================= */
#publications {
  background: var(--navy-mid);
  padding: 100px 0 170px;
  position: relative;
}
@media (max-width: 768px) { #publications { padding: 60px 0; } }

#publications .section-title { color: #fff; }

.pub-intro {
  font-size: 16px;
  color: rgba(168,218,220,0.7);
  margin-bottom: 2.25rem;
}

.pub-list { list-style: none; margin-bottom: 2.5rem; }

.pub-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.1rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
  transition: background 0.2s ease;
}
.pub-item:hover { background: rgba(46,134,171,0.09); }

.pub-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  background: rgba(46,134,171,0.16);
  padding: 4px 8px;
  border-radius: 4px;
  height: fit-content;
  margin-top: 2px;
  text-align: center;
}

.pub-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
  text-decoration: none;
  display: block;
}
.pub-title:hover { color: var(--teal-light); text-decoration: underline; }

.pub-journal {
  font-size: 13px;
  color: var(--teal-light);
  font-style: italic;
  margin-bottom: 0.15rem;
}
.pub-authors {
  font-size: 13px;
  color: var(--text-muted);
}

.pub-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =============================================
   FACILITIES
============================================= */
#facilities {
  background: #eef7f8;
  padding: 100px 0 170px;
  position: relative;
}
@media (max-width: 768px) { #facilities { padding: 60px 0; } }

#facilities .section-title { color: var(--text-dark); }

.map-embed { margin-top: 2rem; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.facilities-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.fac-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
  overflow: hidden;
}

.fac-card-header {
  padding: 1.1rem 1.75rem 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.fac-card-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.fac-card-body {
  display: flex;
  height: 320px;
}

.fac-img-panel {
  width: 42%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.fac-img-group {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}
.fac-img-group.active { opacity: 1; }

.fac-img-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.fac-img-slide.active { opacity: 1; }

.fac-img-slide > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fac-img-slide.logo > img {
  object-fit: contain;
  padding: 2rem;
}

.fac-prev, .fac-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.fac-prev:hover, .fac-next:hover { background: rgba(0,0,0,0.62); }
.fac-prev { left: 8px; }
.fac-next { right: 8px; }

.fac-text-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.fac-text-slide {
  position: absolute;
  inset: 0;
  padding: 2.25rem 2.5rem;
  opacity: 0;
  transition: opacity 0.65s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fac-text-slide.active { opacity: 1; }

.fac-slide-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.fac-slide-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.78;
}

.fac-card-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.fac-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,0.14);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.fac-dot.active { background: var(--teal); }

.fac-nav-prev, .fac-nav-next {
  background: none;
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.fac-nav-prev:hover, .fac-nav-next:hover {
  background: rgba(46,134,171,0.1);
  border-color: var(--teal);
  color: var(--teal);
}

@media (max-width: 700px) {
  .fac-card-body { flex-direction: column; height: auto; }
  .fac-img-panel { width: 100%; height: 220px; }
  .fac-text-panel { min-height: 200px; }
}

.location-callout {
  background: var(--white);
  border-radius: 10px;
  padding: 1.1rem 1.6rem;
  border-left: 4px solid var(--teal);
  font-size: 15px;
  color: var(--text-muted);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* =============================================
   JOIN US
============================================= */
#join {
  background: var(--navy);
  padding: 100px 0 170px;
  position: relative;
}
@media (max-width: 768px) { #join { padding: 60px 0; } }

.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 780px) { .join-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.join-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.join-body {
  font-size: 16px;
  color: var(--teal-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.join-benefits { list-style: none; }
.join-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.85rem;
}
.benefit-check { color: var(--teal); font-size: 18px; line-height: 1.5; flex-shrink: 0; }

.join-cta-card {
  background: var(--navy-mid);
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(168,218,220,0.14);
}
.join-cta-heading {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}
.join-cta-body {
  font-size: 15px;
  color: rgba(168,218,220,0.8);
  line-height: 1.72;
  margin-bottom: 1.75rem;
}
.join-cta-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.85rem;
}

/* =============================================
   SPONSORS / FUNDING
============================================= */
#sponsors {
  background: var(--white);
  padding: 80px 0 160px;
  position: relative;
}

.sponsors-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

/* Fixed square stage — images sit on top of each other */
.sponsors-stage {
  position: relative;
  width: 280px;
  height: 280px;
}

/* Each logo: fills the square, no cropping */
.sponsor-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}
.sponsor-slide.active {
  opacity: 1;
}

/* Prev / Next buttons for sponsor carousel */
.sponsor-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.sponsor-arrow {
  background: none;
  border: 1px solid rgba(46,134,171,0.3);
  color: var(--teal);
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sponsor-arrow:hover { background: rgba(46,134,171,0.1); border-color: var(--teal); }

/* Progress dots */
.sponsor-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.sponsor-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(46,134,171,0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}
.sponsor-dot.active {
  background: var(--teal);
  transform: scale(1.35);
}

/* =============================================
   CONTACT / FOOTER
============================================= */
#contact {
  background: var(--navy-deep);
  padding: 80px 0 0;
}

.footer-map {
  padding-bottom: 3rem;
}
.footer-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
  border: 1px solid rgba(168,218,220,0.15);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(168,218,220,0.14);
}
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.contact-item { text-align: center; }
.contact-icon { margin: 0 auto 1rem; }
.contact-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.contact-val {
  font-size: 15px;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}
.contact-val a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-val a:hover { color: var(--teal-light); }

.footer-bar {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--teal); }

/* =============================================
   BIO PAGES (bios/*.html)
============================================= */
.bio-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal-light);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease;
}
.bio-back:hover { color: #fff; }

.bio-hero {
  background: var(--navy);
  padding: 120px 0 70px;
  position: relative;
}
.bio-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 60%, rgba(46,134,171,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.bio-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.bio-photo-reel {
  order: 2;
  width: clamp(300px, 44%, 520px);
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  display: grid;
}
.bio-reel-slide {
  grid-area: 1/1;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.bio-reel-slide.active { opacity: 1; }
.bio-reel-slide img {
  max-height: 480px;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.bio-reel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.bio-reel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  padding: 0;
  border: none;
}
.bio-reel-dot.active { background: rgba(255,255,255,0.9); }
.bio-reel-prev, .bio-reel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.2s;
}
.bio-reel-prev:hover, .bio-reel-next:hover { background: rgba(0,0,0,0.55); }
.bio-reel-prev { left: 6px; }
.bio-reel-next { right: 6px; }
.bio-reel-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 1;
}
.bio-reel-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.75);
  width: 0%;
}
@keyframes reel-timer {
  from { width: 0%; }
  to   { width: 100%; }
}
.bio-social-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}
.bio-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.bio-social-link:hover {
  background: rgba(46,134,171,0.3);
  color: #fff;
}
.bio-social-link svg { width: 18px; height: 18px; }
.bio-hero-text { order: 1; flex: 1; min-width: 240px; }
.bio-hero-info-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.bio-hero-info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}
.bio-hero-info-value {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.bio-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}
.bio-role {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--teal-light);
  margin-bottom: 0.25rem;
}
.bio-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 1.25rem;
}
.bio-joined {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(168,218,220,0.7);
}
.bio-keywords { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bio-kw {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  background: rgba(46,134,171,0.18);
  border: 1px solid rgba(46,134,171,0.3);
  padding: 3px 11px;
  border-radius: 100px;
}
.bio-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(168,218,220,0.85);
  line-height: 1.6;
  margin-top: 1.1rem;
  max-width: 400px;
}

.bio-body {
  background: var(--sand);
  padding: 70px 0 90px;
}
.bio-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.bio-section-title:first-child { margin-top: 0; }
.bio-p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.1rem;
  max-width: 720px;
}
.bio-email-line {
  margin-top: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.bio-email-line a {
  color: var(--teal);
  text-decoration: none;
}
.bio-email-line a:hover { color: var(--navy); }

.bio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}
.bio-gallery-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
@media (max-width: 600px) {
  .bio-gallery { grid-template-columns: 1fr; }
  .bio-gallery-img { height: 220px; }
}

/* =============================================
   BIO PAGE — PUBLICATION LIST
   Reusable on any bio page; light-background context.
============================================= */
.bio-pub-list { list-style: none; margin: 0 0 0.5rem; }
.bio-pub-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.bio-pub-item:last-child { border-bottom: none; }
.bio-pub-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--maroon);
  background: rgba(80,0,0,0.07);
  border: 1px solid rgba(80,0,0,0.15);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}
.bio-pub-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}
.bio-pub-title {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.bio-pub-title:hover { color: var(--teal); text-decoration: underline; }
.bio-pub-venue { font-style: italic; color: var(--teal); }

/* =============================================
   PUBLICATIONS PAGE (publications.html)
============================================= */
.pubs-hero-text { position: relative; z-index: 1; }
.pubs-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(168,218,220,0.6);
  margin-top: 0.75rem;
}
.pubs-scholar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--teal);
  border: 1px solid rgba(46,134,171,0.4);
  padding: 9px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pubs-scholar-btn:hover { background: rgba(46,134,171,0.12); border-color: var(--teal); }

.pub-year-section { margin-bottom: 0.5rem; }
.pub-year-section:not(:first-child) {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.pub-year-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  background: rgba(46,134,171,0.1);
  border: 1px solid rgba(46,134,171,0.2);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}
.pub-list-full { list-style: none; }
.pub-list-item {
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.055);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pub-list-item:last-child { border-bottom: none; }
.pub-entry-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
}
.pub-entry-title {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.pub-entry-title:hover { color: var(--teal); text-decoration: underline; }
a.pub-entry-title-plain {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  cursor: default;
}
.pub-entry-venue { font-style: italic; color: var(--teal); }
.pub-badge-preprint {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #b07d10;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.35);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---- EASTER EGG ---- */
#fishEasterEgg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease;
}
#fishEasterEgg.active {
  opacity: 1;
  animation: disco-rainbow 0.35s infinite;
}
@keyframes disco-rainbow {
  0%   { background: #ff0040; }
  13%  { background: #ff6600; }
  26%  { background: #ffee00; }
  39%  { background: #00dd44; }
  52%  { background: #00ccff; }
  65%  { background: #3300ff; }
  78%  { background: #cc00ff; }
  91%  { background: #ff0099; }
  100% { background: #ff0040; }
}
#fishEasterEgg img {
  width: 800px;
  max-width: 90vw;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}
.fish-party-text {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: bold;
  color: #ffffff;
  text-shadow: 4px 4px 0 #000, -4px -4px 0 #000, 4px -4px 0 #000, -4px 4px 0 #000;
  margin-top: 1rem;
  letter-spacing: 0.04em;
}
