/* ============================================================
 * AutoML Lab — 스타일시트
 * 학생 여러분: 이 파일은 수정할 필요 없습니다. data/*.yml 만 수정하세요.
 * ============================================================ */

/* ---------- 토큰 ---------- */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-raise: #f6f8fc;
  --card: #ffffff;
  --card-tint: rgba(37, 99, 235, 0.05);
  --card-border: rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 6px 20px -14px rgba(15, 23, 42, 0.25);
  --accent: #2563eb;
  --accent2: #0ea5e9;
  --teal: #0d9488;
  --amber: #d97706;
  --gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 52%, #0ea5e9 100%);
  --text: #0f172a;
  --text-dim: #5b6577;
  --font: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --radius: 16px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 리셋 ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 배경 분위기 — 은은한 라이트 웨이시 + 그레인 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 18% -5%, rgba(37, 99, 235, 0.07), transparent 62%),
    radial-gradient(ellipse 55% 40% at 85% 12%, rgba(14, 165, 233, 0.06), transparent 62%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(13, 148, 136, 0.04), transparent 62%),
    var(--bg);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(37, 99, 235, 0.18); }

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

img { max-width: 100%; display: block; }

.dim { color: var(--text-dim); }
.small { font-size: 0.85em; }
.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 파티클 캔버스 ---------- */

#neural-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 캔버스 위 콘텐츠 */
#navbar, #scroll-progress, header, main, footer { position: relative; z-index: 1; }

/* ---------- 스크롤 진행바 ---------- */

#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 0;
  background: var(--gradient);
  z-index: 101;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}

/* ---------- 내비게이션 ---------- */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--card-border);
  box-shadow: 0 6px 24px -18px rgba(15, 23, 42, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo:hover { text-decoration: none; }
.nav-logo em { font-style: normal; color: var(--accent); }
.logo-mark { width: 26px; height: 26px; }
.logo-mark circle { fill: url(#lg); fill: var(--accent); }
.logo-mark path { stroke: var(--accent2); }

#nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  list-style: none;
}
#nav-menu a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}
#nav-menu a:hover, #nav-menu a.active { color: var(--text); text-decoration: none; }
#nav-menu a.nav-cta {
  color: #fff;
  background: var(--gradient);
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.45);
  transition: box-shadow 0.25s, transform 0.25s;
}
#nav-menu a.nav-cta:hover { box-shadow: 0 6px 20px -4px rgba(37, 99, 235, 0.6); transform: translateY(-1px); }

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
#nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */

#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 60px;
  position: relative;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 18px;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-title {
  font-size: clamp(3.2rem, 11vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-tagline {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 700;
  margin-top: 18px;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-typing {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  color: var(--text-dim);
  margin-top: 10px;
  min-height: 1.8em;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}
#typing-target { color: var(--teal); font-weight: 700; }
.cursor { color: var(--teal); animation: blink 1s step-end infinite; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 22px -8px rgba(37, 99, 235, 0.65);
}
.btn-primary:hover { box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.75); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(37, 99, 235, 0.45); color: var(--accent); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.hero-stats {
  display: flex;
  gap: clamp(22px, 6vw, 64px);
  margin-top: 58px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s var(--ease) 0.55s both;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-num {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-num::after { content: '+'; font-size: 0.6em; vertical-align: super; }
.stat-label { font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.06em; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(15, 23, 42, 0.18);
  border-radius: 999px;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollHint 1.8s ease-in-out infinite;
}

/* ---------- 섹션 공통 ---------- */

section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(70px, 12vh, 130px) clamp(18px, 4vw, 40px);
}

.section-head { margin-bottom: 46px; }
.section-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-kicker::before { content: '// '; color: var(--text-dim); }
.section-head h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-desc { margin-top: 14px; color: var(--text-dim); max-width: 640px; }

/* ---------- 카드 공통 ---------- */

.research-card, .member-card, .project-card, .join-card, .prof-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

/* ---------- Research ---------- */

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.research-card {
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
}
.research-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0.75;
}
.research-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--card-accent) 40%, transparent);
  box-shadow: 0 16px 34px -18px color-mix(in srgb, var(--card-accent) 70%, transparent);
}
.research-icon { font-size: 1.9rem; margin-bottom: 14px; }
.research-card h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; }
.research-en {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--card-accent, var(--accent));
  margin: 3px 0 12px;
}
.research-card p:last-child { font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Professor ---------- */

.prof-card {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 4vw, 46px);
  align-items: flex-start;
}
.prof-photo {
  width: clamp(120px, 16vw, 170px);
  aspect-ratio: 1;
  border-radius: 20px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 900;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 14px 34px -14px rgba(37, 99, 235, 0.55);
}
.prof-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.prof-info { flex: 1; }
.prof-info h3 { font-size: 1.5rem; font-weight: 800; }
.prof-en { font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim); font-weight: 400; margin-left: 6px; }
.prof-title { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin: 4px 0 22px; }
.prof-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 36px;
}
.prof-columns h4 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--card-border);
}
.prof-columns h4:not(:first-child) { margin-top: 22px; }
.prof-columns ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prof-columns li { font-size: 0.92rem; }

