/* =====================================================================
   AIDT Lab — "digital twin" design system
   Plain CSS (no build step). Sections:
   1 tokens · 2 base · 3 layout · 4 header/footer · 5 hero · 6 sections
   7 cards · 8 publications · 9 members · 10 prose/toc · 11 pages · 12 utils
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #f5f7fb;
  --bg-alt: #eaf0f8;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --text: #0b1324;
  --muted: #56637b;
  --line: #d9e1ed;
  --line-strong: #b9c6da;
  --brand: #0a3d8f;          /* DAU navy */
  --brand-ink: #ffffff;
  --accent: #0284c7;         /* data cyan */
  --accent-soft: rgba(2, 132, 199, .10);
  --amber: #c27803;
  --amber-soft: rgba(245, 158, 11, .14);
  --green: #0f9d6b;
  --grid: rgba(10, 61, 143, .07);
  --shadow: 0 1px 2px rgba(11, 19, 36, .04), 0 8px 24px -12px rgba(11, 19, 36, .18);
  --shadow-lg: 0 24px 60px -28px rgba(11, 19, 36, .35);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* hero is always dark */
  --night: #050a16;
  --night-2: #0a1428;
  --cyan: #5ad1ff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070d1a; --bg-alt: #0a1222; --surface: #0e1729; --surface-2: #13203a;
    --text: #e5ecf7; --muted: #8e9cb6; --line: #1d2a45; --line-strong: #2b3c60;
    --brand: #6aa8ff; --brand-ink: #04101f; --accent: #38bdf8; --accent-soft: rgba(56, 189, 248, .12);
    --amber: #f5b13d; --amber-soft: rgba(245, 177, 61, .14); --green: #34d399;
    --grid: rgba(90, 209, 255, .06);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070d1a; --bg-alt: #0a1222; --surface: #0e1729; --surface-2: #13203a;
  --text: #e5ecf7; --muted: #8e9cb6; --line: #1d2a45; --line-strong: #2b3c60;
  --brand: #6aa8ff; --brand-ink: #04101f; --accent: #38bdf8; --accent-soft: rgba(56, 189, 248, .12);
  --amber: #f5b13d; --amber-soft: rgba(245, 177, 61, .14); --green: #34d399;
  --grid: rgba(90, 209, 255, .06);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  --shadow-lg: 0 30px 70px -30px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- Language switching ---------- */
