/* ============================================================
   Trevor Bush — Unified Stylesheet
   Aesthetic: Editorial-Scientific | Playfair Display + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Design Tokens ── */
:root {
  --cream:       #f7f4ef;
  --white:       #ffffff;
  --ink:         #1a1a18;
  --ink-soft:    #3d3d39;
  --muted:       #7a7a72;
  --green:       #1d6f5b;
  --green-light: #eaf2ef;
  --green-mid:   #c6ddd8;
  --blue:        #1a4a7a;
  --blue-dark:   #0f2f52;
  --border:      #e4e0d8;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.12);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --max: 980px;
  --max-wide: 1120px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: #1a1a18;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

.pubs-page,
.edu-page,
.mentors-page,
.research-main {
  flex: 1 0 auto;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
p { color: var(--ink-soft); line-height: 1.8; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.navlinks {
  display: flex;
  gap: 5px;
  align-items: center;
}

.navlinks a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink-soft);
  transition: all 0.18s ease;
}

.navlinks a:hover {
  border-color: var(--border);
  background: var(--white);
  color: var(--ink);
  opacity: 1;
}

.navlinks a[aria-current="page"] {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.burger {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--sans);
  color: var(--ink-soft);
}

/* ============================================================
   HOME — HERO
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center/cover no-repeat;
  opacity: 0.28;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(26,26,24,0.6) 0%,
    rgba(29,111,91,0.2) 55%,
    rgba(26,26,24,0.75) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px 90px;
  max-width: 760px;
}

.hero-avatar {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07), 0 24px 60px rgba(0,0,0,0.55);
  margin-bottom: 30px;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.35);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeIn 1s 0.9s ease both;
}

.hero-scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2.2s 1.8s ease-in-out infinite;
}

/* ============================================================
   HOME — ABOUT SECTION
   ============================================================ */

.about-section {
  background: var(--white);
  padding: 80px 0 88px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 72px;
  align-items: start;
}

.about-left .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.about-heading {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 24px;
}

.about-heading em {
  font-style: italic;
  color: var(--green);
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--green-mid);
  color: var(--green);
  background: var(--green-light);
}

.about-right p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--ink-soft);
}
.about-right p:last-of-type { margin-bottom: 0; }

.about-divider {
  width: 36px;
  height: 2px;
  background: var(--green);
  border: none;
  margin: 32px 0;
}

.connect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.connect-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.connect-link.primary {
  background: var(--green);
  color: #fff;
}

.connect-link.primary:hover {
  background: #165a49;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,111,91,0.28);
}

.connect-link.secondary {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
}

.connect-link.secondary:hover {
  border-color: var(--green-mid);
  color: var(--green);
  opacity: 1;
  transform: translateY(-1px);
}

/* ============================================================
   RESEARCH PAGE
   ============================================================ */

main.research-main {
  padding: 0 0 80px;
  background: var(--cream);
}

.research-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px;
}

.research-hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: stretch;
}

.research-hero-left {
  max-width: 480px;
}

/* Title row: left heading + right intro text */
.research-hero-title-row {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 40px;
}

.research-hero-intro p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
.research-hero-intro p:last-child { margin-bottom: 0; }
.research-hero-intro strong { color: var(--ink); font-weight: 600; }

/* Two motivation cards stacked vertically */
.research-motivation-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.research-hero-left .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.research-hero-left h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.14;
  color: var(--ink);
  margin-bottom: 22px;
}

.research-hero-left .tagline {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  border-left: 2px solid var(--green);
  padding-left: 14px;
  line-height: 1.65;
}

.research-hero-right p {
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
.research-hero-right p:last-child { margin-bottom: 0; }
.research-hero-right strong { color: var(--ink); font-weight: 600; }

/* Hero content blocks */
.hero-block {
  margin-bottom: 28px;
}

.hero-block-label {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--green) !important;
  margin-bottom: 10px !important;
}

.hero-block p:not(.hero-block-label) {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--ink-soft);
}

/* WE Medicine callout card */
.we-medicine-card {
  background: linear-gradient(135deg, #0f3d2e 0%, #1a5c45 60%, #1d6f5b 100%);
  border-radius: var(--r-md);
  padding: 28px 30px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(29, 111, 91, 0.22);
}

.we-medicine-card::before {
  content: 'WE';
  position: absolute;
  right: -8px;
  top: -18px;
  font-family: var(--serif);
  font-size: 7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.we-medicine-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.we-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  flex-shrink: 0;
}

.we-medicine-label {
  font-family: var(--serif);
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
}

.we-medicine-body {
  font-size: 0.93rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
  margin-bottom: 12px !important;
  line-height: 1.75 !important;
}

.we-medicine-body strong {
  color: #fff !important;
  font-weight: 600 !important;
}

.we-medicine-body:last-of-type {
  margin-bottom: 16px !important;
}

.we-medicine-cite {
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.42) !important;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  margin-bottom: 0 !important;
  line-height: 1.6 !important;
}

