@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');

/* ============================================================
   EMCL — Energy Materials Circulation Laboratory
   Korea University · School of Mechanical Engineering
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --paper:      #FFFFFF;
  --paper-2:    #FFFFFF;
  --paper-3:    #FFFFFF;
  --ink:        #1B1916;
  --ink-2:      #4C473F;
  --ink-3:      #8B847A;
  --line:       #E3DDD0;
  --line-soft:  #EEE9DE;

  --crimson:    #8A1538;
  --crimson-dk: #66102A;
  --crimson-2:  #A52B4E;
  --crimson-tint:#F2E6E9;
  --accent:     #2C6E63;
  --accent-dk:  #1F5048;
  --gold:       #B0832B;

  --peb-navy:   #1B1916;   /* PEB 로고 배경 남색 */

  --font-display: Arial, 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
  --font-serif:   Arial, 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
  --font-sans:    Arial, 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
  --font-mono:    Arial, 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(27,25,22,.05), 0 2px 8px rgba(27,25,22,.04);
  --shadow:    0 4px 16px rgba(27,25,22,.07), 0 12px 40px rgba(27,25,22,.06);
  --shadow-lg: 0 18px 60px rgba(27,25,22,.14);

  --ease: cubic-bezier(.22,.61,.36,1);

  --header-h: 138px;   /* 2단 헤더 높이 (한 곳에서 관리) */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
em, i { font-style: normal; }   /* 사이트 전체 기울임 끄기 */
::selection { background: var(--crimson); color: #fff; }
#app { position: relative; z-index: 1; }

/* ---------- Utilities ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.kicker {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson); display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--crimson); display: inline-block; }
.kicker.accent { color: var(--accent); }
.kicker.accent::before { background: var(--accent); }
.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

h1,h2,h3,h4 { font-weight: 600; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
.serif { font-family: var(--font-display); font-weight: 400; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 22px; border-radius: 2px; border: 1px solid transparent;
  transition: all .35s var(--ease); white-space: nowrap;
}
.btn .ar { transition: transform .35s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-primary { background: var(--crimson); color: #fff; }
.btn-primary:hover { background: var(--crimson-dk); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ============================================================
   HEADER / NAV  (desktop = 2단: 위 로고 / 아래 메뉴)
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: #FFFFFF;
  transition: box-shadow .4s var(--ease);
}
#site-header .topbar {
  background: var(--crimson);
  color: rgba(255,255,255,.85);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  transition: all .4s var(--ease);
}
#site-header .topbar .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; }
#site-header .topbar a:hover { color: #fff; }
#site-header .topbar .util { display: flex; gap: 18px; }

#site-header .bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
#site-header .bar .wrap {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 6px; padding-top: 10px; padding-bottom: 8px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand .mark {
  font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: .02em;
  color: var(--crimson); line-height: 1;
}
.brand .div { width: 1px; height: 40px; background: var(--line); }
.brand .meta { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.brand .meta .ko { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand .meta .en { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }

/* 고려대 로고 + 글자 */
.brand .ku-logo { height: 36px; width: auto; }
.brand .ku-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand .ku-name b { font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: .11em; }
.brand .ku-name i { font-size: 9.5px; letter-spacing: .06em; color: var(--ink-3); }

/* primary nav */
.nav { display: flex; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; gap: 6px; padding: 6px 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); transition: color .25s; position: relative;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px;
  background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav > li:hover > a, .nav > li.current > a { color: var(--crimson); }
.nav > li:hover > a::after, .nav > li.current > a::after { transform: scaleX(1); }
#site-header .bar nav { width: 100%; }
#site-header .bar .nav { justify-content: flex-start; }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: var(--paper-2); border: 1px solid var(--line); border-top: 2px solid var(--crimson);
  box-shadow: var(--shadow); padding: 8px; border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .3s var(--ease);
}
.nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; font-size: 13.5px; color: var(--ink-2); border-radius: 2px; transition: all .2s; }
.dropdown a:hover { background: var(--crimson-tint); color: var(--crimson); padding-left: 18px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: all .3s var(--ease); border-radius: 2px; }
#mobile-nav { display: none; }