html:not([data-lang="ko"]) .ko { display: none !important; }
html[data-lang="ko"] .en { display: none !important; }
html[data-lang="ko"] body { word-break: keep-all; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); font-feature-settings: "ss06";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
.icon { flex: none; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.wrap--narrow { max-width: 860px; }
.wrap--mid { max-width: 1000px; }
.section { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); overflow: hidden; }
.section > .wrap { position: relative; }
.blueprint, .page-hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 0%, transparent 75%);
}
.kicker {
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 .9rem;
  font: 600 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.kicker__idx { color: var(--muted); padding-right: .6em; border-right: 1px solid var(--line-strong); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; gap: .25rem 1.5rem; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head .kicker { flex-basis: 100%; }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin: 0; flex: 1 1 auto; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .95rem; color: var(--accent); }
.link-arrow:hover { text-decoration: none; gap: .65em; }
.link-arrow, .link-arrow .icon { transition: gap .2s, transform .2s; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.3em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; line-height: 1; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px var(--accent); }
.btn--primary:hover { box-shadow: 0 12px 30px -10px var(--accent); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--glass { color: #e8f6ff; border-color: rgba(140, 210, 255, .35); background: rgba(10, 30, 60, .35); backdrop-filter: blur(6px); }
.btn--glass:hover { border-color: var(--cyan); }

/* ---------- 4. Header ---------- */
.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(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s, color .3s;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); flex: none; overflow: hidden; }
.brand__mark img { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.brand__text small { font: 500 .66rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: .5em .85em; border-radius: 999px; color: inherit; font-weight: 500; font-size: .95rem; opacity: .82; position: relative; }
.nav a:hover { text-decoration: none; opacity: 1; background: var(--accent-soft); }
.nav a[aria-current="page"] { opacity: 1; color: var(--accent); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.site-header__tools { display: flex; align-items: center; gap: 6px; }
.tool-btn { display: inline-grid; place-items: center; height: 38px; min-width: 38px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: inherit; }
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn { display: inline-flex; gap: 4px; font: 600 .78rem/1 var(--mono); padding: 0 12px; }
.lang-btn__opt { opacity: .45; }
.lang-btn__sep { opacity: .3; }
html:not([data-lang="ko"]) .lang-btn__opt[data-l="en"], html[data-lang="ko"] .lang-btn__opt[data-l="ko"] { opacity: 1; color: var(--accent); }
.theme-ico { display: none; }
:root .theme-ico--moon { display: inline; }
:root[data-theme="dark"] .theme-ico--moon { display: none; }
:root[data-theme="dark"] .theme-ico--sun { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-ico--moon { display: none; }
  :root:not([data-theme="light"]) .theme-ico--sun { display: inline; }
}
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

/* Overlay header on the home hero */
.site-header.is-overlay { position: fixed; inset: 0 0 auto 0; background: transparent; border-color: transparent; color: #eaf4ff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay .brand__text small { color: rgba(220, 236, 255, .7); }
.site-header.is-overlay .tool-btn { border-color: rgba(160, 210, 255, .25); }
.site-header.is-overlay .nav a[aria-current="page"], .site-header.is-overlay .tool-btn:hover { color: var(--cyan); }
.site-header.is-overlay.is-scrolled { background: rgba(5, 10, 22, .78); border-color: rgba(120, 180, 255, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 12px clamp(16px, 4vw, 40px) 24px;
    background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: .85em 1em; font-size: 1.05rem; border-radius: 10px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: inline; }
  .nav-open .site-header.is-overlay { background: rgba(5, 10, 22, .92); }
  .site-header__tools { margin-left: auto; }
}
@media (max-width: 420px) { .brand__text small { display: none; } .lang-btn { padding: 0 9px; } }

/* Footer */
.site-footer { margin-top: clamp(48px, 8vw, 96px); background: var(--night); color: #c7d4ea; border-top: 1px solid #14213b; font-size: .94rem; }
.site-footer a { color: #e6f2ff; }
.site-footer .muted { color: #8796b1; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { text-transform: none; letter-spacing: 0; font-family: var(--font); color: #8796b1; font-size: .85rem; }
.brand--footer { margin-bottom: 18px; }
.brand--footer .brand__mark { width: 48px; height: 48px; }
.footer-h { font: 600 .72rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { margin-top: 4px; color: var(--cyan); }
.footer-list--plain li { color: #9fb0cc; font-size: .86rem; }
.footer-partners { display: flex; gap: 18px; align-items: flex-start; }
.footer-dau { flex: none; background: #fff; border-radius: 12px; padding: 8px; width: 92px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 28px; border-top: 1px solid #14213b; font-size: .8rem; color: #7183a3; }
.site-footer__bottom a { color: inherit; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 5. Hero (live digital twin) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, min(100svh, 940px));
  background:
    radial-gradient(ellipse 60% 55% at 72% 58%, rgba(30, 110, 220, .28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 10%, rgba(20, 60, 140, .35), transparent 70%),
    linear-gradient(180deg, #040814 0%, var(--night) 55%, #071226 100%);
  color: #eaf4ff; display: flex; align-items: center;
}
.hero__canvas, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__canvas { touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 1.2s ease; }
.hero__canvas.is-ready { opacity: 1; }
.hero__canvas:active { cursor: grabbing; }
.hero__poster { object-fit: contain; object-position: 78% 60%; padding: 12vh 0 6vh 38%; opacity: .55; transition: opacity .3s; pointer-events: none; }
.hero.is-live .hero__poster { opacity: 0; }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,10,22,.92) 0%, rgba(5,10,22,.55) 38%, transparent 62%), linear-gradient(0deg, rgba(5,10,22,.9), transparent 22%); }
.hero__inner { padding-block: calc(var(--header-h) + 48px) 120px; pointer-events: none; }
.hero__copy { max-width: 620px; pointer-events: auto; }
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 22px; font-weight: 800; }
.hero__title em { font-style: normal; background: linear-gradient(92deg, #7fdcff 0%, #4ea8ff 50%, #ffc56b 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-lang="ko"] .hero__title { font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -.04em; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #b5c6e2; max-width: 540px; margin-bottom: 30px; }
.hud-chip { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(90, 209, 255, .3); background: rgba(10, 40, 80, .35); color: var(--cyan); font-size: .72rem; letter-spacing: .18em; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #3df5a6; box-shadow: 0 0 0 0 rgba(61,245,166,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,245,166,.55); } 70% { box-shadow: 0 0 0 9px rgba(61,245,166,0); } 100% { box-shadow: 0 0 0 0 rgba(61,245,166,0); } }

.hud { position: absolute; z-index: 2; color: #9fc6e8; font-size: .7rem; letter-spacing: .08em; pointer-events: none; }
.hud--spec {
  right: clamp(16px, 3vw, 40px); top: calc(var(--header-h) + 28px); width: 290px; padding: 14px 16px 12px;
  background: rgba(6, 16, 34, .55); border: 1px solid rgba(90, 209, 255, .22); border-radius: 10px; backdrop-filter: blur(8px);
}
.hud--spec::before, .hud--spec::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1.5px solid var(--cyan); }
.hud--spec::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.hud--spec::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.hud__title { display: flex; align-items: center; gap: 8px; color: #e9f6ff; margin: 0 0 10px; font-weight: 600; letter-spacing: .12em; }
.hud dl { margin: 0; display: grid; gap: 5px; }
.hud dl div { display: grid; grid-template-columns: 54px 1fr; gap: 8px; }
.hud dt { color: #5f86ad; }
.hud dd { margin: 0; color: #d9ecff; display: flex; align-items: center; gap: 8px; }
.hud__bar { flex: 1; height: 3px; background: rgba(90, 209, 255, .15); border-radius: 2px; overflow: hidden; }
.hud__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4ea8ff, #7fdcff); }
.hud--foot { left: 0; right: 0; bottom: 22px; display: flex; justify-content: space-between; padding-inline: clamp(16px, 4vw, 40px); max-width: 1240px; margin-inline: auto; color: #58799c; }
.hud__hint::before { content: "⟲ "; }
@media (max-width: 900px) {
  .hero { align-items: flex-start; min-height: max(720px, 100svh); }
  .hero__shade { background: linear-gradient(180deg, rgba(5,10,22,.95) 0%, rgba(5,10,22,.7) 42%, transparent 70%), linear-gradient(0deg, rgba(5,10,22,.85), transparent 25%); }
  .hero__poster { padding: 46vh 6vw 4vh; object-position: 50% 80%; }
  .hud--spec { display: none; }
}
@media (hover: none) { .hud__hint { display: none; } }

/* Stats band */

/* ---------- 6. Sections ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__text p:not(.lead):not(.kicker) { color: var(--muted); }
.frame { position: relative; margin: 0; border-radius: var(--radius); }
.frame::before, .frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); z-index: 2; pointer-events: none; }
.frame::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.about__media figcaption { margin-top: 12px; font-size: .72rem; color: var(--muted); letter-spacing: .14em; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); box-shadow: var(--shadow-lg); scrollbar-width: none; aspect-ratio: 16 / 10; background: var(--surface-2); }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Research areas */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.area-card {
  position: relative; padding: 22px 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .25s, border-color .25s, box-shadow .25s; overflow: hidden;
}
.area-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.area-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.area-card:hover::after { transform: scaleX(1); }
.area-card__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.area-card__idx { position: absolute; top: 20px; right: 20px; font-size: .72rem; color: var(--muted); }
.area-card h3 { font-size: 1.12rem; }
.area-card p { color: var(--muted); font-size: .93rem; }
.kw { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kw li { font: 500 .7rem/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project-card__media { aspect-ratio: 16 / 9; background: var(--night-2); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-card__body h3 { font-size: 1.12rem; }
.project-card__body h3 a { color: inherit; }
.project-card__body p { color: var(--muted); font-size: .93rem; }
.project-card__meta { display: flex; gap: 10px; align-items: center; font-size: .75rem; color: var(--muted); margin-bottom: 10px; }
.project-card__funder { margin: auto 0 0; font-size: .72rem; color: var(--muted); letter-spacing: .1em; }
.status { font: 600 .66rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: 5px 8px; border-radius: 999px; border: 1px solid currentColor; }
.status--ongoing { color: var(--green); }
.status--completed { color: var(--muted); }
.status--ongoing::before { content: "● "; }

/* News */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.news-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.news-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__count { position: absolute; right: 10px; bottom: 10px; font-size: .7rem; padding: 4px 8px; border-radius: 6px; background: rgba(5,10,22,.7); color: #fff; }
.news-card__body { padding: 16px 18px 20px; }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-size: .72rem; color: var(--muted); margin: 0 0 10px; }
.news-card__title { font-size: 1.02rem; line-height: 1.4; margin: 0; }
.news-card__title a { color: inherit; }
.news-card__excerpt { font-size: .88rem; color: var(--muted); margin: 10px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag { font: 600 .64rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: 5px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.tag--award { background: var(--amber-soft); color: var(--amber); }
.tag--graduation { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.milestones { position: sticky; top: calc(var(--header-h) + 24px); padding: 22px 22px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.milestones__title { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { position: relative; padding: 0 0 18px 22px; border-left: 1px solid var(--line-strong); margin-left: 4px; }
.timeline__item::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline__item:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline__item:last-child { border-left-color: transparent; }
.timeline__item time { font-size: .72rem; color: var(--muted); }
.timeline__item p { margin: 2px 0 0; font-size: .9rem; line-height: 1.45; }
.timeline__item a { color: inherit; }
.timeline__item a:hover { color: var(--accent); }
@media (max-width: 980px) { .news-layout { grid-template-columns: 1fr; } .milestones { position: static; } }

/* CTA */
.cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 6px); background: var(--night-2); color: #dce9fb; border: 1px solid #1a2c50; --grid: rgba(90, 209, 255, .08); }
.cta .section-title { color: #fff; }
.cta__text { max-width: 640px; position: relative; }
.cta__text p:last-child { color: #a9bbd8; margin: 12px 0 0; }
.cta .btn-row { position: relative; }
.cta .btn--ghost { background: transparent; color: #e6f2ff; border-color: rgba(160, 210, 255, .3); }

/* ---------- 7. Shared card effects ---------- */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.scan { position: relative; }
.scan::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(90, 209, 255, .0) 40%, rgba(90, 209, 255, .45) 50%, rgba(90, 209, 255, 0) 51%, transparent 100%);
  background-size: 100% 220%; background-position: 0 100%;
}
*:hover > .scan::after, .scan:hover::after { animation: scan 1.1s ease-out; }
@keyframes scan { 0% { opacity: 1; background-position: 0 100%; } 100% { opacity: 1; background-position: 0 -20%; } }

/* ---------- 8. Publications ---------- */
.pub-tools { position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px; margin-bottom: 28px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg__btn { border: 1px solid transparent; background: transparent; padding: 8px 12px; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.seg__btn .mono { font-size: .72rem; opacity: .7; }
.seg__btn:hover { color: var(--text); background: var(--surface-2); }
.seg__btn.is-on { background: var(--accent); color: #fff; }
.search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); min-width: 0; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 0; font: inherit; font-size: .92rem; color: var(--text); outline: none; }
.search:focus-within { border-color: var(--accent); }
.select { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: .9rem; max-width: 100%; }
.pub-year { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 24px; border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 18px; }
.pub-year__label { font-size: 1.6rem; font-weight: 600; color: var(--line-strong); margin: 0; position: sticky; top: calc(var(--header-h) + 100px); align-self: start; }
.pub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pub { display: grid; grid-template-columns: minmax(0, 1fr); padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.pub:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.pub__year { display: none; }
.pub-list--compact .pub { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
.pub-list--compact .pub__year { display: block; color: var(--accent); font-weight: 600; }
.pub__title { font-size: 1.02rem; line-height: 1.4; margin: 0 0 6px; }
.pub__title a { color: inherit; }
.pub__title a:hover { color: var(--accent); }
.pub__authors { margin: 0 0 2px; font-size: .9rem; }
.pub__venue { margin: 0 0 10px; font-size: .86rem; color: var(--muted); }
.pub__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; font-size: .74rem; font-weight: 500; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); line-height: 1.4; }
.chip--journal { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.chip--domestic { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); border-color: transparent; }
.chip--award { color: var(--amber); background: var(--amber-soft); border-color: transparent; font-weight: 600; }
.chip--link { color: var(--text); font-size: .7rem; }
.chip--link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip--btn { cursor: pointer; }
.chip--btn:hover { border-color: var(--accent); color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
@media (max-width: 700px) {
  .pub-year { grid-template-columns: 1fr; }
  .pub-year__label { position: static; font-size: 1.2rem; margin-bottom: 10px; }
  .pub-tools { position: static; }
  .pub-list--compact .pub { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 9. Members ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .82rem; }
.jump a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.jump__n { color: var(--muted); }
.member-group { margin-bottom: clamp(40px, 6vw, 64px); scroll-margin-top: calc(var(--header-h) + 20px); }
.group-title { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; margin: 0 0 22px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.faculty { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; }
.faculty-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.faculty-card__photo { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.faculty-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.faculty-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.faculty-card h3 a { color: inherit; }
.faculty-card__title { font-size: .9rem; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.faculty-card__field { font-size: .74rem; color: var(--muted); margin-bottom: 12px; }
.faculty-card__bio { font-size: .9rem; color: var(--muted); }
.faculty-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
@media (max-width: 560px) { .faculty-card { grid-template-columns: 1fr; } .faculty-card__photo { max-width: 180px; } }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.member-grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.member-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.member-card__photo { aspect-ratio: 1 / 1; background: var(--surface-2); overflow: hidden; }
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.92); transition: filter .3s, transform .6s; }
.member-card:hover .member-card__photo img { filter: none; transform: scale(1.03); }
.member-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.member-card__name { font-size: 1.02rem; margin: 0; }
.member-card__name a { color: inherit; }
.member-card__ko { display: block; margin-top: 2px; font-weight: 500; color: var(--muted); font-size: .88rem; }
.member-card__meta { font-size: .72rem; color: var(--muted); margin: 0; }
.member-card__field { font-size: .84rem; margin: 2px 0 6px; line-height: 1.45; }
.member-card .icon-links { margin-top: auto; position: relative; z-index: 2; }
.icon-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.icon-links a { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-width: 32px; padding: 0 8px; justify-content: center; border-radius: 8px; color: var(--muted); border: 1px solid transparent; font-size: .8rem; }
.icon-links a:hover { color: var(--accent); border-color: var(--line); background: var(--surface-2); text-decoration: none; }
.alumni { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.alumni__item { display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.alumni__photo { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-2); }
.alumni__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(.4); }
.alumni__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.alumni__body strong a { color: inherit; }
.alumni__body small { color: var(--muted); font-size: .78rem; }
.alumni__note { color: var(--accent) !important; }

/* Profile */
.profile-hero, .project-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.profile-hero__inner, .project-hero__inner { position: relative; padding-block: 28px 44px; }
.back-link { display: table; font-size: .78rem; color: var(--muted); margin-bottom: 22px; letter-spacing: .06em; }
.profile { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.profile__photo { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); border: 4px solid var(--surface); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.profile__name { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 8px; letter-spacing: -.03em; }
.profile__name span { font-weight: 500; color: var(--muted); font-size: .6em; }
.profile__title { font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.profile__meta { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.profile__field { margin-bottom: 12px; color: var(--muted); }
.profile .icon-links { margin-bottom: 14px; }
.profile .icon-links a { border-color: var(--line); background: var(--surface); padding: 0 12px; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; } .profile__photo { width: 150px; } }

/* ---------- 10. Prose + TOC ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero__inner { position: relative; padding-block: clamp(40px, 7vw, 84px) clamp(32px, 5vw, 56px); }
.page-hero__title { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.035em; margin-bottom: 14px; max-width: 900px; }
.page-hero__lead { font-size: clamp(1rem, 1.6vw, 1.16rem); color: var(--muted); max-width: 720px; margin: 0; }
.page-hero--news .page-hero__title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.page-hero--news .btn-row { margin-top: 20px; }
.page-hero--404 { min-height: 60vh; display: flex; align-items: center; }
.page-hero--404 .btn-row { margin-top: 24px; }
.page-body { padding-top: clamp(32px, 5vw, 56px); }
.page-body.has-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: .86rem; max-height: calc(100vh - var(--header-h) - 56px); overflow: auto; }
.toc__title { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); line-height: 1.35; }
.toc li a:hover { color: var(--text); text-decoration: none; }
.toc li a.is-active { color: var(--accent); border-left-color: var(--accent); }
.toc li.toc-sub a { padding-left: 26px; font-size: .82rem; }
.toc:empty, .toc[data-empty] { display: none; }
@media (max-width: 900px) { .page-body.has-toc { grid-template-columns: 1fr; } .toc { display: none; } }

.prose { max-width: 820px; min-width: 0; font-size: 1.02rem; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2 { font-size: 1.5rem; margin: 2.2em 0 .7em; padding-bottom: .4em; border-bottom: 1px solid var(--line); position: relative; }
.prose h1::before, .prose h2::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--accent); }
.prose h3 { font-size: 1.18rem; margin: 1.8em 0 .6em; }
.prose h4 { font-size: 1.02rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent); }
.prose hr { display: none; }
.prose img { border-radius: 10px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; background: #fff; border: 1px solid var(--line); cursor: zoom-in; }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .92rem; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose blockquote { margin: 1.2em 0; padding: .8em 1.2em; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.prose .lead { color: var(--muted); font-size: 1.05rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); margin-bottom: 1.5em; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 22px 0 0; }
.facts dt { font: 600 .68rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: .92rem; }
.project-hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.project-hero__img { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.project-hero__img img { width: 100%; }
@media (max-width: 860px) { .project-hero__inner { grid-template-columns: 1fr; } }

/* ---------- 11. Page specifics ---------- */
/* Research timeline */
.project-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.project-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
.project-row__when { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--muted); padding-top: 6px; }
.project-row__card { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.project-row__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.project-row__media { background: var(--night-2); min-height: 200px; }
.project-row__media img { width: 100%; height: 100%; object-fit: cover; }
.project-row__body { padding: 22px 24px; }
.project-row__body h3 { font-size: 1.2rem; }
.project-row__body h3 a { color: inherit; }
.project-row__body p { color: var(--muted); font-size: .94rem; }
@media (max-width: 900px) { .project-row { grid-template-columns: 1fr; gap: 10px; } .project-row__when { flex-direction: row; align-items: center; } .project-row__card { grid-template-columns: 1fr; } .project-row__media { aspect-ratio: 16 / 9; min-height: 0; } }

/* News article */
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 32px; padding-bottom: 6px; }
.gallery__item { flex: 0 0 min(88%, 640px); scroll-snap-align: start; border: 0; padding: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); aspect-ratio: 3 / 2; }
.gallery--single .gallery__item { flex-basis: 100%; aspect-ratio: auto; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .92rem; line-height: 1.4; }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager small { color: var(--muted); font-weight: 500; font-size: .7rem; }
.pager__next { text-align: right; grid-column: 2; }
.news-grid--page { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4vmin; background: rgba(3, 7, 16, .92); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #fff; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
[data-zoom] { cursor: zoom-in; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
.contact__cards { display: grid; gap: 12px; }
.office-card { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.office-card .office-card__room { display: inline-block; font-size: .74rem; padding: 4px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.office-card h2 { font-size: 1.08rem; margin-bottom: 8px; }
.office-card p { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: .92rem; }
.office-card .icon { color: var(--muted); }
.contact__address { display: flex; gap: 10px; color: var(--muted); font-size: .92rem; margin: 6px 4px 0; }
.contact__address .icon { margin-top: 3px; color: var(--accent); }
.map { aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--surface-2); }
.join { position: relative; overflow: hidden; margin-top: clamp(48px, 7vw, 88px); padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--radius) + 6px); background: var(--bg-alt); border: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.join__head { position: relative; max-width: 760px; margin-bottom: 28px; }
.join__head .lead { color: var(--muted); margin-top: 12px; }
.join__cols { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.join__card { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.join__card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.join__card .btn { margin-top: 10px; }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; counter-reset: c; }
.checklist li { display: flex; gap: 12px; align-items: baseline; }
.checklist li::before { counter-increment: c; content: counter(c, decimal-leading-zero); font: 600 .72rem/1 var(--mono); color: var(--accent); }
.checklist--plus li::before { content: "+"; font-size: 1rem; }
.campus { margin-top: clamp(48px, 7vw, 80px); }
.campus__map { display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; max-width: 760px; margin-inline: auto; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Lectures */
.note { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--text); margin-bottom: 36px; }
.note .icon { color: var(--accent); }
.courses { display: grid; gap: 12px; margin-bottom: 48px; }
.course { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.course summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 600; }
.course summary::-webkit-details-marker { display: none; }
.course summary::after { content: "+"; margin-left: 12px; font: 400 1.4rem/1 var(--mono); color: var(--accent); transition: transform .2s; }
.course[open] summary::after { transform: rotate(45deg); }
.course__idx { font-size: .72rem; color: var(--accent); }
.course__name { flex: 1; font-size: 1.05rem; }
.course__n { font-size: .72rem; color: var(--muted); font-weight: 500; }
.files { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; gap: 2px; }
.files a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-size: .94rem; }
.files a span { flex: 1; }
.files a .icon:first-child { color: var(--accent); }
.files a .icon:last-child { color: var(--muted); opacity: 0; transition: opacity .2s; }
.files a:hover { background: var(--surface-2); text-decoration: none; }
.files a:hover .icon:last-child { opacity: 1; }
.files--grid { padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.files--grid a, .files--grid > a { border: 1px solid var(--line); background: var(--surface); }
.prose .files--grid a { text-decoration: none; }

/* ---------- 12. Motion & utilities ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__canvas { opacity: 1; }
}
@media print {
  .site-header, .site-footer, .toc, .hero__canvas, .hud, .pub-tools { display: none !important; }
  body { background: #fff; color: #000; }
}
