/* =====================================================
   인체항노화표준연구원 — 메인 스타일시트 v2
   KIOM 스타일 참고: 밝은 배경 + 네이비/그린 포인트
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── 핵심 컬러 ── */
  --navy:      #1a3a5c;      /* KIOM 스타일 네이비 */
  --navy-d:    #0f2640;
  --navy-l:    #2e5a8e;
  --green:     #2e8b57;      /* 생명/건강 그린 */
  --green-l:   #3dab6c;
  --green-pale:#e8f5ee;
  --gold:      #c8993a;      /* 포인트 골드 */
  --red:       #c0392b;

  /* ── 그레이스케일 ── */
  --ink:       #1a1a2e;
  --ink2:      #2d3748;
  --muted:     #5a6a7e;
  --faint:     #94a3b8;
  --line:      #e2e8f0;
  --line-l:    #f1f5f9;
  --page:      #ffffff;
  --off:       #f7f9fc;
  --off2:      #eef2f7;

  /* ── 타이포 ── */
  --font:      'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  --serif:     'Noto Serif KR', serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul { list-style: none; }
img { max-width: 100%; }

/* ── Layout ─────────────────────────────────── */
.wrap   { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.narrow { max-width: 740px;  margin: 0 auto; padding: 0 2rem; }

.sec     { padding: 6rem 0; }
.sec-off { background: var(--off); }
.sec-navy { background: var(--navy); }
.sec-line { border-top: 1px solid var(--line); }

/* ── Section Header ─────────────────────────── */
.sec-head { text-align: center; margin-bottom: 3.5rem; }

.sec-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.sec-label.on-dark { color: #fff; background: rgba(255,255,255,0.15); }

.sec-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 1rem;
}
.sec-title.on-dark { color: #fff; }

.sec-title span {
  color: var(--green);
}

.sec-desc {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.85;
  text-align: center;
}
.sec-desc.on-dark { color: rgba(255,255,255,0.65); }

/* 구분선 데코 */
.sec-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.sec-deco span {
  display: block;
  height: 2px;
  border-radius: 1px;
}
.sec-deco span:nth-child(1) { width: 24px; background: var(--green); }
.sec-deco span:nth-child(2) { width: 8px;  background: var(--navy); opacity: 0.4; }
.sec-deco span:nth-child(3) { width: 4px;  background: var(--navy); opacity: 0.2; }

/* ── Reveal animation ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

.anim { animation: fadeUp 0.75s ease both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.22s; }
.d3 { animation-delay: 0.38s; }
.d4 { animation-delay: 0.54s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 7px;
  transition: all 0.22s;
  letter-spacing: -0.01em;
  border: 2px solid transparent;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,58,92,0.28);
}
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-l);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,139,87,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-outline-w {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-w:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 72px;
  transition: background 0.3s, box-shadow 0.3s;
  background: transparent;
}
#nav.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 4px 20px rgba(0,0,0,0.05);
}

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

/* 로고 */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-kr {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1;
  font-family: 'Noto Sans KR', sans-serif;
  transition: color 0.3s;
}
#nav.scrolled .logo-kr { color: var(--navy); }

/* 메뉴 */
.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0.2rem;
}
.nav-links a {
  font-size: 0.87rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 0.45rem 1rem;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  border-radius: 6px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--green-l);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
#nav.scrolled .nav-links a { color: var(--muted); }
#nav.scrolled .nav-links a:hover { color: var(--navy); background: var(--off); }
#nav.scrolled .nav-links a::after { background: var(--green); }

/* CTA */
.nav-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-cta {
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--green);
  padding: 0.6rem 1.4rem;
  border-radius: 7px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(46,139,87,0.3);
}
.nav-cta:hover {
  background: var(--green-l);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46,139,87,0.4);
}
#nav.scrolled .nav-cta { background: var(--navy); box-shadow: none; }
#nav.scrolled .nav-cta:hover { background: var(--navy-l) !important; }

