/* ==========================================================================
   Cha Lab — Dong-A University · Department of Chemical Engineering
   Design tokens, layout, components
   ========================================================================== */

:root {
  /* Ink (deep teal-navy) */
  --ink-950: #061a22;
  --ink-900: #0a2530;
  --ink-800: #103744;
  --ink-700: #17505f;

  /* Paper (ice) */
  --paper-050: #f5fbfc;
  --paper-100: #e4f3f6;
  --paper-200: #c8e5eb;

  /* Accent (teal → cyan → mint) */
  --accent: #0b7290;
  --accent-dark: #075a72;
  --accent-soft: #1bb2c8;
  --mint: #62dfc6;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 60%, var(--mint) 100%);
  --grad-line: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 65%, var(--mint) 100%);

  /* Semantic */
  --bg: var(--paper-050);
  --bg-alt: var(--paper-100);
  --surface: #ffffff;
  --text: #12303a;
  --muted: #587682;
  --border: rgba(18, 48, 58, 0.12);
  --border-strong: rgba(18, 48, 58, 0.22);
  --accent-tint: rgba(11, 114, 144, 0.08);
  --shadow: 0 1px 2px rgba(6, 26, 34, 0.04), 0 8px 28px -12px rgba(6, 26, 34, 0.18);
  --shadow-lg: 0 2px 6px rgba(6, 26, 34, 0.06), 0 24px 56px -20px rgba(6, 26, 34, 0.28);

  --on-ink: #e6f4f7;
  --on-ink-muted: #9dbcc6;

  /* Type */
  --sans: "Inter", "Pretendard Variable", "Pretendard", -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --display: "Inter Tight", "Inter", "Pretendard Variable", "Pretendard", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
}

