/* ═══════════════════════════════════════════════════════════════
   AIDEN Lab — main stylesheet
   1. Tokens  2. Base  3. Primitives  4. Header / Footer
   5. Home    6. Shared blocks        7. Inner pages     8. Print
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ─────────────────────────────────────────────────── */
:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #eceae2;
  --ink: #131816;
  --ink-2: #333c38;
  --muted: #5f6964;
  --line: #d9d6cb;
  --accent: #0b6b50;
  --accent-strong: #08543f;
  --accent-soft: #dcefe6;
  --on-accent: #ffffff;
  --brand-dot: #ffffff;

  /* 히어로와 모집 패널은 테마와 무관하게 항상 어둡다 */
  --hero-bg: #0b1310;
  --hero-ink: #eef4f0;
  --hero-muted: #9fb0a8;
  --hero-line: rgba(255, 255, 255, 0.11);
  --hero-accent: #6fe0b4;
  --panel-bg: #0c3d2f;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    "Pretendard Variable", monospace;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(19, 24, 22, 0.04), 0 8px 24px rgba(19, 24, 22, 0.06);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c110f;
    --surface: #141b18;
    --surface-2: #111815;
    --ink: #e9efeb;
    --ink-2: #c5cfc9;
    --muted: #8e9b94;
    --line: #25302b;
    --accent: #6fe0b4;
    --accent-strong: #93ecc9;
    --accent-soft: #12302a;
    --on-accent: #06231a;
    --brand-dot: #06231a;
    --hero-bg: #070b09;
    --panel-bg: #0f2a22;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c110f;
  --surface: #141b18;
  --surface-2: #111815;
  --ink: #e9efeb;
  --ink-2: #c5cfc9;
  --muted: #8e9b94;
  --line: #25302b;
  --accent: #6fe0b4;
  --accent-strong: #93ecc9;
  --accent-soft: #12302a;
  --on-accent: #06231a;
  --brand-dot: #06231a;
  --hero-bg: #070b09;
  --panel-bg: #0f2a22;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ── 2. Base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

b, strong {
  font-weight: 650;
}

sub {
  font-size: 0.72em;
  line-height: 0;
}

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

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

/* ── 3. Primitives ─────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero" 0;
  letter-spacing: -0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow--on-dark {
  color: var(--hero-accent);
}

.eyebrow__no {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding-inline: 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.btn svg {
  transition: transform 0.18s;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--accent {
  background: var(--hero-accent);
  color: #06231a;
}

.btn--accent:hover {
  background: #8cecc8;
}

.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--hero-ink);
}

.btn--ghost-dark:hover {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
}

.btn--light {
  background: #fff;
  color: #0c3d2f;
}

.btn--light:hover {
  background: #e3f5ec;
}

.btn--light:hover svg {
  transform: none;
}

/* 본문 영역(밝은 배경)에서 쓰는 강조 버튼 */
.notfound .btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: 1px;
}

