/* =========================================================
   Evangelos K. Oikonomou — Academic Website
   ========================================================= */

/* --- Design Tokens --- */
:root {
  --navy:        #1b2f4e;
  --navy-light:  #2a4570;
  --accent:      #1c6b52;      /* deep teal — distinctly different from Ouyang's burgundy */
  --accent-light:#238f6d;
  --bg:          #f4f7fb;      /* cool off-white, not warm */
  --surface:     #ffffff;
  --border:      #d4deed;
  --border-dark: #aebdd4;
  --text:        #1b2f4e;
  --muted:       #526380;
  --muted-light: #8fa0b8;
  --shadow-soft: 0 14px 34px rgba(27, 47, 78, 0.06);
  --shadow-card: 0 10px 24px rgba(27, 47, 78, 0.05);

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1080px;
  --pad-x: 1.5rem;
  --transition: 0.18s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(27,47,78,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,47,78,.018) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, rgba(28,107,82,.08), transparent 22%),
    radial-gradient(circle at 82% 9%, rgba(27,47,78,.05), transparent 20%);
  background-size: 28px 28px, 28px 28px, auto, auto;
  opacity: 0.42;
  z-index: -1;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* =========================================================
   NAVIGATION — thin, borderless by default
   ========================================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 16px rgba(27, 47, 78, 0.06);
}
nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s ease;
}
nav.scrolled::after {
  width: 60px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================================================
   HEADER — centered, not side-by-side
   ========================================================= */
.site-header {
  padding-top: 90px;
  padding-bottom: 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  display: block;
  margin: 0 auto 1.4rem;
}

.header-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.header-creds {
  font-size: 0.88rem;
  color: var(--muted-light);
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}

.header-affil {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.header-tagline {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--navy-light);
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.92rem;
  border: 1px solid rgba(27,47,78,.14);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 14px rgba(27,47,78,.04);
  transition: border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
  letter-spacing: 0.01em;
}
.btn-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
  box-shadow: 0 8px 22px rgba(27,47,78,.08);
  transform: translateY(-1px);
}
.btn-link svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================================
   SECTIONS — shared
   ========================================================= */
section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: none; }

/* Section title: serif with accent marker and full-width rule */
.section-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.45rem;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(174,189,212,.8) 0%, rgba(174,189,212,.18) 100%);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-text p {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}
.about-text p:last-of-type { margin-bottom: 0; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.6rem;
  border-radius: 2px;
  border: 1.5px solid;
}
.badge-navy  { color: var(--navy);   border-color: var(--navy);   background: rgba(27,47,78,.05); }
.badge-teal  { color: var(--accent); border-color: var(--accent); background: rgba(28,107,82,.06); }

/* =========================================================
   RESEARCH — numbered list (not card grid)
   ========================================================= */
.research-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.research-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 0;
  align-items: start;
  padding: 1.2rem 1.2rem 1.15rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(248,250,253,.93) 100%);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.research-item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(28,107,82,.22) 100%);
}
.research-item:last-child {
  grid-column: 1 / -1;
}

.research-num {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  padding-top: 0;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border: none;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(28,107,82,.2);
}

.research-item-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.research-item-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.75;
  flex-shrink: 0;
}

.research-item-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.research-item-body {
  font-size: 0.89rem;
  color: var(--muted);
  line-height: 1.72;
}

/* =========================================================
   THEME SUB-NAV
   ========================================================= */
.theme-subnav {
  position: sticky;
  top: 56px;               /* sits just below the main nav */
  z-index: 90;
  background: rgba(244,247,251,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.theme-subnav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

/* Research page has many items — keep them left-aligned & scrollable */
.theme-subnav-list.tsn-scroll {
  justify-content: flex-start;
}
.theme-subnav-list::-webkit-scrollbar { display: none; }

.theme-subnav-list li { flex-shrink: 0; }

.theme-subnav-list a {
  display: flex;
  align-items: center;
  gap: 0.32em;
  padding: 0.6rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.theme-subnav-list a:hover {
  color: var(--navy);
  border-bottom-color: var(--border-dark);
}
.theme-subnav-list a.tsn-active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.tsn-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.75;
  letter-spacing: 0.04em;
}

.tsn-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
  margin: 0 0.5rem;
  align-self: center;
}

.tsn-featured {
  color: var(--accent) !important;
  font-style: italic;
}

/* scroll offset for sticky nav + subnav */
[id^="theme-"], #featured-works, [id^="news-"] {
  scroll-margin-top: 108px;
}

/* =========================================================
   PUBLICATIONS — grouped layout
   ========================================================= */
.pub-groups { display: flex; flex-direction: column; }

.pub-group {
  padding: 1.75rem 1.6rem 1.6rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(248,246,240,.96) 0%, rgba(255,255,255,.98) 100%);
  box-shadow: 0 14px 34px rgba(27,47,78,.06);
  border-radius: 18px;
  margin-bottom: 1.5rem;
}
.pub-group:first-child { padding-top: 1.75rem; }
.pub-group:last-child { margin-bottom: 0; }

.pub-group-header {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0 1rem;
  align-items: start;
  margin-bottom: 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(27,47,78,.1);
}

.pub-group-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.12rem;
  user-select: none;
}

.pub-group-title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.pub-group-desc {
  grid-column: 2 / -1;
  margin: 0.55rem 0 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.97rem;
  color: rgba(27,47,78,.72);
  line-height: 1.6;
  max-width: 62em;
}

