/* ============================================================
   Academic Portfolio — Newscatcher-inspired light theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── koen_papers.css token aliases ── */
  --color-bg:        #ffffff;
  --color-surface:   #ffffff;
  --color-border:    #E2E8F0;
  --color-accent:    #2563EB;
  --color-accent-md: #BFDBFE;
  --color-muted:     #64748B;
  --color-subtle:    #94A3B8;
  --color-text:      #0D1526;
  --font-sans:       'Inter Tight', system-ui, sans-serif;
  --font-serif:      'Lora', Georgia, serif;
  --radius-md:       12px;
  --shadow-lg:       0 10px 40px rgba(15,23,42,0.12);
  --transition:      0.2s ease;
  --nav-h:           64px;
  --container-px:    28px;
  --container-w:     900px;

  /* ── Site tokens ── */
  --bg:          #ffffff;
  --bg-soft:     #F5F8FF;
  --bg-dark:     #0B1628;
  --text:        #0D1526;
  --muted:       #64748B;
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #EFF6FF;
  --blue-mid:    #BFDBFE;
  --border:      #E2E8F0;
  --shadow-sm:   0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:   0 4px 20px rgba(15,23,42,0.08);
  --max:         900px;
  --nav-h:       64px;
}

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

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Scroll animations ───────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-delay="3"] { transition-delay: 0.24s; }
[data-animate][data-delay="4"] { transition-delay: 0.32s; }
[data-animate][data-delay="5"] { transition-delay: 0.40s; }

/* ── Navigation ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.nav-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-name span { color: var(--blue); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--blue); font-weight: 600; }

/* ── Page wrapper ────────────────────────────────────────── */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px,7vw,80px) 28px clamp(72px,10vw,120px);
}

/* ── Section labels ──────────────────────────────────────── */
.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: clamp(40px,6vw,64px) 0;
}

/* ── Hero (home) ─────────────────────────────────────────── */
.hero {
  display: flex;
  gap: clamp(36px,5vw,64px);
  align-items: stretch;
  padding-top: 0;
}

.hero-photo-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 270px;
  align-self: stretch;
}

.hero-photo-col img {
  width: 270px;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hero-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  width: 100%;
}

.hero-stats .stat { align-items: center; }

.hero-stats .stat-num { font-size: 1.6rem; }

.hero-stats .stat-label { font-size: 0.62rem; text-align: center; }

.hero-photo .photo-placeholder {
  width: 180px;
  height: 220px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px dashed var(--blue-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.8;
}

.hero-text { flex: 1; padding-top: 0; }

/* Animate name letters in */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
  animation: heroFadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-role {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
  animation: heroFadeUp 0.7s 0.1s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-bio {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 28px;
  animation: heroFadeUp 0.7s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-bio p + p { margin-top: 12px; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: heroFadeUp 0.7s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 8px;
  transition: all 0.18s;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

.btn-primary,
.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-primary:hover,
.btn-ghost:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 2px 14px rgba(37,99,235,0.25);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Publication list ────────────────────────────────────── */
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 1px; }

.pub-item {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pub-item:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pub-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  font-style: normal;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -.01em;
  margin-bottom: 5px;
}

.pub-title a { color: inherit; text-decoration: none; }
.pub-title a:hover { color: var(--blue); }

.pub-meta {
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 10px;
}

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

.pub-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  transition: all 0.15s;
}

.pub-link:hover {
  color: var(--blue);
  border-color: var(--blue-mid);
  background: var(--blue-light);
  text-decoration: none;
}

.see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  transition: gap 0.2s;
}

.see-all:hover { gap: 8px; text-decoration: none; }

/* ── Year badge ──────────────────────────────────────────── */
.year-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

.year-group { margin-bottom: 44px; }
.year-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Page heading ────────────────────────────────────────── */
.page-heading { margin-bottom: clamp(36px,5vw,56px); }

.page-heading h1 {
  font-size: clamp(2rem,5vw,3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 12px;
}

.page-heading h1 em { font-style: normal; color: var(--blue); }

.page-heading p {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.65;
}

/* ── CV timeline ─────────────────────────────────────────── */
.tl-track {
  position: relative;
  margin-bottom: 52px;
}

/* The continuous vertical black line */
.tl-track::before {
  content: '';
  position: absolute;
  /* year col = 108px, dot col = 24px → dot center at 108+12=120px, offset by half line width (1px) */
  left: 119px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text);
}

.tl-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  /* align with content column: 108px year + 24px dot col + 20px body padding-left */
  padding-left: 152px;
  margin-top: 40px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.tl-section-label:first-child { margin-top: 0; }

.tl-entry {
  display: grid;
  grid-template-columns: 108px 24px 1fr;
  align-items: start;
  margin-bottom: 26px;
}

.tl-year {
  text-align: right;
  padding-right: 0;
  padding-top: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.tl-dot-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 5px;
  position: relative;
  z-index: 1;
}

.tl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.tl-body {
  padding-left: 20px;
  padding-bottom: 4px;
}

.tl-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.tl-body p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

@media (max-width: 580px) {
  /* Replace pixel-calculated line with one anchored to the dot column itself */
  .tl-track { overflow: hidden; }
  .tl-track::before { display: none; }
  .tl-dot-col::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -9999px;
    bottom: -9999px;
    width: 2px;
    background: var(--text);
    z-index: 0;
  }
  .tl-entry { grid-template-columns: 80px 24px 1fr; }
  .tl-section-label { padding-left: 118px; }
  .tl-year { font-size: 0.72rem; }
}

/* ── CV entries ──────────────────────────────────────────── */
.cv-section { margin-bottom: 52px; }
.cv-prior-text { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin-top: 8px; }

