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

:root {
  --primary:       #141413;
  --primary-soft:  #30302e;
  --accent:        #8c1515;
  --accent-light:  #f5eaea;
  --accent-mid:    #a83030;
  --cream:         #eae8de;
  --cream-dark:    #dedad0;
  --text:          #141413;
  --text-muted:    #5a5955;
  --border:        rgba(20, 20, 19, 0.14);
  --border-strong: rgba(20, 20, 19, 0.28);
  --bg:            #eae8de;
  --bg-card:       #f3f1e9;
  --bg-white:      #faf9f5;
  --radius:        10px;
  --shadow:        0 1px 3px rgba(20,20,19,0.07);
  --shadow-md:     0 4px 20px rgba(20,20,19,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(234, 232, 222, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(20,20,19,0.08);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 1.9rem);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav-name {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: clamp(0.9rem, 1.6vw, 1.35rem);
  list-style: none;
  flex: 1;
}
.nav-links a {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-active { color: var(--accent) !important; font-weight: 600 !important; }

/* ===== SECTIONS ===== */
section { padding: 6rem 2rem; }
.container { max-width: 1000px; margin: 0 auto; }
.section-alt { background: var(--bg-card); }

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2.5rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* ===== HERO ===== */
.hero {
  padding-top: 8rem;
  padding-bottom: 6rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.hero-left { min-width: 0; }

/* ===== TIMELINE ===== */
.hero-timeline { padding-top: 0.4rem; }

.timeline-heading { margin-bottom: 1.2rem; }

.tl-heading-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.tl-icon {
  font-size: 0.7rem;
  vertical-align: middle;
  opacity: 0.75;
}

.timeline {
  position: relative;
}

/* Centered gray track */
.tl-track {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  overflow: hidden;
}

/* Animated red fill */
.tl-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: var(--accent);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each item: 3-column grid — content | dot | content */
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 10px 1fr;
  gap: 0 0.6rem;
  align-items: start;
  margin-bottom: 1.4rem;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.35rem 0.35rem;
  transition: background 0.18s;
  opacity: 0;
  transform: translateY(6px);
}
.tl-item.tl-item--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.18s;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-item:hover { background: rgba(20,20,19,0.04); }
.tl-item:focus { outline: none; background: rgba(20,20,19,0.04); }

/* ── Left items (projects): body LEFT, dot CENTER ── */
.tl-item.tl-left .tl-body {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}
.tl-item.tl-left .tl-dot {
  grid-column: 2;
  grid-row: 1;
}

/* ── Right items (papers): dot CENTER, body RIGHT ── */
.tl-item.tl-right .tl-dot {
  grid-column: 2;
  grid-row: 1;
}
.tl-item.tl-right .tl-body {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
}

.tl-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
  margin-bottom: 0.1rem;
}
.tl-item--active .tl-date { color: var(--accent); font-weight: 600; }

/* Dot */
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1.5px solid var(--border-strong);
  margin-top: 0.22rem;
  justify-self: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  z-index: 1;
}
.tl-item:hover .tl-dot {
  transform: scale(1.35);
  border-color: var(--accent-mid);
}
.tl-item--active .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--accent-light);
  animation: tl-pulse 2s ease-in-out infinite;
}

@keyframes tl-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-light); }
  50%       { box-shadow: 0 0 0 6px rgba(140,21,21,0.08); }
}

.tl-body { min-width: 0; }

.tl-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.18rem;
  transition: color 0.2s;
}
.tl-item--active .tl-title { color: var(--accent); }
.tl-item:hover:not(.tl-item--active) .tl-title { color: var(--primary-soft); }

.tl-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.tl-item--active .tl-desc,
.tl-item:hover .tl-desc {
  max-height: 5rem;
  opacity: 1;
}

@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-timeline { border-top: 1px solid var(--border); padding-top: 2rem; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.hero-inner h1 {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
  max-width: 760px;
}
.hero-ku {
  color: var(--accent);
  font-style: normal;
}
.hero-inner h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 2.4rem;
  font-weight: 400;
}
.hero-subtitle strong { color: var(--text); font-weight: 500; }