.pub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pub-item {
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(27,47,78,.1);
  border-radius: 10px;
  background: #fff;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 0.8rem;
  align-items: center;
  min-height: 100%;
}

.journal-logo {
  display: block;
  height: 30px;
  width: 110px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

/* --- Shared card hover lift --- */
.pub-item,
.research-item,
.news-item,
.team-member,
.collab-item,
.funding-item,
.talk-card,
.lecture-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pub-item:hover,
.research-item:hover,
.news-item:hover,
.team-member:hover,
.collab-item:hover,
.funding-item:hover,
.talk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(27,47,78,.09);
  border-color: rgba(28,107,82,.18);
}

/* --- Key paper highlight & badge --- */
.pub-item--highlight {
  border-color: var(--accent);
  border-width: 2px;
  background: linear-gradient(135deg, #fff 80%, rgba(28,107,82,0.04) 100%);
  grid-column: 1 / -1;
}

.pub-badge {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 4px;
  padding: 0.18em 0.55em;
  margin-bottom: 0.4rem;
}

.pub-title {
  font-family: "Lora", Georgia, serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.45;
  display: block;
  margin-bottom: 0.35rem;
}
.pub-title a { color: var(--navy); }
.pub-title a:hover { color: var(--accent); }

.pub-citation {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.01em;
}
.pub-authors { font-size: 0.8rem; color: var(--muted); }
.pub-meta { color: var(--muted-light); margin-left: 0.2rem; }

.scholar-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.scholar-link:hover { color: var(--accent-light); border-color: var(--accent-light); }

/* =========================================================
   COLLABORATIONS — horizontal rows (not equal-column cards)
   ========================================================= */
.collab-items { display: flex; flex-direction: column; }

.collab-item {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0 2rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,253,.94) 100%);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.95rem;
}
.collab-item:last-child { margin-bottom: 0; }

.collab-institution {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 0.15rem;
  line-height: 1.4;
}

.collab-body-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.collab-body-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.collab-body-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

/* =========================================================
   FUNDING
   ========================================================= */
.funding-items { display: flex; flex-direction: column; }

.funding-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 2rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,253,.94) 100%);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.95rem;
}
.funding-item:last-child { margin-bottom: 0; }

.funder-logo {
  display: block;
  height: 36px;
  width: 140px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.funding-agency {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 0.15rem;
  line-height: 1.4;
}

.funding-award {
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.funding-detail {
  font-size: 0.83rem;
  color: var(--muted);
}
.funding-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
}

.page-header-sub {
  margin-top: 0.65rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  line-height: 1.6;
}

.acknowledgment-block {
  background: linear-gradient(135deg, rgba(28,107,82,.04) 0%, rgba(255,255,255,.98) 100%);
  border: 1px solid rgba(28,107,82,.12);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 2rem 2.2rem;
}

.acknowledgment-block p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.acknowledgment-block p:last-child { margin-bottom: 0; }

/* =========================================================
   THOUGHTS ON AI PAGE
   ========================================================= */
.thoughts-header {
  padding-top: 5rem;
  padding-bottom: 3rem;
}
.thoughts-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
}
.thoughts-header h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.thoughts-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  max-width: 780px;
  margin-top: 0.4rem;
}

.thoughts-section {
  margin: 3.5rem 0;
}
.thoughts-section:first-child { margin-top: 2.25rem; }

.thoughts-h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(27,47,78,0.10);
}

.thoughts-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 840px;
  margin-bottom: 1.5rem;
}
.thoughts-body em { color: var(--accent); font-style: italic; font-weight: 500; }

/* SCHEMATIC */
.hidden-label-schematic {
  margin: 2.2rem 0 0;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fafbfd 0%, #f3f6fa 100%);
  border: 1px solid rgba(27,47,78,0.08);
  box-shadow: 0 14px 34px rgba(27,47,78,0.06);
}
.hidden-label-schematic svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 0 auto;
}
.schematic-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  max-width: 720px;
  margin: 1rem auto 0;
  line-height: 1.55;
}

/* POSITION STATEMENTS */
.position-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.position-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.25rem 1.4rem;
  align-items: start;
  padding: 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(27,47,78,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.position-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(27,47,78,0.08);
}
.position-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.65;
  line-height: 1;
}
.position-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0.15rem 0 0.55rem;
}
.position-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}
.position-body em { color: var(--accent); font-style: italic; font-weight: 500; }

/* INSIGHT CARDS */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.insight-card {
  padding: 1.5rem 1.6rem;
  background: #ffffff;
  border: 1px solid rgba(27,47,78,0.08);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(27,47,78,0.08);
  border-color: rgba(28,107,82,0.22);
}
.insight-card--feature {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(28,107,82,0.05) 0%, #ffffff 65%);
  border-color: rgba(28,107,82,0.18);
  border-left: 3px solid var(--accent);
}
.insight-card-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.insight-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 0.6rem;
}
.insight-card--feature .insight-card-title {
  font-size: 1.3rem;
}
.insight-card-takeaway {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.insight-card-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.2rem;
}

/* HIGH PERFORMANCE vs HIGH VALUE */
.hvhp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-top: 1.4rem;
}
.hvhp-card {
  padding: 1.6rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(27,47,78,0.08);
  border-radius: 14px;
}
.hvhp-card--accent {
  background: linear-gradient(180deg, rgba(28,107,82,0.05) 0%, #ffffff 100%);
  border-color: rgba(28,107,82,0.22);
}
.hvhp-label {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(27,47,78,0.10);
}
.hvhp-card--accent .hvhp-label strong { color: var(--accent); }
.hvhp-list {
  margin: 0;
  padding-left: 1.1rem;
  list-style: none;
}
.hvhp-list li {
  position: relative;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text);
  padding-left: 1rem;
  margin-bottom: 0.55rem;
}
.hvhp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.65;
}

