/* =========================================================
   ICARUS — KAIST Flight Research Team
   Direction: 절제된 항공우주 에디토리얼
   - 각진 형태(0–2px), 헤어라인 1px, 평면 컬러 (Hyundai · SpaceX)
   - 큰 타이포와 넓은 여백, 단일 액센트 (Toss)
   - 딥블루 신뢰감 (KAIST)
   ========================================================= */

:root {
  /* Deep navy */
  --navy-1000: #02060f;
  --navy-950: #050b18;
  --navy-900: #081326;
  --navy-850: #0c1a33;
  --navy-800: #112243;
  --navy-700: #1a3260;
  --kaist-blue: #004191;
  --deep-blue: #0a3a82;

  /* Accent (단 하나) */
  --blue-500: #2563d9;
  --blue-400: #4a8bff;
  --blue-300: #8db6ff;
  --blue-50: #edf3ff;

  /* Neutral */
  --grey-50: #f6f7f9;
  --grey-100: #eceff3;
  --grey-200: #dde2e9;
  --grey-300: #c4ccd7;
  --grey-500: #7d8897;
  --grey-600: #5c6676;
  --grey-700: #434c5a;
  --grey-900: #111722;

  /* Semantic — dark */
  --bg: var(--navy-950);
  --surface-1: var(--navy-900);
  --surface-2: var(--navy-850);
  --surface-3: var(--navy-800);
  --text-1: #f4f6fa;
  --text-2: rgba(226, 233, 244, 0.68);
  --text-3: rgba(226, 233, 244, 0.44);
  --line: rgba(226, 233, 244, 0.12);
  --line-strong: rgba(226, 233, 244, 0.28);
  --accent: var(--blue-400);
  --accent-soft: var(--blue-300);
  --header-glass: rgba(5, 11, 24, 0.9);

  /* Type */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-label: "Barlow", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", "Pretendard Variable", Pretendard, sans-serif;
  /* 하위 호환 */
  --font-mono: var(--font-label);

  --fs-h1: clamp(34px, 4.4vw, 58px);
  --fs-h2: clamp(28px, 3.3vw, 44px);
  --fs-h3: clamp(20px, 1.8vw, 26px);
  --fs-body-lg: clamp(17px, 1.3vw, 19px);
  --fs-body: 17px;
  --fs-small: 15px;

  --section-y: clamp(96px, 11vw, 160px);
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;

  --r-0: 0;
  --r-1: 2px;
  --r-2: 4px;
  /* 하위 호환 */
  --r-sm: 2px; --r-md: 2px; --r-lg: 2px; --r-xl: 4px; --r-2xl: 4px; --r-pill: 2px;

  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue-400);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* 하위 호환 */
  --ease-out-expo: var(--ease-out);
  --ease-out-quint: var(--ease-ui);
  --dur-1: 150ms;
  --dur-2: 250ms;
  --dur-3: 400ms;
  --dur-4: 800ms;
}

.theme-light {
  --bg: #ffffff;
  --surface-1: var(--grey-50);
  --surface-2: var(--grey-100);
  --surface-3: var(--grey-200);
  --text-1: var(--grey-900);
  --text-2: var(--grey-700);
  --text-3: var(--grey-600);
  --line: var(--grey-200);
  --line-strong: var(--grey-300);
  --accent: var(--blue-500);
  --accent-soft: var(--blue-500);
  --focus-ring: 0 0 0 2px #fff, 0 0 0 4px var(--blue-500);
  background: var(--bg);
  color: var(--text-1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: -0.012em;
  background: var(--bg);
  color: var(--text-1);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--blue-400); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }
.num, time, .stat-value { font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 10px 16px;
  background: #fff; color: var(--navy-950); font-weight: 600;
  transform: translateY(-160%); transition: transform var(--dur-2) var(--ease-ui);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.label, .overline {
  display: inline-block;
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
  line-height: 1.4;
}
.overline::before { content: none; }
.h-display { font-size: clamp(44px, 7vw, 96px); line-height: 1.05; font-weight: 600; letter-spacing: -0.045em; }
.h1 { font-size: var(--fs-h1); line-height: 1.22; font-weight: 600; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); line-height: 1.28; font-weight: 600; letter-spacing: -0.035em; }
.h3 { font-size: var(--fs-h3); line-height: 1.4; font-weight: 600; letter-spacing: -0.025em; }
.lead { font-size: var(--fs-body-lg); line-height: 1.75; color: var(--text-2); }
.muted { color: var(--text-2); }
.mono { font-family: var(--font-label); letter-spacing: 0.08em; }
.grad-text { color: inherit; }
.accent { color: var(--accent-soft); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 54px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  height: var(--btn-h); padding: 0 22px 0 24px; border-radius: var(--r-1);
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease-ui), border-color var(--dur-2) var(--ease-ui), color var(--dur-2);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-3) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: #fff; color: var(--navy-950); }
.btn-primary:hover { background: var(--blue-300); }
.theme-light .btn-primary { background: var(--grey-900); color: #fff; }
.theme-light .btn-primary:hover { background: var(--blue-500); }
.btn-ghost { border-color: var(--line-strong); color: var(--text-1); }
.btn-ghost:hover { border-color: var(--text-1); }
.btn-sm { --btn-h: 40px; padding: 0 16px; gap: 10px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding-bottom: 4px; border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--dur-2);
}
.link-arrow:hover { border-color: currentColor; }
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur-3) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: linear-gradient(180deg, rgba(2, 6, 15, 0.7) 0%, rgba(2, 6, 15, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-3) ease, border-color var(--dur-3) ease, transform var(--dur-3) var(--ease-ui);
}
.site-header.is-scrolled {
  background: var(--header-glass);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  backdrop-filter: saturate(140%) blur(20px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1;
  letter-spacing: 0.1em; color: #fff;
}
.brand-mark { width: 30px; height: 30px; color: var(--blue-400); }
.brand small {
  font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; line-height: 1.3;
  color: var(--text-2); padding-left: 12px; border-left: 1px solid var(--line-strong);
}
.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
  position: relative; padding: 8px 0; font-size: 16px; font-weight: 600; color: rgba(244, 246, 250, 0.86);
  transition: color var(--dur-2);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-400);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out);
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.is-active::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.is-active, .nav a[aria-current="page"] { color: #fff; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 24px; height: 2px; background: #fff;
  transition: transform var(--dur-3) var(--ease-ui), background-color var(--dur-2);
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: var(--navy-1000);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity var(--dur-3) var(--ease-ui), visibility var(--dur-3);
}
.mobile-menu a {
  font-size: 30px; font-weight: 600; letter-spacing: -0.035em; padding: 16px 0;
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline;
  transform: translateY(10px); opacity: 0;
  transition: transform var(--dur-4) var(--ease-out), opacity var(--dur-3);
}
.mobile-menu a span { font-family: var(--font-label); font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0.14em; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: 40ms; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: 80ms; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: 120ms; }
.menu-open .mobile-menu a:nth-child(5) { transition-delay: 160ms; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--navy-1000); border-bottom-color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 40px) 0 0;
  background: linear-gradient(180deg, var(--navy-1000) 0%, #061331 55%, var(--navy-950) 100%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(2, 6, 15, 0) 40%, rgba(2, 6, 15, 0.55) 72%, rgba(5, 11, 24, 0.95) 100%);
}
.hero-top {
  position: absolute; top: calc(var(--header-h) + 32px); left: 0; right: 0;
  display: flex; justify-content: space-between; gap: 24px;
}
.hero-top .label { color: var(--text-2); }
.hero-wordmark {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  /* 컨테이너 폭에 맞춤 (글자폭 ≈ 2.62em) — 단, 화면 높이의 42%를 넘지 않게 */
  font-size: min(calc((100vw - var(--gutter) * 2) / 2.62), calc(var(--container) / 2.62), 42vh);
  line-height: 0.8; letter-spacing: 0.015em;
  color: #fff; margin: 0 0 clamp(24px, 3vw, 40px) -0.04em; white-space: nowrap;
  display: flex;
}
.hero-wordmark span { display: inline-block; }
.hero-bottom {
  display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: end;
  padding: clamp(24px, 3vw, 36px) 0 clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-strong);
}
.hero-tagline { font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.35; }
.hero-tagline + p { margin-top: 12px; color: var(--text-2); max-width: 560px; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-readout {
  position: absolute; right: var(--gutter); top: 50%; z-index: 1;
  display: grid; gap: 6px; text-align: right;
  font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.hero-readout b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.hero-readout .sym { text-transform: none; letter-spacing: 0; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-head {
  display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 24px 40px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head > .label, .section-head > .overline { padding-top: 0.75em; }
.section-head .h2 { max-width: 760px; }
.section-head .lead { grid-column: 2; max-width: 640px; margin-top: -8px; }
.section-head.split { grid-template-columns: minmax(180px, 3fr) 6fr 3fr; align-items: end; }
.section-head.split .link-arrow { justify-self: end; }
.section-head .sec-title { display: contents; }
.divider { height: 1px; background: var(--line); border: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 32px 44px 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat-value {
  font-family: var(--font-display); font-size: clamp(56px, 6vw, 88px); font-weight: 600; letter-spacing: -0.01em; line-height: 0.9;
  display: flex; align-items: baseline; gap: 8px;
}
.stat-value small { font-family: var(--font-sans); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-2); }
.stat-label { margin-top: 20px; font-size: var(--fs-small); color: var(--text-2); line-height: 1.55; }
.stat-label .mono { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--text-3); margin-bottom: 6px; text-transform: uppercase; }

/* Vision */
.vision { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 24px 40px; }
.vision > .label, .vision > .overline { padding-top: 0.9em; }
.vision-statement { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.28; font-weight: 600; letter-spacing: -0.045em; }
.vision-statement .dim { color: var(--text-3); }
.vision-body { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--text-2); max-width: 880px; }

/* Process — 박스 없이 헤어라인 컬럼 */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.process-item { padding: 28px 28px 8px 0; }
.process-item + .process-item { padding-left: 28px; border-left: 1px solid var(--line); }
.process-item .num {
  display: block; font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1;
  color: var(--text-3); margin-bottom: 40px;
}
.process-icon { display: none; }
.process-item h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 10px; }
.process-item h3 span { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--text-3); text-transform: uppercase; }
.process-item p { margin-top: 12px; font-size: var(--fs-small); color: var(--text-2); line-height: 1.7; }

