/* ============================================================
   Meryem Şeyda Özcan — Personal Academic Website
   Design system adapted from SustainRL-Bench
   ============================================================ */

:root {
  /* pastel palette */
  --bg:           #fbf6f1;
  --surface:      #ffffff;
  --surface-alt:  #f5ede2;

  --rose:         #d4a4a4;
  --rose-deep:    #b07d7d;
  --rose-soft:    #f3e0e0;

  --mint:         #a4c8b4;
  --mint-deep:    #6f9b86;
  --mint-soft:    #def0e6;

  --lavender:     #b5add4;
  --lavender-deep:#8a7fb0;
  --lavender-soft:#e8e4f3;

  --peach:        #f0c4a0;
  --peach-deep:   #c89770;
  --peach-soft:   #fbe7d4;

  --ink:          #2e2424;
  --ink-soft:     #6f615a;
  --ink-light:    #9b8d86;

  --line:         #ece2d6;
  --line-soft:    #f5ede2;

  --shadow-sm: 0 2px 12px rgba(80, 50, 50, 0.05);
  --shadow-md: 0 8px 32px rgba(80, 50, 50, 0.08);
  --shadow-lg: 0 16px 48px rgba(80, 50, 50, 0.10);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
}

a { color: var(--rose-deep); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--lavender-deep); }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}
.container.narrow { max-width: 820px; }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  background: rgba(251, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.topnav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}
.topnav-brand {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.topnav-brand:hover { color: var(--rose-deep); }
.topnav-links {
  display: flex;
  gap: 4px;
}
.topnav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.topnav-links a:hover {
  background: var(--surface);
  color: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 90px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner { position: relative; z-index: 2; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
}
.blob-1 { width: 380px; height: 380px; top: -80px;  left: -80px;  background: var(--rose); }
.blob-2 { width: 320px; height: 320px; top:  80px;  right: -60px; background: var(--mint); }
.blob-3 { width: 280px; height: 280px; bottom: -100px; left: 35%; background: var(--lavender); }

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255,255,255,0.85);
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero-photo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px dashed var(--rose);
  opacity: 0.45;
  pointer-events: none;
  animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.hero-text { min-width: 0; }

.affiliation {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 22px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose-deep);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin: 0 0 18px 0;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}

.role-line {
  font-size: 17px;
  font-weight: 600;
  color: var(--rose-deep);
  margin: 0 0 18px 0;
  letter-spacing: 0.01em;
}

.subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 30px 0;
  line-height: 1.6;
  max-width: 640px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--rose-deep);
  color: white;
  box-shadow: 0 6px 18px rgba(176, 125, 125, 0.35);
}
.btn-soft {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-soft:hover {
  transform: translateY(-2px);
  background: white;
  color: var(--rose-deep);
  box-shadow: var(--shadow-sm);
}
.btn-icon { font-size: 14px; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--ink);
  color: white;
  padding: 40px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.stats.stats-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 820px;
  margin: 0 auto;
  gap: 24px;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  color: white;
  display: inline-block;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 96px 0;
  position: relative;
}
.section.alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 14px;
}
.eyebrow.centered { display: block; text-align: center; }

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 28px 0;
  color: var(--ink);
}
h2.centered { text-align: center; margin-bottom: 16px; }

h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px 0;
}

p { color: var(--ink-soft); margin: 0 0 16px 0; }
.narrow p { font-size: 17px; line-height: 1.75; }

.lead {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 48px;
  line-height: 1.6;
}
.lead.centered { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.subsection {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 48px 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.subsection:first-of-type { margin-top: 24px; }

.subhead {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 56px 0 18px 0;
}

/* ============================================================
   GRID 3 / GRID 2 / CARDS
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.axis-card { padding-top: 30px; }
.axis-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.axis-rose::before     { background: var(--rose); }
.axis-mint::before     { background: var(--mint); }
.axis-lavender::before { background: var(--lavender); }
.axis-peach::before    { background: var(--peach); }
.axis-rose:hover     { border-color: var(--rose); }
.axis-mint:hover     { border-color: var(--mint); }
.axis-lavender:hover { border-color: var(--lavender); }
.axis-peach:hover    { border-color: var(--peach); }

.card-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.card-icon { font-size: 30px; margin-bottom: 14px; }
.card p { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.bullets li {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 4px 0 4px 18px;
  position: relative;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-deep);
}

/* ============================================================
   TIMELINE (Education / Positions)
   ============================================================ */
.timeline {
  position: relative;
  margin-top: 12px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 152px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 36px;
  padding: 18px 0;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 145px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--rose-deep);
  z-index: 1;
}
.timeline-item.current::before {
  background: var(--rose-deep);
  box-shadow: 0 0 0 6px var(--rose-soft);
}
.timeline-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: right;
  padding-top: 4px;
}
.timeline-body {
  padding-left: 16px;
}
.timeline-body h3 { margin-bottom: 4px; }
.timeline-place {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px 0;
  font-weight: 500;
}
.timeline-detail {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

.present-tag {
  display: inline-block;
  background: var(--mint-soft);
  color: var(--mint-deep);
  padding: 2px 10px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* ============================================================
   LAB CARDS
   ============================================================ */
.research-labs { margin-top: 64px; }
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.lab-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.lab-card:hover {
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.lab-years {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--rose-deep);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.lab-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.lab-inst {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ============================================================
   PUBLICATION LIST
   ============================================================ */
.pub-list, .talk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pub-item, .talk-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.pub-item:last-child, .talk-item:last-child { border-bottom: none; }

.pub-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-alt);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  letter-spacing: 0.04em;
  align-self: start;
}
.pub-year.status {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.pub-year.status.review { background: var(--lavender-soft); color: var(--lavender-deep); }
.pub-year.status.prep   { background: var(--peach-soft);   color: var(--peach-deep); }

.pub-body p {
  margin: 0 0 6px 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}
.pub-body strong { color: var(--ink); }
.pub-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--rose-deep);
  word-break: break-all;
}
.pub-link:hover { color: var(--lavender-deep); }

/* ============================================================
   TALKS
   ============================================================ */
.talk-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  align-self: start;
}
.tag-rose     { background: var(--rose-soft);     color: var(--rose-deep); }
.tag-mint     { background: var(--mint-soft);     color: var(--mint-deep); }
.tag-lavender { background: var(--lavender-soft); color: var(--lavender-deep); }
.tag-peach    { background: var(--peach-soft);    color: var(--peach-deep); }