/* 햄버거 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all 0.25s;
}
.hamburger span:last-child { width: 14px; }
#nav.scrolled .hamburger span { background: var(--navy); }

/* 모바일 메뉴 */
#mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--page);
  border-bottom: 2px solid var(--green);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 499;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
#mobile-nav.open { display: block; }
.mob-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 0;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
}
.mob-link::before { content: '›'; margin-right: 0.6rem; color: var(--green); font-weight: 700; }
.mob-link:hover { color: var(--navy); padding-left: 0.4rem; }
.mob-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  background: var(--navy);
  color: #fff !important;
  border-radius: 8px;
  padding: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  width: 100%;
}

/* ══════════════════════════════════════════════
   HERO — 밝은 배경 + 이미지/패턴 조합
══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, #0f2640 0%, #1a4a6e 45%, #1e6b50 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

/* ── Hero 슬라이드쇼 ──────────────────────────── */
/* 슬라이드 컨테이너 */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 개별 슬라이드 (배경 이미지 레이어) */
/* ★ 사진 추가 방법:
     1. public/static/ 폴더에 이미지 파일 저장
     2. index.tsx의 heroSlides 배열에 { url, label } 항목 추가
     끝. JS가 나머지를 자동 처리합니다.               */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  /* 켄번 효과 (천천히 줌인) */
  animation: kenburns 10s ease-in-out infinite alternate;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide.prev {
  opacity: 0;
}

@keyframes kenburns {
  from { transform: scale(1);    }
  to   { transform: scale(1.06); }
}

/* 슬라이드별 배경 이미지 — JS에서 inline style로 주입 */

/* 이미지 위 다크 오버레이 — 텍스트 가독성 확보 */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 25, 50, 0.80) 0%,
    rgba(15, 38, 64, 0.72) 50%,
    rgba(18, 60, 45, 0.68) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* 슬라이드 인디케이터 (하단 점) */
.hero-indicators {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.hero-dot.active {
  background: #5be0a0;
  border-color: #5be0a0;
  transform: scale(1.3);
}
.hero-dot:hover {
  background: rgba(255,255,255,0.7);
}

/* 슬라이드 좌우 화살표 */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow.prev-btn { left: 1.5rem; }
.hero-arrow.next-btn { right: 1.5rem; }

/* 슬라이드 레이블 (우측 하단) */
.hero-slide-label {
  position: absolute;
  bottom: 5.4rem;
  right: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  z-index: 4;
}

/* 대각선 패턴 오버레이 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 2;
}

/* 우측 흰색 사선 패널 */
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 42%;
  background: rgba(255,255,255,0.03);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.hero-bg-circle.c1 {
  width: 520px; height: 520px;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(46,139,87,0.12) 0%, transparent 65%);
}
.hero-bg-circle.c2 {
  width: 300px; height: 300px;
  left: -5%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 4rem 2rem 7rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5be0a0;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(0.8); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.hero-title em {
  font-style: normal;
  color: #5be0a0;
  display: inline-block;
  position: relative;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.9;
  margin-bottom: 2.75rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Hero 통계 */
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 1.5rem 0;
  max-width: 640px;
  backdrop-filter: blur(8px);
}
.hero-stat {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}
.hero-stat-num {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #5be0a0;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero-stat-unit {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-left: 2px;
}
.hero-stat-label {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.35rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.hero-stat-div {
  width: 1px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
  margin: 0.25rem 0;
}

/* 스크롤 힌트 */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; right: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 3;
}
.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(91,224,160,0.6), transparent);
  animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%,100% { opacity:0.4; transform:scaleY(1); }
  50% { opacity:1; transform:scaleY(1.25); }
}

/* 하단 페이드 (흰 배경으로 자연스럽게) */
.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--page) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* ══════════════════════════════════════════════
   QUICK LINKS BAR (KIOM 스타일 바로가기)