/* CLOSING */
.thoughts-closing {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(27,47,78,0.03) 0%, rgba(28,107,82,0.03) 100%);
  border-radius: 18px;
  border: 1px solid rgba(27,47,78,0.08);
}
.thoughts-signoff {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.signoff-rule {
  flex: 0 0 48px;
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
}
.signoff-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.signoff-text strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy);
  font-weight: 700;
}

/* PRINCIPLE TILES (compact) */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.4rem;
}
.principle-tile {
  display: block;
  position: relative;
  padding: 1.2rem 1.4rem 1.1rem 3.4rem;
  background: #ffffff;
  border: 1px solid rgba(27,47,78,0.09);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.principle-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(27,47,78,0.07);
  border-color: rgba(28,107,82,0.25);
}
.principle-icon {
  position: absolute;
  top: 1.15rem;
  left: 1.3rem;
  width: 1.45rem;
  height: 1.45rem;
  color: var(--accent);
  opacity: 0.92;
}
.principle-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.16em;
  opacity: 0.7;
  margin-bottom: 0.3rem;
}
.principle-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}
.principle-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.principle-body em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}
.principle-ref {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.principle-ref sup {
  font-size: 0.68rem;
  font-weight: 700;
  margin: 0 0.1rem;
}

/* TARGETING SCHEMATIC (reuse .hidden-label-schematic styling) */
.target-schematic {
  margin: 2rem 0 0;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fafbfd 0%, #f3f6fa 100%);
  border: 1px solid rgba(27,47,78,0.08);
  box-shadow: 0 14px 34px rgba(27,47,78,0.06);
}
.target-schematic svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 960px;
  margin: 0 auto;
}
.caption-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.85;
}
.caption-hint sup { font-weight: 600; color: var(--accent); }

/* REFERENCES (light, elegant) */
.thoughts-references {
  margin: 4rem 0 2rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid rgba(27,47,78,0.10);
}
.references-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}
.references-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: ref;
  max-width: 840px;
}
.references-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.4rem;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
  border-bottom: 1px dashed rgba(27,47,78,0.07);
}
.references-list li:last-child { border-bottom: none; }
.ref-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--accent);
  opacity: 0.75;
  font-weight: 600;
}
.ref-text { color: var(--text); }
.ref-text em {
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
}
.ref-text a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-left: 0.4rem;
  border-bottom: 1px solid rgba(28,107,82,0.22);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ref-text a:hover {
  color: var(--navy);
  border-color: rgba(27,47,78,0.35);
}

/* RESPONSIVE for Thoughts page */
@media (max-width: 820px) {
  .insight-grid { grid-template-columns: 1fr; }
  .hvhp-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .thoughts-header { padding-top: 3.5rem; padding-bottom: 2rem; }
  .thoughts-section { margin: 2.5rem 0; }
  .thoughts-h2 { font-size: 1.4rem; }
  .position-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.25rem 1.3rem;
  }
  .position-num { font-size: 2rem; }
  .position-title { font-size: 1.05rem; }
  .hidden-label-schematic { padding: 1rem 0.75rem; }
  .target-schematic { padding: 1rem 0.75rem; }
  .thoughts-closing { padding: 1.75rem 1.25rem; }
  .references-list li { grid-template-columns: 1.6rem 1fr; font-size: 0.78rem; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-block h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.contact-block p,
.contact-block address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.contact-block a { color: var(--navy); font-weight: 500; }
.contact-block a:hover { color: var(--accent); }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.footer-copy { font-size: 0.78rem; color: var(--muted-light); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.78rem; color: var(--muted-light); transition: color var(--transition); }
.footer-links a:hover { color: var(--navy); }

/* =========================================================
   TALKS
   ========================================================= */
.talks-list { display: flex; flex-direction: column; gap: 1.75rem; }

.talk-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(27,47,78,.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,253,.94) 100%);
  box-shadow: var(--shadow-card);
}

.talk-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: pointer;
  background: #000;
  padding: 0;
}

.talk-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.22s ease;
}
.talk-thumb:hover img { opacity: 0.55; }

.talk-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.talk-thumb:hover .talk-thumb-overlay { opacity: 1; }
.talk-thumb-overlay svg {
  width: 40px; height: 40px;
  fill: #fff; stroke: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.talk-thumb-overlay span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.talk-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 0.35rem;
}
.talk-meta {
  font-size: 0.82rem;
  color: var(--muted-light);
}

/* =========================================================
   SLIDESHOW LIGHTBOX
   ========================================================= */
.slideshow-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 12, 20, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.slideshow-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.ss-content {
  flex: 1;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

#ss-img {
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 12px 48px rgba(0,0,0,0.7);
  transition: opacity 0.18s ease;
}
#ss-img.fading { opacity: 0; }

.ss-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.ss-progress-fill {
  height: 100%;
  background: var(--accent-light);
  border-radius: 2px;
  transition: width 0.22s ease;
}
.ss-counter {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

.ss-close,
.ss-prev,
.ss-next {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.ss-close:hover,
.ss-prev:hover,
.ss-next:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
}

.ss-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px; height: 38px;
  padding: 0;
}
.ss-close svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

