@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500;1,6..72,600&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
:root {
  --crimson: #862633;
  --crimson-dark: #5e1a24;
  --crimson-soft: #f4e9eb;
  --teal: #157782;
  --teal-soft: #e3f0f1;
  --ink: #17181a;
  --ink-deep: #1c2027;
  --slate: #5b5f66;
  --line: #ececef;
  --bg: #ffffff;
  --bg-alt: #faf8f6;
  --max: 1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
.hero-ko { font-family: var(--sans); font-size: 0.98rem; line-height: 1.6; color: var(--slate); margin-top: 18px; max-width: 46ch; }
.foot-ko { font-family: var(--sans); color: #8e949c; }
.ko-note { font-family: var(--sans); font-size: 0.9rem; line-height: 1.6; color: var(--slate); margin-top: 10px; }
* { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--crimson); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-optical-sizing: auto; line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }
section { padding: 108px 24px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--crimson); margin-bottom: 16px;
}
.section-title { font-family: var(--sans); font-size: clamp(1.45rem, 2.5vw, 1.85rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; margin-bottom: 14px; }
.section-lede { font-size: 1.1rem; line-height: 1.7; color: var(--slate); max-width: 700px; margin-bottom: 52px; }

/* NAV */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--crimson);
}
.nav { position: relative; max-width: var(--max); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { height: 38px; width: auto; flex: none; }
.brand small { display: block; font-weight: 600; font-size: 0.72rem; color: var(--crimson); letter-spacing: 0.02em; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 28px; }
.nav-links a { color: var(--slate); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--crimson); text-decoration: none; }
.nav-links a.active { color: var(--crimson); font-weight: 600; }
.nav .nav-cta {
  background: var(--crimson); color: #fff; padding: 9px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; flex: none;
  box-shadow: 0 5px 14px rgba(134,38,51,0.20);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.nav .nav-cta:hover { background: var(--crimson-dark); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(134,38,51,0.34); }
.nav-toggle { display: none; }
.nav-burger { display: none; width: 42px; height: 38px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav-burger span { position: relative; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .2s ease; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 480px at 88% -20%, rgba(134,38,51,0.045), transparent 62%),
    radial-gradient(680px 420px at 8% 120%, rgba(134,38,51,0.028), transparent 60%),
    linear-gradient(180deg, #fdfaf7 0%, #ffffff 42%);
  padding: 150px 24px 132px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(26,26,28,0.028) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(68% 58% at 50% 40%, #000 16%, transparent 74%);
  mask-image: radial-gradient(68% 58% at 50% 40%, #000 16%, transparent 74%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero-emblem { position: relative; justify-self: center; text-align: center; }
.hero-emblem::before {
  content: ""; position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%);
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(134,38,51,0.10), rgba(70,198,224,0.05) 55%, transparent 70%);
  filter: blur(8px); z-index: 0; pointer-events: none;
}
.hero-logo {
  position: relative; z-index: 1; width: 100%; max-width: 208px; height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 14px 30px rgba(94,26,36,0.15));
  animation: floaty 6.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.motto { margin: 28px auto 0; max-width: 400px; padding-top: 24px; }
.motto::before { content: ""; display: block; width: 52px; height: 2px; background: var(--crimson); opacity: 0.5; margin: 0 auto 20px; }
.motto-quote { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--crimson); font-size: 1.5rem; line-height: 1.32; letter-spacing: 0.005em; }
.hero-mission { font-family: var(--sans); color: var(--ink); font-weight: 500; font-size: 1.06rem; line-height: 1.55; margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--crimson); }
.hero-mission .hl { color: var(--crimson); font-weight: 700; font-size: 1.12rem; }
#heroScramble { font-family: ui-monospace, Menlo, "SFMono-Regular", "Courier New", monospace; font-weight: 700; letter-spacing: 0.01em; font-size: clamp(1.9rem, 4.4vw, 3.05rem); line-height: 1.14; color: var(--ink); margin: 0; }
.seq-wrap { display: flex; align-items: flex-end; flex-wrap: wrap; }
.seq-cursor { display: inline-block; width: clamp(0.75rem, 1.6vw, 1.15rem); height: clamp(1.4rem, 3.3vw, 2.3rem); background: var(--crimson); margin: 0 0 0.24rem 8px; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .seq-cursor { animation: blink 1.05s step-end infinite; } }
.hero h1 { font-size: clamp(2.15rem, 4.6vw, 3.35rem); font-weight: 560; max-width: 17ch; letter-spacing: -0.02em; line-height: 1.08; }
.hero h1 .accent { color: var(--crimson); font-style: italic; font-weight: 500; }
.hero p { font-size: 1.16rem; line-height: 1.68; color: var(--slate); max-width: 58ch; margin-top: 28px; }
.cta { margin-top: 42px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600;
  font-size: 0.94rem; letter-spacing: 0.005em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 6px 18px rgba(134,38,51,0.20); }
.btn-primary:hover { text-decoration: none; background: var(--crimson-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(134,38,51,0.28); }
.btn-ghost { border: 1.5px solid rgba(23,24,26,0.28); color: var(--ink); background: #fff; }
.btn-ghost:hover { text-decoration: none; border-color: var(--crimson); color: var(--crimson); background: var(--crimson-soft); }

/* PAGE HEADER (inner pages) */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 54px 24px 42px; }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 600; letter-spacing: -0.025em; }
.page-head p { color: var(--slate); font-size: 1.12rem; line-height: 1.66; max-width: 720px; margin-top: 18px; }

/* RESEARCH CARDS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,26,28,0.08); border-color: transparent; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card .go { margin-top: auto; padding-top: 16px; color: var(--crimson); font-weight: 600; font-size: 0.9rem; }
a.card:hover .go { text-decoration: underline; }
.card .num { font-size: 0.8rem; font-weight: 700; color: var(--teal); letter-spacing: 0.1em; }
.card h3 { font-size: 1.22rem; margin: 12px 0 12px; }
.card p { color: var(--slate); font-size: 0.97rem; }

/* PLATFORM / TECH */
.figure { margin: 4px auto 0; max-width: 680px; }
.figure img { width: 100%; height: auto; display: block; border: none; }
.figure figcaption { margin-top: 18px; color: var(--slate); font-size: 0.9rem; line-height: 1.55; text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.tech { border-left: 3px solid var(--crimson); padding: 4px 0 4px 20px; }
.tech:last-child { border-left-color: var(--teal); }
.tech:last-child h3 span { color: var(--teal); }
.tech h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tech h3 span { color: var(--crimson); }
.tech p { color: var(--slate); font-size: 0.97rem; }
.subhead { font-family: var(--sans); font-size: clamp(1.45rem, 2.5vw, 1.85rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; margin: 72px 0 8px; }
.subhead-lede { color: var(--slate); max-width: 720px; margin-bottom: 28px; }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.readout {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.readout:hover { border-color: transparent; box-shadow: 0 12px 30px rgba(26,26,28,0.08); }
.readout .rn {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--crimson); color: #fff; font-weight: 700; font-size: 0.9rem;
  display: grid; place-items: center;
}
.readout h4 { font-size: 1rem; margin-bottom: 3px; }
.readout p { color: var(--slate); font-size: 0.88rem; }

/* PEOPLE */
.pi { display: grid; grid-template-columns: 190px 1fr; gap: 44px; align-items: start; }
.pi-photo {
  width: 190px; height: 190px; border-radius: 50%; flex: none;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  background-color: #eef0f2;
  border: 4px solid #fff; box-shadow: 0 12px 30px rgba(26,26,28,0.14), 0 0 0 1px var(--line);
}
.pi h3 { font-family: var(--sans); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; }
.pi .role { color: var(--crimson); font-weight: 600; margin: 6px 0 18px; }
.pi ul { list-style: none; margin-top: 14px; }
.pi li { color: var(--slate); padding-left: 20px; position: relative; }
.pi li::before { content: "▸"; color: var(--crimson); position: absolute; left: 0; }
.cv h4 { font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); margin: 24px 0 12px; }
.cv-item { display: flex; gap: 18px; padding: 7px 0; color: var(--ink); font-size: 0.95rem; line-height: 1.45; border-top: 1px solid var(--line); }
.cv-item:first-of-type { border-top: 0; }
.cv .yr { flex: none; width: 132px; white-space: nowrap; color: var(--slate); font-weight: 600; font-variant-numeric: tabular-nums; }
.cv .sub { display: block; color: var(--slate); font-size: 0.87rem; margin-top: 3px; padding-left: 0; }
.cv { text-align: left; }
.cv-item > span:last-child { flex: 1 1 auto; min-width: 0; }
.members-title { font-family: var(--sans); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; margin: 56px 0 6px; }
.members-sub { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--slate); letter-spacing: 0.02em; margin: 26px 0 18px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, 190px); gap: 30px 24px; }
.member { width: 190px; text-align: center; }
.member img,
.member .m-photo {
  width: 190px; height: 190px; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 6px 20px rgba(26,26,28,0.12), 0 0 0 1px var(--line);
}
.member .m-photo {
  background-color: #eef0f2;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.member h4 { font-size: 1.02rem; font-weight: 600; margin: 14px 0 2px; }
.member .m-role { color: #3f434a; font-size: 0.88rem; font-weight: 600; }
.member .m-mail { color: var(--slate); font-size: 0.82rem; word-break: break-all; }
.alumni { margin-top: 4px; }
.alum { padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.97rem; }
.alum:first-child { border-top: 0; }
.alum .alum-name { font-weight: 600; }
.alum em { color: var(--slate); font-style: italic; }
.alum-tag { font-size: 0.72rem; font-weight: 700; color: var(--slate); background: var(--bg-alt); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.join {
  margin-top: 48px; background: var(--crimson-soft); border: 1px solid #ecd9dc;
  border-radius: 16px; padding: 32px 28px;
}
.join h3 { font-size: 1.3rem; margin-bottom: 8px; }
.join p { color: var(--slate); max-width: 74ch; }
.join p + p { margin-top: 12px; }
.join-motto { font-family: var(--serif); font-style: italic; color: var(--crimson); font-size: 1.1rem; margin-top: 16px !important; }

/* PUBLICATIONS */
.pub-featured { background: var(--crimson-soft); border: 1px solid #ecd9dc; border-radius: 16px; padding: 30px 34px; }
.pub-featured .pf-venue { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--crimson); }
.pub-featured .pf-title { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 600; line-height: 1.2; margin: 10px 0 10px; color: var(--ink); }
.pub-featured .pf-authors { color: var(--slate); font-size: 0.95rem; margin-bottom: 20px; }
.pubcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; margin-bottom: 16px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.pubcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26,26,28,0.09); border-color: transparent; }
.pubcard .pv { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--crimson); background: var(--crimson-soft); padding: 3px 11px; border-radius: 999px; }
.pubcard .pt { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; margin: 13px 0 8px; color: var(--ink); }
.pubcard .pa { color: var(--slate); font-size: 0.92rem; margin-bottom: 14px; }
.pubcard a.more { font-size: 0.86rem; font-weight: 600; }
.pub-year { font-size: 1.1rem; font-weight: 700; color: var(--crimson); margin: 32px 0 14px; }
.pub { padding: 16px 0; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub .title { font-weight: 600; color: var(--ink); }
.pub .meta { color: var(--slate); font-size: 0.92rem; margin-top: 4px; }
.pub .venue { font-style: italic; }

/* NEWS */
.news-item { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.news-item:last-child { border-bottom: 0; }
.news-date { flex: none; width: 130px; color: var(--crimson); font-weight: 600; font-size: 0.9rem; }
.news-body { color: var(--ink); flex: 1; min-width: 0; }
.news-thumb { flex: none; width: 210px; }
.news-thumb img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); }
.news-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.news-gallery img { width: 220px; height: 165px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 640px) { .news-item { flex-wrap: wrap; } .news-thumb { width: 100%; order: 3; margin-top: 4px; } .news-gallery img { width: calc(50% - 5px); height: auto; aspect-ratio: 4 / 3; } }
/* NEWS TIMELINE */
.tl { position: relative; max-width: 800px; }
.tl-year { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); margin: 0 0 20px; padding-left: 34px; }
.tl-item { position: relative; padding: 0 0 30px 34px; border-left: 2px solid var(--line); margin-left: 5px; }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -8px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--crimson); box-sizing: border-box; }
.tl-item.hl::before { background: var(--crimson); }
.tl-date { font-family: var(--sans); color: var(--crimson); font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.tl-row { display: flex; gap: 18px; align-items: flex-start; }
.tl-text { flex: 1; color: var(--ink); font-size: 0.98rem; line-height: 1.55; min-width: 0; }
.tl-tag { display: inline-block; font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--crimson); background: var(--crimson-soft); border-radius: 5px; padding: 2px 7px; margin-bottom: 7px; }
.tl-thumb { flex: none; width: 176px; height: 116px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.tl-thumbs { display: flex; gap: 8px; flex: none; }
.tl-thumbs img { width: 124px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .tl-row { flex-direction: column; }
  .tl-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .tl-thumbs { width: 100%; }
  .tl-thumbs img { flex: 1; width: auto; height: auto; aspect-ratio: 4 / 3; }
}

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 4px; }
.contact-grid h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--crimson); margin-bottom: 8px; }
.contact-grid p { color: var(--ink); line-height: 1.6; }
.contact-grid a { color: var(--crimson); text-decoration: underline; text-underline-offset: 3px; }