html[data-theme="dark"] {
  --bg: #071b24;
  --bg-alt: #0a222d;
  --surface: #0f2c38;
  --text: #e3f2f5;
  --muted: #94b4bf;
  --border: rgba(227, 242, 245, 0.12);
  --border-strong: rgba(227, 242, 245, 0.24);
  --accent: #2cc3d9;
  --accent-dark: #1bb2c8;
  --accent-tint: rgba(44, 195, 217, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 28px 60px -20px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* Language switching: both texts live in the HTML, CSS shows one */
html[data-lang="en"] .ko { display: none !important; }
html[data-lang="ko"] .en { display: none !important; }
html[data-lang="ko"] body { word-break: keep-all; }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.5em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.02em; }
.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2.5rem; max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad-line); border-radius: 2px; }
.section-head .between { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Buttons, tags
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.3rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none !important; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -10px rgba(11, 114, 144, 0.7); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(11, 114, 144, 0.8); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--accent-tint); border-color: var(--accent); }
.btn-ink { background: var(--ink-900); color: var(--on-ink); }
.btn-light { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.tag {
  display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: var(--accent-tint); color: var(--accent); letter-spacing: 0.01em;
}
.tag.ink { background: rgba(255, 255, 255, 0.12); color: var(--on-ink); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text); text-decoration: none !important; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.1; }
.brand-sub { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0.8rem; border-radius: 8px;
  text-decoration: none !important; position: relative; transition: background .15s;
}
.nav a:hover { background: var(--accent-tint); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 2px; height: 2px; background: var(--grad-line); border-radius: 2px;
}
.nav-tools { display: flex; align-items: center; gap: 0.4rem; margin-left: 0.5rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  height: 36px; min-width: 36px; padding: 0 0.6rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--accent-tint); border-color: var(--accent); }
.icon-btn svg { width: 16px; height: 16px; }
.lang-btn .ko, .lang-btn .en { display: inline !important; }
.lang-btn span { opacity: 0.45; }
html[data-lang="en"] .lang-btn .l-en, html[data-lang="ko"] .lang-btn .l-ko { opacity: 1; color: var(--accent); }
.lang-btn .sep { opacity: 0.35; margin: 0 -0.1rem; }
.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
html[data-theme="dark"] .theme-btn .moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 0.8rem 1.25rem 1.2rem;
    box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 0.75rem 0.8rem; font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-tools { margin: 0.6rem 0 0; padding-top: 0.8rem; border-top: 1px solid var(--border); justify-content: flex-start; }
  .brand-sub { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--ink-950);
  min-height: min(88vh, 820px); display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero-sem.jpg") center 40% / cover no-repeat;
  filter: saturate(0) contrast(1.05) brightness(0.9);
  opacity: 0.55;
}
.hero-tint {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 75% 30%, rgba(27, 178, 200, 0.28) 0%, rgba(27, 178, 200, 0) 60%),
    linear-gradient(100deg, rgba(6, 26, 34, 0.96) 0%, rgba(10, 37, 48, 0.85) 45%, rgba(16, 55, 68, 0.45) 100%);
}
.hero .wrap { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem); position: relative; }
.hero-eyebrow { color: var(--mint); }
.hero-eyebrow::before { background: var(--mint); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 1.2rem; }
.hero h1 .thin { font-weight: 400; color: var(--on-ink-muted); }
.hero .lead { color: var(--on-ink); opacity: 0.88; max-width: 56ch; font-size: 1.2rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-caption {
  position: absolute; right: 0; bottom: 1.2rem; font-family: var(--mono); font-size: 0.72rem; color: var(--on-ink-muted); letter-spacing: 0.04em;
}
.hero-scale { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-scale i { display: inline-block; width: 48px; height: 2px; background: var(--on-ink-muted); }
@media (max-width: 700px) { .hero-caption { position: static; margin-top: 2rem; } }

/* stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: -3.2rem; position: relative; z-index: 2;
  box-shadow: var(--shadow-lg);
}
.stat { background: var(--surface); padding: 1.4rem 1.5rem; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; background: var(--grad-line); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 0; box-shadow: none; } }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; gap: 0.6rem; position: relative;
}
a.card { color: inherit; text-decoration: none !important; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card h3 { margin: 0.2rem 0 0.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .num { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.1em; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); display: grid; place-items: center; color: var(--accent); }
.card-icon svg { width: 24px; height: 24px; }
.card .more { margin-top: auto; padding-top: 0.6rem; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.card-img { aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin: -0.4rem 0 0.4rem; background: var(--paper-100); }

/* --------------------------------------------------------------------------
   Pipeline (materials → cell) figure
   -------------------------------------------------------------------------- */
.pipeline { background: var(--ink-900); color: var(--on-ink); border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 4vw, 3rem); position: relative; overflow: hidden; }
.pipeline::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 90% 10%, rgba(98, 223, 198, 0.16), transparent 70%); pointer-events: none; }
.pipeline .eyebrow { color: var(--mint); }
.pipeline .eyebrow::before { background: var(--mint); }
.pipeline h2 { color: #fff; }
.pipeline p { color: var(--on-ink-muted); }
.pipe-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2rem; position: relative; }
.pipe-steps::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: var(--grad-line); opacity: 0.8; }
.pipe { text-align: center; padding: 0 0.75rem; position: relative; }
.pipe .dot { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1rem; background: var(--ink-800); border: 2px solid rgba(98, 223, 198, 0.5); display: grid; place-items: center; position: relative; }
.pipe .dot svg { width: 34px; height: 34px; color: var(--mint); }
.pipe b { display: block; color: #fff; font-family: var(--display); font-size: 1.02rem; margin-bottom: 0.3rem; }
.pipe span { font-size: 0.88rem; color: var(--on-ink-muted); }
@media (max-width: 760px) { .pipe-steps { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; } .pipe-steps::before { display: none; } }

/* --------------------------------------------------------------------------
   Research page
   -------------------------------------------------------------------------- */
.page-hero { background: var(--ink-900); color: var(--on-ink); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 70% at 85% 20%, rgba(27, 178, 200, 0.25), transparent 70%); pointer-events: none; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: var(--on-ink-muted); }
.page-hero .eyebrow { color: var(--mint); } .page-hero .eyebrow::before { background: var(--mint); }
.page-hero .wrap { position: relative; z-index: 1; }