/* spacer so fixed header doesn't overlap content */
.header-spacer { height: var(--header-h); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.hero-copy { max-width: 600px; }
.hero-copy h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: clamp(36px, 5vw, 60px); line-height: 1.1; margin: 22px 0 24px; }
.hero-copy h1 em { color: var(--crimson); }
.hero-copy .lede { font-size: 17px; color: var(--ink-2); max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-figure { position: relative; aspect-ratio: 1/1; width: 100%; max-width: 520px; margin-inline: auto; }
.hero-figure svg { width: 100%; height: 100%; overflow: visible; }
.orbit { fill: none; stroke: var(--line); stroke-width: 1; }
.orbit-dash { fill: none; stroke-width: 1.4; stroke-dasharray: 3 9; stroke-linecap: round; transform-origin: 50% 50%; }
.orbit-dash.c { stroke: var(--crimson); animation: spin 26s linear infinite; }
.orbit-dash.a { stroke: var(--accent); animation: spin 34s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.node { transform-origin: 250px 250px; }
.node circle { filter: drop-shadow(0 4px 10px rgba(27,25,22,.16)); }
.node.n1 { animation: spin 26s linear infinite; }
.node.n2 { animation: spin 34s linear infinite reverse; }
.node.n3 { animation: spin 20s linear infinite; }
.pulse { animation: pulse 3.6s var(--ease) infinite; transform-origin: 250px 250px; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .85; } }
.hero-core-label { font-family: var(--font-display); }
@media (prefers-reduced-motion: reduce) { .orbit-dash, .node, .pulse { animation: none !important; } }

/* stat band */
.statband { background: var(--ink); color: var(--paper); }
.statband .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
.stat { padding: 36px 8px; text-align: center; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 28px; bottom: 28px; width: 1px; background: rgba(255,255,255,.12); }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5vw, 76px); line-height: 1; color: #fff; }
.stat .num span { color: var(--crimson-2); }
.stat .lbl { font-family: var(--font-mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 10px; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 130px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 52px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.02em; margin-top: 14px; }
.section-head .link { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; transition: gap .3s var(--ease), color .25s; }
.section-head .link:hover { color: var(--crimson); gap: 14px; }

.research-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.rcard { background: var(--paper-2); padding: 40px clamp(24px,3vw,44px); position: relative; overflow: hidden; transition: background .4s var(--ease); }
.rcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--crimson); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.rcard:hover { background: var(--paper-3); }
.rcard:hover::before { transform: scaleY(1); }
.rcard .rn { font-family: var(--font-mono); font-size: 13px; color: var(--crimson); letter-spacing: .1em; }
.rcard h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin: 16px 0 8px; }
.rcard .en { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 14px; }
.rcard p { color: var(--ink-2); font-size: 14.5px; }
.rcard:nth-child(2)::before { background: var(--accent); }
.rcard:nth-child(2) .rn { color: var(--accent); }
.rcard:nth-child(3)::before { background: var(--gold); }
.rcard:nth-child(3) .rn { color: var(--gold); }

/* feature (PEB) band */
.feature { background: var(--ink); color: var(--paper); overflow: hidden; }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.feature .badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson-2); }
.feature h2 { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(28px, 4vw, 46px); margin: 18px 0 10px; line-height: 1.06; }
.feature .sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.55); text-transform: uppercase; margin-bottom: 22px; }
.feature p { color: rgba(255,255,255,.78); margin-bottom: 30px; max-width: 48ch; }
.feature-visual {
  aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.feature-visual img { max-width: 80%; height: auto; }

/* two column: news + pubs */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); }
.col-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.col-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.col-head .more { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
.col-head .more:hover { color: var(--crimson); }

.feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-soft); transition: padding-left .3s var(--ease); }
.feed-item:hover { padding-left: 6px; }
.feed-item .tag { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--crimson); padding: 3px 7px; border-radius: 2px; white-space: nowrap; }
.feed-item .tag.acc { background: var(--accent); }
.feed-item .ti { font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-item:hover .ti { color: var(--crimson); }
.feed-item .dt { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.pub-feed .pf { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.pub-feed .pf .pt { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.35; margin-bottom: 6px; transition: color .25s; }
.pub-feed .pf:hover .pt { color: var(--crimson); }
.pub-feed .pf .pm { font-size: 13px; color: var(--ink-3); }
.pub-feed .pf .pj { color: var(--accent); font-family: var(--font-serif); }

/* CTA */
.cta { background: var(--crimson); color: #fff; text-align: center; }
.cta .wrap { padding-block: clamp(56px, 8vw, 110px); }
.cta h2 { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: clamp(28px, 4.4vw, 52px); margin-bottom: 18px; }
.cta p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 30px; }
.cta .btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--crimson); border-color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--ink); color: rgba(255,255,255,.7); border-top: 4px solid var(--crimson); }
#site-footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-block: 56px; }
#site-footer .mark { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: #fff; margin-bottom: 14px; }
#site-footer address { font-style: normal; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,.6); }
#site-footer h4 { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
#site-footer .fcol a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.72); transition: color .2s, padding-left .25s; }
#site-footer .fcol a:hover { color: #fff; padding-left: 5px; }
#site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: rgba(255,255,255,.4); }

/* ============================================================
   INNER PAGE chrome
   ============================================================ */
.page-hero { background: #FFFFFF; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(46px, 7vw, 86px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--crimson); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -.02em; }
.page-hero .sub { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--ink-2); text-transform: uppercase; margin-top: 12px; }
.page-hero .ghost-no { display: none; }

