/* ==========================================================
   HyperX Lab — theme
   색상은 아래 :root 변수만 바꾸면 사이트 전체에 반영됩니다.
   ========================================================== */
@font-face {
  font-family: "KoPub Dotum"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/KoPubWorldDotum-Light.woff2") format("woff2");
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}
@font-face {
  font-family: "KoPub Dotum"; font-weight: 400 500; font-style: normal; font-display: swap;
  src: url("../fonts/KoPubWorldDotum-Medium.woff2") format("woff2");
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}
@font-face {
  font-family: "KoPub Dotum"; font-weight: 600 800; font-style: normal; font-display: swap;
  src: url("../fonts/KoPubWorldDotum-Bold.woff2") format("woff2");
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7AF, U+D7B0-D7FF, U+FF00-FFEF;
}
:root {
  --bg: #05070f;
  --bg-2: #0a0f1f;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf6;
  --muted: #8f9bb6;
  --accent: #4cc9f0;      /* cyan */
  --accent-2: #7b61ff;    /* violet */
  --accent-3: #f72585;    /* magenta */
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 110%);
  --radius: 18px;
  --maxw: 1180px;
  /* 영문: Inter / 한글: KoPub World 돋움체 (assets/fonts) */
  --font: "Inter", "KoPub Dotum", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* subtle global glow */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(123, 97, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(76, 201, 240, 0.08), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.d-block { display: block; }
.eyebrow {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .06em;
  font-size: 1.05rem; font-weight: 600; color: var(--accent); margin-bottom: .8rem;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: .25em .75em; border-radius: 99px;
  background: rgba(76, 201, 240, .12); color: var(--accent); border: 1px solid rgba(76, 201, 240, .25);
}
.chip-sm { font-size: .68rem; padding: .15em .6em; vertical-align: middle; }
.count {
  font-size: .75rem; font-family: var(--font); font-weight: 600; color: var(--muted);
  background: var(--surface-2); border-radius: 99px; padding: .1em .6em; margin-left: .4em; vertical-align: middle;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.5em; border-radius: 99px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(100deg, #3a8fe0, #6a5cf0); color: #fff; box-shadow: none; }
.btn-primary:hover { color: #fff; filter: brightness(1.1); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); color: #fff; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 7, 15, .75); backdrop-filter: blur(14px); border-color: var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand img { height: 34px; width: auto; }
.brand-sub { color: var(--muted); font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.brand-sub .at { position: relative; top: -.09em; }   /* "@" sits low (x-height centred) next to the caps of SSU */
.site-nav { display: flex; gap: .3rem; }
.site-nav a {
  color: var(--muted); font-size: .92rem; font-weight: 500; padding: .45em .9em; border-radius: 99px; transition: all .2s;
}
.site-nav a:hover { color: #fff; background: var(--surface-2); }
.site-nav a.active { color: #fff; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: #fff; transition: .3s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 70%;
  opacity: .85; transform: scale(1.05); animation: drift 30s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,15,.92) 0%, rgba(5,7,15,.55) 55%, rgba(5,7,15,.2) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.orbits {
  position: absolute; z-index: 1; right: -6%; top: 50%; width: min(62vw, 760px); transform: translateY(-50%);
  opacity: .55; pointer-events: none;
}
.orbits path { fill: none; stroke: rgba(76, 201, 240, .35); stroke-width: 1; stroke-dasharray: 3 6; }
.orbits .sat { fill: #fff; filter: drop-shadow(0 0 6px var(--accent)); }
.hero-content { position: relative; z-index: 2; padding-top: 72px; }
.hero-title { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 700; line-height: 1.04; margin-bottom: 1.5rem; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3cbe0; max-width: 560px; margin-bottom: 2.2rem; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.hero-cta .btn { font-size: 1.15rem; padding: 1em 2.1em; }
.scroll-hint { position: absolute; bottom: 30px; left: 50%; z-index: 2; width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(12px); } }

/* sub-page hero */
.page-hero { position: relative; padding: 150px 0 60px; overflow: hidden; border-bottom: 1px solid var(--border);
  background: radial-gradient(800px 300px at 70% 0%, rgba(123, 97, 255, .18), transparent 70%), var(--bg-2); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0; }
.page-hero .lead { color: var(--muted); margin: .8rem 0 0; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { margin-bottom: 2.5rem; }
.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.block + .block { margin-top: 20px; }
.block-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0; color: var(--accent); margin-bottom: 1.2rem; }

/* stats */
.stats { position: relative; z-index: 3; margin-top: -70px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); backdrop-filter: blur(12px); }
.stat { background: rgba(10, 15, 31, .85); padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; margin-bottom: .4rem; }
.stat b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }

/* research */
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.research-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .35s, border-color .35s, box-shadow .35s; }
.research-card:hover { border-color: rgba(76, 201, 240, .4); }
.research-img { aspect-ratio: 1 / 1; background-size: cover; background-position: center; transition: transform .6s; }
.research-body { padding: 24px; position: relative; }
.research-body .chip { margin-bottom: .9rem; }
.research-body p { color: var(--muted); margin: 0; }

/* join */
.join-card {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; padding: 48px;
  border-radius: 26px; border: 1px solid rgba(123, 97, 255, .35); position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(123,97,255,.25), transparent 70%),
              radial-gradient(500px 300px at 0% 100%, rgba(76,201,240,.15), transparent 70%), var(--bg-2);
}
.join-card h2 { font-family: var(--font); font-weight: 700; }
.join-action { text-align: center; padding: 28px; border-radius: var(--radius); background: rgba(0,0,0,.25); border: 1px solid var(--border); }
.join-action .btn { width: 100%; word-break: break-all; }

/* news */
.news-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.news-item { position: relative; display: grid; grid-template-columns: 96px 70px 1fr; gap: 16px; align-items: baseline; padding: 9px 0 9px 28px; }
.news-item::before { content: ""; position: absolute; left: -5px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.news-item time { color: var(--muted); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.news-item p { margin: 0; }
.news-item p em { color: var(--accent); font-weight: 700; font-style: normal; }
.news-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: center; padding: .2em .5em; border-radius: 6px; }
.type-paper { background: rgba(76,201,240,.12); color: var(--accent); }
.type-award { background: rgba(255,196,0,.13); color: #ffc93c; }
.type-lab   { background: rgba(247,37,133,.13); color: #ff6fae; }
.type-member { background: rgba(74,222,128,.13); color: #4ade80; }
.news-item.collapsed { display: none; }
.show-more { margin: 1.5rem 0 0 28px; }

/* professor */
.prof-grid { display: grid; grid-template-columns: 310px 1fr; gap: 32px; align-items: start; }
.prof-card { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; text-align: center; }
.prof-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; margin-bottom: 1.2rem; }
.prof-card h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.prof-card .ko { font-family: var(--font); font-size: 1rem; color: var(--muted); font-weight: 500; }
.prof-title { font-size: .95rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .92rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.timeline li:last-child { border: 0; }
.timeline p { margin: 0; }
.tl-year { font-family: var(--display); font-weight: 600; color: #fff; }
.award-list { list-style: none; margin: 0; padding: 0; }
.award-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.award-list li:last-child { border: 0; }
.acc-group { border-bottom: 1px solid var(--border); }
.acc-group:last-child { border: 0; }
.acc-group h4 { padding: 10px 0 2px; margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.acc ul { margin: 0 0 10px; padding-left: 1.2em; color: var(--muted); }
.acc li { padding: 1px 0; }
.talk-list { list-style: none; margin: 0; padding: 0; }
.talk-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.talk-list li:last-child { border: 0; }
.talk-list time { color: var(--accent); font-weight: 600; font-size: .85rem; }
.talk-list p { margin: 0; font-size: .9rem; }

/* members */
.member-rows { display: flex; flex-direction: column; gap: 20px; }
.member-row { display: grid; grid-template-columns: 200px 222px 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .3s; }
.member-row:hover { border-color: rgba(76, 201, 240, .4); }
.member-row.is-pi { border-color: rgba(123, 97, 255, .35); }
.member-photo { aspect-ratio: 7 / 10; overflow: hidden; border-radius: 12px; background: var(--bg-2); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member-info h3 { font-size: 1.6rem; margin: 4px 0 .2rem; }
.member-role { color: var(--accent); font-weight: 600; font-size: 1.1rem; margin: 0; }
.member-pubs { border-left: 1px solid var(--border); padding-left: 14px; min-height: 100%; }
.member-pubs h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: 0; color: var(--accent); margin: 4px 0 .8rem; }
.member-pubs ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.member-pubs h4 + ul { margin-top: -.3rem; }
.member-pubs ul + h4 { margin-top: .4rem; }
.member-pubs li { padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; display: flex; flex-direction: column; gap: 1px; }
.member-pubs li:last-child { border: 0; }
.member-pubs li .muted { font-size: .82rem; font-style: italic; }
.pub-kind { align-self: flex-start; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .1em .5em; border-radius: 5px; margin-bottom: 2px; }
.kind-journal { background: rgba(76,201,240,.12); color: var(--accent); }
.kind-conference { background: rgba(123,97,255,.15); color: #a897ff; }
.kind-patent { background: rgba(255,196,0,.13); color: #ffc93c; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tags span { font-size: .88rem; padding: .2em .65em; border-radius: 6px; background: var(--surface-2); color: #c3cbe0; }
.member-mail { font-size: 1rem; color: var(--muted); white-space: nowrap; }
.alumni-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.alumni-grid .block + .block { margin-top: 0; }
.alumni-list { list-style: none; margin: 0; padding: 0; }
.alumni-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.alumni-list li:last-child { border: 0; }
.alumni-list span { color: var(--muted); font-size: .88rem; white-space: nowrap; }

/* publications */
.pub-toolbar { position: sticky; top: 72px; z-index: 10; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding: 14px 0; margin-bottom: 1.5rem; background: rgba(5, 7, 15, .85); backdrop-filter: blur(12px); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: .5em 1.1em; border-radius: 99px; cursor: pointer; transition: .2s; }
.filter:hover { color: #fff; }
.filter.active { color: #fff; background: var(--grad); border-color: transparent; }
.pub-search { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: .6em 1.2em; min-width: 280px; outline: none; }
.pub-search:focus { border-color: var(--accent); }
.pub-group { margin-bottom: 3rem; }
.pub-group-title { font-size: 1.3rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.pub-list { margin: 0; padding-left: 2.6em; }
.pub-list li::marker { color: var(--muted); font-size: .85rem; font-weight: 600; }
.pub-item { padding: 8px 0 8px 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.pub-item p { margin: 0; }
.pub-title { font-weight: 600; color: #fff; font-size: 1.02rem; }
.pub-authors { color: #b7c0d8; font-size: .92rem; margin-top: 2px !important; }
.pub-authors .lab, .pub-legend .lab { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.pub-legend { margin: 0; font-size: .85rem; color: var(--muted); flex-basis: 100%; order: 3; }
.pub-legend b { color: #fff; }
.pub-venue { color: var(--muted); font-size: .88rem; font-style: italic; }
.pub-item.hidden, .pub-group.hidden { display: none; }
mark { background: rgba(76,201,240,.3); color: #fff; border-radius: 3px; }

/* projects */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .3s, border-color .3s; }
.project-card:hover { transform: translateY(-4px); border-color: rgba(76,201,240,.4); }
.project-card h4 { font-family: var(--font); font-size: 1.15rem; margin: .8rem 0 .3rem; }
.project-card p { margin: 0 0 1rem; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #4ade80; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.project-meta span { font-size: .78rem; padding: .25em .7em; border-radius: 6px; background: var(--surface-2); color: #c3cbe0; white-space: nowrap; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.project-list p { margin: 0; font-size: .88rem; }
.project-list b { font-weight: 600; }

/* lectures */
.lecture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.lecture-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s, border-color .3s; }
.lecture-card:hover { transform: translateY(-4px); border-color: rgba(123,97,255,.5); }
.lecture-card h3 { margin: 1rem 0 .4rem; font-size: 1.25rem; }
.lecture-card p { margin: 0; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; align-items: start; }
.gallery-item { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.gallery-open { position: relative; }
.gallery-open img { width: 100%; height: auto; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; font-weight: 600; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-nav.prev { left: 24px; } .lightbox-nav.next { right: 24px; }
.lightbox-nav[hidden] { display: none; }
.gallery-item figcaption { padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.gallery-item time { color: var(--muted); font-size: .85rem; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; border-radius: 10px; }
.lightbox p { margin-top: 1rem; color: #c3cbe0; text-align: center; }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-2); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 40px; }
.footer-logo { height: 28px; width: auto; margin-bottom: 1rem; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.site-footer p { font-size: .9rem; }
.tagline { font-family: var(--display); color: #c3cbe0; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .scroll-hint span { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; padding: 16px 24px 24px;
    background: rgba(5,7,15,.97); border-bottom: 1px solid var(--border); transform: translateY(-120%); transition: transform .35s; }
  .nav-open .site-nav { transform: none; }
  .nav-open .site-header { background: rgba(5,7,15,.97); }
  .site-nav a { padding: .8em 1em; }
  .research-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .join-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .prof-grid { grid-template-columns: 1fr; }
  .prof-card { position: static; max-width: 420px; margin: 0 auto; }
  .alumni-grid, .project-grid { grid-template-columns: 1fr; }
  .member-row { grid-template-columns: 160px 1fr; }
  .member-pubs { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .orbits { opacity: .3; width: 110vw; right: -40%; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .news-item { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
  .news-type { justify-self: start; }
  .timeline li, .talk-list li { grid-template-columns: 1fr; gap: 2px; }
  .project-list li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pub-search { min-width: 0; width: 100%; }
  .pub-list { padding-left: 2.2em; }
  .lecture-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .member-row { grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; }
  .stat b { font-size: 2rem; }
}

/* lecture / simulator link cards */
.tool-card { display: block; color: var(--text); }
.tool-card:hover { color: var(--text); }
.tool-open { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 600; font-size: .9rem; }

/* research page */
.research-jump { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.research-jump a { color: var(--muted); font-weight: 600; font-size: .92rem; padding: .5em 1.1em; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); }
.research-jump a:hover { color: #fff; border-color: rgba(76,201,240,.4); }
.research-area { display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: start; padding: 32px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); scroll-margin-top: 96px; }
.research-area:nth-of-type(even) { grid-template-columns: 1fr 460px; }
.research-area:nth-of-type(even) .research-area-img { order: 2; }
.research-area-img img { width: 100%; height: auto; border-radius: 12px; background: #fff; padding: 10px; }
.research-area-body .chip { margin-bottom: .8rem; }
.research-area-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.research-summary { font-size: 1.1rem; color: #c3cbe0; }
.research-area-body h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin: 1.6rem 0 .7rem; }
.topic-list { margin: 0; padding-left: 1.2em; }
.topic-list li { padding: 2px 0; }
.topic-list li::marker { color: var(--accent); }
.research-pubs { list-style: none; margin: 0; padding: 0; }
.research-pubs li { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.research-pubs li:last-child { border: 0; }
.research-pubs .muted { font-size: .84rem; font-style: italic; }
.research-card-link { color: inherit; display: block; }
.research-card-link:hover { color: inherit; }
@media (max-width: 960px) {
  .research-area, .research-area:nth-of-type(even) { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
  .research-area:nth-of-type(even) .research-area-img { order: 0; }
  .research-area-img img { max-width: 520px; }
}

/* LEO constellation animation */
.constellation-wrap { border-radius: 12px; overflow: hidden; background: #fff; padding: 10px; }
.constellation { display: block; width: 100%; aspect-ratio: 6 / 5; }
.constellation-cap { margin: 0; padding: 8px 4px 0; font-size: .8rem; color: #555; border-top: 1px solid #e5e7eb; }
.research-fig { margin: 0 0 16px; }
.research-fig figcaption { font-size: .85rem; font-weight: 700; color: #c9d3ee; text-align: center; margin-top: 8px; }
.threebody { display: block; width: 100%; aspect-ratio: 3 / 2; }
.efbeam { display: block; width: 100%; aspect-ratio: 4 / 3; }

.research-fig img { cursor: zoom-in; }
.fig-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 3vw; cursor: zoom-out; }
.fig-lightbox[hidden] { display: none; }
.fig-lightbox img { width: min(1400px, 94vw); max-height: 92vh; object-fit: contain; background: #fff; border-radius: 10px; padding: 16px; }
.nowrap { white-space: nowrap; }
.pub-venue .venue-name { font-weight: 700; color: var(--accent); }
.member-pubs li .pub-authors { font-size: .84rem; color: #b7c0d8; }
.member-pubs li .pub-venue { font-size: .82rem; color: var(--muted); font-style: italic; }
.member-pubs .pub-venue .venue-name { color: inherit; }
.news-item p strong { color: #fff; font-weight: 700; }
.acc ul { letter-spacing: -0.04em; }
.lecture-extra { margin: 1.6rem 0 0; text-align: right; font-size: .85rem; }
.lecture-extra a { color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: .35em .9em; }
.lecture-extra a:hover { color: #fff; border-color: rgba(76,201,240,.4); }
.constellation-wrap { cursor: zoom-in; }
.constellation-wrap.zoomed { position: fixed; z-index: 201; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(92vw, 88vh); cursor: zoom-out; }
.constellation-wrap.zoomed:has(.threebody), .constellation-wrap.zoomed:has(.efbeam) { width: min(94vw, 117vh); }
.canvas-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); cursor: zoom-out; }
/* recruiting notice page */
.recruit-card { max-width: 860px; margin: 0 auto; padding: 36px 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); line-height: 1.75; }
.recruit-card h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.recruit-card h3 { margin: 28px 0 8px; font-size: 1.12rem; color: var(--accent); letter-spacing: 0; }
.recruit-card ul { margin: 0; padding-left: 1.2em; }
.recruit-card li { margin: 4px 0; }
.recruit-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.recruit-tags span { font-size: .85rem; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); }
.recruit-end { margin-top: 28px; font-weight: 600; }
.recruit-cta { margin-top: 18px; }
.join-action .join-link { display: block; margin-top: 10px; }
@media (max-width: 600px) { .recruit-card { padding: 24px 20px; } }