.topic { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--border); }
.topic:first-of-type { border-top: 0; }
.topic.flip .topic-media { order: -1; }
.topic-media { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); position: relative; }
.topic-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.topic-media.contain img { object-fit: contain; padding: 1.2rem; background: #fff; }
.topic-media figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.5rem 0.9rem; font-size: 0.75rem; font-family: var(--mono); color: #fff; background: linear-gradient(transparent, rgba(6, 26, 34, 0.75)); }
.topic-media.contain figcaption { color: var(--muted); background: none; position: static; padding: 0.4rem 1rem 0.8rem; border-top: 1px solid var(--border); }
.topic h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.topic ul { padding-left: 1.1rem; margin: 0.8rem 0 0; color: var(--muted); }
.topic li { margin-bottom: 0.35rem; }
.topic li::marker { color: var(--accent); }
.topic .keys { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.topic .refs { margin-top: 1rem; font-size: 0.82rem; color: var(--muted); font-family: var(--mono); }
@media (max-width: 800px) { .topic { grid-template-columns: 1fr; } .topic.flip .topic-media { order: 0; } }


/* --------------------------------------------------------------------------
   People
   -------------------------------------------------------------------------- */
.pi { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.pi-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.pi-photo img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.pi h2 { margin-bottom: 0.2rem; }
.pi .role { color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.pi .links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 1.6rem; }
.pi .links a { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; padding: 0.45rem 0.9rem; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); text-decoration: none !important; }
.pi .links a:hover { border-color: var(--accent); background: var(--accent-tint); }
.pi .links svg { width: 15px; height: 15px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border-strong); }
.timeline li { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0.5rem; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.timeline .when { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.06em; }
.timeline b { display: block; }
.timeline small { color: var(--muted); }
.timeline .logo { height: 34px; width: auto; max-width: 160px; display: inline-block; vertical-align: middle; margin-left: 0.6rem; opacity: 0.9; }
html[data-theme="dark"] .timeline .logo { background: #fff; padding: 3px 6px; border-radius: 6px; opacity: 1; }
@media (max-width: 800px) { .pi { grid-template-columns: 1fr; } .pi-photo { max-width: 300px; } }

.member { text-align: center; padding: 1.5rem 1.2rem; }
.member .avatar { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 0.9rem; background: var(--accent-tint); display: grid; place-items: center; color: var(--accent); border: 2px dashed var(--border-strong); }
.member .avatar svg { width: 44px; height: 44px; opacity: 0.8; }
.member .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.member b { display: block; font-family: var(--display); font-size: 1.05rem; }
.member span { color: var(--muted); font-size: 0.9rem; }
.member.open { border-style: dashed; background: transparent; box-shadow: none; }
.member.open b { color: var(--accent); }
.empty { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */
.pub-tools { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-bottom: 2rem; }
.pub-search { flex: 1 1 260px; position: relative; }
.pub-search input {
  width: 100%; height: 44px; padding: 0 1rem 0 2.6rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 0.95rem;
}
.pub-search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pub-search svg { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--ink-900); color: var(--on-ink); border-color: var(--ink-900); }
html[data-theme="dark"] .chip.active { background: var(--accent); color: #05242c; border-color: var(--accent); }
.pub-year { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 1.8rem 0; border-top: 1px solid var(--border); }
.pub-year > h3 { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); margin: 0; position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
.pub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.pub { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.05rem 1.25rem; display: grid; gap: 0.25rem; transition: border-color .15s, box-shadow .15s; }
.pub:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.pub .title { font-weight: 650; font-size: 1.02rem; line-height: 1.45; color: var(--text); }
.pub .title a { color: inherit; }
.pub .authors { color: var(--muted); font-size: 0.92rem; }
.pub .authors b { color: var(--text); font-weight: 650; }
.pub .venue { font-size: 0.9rem; color: var(--text); }
.pub .venue i { font-style: italic; }
.pub .meta { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.3rem; align-items: center; }
.pub .meta .tag { font-size: 0.72rem; }
.pub .meta a { font-size: 0.82rem; font-weight: 600; }
.pub-count { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 700px) { .pub-year { grid-template-columns: 1fr; gap: 0.6rem; } .pub-year > h3 { position: static; font-size: 1.5rem; } }

/* Home: selected pubs */
.sel-pubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 800px) { .sel-pubs { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.news { display: grid; grid-template-columns: 90px 1fr; gap: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; align-items: start; }
.news time { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.04em; padding-top: 0.25rem; }
.news b { display: block; font-size: 1.02rem; }
.news p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; }
.news .tag { margin-bottom: 0.3rem; }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; gap: 0.3rem; } }

/* --------------------------------------------------------------------------
   Contact / Join
   -------------------------------------------------------------------------- */
.join { background: var(--ink-900); color: var(--on-ink); border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.join::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgba(98, 223, 198, 0.2), transparent 70%); pointer-events: none; }
.join h2 { color: #fff; } .join p { color: var(--on-ink-muted); }
.join .eyebrow { color: var(--mint); } .join .eyebrow::before { background: var(--mint); }
.join .actions { display: flex; gap: 0.8rem; flex-wrap: wrap; position: relative; }
@media (max-width: 800px) { .join { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item .card-icon { flex: none; }
.contact-item b { display: block; font-family: var(--display); }
.contact-item span, .contact-item a { color: var(--muted); }
.map-placeholder { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border-strong); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 1.5rem; }
.map-placeholder iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.positions { display: grid; gap: 1rem; }
.position { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.position b { font-family: var(--display); font-size: 1.05rem; display: block; }
.position span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 600px) { .position { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-950); color: var(--on-ink-muted); padding: 3rem 0 2rem; margin-top: 2rem; font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.7rem; }
.site-footer a { color: var(--on-ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer .brand { color: #fff; margin-bottom: 0.8rem; }
.site-footer .brand-sub { color: var(--on-ink-muted); }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.2rem; margin-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; }
@media (max-width: 700px) { .site-footer .wrap { grid-template-columns: 1fr; } }

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