/* ═══════════════════════════════════════════════
   LAC Design System — styles_new.css
   Shared stylesheet for all LAC pages
   ═══════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
img  { display: block; max-width: 100%; }

/* ── Design Tokens ───────────────────────────── */
:root {
  /* Colors */
  --navy:   #08152B;
  --navy-2: #0D1F3C;
  --teal:   #0ABFBC;
  --teal-2: #07898A;
  --amber:  #F5A623;
  --bg:     #F4F6F9;
  --white:  #FFFFFF;
  --gray:   #8898AA;
  --text:   #1C2B40;
  --border: #E2E8F0;

  /* Misc */
  --radius: 12px;
  --shadow: 0 4px 24px rgba(8,21,43,.10);
}

/* ── Typography Scale ────────────────────────── */
/* Display — DM Serif Display */
.t-display-xl {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.1;
}
.t-display-lg {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
}
.t-display-md {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
}
.t-display-sm {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
}

/* Body — Inter */
.t-body-lg  { font-size: 1.05rem; font-weight: 300; line-height: 1.75; }
.t-body-md  { font-size: .97rem; line-height: 1.5; }
.t-body-sm  { font-size: .88rem; line-height: 1.7; }
.t-body-xs  { font-size: .82rem; line-height: 1.5; }

/* Labels */
.t-label {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.t-label-sm {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ── Layout ──────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section   { padding: 96px 0; }
.section--dark { background: var(--navy-2); }

.section__header { text-align: center; margin-bottom: 60px; }
.section__eyebrow {
  display: inline-block; margin-bottom: 12px;
  color: var(--teal); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.section__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
}
.section--dark .section__title { color: var(--white); }
.section__desc { margin-top: 14px; color: var(--gray); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── Navigation ──────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(8,21,43,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10,191,188,.15);
  transition: background .3s;
}
.nav.scrolled { background: rgba(8,21,43,.97); }
.nav--solid   { background: rgba(8,21,43,.97); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; padding: 0 28px;
  max-width: 1160px; margin: 0 auto;
}
.nav__logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem; color: var(--white); letter-spacing: .01em;
}
.nav__logo span { color: var(--teal); }
.nav__menu { display: flex; gap: 8px; }
.nav__menu a {
  color: rgba(255,255,255,.72); font-size: .875rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav__menu a:hover  { color: var(--white); background: rgba(10,191,188,.14); }
.nav__menu a.active { color: var(--teal); }
.nav__kist-logo { display: flex; align-items: center; margin-left: 16px; }
.nav__kist-logo img { height: 34px; width: auto; display: block; }

/* ── Mobile Nav ──────────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(8,21,43,.97); flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--white); font-size: 1.3rem; font-weight: 500; }
.mobile-nav a:hover { color: var(--teal); }

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 8px;
  font-size: .9rem; font-weight: 600;
  transition: transform .15s, background .2s, box-shadow .2s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--teal); color: var(--navy);
  box-shadow: 0 4px 18px rgba(10,191,188,.35);
}
.btn--primary:hover { background: #08AFAD; box-shadow: 0 6px 28px rgba(10,191,188,.5); }

.btn--outline {
  border: 1.5px solid rgba(255,255,255,.3); color: var(--white); background: transparent;
}
.btn--outline:hover { border-color: var(--teal); color: var(--teal); background: rgba(10,191,188,.06); }

.btn--teal-outline {
  border: 1.5px solid rgba(10,191,188,.4); color: var(--teal); background: transparent;
}
.btn--teal-outline:hover { border-color: var(--teal); background: rgba(10,191,188,.1); }

.btn--sm { padding: 8px 18px; font-size: .82rem; }

/* ── Tags ────────────────────────────────────── */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.tag--teal  { background: rgba(10,191,188,.12); color: var(--teal-2); }
.tag--amber { background: rgba(245,166,35,.14); color: #b5760e; }

/* ── Role Badges ─────────────────────────────── */
.role-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-left: 7px; vertical-align: middle;
  white-space: nowrap;
}
.role-badge--first { background: rgba(10,191,188,.18); color: var(--teal-2); border: 1px solid rgba(10,191,188,.3); }
.role-badge--corr  { background: rgba(245,166,35,.15); color: #9a6008;       border: 1px solid rgba(245,166,35,.3); }
.role-badge--co    { background: rgba(136,152,170,.1);  color: var(--gray);   border: 1px solid rgba(136,152,170,.2); }

/* ── JCR Category Colours ────────────────────── */
.jcr--multi-sci    { color: #c0392b; }
.jcr--chem-phys    { color: #1a6fa8; }
.jcr--chem-multi   { color: #7d3c98; }
.jcr--eng-chem     { color: #ca6f1e; }
.jcr--green-sust   { color: #1e8449; }
.jcr--phys-multi   { color: #117a65; }
.jcr--mater-sci    { color: #616a6b; }
.jcr--energy-fuels { color: #b7770d; }
.jcr--chem-appl    { color: #0e7d6e; }

.jcr-category {
  display: inline-block; font-size: .62rem; font-weight: 600;
  letter-spacing: .04em; text-transform: none; font-style: italic;
  opacity: .75; border-left: 1.5px solid currentColor;
  padding-left: 6px; margin-left: 2px;
}

/* ── Card — Research ─────────────────────────── */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.research-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(8,21,43,.12);
  border-color: var(--teal);
}
.research-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(10,191,188,.15), rgba(10,191,188,.04));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; font-size: 1.5rem;
}
.research-card__title { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.research-card__desc  { color: var(--gray); font-size: .88rem; line-height: 1.7; }

/* ── Card — Publication (dark bg) ───────────── */
.pub-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 28px 32px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: start;
  transition: background .2s, border-color .2s;
}
.pub-card:hover { background: rgba(10,191,188,.06); border-color: rgba(10,191,188,.3); }
.pub-card__num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem; color: rgba(10,191,188,.2); line-height: 1;
  min-width: 48px; text-align: right;
}
.pub-card__journal {
  font-size: .75rem; font-weight: 600; color: var(--amber);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.pub-card__title   { color: var(--white); font-weight: 500; font-size: 1rem; line-height: 1.5; margin-bottom: 8px; }
.pub-card__authors { color: rgba(255,255,255,.42); font-size: .82rem; }
.pub-card__link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--teal); font-size: .8rem; font-weight: 600;
  white-space: nowrap; padding-top: 4px;
  transition: gap .2s;
}
.pub-card__link:hover { gap: 9px; }

/* ── Publication Item (light bg) ────────────── */
.pub-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px;
  margin-bottom: 12px; display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px; align-items: start;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.pub-item:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 28px rgba(10,191,188,.1);
  transform: translateX(3px);
}
.pub-item__idx {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: rgba(10,191,188,.3);
  line-height: 1; text-align: right; padding-top: 3px;
}
.pub-item__journal {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 7px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.pub-item__title {
  font-weight: 600; font-size: .97rem; color: var(--text);
  line-height: 1.5; margin-bottom: 8px;
}
.pub-item__authors { font-size: .82rem; color: var(--gray); line-height: 1.5; }
.pub-item__authors strong { color: var(--teal-2); font-weight: 600; }
.pub-item__link {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--teal); font-size: .8rem; font-weight: 600;
  white-space: nowrap; padding-top: 2px; transition: gap .2s;
}
.pub-item__link:hover { gap: 9px; }

/* ── Card — Member ───────────────────────────── */
.members-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.member-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 28px 24px; text-align: center; width: 200px;
  transition: background .2s, border-color .2s;
}
.member-card:hover { background: rgba(10,191,188,.08); border-color: rgba(10,191,188,.3); }
.member-card__avatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--navy); font-weight: 700;
}
.member-card__name { color: var(--white); font-weight: 600; font-size: .95rem; }
.member-card__role { color: var(--gray); font-size: .78rem; margin-top: 4px; }

/* ── Card — News ─────────────────────────────── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 30px; border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; gap: 20px;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.news-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--teal);
  transform: scaleY(0); transform-origin: top; transition: transform .3s;
}
.news-card:hover::before { transform: scaleY(1); }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 36px rgba(8,21,43,.13); }
.news-card__date {
  min-width: 68px; color: var(--teal); font-weight: 700;
  font-size: .88rem; padding-top: 2px;
}
.news-card__content { flex: 1; }
.news-card__title { font-weight: 600; font-size: .97rem; margin-bottom: 6px; }
.news-card__body  { font-size: .86rem; color: var(--gray); line-height: 1.6; }

/* ── Page Header (sub-page) ──────────────────── */
.page-header {
  background: var(--navy);
  padding: 130px 0 72px;
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(10,191,188,.12) 0%, transparent 60%);
  pointer-events: none;
}
.page-header__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.page-header__eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--teal); }
.page-header__title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white); line-height: 1.15; margin-bottom: 14px;
}
.page-header__sub   { color: rgba(255,255,255,.5); font-size: .95rem; max-width: 480px; }
.page-header__stats { display: flex; gap: 40px; margin-top: 40px; }
.page-header__stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; color: var(--white); line-height: 1;
}
.page-header__stat-num span  { color: var(--teal); }
.page-header__stat-label { font-size: .75rem; color: var(--gray); margin-top: 4px; letter-spacing: .04em; }

