/* ---------- tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --surface: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;
  --text-faint: #6b7280;
  --border: #e5e7eb;
  --accent: #1e40af;
  --accent-strong: #1e3a8a;
  --accent-soft: #eef2ff;
  --notice-bg: #fff8e6;
  --notice-border: #f3d58a;
  --primary-bg: #1e3a8a;
  --sun-display: none;
  --moon-display: block;
  --radius: 12px;
  --maxw: 1080px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --bg-soft: #151b23;
    --surface: #161b22;
    --text: #e6edf3;
    --text-muted: #b1bac4;
    --text-faint: #8b949e;
    --border: #2d333b;
    --accent: #8ab4ff;
    --accent-strong: #a9c6ff;
    --accent-soft: #1b2540;
    --notice-bg: #2a2410;
    --notice-border: #5c4a17;
    --primary-bg: #1e40af;
    --sun-display: block;
    --moon-display: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117;
  --bg-soft: #151b23;
  --surface: #161b22;
  --text: #e6edf3;
  --text-muted: #b1bac4;
  --text-faint: #8b949e;
  --border: #2d333b;
  --accent: #8ab4ff;
  --accent-strong: #a9c6ff;
  --accent-soft: #1b2540;
  --notice-bg: #2a2410;
  --notice-border: #5c4a17;
  --primary-bg: #1e40af;
  --sun-display: block;
  --moon-display: none;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand { margin-right: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.brand-text { font-weight: 700; font-size: 14px; line-height: 1.2; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--text-muted); font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-toggle, .nav-toggle-label { display: none; }
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; margin-left: 4px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-faint); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: var(--sun-display); }
.theme-toggle .icon-moon { display: var(--moon-display); }

@media (max-width: 820px) {
  .theme-toggle { order: 1; }
  .nav-toggle-label { order: 2; }
  .nav-toggle-label {
    display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; border-radius: 8px;
  }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--text); position: relative;
  }
  .nav-toggle-label span::before { position: absolute; top: -6px; }
  .nav-toggle-label span::after { position: absolute; top: 6px; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 20px; font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: 18px; color: var(--text-muted); max-width: 680px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-split h1 { font-size: clamp(36px, 5vw, 52px); }
.hero-visual { margin: 0; }
.hero-visual img {
  width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--border);
  box-shadow: 0 24px 48px -28px rgb(15 23 42 / 0.35);
}
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { max-width: 560px; }
}
.btn {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 15px; background: var(--surface);
}
.btn:hover { text-decoration: none; border-color: var(--text-faint); }
.btn-primary { background: var(--primary-bg); border-color: var(--primary-bg); color: #fff; }
.btn-primary:hover { border-color: var(--primary-bg); filter: brightness(1.1); }

/* ---------- notice ---------- */
.notice {
  background: var(--notice-bg); border: 1px solid var(--notice-border); border-radius: var(--radius);
  padding: 20px 24px; margin: 8px 0 24px;
}
.notice p { margin: 0 0 8px; color: var(--text-muted); }
.notice .notice-title { font-weight: 700; color: var(--text); font-size: 17px; }
.notice-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 0 !important; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 40px 0 8px; }
.section h2, .page h2 { font-size: 26px; margin: 0 0 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head a { font-weight: 600; font-size: 15px; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card, .project {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card h3, .project h3 { margin: 8px 0 10px; font-size: 19px; }
.card p, .project p { color: var(--text-muted); margin: 0 0 12px; }
.card-icon { font-size: 28px; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.project + .project { margin-top: 16px; }
.project-meta { display: flex; align-items: center; gap: 10px; color: var(--text-faint); font-size: 14px; }
.project-ko { font-size: 15px; color: var(--text-faint) !important; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.badge-muted { background: var(--bg-soft); color: var(--text-muted); border: 1px solid var(--border); }
.project-people { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 12px; font-size: 14px; }
.project-people dt { color: var(--text-faint); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.project-people dd { margin: 2px 0 0; color: var(--text); font-weight: 600; }

/* ---------- page ---------- */
.page { padding: 56px 0 24px; }
.page-header { margin-bottom: 36px; }
.page-header h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 48px; padding-top: 8px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.page .prose:has(.member-group, .pub-section, .contact-grid, .project) { max-width: none; }
.subnav a {
  font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted); background: var(--surface);
}
.subnav a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.page-with-toc { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 56px; align-items: start; }
.page-with-toc .prose > h2:first-child { margin-top: 0; padding-top: 0; }
.toc-aside { position: sticky; top: 92px; }
.toc-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); }
.toc-side ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc-side a {
  display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--text-muted);
}
.toc-side a:hover { color: var(--text); text-decoration: none; }
.toc-side a[aria-current] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
@media (max-width: 960px) {
  .page-with-toc { grid-template-columns: 1fr; gap: 24px; }
  .toc-aside { position: static; order: -1; }
  .toc-side ol { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .toc-side a {
    margin: 0; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); font-size: 13px;
  }
  .toc-side a[aria-current] { border-color: var(--border); color: var(--text-muted); font-weight: 400; }
}

/* ---------- content blocks (join / meetings) ---------- */
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.glance-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .glance, .glance-3 { grid-template-columns: 1fr; } }
.glance-item { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.glance-item p { margin: 0; font-size: 15px; line-height: 1.5; }
.prose .glance-item .glance-label { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

.principles, .steps { list-style: none; padding: 0 !important; margin: 0 0 16px; counter-reset: item; }
.principles li, .steps li {
  counter-increment: item; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--border);
}
.principles li + li, .steps li + li { margin-top: 0 !important; }
.principles li:last-child, .steps li:last-child { border-bottom: 0; }
.principles li::before, .steps li::before {
  content: counter(item); position: absolute; left: 0; top: 14px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; background: var(--accent-soft); color: var(--accent);
}
.principles li > strong, .steps li > strong, .checklist li > strong { display: block; color: var(--text); margin-bottom: 2px; }
.principles span strong, .steps span strong, .checklist span strong { color: var(--text); }
.principles span, .steps span, .checklist span { color: var(--text-muted); }

.checklist { list-style: none; padding: 0 !important; margin: 0 0 16px; }
.checklist li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--border); }
.checklist li + li { margin-top: 0 !important; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 18px; height: 18px;
  border: 2px solid var(--accent); border-radius: 5px;
}