.hero-links { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ===== INSTITUTIONS ===== */
.institutions-section {
  background: var(--bg);
}

.institutions-intro {
  max-width: 640px;
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.institution-subsection + .institution-subsection {
  margin-top: 2rem;
}

.institution-subsection-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.institution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.institution-card {
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.institution-card--anchor {
  background: var(--accent-light);
  border-color: rgba(140,21,21,0.18);
}

.institution-card--partner {
  background: var(--bg-white);
}

.institution-logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.65rem;
  background: rgba(250, 249, 245, 0.9);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.institution-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.institution-logo--square {
  max-height: 48px;
}

.institution-logo--icon {
  max-height: 44px;
}

.institution-role {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.institution-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.institution-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  letter-spacing: 0.01em;
  transition: background 0.15s, opacity 0.15s;
}
.btn:hover { background: var(--accent-mid); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { background: var(--cream-dark); text-decoration: none; color: var(--primary); }

/* hero divider + stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== RESEARCH ===== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}
.research-card {
  background: var(--bg-card);
  padding: 1.8rem 1.8rem 1.6rem;
  transition: background 0.15s;
}
.research-card:hover { background: var(--bg-white); }
.research-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.research-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.research-card p {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== TEAM ===== */
.team-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.team-section-label:first-of-type { margin-top: 0; }
.team-faculty-link {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.team-faculty-link a { color: var(--accent); }

.team-section-label--primary {
  font-size: 0.8rem;
  color: var(--accent);
  border-bottom-color: var(--accent);
  border-bottom-width: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.team-grid.team-grid--wide {
  grid-template-columns: repeat(2, 1fr);
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s, background 0.15s;
}
.team-card:hover { background: var(--bg-white); box-shadow: var(--shadow-md); }

.team-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  background: var(--cream-dark);
}
.team-card-pi .team-avatar {
  width: 150px;
  height: 150px;
}

.team-avatar-placeholder {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid var(--border);
  font-family: 'Source Serif 4', Georgia, serif;
}

.team-info { min-width: 0; }
.team-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  color: var(--primary);
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.team-name-ko {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.team-role-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.team-role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--cream-dark);
  color: var(--text-muted);
  border-radius: 3px;
  padding: 0.12rem 0.5rem;
  margin-bottom: 0.4rem;
}
.team-role-group .team-role { margin-bottom: 0; }
.team-role.role-pi   { background: var(--accent); color: #fff; }
.team-role.role-prof { background: var(--primary); color: rgba(255,255,255,0.85); }
.team-role.role-lead { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(140,21,21,0.18); }
.team-role.role-founder { background: #e9dec0; color: #6a4b17; border: 1px solid rgba(106,75,23,0.18); }

.team-links { display: flex; gap: 0.6rem; margin-top: 0.45rem; flex-wrap: wrap; }
.team-links a {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}
.team-links a:hover { color: var(--accent); }
.team-links a::before { content: '↗ '; font-size: 0.65rem; }

.team-affil {
  font-size: 0.77rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.4;
}

/* PI wide card */
.team-card-pi {
  grid-column: 1 / -1;
  padding: 1.8rem 2rem;
  gap: 1.5rem;
  background: var(--bg-card);
  border-color: var(--border);
}
.team-card-pi .team-avatar-placeholder {
  width: 150px;
  height: 150px;
  font-size: 1.1rem;
}
.team-card-pi .team-name { font-size: clamp(1rem, 2vw, 1.2rem); }

/* ===== TIMELINE EXPAND ===== */
.tl-hint {
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 0.25rem;
  opacity: 0.75;
}
.tl-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s, margin-top 0.25s;
  margin-top: 0;
}
.tl-expanded .tl-expand {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.5rem;
}
.tl-expand-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}
.tl-expand-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tl-expand-list li {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.18rem 0 0.18rem 0.6rem;
  border-left: 2px solid var(--accent-light);
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

/* ===== PUB SUBSECTION ===== */
.pub-subsection-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.pub-subsubsection-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1rem 0 0.6rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--accent);
}
.venue-domestic { background: #fef9ec; color: #92620a; }
.pub-tag-oral {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* ===== PUBLICATIONS ===== */
.pub-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pub-card {
  background: var(--bg-card);
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.pub-card:last-child { border-bottom: none; }
.pub-card:hover { background: var(--bg-white); }

.pub-venue {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.6rem;
}
.venue-acl    { background: #dbeafe; color: #1d4ed8; }
.venue-emnlp  { background: #d1fae5; color: #065f46; }
.venue-naacl  { background: #e0e7ff; color: #3730a3; }
.venue-cvpr   { background: #fce7f3; color: #9d174d; }
.venue-arxiv  { background: #fef3c7; color: #92400e; }
.venue-coling { background: #f3e8ff; color: #6b21a8; }
.venue-other  { background: var(--cream-dark); color: var(--text-muted); }

.pub-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--primary);
  margin-bottom: 0.35rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.pub-authors { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.pub-authors strong { color: var(--text); font-weight: 600; }
.pub-desc { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.55rem; line-height: 1.6; }
.pub-links { display: flex; gap: 1rem; }
.pub-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* ===== PROJECTS ===== */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.2rem;
}

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.15s, box-shadow 0.2s;
}
.proj-card:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.proj-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.proj-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--cream-dark);
  color: var(--text-muted);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}
.proj-tag--funded { background: #fef3c7; color: #92400e; }
.proj-tag--research { background: var(--accent-light); color: var(--accent); }

.proj-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.proj-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.proj-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.proj-based-on {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.proj-based-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.proj-paper-tag {
  font-size: 0.71rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(140,21,21,0.15);
  border-radius: 4px;
  padding: 0.12rem 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}
.proj-paper-tag:hover { background: rgba(140,21,21,0.12); text-decoration: none; }

.proj-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.proj-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.proj-award {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

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

/* ===== CONTACT ===== */
.contact-inner { text-align: center; }
.contact-inner p {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-links a { color: var(--primary); }
.contact-links a:hover { color: var(--accent); text-decoration: none; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1.8rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--cream);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 680px) {
  .hero-inner h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .hero-stats { gap: 1.8rem; }
  .team-grid.team-grid--wide { grid-template-columns: 1fr; }
  .team-card {
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.15rem 1.1rem;
  }
  .team-avatar {
    width: 96px;
    height: 96px;
  }
  .team-info { width: 100%; }
  .team-links { gap: 0.45rem 0.7rem; }
  .team-card-pi { flex-direction: column; gap: 1rem; }
  .research-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.25rem; }
  .nav-inner { padding: 0 1.25rem; }
}