.ss-prev,
.ss-next {
  width: 52px; height: 52px;
  padding: 0;
}
.ss-prev svg,
.ss-next svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* =========================================================
   HOME — 2-column sidebar layout
   ========================================================= */
.home-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--pad-x) 3.5rem;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 0 4rem;
  align-items: start;
}

.home-sidebar {
  position: sticky;
  top: 70px;
}

.sidebar-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  display: block;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(27,47,78,.1);
}

.sidebar-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.sidebar-creds {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}

.sidebar-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.1rem;
}

.sidebar-dept {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.sidebar-role {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.sidebar-links .btn-link {
  justify-content: flex-start;
  font-size: 0.78rem;
}

.sidebar-address {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.sidebar-address a {
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-top: 0.5rem;
}

.home-main { min-width: 0; }

.home-section {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.home-section:first-child { padding-top: 0; }
.home-section:last-child { border-bottom: none; }

.recruiting-card {
  border: 1px solid rgba(27,47,78,.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(28,107,82,.08) 0%, rgba(255,255,255,.98) 55%);
  box-shadow: 0 14px 34px rgba(27,47,78,.06);
  padding: 1.35rem 1.4rem 1.3rem;
}

.recruiting-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.recruiting-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.recruiting-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.recruiting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.recruiting-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(28,107,82,.18);
  background: rgba(255,255,255,.84);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
}

.recruiting-contact {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.recruiting-contact a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   SUBPAGE — page header & main
   ========================================================= */
.page-header {
  padding-top: 90px;
  padding-bottom: 2.35rem;
  background:
    radial-gradient(circle at 8% 40%, rgba(28,107,82,.1), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(27,47,78,.04), transparent 25%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,253,.94) 100%);
  border-bottom: 1px solid rgba(27,47,78,.08);
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}
.page-header p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}
.page-header p a { color: var(--accent); }

.page-main { padding: 2.5rem 0; }
.page-main section {
  padding: 1.6rem 1.6rem 1.7rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,253,.94) 100%);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.6rem;
}
.page-main section:first-child { padding-top: 1.6rem; }
.page-main section:last-child { margin-bottom: 0; }

/* =========================================================
   INVITED LECTURES
   ========================================================= */
.lecture-list { display: flex; flex-direction: column; gap: 2rem; }

.lecture-year-group {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0 1.25rem;
}
.lecture-year {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--border-dark);
  padding-top: 0.1rem;
}
.lecture-items { display: flex; flex-direction: column; }
.lecture-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(27,47,78,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.85);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
}
.lecture-item:last-child { margin-bottom: 0; }
.lecture-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
}
.lecture-venue {
  font-size: 0.8rem;
  color: var(--muted);
}

/* =========================================================
   AWARDS LIST
   ========================================================= */
.award-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.award-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.25rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.award-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-light);
  letter-spacing: 0.02em;
}
.award-name {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.5;
}

/* =========================================================
   EDITORIAL & CERTIFICATIONS
   ========================================================= */
.editorial-block,
.cert-block { display: flex; flex-direction: column; gap: 0; }

.editorial-item,
.cert-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.editorial-item:last-child,
.cert-item:last-child { border-bottom: none; }

.editorial-role,
.cert-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-top: 0.1rem;
}
.editorial-journal,
.cert-detail {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.6;
}

/* nav-name as link */
a.nav-name {
  text-decoration: none;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition), opacity var(--transition);
}
a.nav-name:hover { color: var(--accent-light); opacity: 0.85; }

.nav-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(27,47,78,.08));
}

/* ECG pulse icon in nav */
.nav-pulse-icon {
  display: block;
  flex-shrink: 0;
}

/* Icon-only social link buttons */
.btn-link--icon {
  padding: 0.42rem 0.7rem;
  min-width: 2.2rem;
  justify-content: center;
}
.btn-link--icon svg {
  width: 15px;
  height: 15px;
}

/* Circle icon buttons — sidebar social row */
.btn-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(27,47,78,.16);
  background: rgba(255,255,255,.9);
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(27,47,78,.05);
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}
.btn-icon-circle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
  box-shadow: 0 6px 18px rgba(27,47,78,.1);
  transform: translateY(-2px);
}
.btn-icon-circle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-icon-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  justify-content: flex-start;
}

/* Centre on mobile when sidebar stacks */
@media (max-width: 680px) {
  .sidebar-icon-row { justify-content: center; }
}

/* =========================================================
   LAB HERO — homepage banner
   ========================================================= */
.lab-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-top: 52px; /* nav height */
  position: relative;
}