.cv-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 40px;
  margin-top: 16px;
}

.cv-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
}

.cv-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.cv-logo-lg {
  height: 100px;
}

.cv-logo-md {
  height: 60px;
}

.cv-logo-text-fallback {
  display: none;
}

.cv-logo-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.6;
}

.cv-entry {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.cv-entry:first-of-type { border-top: 1px solid var(--border); }

.cv-year {
  flex-shrink: 0;
  width: 108px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.cv-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.cv-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0;
}

.cv-body p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.cv-body p em { color: var(--blue); font-style: normal; font-weight: 500; }

/* ── Teaching ────────────────────────────────────────────── */
.course-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.course-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  background: #F0FAF4;
  color: #2D7A50;
}

.course-item {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.course-item:hover {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-sm);
}

.course-name { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.course-meta { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.contact-columns .contact-block {
  display: flex;
  flex-direction: column;
}

.profile-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-link-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s;
  flex: 1;
}

.profile-link-row:hover { text-decoration: none; }

.profile-link-row:hover .profile-link-name {
  color: var(--blue);
}

.profile-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 8px;
  color: var(--muted);
  transition: background 0.18s, color 0.18s;
}

.profile-link-row:hover .profile-icon {
  background: var(--blue-light);
  color: var(--blue);
}

.profile-link-name {
  color: var(--muted);
  transition: color 0.18s;
}

.profile-arrow {
  color: var(--blue);
  font-size: 0.85em;
}

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

.contact-block { margin-bottom: 44px; }

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.contact-row:first-child { border-top: 1px solid var(--border); }

.contact-label {
  width: 140px;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Hero decorative elements (home page) ────────────────── */
@keyframes floatBlob {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-18px) scale(1.04); }
}

.hero-wrap {
  position: relative;
  margin-bottom: clamp(24px,4vw,40px);
}

.hero { position: relative; z-index: 1; }

/* ── Stat strip ──────────────────────────────────────────── */
.stat-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px,6vw,60px);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: clamp(1.6rem,4vw,2.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.stat-num em { font-style: normal; color: var(--blue); }

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ── Research section card (home page) ───────────────────── */
.research-section {
  background: var(--bg-soft);
  border-radius: 20px;
  padding: clamp(28px,4vw,44px);
  border: 1px solid var(--border);
}

/* ── CV card wrapper ─────────────────────────────────────── */
.cv-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(10px,1.5vw,14px);
  margin-bottom: 16px;
}

.cv-card .cv-entry:last-of-type { border-bottom: none; }
.cv-card .cv-entry:first-of-type { border-top: none; }

/* ── CV dark CTA banner ──────────────────────────────────── */
.cv-cta {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: clamp(32px,5vw,52px) clamp(24px,4vw,48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: clamp(48px,7vw,80px);
  position: relative;
  overflow: hidden;
}

.cv-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.35) 0%, transparent 65%);
  pointer-events: none;
  animation: floatBlob 9s ease-in-out infinite alternate;
}

.cv-cta::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 80px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 65%);
  pointer-events: none;
  animation: floatBlob 7s 1s ease-in-out infinite alternate;
}

.cv-cta-text { position: relative; z-index: 1; }

.cv-cta-text h2 {
  font-size: clamp(1.3rem,3vw,1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}

.cv-cta-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.cv-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-white {
  background: #fff;
  color: var(--bg-dark);
  border: 1.5px solid #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-white:hover {
  background: #F1F5F9;
  border-color: #F1F5F9;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.2);
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Container / section helpers ────────────────────────── */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: clamp(48px,7vw,80px);
}

/* ── Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

/* ── Papers (research page) ──────────────────────────────── */
.papers { background: var(--color-bg); }

.papers__filter {
  display: flex;
  gap: 8px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-accent-md);
  color: var(--color-accent);
}

.filter-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.papers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.paper-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.paper-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.paper-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.paper-card:hover::before { transform: scaleX(1); }

.paper-card[data-hidden] { display: none; }

.paper-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.paper-card__venue {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--color-accent);
  flex: 1;
  min-width: 0;
}

.paper-card__year {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-subtle);
  letter-spacing: .04em;
}

.paper-card__type {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}

.hero-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
}

.hero-prior {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  margin-top: 12px;
  margin-bottom: 0;
}

.hero-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 100px;
}

.hero-tag--policy { background: #EEF4FF; color: #3B6CC8; }
.hero-tag--decarb { background: #EEF4FF; color: #3B6CC8; }
.hero-tag--geo    { background: #EEF4FF; color: #3B6CC8; }
.hero-tag--carbon { background: #EEF4FF; color: #3B6CC8; }

.paper-card__type--journal   { background: #EEF4FF; color: #3B6CC8; }
.paper-card__type--chapter   { background: #F0FAF4; color: #2D7A50; }
.paper-card__type--working   { background: #FFF7ED; color: #B45309; }
.paper-card__type--notebook  { background: #FDF4FF; color: #7E22CE; }

.paper-card__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  letter-spacing: -.01em;
}

.paper-card__abstract {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.paper-card__authors {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-subtle);
  margin-top: auto;
  padding-top: 4px;
}

.paper-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 6px;
  text-decoration: none;
  transition: gap var(--transition), opacity var(--transition);
}

.paper-card__link:hover { gap: 10px; opacity: .8; text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .papers__grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .hero { flex-direction: column; gap: 24px; }
  .hero-photo-col { width: 100%; }
  .hero-photo-col img { width: 100%; height: 220px; border-radius: 10px; }
  .cv-entry { grid-template-columns: 1fr; gap: 2px; }
  .nav-links a { padding: 5px 8px; font-size: 0.76rem; }
  .papers__grid { grid-template-columns: 1fr; }
}
