/* ==========================================================================
   AITEL — AI Thermal & Energy Lab · Site stylesheet
   ========================================================================== */

:root {
  /* Ink & surfaces */
  --ink: #0d1b2a;
  --text: #2a3646;
  --muted: #5d6b7e;
  --faint: #8a96a8;
  --line: #e2e7ee;
  --line-strong: #cfd6e0;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --bg-deep: #0a1624;
  --bg-deep-2: #0f2135;

  /* Brand — from the AITEL logo (cool) + heat accent (warm) */
  --brand: #13629f;
  --brand-600: #0f4f82;
  --brand-300: #4aa3d8;
  --brand-50: #eaf3fa;
  --heat: #e0552b;
  --heat-300: #f29a3c;
  --heat-50: #fdf0e9;

  /* Thermal colormap — cool → warm */
  --thermal: linear-gradient(90deg, #13629f 0%, #2f8fcf 28%, #7cc4d8 46%, #f2b046 70%, #e0552b 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 1px 1px rgba(13, 27, 42, .04);
  --shadow: 0 10px 30px -12px rgba(13, 27, 42, .18), 0 2px 6px rgba(13, 27, 42, .05);

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

  --container: 1160px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--brand-300); outline-offset: 3px; border-radius: 4px; }
::selection { background: #cfe5f4; color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.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: absolute; left: 16px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(13, 27, 42, .4); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 34px; width: auto; }
/* 연구실 로고 = Home 상단과 같은 그라데이션 AITEL 글자 (밝은 배경용은 남색에서 시작) */
.wordmark {
  display: inline-block; font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -0.045em; padding-right: .04em;
  background: linear-gradient(92deg, #0d1b2a 0%, #13629f 36%, #e9a03c 72%, #e0552b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text span { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; display: block;
  padding: 8px 12px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--thermal);
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: 0 18px 30px -20px rgba(13, 27, 42, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 8px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"]::after { left: 8px; right: auto; width: 28px; bottom: 6px; }
  .brand-text span { display: none; }
}

/* ---------- Generic sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-sm { padding: 48px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--thermal); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 12px; }
.section-head p { color: var(--muted); max-width: 560px; margin: 10px 0 0; }
.section-head .link-arrow { flex-shrink: 0; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef3f8; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
  background: var(--brand-50); color: var(--brand-600);
}
.tag[data-kind="Award"] { background: var(--heat-50); color: #b23d17; }
.tag[data-kind="Scholarship"] { background: #fff5e0; color: #9a5b00; }
.tag[data-kind="Retreat"] { background: #ecf7f1; color: #23734a; }
.tag[data-kind="Conference"] { background: var(--brand-50); color: var(--brand-600); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--bg-deep); color: #fff;
  padding: 72px 0 64px;
}
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--thermal); z-index: 2; }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; z-index: 0; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--brand-300); }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 52px); margin-top: 14px; letter-spacing: -0.025em; }
.page-hero p { color: rgba(255, 255, 255, .78); margin: 14px 0 0; max-width: 680px; font-size: 17px; }
@media (max-width: 640px) { .page-hero { padding: 52px 0 44px; } .page-hero p { font-size: 16px; } }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 85% 10%, #13314f 0%, var(--bg-deep) 55%);
  color: #fff;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(10, 22, 36, .92) 0%, rgba(10, 22, 36, .6) 34%, rgba(10, 22, 36, 0) 62%); }
@media (max-width: 760px) { .hero-shade { background: linear-gradient(180deg, rgba(10, 22, 36, .35) 0%, rgba(10, 22, 36, .78) 30%, rgba(10, 22, 36, .78) 72%, rgba(10, 22, 36, .3) 100%); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--thermal); }
.hero-inner { padding-top: 96px; padding-bottom: 104px; }
.hero .eyebrow { color: var(--brand-300); }
.hero-title {
  margin-top: 22px; color: #fff;
  font-size: clamp(64px, 12vw, 148px); font-weight: 800; line-height: .95; letter-spacing: -0.045em;
}
.hero-title .grad { background: linear-gradient(92deg, #ffffff 0%, #cfe7f6 45%, #f5c27a 78%, #ef7a4b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 22px 0 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: #fff; letter-spacing: -0.02em; }
.hero-sub-kr { margin-top: 6px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .72); }
.hero-actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero-legend {
  position: absolute; right: 24px; bottom: 28px; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .06em;
}
.hero-legend i { display: block; width: 120px; height: 6px; border-radius: 3px; background: var(--thermal); }
@media (max-width: 640px) {
  .hero-inner { padding-top: 72px; padding-bottom: 88px; }
  .hero-legend { left: 16px; right: auto; bottom: 22px; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .08em; }
}
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10, 22, 36, .9) 0%, rgba(10, 22, 36, .4) 45%, rgba(10, 22, 36, 0) 70%); }
@media (max-width: 760px) { .page-hero::before { background: rgba(10, 22, 36, .55); } }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.intro h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; margin-top: 14px; }
.intro-body { font-size: 17.5px; color: var(--text); padding-top: 36px; }
.intro-body .en { color: var(--muted); font-size: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 880px) { .intro { grid-template-columns: 1fr; gap: 8px; } .intro-body { padding-top: 16px; } }

/* Latest news (home) */
.latest {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  color: inherit;
}
.latest:hover { box-shadow: var(--shadow); color: inherit; }
.latest-media { position: relative; background: var(--bg-soft); aspect-ratio: 16 / 9; overflow: hidden; }
.latest-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.latest:hover .latest-media img { transform: scale(1.02); }
.latest-body { padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.latest-label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--heat); font-weight: 600; }
.latest-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 0 4px rgba(224, 85, 43, .15); }
.latest-body h3 { font-size: 24px; letter-spacing: -0.02em; }
.latest-body p { color: var(--muted); }
.latest-body .link-arrow { margin-top: auto; }
.latest-more { list-style: none; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.latest-more li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--text); }
.latest-more li .tag { flex-shrink: 0; height: 20px; font-size: 10.5px; padding: 0 8px; }
@media (max-width: 880px) { .latest { grid-template-columns: 1fr; } .latest-body { padding: 26px 22px 24px; } }