══════════════════════════════════════════════ */
.quick-bar {
  background: var(--navy);
  padding: 0;
  border-bottom: 3px solid var(--green);
}
.quick-bar-inner {
  display: flex;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  padding: 1.1rem 1rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  cursor: pointer;
}
.quick-item:last-child { border-right: none; }
.quick-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.quick-item i { font-size: 1.1rem; color: #5be0a0; }
.quick-item span { font-size: 0.72rem; font-weight: 500; white-space: nowrap; }

/* ══════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.about-intro-text .about-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.about-intro-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.about-intro-text h2 strong { color: var(--green); }
.about-intro-text p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1rem;
}
.about-intro-text p:last-child { margin-bottom: 0; }

.about-intro-visual {
  background: linear-gradient(145deg, var(--navy) 0%, #1e6b50 100%);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.about-intro-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about-visual-icon {
  font-size: 5rem;
  position: absolute;
  top: 1.5rem; right: 2rem;
  opacity: 0.18;
}
.about-visual-stats {
  position: relative;
  z-index: 1;
}
.about-visual-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.about-visual-stat:last-child { border-bottom: none; }
.avs-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #5be0a0;
  letter-spacing: -0.03em;
  min-width: 64px;
}
.avs-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.about-card {
  background: var(--page);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.about-card:hover {
  box-shadow: 0 8px 28px rgba(26,58,92,0.1);
  transform: translateY(-4px);
}
.about-card:nth-child(2) { border-top-color: var(--green); }
.about-card:nth-child(3) { border-top-color: var(--gold); }
.about-card:nth-child(4) { border-top-color: var(--navy-l); }
.about-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.about-card h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.about-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.72;
}

/* Mission 배너 */
.mission-banner {
  background: var(--off);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0 12px 12px 0;
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
}
.mission-banner-text .mb-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.mission-banner-text h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--ink2);
  line-height: 1.65;
}
.mission-banner-text h3 strong {
  font-weight: 800;
  color: var(--navy);
}

/* ══════════════════════════════════════════════
   RESEARCH — 밝은 배경 카드
══════════════════════════════════════════════ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.research-card {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.research-card:hover {
  box-shadow: 0 10px 32px rgba(26,58,92,0.1);
  transform: translateY(-5px);
  border-color: transparent;
}
.research-card::before {
  content: attr(data-num);
  position: absolute;
  top: 1.5rem; right: 1.75rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--off2);
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  transition: color 0.25s;
}
.research-card:hover::before { color: var(--line); }

.rc-top-bar {
  height: 3px;
  border-radius: 1.5px;
  margin-bottom: 1.5rem;
}
.rc-icon-wrap {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.research-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.research-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.rc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.rc-tags li {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 0.2rem 0.7rem;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════════
   DIRECTOR
══════════════════════════════════════════════ */
.director-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: start;
}
.director-photo-frame { position: relative; margin-bottom: 1.5rem; }
.director-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(155deg, #e8f2fa 0%, #e0f5eb 100%);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  position: relative;
  overflow: hidden;
}
.director-photo-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(26,58,92,0.08), transparent);
}
.dp-icon { font-size: 5rem; margin-bottom: 1rem; }
.dp-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  z-index: 1;
}

/* 경력 카드 */
.director-career-cards {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dc-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}
.dc-card:hover { border-color: var(--navy); }
.dc-year {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--page);
  background: var(--navy);
  border-radius: 5px;
  padding: 0.18rem 0.6rem;
  flex-shrink: 0;
}
.dc-card:first-child .dc-year { background: var(--green); }
.dc-text { font-size: 0.82rem; color: var(--ink2); font-weight: 500; }

/* Director Info */
.director-quote {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--navy);
  line-height: 1.7;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--green);
  background: linear-gradient(to right, var(--green-pale), transparent);
  border-radius: 0 12px 12px 0;
  margin: 1.25rem 0 1.75rem;
  font-style: italic;
}
.director-quote strong {
  font-style: normal;
  color: var(--green);
}

.director-message p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.95;
  margin-bottom: 1rem;
}

