/* ==========================================================================
   AI Security Lab — Myongji University
   Design tokens extracted from the lab's official PPT template & logo
   ========================================================================== */

:root {
  --navy: #002060;
  --navy-deep: #001438;
  --navy-mid: #1a3d7c;
  --ink: #1a1a1a;
  --gray: #6b6b6b;
  --gray-mid: #666666;
  --header-height: 76px;
  --gray-line: #dddddd;
  --gray-pale: #f6f6f7;
  --gray-paler: #fafafb;
  --white: #ffffff;

  --font-base: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Noto Sans KR", sans-serif;

  --container: 1180px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow-sm: 0 1px 3px rgba(0, 8, 30, 0.06), 0 1px 2px rgba(0, 8, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 8, 30, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 8, 30, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

html[data-lang="ko"] .en { display: none !important; }
html[data-lang="en"] .ko { display: none !important; }
html[data-lang="en"] body { word-break: keep-all; }

body {
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
[id] { scroll-margin-top: calc(var(--header-height) + 24px); }
:focus-visible { outline: 3px solid #386fc4; outline-offset: 4px; }
.skip-link {
  position: fixed; left: 16px; top: 8px; z-index: 200;
  padding: 10px 18px; border-radius: 6px; background: var(--navy); color: white;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }


/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.is-visible { animation: reveal-in 0.45s var(--ease); }
@keyframes reveal-in {
  from { opacity: 0.65; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 12px;
  color: var(--ink);
}
.section-head p {
  margin-top: 14px;
  color: var(--gray);
  font-size: 15.5px;
}

/* double-rule motif borrowed from the lab logo */
.rule-brackets {
  position: relative;
  padding: 10px 0;
}
.rule-brackets::before,
.rule-brackets::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
}
.rule-brackets::before { top: 0; }
.rule-brackets::after { bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-ghost-white {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: var(--white);
}
.btn-ghost-white:hover { background: var(--white); color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--gray-line);
  box-shadow: 0 2px 16px rgba(0,8,30,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img { height: 30px; width: auto; }
.brand .brand-fallback {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--gray);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--gray-pale); }
.main-nav a.active { color: var(--navy); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang-toggle {
  display: flex;
  border: 1.5px solid var(--gray-line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  background: var(--white);
}
.lang-toggle button {
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}
.lang-toggle button.is-active { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--gray-pale); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-height) - 1px);
    max-height: calc(100dvh - var(--header-height) - 1px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 30px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s var(--ease);
    border-top: 1px solid var(--gray-line);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--gray-pale); border-radius: 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 92px;
  background:
    radial-gradient(circle at 84% 8%, rgba(0,32,96,0.07), transparent 45%),
    radial-gradient(circle at 6% 92%, rgba(0,32,96,0.05), transparent 40%),
    var(--white);
  overflow: hidden;
  border-bottom: 1px solid var(--gray-line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--gray-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
}
.hero-inner { position: relative; text-align: center; }
.hero-logo { max-width: 480px; width: 78%; margin: 0 auto 30px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(0,32,96,0.06);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto;
}
.hero h1 .accent { color: var(--navy); }
.hero .hero-sub {
  margin: 22px auto 0;
  max-width: 820px;
  color: var(--gray);
  font-size: 16.5px;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-affil {
  margin-top: 46px;
  font-size: 13.5px;
  color: var(--gray-mid);
  letter-spacing: 0.02em;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 68px 0 54px;
  border-bottom: 1px solid var(--gray-line);
  background:
    linear-gradient(180deg, var(--gray-paler), var(--white));
}
.page-header h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 14px;
}
.page-header p { margin-top: 14px; color: var(--gray); max-width: 640px; font-size: 15.5px; }
.breadcrumb { margin-top: 18px; font-size: 13px; color: var(--gray-mid); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { margin: 0 8px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--gray-paler); }
.section-navy { background: var(--navy); color: var(--white); }
.section-tight { padding: 56px 0; }

/* ---------- News cards ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 12.5px; color: var(--gray-mid); }
.news-heading { min-width: 0; }
.news-heading h2, .news-heading h3 { overflow-wrap: anywhere; }
.news-heading .news-event { font-size: 13px; line-height: 1.6; font-weight: 700; color: var(--navy); margin: 10px 0 0; }
.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,32,96,0.08);
  color: var(--navy);
}
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; }
.news-card .news-body { font-size: 14px; color: var(--gray); flex: 1; }
.news-card .news-link { font-size: 13px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }

.news-list { display: flex; flex-direction: column; }
.news-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-line);
}
.news-row:first-child { padding-top: 0; }
.news-row .news-date { font-size: 13.5px; color: var(--gray-mid); font-weight: 600; padding-top: 3px; white-space: nowrap; }
.news-row h2 { font-size: 18px; font-weight: 700; line-height: 1.5; }
.news-row .news-heading { margin-bottom: 12px; }
.news-row .news-meta { margin-bottom: 10px; }
.news-row .cite { display: inline-block; margin-top: 12px; }
.news-row .news-body { color: var(--gray); font-size: 14.5px; }

.section-foot { margin-top: 44px; text-align: center; }

/* ---------- Research interests ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.research-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.research-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.research-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: block;
}
.research-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.research-card p { font-size: 14.5px; color: var(--gray); margin-bottom: 16px; }
.research-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.research-card > .cite { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 24px; }
.research-card li {
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}
.research-card li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px;
  background: var(--navy);
  border-radius: 50%;
}

.research-block { padding: 48px 0; border-bottom: 1px solid var(--gray-line); }
.research-block:first-child { padding-top: 0; }
.research-block:last-child { padding-bottom: 0; border-bottom: none; }
.research-block-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
}
.research-block-label { display: flex; flex-direction: column; gap: 10px; }
.research-block-label .research-label { margin-bottom: 4px; }
.research-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.research-block-label h2 { font-size: 24px; font-weight: 800; line-height: 1.4; }
.research-block-body p { color: var(--gray); font-size: 15px; margin-bottom: 18px; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.topic-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-line);
  color: var(--ink);
  background: var(--gray-paler);
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell {
  background: var(--navy);
  padding: 34px 20px;
  text-align: center;
}
.stat-num { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; }
.stat-label { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.7); letter-spacing: 0.03em; }

/* ---------- Join band ---------- */
.join-band {
  background: var(--navy);
  color: var(--white);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.join-band h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
.join-band p { margin-top: 10px; color: rgba(255,255,255,0.75); font-size: 15px; max-width: 480px; }
.join-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 60px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 26px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13.5px; line-height: 1.8; color: rgba(255,255,255,0.75); max-width: 320px; }
.footer-col h2 {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 16px;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255,255,255,0.68);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- People / PI card ---------- */
.pi-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.pi-photo { border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-line); }
.pi-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.pi-name-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.pi-name-row h3 { font-size: 25px; font-weight: 800; }
.pi-title { color: var(--navy); font-weight: 700; font-size: 14.5px; margin-bottom: 18px; }
.pi-affil { color: var(--gray); font-size: 14px; margin-bottom: 22px; }
.pi-bio { color: var(--ink); font-size: 14.5px; line-height: 1.85; margin-bottom: 22px; }
.pi-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.pi-contact > a, .pi-contact > span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid var(--gray-line);
}
.pi-contact a:hover { border-color: var(--navy); color: var(--navy); }
.pi-contact svg { width: 15px; height: 15px; flex-shrink: 0; }
.pi-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.pi-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .pi-two-col { grid-template-columns: 1fr; gap: 32px; } }

.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-period { font-size: 13.5px; color: var(--gray-mid); font-weight: 600; padding-top: 2px; }
.timeline-body h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.timeline-body p { font-size: 13.5px; color: var(--gray); }

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.member-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.member-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--gray-pale);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--navy); font-size: 22px;
  overflow: hidden;
  border: 1px solid var(--gray-line);
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { font-size: 15px; font-weight: 700; }
.member-card .m-role { font-size: 12.5px; color: var(--navy); font-weight: 700; margin: 4px 0 8px; }
.member-card .m-department { font-size: 13px; line-height: 1.6; color: var(--gray); margin: 10px 0 16px; overflow-wrap: anywhere; }
.member-card .m-interest { font-size: 13px; color: var(--navy); font-weight: 600; margin-top: auto; }