/* Teams */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); }
.team-card { display: flex; flex-direction: column; }
.team-art { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-1000); }
.team-art svg { width: 100%; height: 100%; transition: transform 1.4s var(--ease-out); }
.team-card:hover .team-art svg { transform: scale(1.035); }
.team-body { padding: 28px 0 0; display: grid; gap: 14px; }
.team-body p { color: var(--text-2); }
.team-body .label { color: var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 4px; }
.chip {
  font-family: var(--font-label); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-2);
}
.chip + .chip::before { content: "/"; margin: 0 10px; color: var(--text-3); font-weight: 400; }
.team-goal {
  margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; font-size: var(--fs-small); font-weight: 600;
}
.team-goal span:first-child { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.16em; color: var(--text-3); text-transform: uppercase; padding-top: 2px; }

/* History */
.history-band { background: var(--navy-900); }
.tabs { display: flex; gap: 36px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tab {
  position: relative; padding: 0 0 16px; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-3); transition: color var(--dur-2);
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out);
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.timeline[hidden] { display: none; }
.tl-row {
  display: grid; grid-template-columns: minmax(180px, 3fr) 7fr 2fr; gap: 40px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.tl-year { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: 0.01em; color: #fff; line-height: 1.1; }
.tl-title { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.45; }
.tl-desc { margin-top: 8px; color: var(--text-2); font-size: var(--fs-small); line-height: 1.75; max-width: 620px; }
.tl-tag { justify-self: end; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.badge.award { color: #e9c46a; }
.theme-light .badge { color: var(--text-3); }
.theme-light .badge.award { color: #a26b00; }

/* Archive cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.card { display: flex; flex-direction: column; gap: 20px; text-align: left; width: 100%; }
.card-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-1000); }
.card-thumb > svg, .card-thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card-thumb > svg, .card:hover .card-thumb > img { transform: scale(1.04); }
.card-thumb .badge {
  position: absolute; left: 0; top: 0; padding: 8px 12px; background: var(--navy-1000); color: #fff; font-size: 11px;
}
.card-thumb .badge.award { color: #e9c46a; }
.card-meta {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-label); font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase;
}
.card-meta i { width: 1px; height: 11px; background: currentColor; opacity: 0.6; }
.card-title { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.42; }
.card-title { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--dur-4) var(--ease-out); display: inline; }
.card:hover .card-title { background-size: 100% 1px; }
.card-summary {
  color: var(--text-2); font-size: var(--fs-small); line-height: 1.7; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body { display: grid; gap: 10px; }

/* Join — 풀블리드 딥블루 밴드 */
.join-band { background: var(--kaist-blue); color: #fff; }
.join-band { --text-2: rgba(255, 255, 255, 0.78); --text-3: rgba(255, 255, 255, 0.55); --line: rgba(255, 255, 255, 0.18); --line-strong: rgba(255, 255, 255, 0.4); }
.join-band .btn-primary { background: #fff; color: var(--kaist-blue); }
.join-band .btn-primary:hover { background: var(--navy-950); color: #fff; }
.join-panel { padding: 0; }
.join-grid { display: grid; grid-template-columns: minmax(180px, 3fr) 5fr 4fr; gap: 40px; align-items: start; }
.join-grid .h1 { margin-bottom: 24px; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.info-list { display: grid; border-top: 1px solid var(--line-strong); }
.info-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list dt { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.info-list dd { font-weight: 600; }
.info-list dd small { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; margin-top: 2px; }

.faq { display: grid; grid-template-columns: minmax(180px, 3fr) 9fr; gap: 24px 40px; }
.faq > .label, .faq > .overline { padding-top: 26px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; font-family: var(--font-label); font-weight: 400; font-size: 28px; line-height: 1; color: var(--text-2);
  transition: transform var(--dur-3) var(--ease-ui);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 28px; color: var(--text-2); max-width: 680px; }

/* ---------- Footer ---------- */
.site-footer { padding: 88px 0 0; background: var(--navy-1000); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(180px, 3fr) 3fr 3fr 3fr; gap: 40px; }
.footer-top p { color: var(--text-3); font-size: 14px; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 15px; transition: color var(--dur-2); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 72px; padding: 24px 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-label); font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0.06em;
}
.footer-wordmark {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 0.74;
  font-size: min(calc((100vw - var(--gutter) * 2) / 2.62), calc(var(--container) / 2.62)); letter-spacing: 0.015em; color: var(--navy-850);
  margin: 40px 0 0 -0.04em; white-space: nowrap; user-select: none;
  transform: translateY(0.06em);
}

/* ---------- Archive page ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, var(--navy-1000), var(--navy-950));
}
.page-hero .h-display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(80px, 15vw, 220px); line-height: 0.82; margin: 20px 0 32px -0.03em; }
.page-hero .lead { max-width: 620px; }

.archive-main { padding: 0 0 var(--section-y); }
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20; margin-bottom: 56px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 68px; }
.filter-chips { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; align-self: stretch; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip {
  position: relative; flex: none; display: inline-flex; align-items: center; height: 68px;
  font-size: 15px; font-weight: 600; color: var(--text-3); transition: color var(--dur-2);
}
.fchip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grey-900); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out); }
.fchip:hover { color: var(--text-1); }
.fchip[aria-pressed="true"] { color: var(--text-1); }
.fchip[aria-pressed="true"]::after { transform: scaleX(1); }
.fchip .count { font-family: var(--font-label); font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 5px; }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
.field {
  height: 42px; border-radius: var(--r-1); border: 1px solid var(--line-strong); background: #fff;
  padding: 0 14px; font-size: 15px; color: var(--text-1); transition: border-color var(--dur-2);
}
.field:focus { outline: none; border-color: var(--grey-900); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search .field { padding-left: 36px; width: 220px; }
select.field { padding-right: 34px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23434c5a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.result-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.result-line p { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.result-line p b { color: var(--blue-500); font-weight: 600; }
.reset-btn { font-size: 14px; color: var(--text-3); font-weight: 600; border-bottom: 1px solid currentColor; }
.reset-btn:hover { color: var(--text-1); }
.reset-btn[hidden] { display: none; }

.featured {
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center;
  margin-bottom: 72px; padding-bottom: 72px; border-bottom: 1px solid var(--line); text-align: left; width: 100%;
}
.featured .card-thumb { aspect-ratio: 16 / 10; }
.featured .card-title { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.3; letter-spacing: -0.04em; }
.featured .card-summary { -webkit-line-clamp: 3; font-size: 17px; }
.featured .card-body { gap: 16px; }
.featured:hover .card-thumb > svg, .featured:hover .card-thumb > img { transform: scale(1.03); }
.featured:hover .card-title { background-size: 100% 1px; }
.featured[hidden] { display: none; }

.empty { padding: 96px 0; text-align: center; color: var(--text-3); }
.empty b { display: block; font-size: 20px; color: var(--text-1); margin-bottom: 8px; }

/* Detail dialog */
.detail {
  width: min(920px, calc(100% - 32px)); max-height: calc(100% - 48px); margin: auto;
  border: 0; border-radius: var(--r-1); padding: 0; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}
.detail::backdrop { background: rgba(2, 6, 15, 0.72); }
.detail[open] { animation: dialog-in 600ms var(--ease-out); }
.detail[open]::backdrop { animation: fade-in var(--dur-3) ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px); } }
@keyframes fade-in { from { opacity: 0; } }
.detail-scroll { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.detail-close {
  position: absolute; right: 0; top: 0; z-index: 2; width: 52px; height: 52px;
  display: grid; place-items: center; background: var(--navy-1000); color: #fff; transition: background-color var(--dur-2);
}
.detail-close:hover { background: var(--kaist-blue); }
.detail-close svg { width: 20px; height: 20px; }
.detail-art { aspect-ratio: 16 / 8; background: var(--navy-1000); }
.detail-art svg, .detail-art img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { padding: clamp(28px, 5vw, 64px); display: grid; gap: 32px; }
.detail-body h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.28; letter-spacing: -0.04em; font-weight: 600; margin-top: -14px; }
.detail-text { display: grid; gap: 16px; color: var(--text-2); font-size: 17px; line-height: 1.85; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table caption { text-align: left; font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); padding-bottom: 12px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 0; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top-color: var(--grey-900); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 1px solid var(--line); }
.spec-table th { width: 34%; font-weight: 500; color: var(--text-3); }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery a { aspect-ratio: 1; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.gallery a:hover img { transform: scale(1.04); }
.sources { display: grid; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.sources h3 { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.sources a { font-size: 14px; color: var(--blue-500); border-bottom: 1px solid var(--blue-50); word-break: break-all; justify-self: start; }
.sources a:hover { border-bottom-color: currentColor; }
.detail-nav { display: flex; justify-content: space-between; gap: 12px; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.notfound .h-display { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; font-size: clamp(120px, 26vw, 320px); line-height: 0.85; }

/* ---------- Motion ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hero-wordmark span { transform: translateY(105%); opacity: 0; transition: transform 1.3s var(--ease-out), opacity 0.6s ease; transition-delay: var(--d, 0ms); }
.js .is-loaded .hero-wordmark span { transform: none; opacity: 1; }
.js .hero [data-hero-fade] { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .is-loaded .hero [data-hero-fade] { opacity: 1; transform: none; }
.hero-wordmark { overflow: hidden; padding-top: 0.04em; }

/* ---------- Motion extras (motion.js) ---------- */
.vision-statement .word { display: inline; }
.process { position: relative; }
.has-motion .process { border-top-color: var(--line); }
.process-line {
  position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: #fff;
  transform-origin: left; transform: scaleX(0); pointer-events: none;
}
.has-motion .tl-year { color: var(--text-3); transition: color 500ms var(--ease-ui); }
.has-motion .tl-row.is-passed .tl-year { color: #fff; }
.has-motion .tl-row.is-current .tl-year { color: var(--blue-300); }
.tl-row { position: relative; }
.tl-row::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--blue-300);
  transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease-out);
}
.has-motion .tl-row.is-current::before { transform: scaleX(1); }
.rotor { transform-box: fill-box; transform-origin: center; animation: rotor-spin 0.5s linear infinite; }
.rotor.ccw { animation-direction: reverse; }
@keyframes rotor-spin { to { transform: rotate(360deg); } }
.team-art { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .process-item:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 20px; }
  .tl-row { grid-template-columns: 160px 1fr; }
  .tl-tag { display: none; }
  .join-grid { grid-template-columns: 1fr 1fr; }
  .join-grid > .label { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header-cta .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding: 32px 20px 32px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .section-head, .section-head.split, .vision, .faq, .join-grid { grid-template-columns: 1fr; }
  .section-head .lead { grid-column: auto; margin-top: 0; }
  .section-head.split .link-arrow { justify-self: start; }
  .section-head > .label, .vision > .label, .faq > .label { padding-top: 0; }
  .vision-body { grid-template-columns: 1fr; gap: 16px; }
  .teams { grid-template-columns: 1fr; gap: 56px; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-readout { top: auto; bottom: auto; }
  .featured { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .toolbar-right { width: 100%; padding-bottom: 14px; }
  .search { flex: 1; }
  .search .field { width: 100%; }
  .filter-chips { flex-basis: 100%; }
  .fchip { height: 56px; }
}
@media (max-width: 640px) {
  :root { --fs-body: 16px; }
  .brand small { display: none; }
  .hero-top { flex-direction: column; gap: 6px; }
  .hero-readout { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cards { grid-template-columns: 1fr; gap: 48px; }
  .process { grid-template-columns: 1fr; }
  .process-item, .process-item + .process-item { padding: 24px 0; border-left: 0; margin-top: 0; }
  .process-item + .process-item { border-top: 1px solid var(--line); }
  .process-item .num { margin-bottom: 20px; font-size: 36px; }
  .tl-row { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .tabs { gap: 24px; overflow-x: auto; }
  .tab { font-size: 22px; flex: none; }
  .info-list > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .detail { width: 100%; max-width: 100%; max-height: 100%; height: 100%; margin: 0; }
  .detail-scroll { max-height: 100vh; max-height: 100dvh; }
  .join-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