.director-signature {
  margin: 1.5rem 0 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--off);
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sig-icon {
  width: 44px; height: 44px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sig-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sig-title { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

.director-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.director-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--off2);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 0.28rem 0.9rem;
}

/* ══════════════════════════════════════════════
   PROGRAMS
══════════════════════════════════════════════ */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.program-card {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  position: relative;
  overflow: hidden;
}
.program-card:hover {
  box-shadow: 0 10px 30px rgba(26,58,92,0.1);
  transform: translateY(-4px);
  border-color: var(--navy);
}
.program-card.big {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  background: linear-gradient(155deg, var(--navy) 0%, #1a5c45 100%);
  border-color: transparent;
  color: #fff;
}
.program-card.big:hover { border-color: transparent; }
.program-card.big h3 { color: #fff; }
.program-card.big p  { color: rgba(255,255,255,0.72); }
.program-card.big .pc-link { color: #5be0a0; }

.pc-number {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.program-card.big .pc-number { color: #5be0a0; opacity: 0.8; }

.pc-icon {
  width: 50px; height: 50px;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.program-card.big .pc-icon {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.15);
  color: #5be0a0;
}
.program-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.program-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.1rem;
  flex: 1;
}
.program-card ul { margin-bottom: 1.5rem; }
.program-card ul li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.program-card ul li::before {
  content: '✓';
  color: #5be0a0;
  font-weight: 700;
  flex-shrink: 0;
}
.pc-link {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--green);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s;
}
.pc-link:hover { gap: 0.6rem; }

/* ══════════════════════════════════════════════
   NEWS
══════════════════════════════════════════════ */
.news-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.news-more-btn {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  transition: all 0.2s;
}
.news-more-btn:hover {
  color: var(--navy);
  border-color: var(--navy);
  background: var(--off);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.news-box {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.news-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: var(--off);
  border-bottom: 1px solid var(--line);
}
.news-box-head h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.news-box-head h3 i { color: var(--green); }
.news-box-head a {
  font-size: 0.73rem;
  color: var(--faint);
  transition: color 0.2s;
}
.news-box-head a:hover { color: var(--navy); }

.news-list { padding: 0.5rem 0; }
.news-list li { border-bottom: 1px solid var(--line-l); }
.news-list li:last-child { border-bottom: none; }
.news-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.75rem;
  transition: background 0.18s;
}
.news-list li a:hover { background: var(--off); }

.nl-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--navy);
  color: #fff;
  letter-spacing: 0.03em;
}
.nl-badge.new  { background: #e53e3e; }
.nl-badge.paper { background: var(--green); }
.nl-badge.collab { background: var(--gold); color: #fff; }

.nl-title {
  font-size: 0.83rem;
  color: var(--ink);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s;
}
.news-list li a:hover .nl-title { color: var(--navy); }
.nl-date {
  font-size: 0.7rem;
  color: var(--faint);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   ACHIEVEMENTS — 밝은 배경 (navy)
══════════════════════════════════════════════ */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.achieve-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.achieve-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(91,224,160,0.35);
  transform: translateY(-3px);
}
.ach-num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #5be0a0;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-block;
}
.ach-unit {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  display: inline-block;
  margin-left: 3px;
  vertical-align: bottom;
  margin-bottom: 4px;
}
.ach-label {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.6rem;
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.ach-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.ach-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #5be0a0, #3dab6c);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s ease;
}

/* ══════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 4rem;
  align-items: start;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-item:hover {
  border-color: var(--navy);
  box-shadow: 0 2px 10px rgba(26,58,92,0.07);
}
.ci-icon {
  width: 38px; height: 38px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ci-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.ci-value { font-size: 0.88rem; color: var(--ink); font-weight: 500; }

/* 폼 */
.contact-form-wrap {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(26,58,92,0.06);
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cf-group { display: flex; flex-direction: column; }
.cf-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.cf-label span { color: var(--red); }
.cf-input {
  width: 100%;
  padding: 0.78rem 1rem;
  background: var(--off);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 0.87rem;
  color: var(--ink);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.cf-input:focus {
  border-color: var(--navy);
  background: var(--page);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.08);
}
.cf-input::placeholder { color: var(--faint); }
.cf-select { cursor: pointer; }
.cf-textarea { resize: vertical; min-height: 100px; }
.cf-agree {
  padding: 0.85rem 1rem;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.cf-agree label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}
.cf-agree span { font-size: 0.8rem; color: var(--muted); }
.cf-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(26,58,92,0.2);
}
.cf-submit-btn:hover {
  background: var(--navy-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,92,0.28);
}
.cf-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.cf-success {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--green-pale);
  border: 1px solid rgba(46,139,87,0.25);
  border-radius: 8px;
  font-size: 0.87rem;
  color: var(--green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer { background: #0f2640; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-top-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding: 3.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.1rem;
}
.footer-logo-kr {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: 'Noto Sans KR', sans-serif;
}
.footer-slogan {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
}
.footer-divider {
  width: 40px; height: 2px;
  background: var(--green);
  border-radius: 1px;
  margin: 1.1rem 0;
  opacity: 0.7;
}

.footer-links-group {
  display: flex;
  gap: 3.5rem;
}
.footer-link-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-link-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-link-col a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.52);
  transition: color 0.2s, padding-left 0.2s;
}
.footer-link-col a:hover { color: #5be0a0; padding-left: 0.3rem; }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-info p {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.85;
}
.footer-info strong { color: rgba(255,255,255,0.55); font-weight: 600; }
.footer-right { text-align: right; }
.footer-policy {
  display: flex;
  gap: 1.25rem;
  justify-content: flex-end;
  margin-bottom: 0.45rem;
}
.footer-policy a {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer-policy a:hover { color: #fff; }
.footer-copy { font-size: 0.7rem; color: rgba(255,255,255,0.2); }

/* ── Scroll Top ─── */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(26,58,92,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 9999;
  cursor: pointer;
  border: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--green); }

/* ── Scrollbar ──── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: #c8d4df; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ══════════════════════════════════════════════
   반응형 — 태블릿
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-intro    { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid     { grid-template-columns: repeat(2, 1fr); }
  .research-grid  { grid-template-columns: repeat(2, 1fr); }
  .achieve-grid   { grid-template-columns: repeat(3, 1fr); }
  .director-wrap  { grid-template-columns: 260px 1fr; gap: 3rem; }
  .programs-grid  { grid-template-columns: 1fr; }
  .program-card.big { grid-row: auto; }
  .hero-stats     { max-width: 100%; }
  .quick-bar-inner { flex-wrap: wrap; }
  .quick-item     { min-width: 33.33%; }
}

/* ══════════════════════════════════════════════
   반응형 — 모바일
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sec { padding: 4rem 0; }
  .wrap { padding: 0 1.25rem; }

  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .nav-inner  { padding: 0 1.25rem; }
  .nav-cta    { display: none; }

  .hero { min-height: auto; padding-bottom: 3.5rem; }
  .hero::after { display: none; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub br { display: none; }
  .hero-stats {
    flex-wrap: wrap;
  }
  .hero-stat { min-width: 48%; padding: 0.9rem; }
  .hero-stat-div:nth-child(4) { display: none; }
  .hero-scroll-hint { display: none; }

  .quick-item span { font-size: 0.65rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .mission-banner { flex-direction: column; gap: 1.5rem; }

  .research-grid { grid-template-columns: 1fr; }

  .director-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .director-photo-placeholder { max-height: 260px; aspect-ratio: auto; }

  .news-grid { grid-template-columns: 1fr; }
  .achieve-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .cf-row { grid-template-columns: 1fr; }

  .footer-top-inner { flex-direction: column; gap: 2rem; }
  .footer-links-group { flex-wrap: wrap; gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-right { text-align: center; }
  .footer-policy { justify-content: center; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
}