.tag--solid {
  border-color: var(--hero-accent);
  background: var(--hero-accent);
  color: #06231a;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}

.chip.mono {
  font-size: 12px;
  font-weight: 500;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.badge--scie {
  background: var(--accent);
  color: var(--on-accent);
}

.badge--kci {
  color: var(--accent);
}

.acronym {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

.acronym b {
  font-weight: 600;
  color: var(--accent);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 1px 8px 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background-color 0.18s;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-btn {
  width: auto;
  min-width: 38px;
  padding-inline: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn--outline {
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── 4. Header / Footer ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.brand__mark {
  color: var(--accent);
}

.brand__mark svg {
  width: 32px;
  height: 32px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand__sub {
  font-size: 11.5px;
  color: var(--muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: block;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 550;
  transition: color 0.15s, background-color 0.15s;
}

.nav__link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav__link.is-active {
  color: var(--accent);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav__ko {
  display: none;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn__moon {
  display: none;
}

:root[data-theme="dark"] .icon-btn__sun {
  display: none;
}

:root[data-theme="dark"] .icon-btn__moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn__sun {
    display: none;
  }

  :root:not([data-theme="light"]) .icon-btn__moon {
    display: block;
  }
}

.nav-toggle {
  display: none;
}

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, top 0.2s;
}

.nav-toggle__bars i:first-child {
  top: 0;
}

.nav-toggle__bars i:last-child {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child {
  top: 4px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 24px 32px -24px rgba(0, 0, 0, 0.25);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 17px;
  }

  .nav__link:hover {
    background: transparent;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav__ko {
    display: inline;
    font-size: 13.5px;
    font-weight: 450;
    color: var(--muted);
  }
}

@media (max-width: 420px) {
  .brand__sub {
    display: none;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14.5px;
  color: var(--ink-2);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr;
  gap: 40px;
  padding-block: 56px 40px;
}

.site-footer__name {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-footer__full {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.site-footer__addr {
  margin-top: 18px;
  color: var(--muted);
}

.site-footer__label {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: minmax(96px, 0.6fr) minmax(0, 1.4fr);
    gap: 32px 24px;
    padding-block: 44px 32px;
  }

  .site-footer__about {
    grid-column: 1 / -1;
  }
}

/* ── 5. Home ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--hero-bg);
  background-image:
    radial-gradient(60% 70% at 78% 30%, rgba(47, 160, 120, 0.2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-position: 0 0, center top, center top;
  color: var(--hero-ink);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px);
}

.hero__copy > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }
.hero__copy > :nth-child(5) { animation-delay: 0.24s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(33px, 5.1vw, 60px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: normal;
  color: var(--hero-accent);
}

.hero__name {
  margin-top: 22px;
  font-size: clamp(11.5px, 1.25vw, 13.5px);
  color: var(--hero-muted);
}

.hero__name .acronym b {
  color: var(--hero-accent);
}

.hero__lede {
  max-width: 34em;
  margin-top: 18px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
  color: #cdd8d2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__viz {
  position: relative;
  aspect-ratio: 5 / 4;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__viz-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--hero-line);
  font-size: 12px;
  color: var(--hero-muted);
}

.hero__viz-t {
  color: var(--hero-accent);
  font-variant-numeric: tabular-nums;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hero-line);
}

.stats__item {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 36px 0;
}

.stats__item + .stats__item {
  padding-left: 24px;
  border-left: 1px solid var(--hero-line);
}

.stats dt {
  order: 2;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}

.stats dd {
  order: 1;
  font-size: 18px;
  font-weight: 600;
  color: var(--hero-muted);
}

.stats dd b {
  margin-right: 3px;
  font-family: var(--font-mono);
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--hero-ink);
}

.stats dd.stats__note {
  order: 3;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__viz {
    aspect-ratio: 16 / 10;
  }

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

  .stats__item {
    padding: 22px 16px 24px 0;
  }

  .stats__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .stats__item:nth-child(even) {
    padding-left: 20px;
  }

  .stats__item:nth-child(n + 3) {
    border-top: 1px solid var(--hero-line);
  }
}

/* ── 6. Shared blocks ──────────────────────────────────────────── */
.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--tint {
  background: var(--surface-2);
}

.section--first {
  padding-top: clamp(40px, 6vw, 64px);
}

.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.sec-head .eyebrow {
  grid-column: 1 / -1;
}

.sec-head--compact {
  margin-bottom: 20px;
}

.sec-title {
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.sec-title--sm {
  font-size: clamp(23px, 2.6vw, 28px);
}

.sec-desc {
  grid-column: 1 / -1;
  max-width: 44em;
  color: var(--muted);
}

.sec-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.sec-more svg {
  transition: transform 0.18s;
}

.sec-more:hover svg {
  transform: translateX(3px);
}

.sec-more--block {
  margin-top: 24px;
}

@media (max-width: 620px) {
  .sec-head {
    grid-template-columns: 1fr;
  }
}

/* 연구 분야 카드 */
.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.area-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.area-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.area-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.area-card__icon {
  color: var(--accent);
}

.area-card__icon svg {
  width: 46px;
  height: 46px;
}

.area-card__no {
  font-size: 12.5px;
  color: var(--muted);
}

.area-card__en {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.area-card__title {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.area-card__text {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .area-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .area-grid {
    grid-template-columns: 1fr;
  }

  .area-card__top {
    margin-bottom: 18px;
  }
}

/* How we work */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.steps__item {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.steps__item:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: -15px;
  right: -22px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface-2);
  padding-inline: 3px;
}

.steps__no {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.steps__title {
  margin-top: 8px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.steps__text {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  font-size: 13px;
}

.stack__label {
  margin-right: 6px;
  color: var(--muted);
}

.stack__label::after {
  content: " =";
}

.stack__item {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps__item:not(:last-child)::after {
    display: none;
  }
}

/* 소식 + 대표 논문 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

.news__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.news__item:last-child {
  border-bottom: 1px solid var(--line);
}

.news__date {
  padding-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.news__text {
  font-size: 15.5px;
  line-height: 1.65;
}

.news__text .tag {
  margin-right: 4px;
}

/* 논문 목록 */
.pub {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.pub-list > .pub:last-child {
  border-bottom: 1px solid var(--line);
}

.pub__title {
  font-size: 17.5px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.pub__title-en {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.pub__title-en::before {
  content: "[";
}

.pub__title-en::after {
  content: "]";
}

.pub__authors {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
}

.pub__authors b {
  color: var(--ink);
}

.pub__venue {
  font-size: 14.5px;
  color: var(--ink-2);
}

.pub__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 10px;
}

.pub__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

.pub__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pub-list--compact .pub {
  padding: 16px 0;
}

.pub-list--compact .pub__title {
  font-size: 16px;
}

.pub-list--flat {
  max-width: 860px;
}

.year-block {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
}

.year-block + .year-block {
  margin-top: 40px;
}

.year-block__year {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding-top: 16px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--accent);
}

@media (max-width: 720px) {
  .year-block {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .year-block__year {
    position: static;
    padding: 0 0 10px;
    font-size: 24px;
  }
}

/* 대학원생 모집 */
.recruit {
  padding-top: 0;
}

.section--tint + .recruit,
.recruit:first-child {
  padding-top: clamp(64px, 9vw, 112px);
}

.recruit__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background-color: var(--panel-bg);
  background-image:
    radial-gradient(80% 120% at 100% 0%, rgba(111, 224, 180, 0.2), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.4px);
  background-size: auto, 22px 22px;
  color: #eef4f0;
  overflow: hidden;
}

.recruit__title {
  margin-top: 16px;
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.recruit__text {
  max-width: 30em;
  margin-top: 16px;
  color: #c9d8d0;
}

.recruit__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
}

.recruit__mail {
  font-size: 13px;
  color: #a9c2b6;
}

.recruit__fit {
  align-self: center;
  padding: 26px 26px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(6, 28, 21, 0.5);
}

.recruit__fit-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 650;
}

.recruit__list {
  margin-top: 14px;
  counter-reset: fit;
}

.recruit__list li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 15.5px;
  line-height: 1.6;
  color: #d5e2db;
  counter-increment: fit;
}

.recruit__list li::before {
  content: "0" counter(fit);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--hero-accent);
}

.recruit__list b {
  color: #fff;
}

@media (max-width: 820px) {
  .recruit__panel {
    grid-template-columns: 1fr;
  }
}

/* ── 7. Inner pages ────────────────────────────────────────────── */
.page-head {
  position: relative;
  padding-block: clamp(44px, 7vw, 80px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1.1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: right 0 top 0;
  -webkit-mask-image: none;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 30%, transparent 100%);
  pointer-events: none;
}

.page-head .wrap {
  position: relative;
}

.page-head .eyebrow {
  gap: 0;
  white-space: pre;
}

.page-title {
  margin-top: 14px;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-lede {
  max-width: 40em;
  margin-top: 16px;
  font-size: clamp(16.5px, 1.6vw, 18.5px);
  color: var(--muted);
}

.aside-note {
  margin-top: 28px;
  font-size: 14.5px;
  color: var(--muted);
}

.aside-note a {
  color: var(--accent);
  font-weight: 600;
}

.aside-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Research — 연구 분야 상세 */
.area {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding-block: 36px;
  border-top: 1px solid var(--line);
}

.area:last-child {
  border-bottom: 1px solid var(--line);
}

.area__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.area__icon {
  color: var(--accent);
}

.area__icon svg {
  width: 56px;
  height: 56px;
}

.area__no {
  font-size: 12.5px;
  color: var(--muted);
}

.area__en {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
}

.area__title {
  margin-top: 4px;
  font-size: clamp(22px, 2.5vw, 27px);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.area__text {
  max-width: 44em;
  margin: 12px 0 18px;
  color: var(--ink-2);
}

.area__pubs {
  max-width: 48em;
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.area__pubs-head {
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.area__pubs li {
  font-size: 15px;
  line-height: 1.55;
}

.area__pubs li + li {
  margin-top: 10px;
}

.area__pubs a {
  font-weight: 600;
}

.area__pubs a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.area__pubs-venue {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .area {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 28px;
  }

  .area__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .area__icon svg {
    width: 46px;
    height: 46px;
  }
}

/* Research — 과제 원장(ledger) */
.ledger__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.ledger__row:last-child {
  border-bottom: 1px solid var(--line);
}

.ledger__period {
  padding-top: 2px;
  font-size: 13.5px;
  color: var(--muted);
}

.ledger__title {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.ledger__partner {
  margin-top: 2px;
  font-size: 14.5px;
  color: var(--muted);
}

.ledger__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 12px;
  max-width: 300px;
  font-size: 14px;
  color: var(--ink-2);
}

.ledger__amount {
  min-width: 82px;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.is-ongoing .ledger__title {
  color: var(--accent-strong);
}

@media (max-width: 860px) {
  .ledger__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ledger__meta {
    justify-content: flex-start;
    max-width: none;
    margin-top: 4px;
  }

  .ledger__amount {
    min-width: 0;
  }
}

/* Members */
.pi-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  max-width: 820px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pi-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pi-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius);
}

.pi-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 8px;
}

.pi-card__name {
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.pi-card__en {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.pi-card__role {
  font-weight: 600;
  color: var(--accent);
}

.pi-card__line {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

.pi-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 560px) {
  .pi-card {
    grid-template-columns: 1fr;
  }

  .pi-card__photo {
    max-width: 220px;
  }
}

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.people + .group-title {
  margin-top: 44px;
}

.group-title__count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 12px;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.person__mono {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.person__body {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.person__name {
  font-size: 16.5px;
  font-weight: 650;
}

.person__note {
  font-size: 13px;
  color: var(--muted);
}

.alumni {
  max-width: 860px;
}

.alumni__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.alumni__row:last-child {
  border-bottom: 1px solid var(--line);
}

.alumni__name {
  min-width: 68px;
  font-size: 16.5px;
  font-weight: 650;
}

.alumni__ko {
  margin-left: 4px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
}

.alumni__arrow {
  font-family: var(--font-mono);
  color: var(--accent);
}

.alumni__next {
  flex: 1 1 240px;
  color: var(--ink-2);
}

.alumni__next .tag {
  margin-left: 6px;
}

/* Publications */
.subnav {
  border-bottom: 1px solid var(--line);
}

.subnav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 13px;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.subnav__link:first-child {
  padding-left: 0;
}

.subnav__link .mono {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.subnav__link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Teaching */
.matrix-scroll {
  position: relative; /* 표 안의 .sr-only(절대 위치)가 스크롤 영역 밖으로 새지 않게 한다 */
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.matrix {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}

.matrix th,
.matrix td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
  border-bottom: 0;
}

.matrix thead th {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-2);
}

.matrix thead th.matrix__course-h,
.matrix th.matrix__course {
  padding-left: 22px;
  text-align: left;
}

.matrix thead th.matrix__course-h {
  font-family: var(--font-sans);
  font-weight: 600;
}

.matrix__name {
  display: block;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.matrix__code {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.dot {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.dot--off {
  width: 6px;
  height: 6px;
  background: var(--line);
}

.terms__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.terms__row:last-child {
  border-bottom: 1px solid var(--line);
}

.terms__label {
  padding-top: 3px;
  font-size: 14px;
  color: var(--accent);
}

.terms__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.terms__courses {
  margin-top: 10px;
}

.terms__courses li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 5px 0;
}

.terms__name {
  font-weight: 550;
}

.terms__code {
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 620px) {
  .terms__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Professor */
.profile {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.profile__side {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.profile__photo {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: center 15%;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.profile__name {
  margin-top: 20px;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.profile__en {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.profile__role {
  font-weight: 600;
  color: var(--accent);
}

.profile__links {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.profile__links li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.profile__links .mono {
  padding-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.profile__links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile__block + .profile__block {
  margin-top: clamp(44px, 6vw, 64px);
}

.profile__bio {
  max-width: 40em;
  margin-top: 18px;
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.profile__bio:first-of-type {
  font-size: clamp(19px, 2vw, 21.5px);
  font-weight: 550;
  line-height: 1.7;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.profile__block .chips {
  margin-top: 24px;
}

.profile__h {
  margin: 12px 0 18px;
  font-size: clamp(23px, 2.6vw, 28px);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.profile__more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
}

.timeline__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.timeline__row:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline__period {
  padding-top: 3px;
  font-size: 13.5px;
  color: var(--muted);
}

.timeline__main b {
  display: block;
  font-size: 17px;
  line-height: 1.5;
}

.timeline__main span {
  font-size: 15px;
  color: var(--muted);
}

.is-current .timeline__period {
  color: var(--accent);
}

@media (max-width: 860px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile__side {
    position: static;
    max-width: 420px;
  }

  .profile__photo {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .timeline__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.outside {
  padding-bottom: clamp(64px, 9vw, 112px);
}

.outside__figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 38%;
  border-radius: var(--radius-lg);
}

.outside__figure figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

@media (max-width: 620px) {
  .outside__figure img {
    aspect-ratio: 3 / 2;
    object-position: 34% 38%;
  }
}

/* 404 */
.notfound {
  padding-block: clamp(96px, 16vw, 180px);
}

.notfound__code {
  font-size: 13.5px;
  color: var(--accent);
}

.notfound__title {
  margin-top: 12px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.notfound__text {
  margin: 12px 0 32px;
  color: var(--muted);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 영어 페이지 보정 */
html[lang="en"] body {
  overflow-wrap: break-word;
}

html[lang="en"] .alumni__name {
  min-width: 188px;
}

html[lang="en"] .stats dd b {
  margin-right: 6px;
}

html[lang="en"] .hero__title {
  font-size: clamp(31px, 4.6vw, 54px);
}

/* ── 8. Motion / Print ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .hero__viz,
  .hero__actions,
  .subnav,
  .recruit__actions,
  .skip-link {
    display: none !important;
  }

  .hero,
  .recruit__panel {
    background: none !important;
    color: #000 !important;
  }

  .section {
    padding-block: 24px;
  }
}
