/* ═══════════════════════════════════════════════════════════════
   AMGL — Advanced Manufacturing nano-Geometry Lab
   Design: modern academic (VGI-lab-inspired), light/dark themes
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #fbfaf8;
  --bg-alt: #f4f2ee;
  --card: #ffffff;
  --border: #e7e4de;
  --text: #191a20;
  --text-soft: #4c4d55;
  --muted: #8b8c95;
  --accent: #3a6cd1;
  --accent-soft: #eaf1fc;
  --accent-line: #bdd1f3;
  --gold: #93c47d;
  --slate: #73929b;
  --blue: #6d9eeb;
  --serif: "Fraunces", "Noto Sans KR", serif;
  --sans: "Montserrat", "Noto Sans KR", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --nav-h: 62px;
  --shadow: 0 1px 3px rgba(20, 22, 35, 0.05), 0 8px 28px rgba(20, 22, 35, 0.06);
  --shadow-lift: 0 2px 6px rgba(20, 22, 35, 0.07), 0 16px 44px rgba(20, 22, 35, 0.12);
}

[data-theme="dark"] {
  --bg: #101116;
  --bg-alt: #15161d;
  --card: #1a1c24;
  --border: #2a2c37;
  --text: #eceaf0;
  --text-soft: #b8b7c2;
  --muted: #7d7e8a;
  --accent: #6d9eeb;
  --accent-soft: #1c2637;
  --accent-line: #35538a;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.4), 0 16px 44px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  transition: background 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo { color: var(--accent); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.brand-dot { color: var(--gold); }
.bl-a { color: var(--gold); }
.bl-m { color: var(--slate); }
.bl-g { color: var(--blue); }
.brand-sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.nav-links { margin-left: auto; display: flex; gap: 26px; }
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* transparent nav over hero */
body.has-hero .site-nav:not(.solid) .brand,
body.has-hero .site-nav:not(.solid) .brand-logo { color: #fff; }
body.has-hero .site-nav:not(.solid) .brand-sub { color: rgba(255, 255, 255, 0.65); }
body.has-hero .site-nav:not(.solid) .nav-links a { color: rgba(255, 255, 255, 0.78); }
body.has-hero .site-nav:not(.solid) .nav-links a:hover { color: #fff; }
body.has-hero .site-nav:not(.solid) .nav-links a.active { color: #fff; border-bottom-color: var(--gold); }
body.has-hero .site-nav:not(.solid) .theme-toggle { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.3); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span {
  width: 20px; height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.has-hero .site-nav:not(.solid) .nav-burger span { background: #fff; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, #0b1526 0%, #10233f 45%, #0d1b30 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.55) 0%, rgba(8, 12, 22, 0.35) 45%, rgba(8, 12, 22, 0.65) 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; padding: 0 24px; }
.hero-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(64px, 11vw, 132px);
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.35);
}
.hero-title .dot { color: var(--gold); }
.hero-tagline {
  margin-top: 18px;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
}
.hero-sub {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.02em;
}
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); transition: background 0.35s ease; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 42px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0.01em;
}
.section-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.pill-btn .arrow { transition: transform 0.2s ease; }
.pill-btn:hover .arrow { transform: translateX(3px); }
.center { text-align: center; }

/* ── About strip (home) ─────────────────────────────────────── */
.about-strip { padding: 84px 0 76px; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 48px;
  align-items: start;
}
.about-label {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  line-height: 1.25;
}
.about-label em {
  font-style: italic;
  color: var(--accent);
}
.about-text { color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.about-keywords {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  transition: background 0.35s ease, border-color 0.35s ease;
}

/* ── Publications (selected, home) ──────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.35s ease, border-color 0.35s ease;
}
.pub-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pub-index {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  line-height: 1.2;
}
.pub-index small { font-size: 12px; color: var(--muted); }
.pub-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
}
.badge.soft { background: var(--accent-soft); color: var(--accent); }
.badge.gold { background: #f6ecd7; color: #8a6414; }
[data-theme="dark"] .badge.gold { background: #35301f; color: #e8c97e; }
.pub-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17.5px;
  line-height: 1.45;
}
.pub-title a:hover { color: var(--accent); }
.pub-authors { margin-top: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.pub-authors strong { color: var(--text-soft); font-weight: 600; }
.pub-venue { margin-top: 5px; font-size: 13px; font-style: italic; font-family: var(--serif); color: var(--text-soft); }
.pub-links { margin-top: 9px; display: flex; gap: 14px; }
.pub-links a {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.pub-links a:hover { border-bottom-color: var(--accent); }

/* ── News ───────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 150px 1fr; gap: 36px; }
.news-year-col { position: sticky; top: 90px; align-self: start; }
.news-year {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
}
.news-count {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 22px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.news-item:first-child { padding-top: 2px; }
.news-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
  white-space: nowrap;
}
.news-text { color: var(--text-soft); line-height: 1.7; }
.news-text strong { color: var(--text); }
.news-text em { font-family: var(--serif); }
.news-item.hl .news-text strong { color: var(--accent); }
.news-more-hidden { display: none; }
.news-img {
  margin-top: 12px;
  max-width: 420px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── Research cards ─────────────────────────────────────────── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 18px;
}
.research-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}
.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.rc-head {
  position: relative;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}
.rc-head .rc-num {
  position: absolute;
  top: 10px; left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}
.rc-head svg { width: 44px; height: 44px; }
.rc-blue { background: linear-gradient(145deg, #33567e, #1d3a5f); }
.rc-gold { background: linear-gradient(145deg, #b18a3e, #8a6a2a); }
.rc-violet { background: linear-gradient(145deg, #5d5386, #423a66); }
.rc-teal { background: linear-gradient(145deg, #3d7a72, #29594f); }
.rc-rose { background: linear-gradient(145deg, #9c5560, #7a3b47); }
.rc-body { padding: 18px 18px 20px; flex: 1; }
.rc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.35;
  margin-bottom: 12px;
}
.rc-title a:hover { color: var(--accent); }
.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-desc { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* research page: full cards */
.research-full { display: flex; flex-direction: column; gap: 22px; }
.research-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.research-row .rr-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  padding: 30px 16px;
}
.rr-side .rc-num { position: absolute; top: 12px; left: 16px; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.75); }
.rr-side svg { width: 48px; height: 48px; }
.rr-body { padding: 28px 32px; }
.rr-title { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.rr-desc { color: var(--text-soft); font-size: 14.5px; line-height: 1.8; }
.rr-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }

