/* ============================================================
   AXIS Design Lab — style.css
   Precision-instrument dark theme; the light theme is a hybrid
   that keeps the nav, hero, and footer on the dark palette
   ============================================================ */

:root,
[data-theme="light"] .nav,
[data-theme="light"] .hero,
[data-theme="light"] .footer {
  --accent: #ff8a3d;
  --accent-soft: rgba(255, 138, 61, 0.14);
  --accent-2: #5ba8ff;
  --accent-2-soft: rgba(91, 168, 255, 0.13);
  --gold: #e8b34a;
  --btn-text: #14100c;

  --bg0: #0b0d10;
  --bg1: #0f1216;
  --bg2: #14181d;
  --bg3: #1a1f26;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f0ea;
  --text-2: #b9b4a8;
  --text-3: #8d8779;
  --glow: rgba(255, 138, 61, 0.35);
  --nav-bg: rgba(11, 13, 16, 0.78);
  --card-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.65);

  --font-display: 'Space Grotesk', 'Noto Sans KR', 'IBM Plex Sans', sans-serif;
  --font-body: 'IBM Plex Sans', 'Noto Sans KR', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --pad-x: clamp(18px, 4vw, 44px);
  --maxw: 1200px;
}

[data-theme="light"] {
  --bg0: #faf9f5;
  --bg1: #f5f3ee;
  --bg2: #efede6;
  --bg3: #e7e4db;
  --line: rgba(24, 26, 27, 0.1);
  --line-strong: rgba(24, 26, 27, 0.18);
  --text: #181a1b;
  --text-2: #4b4740;
  --text-3: #6e6858;
  --accent: #b93b09;
  --accent-soft: rgba(185, 59, 9, 0.12);
  --glow: rgba(185, 59, 9, 0.24);
  --nav-bg: rgba(250, 249, 245, 0.82);
  --card-shadow: 0 16px 40px -24px rgba(24, 26, 27, 0.28);
  --accent-2: #1f5cb8;
  --accent-2-soft: rgba(31, 92, 184, 0.11);
  --gold: #7d5a1a;
  --btn-text: #ffffff;
}

/* the hero owns no background in the full-dark theme (body shows through),
   so the hybrid light theme must paint it explicitly; color is re-declared
   because descendants otherwise inherit the light value computed on body */
[data-theme="light"] .hero,
[data-theme="light"] .footer {
  background: var(--bg0);
  color: var(--text);
}
[data-theme="light"] .footer { background: var(--bg1); }

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}
body.menu-open { overflow: hidden; }

::selection { background: var(--accent); color: var(--btn-text); }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--btn-text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--pad-x);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, height 0.25s ease;
}
.nav.scrolled { height: 60px; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}
.chip-mark { width: 34px; height: 34px; color: var(--accent); flex: 0 0 auto; }
.chip-mark.lg { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-mono); font-weight: 600; font-size: 14.5px; letter-spacing: 0.18em; }
.brand-sub { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.24em; color: var(--text-3); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  padding: 9px 13px;
  border-radius: 6px;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(12deg); }
.theme-toggle svg { width: 18px; height: 18px; }

.lang-toggle {
  height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang-toggle:hover { color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
}
.menu-toggle span {
  display: block;
  width: 16px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 130px var(--pad-x) 90px;
}
#scope { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 45%, black 30%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 8px 18px;
  background: color-mix(in srgb, var(--bg0) 55%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 30px;
  text-wrap: balance;
}
.x-mark { color: var(--accent); text-shadow: 0 0 34px var(--glow); }

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: -0.005em;
  color: var(--text-2);
  max-width: 46ch;
  margin-top: 26px;
}
.hero-desc {
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  color: var(--text-3);
  max-width: 58ch;
  margin-top: 16px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 38px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--btn-text);
  box-shadow: 0 8px 28px -10px var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--glow); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: color-mix(in srgb, var(--bg0) 40%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 8px 16px;
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 44px;
  border: 1.5px solid var(--line-strong);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-hint-line {
  width: 2px; height: 9px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(14px); opacity: 0.15; }
}