/* Cover image variant */
.lab-hero--cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.lab-hero--cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(244,247,251,0.94) 0%, rgba(255,255,255,0.78) 50%, rgba(244,247,251,0.88) 100%);
}
.lab-hero--cover::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 40%, transparent 100%);
}
.lab-hero--cover .lab-hero-inner {
  position: relative;
  z-index: 1;
}
.lab-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--pad-x) 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.lab-hero-logo {
  height: 160px;
  width: auto;
  flex-shrink: 0;
}
.lab-hero-text {}
.lab-hero-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}
.lab-hero-context {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}
.lab-hero-fullname {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.lab-hero-fullname b {
  color: var(--navy);
  font-weight: 700;
}
.lab-hero-tagline {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.lab-hero-link {
  margin-top: 0.7rem;
  font-size: 0.84rem;
}

.lab-hero-link a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   TEAM PAGE
   ========================================================= */
.team-section { display: flex; flex-direction: column; gap: 0; }

.team-member {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 0 2rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.85rem;
  align-items: baseline;
}
.team-member:last-child { margin-bottom: 0; }

.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.team-name {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.team-name a { color: var(--navy); font-weight: 500; }
.team-name a:hover { color: var(--accent); }

.team-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.cardslab-callout {
  margin-top: 2.5rem;
  padding: 1.35rem 1.45rem;
  background: linear-gradient(135deg, rgba(28,107,82,.08) 0%, rgba(255,255,255,.98) 60%);
  border: 1px solid rgba(27,47,78,.12);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}
.cardslab-callout a { color: var(--accent); font-weight: 500; }

.sidebar-pi-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* =========================================================
   NEWS & PODCASTS — legacy (kept for any other pages)
   ========================================================= */
.news-list { display: flex; flex-direction: column; }

.news-item {
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,253,.94) 100%);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}
.news-item:last-child { margin-bottom: 0; }

.news-source {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.news-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.news-title:hover { color: var(--accent); }

.news-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   MEDIA CARD GRID — news.html redesign
   ========================================================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Each card is a full-anchor block */
.media-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(27,47,78,.09);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(27,47,78,.12);
  border-color: rgba(28,107,82,.25);
}

/* Thumbnail area */
.media-thumb {
  position: relative;
  height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  overflow: hidden;
}
.media-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.07) 0%, transparent 60%);
  pointer-events: none;
}