/* ── Recruitment ────────────────────────────────────────────── */
.recruit-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 44px 48px 36px;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.recruit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.recruit-col { font-size: 13.5px; color: var(--text-soft); line-height: 1.85; }
.recruit-col.kr { border-left: 1px solid var(--border); padding-left: 44px; }
.recruit-col strong { color: var(--text); }
.recruit-foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.recruit-contact { display: flex; align-items: baseline; gap: 14px; }
.recruit-contact .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.recruit-contact .name { font-family: var(--serif); font-size: 18px; font-style: italic; }
.recruit-mail {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
}
.recruit-mail:hover { border-bottom-color: var(--accent); }

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-head { padding: calc(var(--nav-h) + 66px) 0 8px; }
.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 48px);
}
.page-intro { margin-top: 12px; max-width: 640px; color: var(--muted); font-size: 14.5px; }

/* ── Members ────────────────────────────────────────────────── */
.member-section { padding: 46px 0 10px; }
.member-section-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.prof-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.prof-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.prof-name { font-family: var(--serif); font-size: 27px; font-weight: 500; }
.prof-name .kr { font-family: var(--sans); font-size: 16px; color: var(--muted); margin-left: 10px; font-weight: 500; }
.prof-role { margin-top: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--accent); text-transform: uppercase; }
.prof-aff { font-size: 13px; color: var(--muted); margin-top: 2px; }
.prof-meta { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.prof-meta a {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid var(--accent-line); padding-bottom: 1px;
}
.prof-cols { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.prof-block h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.prof-block ul { list-style: none; }
.prof-block li {
  font-size: 12.8px;
  color: var(--text-soft);
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.55;
}
.prof-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 1.5px;
  background: var(--accent);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 18px;
}
.member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.35s ease, border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.member-photo { aspect-ratio: 3 / 4; background: var(--bg-alt); overflow: hidden; }
/* 사진 비율은 모두 3:4 (세로형). 비율이 다른 사진은 위쪽(얼굴) 기준으로 잘림 */
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member-avatar {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 40px;
  color: #fff;
}
.av-0 { background: linear-gradient(145deg, #33567e, #1d3a5f); }
.av-1 { background: linear-gradient(145deg, #b18a3e, #8a6a2a); }
.av-2 { background: linear-gradient(145deg, #5d5386, #423a66); }
.av-3 { background: linear-gradient(145deg, #3d7a72, #29594f); }
.av-4 { background: linear-gradient(145deg, #9c5560, #7a3b47); }
.member-body { padding: 16px 17px 15px; flex: 1; display: flex; flex-direction: column; }
.member-name { font-family: var(--serif); font-size: 16.5px; font-weight: 500; line-height: 1.3; }
.member-name .kr { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.member-role {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
/* 관심 분야 칸이 남는 공간을 채워서, 이메일·Since 줄이 카드 아래쪽에 나란히 맞춰짐 */
.member-interests { margin-top: 7px; font-size: 11.5px; color: var(--muted); line-height: 1.55; flex-grow: 1; }
.member-email {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-soft);
  display: block;
  overflow-wrap: anywhere;
}
.member-email:hover { color: var(--accent); }
.member-scholar {
  margin-top: 6px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
  align-self: flex-start;
}
.member-scholar:hover { border-bottom-color: var(--accent); }
.member-since {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.alumni-list { display: flex; flex-wrap: wrap; gap: 10px; }
.alumni-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-soft);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.alumni-chip strong { color: var(--text); font-weight: 600; }
.alumni-chip .note { color: var(--muted); font-size: 11.5px; margin-left: 6px; }

/* ── Publications page ──────────────────────────────────────── */
.pubs-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.pubs-toolbar .pill-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pub-year-block { margin-bottom: 12px; }
.pub-year-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 26px 0 14px;
}
.pub-year-head h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.pub-year-head .line { flex: 1; height: 1px; background: var(--border); }
.pub-entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
}
.pub-entry:last-child { border-bottom: none; }
.pub-entry .num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 5px;
}
.pub-entry .pe-title { font-family: var(--serif); font-size: 16.5px; font-weight: 500; line-height: 1.45; }
.pub-entry .pe-title a:hover { color: var(--accent); }
.pub-entry .pe-authors { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.pub-entry .pe-authors strong { color: var(--text-soft); font-weight: 600; }
.au { white-space: nowrap; }
.au-mark { font-size: 0.72em; line-height: 0; margin-left: 1px; color: var(--accent); font-weight: 600; }
.pubs-legend { margin-top: 12px; font-size: 12px; color: var(--muted); }
.pubs-legend strong { color: var(--text-soft); font-weight: 600; }
.pub-entry .pe-venue { margin-top: 4px; font-style: italic; font-family: var(--serif); font-size: 13px; color: var(--text-soft); }
.pub-entry .pe-links { margin-top: 8px; display: flex; gap: 14px; align-items: center; }
.pub-entry .pe-links a {
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid var(--accent-line); padding-bottom: 1px;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 26px;
  align-items: stretch;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
  transition: background 0.35s ease, border-color 0.35s ease;
}
.contact-row { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row .value { font-size: 14.5px; color: var(--text); line-height: 1.6; }
.contact-row .value a { color: var(--accent); font-weight: 600; }
.contact-row .value.small { font-size: 13px; color: var(--text-soft); }
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 380px;
  box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 48px;
  text-align: center;
  background: var(--bg);
  transition: background 0.35s ease;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-mark { color: var(--accent); margin-bottom: 8px; }
.footer-dept { font-size: 13px; color: var(--text-soft); }
.footer-addr { font-size: 11.5px; color: var(--muted); max-width: 480px; }
.footer-copy { margin-top: 10px; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* ── Reveal animation ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid, .recruit-cols, .prof-cols, .contact-grid { grid-template-columns: 1fr; }
  .recruit-col.kr { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 30px; }
  .prof-card { grid-template-columns: 1fr; }
  .prof-photo { max-width: 240px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-year-col { position: static; display: flex; align-items: baseline; gap: 14px; }
  .research-row { grid-template-columns: 1fr; }
  .research-row .rr-side { flex-direction: row; padding: 18px; justify-content: flex-start; padding-left: 56px; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); right: 0; left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 10px 28px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text) !important; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-burger { display: flex; }
  .recruit-card { padding: 30px 24px; }
  .pub-item { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .pub-entry { grid-template-columns: 1fr; gap: 6px; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .section { padding: 64px 0; }
}