/* ---------- sections ---------- */
section { position: relative; }
.mission, .research, .publications, .professor, .members { padding: clamp(80px, 10vw, 130px) 0; }
.research { background: var(--bg1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.professor { background: var(--bg1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--accent); }
.eyebrow-idx { color: var(--text-3); }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-lede {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: var(--text-2);
  max-width: 64ch;
  margin-top: 20px;
}

.mission-body p {
  font-size: clamp(16.5px, 1.8vw, 19px);
  color: var(--text-2);
  max-width: 68ch;
  line-height: 1.75;
}

/* ---------- recruit banner ---------- */
.recruit-banner {
  margin-top: clamp(40px, 5vw, 60px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 160% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--bg2);
  box-shadow: var(--card-shadow);
}
.recruit-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.recruit-desc { color: var(--text-2); max-width: 56ch; }
.recruit-desc strong { color: var(--text); }
.recruit-desc a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  transition: opacity 0.2s ease;
}
.recruit-desc a:hover { opacity: 0.8; }

/* ---------- research themes ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 20px;
}
.theme-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  padding: clamp(24px, 3vw, 32px);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.theme-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.85;
}
.theme-card:nth-child(even)::before { background: var(--accent-2); }
.theme-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 110% at 15% 0%, var(--accent-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.theme-card:nth-child(even)::after { background: radial-gradient(90% 110% at 15% 0%, var(--accent-2-soft), transparent 55%); }
.theme-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--card-shadow); }
.theme-card:hover::after { opacity: 1; }

.theme-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.theme-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.theme-tag.alt { color: var(--accent-2); }
.theme-idx {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  color: var(--text-3);
  opacity: 0.85;
}
.theme-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.005em;
  margin: 12px 0 12px;
}
.theme-body { color: var(--text-2); font-size: 15.5px; line-height: 1.66; }
.theme-focus {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}
.theme-focus b {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}

/* ---------- publications ---------- */
.pub-note { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-3); margin-top: 18px; }
.pub-note b {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-right: 7px;
}
.ast { color: var(--accent); font-style: normal; }

.pub-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pub-filter {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.pub-filter .count { color: var(--text-3); margin-left: 5px; }
.pub-filter:hover { color: var(--text); border-color: var(--accent); }
.pub-filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--btn-text);
}
.pub-filter.is-active .count { color: inherit; opacity: 0.75; }

.pub-year-group {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(14px, 3vw, 34px);
  padding: 30px 0 6px;
  border-top: 1px solid var(--line);
}
.pub-year-group.is-empty { display: none; }
.pub-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--accent);
  position: sticky;
  top: 84px;
  align-self: start;
  line-height: 1;
  padding-top: 4px;
}

.pub {
  padding: 18px 14px;
  margin: 0 -14px;
  border-radius: 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.pub:hover { background: var(--bg2); }
.pub:last-child { border-bottom: none; }
.pub.is-hidden { display: none; }

.pub-meta { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 138, 61, 0.55);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 3.5px 9px;
  white-space: nowrap;
}
.badge.conf {
  color: var(--accent-2);
  border-color: rgba(91, 168, 255, 0.55);
  border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
  background: var(--accent-2-soft);
}
.badge.flagship {
  color: var(--gold);
  border-color: rgba(232, 179, 74, 0.65);
  border-color: color-mix(in srgb, var(--gold) 65%, transparent);
  background: rgba(232, 179, 74, 0.14);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}
.pub-authors { font-size: 14px; color: var(--text-3); flex: 1 1 auto; min-width: 55%; }

.pub-title { margin: 9px 0 6px; }
.pub-title a, .pub-title span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
}
.pub-title a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s ease;
}
.pub-title a:hover { color: var(--accent); background-size: 100% 1.5px; }
.pub-cite { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }

/* ---------- professor ---------- */
.prof-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(30px, 4.5vw, 64px);
  align-items: start;
}
.prof-photo {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg2);
  position: relative;
  box-shadow: var(--card-shadow);
}
.prof-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prof-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
  overflow: hidden;
}
.prof-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.prof-row:last-child { border-bottom: none; }
.prof-row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 3px;
}
.prof-row dd { font-family: var(--font-mono); font-size: 14px; word-break: break-word; }
.prof-row dd a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color 0.2s ease, border-color 0.2s ease; }
.prof-row dd a:hover { color: var(--accent); border-color: var(--accent); }