.we-medicine-cite a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-style: normal;
}

.we-medicine-cite a:hover {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* Why Lipids blue card */
.why-lipids-card {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: var(--r-md);
  padding: 28px 30px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 74, 122, 0.22);
}

.why-lipids-card::before {
  content: 'L';
  position: absolute;
  right: -4px;
  top: -18px;
  font-family: var(--serif);
  font-size: 7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.why-lipids-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.why-lipids-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  flex-shrink: 0;
}

.why-lipids-label {
  font-family: var(--serif);
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin-bottom: 0 !important;
  line-height: 1.3 !important;
}

.why-lipids-body {
  font-size: 0.93rem !important;
  color: rgba(255, 255, 255, 0.78) !important;
  margin-bottom: 0 !important;
  line-height: 1.75 !important;
}

.why-lipids-figure {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.why-lipids-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px;
  display: block;
  margin: 0 auto;
  box-sizing: border-box;
}

.why-lipids-caption {
  margin-top: 10px !important;
  font-size: 0.75rem !important;
  color: rgba(255, 255, 255, 0.42) !important;
  font-style: italic;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

.why-lipids-cite-label {
  font-style: normal;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.why-lipids-cite-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-style: normal;
}

.why-lipids-cite-link:hover {
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

/* Schematic — now lives inside right column */
.research-hero-schematic {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.research-schematic-img {
  width: 100%;
  max-width: 1000px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
  margin: 0 auto;
}

.research-schematic-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.research-schematic-cite-link {
  display: inline-block;
  margin-top: 5px;
  margin-left: 4px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.research-schematic-cite-link:hover { opacity: 0.75; }

/* Accordion */
.research-accordion-wrap {
  max-width: var(--max-wide);
  margin: 52px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.research-accordion-wrap details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.research-accordion-wrap details[open] {
  box-shadow: var(--shadow-md);
}

.research-accordion-wrap summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  transition: background 0.15s ease;
  user-select: none;
}

.research-accordion-wrap summary::-webkit-details-marker { display: none; }
.research-accordion-wrap summary:hover { background: var(--cream); }

.chevron {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.research-accordion-wrap details[open] .chevron {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 24px 28px;
  border-top: 1px solid var(--border);
}

.accordion-body h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}

.accordion-body p {
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.accordion-body ul {
  padding: 0;
  margin: 12px 0 18px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-body li {
  padding: 14px 18px;
  background: var(--cream);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--green);
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.accordion-body li > strong:first-child {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 3px;
}

.accordion-body li strong {
  color: var(--ink);
  font-weight: 600;
}

.accordion-schematic {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--green-mid);
  text-align: center;
}

.accordion-schematic--row {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.accordion-schematic-img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  display: block;
  margin: 0 auto;
}

.accordion-schematic-img--sm {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  margin: 0;
  object-fit: contain;
  height: auto;
}

.accordion-schematic-img--cells {
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

.accordion-schematic-caption {
  margin-top: 9px;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  display: block;
}

.accordion-schematic-caption--left {
  margin: 0;
  max-width: none;
  flex: 1;
}

/* Full-width left-aligned caption (replaces inline styles) */
.accordion-schematic-caption--full {
  margin-top: 10px;
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Wider schematic image (replaces inline max-width: 820px) */
.accordion-schematic-img--wide {
  max-width: 640px;
}

/* Spaced schematic block (replaces inline margin-top: 18px) */
.accordion-schematic--spaced {
  margin-top: 18px;
}

/* Blurb paragraph inside accordion body (replaces inline font/color/spacing) */
.accordion-body-blurb {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.75;
}

.accordion-cite-link {
  display: inline-block;
  margin-top: 7px;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.accordion-cite-link--block {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.accordion-cite-link--block:hover { opacity: 0.75; }

.accordion-schematic--lipidsig {
  text-align: left;
}

.accordion-schematic-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}

.lipidsig-panels {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  align-items: start;
}

.lipidsig-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lipidsig-panel .accordion-schematic-img {
  max-width: 100%;
  margin: 0;
}

.lipidsig-panel .accordion-schematic-caption {
  margin: 0;
  max-width: none;
  text-align: left;
}

@media (max-width: 680px) {
  .lipidsig-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .accordion-schematic--row {
    flex-direction: column;
    text-align: center;
  }
  .accordion-schematic-img--sm {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
  }
  .accordion-schematic-caption--left {
    text-align: center;
  }
}

/* ============================================================
   EDUCATION PAGE
   ============================================================ */

.edu-page {
  padding: 64px 0 80px;
  background: var(--cream);
}

.edu-page-header {
  margin-bottom: 44px;
}

.edu-page-header .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.edu-page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}

.edu-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: fadeUp 0.6s ease both;
}

.edu-card:nth-child(2) { animation-delay: 0.1s; }

.edu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.edu-school {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.edu-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.edu-degree {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.6;
}

.edu-degree strong { color: var(--ink); font-weight: 600; }

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--green-mid);
  color: var(--green);
  background: var(--green-light);
}

.edu-logo-block {
  width: 72px;
  height: 72px;
  min-width: 72px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.edu-logo-img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   MENTORS PAGE
   ============================================================ */

.mentors-page {
  padding: 0 0 80px;
  background: var(--cream);
}

.mentors-hero {
  padding: 64px 0 48px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.mentors-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.mentors-hero p {
  max-width: 580px;
  font-size: 0.98rem;
}

.mentors-section {
  margin-bottom: 48px;
}

.mentors-section-header {
  margin-bottom: 20px;
}

.mentors-section-header h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.mentors-section-header p {
  font-size: 0.88rem;
  max-width: 540px;
}

.mentor-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mentor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 34px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.mentor-card:hover { box-shadow: var(--shadow-md); }

.mentor-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green-light);
  box-shadow: 0 0 0 1px var(--green-mid);
}

.mentor-info { flex: 1; }

.mentor-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1px;
}

.mentor-title-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green);
}

.mentor-dept {
  font-size: 0.84rem;
  margin-bottom: 16px;
}

.mentor-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin: 14px 0 5px;
}

.mentor-body-text {
  font-size: 0.92rem;
  margin-bottom: 6px;
  line-height: 1.75;
}

/* ============================================================
   CV PAGE
   ============================================================ */

.cv-page {
  background: var(--ink);
  min-height: calc(100vh - 57px);
  padding: 60px 0 60px;
}

.cv-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.cv-page-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.cv-updated {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-top: 6px;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--sans);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.cv-download-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.38);
  opacity: 1;
  transform: translateY(-1px);
}