.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: 13px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.prose td { color: var(--text-muted); }
.prose td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .prose td:first-child { white-space: normal; } }

.prose pre {
  margin: 8px 0 16px; padding: 16px 18px; overflow-x: auto; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--border); font-size: 14px; line-height: 1.6;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose pre code { color: var(--text); }

/* ---------- profile page ---------- */
.profile-header { display: flex; gap: 32px; align-items: flex-start; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.avatar.avatar-xl { width: 180px; height: 180px; }
.avatar-initials.avatar-xl { font-size: 52px; }
.profile-id { min-width: 0; }
.profile-id h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.profile-id p { margin: 0 0 6px; }
.profile-role { color: var(--accent); font-weight: 600; font-size: 17px; }
.profile-affiliation { color: var(--text-muted); }
.profile-interests { color: var(--text); }
@media (max-width: 640px) {
  .profile-header { flex-direction: column; gap: 20px; }
  .avatar.avatar-xl { width: 128px; height: 128px; }
}
.profile-body section { margin-top: 8px; }
.profile .page-with-toc { margin-top: 32px; }
.profile-main { min-width: 0; }
.profile-body > section:first-child h2 { margin-top: 0; padding-top: 0; }
.profile-pubs { margin-top: 48px; }
.profile-pubs h2 .count { font-size: 15px; font-weight: 600; color: var(--text-faint); margin-left: 6px; }
.timeline { list-style: none; padding: 0 !important; margin: 0; }
.timeline li { display: grid; grid-template-columns: 172px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.timeline li + li { margin-top: 0 !important; }
.timeline li:last-child { border-bottom: 0; }
.timeline-when { color: var(--text-faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.timeline-what strong { display: block; color: var(--text); font-weight: 600; }
.timeline-what > span { display: block; color: var(--text-muted); font-size: 15px; }
.timeline-what > .timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.news-list li:last-child { border-bottom: 0; }
.news-list time { color: var(--text-faint); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 1px; }
.news-list p { margin: 0; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.news-icon { flex-shrink: 0; font-size: 18px; line-height: 1.5; }
.news-list em { color: var(--text); font-style: normal; font-weight: 600; }
@media (max-width: 640px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }

.news-year + .news-year { margin-top: 40px; }
.news-year h2 { font-size: 24px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.news-year h2 .count, .toc-count { font-size: 13px; font-weight: 600; color: var(--text-faint); margin-left: 4px; }
.news-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.news-timeline::before {
  content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--border);
}
.news-timeline li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 12px 0; }
.nt-dot {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; line-height: 1;
  background: var(--surface); border: 2px solid var(--border);
}
.nt-body { padding-top: 2px; min-width: 0; }
.nt-body time { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.nt-body p { margin: 0; color: var(--text-muted); }
.nt-body em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- members ---------- */
.member-group { margin-bottom: 48px; }
.member-group h2 { font-size: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .member-grid { grid-template-columns: 1fr; } }
.member { display: flex; gap: 20px; align-items: center; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); }
.member-grid-lg { grid-template-columns: 1fr; }
.member-grid-lg .member { padding: 24px; gap: 24px; }
.member-grid-lg .avatar { width: 140px; height: 140px; }
.member-grid-lg .member h3 { font-size: 20px; }
.member-grid-lg .member p { font-size: 15px; }
.member h3 a { color: inherit; }
.member h3 a:hover { color: var(--accent); }
/* whole faculty card links to the profile; inner links stay clickable above it */
.member.has-profile { position: relative; cursor: pointer; }
.member.has-profile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.member.has-profile .member-links a, .member.has-profile .profile-links a, .member.has-profile .member-email { position: relative; z-index: 1; }
.member.has-profile .member-email { cursor: text; }
.member.has-profile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.member.has-profile h3 a:focus-visible { outline: none; }
.member.has-profile:hover h3 a { color: var(--accent); }
.member.has-profile h3 a, .member.has-profile h3 a:hover { text-decoration: none; }
@media (max-width: 640px) {
  .member-grid-lg .member { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
  .member-grid-lg .avatar { width: 96px; height: 96px; }
}
.avatar-initials { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 28px; }
.member-grid-lg .avatar-initials { font-size: 40px; }
.member-info { min-width: 0; }
.member h3 { margin: 2px 0 2px; font-size: 17px; }
.member p { margin: 0 0 4px; font-size: 14px; }
.member-role { color: var(--accent) !important; font-weight: 600; }
.member-interests { color: var(--text-muted) !important; }
.member-email { color: var(--text-faint) !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px !important; }
.member-links { display: flex; gap: 12px; margin-top: 6px !important; font-weight: 600; }
.profile-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.profile-links a {
  font-size: 12px !important; font-weight: 600; line-height: 1; padding: 6px 9px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--text-muted); background: var(--bg);
}
.profile-links a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* ---------- publications ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.subnav span { color: var(--text-faint); margin-left: 4px; font-variant-numeric: tabular-nums; }
.pub-section { margin-bottom: 48px; }
.pub-section > h2 { font-size: 24px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.pub-year { display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.pub-year > h3 { margin: 18px 0 0; font-size: 18px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .pub-year { grid-template-columns: 1fr; gap: 0; }
  .pub-year > h3 { margin-top: 20px; }
}
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.pub:last-child { border-bottom: 0; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: 6px; } }
.pub-venue {
  align-self: start; justify-self: start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); line-height: 1.4;
}
.pub-body p { margin: 0; }
.pub-title { font-weight: 650; color: var(--text); font-size: 16px; }
.pub-authors { color: var(--text-muted); font-size: 15px; margin-top: 2px !important; }
.pub-authors strong { color: var(--text); font-weight: 650; }
.pub-note, .pub-detail { color: var(--text-faint); font-size: 14px; }
.pub-detail { font-style: italic; }
.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.pub-btn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); background: var(--surface);
}
.pub-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pub-btn:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.pub-btn-primary { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pub-btn-primary:hover { background: var(--primary-bg); border-color: var(--primary-bg); color: #fff; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 16px; }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.contact-card h3 { margin: 0 0 10px; font-size: 18px; }
.contact-card dl { display: grid; grid-template-columns: 70px 1fr; gap: 6px 12px; margin: 0; font-size: 15px; }
.contact-card dt { color: var(--text-faint); }
.contact-card dd { margin: 0; color: var(--text); }
.contact-address { color: var(--text-muted); margin: 4px 0 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- hover motion ---------- */
.card, .project, .member, .glance-item, .contact-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.card:hover, .project:hover, .member:hover, .glance-item:hover, .contact-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 8px 24px -12px rgb(15 23 42 / 0.25);
}
.member .avatar { transition: transform 220ms ease; }
.member:hover .avatar { transform: scale(1.04); }
.pub { transition: background-color 160ms ease; border-radius: 8px; }
.pub:hover { background: var(--bg-soft); }
.nt-dot { transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.nt-body { border-radius: 10px; margin: -6px 0 -6px -8px; padding: 8px 10px 8px 8px; transition: background-color 180ms ease, transform 180ms ease; }
.news-timeline li:hover .nt-dot {
  transform: scale(1.12); border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}
.news-timeline li:hover .nt-body { background: var(--bg-soft); transform: translateX(4px); }
.news-list li { transition: background-color 160ms ease, transform 160ms ease; border-radius: 8px; }
.news-list li:hover { background: var(--bg-soft); transform: translateX(4px); }
.news-list li:hover .news-icon { display: inline-block; transform: scale(1.15); }
.news-icon { transition: transform 180ms ease; }
@media (prefers-reduced-motion: reduce) {
  .card, .project, .member, .glance-item, .contact-card, .member .avatar, .pub, .nt-dot, .nt-body, .news-list li, .news-icon { transition: none; }
  .card:hover, .project:hover, .member:hover, .glance-item:hover, .contact-card:hover, .member:hover .avatar,
  .news-timeline li:hover .nt-dot, .news-timeline li:hover .nt-body, .news-list li:hover, .news-list li:hover .news-icon { transform: none; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; }
.footer-inner p { margin: 4px 0 0; color: var(--text-faint); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--text-muted); }