.prof-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.01em;
}
.prof-kr { color: var(--text-3); font-weight: 400; font-size: 0.55em; margin-left: 8px; }
.prof-role { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.03em; color: var(--accent); margin-top: 10px; }
.prof-dept { color: var(--text-2); margin-top: 5px; }

.prof-block { margin-top: 44px; }
.block-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 6px;
}
.members .block-label { margin-top: 40px; margin-bottom: 20px; }
.members .section-head + .block-label { margin-top: 0; }

.timeline { list-style: none; position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 14px; bottom: 14px;
  width: 1.5px;
  background: var(--line-strong);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 175px) 1fr;
  gap: 16px;
  padding: 15px 0;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 24px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg1);
  border: 2px solid var(--accent);
}
.tl-when { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-3); padding-top: 3px; white-space: nowrap; }
.tl-what strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.005em;
}
.tl-what { color: var(--text-2); font-size: 15px; }

.interest-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 14px; }
.interest-list li {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 8px 16px;
  background: var(--bg2);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.interest-list li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- members ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.member-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
  padding: 22px 20px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.member-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--card-shadow); }
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 11px;
  object-fit: cover;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 138, 61, 0.4);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  margin-bottom: 14px;
}
.member-card:nth-child(even) .avatar {
  color: var(--accent-2);
  background: var(--accent-2-soft);
  border-color: rgba(91, 168, 255, 0.4);
  border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
}
.member-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.005em;
}
.member-kr { color: var(--text-3); font-size: 14px; margin-top: 2px; }
.member-role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.member-mail {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  margin-top: 8px;
  word-break: break-all;
  transition: color 0.2s ease;
}
.member-mail:hover { color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg1);
  padding: clamp(48px, 6vw, 68px) 0 34px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
}
.footer-brand { max-width: 38ch; }
.footer-brand .chip-mark { margin-bottom: 14px; }
.footer-brand p { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em; color: var(--text-3); line-height: 1.7; }
.footer-head {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p:not(.footer-head) {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  margin-bottom: 9px;
}
.footer-col a:hover { color: var(--accent); }
/* inside the footer flex grid: last full-width row on desktop, but back in
   DOM order (Contact -> Location -> Navigate) when the columns stack */
.footer-map { flex-basis: 100%; order: 10; margin-top: 8px; }
.footer-map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg2);
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.to-top { color: var(--text-2); text-decoration: none; transition: color 0.2s ease; }
.to-top:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 82vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 92px 26px 26px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg1);
    border-left: 1px solid var(--line-strong);
    box-shadow: -30px 0 70px -30px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    visibility: hidden; /* keep closed drawer out of the tab order */
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 90;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; transition: transform 0.3s ease; }
  .nav-link { font-size: 15px; width: 100%; padding: 13px 12px; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--accent); }
  .menu-toggle { display: inline-flex; }
  /* keep the theme/menu buttons clickable above the slide-in drawer */
  .nav-actions { position: relative; z-index: 95; }
  .theme-toggle, .menu-toggle { width: 44px; height: 44px; }
  .lang-toggle { height: 44px; }

  .prof-layout { grid-template-columns: 1fr; }
  .prof-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: start; }
  .prof-photo { max-width: 300px; }
  .prof-card { margin-top: 0; }

  .pub-year-group { grid-template-columns: 1fr; gap: 6px; padding-top: 24px; }
  .pub-year { position: static; font-size: 22px; }

  .timeline li { grid-template-columns: 1fr; gap: 3px; padding: 13px 0; }
  .timeline li::before { top: 20px; }
}

@media (max-height: 480px) and (max-width: 1000px) {
  .nav-links { padding-top: 74px; }
  .nav-link { padding: 10px 12px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 110px; }
  .hero-eyebrow { font-size: 11.5px; letter-spacing: 0.18em; padding: 8px 14px; }
  .hero-chips { gap: 8px; }
  .chip { font-size: 12px; padding: 7px 12px; }
  .pub-filter { padding: 11px 18px; }
  .recruit-banner { flex-direction: column; align-items: flex-start; }
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .footer-map { order: 0; margin-top: 0; }
  .footer-map iframe { height: 220px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