.empty-state {
  grid-column: 1 / -1;
  border: 1.5px dashed var(--gray-line);
  border-radius: var(--radius);
  padding: 54px 30px;
  text-align: center;
  color: var(--gray);
}
.empty-state svg { width: 40px; height: 40px; color: var(--gray-mid); margin: 0 auto 16px; }
.empty-state h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.empty-state p { font-size: 14px; max-width: 420px; margin: 0 auto 20px; }
.empty-state .btn { white-space: normal; }

/* ---------- Publications ---------- */
.pub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-bottom: 54px;
}
.pub-stat {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.pub-stat .num { font-size: 28px; font-weight: 800; color: var(--navy); }
.pub-stat .lbl { font-size: 12.5px; color: var(--gray); margin-top: 6px; }

.pub-year { margin-bottom: 46px; }
.pub-year-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.pub-year-head .yr { font-size: 26px; font-weight: 800; color: var(--navy); }
.pub-year-head .line { flex: 1; height: 1px; background: var(--gray-line); }

.pub-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-line);
}
.pub-year-head + .pub-item { padding-top: 0; }
.pub-item:last-child { border-bottom: none; padding-bottom: 0; }
.pub-type { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--gray-mid); text-transform: uppercase; padding-top: 3px; }
.pub-title { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; line-height: 1.5; }
.pub-authors { font-size: 13.5px; color: var(--gray); margin-bottom: 4px; }
.pub-authors .self { color: var(--ink); font-weight: 700; }
.pub-venue { font-size: 13px; color: var(--gray-mid); }
.cite { font-size: 13px; font-weight: 700; color: var(--navy); text-underline-offset: 3px; }
.cite:hover { text-decoration: underline; }
.publication-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.publication-status { margin: 0; }
.publication-note { font-size: 13px; }
.pub-venue .cite { display: inline-block; margin: 8px 0 0; }
.pub-item > div, .project-item > *, .timeline-body, .info-row > div { min-width: 0; }
.pub-title, .pub-authors, .info-row a, .project-item h3, .pi-bio, .timeline-body { overflow-wrap: anywhere; }

