/* ============================================================
   Mitochondria Lab - Main Stylesheet
   ============================================================ */

/* Inter */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-v20-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* Noto Sans KR */
@font-face {
  font-family: 'Noto Sans KR';
  src: url('../fonts/noto-sans-kr-v39-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans KR';
  src: url('../fonts/noto-sans-kr-v39-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans KR';
  src: url('../fonts/noto-sans-kr-v39-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans KR';
  src: url('../fonts/noto-sans-kr-v39-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans KR';
  src: url('../fonts/noto-sans-kr-v39-latin-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --primary: #1a3a5c;
  --secondary: #0e7490;
  --accent: #f97316;
  --accent2: #10b981;
  --accent3: #8b5cf6;
  --light-bg: #f0f7ff;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --gradient1: linear-gradient(135deg, #1a3a5c 0%, #0e7490 100%);
  --gradient2: linear-gradient(135deg, #0e7490 0%, #10b981 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Inter', 'Noto Sans KR', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: #f8fafc;
  line-height: 1.6;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: var(--gradient1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-text .lab-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.nav-logo-text .lab-sub {
  font-size: 0.68rem;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--secondary);
  background: var(--light-bg);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  overflow: hidden;
  z-index: 100;
}
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.15s;
}
.dropdown-menu a:hover {
  background: var(--light-bg);
  color: var(--secondary);
  padding-left: 1.4rem;
}
.nav-menu > li:hover .dropdown-menu { display: block; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  z-index: 999;
  padding: 2rem;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  font-size: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.sub { padding-left: 1.5rem; color: var(--text-mid); font-size: 0.9rem; }

/* ---- PAGE WRAPPER ---- */
.page-wrapper { padding-top: 68px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(14,116,144,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(16,185,129,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0f2744 0%, #1a3a5c 50%, #0e4f64 100%);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}
.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.4);
  color: #fb923c;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.hero-text h1 span { color: #38bdf8; }
.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
}
.hero-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}

/* Mito Animation */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mito-diagram {
  position: relative;
  width: 380px;
  height: 380px;
}
.mito-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: radial-gradient(circle at 35% 35%, #38bdf8, #0e7490);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 0 40px rgba(56,189,248,0.4), 0 0 80px rgba(56,189,248,0.15);
  animation: pulse 3s ease-in-out infinite;
  z-index: 3;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 40px rgba(56,189,248,0.4); }
  50% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 60px rgba(56,189,248,0.6); }
}
.mito-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.2);
}
.mito-ring:nth-child(2) { width: 180px; height: 180px; animation: spin 20s linear infinite; }
.mito-ring:nth-child(3) { width: 260px; height: 260px; animation: spin 30s linear infinite reverse; border-style: dashed; }
.mito-ring:nth-child(4) { width: 340px; height: 340px; animation: spin 40s linear infinite; border-color: rgba(16,185,129,0.15); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.orbit-node {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: white;
  box-shadow: var(--shadow-md);
  animation: counter-spin-1 20s linear infinite;
  z-index: 2;
}
@keyframes counter-spin-1 { to { transform: rotate(-360deg); } }

.orbit-node-1 { background: linear-gradient(135deg, #f97316, #dc2626); top: -10px; left: 50%; margin-left: -26px; }
.orbit-node-2 { background: linear-gradient(135deg, #10b981, #059669); bottom: -10px; left: 50%; margin-left: -26px; }
.orbit-node-3 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); left: -10px; top: 50%; margin-top: -26px; }
.orbit-node-4 { background: linear-gradient(135deg, #0ea5e9, #0e7490); right: -10px; top: 50%; margin-top: -26px; }

/* ---- SECTION COMMON ---- */
.section {
  padding: 5rem 2rem;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .tag {
  display: inline-block;
  background: var(--light-bg);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 1rem;
  border: 1px solid rgba(14,116,144,0.2);
}
.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}
.divider {
  width: 60px; height: 4px;
  background: var(--gradient2);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ---- RESEARCH AREA - INFOGRAPHIC ---- */
.research-intro { background: white; }

.research-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.rp-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.rp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.rp-card-header {
  padding: 2rem 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.rp-card-header::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.rp-card-1 .rp-card-header { background: linear-gradient(135deg, #1a3a5c 0%, #0e7490 100%); }
.rp-card-2 .rp-card-header { background: linear-gradient(135deg, #065f46 0%, #10b981 100%); }
.rp-card-3 .rp-card-header { background: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 100%); }

.rp-icon-wrap {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.18);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}
.rp-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.rp-card-header .rp-subtitle {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.rp-card-body {
  background: white;
  padding: 1.5rem 1.8rem;
}
.rp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.rp-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1.5px solid;
}
.rp-card-1 .rp-tag { color: #0e7490; border-color: #bae6fd; background: #f0f9ff; }
.rp-card-2 .rp-tag { color: #059669; border-color: #a7f3d0; background: #f0fdf4; }
.rp-card-3 .rp-tag { color: #7c3aed; border-color: #ddd6fe; background: #faf5ff; }

.rp-items { list-style: none; }
.rp-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-mid);
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
  line-height: 1.5;
}
.rp-items li:last-child { border-bottom: none; }
.rp-items li::before {
  content: '▸';
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.7rem;
}
.rp-card-1 .rp-items li::before { color: #0e7490; }
.rp-card-2 .rp-items li::before { color: #10b981; }
.rp-card-3 .rp-items li::before { color: #8b5cf6; }

/* Pipeline Infographic */
.pipeline-section {
  background: var(--light-bg);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 1rem;
}
.pipeline-section h3 {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
}
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.pipeline-step {
  flex: 1;
  min-width: 130px;
  max-width: 180px;
  text-align: center;
  padding: 1.2rem 0.8rem;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s;
}
.pipeline-step:hover { transform: translateY(-3px); }
.pipeline-step .step-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.pipeline-step .step-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.pipeline-step .step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.pipeline-step .step-desc {
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.4;
}
.pipeline-arrow {
  font-size: 1.4rem;
  color: var(--secondary);
  padding: 0 0.3rem;
  flex-shrink: 0;
}

/* Modality Banner */
.modality-banner {
  background: var(--gradient1);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.modality-banner .banner-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}
.modality-banner .banner-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 480px;
}
.modality-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex-shrink: 0;
}
.modality-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.modality-pill:hover { background: rgba(255,255,255,0.22); }

/* ---- LATEST NEWS ---- */
.news-section { background: #f8fafc; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.news-card-top {
  height: 6px;
}
.news-type-paper { background: linear-gradient(90deg, #0e7490, #38bdf8); }
.news-type-award { background: linear-gradient(90deg, #f97316, #fbbf24); }
.news-type-news  { background: linear-gradient(90deg, #10b981, #34d399); }
.news-card-body { padding: 1.4rem 1.5rem; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.news-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.news-badge.paper { background: #e0f2fe; color: #0e7490; }
.news-badge.award { background: #fff7ed; color: #ea580c; }
.news-badge.news  { background: #dcfce7; color: #059669; }
.news-date { font-size: 0.75rem; color: var(--text-light); }
.news-card-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.news-card-body p { font-size: 0.8rem; color: var(--text-mid); line-height: 1.5; }

/* ---- FOOTER ---- */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand .lab-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.7; }
.footer-col h5 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #38bdf8; }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--gradient1);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  position: relative; z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.8rem;
  position: relative; z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.breadcrumb a:hover { color: white; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .research-platform-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .mito-diagram { width: 280px; height: 280px; }
  .mito-core { width: 90px; height: 90px; font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .research-platform-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .modality-banner { flex-direction: column; gap: 1.5rem; padding: 2rem; }
  .pipeline-flow { gap: 0; }
  .pipeline-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-visual { display: none; }
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Research Page ===== */
.research-area-section {
  padding: 4rem 2rem;
}
.research-area-section:nth-child(even) { background: #f8fafc; }
.research-area-section:nth-child(odd)  { background: white; }

.area-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.area-inner.reverse { direction: rtl; }
.area-inner.reverse > * { direction: ltr; }

.area-label-col { position: sticky; top: 100px; }
.area-num {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.12;
}
.area-1 .area-num { color: #0e7490; }
.area-2 .area-num { color: #10b981; }
.area-3 .area-num { color: #8b5cf6; }

.area-icon-big {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}
.area-label-col h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}
.area-en {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}
.area-tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.atag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
}
.area-1 .atag { background: #e0f2fe; color: #0e7490; }
.area-2 .atag { background: #dcfce7; color: #059669; }
.area-3 .atag { background: #ede9fe; color: #7c3aed; }

.area-content-col { }

.topic-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  align-items: start;
}
.topic-card:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }

.topic-icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.area-1 .topic-icon-box { background: #e0f2fe; }
.area-2 .topic-icon-box { background: #dcfce7; }
.area-3 .topic-icon-box { background: #ede9fe; }

.topic-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.topic-content p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.topic-content .topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.6rem;
}
.topic-content .topic-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.area-1 .topic-tags span { background: #f0f9ff; color: #0284c7; }
.area-2 .topic-tags span { background: #f0fdf4; color: #16a34a; }
.area-3 .topic-tags span { background: #faf5ff; color: #7c3aed; }

/* Collaboration / funding */
.collab-section {
  background: var(--primary);
  padding: 4rem 2rem;
  text-align: center;
}
.collab-inner { max-width: 900px; margin: 0 auto; }
.collab-inner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.6rem;
}
.collab-inner > p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
}
.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.funding-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1rem;
  text-align: left;
}
.funding-card .fc-year {
  font-size: 0.72rem;
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}
.funding-card .fc-title {
  font-size: 0.82rem;
  color: white;
  font-weight: 600;
  line-height: 1.4;
}
.funding-card .fc-org {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .area-inner { grid-template-columns: 1fr; }
  .area-inner.reverse { direction: ltr; }
  .area-label-col { position: static; }
  .funding-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .funding-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Members Page ===== */
.members-section { padding: 4rem 2rem; }
.members-section:nth-child(even) { background: #f8fafc; }
.members-section:nth-child(odd)  { background: white; }
.members-inner { max-width: 1100px; margin: 0 auto; }

.members-group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.members-group-header .gh-icon { font-size: 1.8rem; }
.members-group-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.gh-count {
  background: var(--light-bg);
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 99px;
  border: 1px solid rgba(14,116,144,0.15);
}

/* ---- PROFESSOR CARD ---- */
.professor-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.prof-photo-side {
  background: var(--gradient1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.prof-avatar {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 4px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.8rem;
  margin-bottom: 1.2rem;
}
.prof-photo-side .pf-name { font-size: 1.15rem; font-weight: 700; color: white; margin-bottom: 0.2rem; }
.prof-photo-side .pf-en  { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-bottom: 0.2rem; }
.prof-photo-side .pf-title { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

.prof-info { padding: 2rem 2.2rem; }
.prof-info h3 { font-size: 1.4rem; font-weight: 800; color: var(--primary); margin-bottom: 0.2rem; }
.prof-info .pf-subtitle { font-size: 0.88rem; color: var(--secondary); font-weight: 600; margin-bottom: 1.5rem; }

.info-row {
  display: flex; gap: 0.8rem; align-items: flex-start;
  margin-bottom: 0.6rem; font-size: 0.86rem;
}
.ir-icon { width: 18px; color: var(--secondary); flex-shrink: 0; margin-top: 3px; }
.ir-text { color: var(--text-mid); line-height: 1.6; }
.ir-text strong { color: var(--text-dark); }
.ir-text a { color: var(--secondary); text-decoration: none; }
.ir-text a:hover { text-decoration: underline; }

.career-list { list-style: none; margin: 0; }
.career-list li {
  font-size: 0.82rem;
  color: var(--text-mid);
  padding: 0.3rem 0;
  border-bottom: 1px dashed var(--border);
  line-height: 1.5;
}
.career-list li:last-child { border-bottom: none; }
.career-list li .c-year { color: var(--secondary); font-weight: 700; font-size: 0.78rem; margin-right: 0.5rem; }

.prof-keywords { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.prof-keywords span {
  background: var(--light-bg); color: var(--secondary);
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 99px;
  border: 1px solid rgba(14,116,144,0.2);
}

/* ---- RESEARCH PROFESSOR CARD (detailed) ---- */
.rp-detailed-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
}
.rp-detailed-card:hover { box-shadow: var(--shadow-md); }

.rp-left {
  padding: 2rem 1.5rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  text-align: center;
  border-right: 1px solid var(--border);
}
.rp-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  border: 3px solid var(--border);
}
.rp-av-1 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.rp-av-2 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.rp-av-3 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }

.rp-left h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.1rem; }
.rp-left .rp-en { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.6rem; }
.rp-role-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
  margin-bottom: 0.5rem;
}
.rp-role-1 { background: #e0f2fe; color: #0e7490; }
.rp-role-2 { background: #fef3c7; color: #b45309; }
.rp-left .rp-email {
  font-size: 0.72rem; color: var(--secondary);
  text-decoration: none; display: block; margin-top: 0.3rem;
}
.rp-left .rp-email:hover { text-decoration: underline; }

.rp-right { padding: 1.8rem 2rem; }
.rp-right .rp-position {
  font-size: 0.82rem; font-weight: 700; color: var(--secondary);
  margin-bottom: 0.8rem;
}
.rp-right .rp-research {
  font-size: 0.83rem; color: var(--text-mid); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.rp-right .rp-research::before { content: '🔬'; }

.project-list { list-style: none; margin: 0; }
.project-list li {
  font-size: 0.78rem; color: var(--text-mid);
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.project-list li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--secondary);
  font-size: 0.65rem;
  top: 0.3rem;
}
.project-list li .proj-period {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
  margin-right: 0.3rem;
}

/* ---- MEMBER GRID ---- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.4rem;
}
.member-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mc-top { height: 4px; }
.mc-phd { background: linear-gradient(90deg, #ffffff, #ffffff); }
.mc-msc { background: linear-gradient(90deg, #ffffff, #ffffff); }
.mc-ug  { background: linear-gradient(90deg, #ffffff, #ffffff); }

.mc-avatar-wrap { padding: 1.3rem 1rem 0.6rem; }
.mc-avatar {
  width: 72px; height: 72px;
  border-radius: 50%; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; border: 2px solid var(--border);
}
.mc-phd-av { background: #e0f2fe; }
.mc-msc-av { background: #dcfce7; }
.mc-ug-av  { background: #ede9fe; }

.mc-info { padding: 0 1.2rem 1.4rem; }
.mc-info h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.1rem; }
.mc-info .m-en { font-size: 0.75rem; color: var(--text-light); margin-bottom: 0.5rem; }
.m-role-badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 9px; border-radius: 99px; margin-bottom: 0.5rem;
}
.mc-phd .m-role-badge { background: #e0f2fe; color: #0e7490; }
.mc-msc .m-role-badge { background: #dcfce7; color: #059669; }
.mc-ug  .m-role-badge { background: #ede9fe; color: #7c3aed; }

.mc-info .m-research { font-size: 0.78rem; color: var(--text-mid); line-height: 1.5; }
.mc-info .m-year    { font-size: 0.72rem; color: var(--text-light); margin-top: 0.4rem; }
.mc-info .m-dept    { font-size: 0.72rem; color: var(--text-light); margin-top: 0.1rem; }
.mc-info .m-email {
  font-size: 0.72rem; color: var(--secondary);
  display: block; margin-top: 0.5rem;
  text-decoration: none;
}
.mc-info .m-email:hover { text-decoration: underline; }

.alumni-note {
  text-align: center; padding: 1.8rem;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  color: var(--text-mid); font-size: 0.88rem;
  margin-top: 1.5rem;
  border: 1px dashed rgba(14,116,144,0.25);
}

@media (max-width: 900px) {
  .professor-card,
  .rp-detailed-card { grid-template-columns: 1fr; }
  .rp-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    gap: 1.2rem;
    text-align: left;
    padding: 1.5rem;
  }
  .rp-left .rp-avatar { margin-bottom: 0; flex-shrink: 0; }
}
@media (max-width: 600px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-left { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 400px) {
  .member-grid { grid-template-columns: 1fr; }
}

/* ===== Publications Page ===== */
.pub-wrapper { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; }

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-box {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-box .sn {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  display: block;
  line-height: 1.2;
}
.stat-box .sl {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Filter bar */
.pub-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1.2rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  align-items: center;
}
.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-right: 0.3rem;
}
.filter-divider {
  width: 1px; height: 20px;
  background: var(--border);
  margin: 0 0.4rem;
}
.filter-btn {
  padding: 5px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--secondary); color: var(--secondary); }
.filter-btn.active { background: var(--secondary); border-color: var(--secondary); color: white; }

/* Search */
.pub-search-wrap {
  position: relative;
  margin-bottom: 2rem;
}
.pub-search-wrap input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  background: white;
}
.pub-search-wrap input:focus { border-color: var(--secondary); }
.pub-search-wrap .search-icon {
  position: absolute;
  left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
}
.search-count {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: auto;
  flex-shrink: 0;
}

/* Year group */
.year-group { margin-bottom: 2.5rem; }
.year-group.hidden { display: none; }
.year-label {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.year-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 22px;
  background: var(--gradient2);
  border-radius: 3px;
}
.year-paper-count {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--light-bg);
  color: var(--secondary);
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid rgba(14,116,144,0.15);
}

/* Pub item */
.pub-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.2rem 1.4rem;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.7rem;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.pub-item:hover {
  border-color: #bae6fd;
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}
.pub-item.hidden { display: none; }
.pub-num {
  width: 36px; height: 36px;
  background: var(--light-bg);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}
.pub-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.55;
  margin-bottom: 0.35rem;
}
.pub-title mark {
  background: #fef3c7;
  color: #92400e;
  border-radius: 2px;
  padding: 0 2px;
}
.pub-authors {
  font-size: 0.79rem;
  color: var(--text-mid);
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.pub-authors .pi { color: var(--secondary); font-weight: 700; }
.pub-journal {
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
}
.pub-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.pub-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.pub-badge.scie { background: #dcfce7; color: #15803d; }
.pub-badge.sci  { background: #dbeafe; color: #1d4ed8; }
.pub-badge.kci  { background: #fef3c7; color: #b45309; }
.pub-badge.featured { background: #fce7f3; color: #9d174d; }
.pub-badge.intl { background: #ede9fe; color: #6d28d9; }
.pub-badge.mito {
  background: #fef3c7;
  color: #b45309;
}

.year-label-gap {
  margin-top: 2rem;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  display: none;
}
.no-results.show { display: block; }

@media (max-width: 768px) {
  .pub-item { grid-template-columns: 1fr; }
  .pub-num { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Inline-style replacements ===== */
.career-section {
  margin-top: 1.2rem;
}

.career-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.career-title-icon {
  margin-right: 5px;
}

.m-note {
  font-size: 0.68rem;
}

.no-results-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.year-label-spaced {
  margin-top: 2rem;
}

.highlight-em {
  color: #7dd3fc;
  font-style: normal;
}