/* SCOPE Lab homepage — plain CSS, no framework */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3ee;
  --accent: #0369a1;
  --accent-ink: #ffffff;
  --accent-soft: #e0f2fe;
  --nav-bg: rgba(255, 255, 255, .86);
  --shadow: 0 8px 28px rgba(15, 23, 42, .08);
  --hero-1: #07122b;
  --hero-2: #0c2a5c;
  --cy: #22d3ee;
}
[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --card: #111d33;
  --text: #e6edf7;
  --muted: #9fb0c8;
  --line: #22314d;
  --accent: #22d3ee;
  --accent-ink: #04202a;
  --accent-soft: #10303d;
  --nav-bg: rgba(11, 18, 32, .86);
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 92%); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--cy); outline-offset: 2px; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: transparent; transition: background .25s, box-shadow .25s; color: #fff; }
.nav.solid { background: var(--nav-bg); backdrop-filter: blur(10px); color: var(--text); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-size: 1.15rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 800; color: var(--cy); }
.nav.solid .brand b { color: var(--accent); }
.menu { display: flex; gap: 4px; }
.menu a { color: inherit; padding: 8px 10px; border-radius: 8px; font-size: .95rem; font-weight: 500; opacity: .9; }
.menu a:hover, .menu a.on { background: rgba(127, 160, 200, .18); text-decoration: none; opacity: 1; }
.tools { display: flex; align-items: center; gap: 8px; }
.chip { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; min-width: 40px; height: 32px; padding: 0 10px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: .85; }
.chip:hover { opacity: 1; background: rgba(127, 160, 200, .2); }
.burger { display: none; width: 40px; height: 36px; background: none; border: 0; color: inherit; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.burger span { width: 22px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO (always dark) */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; background: radial-gradient(1200px 700px at 75% 20%, var(--hero-2), var(--hero-1) 70%); overflow: hidden; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 18, 43, .88) 0%, rgba(7, 18, 43, .55) 55%, rgba(7, 18, 43, .1) 100%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; padding: 110px 0 80px; }
.eyebrow { color: var(--cy); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin: 0 0 12px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); line-height: 1.02; margin: 0 0 14px; letter-spacing: -.02em; font-weight: 800; }
.hero h1 span { color: var(--cy); font-weight: 300; }
.acronym { font-size: clamp(1rem, 2vw, 1.3rem); margin: 0 0 22px; color: #cfe0f7; max-width: 40ch; }
.acronym b { color: var(--cy); font-size: 1.15em; }
.lead { max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #e2ecfa; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; transition: transform .15s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: var(--cy); color: #04202a; }
.btn.primary:hover { background: #67e8f9; }
.btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.scroll { position: absolute; z-index: 2; bottom: 24px; left: 50%; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; transform: translateX(-50%); }
.scroll span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: dot 1.8s infinite; }
@keyframes dot { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* SECTIONS */
.sec { padding: 96px 0; }
.sec.alt { background: var(--bg-alt); }
.sec-h { margin-bottom: 40px; }
.kicker { margin: 0 0 6px; color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.sec-h h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.25; letter-spacing: -.01em; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.about-grid p { margin: 0 0 16px; font-size: 1.06rem; color: var(--muted); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.stats strong { display: block; font-size: 1.9rem; color: var(--accent); line-height: 1.2; }
.stats span { color: var(--muted); font-size: .92rem; }

/* RESEARCH */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.35; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: .96rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* PUBLICATIONS */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.filters button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.year { margin: 28px 0 10px; font-size: 1.3rem; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.pub { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.badge { height: fit-content; text-align: center; font-size: .72rem; font-weight: 700; padding: 3px 0; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.pub h4 { margin: 0 0 3px; font-size: 1.02rem; line-height: 1.45; }
.pub .au, .pub .vn { margin: 0; color: var(--muted); font-size: .92rem; }
.pub .vn { font-style: italic; }
.pub .lk { display: inline-block; margin-top: 4px; margin-right: 12px; font-size: .88rem; font-weight: 600; }
.empty { color: var(--muted); padding: 20px 0; }

/* MEMBERS */
.grp { margin-bottom: 40px; }
.grp h3 { margin: 0 0 18px; font-size: 1.2rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; text-align: center; box-shadow: var(--shadow); }
.avatar { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0369a1, #22d3ee); }
.person h4 { margin: 0; font-size: 1.05rem; }
.person .role { margin: 2px 0 8px; color: var(--accent); font-weight: 600; font-size: .88rem; }
.person .int { margin: 0; color: var(--muted); font-size: .88rem; }
.person a { font-size: .86rem; display: inline-block; margin-top: 8px; }

/* NEWS */
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news time { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.news p { margin: 0; }

/* JOIN */
.join { background: linear-gradient(120deg, var(--hero-1), var(--hero-2)); color: #fff; }
.join-in { text-align: center; max-width: 760px; }
.join h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; }
.join p { margin: 0 0 26px; color: #d5e3f7; }

/* CONTACT */
.contact { display: grid; grid-template-columns: 140px 1fr; gap: 14px 20px; margin: 0; max-width: 760px; }
.contact dt { font-weight: 700; color: var(--accent); }
.contact dd { margin: 0; color: var(--muted); }

.foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 26px 0; color: var(--muted); font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

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

/* RESPONSIVE */
@media (max-width: 880px) {
  .burger { display: flex; }
  .menu { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); color: var(--text); padding: 12px 4%; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 12px; }
  .about-grid, .prof { grid-template-columns: 1fr; }
  .sec { padding: 72px 0; }
  .hero::after { background: rgba(7, 18, 43, .72); }
}
@media (max-width: 520px) {
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .badge { width: 64px; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .contact { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 12px; }
}

/* PROFESSOR */
.prof { display: grid; grid-template-columns: 280px 1fr; gap: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); align-items: start; }
.prof-photo { width: 100%; aspect-ratio: 1043 / 1814; border-radius: 18px; object-fit: cover; background: linear-gradient(135deg, #0369a1, #22d3ee); display: grid; place-items: center; color: #fff; font-size: 4rem; font-weight: 800; }
.prof h3 { margin: 0; font-size: 1.7rem; line-height: 1.25; }
.prof .role { margin: 4px 0 2px; color: var(--accent); font-weight: 700; }
.prof .aff { margin: 0 0 14px; color: var(--muted); }
.prof .bio { margin: 0 0 18px; color: var(--muted); font-size: 1.04rem; }
.prof .tags { margin-bottom: 20px; }
.prof-cols { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 18px; }
.prof-cols.two { grid-template-columns: 1fr 1fr; }
.prof-cols h4 { margin: 0 0 8px; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.prof-cols ul { list-style: none; margin: 0; padding: 0; }
.prof-cols li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.prof-cols li span { color: var(--muted); font-variant-numeric: tabular-nums; }
.prof-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.prof-links a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .88rem; font-weight: 600; background: var(--bg-alt); }
.prof-links a:hover { border-color: var(--accent); text-decoration: none; }
.topics { margin-top: 18px; }
@media (max-width: 880px) {
  .prof { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .prof-photo { max-width: 260px; margin-inline: auto; }
  .prof-cols, .prof-cols.two { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .prof-cols li { grid-template-columns: 1fr; gap: 0; } }
/* ALUMNI */
.alumni-wrap { overflow-x: auto; }
.alumni { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.alumni th, .alumni td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.alumni th { background: var(--accent-soft); color: var(--accent); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.alumni tr:last-child td { border-bottom: 0; }
.alumni td:first-child { font-weight: 700; }
.alumni td:nth-child(2) { width: 90px; font-variant-numeric: tabular-nums; }
.alumni td:nth-child(3) { width: 110px; }
@media (max-width: 640px) {
  .alumni thead { display: none; }
  .alumni, .alumni tbody, .alumni tr, .alumni td { display: block; width: 100%; }
  .alumni tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .alumni td { border: 0; padding: 2px 16px; }
  .alumni td::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 400; }
  .alumni td:first-child::before { content: ""; }
}