.patent-list { display: flex; flex-direction: column; }
.patent-item { padding: 18px 0; border-bottom: 1px solid var(--gray-line); }
.patent-item:last-child { border-bottom: none; }
.patent-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.patent-item p { font-size: 13px; color: var(--gray); }

.project-list { display: flex; flex-direction: column; }
.project-item {
  display: grid; grid-template-columns: 1fr 160px; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--gray-line); align-items: baseline;
}
.project-item:last-child { border-bottom: none; }
.project-item h3 { font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.project-item .period { font-size: 13px; color: var(--gray-mid); text-align: right; }
.period-label { display: block; font-size: 11.5px; margin-bottom: 3px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-card iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0,32,96,0.07); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-icon svg { width: 19px; height: 19px; }
.info-row h2 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.info-row p, .info-row a { font-size: 14.5px; color: var(--gray); }
.info-row a:hover { color: var(--navy); }

/* ---------- Misc ---------- */
.note-card {
  background: var(--gray-paler);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 13.5px;
  color: var(--gray);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.note-card svg { width: 18px; height: 18px; color: var(--navy); flex-shrink: 0; margin-top: 1px; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s var(--ease);
  z-index: 90;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .news-grid, .research-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .research-block-inner { grid-template-columns: 1fr; gap: 20px; }
  .pi-card { grid-template-columns: 1fr; }
  .pi-photo { max-width: 220px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .pub-stats { grid-template-columns: repeat(2, 1fr); }
  .join-band { flex-direction: column; text-align: center; padding: 44px 28px; }
  .join-actions { justify-content: center; }
}
@media (max-width: 640px) {
  :root { --header-height: 68px; }
  .section { padding: 60px 0; }
  .news-row, .pub-item { grid-template-columns: 1fr; gap: 8px; }
  .project-item { grid-template-columns: 1fr; gap: 6px; }
  .project-item .period { text-align: left; }
  .member-grid { grid-template-columns: 1fr; }
  .pub-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .pub-stat { padding: 20px 12px; }
  .research-block { padding: 32px 0; }
  .research-block:first-child { padding-top: 0; }
  .research-block:last-child { padding-bottom: 0; }
  .pi-card { padding: 24px; gap: 26px; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .brand img { max-width: 130px; height: auto; }
  .lang-toggle button { padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .site-header, .back-to-top, .skip-link { display: none; }
}