.page-body { padding-block: clamp(48px, 7vw, 96px); }
.prose { max-width: 78ch; }
.prose p { color: var(--ink-2); margin-bottom: 18px; font-size: 16px; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 8px 0 18px; }
.lab-section-title { font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--crimson); display: flex; align-items: center; gap: 14px; margin: 0 0 26px; }
.lab-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tile { background: var(--paper-2); border: 1px solid var(--line); padding: 26px; border-radius: var(--radius); transition: all .35s var(--ease); }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--crimson); }
.tile .t-no { font-family: var(--font-mono); font-size: 13px; color: var(--crimson); }
.tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 12px 0 8px; }
.tile p { font-size: 14px; color: var(--ink-2); }

.research-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; background: var(--paper-2); transition: box-shadow .35s var(--ease); }
.research-block:hover { box-shadow: var(--shadow); }
.research-block .rb-head { display: flex; align-items: center; gap: 18px; padding: 22px 28px; color: #fff; }
.research-block .rb-head .num { font-family: var(--font-display); font-weight: 700; font-size: 34px; opacity: .9; }
.research-block .rb-head .ttl { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.research-block .rb-head .en { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.research-block .rb-body { padding: 26px 28px; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }

.lab-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-bottom: 40px; }
.lab-table thead th { background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 13px 16px; text-align: left; }
.lab-table tbody td { padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.lab-table tbody tr:hover td { background: #faf8f3; }
.lab-table .center { text-align: center; }
.badge-pill { display: inline-block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; }
.badge-pill.on { background: var(--accent); color: #fff; }
.badge-pill.done { background: #cfc8ba; color: var(--ink); }
.badge-pill.reg { color: var(--accent); border: 1px solid var(--accent); }
.badge-pill.app { color: var(--gold); border: 1px solid var(--gold); }

.prof-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-bottom: 44px; }
.prof-photo { aspect-ratio: 3/4; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(150deg, #efe9dd, #ded6c6); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.prof-photo svg { width: 40%; fill: #c3b9a5; }
.prof-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-name { font-family: var(--font-display); font-weight: 700; font-size: 34px; }
.prof-name-en { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--crimson); text-transform: uppercase; margin: 6px 0 22px; }
.prof-info { display: grid; grid-template-columns: 110px 1fr; gap: 8px 18px; font-size: 14.5px; }
.prof-info dt { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.prof-info dd { color: var(--ink-2); }
.cv-block { margin-bottom: 30px; }
.cv-block ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-2); display: flex; gap: 16px; }
.cv-block ul li .yr { font-family: var(--font-mono); font-size: 13px; color: var(--crimson); white-space: nowrap; min-width: 92px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row span { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; padding: 6px 13px; border-radius: 20px; background: var(--crimson-tint); color: var(--crimson); }

/* ============================================================
   MEMBER LIST (가로형 리스트 / 액자형 사진)
   ============================================================ */
.count-badge { display: inline-block; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: #fff; background: var(--crimson); border-radius: 20px; padding: 2px 11px; vertical-align: middle; margin-left: 10px; }

.member-list { display: flex; flex-direction: column; margin-bottom: 48px; }
.member-list-item { 
  display: grid; grid-template-columns: 150px 1fr; gap: 40px; padding: 30px 0; 
  border-bottom: 1px solid var(--line); align-items: center; 
}
.member-list-item:last-child { border-bottom: none; }

/* 사진 영역 (액자 스타일) */
.member-list-item .mphoto { 
  aspect-ratio: 3/4; border: 1px solid #c19c67; padding: 4px; background: #fff;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.06); 
}
.member-list-item .mphoto img { width: 100%; height: 100%; object-fit: cover; }

/* 텍스트 및 세부 정보 */
.member-list-item .minfo { padding-top: 5px; }
.member-list-item .mname { 
  font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--crimson); 
  margin-bottom: 20px; display: flex; align-items: baseline; gap: 12px;
}
.member-list-item .mname-en { font-size: 18px; font-weight: 400; color: var(--ink-3); }
.member-list-item dl { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 14.5px; }
.member-list-item dt { font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.member-list-item dt::before { content: "▪"; font-size: 13px; color: var(--ink-3); }
.member-list-item dd { color: var(--ink-2); }


.pub-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.pub-filter button { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 9px 18px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2); border-radius: 2px; transition: all .25s; }
.pub-filter button.active, .pub-filter button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pub-list { border-top: 1px solid var(--line); }
.pub-row { display: grid; grid-template-columns: 76px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.pub-row:hover { padding-left: 8px; }
.pub-row .pyear { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--crimson); line-height: 1; }
.pub-row .ptype { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.pub-row h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.35; margin-bottom: 8px; }
.pub-row .pauth { font-size: 13.5px; color: var(--ink-2); }
.pub-row .pjour { font-family: var(--font-serif); color: var(--accent); font-size: 14px; }

.proj-card { border: 1px solid var(--line); border-left: 3px solid var(--crimson); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; background: var(--paper-2); transition: box-shadow .3s var(--ease); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.proj-card:hover { box-shadow: var(--shadow); }
.proj-card.done { border-left-color: #cfc8ba; }
.proj-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 6px; }
.proj-card .pen { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 8px; }
.proj-card .pmeta { font-size: 13px; color: var(--ink-3); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); transition: all .35s var(--ease); cursor: pointer; }
.gallery-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.gallery-item .thumb { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.gallery-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover .thumb img { transform: scale(1.05); }
.gallery-item .thumb .ph { font-family: var(--font-display); color: #fff; font-size: 20px; opacity: .92; }
.gallery-item .cap { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gallery-item .cap .t { font-size: 14px; font-weight: 700; }
.gallery-item .cap .d { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.contact-info dl { display: grid; grid-template-columns: 90px 1fr; gap: 12px 16px; font-size: 14.5px; }
.contact-info dt { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.contact-info dd { color: var(--ink-2); line-height: 1.7; }
.directions h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 16px 0 6px; }
.directions p { color: var(--ink-2); font-size: 14px; margin-bottom: 4px; }
.map-embed { aspect-ratio: 21/9; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.15); }

/* ============================================================
   BOARD (게시판)
   ============================================================ */
.board-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.board-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--paper-2); border-radius: 2px; padding: 8px 14px; min-width: 240px; }
.board-search input { border: none; background: none; outline: none; font: inherit; font-size: 14px; width: 100%; color: var(--ink); }
.board-search svg { width: 16px; height: 16px; fill: var(--ink-3); flex-shrink: 0; }
.board-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-dot { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.admin-dot i { width: 8px; height: 8px; border-radius: 50%; background: #cfc8ba; display: inline-block; }
.admin-dot.on i { background: var(--accent); }

.board-list { border-top: 2px solid var(--ink); }
.board-row { display: grid; grid-template-columns: 64px 88px 1fr 110px 100px; gap: 14px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line); transition: background .2s; cursor: pointer; }
.board-row:hover { background: #faf8f3; }
.board-row .b-no { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); text-align: center; }
.board-row .b-cat { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 3px 0; border-radius: 2px; color: #fff; background: var(--crimson); }
.board-row .b-cat.notice { background: var(--crimson); }
.board-row .b-cat.seminar { background: var(--accent); }
.board-row .b-cat.news { background: var(--gold); }
.board-row .b-cat.general { background: var(--ink-3); }
.board-row .b-title { font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; overflow: hidden; }
.board-row .b-title .clip { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.board-row:hover .b-title { color: var(--crimson); }
.board-row .b-title .pin { color: var(--crimson); }
.board-row .b-author { font-size: 13px; color: var(--ink-2); text-align: center; }
.board-row .b-date { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); text-align: center; }
.board-row.head { background: none; cursor: default; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-block: 12px; }
.board-row.head:hover { background: none; }
.board-empty { padding: 60px 0; text-align: center; color: var(--ink-3); }

.board-pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.board-pager button { font-family: var(--font-mono); font-size: 13px; min-width: 36px; height: 36px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2); border-radius: 2px; transition: all .2s; }
.board-pager button.active, .board-pager button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.board-pager button:disabled { opacity: .4; cursor: not-allowed; }

.post-detail { border-top: 2px solid var(--ink); }
.post-head { padding: 28px 4px 22px; border-bottom: 1px solid var(--line); }
.post-head .b-cat { display: inline-block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; color: #fff; background: var(--crimson); margin-bottom: 14px; }
.post-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.2; }
.post-head .meta { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.post-content { padding: 30px 4px; font-size: 16px; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.post-content img { margin: 18px 0; border-radius: var(--radius); border: 1px solid var(--line); }
.post-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; padding: 0 4px 24px; }
.post-images img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); cursor: zoom-in; }
.post-foot { display: flex; justify-content: space-between; padding: 22px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 500; background: rgba(20,18,15,.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--paper-2); border-radius: var(--radius); width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); border-top: 3px solid var(--crimson); }
.modal .m-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper-2); }
.modal .m-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.modal .m-close { background: none; border: none; font-size: 26px; color: var(--ink-3); line-height: 1; }
.modal .m-close:hover { color: var(--crimson); }
.modal .m-body { padding: 26px; }
.modal .m-foot { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 15px; color: var(--ink); border: 1px solid var(--line); background: var(--paper-3); border-radius: 2px; padding: 11px 14px; outline: none; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--crimson); }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.file-drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--ink-3); font-size: 13px; transition: all .25s; cursor: pointer; }
.file-drop:hover { border-color: var(--crimson); color: var(--crimson); background: var(--crimson-tint); }
.file-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.file-previews .fp { position: relative; width: 72px; height: 72px; border-radius: 2px; overflow: hidden; border: 1px solid var(--line); }
.file-previews .fp img { width: 100%; height: 100%; object-fit: cover; }
.file-previews .fp button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 600; background: rgba(15,13,11,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; animation: fade .25s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; font-size: 34px; color: #fff; background: none; border: none; }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 700; background: var(--ink); color: #fff; font-size: 14px; padding: 13px 22px; border-radius: 4px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .35s var(--ease); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero-figure { max-width: 380px; order: -1; }
  .feature .wrap { grid-template-columns: 1fr; gap: 36px; }
  .two-col { grid-template-columns: 1fr; }
  #site-footer .top { grid-template-columns: 1fr 1fr; }
  .prof-head { grid-template-columns: 160px 1fr; gap: 28px; }
}

/* 모바일: 햄버거 메뉴 + 탑바·고려대글자 숨김 */
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  #site-header .topbar { display: none; }
  #site-header .bar .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
  .brand .ku-name, .brand .div, .brand .meta { display: none; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  #mobile-nav { position: fixed; inset: 0; z-index: 250; background: var(--paper); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; padding: 90px var(--gutter) 40px; overflow: auto; }
  #mobile-nav.open { transform: none; }
  #mobile-nav a { font-family: var(--font-display); font-weight: 700; font-size: 26px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  #mobile-nav .sub a { font-family: var(--font-sans); font-weight: 400; font-size: 15px; color: var(--ink-2); padding: 7px 0 7px 16px; border: none; }
  .research-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 40px 1fr 80px; }
  .board-row .b-cat, .board-row .b-no:not(.always) { display: none; }
  .board-row.head { display: none; }
}
@media (max-width: 560px) {
  .statband .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2)::after { display: none; }
  #site-footer .top { grid-template-columns: 1fr; }
  .prof-head { grid-template-columns: 1fr; }
  .prof-photo { max-width: 200px; }
  .field-row { grid-template-columns: 1fr; }
  
  /* 멤버 리스트 모바일 대응 추가 */
  .member-list-item { grid-template-columns: 110px 1fr; gap: 20px; }
  .member-list-item .mname { font-size: 20px; flex-direction: column; gap: 4px; }
  .member-list-item .mname-en { font-size: 15px; }
  .member-list-item dl { grid-template-columns: 120px 1fr; }
}