/* Thumbnail colour variants */
.media-thumb--teal      { background: linear-gradient(135deg, #1c6b52 0%, #0d4a38 100%); }
.media-thumb--navy      { background: linear-gradient(135deg, #1b2f4e 0%, #0d1c32 100%); }
.media-thumb--slate     { background: linear-gradient(135deg, #3a5272 0%, #1b2f4e 100%); }
.media-thumb--teal-dark { background: linear-gradient(135deg, #145c45 0%, #0a3828 100%); }
.media-thumb--indigo    { background: linear-gradient(135deg, #2d4a8c 0%, #1b2f4e 100%); }
.media-thumb--navy-warm { background: linear-gradient(135deg, #2a3f6e 0%, #1b2244 100%); }
.media-thumb--guardian       { background: linear-gradient(135deg, #052962 0%, #041a3e 100%); }
.media-thumb--politico       { background: linear-gradient(135deg, #c8102e 0%, #8b0b20 100%); }
.media-thumb--politico-white { background: #ffffff; border: 1px solid rgba(27,47,78,0.10); }
.media-thumb--medical        { background: linear-gradient(135deg, #1c7684 0%, #0e4551 100%); }

/* Logo image variant (white-bg cards showing brand logo) */
.media-thumb-img--logo {
  width: 70%;
  max-width: 220px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.media-thumb-label--dark {
  color: rgba(27,47,78,0.45) !important;
  text-shadow: none !important;
}
.media-thumb--politico-white::after {
  display: none; /* no sheen overlay on white card */
}
.media-thumb--podcast   { background: linear-gradient(135deg, #1c6b52 0%, #2a4570 100%); }

.media-thumb-icon {
  width: 52px;
  height: 52px;
  opacity: 0.92;
  position: relative;
  z-index: 1;
}
.media-thumb-logo {
  width: 72%;
  max-width: 240px;
  height: auto;
  position: relative;
  z-index: 1;
}
.media-thumb-icon--lg {
  width: 60px;
  height: 60px;
}

.media-thumb-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative;
  z-index: 1;
}

/* Card body */
.media-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
}

.media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.media-source {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.media-year {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted-light);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

.media-title {
  font-family: var(--font-serif);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin: 0.15rem 0 0;
}

.media-desc {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.58;
  margin: 0;
  flex: 1;
}

.media-read {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.media-card:hover .media-read { color: var(--accent-light); }

/* Real OG image overlay */
.media-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
.media-thumb.has-real-image .media-thumb-img {
  opacity: 1;
}
.media-thumb.has-real-image .media-thumb-icon {
  display: none;
}
.media-thumb.has-real-image::after {
  /* darken real photos so label stays legible */
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.54) 100%);
  opacity: 1;
}
.media-thumb.has-real-image .media-thumb-label {
  color: rgba(255,255,255,0.92);
}

/* Single-item grid — podcast spans full row */
.media-grid--single {
  grid-template-columns: 1fr;
}

/* Podcast card — horizontal layout */
.media-card--podcast {
  flex-direction: row;
}
.media-card--podcast .media-thumb {
  width: 260px;
  height: auto;
  min-height: 190px;
  flex-shrink: 0;
  border-radius: 0;
}

/* Responsive breakpoints */
@media (max-width: 900px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .media-card--podcast { flex-direction: column; }
  .media-card--podcast .media-thumb { width: 100%; height: 160px; min-height: unset; }
}
@media (max-width: 560px) {
  .media-grid { grid-template-columns: 1fr; }
  .media-thumb { height: 130px; }
}

/* =========================================================
   MISSION INFOGRAPHIC — research.html
   ========================================================= */
.mission-section {
  margin-bottom: 3.5rem;
}

/* Lead paragraph */
.mission-lead {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--navy);
  max-width: 820px;
  margin: 0 auto 2.4rem;
  text-align: center;
  padding: 0 1rem;
}
.mission-lead strong {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Pipeline ---- */
.mission-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.6rem;
  flex-wrap: wrap;
  row-gap: 1rem;
}

.mp-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  width: 170px;
}

.mp-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mp-icon-wrap svg { width: 34px; height: 34px; }
.mp-icon-wrap--data   { color: var(--navy); }
.mp-icon-wrap--ai     { color: var(--accent); background: linear-gradient(135deg, rgba(28,107,82,.08) 0%, rgba(255,255,255,1) 100%); border-color: rgba(28,107,82,.25); }
.mp-icon-wrap--impact { color: var(--navy); }

.mp-node--accent .mp-label { color: var(--accent); font-weight: 700; }
.mp-node--accent .mp-icon-wrap { transform: scale(1.1); box-shadow: 0 8px 24px rgba(28,107,82,.15); }

.mp-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.3;
}
.mp-sub {
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.mp-arrow {
  flex: 0 0 auto;
  width: 56px;
  color: var(--muted-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6rem; /* align with icon vertically */
}
.mp-arrow svg { width: 44px; height: 16px; }

/* ---- Pillars ---- */
.mission-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.mp-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mp-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(27,47,78,.1);
  border-color: rgba(28,107,82,.2);
}

.mp-pillar-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.2rem;
}

.mp-pillar-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 18px;
}

.mp-pillar-icon {
  width: 32px;
  height: 32px;
  color: var(--navy);
  flex-shrink: 0;
  opacity: 0.75;
}

.mp-pillar-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}

.mp-pillar-body {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .mission-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .mission-pillars { grid-template-columns: 1fr; }
  .mission-pipeline { gap: 0.5rem; }
  .mp-arrow { display: none; }
  .mp-node { width: 140px; }
}

/* Home chips: collapse to 2-col on narrower screens */
@media (max-width: 820px) {
  .mission-pillars--home { grid-template-columns: repeat(2, 1fr); }
  .tree-branch-connector { display: none; }
}

/* Research-page editorial lead — left-aligned with teal rule */
.mission-lead--editorial {
  text-align: left;
  max-width: 780px;
  margin-left: 0;
  padding: 0 0 0 1.2rem;
  border-left: 3px solid var(--accent);
  font-size: 1.05rem;
}

/* Research-page track layout */
.mission-pillars--tracks {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.mp-track {
  display: grid;
  grid-template-columns: 3rem 3.4rem 1fr;
  align-items: center;
  gap: 1.3rem;
  padding: 1.3rem 1.5rem;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  transition: border-left-color 0.18s ease, background 0.18s ease;
}
.mp-track:last-child { border-bottom: none; }
.mp-track:hover {
  border-left-color: var(--accent);
  background: linear-gradient(90deg, rgba(28,107,82,.03) 0%, transparent 60%);
}

.mp-track-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
  text-align: right;
  transition: opacity 0.18s ease;
}
.mp-track:hover .mp-track-num { opacity: 1; }

.mp-track-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
  transition: border-color 0.18s ease;
}
.mp-track-icon svg { width: 26px; height: 26px; }
.mp-track:hover .mp-track-icon { border-color: rgba(28,107,82,.3); }

.mp-track-body { display: flex; flex-direction: column; gap: 0.2rem; }

.mp-track-title {
  font-family: var(--font-serif);
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}

.mp-track-desc {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
}

@media (max-width: 640px) {
  .mp-track { grid-template-columns: 2rem 2.6rem 1fr; gap: 0.8rem; padding: 1rem 1rem; }
  .mp-track-num { font-size: 1.5rem; }
}

/* About-page variants — narrower home-main column */
.about-lead {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.about-lead strong { color: var(--accent); font-weight: 600; }

/* Compact pipeline for home page */
.mission-pipeline--compact {
  margin-bottom: 0;
}
.mission-pipeline--compact .mp-node { width: 130px; }
.mission-pipeline--compact .mp-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}
.mission-pipeline--compact .mp-icon-wrap svg { width: 28px; height: 28px; }
.mission-pipeline--compact .mp-label { font-size: 0.73rem; }
.mission-pipeline--compact .mp-sub   { font-size: 0.63rem; }
.mission-pipeline--compact .mp-arrow { width: 40px; }

/* 4-col single row on home page */
.mission-pillars--home { grid-template-columns: repeat(4, 1fr); }

/* Tree branch connector between pipeline and chips */
.tree-branch-connector {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 12.5%;
  margin-bottom: 0;
}

.tree-stem-vert {
  display: block;
  width: 1.5px;
  height: 12px;
  background: var(--accent);
  opacity: 0.45;
  margin: 0 auto;
}

.tree-bus-row {
  display: flex;
  justify-content: space-between;
  border-top: 1.5px solid rgba(28, 107, 82, 0.38);
}

.tree-drop-line {
  width: 1.5px;
  height: 16px;
  background: rgba(28, 107, 82, 0.4);
  position: relative;
}

.tree-drop-line::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 5px solid rgba(28, 107, 82, 0.55);
}

.about-footer-note {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.72;
  margin-top: 1.2rem;
}
.about-footer-note a { color: var(--accent); font-weight: 600; }

/* Simple pub list — index page, no logo column */
.pub-list--simple {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.pub-simple {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s ease;
}
.pub-simple:last-child { border-bottom: none; }
.pub-simple:hover { background: rgba(28,107,82,.03); }

.pub-simple-journal {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.pub-simple-title {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  text-decoration: none;
}
.pub-simple-title:hover { color: var(--accent); }

/* Chip pillar — icon top, label bottom, centered (4-column tree layout) */
.mp-pillar--chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.32rem;
  padding: 0.55rem 0.35rem 0.5rem;
  background: rgba(28, 107, 82, 0.05);
  border: 1px solid rgba(28, 107, 82, 0.12);
}

.mp-chip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.8;
}

.mp-chip-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  text-align: center;
}

/* Tighter grid for home chips */
.mission-pillars--home {
  gap: 0.5rem;
}

/* =========================================================
   PAPER CAROUSEL
   ========================================================= */
.paper-carousel {
  position: relative;
  background: linear-gradient(180deg, #f8fafd 0%, var(--surface) 100%);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.paper-carousel-track {
  position: relative;
  height: 400px;
}

.pc-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.pc-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.pc-slide img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.pc-prev, .pc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: background 0.15s;
}
.pc-prev:hover, .pc-next:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.pc-prev { left: 0.75rem; }
.pc-next { right: 0.75rem; }
.pc-prev svg, .pc-next svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.pc-caption {
  text-align: center;
  padding: 0.75rem 2.8rem 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  min-height: 2.5rem;
  line-height: 1.5;
  background: rgba(248,250,253,.6);
}

.pc-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.6rem 0 0.8rem;
}
.pc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-dark);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.pc-dot.active { background: var(--accent); }

/* =========================================================
   BIO TIMELINE (zigzag path — adapted from sgfin.github.io)
   ========================================================= */
.bio-intro {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 0.5rem;
}
.bio-intro a { color: var(--accent); }

#bio-timeline {
  position: relative;
  padding: 0.9rem 0 0.2rem;
}

/* centre spine visible on desktop */
@media (min-width: 768px) {
  #bio-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--border-dark);
  }
}

.bio-item {
  position: relative;
  padding: 0.45rem 1rem 0.75rem;
  margin-bottom: 0.1rem;
}

/* dot on the spine */
.bio-item::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 0.8rem;
}

/* desktop zigzag */
@media (min-width: 768px) {
  .bio-item {
    width: 47%;
  }
  .bio-item:nth-child(odd) {
    margin-left: 53%;
    border-left: 2px solid var(--border-dark);
    text-align: left;
  }
  .bio-item:nth-child(odd)::before {
    left: -6px;
  }
  .bio-item:nth-child(even) {
    margin-right: 53%;
    border-right: 2px solid var(--border-dark);
    text-align: right;
  }
  .bio-item:nth-child(even)::before {
    right: -6px;
  }
}

/* mobile: single left-anchored column */
@media (max-width: 767px) {
  .bio-item {
    border-left: 2px solid var(--border-dark);
    margin-left: 0.75rem;
    text-align: left;
  }
  .bio-item::before {
    left: -6px;
  }
}

.bio-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.08rem;
}

.bio-institution {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.08rem;
}

.bio-role {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.42;
}

.bio-role em { color: var(--navy); font-style: normal; font-weight: 600; }

.bio-note {
  font-size: 0.74rem;
  color: var(--muted-light);
  margin-top: 0.14rem;
  font-style: italic;
  line-height: 1.45;
}

.bio-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(28,107,82,.28);
}

.bio-note a:hover {
  color: var(--accent-light);
  border-bottom-color: rgba(63,153,124,.45);
}

/* =========================================================
   FOCUS CARDS — What We Do (index homepage)
   ========================================================= */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.focus-card {
  position: relative;
  padding: 1.1rem 1.15rem 1.1rem 1.3rem;
  border: 1px solid rgba(27,47,78,.09);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.98) 0%, rgba(248,250,253,.94) 100%);
  box-shadow: 0 6px 20px rgba(27,47,78,.045);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.focus-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(28,107,82,.18) 100%);
  border-radius: 3px 0 0 3px;
}
.focus-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(27,47,78,.09);
  border-color: rgba(28,107,82,.2);
}

.focus-num {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease;
}
.focus-card:hover .focus-num { opacity: 0.9; }

.focus-title {
  font-family: var(--font-serif);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.focus-desc {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 680px) {
  .focus-grid { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* =========================================================
   BIO INTRO GRID (replaces inline styles)
   ========================================================= */
.bio-intro-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 2.5rem;
  align-items: start;
}
.bio-intro-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  box-shadow: 0 8px 24px rgba(27,47,78,.1);
}

/* =========================================================
   HAMBURGER MENU (mobile nav)
   ========================================================= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  color: var(--navy);
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: 52px;
  left: 0; right: 0;
  background: rgba(244, 247, 251, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(27,47,78,.1);
  padding: 0.75rem var(--pad-x) 1rem;
  z-index: 99;
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-mobile-drawer.open { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-mobile-drawer a {
  display: block;
  padding: 0.6rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-mobile-drawer a:hover,
.nav-mobile-drawer a.active {
  color: var(--accent);
  background: rgba(28,107,82,.06);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* --- Tablet / medium screens --- */
@media (max-width: 820px) {
  .lab-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
    padding: 2rem var(--pad-x) 1.6rem;
  }
  .lab-hero-logo { height: 100px; }
  .lab-hero-tagline { margin-left: auto; margin-right: auto; }
  .lab-hero-context { text-align: center; }
  .lab-hero-link { text-align: center; }
}

/* --- Mobile breakpoint --- */
@media (max-width: 680px) {
  /* Hamburger: show toggle, hide desktop links */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .header-photo { width: 120px; height: 120px; }
  .header-name { font-size: 1.65rem; }

  .section-title {
    font-size: 1.22rem;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
  }

  .page-header {
    padding-bottom: 1.7rem;
  }

  .page-header h1 {
    font-size: 1.65rem;
  }

  .page-main section {
    padding: 1.2rem 1rem 1.25rem;
    border-radius: 16px;
    margin-bottom: 1.1rem;
  }

  .home-wrap {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .pub-group {
    padding: 1.25rem 1rem 1rem;
    border-radius: 14px;
  }

  .pub-group-header {
    grid-template-columns: 2rem 1fr;
    gap: 0 0.85rem;
  }

  .pub-list {
    grid-template-columns: 1fr;
  }

  .pub-item {
    grid-template-columns: 1fr;
    gap: 0.7rem 0;
  }

  .journal-logo {
    width: 145px;
    height: 40px;
    margin-bottom: 0.45rem;
  }

  .pub-group-num { font-size: 1.1rem; }

  .home-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
  }
  .sidebar-links { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .research-items { grid-template-columns: 1fr; }
  .research-item {
    grid-template-columns: 1fr;
    gap: 0.65rem 0;
    padding: 1rem 1rem 0.95rem;
  }
  .research-item:last-child { grid-column: auto; }
  .research-num { font-size: 0.78rem; }

  .research-item,
  .news-item,
  .team-member,
  .collab-item,
  .funding-item,
  .award-item,
  .lecture-item,
  .talk-card,
  .cardslab-callout,
  .recruiting-card {
    border-radius: 14px;
  }

  /* Team member: collapse to single column */
  .team-member {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }

  .collab-item,
  .funding-item { grid-template-columns: 1fr; gap: 0.25rem 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 1.75rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .talk-card { grid-template-columns: 1fr; }
  .paper-carousel-track { height: 280px; }
  .pc-prev, .pc-next { width: 34px; height: 34px; }
  .pc-prev svg, .pc-next svg { width: 14px; height: 14px; }

  .ss-prev, .ss-next { width: 38px; height: 38px; }
  .slideshow-overlay { gap: 0.5rem; padding: 1rem; }

  .lecture-year-group { grid-template-columns: 2rem 1fr; }
  .award-item { grid-template-columns: 2.8rem 1fr; }
  .editorial-item, .cert-item { grid-template-columns: 1fr; gap: 0.2rem 0; }

  /* Bio intro: stack photo above text */
  .bio-intro-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem 0;
    justify-items: center;
  }
  .bio-intro-photo {
    width: 130px;
    height: 130px;
  }
  .bio-intro-grid > div { text-align: left; }

  /* Lab hero */
  .lab-hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.8rem var(--pad-x) 1.4rem;
  }
  .lab-hero-logo { height: 80px; }
  .lab-hero-name { font-size: 1.55rem; }
  .lab-hero-tagline { font-size: 0.88rem; margin-left: auto; margin-right: auto; white-space: normal; }

  /* Mission pipeline: tighter */
  .mp-node { width: 120px; }
  .mp-icon-wrap { width: 48px; height: 48px; }
  .mp-icon-wrap svg { width: 26px; height: 26px; }
  .mp-label { font-size: 0.72rem; }

  /* Mission pipeline compact */
  .mission-pipeline--compact .mp-node { width: 100px; }
  .mission-pipeline--compact .mp-icon-wrap { width: 42px; height: 42px; border-radius: 12px; }
  .mission-pipeline--compact .mp-icon-wrap svg { width: 22px; height: 22px; }

  /* Sidebar photo on mobile */
  .sidebar-photo { width: 130px; height: 130px; }
}

/* --- Small phone breakpoint --- */
@media (max-width: 480px) {
  :root { --pad-x: 1rem; }

  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: 0.84rem; }

  .section-title { font-size: 1.1rem; }

  .lab-hero-name { font-size: 1.3rem; }
  .lab-hero-tagline { font-size: 0.82rem; }
  .lab-hero-context { font-size: 0.75rem; }

  .paper-carousel-track { height: 220px; }
  .pc-caption { font-size: 0.72rem; padding: 0.55rem 1.2rem 0.6rem; }

  .bio-intro-photo { width: 110px; height: 110px; }
  .bio-intro { font-size: 0.88rem; }

  .pub-title { font-size: 0.82rem; }
  .pub-citation { font-size: 0.74rem; }
  .pub-authors { font-size: 0.74rem; }

  .media-body { padding: 0.8rem 0.85rem 0.9rem; }
  .media-title { font-size: 0.88rem; }
  .media-desc { font-size: 0.76rem; }
  .media-thumb { height: 110px; }

  .talk-title { font-size: 0.9rem; }

  .recruiting-card { padding: 1.1rem 1rem; }
  .recruiting-title { font-size: 1rem; }

  /* Tighten spacing */
  .home-section { padding: 1.5rem 0; }
  section { padding: 2.5rem 0; }
  .page-main { padding: 1.5rem 0; }

  /* Badge text legibility */
  .badge { font-size: 0.68rem; padding: 0.2rem 0.5rem; }

  /* Footer */
  .footer-links { gap: 0.8rem; flex-wrap: wrap; }
  .footer-copy { font-size: 0.72rem; }
  .footer-links a { font-size: 0.72rem; }

  /* Slideshow overlay: more room for slide */
  .ss-prev, .ss-next { width: 32px; height: 32px; }
  .ss-prev svg, .ss-next svg { width: 16px; height: 16px; }
  .slideshow-overlay { padding: 0.6rem; gap: 0.3rem; }
  .ss-close { top: 0.6rem; right: 0.6rem; width: 32px; height: 32px; }
}