.cv-frame-wrap {
  background: rgba(0,0,0,0.28);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

.cv-frame-wrap iframe {
  width: 100%;
  height: min(82vh, 940px);
  border: none;
  border-radius: var(--r-md);
  background: #fff;
  display: block;
}

/* ============================================================
   SHARED FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.42);
  padding: 26px 0;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-family: var(--serif);
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 0.85; transform: scaleY(1.15); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

.why-lipids-card {
  opacity: 0;
  transform: translateX(-80px);
}

.we-medicine-card {
  opacity: 0;
  transform: translateX(80px);
}

.why-lipids-card.slide-in {
  animation: slideInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.we-medicine-card.slide-in {
  animation: slideInRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@media (max-width: 820px) {
  .navlinks { display: none; }

  .burger { display: inline-flex; }

  .navlinks.open {
    display: flex;
    position: absolute;
    right: 18px;
    top: 60px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px;
    width: min(260px, calc(100vw - 36px));
    box-shadow: var(--shadow-md);
    z-index: 200;
  }

  .navlinks.open a {
    padding: 10px 14px;
    border-radius: var(--r-sm);
    border-color: transparent;
  }

  .hero { min-height: 85vh; }
  .hero-avatar { width: 200px; height: 200px; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }

  .research-hero-inner { flex-direction: column; gap: 24px; }
  .research-hero-title-row { grid-template-columns: 1fr; gap: 24px; }
  .research-motivation-cards { grid-template-columns: 1fr; }

  .research-hero-left {
    position: static;
    grid-row: auto;
  }

  .research-hero-schematic { margin-top: 0; }

  .edu-card { grid-template-columns: 1fr; padding: 26px 22px; }

  .mentor-card { flex-direction: column; padding: 22px 20px; }

  .cv-page-header { flex-direction: column; align-items: flex-start; }
  .cv-frame-wrap iframe { height: 70vh; }

  .footer-inner { flex-direction: column; gap: 4px; text-align: center; }
}

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */

.pubs-page {
  padding: 64px 0 80px;
  background: var(--cream);
}

.pubs-page-header {
  margin-bottom: 48px;
}

.pubs-page-header .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.pubs-page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 14px;
}

.pubs-page-header .pubs-note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 560px;
}

.pub-year-group {
  margin-bottom: 44px;
}

.pub-year-label {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  animation: fadeUp 0.5s ease both;
}

.pub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.pub-card-left { flex: 1; }

.pub-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.pub-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.pub-authors {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.pub-authors strong {
  color: var(--green);
  font-weight: 600;
}

.pub-journal {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

.pub-journal span {
  font-style: normal;
  color: var(--muted);
}

.pub-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
  padding-top: 2px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pub-link:hover {
  border-color: var(--green-mid);
  color: var(--green);
  background: var(--green-light);
  opacity: 1;
  transform: none;
}

.pub-link.doi {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.pub-link.doi:hover {
  background: #165a49;
  border-color: #165a49;
  color: #fff;
}

.pubs-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.profile-link:hover {
  border-color: var(--green-mid);
  color: var(--green);
  opacity: 1;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .pub-card {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .pub-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