/* hamburger active */
.nav-toggle.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.x span:nth-child(2) { opacity: 0; }
.nav-toggle.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }
/* Research Poster */
.research-poster{
  width:100%;
  margin:0 auto 80px;
  text-align:center;
}

.research-poster img{
  width:100%;
  max-width:1400px;
  height:auto;
  display:block;
  margin:0 auto;

  border-radius:24px;

  box-shadow:
    0 20px 60px rgba(0,0,0,.12);

  object-fit:contain;
}
/* 헤더 EMCL 로고 — 글씨 높이에 맞춰 축소 */
.brand .emcl-logo {
  height: 48px;   /* 글씨에 맞춰 44~56px 사이에서 조절 */
  width: auto;    /* 가로세로 비율 유지 */
}


/* ============================================================
   PAGE-SCOPED STYLES (moved out of individual HTML files)
   ============================================================ */

/* ---------- HOME — hero (background image) + recruit popup ---------- */
    .hero--bg{
      position:relative;
      min-height:80vh;
      display:flex; align-items:center; justify-content:center;
      text-align:center;
      overflow:hidden;
      isolation:isolate;
      border-bottom:none;
    }
    .hero--bg .hero-bg{
      position:absolute; inset:0; z-index:0;
      background-image:url('../images/hero-bg.png');
      background-size:cover;
      background-position:center;
      background-repeat:no-repeat;
      /* light blur softens the embedded labels; scale hides blurred edges */
      filter:blur(3px);
      transform:scale(1.06);
    }
    /* base darkening (≈60% black, verified for white-text legibility) */
    .hero--bg .hero-overlay{
      position:absolute; inset:0; z-index:1;
      background:rgba(8,7,6,0.60);
    }
    /* extra scrim concentrated behind the text block */
    .hero--bg .hero-scrim{
      position:absolute; inset:0; z-index:1;
      background:radial-gradient(70% 60% at 50% 52%, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 75%);
    }
    .hero--bg .hero-inner{
      position:relative; z-index:2;
      width:100%; max-width:1440px;
      margin-left:auto; margin-right:auto;
      /* top padding clears the fixed site header; bottom trimmed */
      padding:160px 24px 70px;
      font-family:var(--font-display);
      color:#fff;
      text-align:center;
      /* 모든 자식 요소를 한 열로 중앙 정렬 */
      display:flex;
      flex-direction:column;
      align-items:center;
    }
    .hero--bg .hw-kicker{
      display:inline-block;
      font-size:13px; font-weight:700; letter-spacing:.12em;
      color:rgba(255,255,255,0.82);
      text-transform:uppercase;
    }
    .hero--bg .hw-title{
      display:block;
      width:100%;
      max-width:100%;
      margin:18px 0 0;
      text-align:center;
      font-family:var(--font-display);
      font-weight:800;
      letter-spacing:.01em;
      line-height:1.15;
      text-transform:uppercase;
      color:#fff;
      /* sized to keep the full title on ONE line on desktop */
      font-size:clamp(20px, 3.05vw, 44px);
      white-space:nowrap;
      text-shadow:0 2px 20px rgba(0,0,0,0.5);
    }
    .hero--bg .hw-rule{
      display:block;
      width:72px; height:4px;
      margin:22px auto 0;
      border-radius:4px;
      background:#fff; opacity:.95;
    }
    .hero--bg .hw-lead{
      margin:30px auto 0;
      max-width:780px;
      color:rgba(255,255,255,0.92);
      font-family:var(--font-display);
      font-size:clamp(15px, 1.55vw, 19px);
      line-height:1.8;
      font-weight:400;
      text-shadow:0 1px 12px rgba(0,0,0,0.5);
    }
    .hero--bg .hw-lead sub{ font-size:.72em; }
    .hero--bg .hw-actions{
      margin-top:60px;
      display:flex; gap:14px;
      justify-content:center; flex-wrap:wrap;
    }
    .hero--bg .hw-actions .btn{
      font-family:var(--font-display);
      font-size:15px;        /* ← 추가: 연구 분야와 동일 */
      letter-spacing:.02em;  /* ← 추가: 기본 .12em 자간 줄이기 */
      padding:14px 28px;     /* ← 추가: 연구 분야와 동일한 크기 */
      width:150px;              /* ← 추가: 두 버튼 폭 고정 */
      justify-content:center;   /* ← 추가: 글자를 버튼 가운데로 */
      text-align:center;        /* ← 추가: 가운데 정렬 보조 */
    }
    /* white outline button variant for the dark hero */
    .hero--bg .btn-hero-outline{
      display:inline-block;
      padding:14px 28px;
      border-radius:4px;
      font-size:15px; font-weight:600;
      line-height:1; text-decoration:none;
      color:#fff;
      border:1.5px solid rgba(255,255,255,0.85);
      background:rgba(255,255,255,0.04);
      transition:background .2s, border-color .2s;
    }
    .hero--bg .btn-hero-outline:hover{
      background:rgba(255,255,255,0.14);
      border-color:#fff;
    }

    @media (max-width:720px){
      .hero--bg{ min-height:78vh; }
      .hero--bg .hero-inner{ padding:130px 20px 84px; }
      .hero--bg .hw-title{ white-space:normal; font-size:clamp(22px, 6.4vw, 34px); }
    }
  
  .recruit-pop { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; padding: 20px; }
  .recruit-pop-dim { position: absolute; inset: 0; background: rgba(15,13,11,.62); backdrop-filter: blur(2px); }
  .recruit-pop-card { position: relative; background: #fff; max-width: 540px; width: 100%; border-radius: 6px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35); border-top: 5px solid var(--crimson, #8A1538);
    animation: recruitIn .3s ease; max-height: 88vh; overflow-y: auto; }
  @keyframes recruitIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .recruit-pop-x { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px;
    line-height: 1; color: #999; cursor: pointer; padding: 0; }
  .recruit-pop-x:hover { color: var(--crimson, #8A1538); }
  .recruit-pop-body { padding: 36px 36px 28px; }
  .recruit-pop-body h2 { font-family: var(--font-display, Arial), sans-serif; font-weight: 700; font-size: 22px;
    color: var(--crimson, #8A1538); margin: 0 0 16px; }
  .recruit-pop-body p { font-size: 14.5px; line-height: 1.7; color: var(--ink-2, #3a3530); margin: 0 0 14px; }
  .recruit-pop-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
  .recruit-pop-body li { font-size: 14px; line-height: 1.6; color: var(--ink-2, #3a3530);
    padding: 7px 0 7px 18px; position: relative; border-bottom: 1px dashed var(--line, #e3ddd0); }
  .recruit-pop-body li::before { content: "·"; position: absolute; left: 4px; color: var(--crimson, #8A1538); font-weight: 700; }
  .recruit-pop-contact { font-weight: 600; color: var(--ink, #1b1916) !important; }
  .recruit-pop-contact a { color: var(--crimson, #8A1538); text-decoration: none; }
  .recruit-pop-contact a:hover { text-decoration: underline; }
  .recruit-pop-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
  .recruit-pop-foot button { font-family: var(--font-mono, Arial), sans-serif; font-size: 13px; padding: 10px 18px;
    border-radius: 3px; cursor: pointer; border: 1px solid var(--line, #e3ddd0); transition: all .2s; white-space: nowrap; }
  .recruit-pop-never { background: #fff; color: var(--ink-3, #8a847b); }
  .recruit-pop-never:hover { background: #f5f2ec; }
  .recruit-pop-close { background: var(--ink, #1b1916); color: #fff; border-color: var(--ink, #1b1916); }
  .recruit-pop-close:hover { opacity: .85; }
  @media (max-width: 560px) { .recruit-pop-body { padding: 30px 22px 22px; } }

/* ---------- ALUMNI page ---------- */
    .degree-filter { margin-bottom: 34px; }
    .degree-filter button { min-width: 180px; }
    .alumni-wrap { display: none; }
    .alumni-wrap.active { display: block; animation: fadeIn .25s ease; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

    /* 졸업생 카드 리스트 (alumni 페이지 전용 — members 페이지에는 적용 안 됨) */
    body[data-page="alumni"] .member-list { display: flex; flex-direction: column; gap: 0; border-top: 2px solid var(--ink); }
    body[data-page="alumni"] .member-list-item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center;
      padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
    body[data-page="alumni"] .member-list-item:hover { background: #faf8f3; }
    body[data-page="alumni"] .member-list-item .mphoto { width: 100px; height: 125px; border-radius: var(--radius); overflow: hidden;
      background: linear-gradient(150deg,#efe9dd,#ded6c6); display: flex; align-items: center; justify-content: center; }
    body[data-page="alumni"] .member-list-item .mphoto img { width: 100%; height: 100%; object-fit: cover; }
    body[data-page="alumni"] .member-list-item .mphoto svg { width: 42%; fill: #c3b9a5; }
    body[data-page="alumni"] .member-list-item .minfo { min-width: 0; }
    body[data-page="alumni"] .member-list-item .mname { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
    body[data-page="alumni"] .member-list-item .mname-en { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--crimson); letter-spacing: .04em; margin-left: 8px; }
    body[data-page="alumni"] .member-list-item dl { display: grid; grid-template-columns: 130px 1fr; gap: 4px 14px; font-size: 14px; margin-top: 8px; }
    body[data-page="alumni"] .member-list-item dt { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
    body[data-page="alumni"] .member-list-item dd { color: var(--ink-2); }
    body[data-page="alumni"] .member-list-item dd.aff { color: var(--accent); font-weight: 500; }
    body[data-page="alumni"] .member-list-item dd.year { font-family: var(--font-mono); color: var(--crimson); font-weight: 700; }

    .alumni-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 30px; }
    .alumni-pager button { font-family: var(--font-mono); font-size: 13px; min-width: 38px; height: 38px; padding: 0 10px;
      border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 2px; transition: all .2s; }
    .alumni-pager button.active, .alumni-pager button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
    .alumni-pager button:disabled { opacity: .4; cursor: not-allowed; }

    @media (max-width: 560px) {
      body[data-page="alumni"] .member-list-item { grid-template-columns: 80px 1fr; gap: 16px; }
      body[data-page="alumni"] .member-list-item .mphoto { width: 76px; height: 95px; }
      body[data-page="alumni"] .member-list-item dl { grid-template-columns: 1fr; gap: 2px; }
      body[data-page="alumni"] .member-list-item dt { padding-top: 8px; }
      .degree-filter button { min-width: auto; flex: 1; }
    }
  

/* ---------- PROJECT — ongoing & completed pages ---------- */
  .proj-head-row{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:24px; }
  /* wider feel + vertical padding sized to the text */
  .page-body .proj-card{ padding:20px 32px; align-items:center; }
  .page-body .proj-card .proj-main{ flex:1; }
  .page-body .proj-card .pperiod{
    font-family:var(--font-mono); font-size: 13px; letter-spacing:.06em;
    color:var(--crimson); margin-bottom:6px;
  }
  .page-body .proj-card h3{ margin-bottom:5px; }
  .page-body .proj-card .pen{ margin-bottom:4px; }
  @media (max-width:560px){
    .page-body .proj-card{ padding:18px 20px; }
  }

/* ---------- CONFERENCE page ---------- */
    /* =========================================================
       Conference page
       ========================================================= */

    .conference-filter{
      margin-bottom: 30px;
    }

    .conference-filter button{
      min-width: 140px;
    }

    .pub-year{
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 22px;
      color: var(--crimson);

      display: flex;
      align-items: center;
      gap: 12px;

      margin: 36px 0 14px;
    }

    .pub-year::before{
      content: "";
      width: 14px;
      height: 14px;
      background: var(--crimson);
      display: inline-block;
    }

    .pub-year:first-of-type{
      margin-top: 0;
    }

    .paper{
      display: grid;
      grid-template-columns: 44px 1fr;
      gap: 16px;

      padding: 16px 0;

      border-bottom: 1px solid var(--line);
    }

    .paper .pno{
      font-family: var(--font-mono);
      font-size: 15px;
      font-weight: 700;
      color: var(--crimson);

      text-align: right;
      padding-top: 2px;
    }

    .paper .pbody{
      font-size: 14.5px;
      line-height: 1.6;
      color: var(--ink-2);
    }

    .paper .pttl{
      font-weight: 700;
      color: var(--ink);
    }

    .paper .pjn{
      color: var(--accent);
      font-weight: 500;
    }

    .paper .ploc{
      color: var(--gold);
      font-style: normal;
      font-family: var(--font-mono);
      font-size: 13px;
    }

    .pub-pager{
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 6px;

      margin-top: 40px;
    }

    .pub-pager button{
      font-family: var(--font-mono);
      font-size: 13px;

      min-width: 38px;
      height: 38px;
      padding: 0 10px;

      border: 1px solid var(--line);

      background: #fff;
      color: var(--ink-2);

      border-radius: 2px;

      transition: all .2s;
    }

    .pub-pager button.active,
    .pub-pager button:hover:not(:disabled){
      background: var(--ink);
      color: #fff;
      border-color: var(--ink);
    }

    .pub-pager button:disabled{
      opacity: .4;
      cursor: not-allowed;
    }
  

/* ---------- GALLERY page ---------- */
    .gal-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
    .gal-toolbar button {
      font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
      padding: 8px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
      border-radius: 2px; transition: all .2s;
    }
    .gal-toolbar button.active, .gal-toolbar button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

    .gal-year { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--crimson);
      display: flex; align-items: center; gap: 12px; margin: 34px 0 18px; }
    .gal-year::before { content: ""; width: 14px; height: 14px; background: var(--crimson); display: inline-block; }
    .gal-year:first-of-type { margin-top: 0; }
    .gal-year .yc { font-family: var(--font-mono); font-size: 14px; font-weight: 400; color: var(--ink-3); }

    .gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
    .gal-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
      cursor: pointer; transition: all .3s var(--ease); display: flex; flex-direction: column; }
    .gal-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--crimson); }
    .gal-card .thumb { aspect-ratio: 4/3; overflow: hidden; position: relative; background: #f0ece3; }
    .gal-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
    .gal-card:hover .thumb img { transform: scale(1.05); }
    .gal-card .cnt { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff;
      font-family: var(--font-mono); font-size: 13px; padding: 3px 8px; border-radius: 20px; }
    .gal-card .cap { padding: 14px 16px; }
    .gal-card .cap .t { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    .gal-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
    .gal-pager button { font-family: var(--font-mono); font-size: 13px; min-width: 38px; height: 38px; padding: 0 10px;
      border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 2px; transition: all .2s; }
    .gal-pager button.active, .gal-pager button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
    .gal-pager button:disabled { opacity: .4; cursor: not-allowed; }

    /* 라이트박스 (상세 보기) */
    .gv { position: fixed; inset: 0; z-index: 600; background: rgba(15,13,11,.94);
      display: none; align-items: center; justify-content: center; padding: 24px; }
    .gv.open { display: flex; }
    .gv-inner { max-width: 1000px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; }
    .gv-stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
    .gv-stage img { max-width: 100%; max-height: 70vh; border-radius: var(--radius); object-fit: contain; }
    .gv-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15);
      color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; transition: background .2s; }
    .gv-nav:hover { background: rgba(255,255,255,.3); }
    .gv-nav.prev { left: 0; } .gv-nav.next { right: 0; }
    .gv-nav:disabled { opacity: .25; cursor: not-allowed; }
    .gv-meta { color: #fff; padding: 18px 4px 4px; }
    .gv-meta .t { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
    .gv-meta .c { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.8); white-space: pre-wrap; }
    .gv-meta .idx { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.55); margin-top: 10px; }
    .gv-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 34px; line-height: 1; }
    .gv-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 2px; }
    .gv-thumbs img { width: 60px; height: 46px; object-fit: cover; border-radius: 3px; opacity: .5; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
    .gv-thumbs img.on { opacity: 1; border-color: #fff; }

    @media (max-width: 560px) { .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
  

/* ---------- PATENTS page ---------- */
    /* 특허 목록 전용 스타일 (페이징 연동) */
    .pub-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
    .pub-pager button { font-family: var(--font-mono); font-size: 13px; min-width: 38px; height: 38px; padding: 0 10px;
      border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 2px; transition: all .2s; }
    .pub-pager button.active, .pub-pager button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
    .pub-pager button:disabled { opacity: .4; cursor: not-allowed; }
    
    /* 테이블 내 모바일 대응 가로 스크롤 허용 */
    .table-responsive { width: 100%; overflow-x: auto; margin-bottom: 20px; }
  

/* ---------- PUBLICATIONS page ---------- */
    /* 논문 목록 전용 스타일 */
    .pub-year { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--crimson);
      display: flex; align-items: center; gap: 12px; margin: 36px 0 14px; }
    .pub-year::before { content: ""; width: 14px; height: 14px; background: var(--crimson); display: inline-block; }
    .pub-year:first-of-type { margin-top: 0; }
    .paper { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
    .paper .pno { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--crimson); text-align: right; padding-top: 2px; }
    .paper .pbody { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
    .paper .pttl { font-weight: 700; color: var(--ink); }
    .paper .pjn { color: var(--accent); }
    .paper .pst { display: inline-block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
      padding: 2px 8px; border-radius: 20px; margin-left: 4px; }
    .pst.published { background: var(--accent); color: #fff; }
    .pst.review, .pst.revision { color: var(--gold); border: 1px solid var(--gold); }
    .pub-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
    .pub-pager button { font-family: var(--font-mono); font-size: 13px; min-width: 38px; height: 38px; padding: 0 10px;
      border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 2px; transition: all .2s; }
    .pub-pager button.active, .pub-pager button:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
    .pub-pager button:disabled { opacity: .4; cursor: not-allowed; }