/* ---------- Research area cards ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 26px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.area:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.area::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--thermal); opacity: 0; transition: opacity .2s; }
.area:hover::before { opacity: 1; }
.area-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--brand); letter-spacing: .08em; }
.area-icon { width: 100%; height: 150px; margin: 18px 0 20px; border-radius: 12px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--line); }
.area-icon img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .5s; }
.area-icon.contain { background: #fff; }
.area-icon { position: relative; }
.area-credit { position: absolute; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .85); font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.area-icon.contain img { object-fit: contain; padding: 6px; }
.area:hover .area-icon img { transform: scale(1.03); }
.area h3 { font-size: 21px; letter-spacing: -0.02em; }
.area p { margin-top: 10px; color: var(--text); font-size: 15.5px; }
.area .en { margin-top: auto; padding-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 960px) { .areas { grid-template-columns: 1fr; } .area-icon { height: 170px; } }

/* 연구 흐름 한 줄 요약 (Home) */
.flow-mini { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.flow-mini li { position: relative; display: flex; flex-direction: column; gap: 4px; padding-right: 22px; font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.flow-mini li span { font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--brand); letter-spacing: .08em; }
.flow-mini li + li::before { content: ""; position: absolute; left: -16px; top: 22px; width: 7px; height: 7px; border-top: 1.5px solid var(--faint); border-right: 1.5px solid var(--faint); transform: rotate(45deg); }
@media (max-width: 720px) {
  .flow-mini { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .flow-mini li + li::before { display: none; }
}

/* ---------- Research framework (home) ---------- */
.framework { background: var(--bg-deep); color: #fff; position: relative; overflow: hidden; }
.framework .section-head h2 { color: #fff; }
.framework .section-head p { color: rgba(255, 255, 255, .7); }
.framework .eyebrow { color: var(--brand-300); }

.fw-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; margin-bottom: 28px; }
.fw-steps::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 23px; height: 2px; border-radius: 2px;
  background: var(--thermal); opacity: .9;
}
.fw-step {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: none; border: 0; color: rgba(255, 255, 255, .62); cursor: pointer; padding: 0 4px 6px; font: inherit; text-align: center;
}
.fw-step .n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 15px;
  background: var(--bg-deep); border: 2px solid rgba(255, 255, 255, .22); color: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.fw-step .t { font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.fw-step:hover { color: #fff; }
.fw-step:hover .n { border-color: rgba(255, 255, 255, .6); }
.fw-step[aria-selected="true"] { color: #fff; }
.fw-step[aria-selected="true"] .n { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .1); transform: scale(1.06); }
.fw-step:nth-child(1)[aria-selected="true"] .n { box-shadow: 0 0 0 6px rgba(19, 98, 159, .45); }
.fw-step:nth-child(2)[aria-selected="true"] .n { box-shadow: 0 0 0 6px rgba(47, 143, 207, .4); }
.fw-step:nth-child(3)[aria-selected="true"] .n { box-shadow: 0 0 0 6px rgba(124, 196, 216, .35); }
.fw-step:nth-child(4)[aria-selected="true"] .n { box-shadow: 0 0 0 6px rgba(242, 176, 70, .35); }
.fw-step:nth-child(5)[aria-selected="true"] .n { box-shadow: 0 0 0 6px rgba(224, 85, 43, .4); }

.fw-panel {
  background: #fff; color: var(--text); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.fw-panel[hidden] { display: none; }
.fw-figure { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 32px 22px; }
.fw-shot { display: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.fw-shot.is-active { display: block; position: relative; }
.fw-shot::after { content: "크게 보기 ⤢"; position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(13, 27, 42, .72); color: #fff; font-size: 12px; font-weight: 600; opacity: .85; transition: opacity .15s; }
.fw-shot:hover::after { opacity: 1; }
.fw-shot img { width: 100%; height: auto; }
/* 원본 해상도가 낮은 그림은 과하게 늘어나지 않도록 가운데 정렬 */
.fw-shot.fit img { width: auto; max-width: min(100%, 940px); margin: 0 auto; }
.fw-figure figcaption { margin-top: 14px; font-size: 14px; color: var(--text); line-height: 1.6; }
.fw-cap { display: none; }
.fw-cap.is-active { display: block; }
.fw-cap b { color: var(--ink); font-weight: 700; }
.fw-cap i { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: var(--faint); }
.fw-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fw-thumbs button {
  height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .15s;
}
.fw-thumbs button:hover { border-color: var(--ink); color: var(--ink); }
.fw-thumbs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.fw-thumbs button::before { content: counter(fwthumb, decimal-leading-zero) "  "; counter-increment: fwthumb; font-family: var(--mono); font-size: 11px; opacity: .6; }
.fw-thumbs { counter-reset: fwthumb; }

/* 키워드 도식 — 발표자료 그림 대신 단어·테마만 보여주는 단계(03, 05) */
.dg { display: grid; gap: 28px; }
.dg-title { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.dg-loop { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.dg-loop li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 10px; background: #fff; }
.dg-loop li + li::before { content: ""; position: absolute; left: -17px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: translateY(-50%) rotate(45deg); }
.dg-loop .no { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--c); }
.dg-loop b { font-size: 15px; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.dg-loop li > span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.dg-return { position: relative; height: 22px; margin: 10px 10% 12px; border: 2px solid var(--line-strong); border-top: 0; border-radius: 0 0 12px 12px; }
.dg-return::before { content: ""; position: absolute; left: -7px; top: -9px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 9px solid var(--line-strong); }
.dg-return span { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); background: #fff; padding: 0 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.dg-axis { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 10px; }
.dg-axis::before { content: ""; order: 1; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--line-strong), var(--brand)); }
.dg-axis span:last-child { order: 2; }
.dg-levels { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dg-levels li { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: #f4f6f9; }
.dg-levels li:nth-child(2) { background: #ecf2f8; }
.dg-levels li:nth-child(3) { background: #e2ecf5; }
.dg-levels li:nth-child(4) { background: #d7e6f2; }
.dg-levels b { font-size: 14px; color: var(--ink); line-height: 1.3; }
.dg-levels span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.dg-tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dg-tiles li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 13px 19px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dg-tiles li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.dg-tiles b { font-size: 15px; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; }
.dg-tiles span { font-size: 13px; color: var(--text); }
.dg-tiles em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.dg-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.dg-band b { font-size: 14px; margin-right: 6px; }
.dg-band span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .88); }
@media (max-width: 960px) {
  .dg-levels, .dg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dg { gap: 22px; }
  .dg-loop { grid-template-columns: 1fr; gap: 14px; }
  .dg-loop li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 10px 12px; }
  .dg-loop li > span:last-child { flex-basis: 100%; }
  .dg-loop li + li::before { left: 50%; top: -12px; width: 7px; height: 7px; transform: translateX(-50%) rotate(135deg); }
  .dg-return { height: auto; margin: 10px 0 0; border: 0; }
  .dg-return::before { display: none; }
  .dg-return span { position: static; transform: none; padding: 0; }
  .dg-return span::before { content: "↺ "; }
  .dg-levels, .dg-tiles { grid-template-columns: 1fr; }
}
.fw-body { padding: 30px 32px 26px; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 8px 48px; align-items: start; }
.fw-intro { position: sticky; top: calc(var(--header-h) + 20px); }
.fw-groups > .fw-group:first-child { margin-top: 0; }
.fw-group h4 .sub { text-transform: none; letter-spacing: 0; }
.fw-body .fw-nav { grid-column: 1 / -1; }
.fw-body .k { font-family: var(--mono); font-size: 12px; color: var(--brand); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.fw-body h3 { font-size: 26px; margin-top: 8px; letter-spacing: -0.025em; }
.fw-body .lead { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.fw-group { margin-top: 22px; }
.fw-group h4 { font-size: 12px; font-family: var(--mono); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.fw-items { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fw-items li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35;
}
.fw-items li small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.fw-items.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fw-goals { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fw-goals li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 13.5px; font-weight: 600; }
.fw-goals li svg { width: 14px; height: 14px; }
.fw-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.fw-nav button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--brand); cursor: pointer; padding: 6px 0; }
.fw-nav button:disabled { color: var(--faint); cursor: default; }
.fw-nav button svg { width: 16px; height: 16px; }
.fw-nav .count { font-family: var(--mono); font-size: 12px; color: var(--faint); }

@media (max-width: 960px) {
  .fw-body { grid-template-columns: 1fr; }
  .fw-intro { position: static; }
  .fw-groups { margin-top: 14px; }
}
@media (max-width: 720px) {
  .fw-step .t { display: none; }
  .fw-steps::before { left: 10%; right: 10%; }
  .fw-body { padding: 24px 20px 22px; }
  .fw-items, .fw-items.cols-3 { grid-template-columns: 1fr 1fr; }
  .fw-figure { padding: 14px 14px 16px; }
  .fw-figure figcaption { font-size: 13px; }
}
@media (max-width: 400px) { .fw-items, .fw-items.cols-3 { grid-template-columns: 1fr; } }

/* ---------- Quick links ---------- */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.quick a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--ink); }
.quick a .kr { display: block; font-weight: 700; font-size: 17px; }
.quick a .en { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: .04em; }
.quick a svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; transition: transform .15s; }
.quick a:hover svg { transform: translateX(3px); }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr; } }

/* ---------- Join band ---------- */
.join {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f2135 0%, #0a1624 60%); color: #fff;
  padding: 48px 56px 56px;
}
.join-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.join-pane { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-top: 16px; }
.join-pane[hidden] { display: none; }

/* EN / 한국어 탭 */
.lang-tabs { display: inline-flex; flex-shrink: 0; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.lang-tabs button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .72); cursor: pointer; transition: background .15s, color .15s; }
.lang-tabs button:hover { color: #fff; }
.lang-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.lang-tabs.light { background: var(--bg-soft); border-color: var(--line); }
.lang-tabs.light button { color: var(--muted); }
.lang-tabs.light button:hover { color: var(--ink); }
.lang-tabs.light button[aria-selected="true"] { background: var(--ink); color: #fff; }
.join::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--thermal); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none; }
.join .glow { position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 85, 43, .35), transparent 65%); pointer-events: none; }
.join h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.join p { color: rgba(255, 255, 255, .78); margin-top: 14px; }
.join .en { color: rgba(255, 255, 255, .58); font-size: 15px; }
.join-side { position: relative; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.join-mail { font-family: var(--mono); font-size: 14px; color: rgba(255, 255, 255, .7); }
.join-mail a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.join-mail a:hover { border-color: #fff; color: #fff; }
@media (max-width: 880px) { .join { padding: 32px 24px 40px; } .join-pane { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- PI ---------- */
.pi-card { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.pi-photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 4.6; position: sticky; top: calc(var(--header-h) + 24px); }
.pi-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.pi-name { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; }
.pi-name small { display: inline-block; margin-left: 12px; font-size: .55em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pi-role { margin-top: 8px; font-size: 18px; color: var(--text); }
.pi-role strong { color: var(--ink); }
.pi-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); font-size: 14.5px; font-weight: 600; background: #fff; transition: border-color .15s, color .15s; }
.chip-link:hover { border-color: var(--brand); color: var(--brand); }
.chip-link svg { width: 16px; height: 16px; }
.cv-block { margin-top: 48px; }
.cv-block h2 { font-size: 20px; display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cv-block h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--thermal); }
.cv-list { list-style: none; }
.cv-list li { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.cv-list li:last-child { border-bottom: 0; }
.cv-list .when { font-family: var(--mono); font-size: 13.5px; color: var(--brand); font-weight: 500; padding-top: 2px; }
.cv-list .what { color: var(--ink); font-weight: 600; }
.cv-list .what span { display: block; font-weight: 400; color: var(--muted); font-size: 14.5px; }
@media (max-width: 880px) {
  .pi-card { grid-template-columns: 1fr; gap: 28px; }
  .pi-photo { position: static; max-width: 260px; }
  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Members ---------- */
.welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--brand-50), var(--heat-50));
  border: 1px solid var(--line); margin-bottom: 48px;
}
.welcome strong { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.welcome span { display: block; margin-top: 4px; color: var(--text); font-size: 16px; }
.group-title { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 22px; font-size: 22px; }
.group-title .count { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 500; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 56px; }
.member { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.member:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.member-photo { aspect-ratio: 1 / 1.05; background: var(--bg-soft); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.member-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.member-name { font-size: 20px; letter-spacing: -0.02em; }
.member-name small { margin-left: 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.member-mail { font-family: var(--mono); font-size: 12.5px; color: var(--brand); word-break: break-all; }
.member-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.member-topics li { font-size: 12.5px; line-height: 1.35; padding: 5px 9px; border-radius: 8px; background: var(--bg-soft); color: var(--text); }
.member-quote { margin-top: auto; padding-top: 16px; font-size: 14.5px; color: var(--ink); display: flex; gap: 8px; }
.member-quote::before { content: "“"; font-size: 28px; line-height: .9; color: var(--heat); font-weight: 700; }
@media (max-width: 560px) {
  .members { grid-template-columns: 1fr; gap: 12px; }
  .member { flex-direction: row; }
  .member-photo { width: 118px; flex-shrink: 0; aspect-ratio: auto; }
  .member-body { padding: 14px 16px 16px; min-width: 0; }
  .member-name { font-size: 18px; }
  .member-name small { display: block; margin: 2px 0 0; }
  .member-quote { padding-top: 10px; }
}

/* ---------- Research ---------- */
.projects { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.projects table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.projects th { text-align: left; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.projects td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.projects tr:last-child td { border-bottom: 0; }
.projects .p-title { color: var(--ink); font-weight: 650; }
.projects .p-title span { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.projects .num { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.projects .amount { text-align: right; }
.role { display: inline-flex; height: 24px; align-items: center; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--brand-50); color: var(--brand-600); white-space: nowrap; }
.role.alt { background: var(--bg-soft); color: var(--muted); }
.projects-note { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: right; }
/* 간략한 과제 목록 (과제명 + 지원기관) */
.pj-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-list > li { display: flex; flex-direction: column; gap: 2px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.pj-list > li:nth-child(odd) { border-right: 1px solid var(--line); }
.pj-list > li:last-child, .pj-list > li:nth-last-child(-n+2):nth-child(odd) { border-bottom: 0; }
.pj-t { font-size: 15px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.pj-a { font-size: 13.5px; color: var(--muted); }
.pj-sub { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pj-sub li { padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 12.5px; font-weight: 600; }
@media (max-width: 720px) {
  .pj-list { grid-template-columns: 1fr; }
  .pj-list > li:nth-child(odd) { border-right: 0; }
  .pj-list > li:nth-last-child(-n+2):nth-child(odd):not(:last-child) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .projects table, .projects tbody, .projects tr, .projects td { display: block; width: 100%; }
  .projects thead { display: none; }
  .projects tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .projects tr:last-child { border-bottom: 0; }
  .projects td { padding: 0; border: 0; }
  .projects td + td { margin-top: 6px; }
  .projects .amount { text-align: left; }
  .projects td[data-label]::before { content: attr(data-label) " · "; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
}

.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.topic:first-of-type { border-top: 0; padding-top: 8px; }
.topic:nth-of-type(even) .topic-media { order: 2; }
.topic-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.topic-media img { width: 100%; border-radius: 8px; }
.topic-media a { display: block; cursor: zoom-in; }
.topic-num { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--brand); letter-spacing: .1em; }
.topic h3 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 10px; letter-spacing: -0.025em; }
.topic .en-desc { margin-top: 16px; color: var(--text); }
.topic .kr-desc { margin-top: 12px; color: var(--muted); font-size: 15.5px; padding-left: 14px; border-left: 2px solid var(--line-strong); }
@media (max-width: 880px) { .topic { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; } .topic:nth-of-type(even) .topic-media { order: 0; } }

/* ---------- Publications ---------- */
.pub-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.pub-legend { font-size: 14px; color: var(--muted); }
.pub-legend b { color: var(--ink); font-weight: 700; }
.search { position: relative; width: min(320px, 100%); }
.search input { width: 100%; height: 42px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 16px 0 40px; font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(19, 98, 159, .15); }
.search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--faint); }
.pub-section { margin-bottom: 56px; }
.pub-section h2 { font-size: 22px; display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.pub-section h2 .roman { font-family: var(--mono); color: var(--brand); font-size: 16px; }
.pub-section h2 .count { margin-left: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 500; }
.pub-list { list-style: none; counter-reset: pub; }
.pub {
  display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.pub-idx { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 3px; }
.pub-title { font-size: 16.5px; font-weight: 650; color: var(--ink); line-height: 1.5; }
.pub-authors { margin-top: 6px; font-size: 14.5px; color: var(--text); }
.pub-authors .au-pi { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.pub-authors .au-lab { font-weight: 700; color: var(--ink); }
.pub-venue { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.pub-venue em { color: var(--brand-600); font-style: italic; }
.pub-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.badge.review { background: #fff7e6; color: #95600b; border-color: #f6e1b5; }
.badge.if { background: var(--brand-50); color: var(--brand-600); border-color: #d2e6f4; }
.badge.year { background: #fff; }
.pub-empty { padding: 28px 0; color: var(--muted); }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- News ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .15s; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter .c { font-family: var(--mono); font-size: 12px; opacity: .65; margin-left: 4px; }
.news-list { display: grid; gap: 28px; }
.news-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; scroll-margin-top: calc(var(--header-h) + 20px); }
.news-item[hidden] { display: none; }
.news-media { background: var(--bg-soft); display: grid; gap: 4px; grid-auto-flow: column; grid-auto-columns: 1fr; min-height: 280px; }
.news-media a, .news-media > div { display: block; overflow: hidden; position: relative; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-media a:hover img { transform: scale(1.03); }
.news-media.logo { place-items: center; background: #fff; border-right: 1px solid var(--line); }
/* 사진 3장 이상: 첫 사진 크게 + 나머지 작은 사진 한 줄 */
.news-media.multi { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(240px, 1fr) 120px; }
.news-media.multi > a:first-child { grid-column: 1 / -1; }
.news-media.multi > a:nth-child(n+5) { display: none; }
/* 사진 없는 소식의 표지 */
.news-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; width: 100%; height: 100%; min-height: inherit; padding: 26px 24px; overflow: hidden; background: radial-gradient(circle at 85% 15%, rgba(224, 85, 43, .28), transparent 55%), linear-gradient(135deg, #0f2135 0%, #0a1624 70%); color: #fff; }
.news-media > .news-cover { display: flex; }
.news-cover::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--thermal); }
.news-cover span { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-300); }
.news-cover b { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; letter-spacing: -0.02em; }
.news-cover small { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.news-media.logo img { width: auto; max-width: 60%; height: auto; object-fit: contain; }
.news-body { padding: 32px 32px 30px; display: flex; flex-direction: column; gap: 12px; }
.news-body h2 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.4; }
.news-body .who { font-size: 14.5px; color: var(--brand-600); font-weight: 600; }
.news-body p { color: var(--text); }
.news-body .more { margin-top: auto; padding-top: 8px; font-size: 14px; }
@media (max-width: 860px) { .news-item { grid-template-columns: 1fr; } .news-media { min-height: 220px; } .news-media.logo { border-right: 0; border-bottom: 1px solid var(--line); min-height: 160px; } .news-body { padding: 24px 22px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: #fff; }
.panel h2 { font-size: 22px; letter-spacing: -0.02em; }
.panel h2 + p { margin-top: 10px; color: var(--muted); }
.lang-block + .lang-block { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.lang-block .lang { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--brand); font-weight: 600; text-transform: uppercase; }
.lang-block h3 { margin-top: 8px; font-size: 18.5px; }
.lang-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lang-head .lang { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--brand); font-weight: 600; text-transform: uppercase; }
.lang-block[data-lang-pane] { margin-top: 10px; padding-top: 0; border-top: 0; }
.lang-block[hidden] { display: none; }
.lang-block p { margin-top: 8px; color: var(--text); }
.kv { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.kv li { display: grid; grid-template-columns: 128px 1fr; gap: 12px; font-size: 15px; }
.kv .k { color: var(--muted); font-size: 13.5px; font-weight: 600; padding-top: 1px; }
.kv .v { color: var(--ink); }
@media (max-width: 520px) { .kv li { grid-template-columns: 1fr; gap: 0; } }
.info-list { list-style: none; display: grid; gap: 0; margin-top: 18px; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.info-list li:last-child { border-bottom: 0; }
.info-list .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.info-list .ic svg { width: 19px; height: 19px; }
.info-list .lbl, .info-list .val { display: block; }
.info-list .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.info-list .val { color: var(--ink); font-weight: 600; }
.info-list .val span { display: block; font-weight: 400; color: var(--text); }
.map { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); aspect-ratio: 21 / 8; min-height: 300px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } .panel { padding: 24px 20px; } .map { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-deep); color: rgba(255, 255, 255, .7); padding: 64px 0 32px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--thermal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; width: auto; filter: brightness(1.25); }
.footer-brand .wordmark { font-size: 36px; background-image: linear-gradient(92deg, #ffffff 0%, #cfe7f6 45%, #f5c27a 78%, #ef7a4b 100%); }
.footer-brand p { margin-top: 14px; font-size: 14.5px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 13px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255, 255, 255, .5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 12, 20, .9); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 8px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-family: var(--mono); font-size: 96px; font-weight: 600; background: var(--thermal); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.notfound p { color: var(--muted); margin: 14px 0 28px; }
