/* ==========================================================================
   CVSP Lab — main stylesheet
   Layout concept: a rendering viewport (dark hero with a live Gaussian field)
   opening onto a calm, lab-notebook body. PNU blue carries the identity,
   splat cyan is the one bright signal.
   색을 바꾸고 싶으면 아래 :root 의 변수만 바꾸면 사이트 전체에 반영됩니다.
   ========================================================================== */

:root {
  /* color */
  --bg: #ffffff;
  --photo-bg: #eef2f8;
  --surface: #ffffff;
  --ink: #0b1a2e;
  --muted: #5a6a80;
  --line: #dde4ee;
  --pnu: #0b4ea2;          /* PNU blue */
  --pnu-soft: #e6eefa;
  --signal: #0fa3b8;       /* splat cyan (text-safe on light) */
  --gold: #b7791f;         /* awards */
  --gold-soft: #fbf1df;
  --hero-bg: #17335c;      /* hero + join band stay dark in both themes */
  --hero-ink: #e9f0fa;
  --hero-muted: #c2d0e4;
  --hero-signal: #3fd3e0;

  /* type */
  --f-display: "Bricolage Grotesque", "IBM Plex Sans KR", system-ui, sans-serif;
  --f-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: clamp(2.6rem, 6vw, 4.6rem);
  --s-2: clamp(1.7rem, 3.2vw, 2.4rem);
  --s-3: 1.25rem;
  --s-body: 1rem;
  --s-small: .8125rem;

  --radius: 14px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(11, 26, 46, .05), 0 8px 24px -12px rgba(11, 26, 46, .14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111f; --photo-bg: #0f1d31; --surface: #0d1a2c; --ink: #e6edf6; --muted: #93a3b8; --line: #1d2c42;
    --pnu: #6ea4ff; --pnu-soft: #12274a; --signal: #44d2e0; --gold: #e7b35a; --gold-soft: #2b2212;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07111f; --photo-bg: #0f1d31; --surface: #0d1a2c; --ink: #e6edf6; --muted: #93a3b8; --line: #1d2c42;
  --pnu: #6ea4ff; --pnu-soft: #12274a; --signal: #44d2e0; --gold: #e7b35a; --gold-soft: #2b2212;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--s-body)/1.65 var(--f-body);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--hero-bg);
}
img { max-width: 100%; display: block; }
a { color: var(--pnu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.small { font-size: var(--s-small); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; }
.skip:focus { left: 12px; }
.nowrap { white-space: nowrap; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 900px; }
.wrap.wide { max-width: 1720px; padding-left: max(32px, 3vw); padding-right: max(32px, 3vw); }
@media (max-width: 640px) { .wrap.wide { padding-left: 20px; padding-right: 20px; } }

.eyebrow {
  font: 500 .75rem/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--pnu);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.eyebrow-hero { color: var(--hero-signal); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, #ffffff 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-logo { height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: #3d4f68; text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--pnu); background: var(--pnu-soft); }
.site-nav a.nav-cta { color: var(--hero-bg); background: var(--hero-signal); margin-left: 8px; }
.site-nav a.nav-cta:hover { background: #fff; color: var(--hero-bg); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; margin: auto; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-open .bars { background: transparent; }
.nav-open .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #ffffff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(11,26,46,.25);
    padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 80% 30%, #2a5694 0%, var(--hero-bg) 62%);
  color: var(--hero-ink);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: grab; touch-action: pan-y; }
.hero-canvas.dragging { cursor: grabbing; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(157,176,200,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157,176,200,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero-inner { padding-block: clamp(64px, 10vw, 128px) clamp(56px, 7vw, 88px); display: grid; gap: 26px; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-title { font-size: var(--s-1); font-weight: 700; letter-spacing: -.03em; max-width: 13ch; }
.hero-lede { max-width: 54ch; color: var(--hero-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 12px 44px; margin: 18px 0 0; padding-top: 24px; border-top: 1px solid rgba(157,176,200,.18); max-width: 720px; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt { font: 400 .72rem/1.3 var(--f-mono); color: var(--hero-muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-stats dd { margin: 0; font: 600 2rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.hero-readout { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 18px; font-size: .7rem; color: var(--hero-muted); opacity: .8; pointer-events: none; }
/* mascot layout: Sanjini made of gaussians stands centered, the lab name sits under it */
.hero.has-mascot { --stage: 220px; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; flex-direction: column; justify-content: center; }
.hero.has-mascot .hero-inner { width: 100%; }
.has-mascot .hero-inner { padding-top: var(--stage); justify-items: center; text-align: center; }
.has-mascot .hero-title { max-width: none; font-size: clamp(1.9rem, 4.1vw, 3.6rem); }
.has-mascot .hero-lede { margin-inline: auto; }
.has-mascot .eyebrow-hero { flex-wrap: wrap; justify-content: center; }
.has-mascot .eyebrow-hero::before { display: none; }
.has-mascot .hero-actions { justify-content: center; }
.has-mascot .hero-stats { margin-inline: auto; justify-content: center; }
.has-mascot .hero-stats div { align-items: center; }
@media (min-width: 1000px) { .has-mascot .hero-title { white-space: nowrap; } }
@media (max-width: 640px) { .hero.has-mascot { --stage: 190px; } }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-readout { display: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--hero-signal); color: var(--hero-bg); }
.btn-primary:hover { background: #fff; color: var(--hero-bg); }
.btn-ghost { color: var(--hero-ink); border-color: rgba(233,240,250,.3); }
.btn-ghost:hover { color: var(--hero-ink); border-color: var(--hero-ink); }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: #f4f7fb; border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; }
.section-head h2 { font-size: var(--s-2); max-width: 26ch; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.section-head-row > div { display: grid; gap: 14px; }
.research-head { justify-content: flex-start; align-items: end; gap: 16px 28px; }
.research-head .btn-primary { margin-bottom: 2px; }
.text-link { font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }

.page-head { background: var(--hero-bg); color: var(--hero-ink); padding-block: clamp(48px, 7vw, 84px) clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 320px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(63,211,224,.28), transparent), radial-gradient(closest-side at 30% 70%, rgba(47,123,255,.35), transparent);
  filter: blur(10px); transform: rotate(-18deg);
}
.page-head .wrap { display: grid; gap: 16px; position: relative; z-index: 1; }
.page-head .eyebrow { color: var(--hero-signal); }
.page-head h1 { font-size: var(--s-1); font-weight: 700; letter-spacing: -.03em; }
.page-head .lede { color: var(--hero-muted); max-width: 62ch; }
.page-head .year-jump a { color: var(--hero-muted); border-color: rgba(157,176,200,.25); }

/* ---------- research ---------- */
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.research-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.research-card h3 { font-size: var(--s-3); }
.research-card > p { color: var(--muted); font-size: .95rem; }
.research-visual { aspect-ratio: 16 / 9; max-width: 100%; border-radius: 10px; background-color: var(--hero-bg); position: relative; overflow: hidden; }
.research-visual::before, .research-visual::after { content: ""; position: absolute; border-radius: 50%; filter: blur(14px); }
.rv-1::before { width: 60%; height: 50%; left: 10%; top: 25%; background: rgba(63,211,224,.75); transform: rotate(-20deg); }
.rv-1::after  { width: 45%; height: 38%; right: 8%; top: 35%; background: rgba(47,123,255,.8); transform: rotate(25deg); }
.rv-2 { background-image: repeating-linear-gradient(90deg, rgba(157,176,200,.18) 0 1px, transparent 1px 18px), repeating-linear-gradient(0deg, rgba(157,176,200,.18) 0 1px, transparent 1px 18px); }
.rv-2::before { width: 30%; height: 40%; left: 35%; top: 30%; background: rgba(63,211,224,.85); filter: blur(10px); }
.rv-2::after  { width: 18%; height: 24%; left: 14%; top: 20%; background: rgba(47,123,255,.6); }
.rv-3::before { width: 70%; height: 30%; left: 15%; bottom: 8%; background: rgba(47,123,255,.6); }
.rv-3::after  { width: 22%; height: 38%; left: 40%; top: 18%; background: rgba(63,211,224,.85); border-radius: 40% 40% 30% 30%; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; }
.kw li { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--pnu-soft); color: var(--pnu); font-weight: 500; }
.research-recent { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.research-recent p { color: var(--muted); }
.research-recent li { font-size: .86rem; line-height: 1.45; }
.research-recent li .mono { color: var(--signal); font-size: .75rem; margin-right: 4px; }
@media (max-width: 900px) { .research-grid { grid-template-columns: minmax(0, 1fr); } .research-visual { aspect-ratio: 3 / 1; } }

/* ---------- publications ---------- */
.selected-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.selected-item { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 18px; padding-block: 20px; border-top: 1px solid var(--line); }
.venue-chip { align-self: start; font: 600 .78rem/1.25 var(--f-mono); color: var(--pnu); border: 1px solid currentColor; border-radius: 8px; padding: 6px 8px; text-align: center; }
@media (max-width: 860px) { .selected-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .selected-item { grid-template-columns: minmax(0, 1fr); gap: 10px; } .venue-chip { justify-self: start; } }

.pub-title { font-weight: 600; line-height: 1.4; }
.pub-authors { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.pub-authors strong { color: var(--ink); font-weight: 600; }
.pub-venue { font-size: .9rem; font-style: italic; margin-top: 2px; }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.badge { font: 500 .72rem/1.2 var(--f-mono); padding: 4px 8px; border-radius: 6px; }
.badge-note { background: var(--pnu-soft); color: var(--pnu); }
.badge-award { background: var(--gold-soft); color: var(--gold); }
.tag { font-size: .72rem; color: var(--muted); padding: 3px 0; }
.tag + .tag::before { content: "·"; margin-right: 6px; }
.link-pill { font: 500 .75rem/1 var(--f-mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.link-pill:hover { border-color: var(--signal); color: var(--signal); }

.pub-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 28px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 68px); z-index: 5; background: var(--bg); padding-block: 12px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { font: 600 .88rem/1 var(--f-body); border: 0; background: none; color: var(--muted); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--pnu); color: var(--surface); }
.seg .mono { font-size: .72rem; opacity: .8; margin-left: 4px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 .82rem/1 var(--f-body); border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.chip.is-on { color: var(--pnu); border-color: var(--pnu); background: var(--pnu-soft); }
.search { flex: 1 1 220px; min-width: 0; }
.search input { width: 100%; font: 400 .92rem var(--f-body); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.pub-empty { color: var(--muted); padding: 40px 0; text-align: center; }
.year-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: .78rem; }
.year-jump a { text-decoration: none; color: var(--muted); padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; }
.year-jump a:hover { color: var(--signal); border-color: var(--signal); }
.pub-year { padding-top: 28px; }
.year-label { display: flex; align-items: baseline; gap: 12px; font-size: var(--s-2); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.year-label .count, .group-head .count { font-size: .8rem; color: var(--muted); font-weight: 400; }
/* paper cards: figure on top, text below */
.pub-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.pub { display: flex; flex-direction: row; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.pub:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); box-shadow: 0 14px 34px -18px rgba(6, 19, 37, .35); }
.pub[hidden] { display: none; }
/* representative figure: images/publications/<international|domestic>/<id>.png */
.pub-fig { position: relative; flex: 0 0 300px; display: grid; place-items: center; aspect-ratio: 16 / 10; align-self: flex-start; background: #fff; border-right: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.pub-fig img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .35s ease; }
.pub:hover .pub-fig img { transform: scale(1.04); }
.pub-fig .pub-id { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: .68rem; line-height: 1; padding: 5px 7px; border-radius: 6px; background: rgba(6, 19, 37, .78); color: #fff; border: 0; }
.pub[data-type="journal"] .pub-fig .pub-id { background: var(--pnu); color: #fff; }
.pub-fig.is-empty { background: radial-gradient(120% 90% at 85% 10%, rgba(47, 123, 255, .45), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(56, 214, 230, .22), transparent 60%), var(--hero-bg); border-right-color: transparent; }
.pub-fig-ph { padding: 0 20px; text-align: center; }
.pub-fig-ph b { font: 700 clamp(1.3rem, 2.2vw, 1.7rem)/1.1 var(--f-display); letter-spacing: -.02em; color: #e9f0fa; overflow-wrap: anywhere; }
.pub-body { padding: 18px 22px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pub-kicker { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--signal); margin-bottom: 8px; }
.pub[data-type="journal"] .pub-kicker { color: var(--pnu); }
.pub-kicker span:last-child { color: var(--muted); }
.pub-body .pub-title { font-size: 1.05rem; }
.pub-body .pub-venue { font-size: .82rem; color: var(--muted); }
.pub-body .pub-meta { margin-top: auto; padding-top: 14px; }
.pub-id { font-size: .78rem; color: var(--signal); }
.pub[data-type="journal"] .pub-id { color: var(--pnu); }

/* ---------- news + life ---------- */
.news-life { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
@media (max-width: 960px) { .news-life { grid-template-columns: minmax(0, 1fr); } }
.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: 64px 88px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line); }
.news-item time { font-size: .8rem; color: var(--muted); }
.news-item p { font-size: .95rem; }
.cat { font: 500 .68rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 7px; border-radius: 5px; justify-self: start; background: var(--pnu-soft); color: var(--pnu); }
.cat-award { background: var(--gold-soft); color: var(--gold); }
.cat-people, .cat-service { background: transparent; color: var(--muted); border: 1px solid var(--line); }
@media (max-width: 520px) { .news-item { grid-template-columns: auto 1fr; } .news-item p { grid-column: 1 / -1; } }
.news-list-full { margin-bottom: 40px; }

.life-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 8px; }
.life-mosaic .g-lead { grid-column: span 2; grid-row: span 2; }
.g-tile { margin: 0; position: relative; overflow: hidden; border-radius: 10px; background: var(--hero-bg); min-height: 0; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-tile:hover img { transform: scale(1.04); }
.g-placeholder { position: absolute; inset: 0; background:
  radial-gradient(60% 50% at 30% 35%, rgba(47,123,255,.55), transparent 70%),
  radial-gradient(50% 45% at 72% 65%, rgba(63,211,224,.45), transparent 70%), var(--hero-bg); }
.g-celebration .g-placeholder { background: radial-gradient(60% 50% at 35% 40%, rgba(231,179,90,.45), transparent 70%), radial-gradient(50% 45% at 70% 65%, rgba(47,123,255,.4), transparent 70%), var(--hero-bg); }
.g-event .g-placeholder { background: radial-gradient(60% 50% at 60% 35%, rgba(63,211,224,.4), transparent 70%), radial-gradient(50% 45% at 25% 70%, rgba(110,164,255,.35), transparent 70%), var(--hero-bg); }
.g-tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px; color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3;
  background: linear-gradient(transparent, rgba(6,19,37,.85)); display: grid; gap: 2px;
}
.g-tile figcaption .mono { font-size: .66rem; font-weight: 400; color: #b9c8db; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 24px; }
.gallery-grid .g-tile { aspect-ratio: 4 / 3; max-width: 100%; }

.research-overview { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.research-overview img { width: 100%; height: auto; }
.research-overview a { display: block; cursor: zoom-in; }
.overview-ph { aspect-ratio: 21 / 8; max-width: 100%; display: grid; place-content: center; gap: 8px; text-align: center; padding: 24px; color: var(--muted); font-size: .88rem;
  background: repeating-linear-gradient(45deg, var(--pnu-soft) 0 12px, transparent 12px 24px); }
.overview-ph .mono { color: var(--pnu); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }

.slider { position: relative; }
.slider-track { position: relative; aspect-ratio: 3 / 2; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--hero-bg); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide .g-tile { position: absolute; inset: 0; border-radius: 0; }
.slide .g-tile figcaption { font-size: 1.05rem; padding: 48px 20px 18px; }
.slide .g-tile.has-photo figcaption { display: none; }
/* real photos often carry their own caption, so ours appears only on hover */
.g-tile.has-photo figcaption { opacity: 0; transition: opacity .25s; }
.g-tile.has-photo:hover figcaption, .g-tile.has-photo:focus-within figcaption { opacity: 1; }
.slide .g-tile img { object-fit: cover; }
.slider-ui { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1rem; }
.slider-btn:hover { border-color: var(--signal); color: var(--signal); }
.slider-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .3s, background .3s; }
.slider-dots button[aria-current="true"] { width: 24px; background: var(--pnu); }

/* ---------- research focus + recruiting ---------- */
.research-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.research-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 20px; }
.research-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--pnu-soft); color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.pill-btn:hover { background: var(--pnu); color: var(--surface); }
.pill-outline { background: transparent; border-color: var(--line); color: var(--pnu); padding: 9px 20px; }
.pill-outline:hover { border-color: var(--pnu); background: var(--pnu); color: var(--surface); }
.focus-list { list-style: disc; padding-left: 1.4em; display: grid; gap: 12px; font-size: 1.08rem; }
.focus-list li::marker { color: var(--ink); }
.focus-list strong { font-weight: 600; }
.recruit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; justify-items: start; }
.recruit-card h2 { font-size: 1.6rem; }
.recruit-card p { font-size: 1.05rem; }
@media (max-width: 900px) { .research-split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- join band ---------- */
.join-band { background: var(--hero-bg); color: var(--hero-ink); padding-block: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.join-band::before { content: ""; position: absolute; left: -120px; bottom: -160px; width: 520px; height: 360px; background: radial-gradient(closest-side, rgba(47,123,255,.35), transparent); filter: blur(10px); }
.join-inner { display: flex; gap: 32px; align-items: end; justify-content: space-between; flex-wrap: wrap; position: relative; }
.join-inner > div { display: grid; gap: 14px; max-width: 640px; }
.join-inner h2 { font-size: var(--s-2); }
.join-inner p { color: var(--hero-muted); }

/* ---------- members ---------- */
.member-group { padding-block: 40px; }
.member-group + .member-group { padding-top: 8px; }
.group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.group-head h2 { font-size: 1.4rem; }
.pi-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pi-card .avatar { width: 200px; height: 240px; border-radius: 10px; font-size: 3rem; }
.pi-card img.avatar { object-fit: cover; }
.pi-body { display: grid; gap: 10px; }
.pi-body h3 { font-size: var(--s-2); }
.pi-body .ko { font: 500 1.1rem var(--f-body); color: var(--muted); margin-left: 6px; }
.pi-body .role { color: var(--pnu); font-weight: 600; }
.pi-dept, .pi-contact { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .pi-card { grid-template-columns: minmax(0, 1fr); } .pi-card .avatar { width: 140px; height: 168px; } }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 24px 20px; }
.member { display: grid; gap: 2px; justify-items: start; align-content: start; }
img.avatar { object-fit: cover; }  /* 틀은 4:5 고정. 새 사진은 미리 4:5로 잘라 넣으면 원하는 부분이 보이고, 아니면 가운데 기준으로 잘림 */
.avatar { width: 100%; aspect-ratio: 4 / 5; max-width: 100%; height: auto; object-fit: cover; border-radius: 10px; background: var(--pnu-soft); margin-bottom: 10px; }
.avatar-empty {
  display: grid; place-items: center; color: var(--hero-ink); font: 600 1.8rem var(--f-display); letter-spacing: .02em;
  background: radial-gradient(70% 55% at 30% 30%, rgba(47,123,255,.55), transparent 70%), radial-gradient(60% 50% at 75% 75%, rgba(63,211,224,.4), transparent 70%), var(--hero-bg);
}
.m-name { font-weight: 600; }
.m-ko { color: var(--muted); font-size: .9rem; }
.m-note { font-size: .72rem; color: var(--signal); }
.m-honors { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.m-honors li { position: relative; padding-left: 11px; font-size: .76rem; line-height: 1.35; color: var(--pnu); }
.m-honors li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }
.m-mail { font-size: .8rem; }

/* ---------- projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.project h3 { font: 600 1.02rem/1.45 var(--f-body); letter-spacing: 0; }
.pj-funder { font: 500 .75rem var(--f-mono); color: var(--pnu); text-transform: uppercase; letter-spacing: .06em; }
.pj-period { margin-top: auto; font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent); }
.table-scroll { overflow-x: auto; }
.pj-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.pj-table th { text-align: left; font: 500 .72rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.pj-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pj-table td:first-child { font-size: .8rem; color: var(--muted); }

/* ---------- lab ---------- */
.big-stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 48px; }
.big-stats div { flex: 1 1 220px; background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column-reverse; gap: 6px; }
.big-stats dt { font: 400 .75rem var(--f-mono); color: var(--hero-muted); text-transform: uppercase; letter-spacing: .08em; }
.big-stats dd { margin: 0; font: 700 3rem/1 var(--f-display); color: var(--hero-signal); }
.robot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.robot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 6px; }
.robot img, .robot-ph { aspect-ratio: 1 / 1; max-width: 100%; width: 100%; object-fit: cover; border-radius: 10px; background: var(--pnu-soft); }
.robot-ph { display: block; background: repeating-linear-gradient(45deg, var(--pnu-soft) 0 10px, transparent 10px 20px), var(--surface); border: 1px solid var(--line); }
.robot p { color: var(--muted); }
.robot h3 { font-size: 1.05rem; }
.row-list li a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.row-list li a:hover { color: var(--signal); }
.row-list time { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.course-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 28px 32px; }
.course-term h3 { font-size: .82rem; color: var(--pnu); margin-bottom: 8px; letter-spacing: .04em; }
.course-term li { padding-block: 7px; border-bottom: 1px solid var(--line); font-size: .94rem; display: flex; gap: 10px; }
.course-term .code { color: var(--muted); font-size: .74rem; padding-top: 3px; white-space: nowrap; }

/* ---------- join page ---------- */
.join-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.join-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 860px) { .join-grid, .join-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.join-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.join-card .mono { color: var(--signal); text-transform: uppercase; letter-spacing: .1em; }
.join-card h2 { font-size: 1.4rem; }
.join-card p:last-child { color: var(--muted); }
.values li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.values li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, var(--signal), transparent 70%); }
.contact-box dl { margin: 0; display: grid; gap: 14px; }
.contact-box dt, .footer-contact dt { font: 500 .7rem var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-box dd, .footer-contact dd { margin: 2px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: #061325; color: var(--hero-muted); padding-block: 56px 28px; font-size: .9rem; }
.site-footer a { color: var(--hero-ink); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.footer-id { display: grid; gap: 8px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 8px; }
.footer-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.footer-contact dt { color: var(--hero-muted); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(157,176,200,.15); font-size: .78rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* join page details */
.join-notice { display: grid; gap: 8px; max-width: 760px; }
.join-cta { margin-top: 6px; }
.join-card h3 { font: 600 .74rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-top: 6px; }
.join-card h3 .muted { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.join-list { list-style: disc; } .join-steps { list-style: decimal; }
.join-list, .join-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); font-size: .94rem; }
.join-list li::marker, .join-steps li::marker { color: var(--signal); font-family: var(--f-mono); font-weight: 600; }
.join-alert { font-size: .9rem; color: var(--pnu) !important; background: var(--pnu-soft); border-radius: 10px; padding: 10px 12px; }
ol.values { list-style: none; padding: 0; margin: 0; counter-reset: v; }
.pub-fig-ph b.is-long { font-size: 1.1rem; font-weight: 600; line-height: 1.25; }

/* publications: image left, text right */
.pub-kicker { justify-content: flex-start; gap: 12px; }
.pub-body .pub-meta { margin-top: 0; padding-top: 12px; }
@media (max-width: 720px) {
  .pub-fig { flex-basis: 128px; aspect-ratio: 4 / 3; }
  .pub-fig .pub-id { top: 6px; left: 6px; }
  .pub-fig-ph b { font-size: .9rem; }
  .pub-fig-ph b.is-long { font-size: .72rem; }
  .pub-body { padding: 12px 14px; }
  .pub-body .pub-title { font-size: .95rem; }
}
.pub-legend { font-size: .76rem; color: var(--muted); margin: 0 0 4px; }
.pub-legend span { color: var(--signal); }

/* field info box in the publications header */
.field-info { margin-top: 8px; max-width: 1040px; border: 1px solid rgba(233, 240, 250, .14); border-radius: 16px; padding: 22px 24px; background: rgba(233, 240, 250, .04); }
.field-info-title { font: 600 1.02rem/1.35 var(--f-display); color: var(--hero-ink); display: flex; gap: 10px; align-items: baseline; }
.field-info-title::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hero-signal); transform: translateY(-2px); }
.field-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin-top: 16px; }
.field-info h2 { font: italic 600 .95rem/1.2 var(--f-body); color: var(--hero-ink); margin-bottom: 6px; }
.field-info p { color: var(--hero-muted); font-size: .94rem; line-height: 1.65; }
.field-info b { color: var(--hero-signal); font-weight: 600; }
@media (max-width: 760px) { .field-info-grid { grid-template-columns: minmax(0, 1fr); } .field-info { padding: 18px; } }

/* ---------- Demos (홈) ---------- */
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.demo { display: grid; gap: 16px; align-content: start; }
.demo-lead { grid-column: 1 / -1; gap: 20px; }
.demo-lead .demo-cap { max-width: 78ch; }
.demo { grid-template-rows: auto 1fr; }
.demo-media { align-self: end; }
.demo-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--hero-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.demo-body { display: grid; gap: 8px; }

.demo-sub { color: var(--ink); font-weight: 600; font-size: 1.15rem; line-height: 1.35; }
.demo-sub a { color: inherit; }
.demo-lead .demo-sub { font-size: 1.45rem; }
.demo-cap { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.demo-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.demo-tags li { font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--pnu-soft); color: var(--pnu); }
@media (max-width: 860px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 홈 하단: Latest News(3칸) / Gallery(2칸) / LAB Life(1칸) ---------- */
.feed-grid { display: grid; grid-template-columns: 3fr 2fr 1fr; gap: 28px; align-items: start; }
.feed-block { display: grid; gap: 16px; min-width: 0; }
.feed-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.feed-head h2 { font-size: 1.3rem; }
.feed-cards { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; }
.feed-more { justify-self: center; padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .85rem var(--f-body); cursor: pointer; }
.feed-more:hover { border-color: var(--signal); color: var(--pnu); }
@media (max-width: 1100px) { .feed-grid { gap: 18px; } .feed-cards { gap: 10px; } .bcard-body { padding: 10px 11px 12px; } .bcard-title { font-size: .84rem; } }
/* 휴대폰처럼 아주 좁을 때만 세 묶음을 위아래로 쌓습니다 */
@media (max-width: 760px) { .feed-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } .feed-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 카드 공통 (홈, Gallery 페이지) */
.bcard { display: flex; flex-direction: column; min-width: 0; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.bcard:hover { border-color: var(--signal); transform: translateY(-2px); box-shadow: var(--shadow); }
.bcard[hidden] { display: none; }
.bcard-img { display: block; aspect-ratio: 4 / 3; background: var(--photo-bg); overflow: hidden; }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcard-img.is-empty { background: radial-gradient(60% 55% at 30% 35%, rgba(47,123,255,.45), transparent 70%), radial-gradient(50% 45% at 75% 70%, rgba(63,211,224,.35), transparent 70%), var(--hero-bg); }
.bcard-life .bcard-img.is-empty { background: radial-gradient(60% 50% at 35% 40%, rgba(231,179,90,.5), transparent 70%), radial-gradient(50% 45% at 70% 65%, rgba(47,123,255,.4), transparent 70%), var(--hero-bg); }
.bcard-body { display: grid; gap: 8px; padding: 12px 14px 14px; align-content: start; }
.bcard-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bcard-meta time { font-size: .72rem; color: var(--muted); }
.bcard-tag { display: inline-block; font: 500 .68rem var(--f-mono, monospace); padding: 2px 7px; border-radius: 999px; background: var(--pnu-soft); color: var(--pnu); }
.bcard-title { font-weight: 600; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.8em; }
.board-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; }

/* 카드 상세 페이지 */
.board-title { font-size: var(--s-2); max-width: 32ch; }
.board-title.is-post { font-size: calc(var(--s-2) / 2); max-width: 60ch; line-height: 1.35; }
.board-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; color: var(--hero-muted, #93a3b8); }
.board-meta time { margin-right: 6px; }
.board-body { display: grid; gap: 20px; }
.board-body img, .board-body video { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.board-body > p, .board-body li { line-height: 1.8; }
.board-body h1, .board-body h2, .board-body h3 { margin-top: 12px; }
.board-body blockquote { margin: 0; padding: 10px 16px; border-left: 3px solid var(--signal); background: var(--surface); border-radius: 0 10px 10px 0; }
.board-body blockquote p { margin: 0; }
.board-fig { margin: 0; display: grid; gap: 8px; justify-items: center; }
.board-fig img, .board-fig video { margin: 0 auto; }
.board-fig figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.callout { display: block; padding: 14px 18px; border-radius: 12px; background: var(--pnu-soft); }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.board-slide { position: relative; border-radius: 14px; overflow: hidden; background: var(--photo-bg); }
.board-slide-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 3 / 2; }
.board-slide-track::-webkit-scrollbar { display: none; }
.board-slide-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
.board-slide-track img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.board-slide-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.board-slide-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.6); cursor: pointer; }
.board-slide-dots button[aria-current="true"] { background: #6196ff; }
.board-cover { margin: 0; }
.board-empty { color: var(--muted); }
.board-back { margin-top: 12px; }

/* Notion-synced bodies: columns, embeds, toggles, tables */
.board-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; align-items: start; }
.board-cols > div { display: grid; gap: 14px; min-width: 0; }
.board-cols > div > :first-child { margin-top: 0; }
.board-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.board-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.board-body details { padding: 10px 14px; border: 1px solid var(--line, #e5e5e5); border-radius: 10px; }
.board-body summary { cursor: pointer; font-weight: 600; }
.board-body hr { border: 0; border-top: 1px solid var(--line, #e5e5e5); margin: 4px 0; width: 100%; }
.board-table { overflow-x: auto; }
.board-table table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.board-table td { border: 1px solid var(--line, #e5e5e5); padding: 6px 10px; vertical-align: top; }
.board-body code { font-size: .85em; padding: 1px 6px; border-radius: 6px; background: var(--surface, #f4f4f4); }
.member-body .callout .board-fig img { max-width: 220px; border-radius: 12px; }
.m-name a, .pi-body h3 a { color: inherit; text-decoration: none; }
.m-name a:hover, .pi-body h3 a:hover { text-decoration: underline; }

/* Notion text colours (synced pages) */
:root { --nc-gray:#787774; --nc-brown:#9f6b53; --nc-orange:#d9730d; --nc-yellow:#cb912f; --nc-green:#448361; --nc-blue:#337ea9; --nc-purple:#9065b0; --nc-pink:#c14c8a; --nc-red:#d44c47; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --nc-gray:#9ba3ad; --nc-brown:#ba856f; --nc-orange:#d98a4f; --nc-yellow:#d6a454; --nc-green:#5bb07e; --nc-blue:#5aaee0; --nc-purple:#b07fe0; --nc-pink:#e06aa6; --nc-red:#ec6a64; } }
:root[data-theme="dark"] { --nc-gray:#9ba3ad; --nc-brown:#ba856f; --nc-orange:#d98a4f; --nc-yellow:#d6a454; --nc-green:#5bb07e; --nc-blue:#5aaee0; --nc-purple:#b07fe0; --nc-pink:#e06aa6; --nc-red:#ec6a64; }
.nc-gray{color:var(--nc-gray)} .nc-brown{color:var(--nc-brown)} .nc-orange{color:var(--nc-orange)} .nc-yellow{color:var(--nc-yellow)} .nc-green{color:var(--nc-green)} .nc-blue{color:var(--nc-blue)} .nc-purple{color:var(--nc-purple)} .nc-pink{color:var(--nc-pink)} .nc-red{color:var(--nc-red)}
[class*="_background"] { padding: 0 3px; border-radius: 4px; }
.nc-gray_background{background:rgba(120,119,116,.18)} .nc-brown_background{background:rgba(159,107,83,.18)} .nc-orange_background{background:rgba(217,115,13,.18)} .nc-yellow_background{background:rgba(203,145,47,.2)} .nc-green_background{background:rgba(68,131,97,.18)} .nc-blue_background{background:rgba(51,126,169,.18)} .nc-purple_background{background:rgba(144,101,176,.18)} .nc-pink_background{background:rgba(193,76,138,.18)} .nc-red_background{background:rgba(212,76,71,.18)}
.board-body a code { color: var(--nc-blue); }

/* year buttons: land the year title below the sticky header + filter bar */
.pub-year { scroll-margin-top: calc(68px + var(--pubbar, 96px) + 12px); }
.m-photo { display: block; width: 100%; } .pi-card .m-photo { width: auto; } .m-photo .avatar { transition: opacity .2s; } .m-photo:hover .avatar { opacity: .85; }
.feed-more-row { display: flex; justify-content: center; margin-top: 28px; }

/* home hero with the Notion photo slides: photos in the middle, Sanjini in the top-right corner */
.hero.has-slides { --mascot-room: clamp(130px, 18vh, 170px); }
.has-slides .hero-inner { padding-top: var(--mascot-room); padding-bottom: clamp(28px, 4vh, 48px); gap: clamp(10px, 1.8vh, 18px); }
.has-slides .hero-title { font-size: clamp(1.5rem, 2.8vw, 2.5rem); }
.has-slides .hero-lede { font-size: clamp(.9rem, 1.1vw, 1rem); max-width: 70ch; }
/* carousel: the current photo in the middle, the previous and next ones peeking in at the sides */
.hero-slides { --sw: min(920px, 58vw, calc((100svh - 68px - 260px - var(--mascot-room)) * 1.5)); --gap: clamp(12px, 1.8vw, 28px); position: relative; pointer-events: auto; justify-self: start; width: 100vw; margin-left: calc(50% - 50vw); height: calc(var(--sw) / 1.5); overflow: hidden; }
.hero-slides-track { display: flex; gap: var(--gap); height: 100%; will-change: transform; }
.hero-slides-track.is-moving { transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.hero-slides-track img { flex: 0 0 var(--sw); width: var(--sw); height: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 50px rgba(3, 12, 28, .35); opacity: .75; transition: opacity .8s; }
.hero-slides-track img.is-on { opacity: 1; }
.hero-slides-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--hero-bg); font: 400 2rem/1 var(--f-body); cursor: pointer; box-shadow: 0 6px 20px rgba(3, 12, 28, .25); transition: transform .2s; z-index: 2; }
.hero-slides-arrow:hover { transform: translateY(-50%) scale(1.06); }
.hero-slides-arrow.is-prev { left: max(10px, calc((100vw - var(--sw)) / 2 - var(--gap) - 70px)); }
.hero-slides-arrow.is-next { right: max(10px, calc((100vw - var(--sw)) / 2 - var(--gap) - 70px)); }
.hero-slides-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.hero-slides-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s; }
.hero-slides-dots button.is-on { background: #fff; width: 22px; border-radius: 4px; }
@media (max-width: 759px) { .hero-slides { --sw: 82vw; --gap: 10px; } .hero-slides-arrow { display: none; } .hero.has-slides { --mascot-room: 110px; } }
.has-slides .hero-slides + .eyebrow { margin-top: clamp(14px, 3vh, 30px); }
.has-slides .hero-title { margin-top: clamp(2px, .8vh, 8px); }
.has-slides .hero-lede { margin-top: clamp(4px, 1.2vh, 12px); line-height: 1.75; }
/* Latest News previews: show the whole picture (posters, letters), not a crop */
.feed-news .bcard-img img { object-fit: contain; background: #fff; }
/* member pages: the profile box looks like the Notion callout (white, thin border) */
.member-body .callout { background: var(--bg); border: 1px solid var(--line); }
.member-body .callout .board-fig { justify-items: start; }
.member-body .callout .board-fig img { max-width: 50%; margin: 0; border-radius: 6px; }
/* member pages follow Notion spacing: lines of one paper sit tight, empty Notion lines make the gaps */
.member-body { gap: 4px; }
.member-body p { margin: 0; line-height: 1.6; }
.member-body h2 { margin: 28px 0 6px; } .member-body h3 { margin: 18px 0 4px; }
.member-body hr { margin: 0 0 10px; }
.member-body .board-cols { margin-bottom: 8px; }
.nb-gap { display: none; }
.member-body .nb-gap { display: block; height: .9em; margin: 0; }

.has-slides .hero-canvas { z-index: 3; pointer-events: none; }
/* home feed: every card image has the same height in all three sections, so rows line up after Load more */
@media (min-width: 761px) {
  .feed-grid { container-type: inline-size; --fg: 28px; --fc: 14px; }
  .feed-grid .bcard-img { aspect-ratio: auto; height: calc((100cqw - 2 * var(--fg) - 3 * var(--fc)) / 6 * 0.75); }
}
@media (min-width: 761px) and (max-width: 1100px) { .feed-grid { --fg: 18px; --fc: 10px; } }
.bcard-tag { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