/* HOME SECTION TINTS */
.tint { background: var(--bg-alt); }
.center-cta { text-align: center; margin-top: 44px; }
.overview-img { width: 100%; max-width: 880px; height: auto; display: block; margin: 8px auto 0; }

/* PROSE */
.prose p { color: var(--ink); font-size: 1.06rem; line-height: 1.78; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pager .pg { min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.pager .pg:hover:not(:disabled) { border-color: var(--crimson); color: var(--crimson); }
.pager .pg.active { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.pager .pg:disabled { opacity: .4; cursor: default; }
.gallery-grid a, .gallery-grid .gph { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gph { background: linear-gradient(135deg, var(--crimson-soft), var(--bg-alt)); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #c2a9ad; }
.gph svg { width: 32px; height: 32px; opacity: .7; }
.gtile { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gtile img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .4s ease; }
.gtile:hover img { transform: scale(1.05); }
.gtile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 15px 12px; color: #fff; font-size: 0.84rem; font-weight: 500; line-height: 1.25; background: linear-gradient(to top, rgba(15,15,18,0.76), rgba(15,15,18,0)); }
.home-gallery { grid-template-columns: repeat(3, 1fr); }
.home-gallery a { position: relative; }
.home-gallery a img { transition: opacity .55s ease, transform .3s ease; }
@media (max-width: 640px) { .home-gallery { grid-template-columns: 1fr 1fr; } }
.home-gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 15px 12px; color: #fff; font-size: 0.82rem; font-weight: 500; line-height: 1.25; background: linear-gradient(to top, rgba(15,15,18,0.74), rgba(15,15,18,0)); transition: opacity .55s ease; pointer-events: none; }

/* JOURNALS / CREDIBILITY STRIP */
.journals { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 44px 24px; }
.journals .wrap { text-align: center; }
.journals .lbl { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); margin-bottom: 20px; }
.journals .row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; }
.journals .row span { font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: #6b6e75; transition: color .2s ease; }
.journals .row span:hover { color: var(--crimson); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-logo { animation: none; }
}

/* FEATURED PUBLICATIONS */
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 8px; }
.feat-card {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,26,28,0.10); }
.feat-card .thumb { aspect-ratio: 16/9; background: var(--bg-alt) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.feat-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feat-card .fv { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--crimson); }
.feat-card .ft { font-weight: 600; color: var(--ink); line-height: 1.35; }
.feat-card a.more { margin-top: auto; font-size: 0.86rem; font-weight: 600; }
.pub-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 8px; }
.pub .doi { font-size: 0.82rem; font-weight: 600; margin-left: 8px; white-space: nowrap; }

/* RESOURCES */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.res-card { border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; background: #fff; }
.res-card .ico { font-size: 1.5rem; }
.res-card h3 { font-size: 1.18rem; margin: 12px 0 8px; }
.res-card p { color: var(--slate); font-size: 0.95rem; }
.res-card ul { list-style: none; margin-top: 14px; }
.res-card li { color: var(--slate); font-size: 0.92rem; padding: 7px 0 7px 18px; position: relative; border-top: 1px solid var(--line); }
.res-card li:first-child { border-top: 0; }
.res-card li::before { content: "›"; position: absolute; left: 0; color: var(--crimson); font-weight: 700; }
.res-tag { font-size: 0.72rem; font-weight: 700; color: var(--crimson); background: var(--crimson-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }

/* JOIN PAGE */
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.role-card { border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; background: #fff; }
.role-card h3, .why h4, .apply h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.role-card p, .why p, .apply p, .role-card .ko-note, .apply .ko-note { color: var(--slate); font-size: 0.95rem; line-height: 1.6; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 12px; }
.why { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.why:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26,26,28,0.06); border-color: transparent; }
.why-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--crimson-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.why-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--crimson); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.apply { background: var(--crimson-soft); border: 1px solid #ecd9dc; color: var(--ink); border-radius: 16px; padding: 34px 30px; margin-top: 48px; }
.apply p { max-width: 72ch; }
.apply p a { color: var(--crimson); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.jchips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.jchip { font-size: 0.82rem; color: var(--slate); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; }
.role-tags span { font-size: 0.73rem; font-weight: 600; color: var(--crimson); background: var(--crimson-soft); border-radius: 6px; padding: 4px 9px; }
.role-apply { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 0.92rem; color: var(--crimson); text-decoration: none; }
.role-apply:hover { text-decoration: underline; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 12px; }
.step .sn { font-family: var(--sans); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--teal); }
.step h4 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--ink); margin: 8px 0 6px; }
.step p { color: var(--slate); font-size: 0.95rem; line-height: 1.6; }
.faq { max-width: 760px; margin-top: 12px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 2px; font-family: var(--sans); font-weight: 600; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--crimson); font-weight: 600; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--slate); font-size: 0.95rem; line-height: 1.65; padding: 0 2px 18px; margin: 0; max-width: 70ch; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

/* FOOTER */
footer { background: var(--ink-deep); color: #c7ccd3; padding: 40px 24px; font-size: 0.88rem; }
.foot-wrap { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: #fff; font-weight: 500; }
.foot-links a:hover { color: #fff; }
.foot-meta { color: #8e949c; }

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .foot-wrap { flex-direction: column; align-items: flex-start; }
  .cards { grid-template-columns: 1fr; }
  .pi { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pi-photo { width: 200px; height: 200px; }
  .members { justify-content: center; }
  .tech-grid { grid-template-columns: 1fr; }
  .readouts { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { max-width: 200px; }

  .nav-burger { display: inline-flex; order: 2; margin-left: auto; margin-right: 12px; }
  .nav .nav-cta { order: 3; }
  .nav-links {
    order: 4; display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line); padding: 6px 24px 14px;
    box-shadow: 0 18px 30px rgba(20,20,25,0.08);
  }
  .nav-links a { width: 100%; padding: 12px 0; font-size: 1rem; border-top: 1px solid var(--line); }
  .nav-links a:first-child { border-top: 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }
}