/* ---------- Members ---------- */

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.member-card {
  padding: 28px 22px;
  text-align: center;
}
.member-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 34px -18px rgba(37, 99, 235, 0.45);
}
.avatar, .member-photo {
  width: 84px; height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 212) 78% 55%), hsl(calc(var(--h, 212) + 35) 70% 48%));
  box-shadow: 0 8px 20px -8px hsl(var(--h, 212) 78% 45% / 0.6);
}
.member-photo { object-fit: cover; object-position: center 30%; box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.35); }
.member-card h3 { font-size: 1.05rem; font-weight: 800; }
.member-en { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--text-dim); font-weight: 400; margin-top: 2px; }
.member-role { font-size: 0.82rem; color: var(--accent); font-weight: 700; margin-top: 6px; }
.member-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.chip {
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  background: rgba(15, 23, 42, 0.035);
}
.member-links { margin-top: 14px; display: flex; gap: 12px; justify-content: center; }
.member-links a { color: var(--text-dim); font-size: 1rem; transition: color 0.2s; display: inline-flex; }
.member-links a:hover { color: var(--accent); text-decoration: none; }

.recruit-card {
  border-style: dashed;
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: none;
  color: inherit;
  display: block;
}
.recruit-card:hover { text-decoration: none; border-color: var(--accent); }
.recruit-avatar { background: rgba(37, 99, 235, 0.07); color: var(--accent); border: 2px dashed rgba(37, 99, 235, 0.3); box-shadow: none; }
.recruit-hint { font-size: 0.8rem; color: var(--teal); margin-top: 12px; font-weight: 600; }

/* ---------- Publications ---------- */

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-btn {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(37, 99, 235, 0.4); }
.filter-btn.active {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.6);
}
.filter-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  opacity: 0.75;
  margin-left: 4px;
}

.pub-year-header {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 38px 0 16px;
}
.pub-year-group:first-child .pub-year-header { margin-top: 0; }
.pub-year-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.14), transparent);
}

.pub-item {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s;
  position: relative;
}
.pub-item:hover { background: var(--card-tint); border-color: var(--card-border); }
.pub-item + .pub-item { margin-top: 6px; }
.pub-highlight {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent 70%);
  border-left: 3px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
}
.pub-badges { display: flex; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }

.badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2.5px 10px;
  border-radius: 999px;
}
.badge-journal    { background: rgba(37, 99, 235, 0.10);   color: #1d4ed8; }
.badge-conference { background: rgba(124, 58, 237, 0.10);  color: #6d28d9; }
.badge-domestic   { background: rgba(13, 148, 136, 0.11);  color: #0f766e; }
.badge-patent     { background: rgba(217, 119, 6, 0.12);   color: #b45309; }
.badge-star       { background: rgba(217, 119, 6, 0.14);   color: #a16207; }
.badge-active     { background: rgba(13, 148, 136, 0.11);  color: #0f766e; display: inline-flex; align-items: center; gap: 6px; }
.badge-done       { background: rgba(15, 23, 42, 0.06);    color: var(--text-dim); }

.pub-title { font-size: 1rem; font-weight: 700; line-height: 1.45; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent); }
.pub-authors { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }
.pub-authors strong { color: var(--text); font-weight: 700; }
.pub-venue { font-size: 0.82rem; color: var(--accent); font-style: italic; margin-top: 2px; }
.pub-empty { padding: 30px 0; }

/* ---------- Projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.project-card { padding: 26px 24px; }
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 34px -18px rgba(37, 99, 235, 0.42);
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}
.project-period { font-family: var(--mono); font-size: 0.75rem; }
.project-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.45; }
.project-desc { font-size: 0.9rem; color: var(--text-dim); margin-top: 10px; }
.project-funder {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}
.project-funder::before { content: '🏛 '; }

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ---------- News ---------- */

.news-timeline {
  position: relative;
  padding-left: 30px;
  max-width: 720px;
}
.news-timeline::before {
  content: '';
  position: absolute;
  left: 14px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2), transparent);
  opacity: 0.45;
}
.news-item {
  position: relative;
  padding: 0 0 30px 26px;
}
.news-dot {
  position: absolute;
  left: -30px; top: -2px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-raise);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  z-index: 1;
}
.news-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.news-body p { font-size: 0.95rem; margin-top: 2px; }

/* ---------- Join ---------- */

#join .section-head { text-align: center; margin-left: auto; margin-right: auto; }
#join .section-desc { margin-left: auto; margin-right: auto; }

.lab-snap {
  width: min(400px, 82vw);
  margin: 0 auto 54px;
  padding: 12px 12px 14px;
  background: var(--bg-raise);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  rotate: -2deg;
  box-shadow: 0 20px 46px -22px rgba(15, 23, 42, 0.45);
  transition: rotate 0.4s var(--ease), scale 0.4s var(--ease), box-shadow 0.4s;
}
.lab-snap:hover {
  rotate: 0deg;
  scale: 1.02;
  box-shadow: 0 28px 60px -22px rgba(15, 23, 42, 0.5);
}
.lab-snap img { border-radius: 8px; }
.lab-snap figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 10px;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}
.join-card { padding: 30px 26px; }
.join-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 34px -18px rgba(37, 99, 235, 0.42);
}
.join-card.featured {
  border-color: rgba(37, 99, 235, 0.32);
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.07), rgba(14, 165, 233, 0.05));
  box-shadow: 0 14px 34px -18px rgba(37, 99, 235, 0.5);
}
.join-card h3 { font-size: 1.2rem; font-weight: 800; }
.join-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  margin: 6px 0 16px;
  letter-spacing: 0.1em;
}
.join-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.join-card li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.join-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.join-contact {
  text-align: center;
  padding: 44px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(37, 99, 235, 0.09), transparent),
    var(--bg-raise);
}
.join-contact h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.join-contact p { color: var(--text-dim); margin-bottom: 24px; }
.join-contact strong { color: var(--text); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--card-border);
  padding: 46px clamp(18px, 4vw, 40px) 30px;
  background: rgba(246, 248, 252, 0.85);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}
.footer-logo { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.footer-logo em { font-style: normal; color: var(--accent); }
.footer-copy {
  max-width: 1120px;
  margin: 26px auto 0;
  font-size: 0.78rem;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

/* ---------- 데이터 오류 박스 ---------- */

.data-error {
  grid-column: 1 / -1;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: rgba(217, 119, 6, 0.07);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.data-error code {
  font-family: var(--mono);
  background: rgba(217, 119, 6, 0.14);
  padding: 1px 7px;
  border-radius: 6px;
  color: #b45309;
}

/* ---------- 리빌 애니메이션 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(13, 148, 136, 0); }
}
@keyframes scrollHint {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- 반응형 ---------- */

@media (max-width: 860px) {
  #nav-toggle { display: flex; }
  #nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 12px 30px -22px rgba(15, 23, 42, 0.6);
    padding: 10px 0 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  #nav-menu.open { transform: none; opacity: 1; visibility: visible; }
  #nav-menu li { text-align: center; }
  #nav-menu a { display: block; padding: 13px 20px; font-size: 1rem; }
  #nav-menu a.nav-cta { margin: 10px 40px 0; }
  #nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  #nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .prof-card { flex-direction: column; align-items: center; text-align: center; }
  .prof-columns { text-align: left; }
  .hero-stats { gap: 28px; }
}

@media (max-width: 480px) {
  .members-grid { grid-template-columns: 1fr 1fr; }
  .member-card { padding: 20px 12px; }
  .avatar, .member-photo { width: 64px; height: 64px; font-size: 1.5rem; }
}

/* ---------- 모션 최소화 ---------- */

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