.talk-body p {
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ============================================================
   TEACHING
   ============================================================ */
.teaching-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.teach-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.teach-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--rose);
}
.teach-card-wide { grid-column: span 3; }
.teach-year {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-deep);
  background: var(--rose-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.teach-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}
.teach-course {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 4px 0;
}
.teach-place {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   GRANTS
   ============================================================ */
.grant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.grant-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.grant-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.grant-card.grant-active   { border-top: 4px solid var(--mint); }
.grant-card.grant-pending  { border-top: 4px solid var(--peach); }

.grant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 8px;
}
.grant-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-active  { background: var(--mint-soft);  color: var(--mint-deep); }
.status-pending { background: var(--peach-soft); color: var(--peach-deep); }

.grant-years {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.grant-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
}
.grant-funder {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px 0;
}
.grant-role {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   AWARDS & SERVICE LISTS
   ============================================================ */
.awards-list, .service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.awards-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.awards-list li:last-child { border-bottom: none; }
.award-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--rose-deep);
}
.award-body {
  font-size: 15px;
  color: var(--ink);
}
.award-body em { color: var(--ink-soft); font-style: normal; font-weight: 500; }

.service-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--ink);
  font-size: 15px;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lavender-deep);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 20px;
}
.skills-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skills-bullets li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 14.5px;
  color: var(--ink);
}
.skills-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-deep);
}
.skills-bullets li em {
  color: var(--ink-soft);
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
}

/* ============================================================
   CONTACT GRID
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 24px 0;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--rose);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.contact-icon {
  font-size: 22px;
  margin-bottom: 4px;
}
.contact-card strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-all;
}
.contact-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.address-line {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-light);
  margin-top: 28px;
}

/* ============================================================
   CV SUMMARY GRID
   ============================================================ */
.cv-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0 36px 0;
}
.cv-summary-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-left-color 0.2s;
}
.cv-summary-item:nth-child(4n+1) { border-left-color: var(--rose); }
.cv-summary-item:nth-child(4n+2) { border-left-color: var(--mint); }
.cv-summary-item:nth-child(4n+3) { border-left-color: var(--lavender); }
.cv-summary-item:nth-child(4n)   { border-left-color: var(--peach); }
.cv-summary-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.cv-summary-num {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  min-width: 50px;
}
.cv-summary-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.cv-summary-label em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.5;
}

.cv-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.cv-cta-note {
  font-size: 13px;
  color: var(--ink-light);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
  text-align: center;
}
.footer-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: white;
  margin: 0 0 12px 0;
}
.footer p { color: rgba(255,255,255,0.7); margin: 0 0 6px 0; font-size: 14px; }
.footer a { color: white; }
.footer a:hover { color: var(--rose); }
.footer .small { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 8px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-photo-wrap { margin: 0 auto; width: 220px; height: 220px; }
  .subtitle { margin-left: auto; margin-right: auto; }
  .links { justify-content: center; }
  .title { font-size: 52px; }
  .stats, .stats.stats-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-num { font-size: 38px; }
  .grid-3, .grid-2, .grant-grid, .teaching-grid, .contact-grid, .lab-grid, .cv-summary {
    grid-template-columns: 1fr;
  }
  .teach-card-wide { grid-column: span 1; }
  .timeline::before { left: 70px; }
  .timeline-item { grid-template-columns: 60px 1fr; gap: 20px; }
  .timeline-item::before { left: 63px; }
  .timeline-year { font-size: 12px; }
  h2 { font-size: 30px; }

  /* Mobile top nav: brand on top centred, horizontally scrollable link row */
  .topnav-inner {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .topnav-brand {
    font-size: 17px;
    text-align: center;
  }
  .topnav-links {
    display: flex !important;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 2px 0;
    gap: 2px;
  }
  .topnav-links::-webkit-scrollbar { display: none; }
  .topnav-links a {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .topnav-brand { font-size: 15px; }
  .topnav-links a { padding: 5px 10px; font-size: 12.5px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .title { font-size: 42px; }
  .pub-item, .talk-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .pub-year, .talk-tag { width: fit-content; }
  .stats, .stats.stats-3 { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; gap: 18px; }
}