/* ── Filter Bar ──────────────────────────────── */
.filter-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 66px; z-index: 100;
  box-shadow: 0 2px 12px rgba(8,21,43,.06);
}
.filter-bar__inner {
  display: flex; align-items: center; gap: 8px;
  max-width: 1160px; margin: 0 auto; padding: 14px 28px;
  overflow-x: auto;
}
.filter-btn {
  white-space: nowrap; padding: 7px 16px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: transparent; color: var(--gray);
  transition: all .2s;
}
.filter-btn:hover  { border-color: var(--teal); color: var(--teal); }
.filter-btn.active { background: var(--teal); border-color: var(--teal); color: var(--navy); }

/* ── Year Badge ──────────────────────────────── */
.year-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.year-badge__num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem; color: var(--navy); line-height: 1;
}
.year-badge__line { flex: 1; height: 1px; background: var(--border); min-width: 60px; }

/* ── Stat Numbers ────────────────────────────── */
.stat__num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; color: var(--white); line-height: 1;
}
.stat__num span  { color: var(--teal); }
.stat__label { font-size: .78rem; color: var(--gray); margin-top: 4px; letter-spacing: .04em; }

/* ── Eyebrow / Divider ───────────────────────── */
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow-line::before { content: ''; width: 28px; height: 2px; background: var(--teal); }

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--navy); border-top: 1px solid rgba(10,191,188,.15);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
.footer__brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: var(--white); margin-bottom: 12px;
}
.footer__brand-name span { color: var(--teal); }
.footer__kist-logo { margin-bottom: 18px; }
.footer__kist-logo img { height: 60px; width: auto; display: block; }
.footer__desc { color: rgba(255,255,255,.4); font-size: .84rem; line-height: 1.7; }
.footer__col-title {
  color: var(--white); font-weight: 600; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a  { color: rgba(255,255,255,.45); font-size: .84rem; transition: color .2s; }
.footer__links a:hover { color: var(--teal); }
.footer__contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  color: rgba(255,255,255,.45); font-size: .84rem;
  margin-bottom: 12px; line-height: 1.5;
}
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.footer__social {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: .78rem; font-weight: 600;
  transition: border-color .2s, color .2s, background .2s;
}
.footer__social:hover { border-color: var(--teal); color: var(--teal); background: rgba(10,191,188,.1); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy { color: rgba(255,255,255,.28); font-size: .8rem; }
.footer__kist-badge {
  background: rgba(10,191,188,.1); border: 1px solid rgba(10,191,188,.2);
  border-radius: 6px; padding: 5px 12px;
  color: var(--teal); font-size: .75rem; font-weight: 600;
}

/* ── Scroll Reveal (applied by JS) ──────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-x {
  opacity: 0; transform: translateX(-12px);
  transition: opacity .4s ease, transform .4s ease;
}
.reveal-x.visible { opacity: 1; transform: translateX(0); }

/* ── pub-section filter helper ───────────────── */
.pub-section { padding: 64px 0 0; }
.pub-section:last-of-type { padding-bottom: 80px; }
.pub-section.hidden { display: none; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .nav__menu, .nav__btn, .nav__kist-logo { display: none; }
  .hamburger { display: flex; }
  .news-grid  { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid  { grid-template-columns: 1fr 1fr; gap: 36px; }
  .pub-card { grid-template-columns: 1fr; }
  .pub-card__num { display: none; }
  .pub-item { grid-template-columns: 1fr; }
  .pub-item__idx { display: none; }
  .page-header__stats { gap: 24px; }
}
@media (max-width: 600px) {
  .research-grid { grid-template-columns: 1fr; }
  .footer__grid  { grid-template-columns: 1fr; }
}

/* ── LAC 로고 마크 — network fragment ──────────
   "LAC" 뒤의 마침표를 서로 연결된 점 3개로 대체.
   히어로 배경의 네트워크와 같은 문법(가는 선 · 흐린 연결 · 발광 링).
   꼭짓점 원자는 활성 자리를 뜻하며 --lac-apex 색으로 구분된다.
   .logo-mark--mono 를 함께 주면 전체가 한 색으로 찍힌다(흑백 인쇄용). */
.logo-mark {
  --lac-apex: #9AD1FF;              /* 활성 자리 원자 색 (아이스 블루) */
  height: .58em; width: auto; margin-left: .1em;
  overflow: visible; vertical-align: baseline;
}
.logo-mark .lm-bond {
  fill: none; stroke: var(--teal); stroke-width: 1.5;
  stroke-linecap: round; opacity: .55;
}
.logo-mark .lm-bond--faint { opacity: .25; }
.logo-mark .lm-stub {
  fill: none; stroke: var(--teal); stroke-width: 1.3;
  stroke-linecap: round; opacity: .22;
}
.logo-mark .lm-ring { fill: none; stroke: var(--lac-apex); stroke-width: 1.2; opacity: .34; }
.logo-mark .lm-atom { fill: var(--teal); }
.logo-mark .lm-atom--apex { fill: var(--lac-apex); }
/* 단색으로만 찍어야 할 때(흑백 인쇄·배지·도장) */
.logo-mark--mono .lm-bond,
.logo-mark--mono .lm-stub,
.logo-mark--mono .lm-ring { stroke: currentColor; }
.logo-mark--mono .lm-atom,
.logo-mark--mono .lm-atom--apex { fill: currentColor; }
