/* =========================================================
   DAMIS Lab — Editorial / academic theme
   Inspired by the MIT Media Lab aesthetic: black & white,
   bold grotesque headlines, content-first, flat, generous
   whitespace, hairline rules, one restrained accent.
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f6f6f7;
  --c-ink: #14171c;       /* near-black body text */
  --c-head: #0a0c0f;      /* headings */
  --c-soft: #5b636e;      /* secondary text */
  --c-faint: #8b939e;     /* muted */
  --c-line: #e5e6ea;      /* hairlines */
  --c-line-strong: #c9ccd2;

  /* Yonsei palette: black + white + navy + gold.
     --accent  (navy) is the primary accent (kickers, links, buttons, brand).
     --accent-2 (gold) is a secondary highlight (underlines, badges, dark-card labels). */
  --accent: #002366;
  --accent-2: #FDB813;

  --maxw: 1120px;
  --maxw-read: 760px;
  --nav-h: 70px;

  --serif: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--c-head);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding: 84px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: #0d0f12; color: #c7ccd3; }
.section + .section { border-top: 1px solid var(--c-line); }
.section--alt + .section, .section + .section--alt { border-top: 0; }

.section-head { max-width: var(--maxw-read); margin: 0 0 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--c-soft); margin-top: 14px; font-size: 1.05rem; }
.section--dark .section-head h2 { color: #fff; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 3px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #001a4d; }
.btn--outline { background: transparent; color: var(--c-head); border-color: var(--c-line-strong); }
.btn--outline:hover { border-color: var(--c-head); }
.btn--ghost { background: transparent; color: var(--c-head); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-head); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--c-head);
  border-bottom: 2px solid var(--accent-2); padding-bottom: 2px; transition: gap .2s var(--ease);
}
.link-arrow:hover { gap: 11px; }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--c-line);
  transition: box-shadow .2s var(--ease);
}
.nav.scrolled { box-shadow: 0 1px 0 var(--c-line); }
.nav__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.brand__logo { height: 34px; width: auto; flex: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 4px; flex: none; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-size: .95rem; font-weight: 800; font-family: var(--display);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__text b { font-size: 1.05rem; color: var(--c-head); font-family: var(--display); letter-spacing: -.01em; }
.brand__text span { font-size: .68rem; color: var(--c-faint); font-weight: 600; letter-spacing: .02em; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  padding: 8px 13px; font-size: .94rem; font-weight: 500; color: var(--c-soft);
  border-bottom: 2px solid transparent; transition: color .15s var(--ease);
}
.nav__links a:hover { color: var(--c-head); }
.nav__links a.active { color: var(--c-head); font-weight: 600; border-bottom-color: var(--accent-2); }

.nav__toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.nav__toggle span { height: 2px; background: var(--c-head); border-radius: 2px; transition: all .25s var(--ease); }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 22px 22px; background: #fff; border-bottom: 1px solid var(--c-line);
    transform: translateY(-10px); opacity: 0; pointer-events: none; transition: all .2s var(--ease);
  }
  .nav.open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--c-line); }
  .nav__links a.active { border-bottom-color: var(--c-line); }
}

/* =========================================================
   Masthead (home) — editorial, no gradient
   ========================================================= */
.masthead { padding: calc(var(--nav-h) + 76px) 0 60px; border-bottom: 1px solid var(--c-line); }
.masthead .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.masthead h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); letter-spacing: -.03em; max-width: 18ch; }
.masthead .kr { margin-top: 12px; font-family: "Noto Sans KR", var(--font); font-size: 1.05rem; font-weight: 500; color: var(--c-soft); letter-spacing: .01em; }
.masthead .lead { font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--c-soft); margin-top: 22px; max-width: 62ch; }
.masthead .meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: var(--c-soft); }
.masthead .meta b { color: var(--c-head); font-weight: 600; }
.masthead .more { margin-top: 34px; }

/* Photos landing — two stylized choice buttons (different fonts) */
.photo-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; }
@media (max-width: 680px) { .photo-choices { grid-template-columns: 1fr; } }
.photo-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px;
  min-height: 230px; padding: 44px 32px; text-align: center; border: 1px solid var(--c-line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.photo-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0, 0, 0, .12); }
.photo-btn .sub { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-faint); }
.photo-btn--lab { background: var(--c-head); color: #fff; border-color: var(--c-head); }
.photo-btn--lab .label { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: .05em; text-transform: uppercase; }
.photo-btn--lab .sub { color: rgba(255, 255, 255, .6); }
.photo-btn--journey { background: #fff; }
.photo-btn--journey:hover { border-color: var(--accent); }
.photo-btn--journey .label { font-family: "Dancing Script", "Segoe Script", cursive; font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.4rem); color: var(--accent); line-height: 1; }

/* Research demonstration videos */
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .demo-grid { grid-template-columns: 1fr; } }
.demo { margin: 0; }
.demo video { width: 100%; height: auto; display: block; background: #0d0f12; border: 1px solid var(--c-line); }
.demo figcaption { margin-top: 12px; }
.demo figcaption .k { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 4px; }
.demo figcaption .t { color: var(--c-soft); font-size: .96rem; }

/* Feature row image (research work packages) */
.feature-img { margin: 0; overflow: hidden; border-radius: 2px; }
.feature-img img { width: 100%; height: auto; display: block; }

/* Home feature image (under the masthead) */
.home-figure { margin: 0; overflow: hidden; }

/* Home research-area image cards */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cat-grid .cat-card:first-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } .cat-grid .cat-card:first-child { grid-column: auto; } }
.cat-card { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #0d0f12; color: #fff; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card .cap { position: absolute; inset: auto 0 0 0; padding: 20px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.cat-card .cap .k { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-2); }
.cat-card .cap h3 { color: #fff; font-size: 1.12rem; margin-top: 5px; letter-spacing: -.01em; }
.cat-card:first-child .cap h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.home-figure img { width: 100%; height: auto; display: block; }
.home-figure figcaption { font-size: .82rem; color: var(--c-faint); padding: 10px 14px; border-top: 1px solid var(--c-line); }

/* =========================================================
   Generic grids / cards (flat)
   ========================================================= */
.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: transparent; border: 0; border-top: 1px solid var(--c-line); padding: 26px 0 0; height: 100%; }
.card__icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--c-head); margin-bottom: 16px; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.18rem; margin-bottom: 9px; }
.card p { color: var(--c-soft); font-size: .97rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.tag {
  font-size: .73rem; font-weight: 600; padding: 3px 9px; border: 1px solid var(--c-line); color: var(--c-soft);
}

/* Application media cards (image on top, icon fallback until a photo is dropped in) */
.appcard { display: flex; flex-direction: column; height: 100%; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 3px; overflow: hidden; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.appcard:hover { border-color: var(--c-line-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, .07); }
.appcard__img { aspect-ratio: 16 / 10; background: linear-gradient(140deg, #002b7a 0%, #001a4d 100%); background-size: cover; background-position: center; display: grid; place-items: center; }
.appcard__img svg { width: 40px; height: 40px; color: rgba(255, 255, 255, .82); }
.appcard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.appcard__body h3 { font-size: 1.14rem; margin-bottom: 8px; }
.appcard__body p { color: var(--c-soft); font-size: .95rem; }
.appcard__body .card__tags { margin-top: auto; padding-top: 16px; }
a.appcard { text-decoration: none; color: inherit; }
.appcard__more { margin-top: 14px; font-size: .82rem; font-weight: 700; color: var(--accent); letter-spacing: .01em; }
.appcard--link:hover .appcard__more { text-decoration: underline; }

/* ---------- Feature row ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.rev > div:first-child { order: 2; }
.feature__media {
  aspect-ratio: 4/3; background: var(--c-bg-alt); border: 1px solid var(--c-line);
  display: grid; place-items: center; color: var(--c-faint);
}
.feature__media .ph { text-align: center; padding: 24px; }
.feature__media .ph svg { width: 50px; height: 50px; margin-bottom: 12px; opacity: .8; }
.feature h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 18px; }
.feature p { color: var(--c-soft); margin-bottom: 14px; }
.feature ul.checks li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; color: var(--c-soft); }
.feature ul.checks li svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 4px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature.rev > div:first-child { order: 0; }
}

/* =========================================================
   Home — selected publications & recent news (editorial lists)
   ========================================================= */
.home-split { display: grid; grid-template-columns: 1fr; gap: 0; }
.home-list { border-top: 1px solid var(--c-head); }
.home-list .row {
  display: grid; grid-template-columns: 108px 1fr auto; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--c-line);
}
.home-list .row .yr { font-family: var(--display); font-weight: 600; color: var(--c-faint); font-size: .9rem; }
.home-list .row .main .t { font-weight: 600; font-size: 1.04rem; color: var(--c-head); }
.home-list .row .main .t a:hover { border-bottom: 1px solid var(--accent-2); }
.home-list .row .main .sub { color: var(--c-soft); font-size: .9rem; margin-top: 3px; }
.home-list .row .tagcol { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); white-space: nowrap; }
@media (max-width: 600px) {
  .home-list .row { grid-template-columns: 92px 1fr; }
  .home-list .row .tagcol { display: none; }
}

/* =========================================================
   People
   ========================================================= */
.pi-card { display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: start; }
.pi-card__photo {
  aspect-ratio: 1; background: var(--c-bg-alt); border: 1px solid var(--c-line);
  background-size: cover; background-position: center top; overflow: hidden;
  display: grid; place-items: center; color: var(--c-faint); font-size: 2.6rem; font-weight: 700; font-family: var(--display);
}
.pi-card h3 { font-size: 1.7rem; }
.pi-card .role { color: var(--accent); font-weight: 600; margin: 7px 0 18px; font-size: .96rem; }
.pi-card p { color: var(--c-soft); margin-bottom: 12px; }
.pi-card .pi-bullets { margin: 14px 0 4px; }
.pi-card .pi-bullets li { position: relative; padding-left: 18px; margin-bottom: 8px; color: var(--c-soft); font-size: .95rem; }
.pi-card .pi-bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.pi-card .meta { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 18px; font-size: .92rem; }
.pi-card .meta a, .pi-card .meta span { display: inline-flex; align-items: center; gap: 7px; color: var(--c-soft); }
.pi-card .meta a:hover { color: var(--c-head); }
.pi-card .meta svg { width: 17px; height: 17px; color: var(--c-faint); }
@media (max-width: 720px) { .pi-card { grid-template-columns: 1fr; gap: 24px; } .pi-card__photo { max-width: 200px; } }

.member { padding: 0; }
.member__avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--c-bg-alt); border: 1px solid var(--c-line);
  background-size: cover; background-position: center top; overflow: hidden;
  display: grid; place-items: center; color: var(--c-soft); font-size: 1.5rem; font-weight: 700; font-family: var(--display);
}
.member { text-align: center; }
.member h4 { font-size: 1.05rem; }
.member .em { font-size: .8rem; color: var(--c-faint); margin-top: 4px; word-break: break-all; }
.people-group { margin-top: 56px; }
.people-group > h3 {
  font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 14px;
  margin-bottom: 30px; border-bottom: 1px solid var(--c-head); display: flex; align-items: baseline; gap: 12px;
}
.people-group > h3 .count { font-size: .82rem; font-weight: 600; color: var(--c-faint); letter-spacing: 0; }

/* =========================================================
   Publications
   ========================================================= */
.pub-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; border-bottom: 1px solid var(--c-line); padding-bottom: 18px; }
.pub-filter button {
  padding: 7px 16px; border: 1px solid var(--c-line); background: #fff; color: var(--c-soft);
  font-family: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .15s var(--ease);
}
.pub-filter button:hover { border-color: var(--c-head); color: var(--c-head); }
.pub-filter button.active { background: var(--c-head); border-color: var(--c-head); color: #fff; }

.pub-list { max-width: 940px; }
.pub-empty { list-style: none; color: var(--c-faint); padding: 16px 0; font-size: .95rem; }
.pub-item {
  display: grid; grid-template-columns: auto 64px 1fr; gap: 18px; padding: 22px 0;
  border-bottom: 1px solid var(--c-line); align-items: start;
}
.pub-item__num { width: 34px; color: var(--c-faint); font-weight: 600; font-size: .85rem; font-family: var(--display); padding-top: 3px; }
.pub-thumb {
  width: 64px; height: 64px; flex: none; overflow: hidden; display: grid; place-items: center;
  background: var(--c-bg-alt); border: 1px solid var(--c-line); color: var(--c-faint);
  background-size: cover; background-position: center;
}
.pub-thumb svg { width: 26px; height: 26px; }
.pub-item__body p.title { font-weight: 600; font-size: 1.03rem; margin-bottom: 6px; color: var(--c-head); }
.pub-item__body p.title a.pub-link { color: inherit; transition: color .15s var(--ease); }
.pub-item__body p.title a.pub-link:hover { color: var(--accent); }
.pub-item__body p.title a.pub-link::after { content: "\2197"; font-size: .72em; margin-left: 5px; color: var(--c-faint); opacity: 0; transition: opacity .15s; }
.pub-item__body p.title a.pub-link:hover::after { opacity: 1; }
.pub-item__body p.authors { color: var(--c-soft); font-size: .9rem; margin-bottom: 7px; }
.pub-item__body .venue { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .87rem; color: var(--c-soft); }
.pub-item__body .venue em { font-style: italic; color: var(--c-head); font-weight: 600; }
.pub-item__body .venue .year { font-size: .76rem; font-weight: 700; color: var(--c-faint); }
.pub-item .award {
  display: inline-block; margin-top: 7px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #0a0c0f; background: var(--accent-2); padding: 2px 8px;
}

/* =========================================================
   News timeline (flat)
   ========================================================= */
.timeline { max-width: 820px; }
.tl-year { margin: 40px 0 18px; }
.tl-year:first-child { margin-top: 0; }
.tl-year b { font-family: var(--display); font-size: 1.5rem; color: var(--c-head); }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.tl-item .date { font-size: .85rem; font-weight: 600; color: var(--c-faint); padding-top: 2px; }
.tl-item .txt { color: var(--c-ink); }
.news-venue { font-style: italic; color: var(--c-soft); }
.home-list .row .main .t .news-venue { font-weight: 400; }
.tl-item .txt .kind {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  margin-right: 9px; vertical-align: 1px; padding: 1px 7px; border: 1px solid var(--c-line);
}
.kind--paper { color: var(--accent); border-color: var(--accent); }
.kind--award { color: #b45309; border-color: #e3c08a; }
.kind--member { color: #15803d; border-color: #abdcbb; }
.kind--event { color: #6d28d9; border-color: #cabdf2; }
@media (max-width: 600px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }

/* =========================================================
   Teaching
   ========================================================= */
.course {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--c-line);
}
.course__code { font-family: var(--display); font-weight: 600; color: var(--c-head); font-size: .92rem; white-space: nowrap; }
.course h4 { font-size: 1.08rem; }
.course .terms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.course .terms span { font-size: .76rem; font-weight: 600; color: var(--c-soft); }
.course .terms span:not(:last-child)::after { content: "·"; margin-left: 6px; color: var(--c-faint); }
.course > .tag { border: 0; color: var(--c-faint); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
@media (max-width: 600px) { .course { grid-template-columns: 1fr; gap: 6px; } }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 0; }
.contact-card h3 { font-size: 1.25rem; margin-bottom: 22px; }
.contact-row { display: flex; gap: 15px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--c-line); }
.contact-row:first-of-type { border-top: 1px solid var(--c-head); }
.contact-row .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: var(--c-head); }
.contact-row .ic svg { width: 20px; height: 20px; }
.contact-row b { display: block; font-size: .92rem; }
.contact-row span, .contact-row a { color: var(--c-soft); font-size: .94rem; word-break: break-word; }
.contact-row a:hover { color: var(--c-head); }
.map-embed { overflow: hidden; border: 1px solid var(--c-line); min-height: 320px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.3); }

/* ---------- Quiet CTA (no gradient) ---------- */
.join-cta { padding: 48px; background: var(--c-bg-alt); border: 1px solid var(--c-line); text-align: center; }
.join-cta h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.join-cta p { color: var(--c-soft); max-width: 560px; margin: 14px auto 26px; }

/* =========================================================
   Funding / collaborators (text, not a logo wall)
   ========================================================= */
.sponsors { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.sponsor { position: relative; font-weight: 600; color: var(--c-soft); font-size: 1rem; transition: color .15s var(--ease); }
.sponsor:has(.slogo):hover { color: var(--c-head); cursor: default; }
.sponsor:not(:last-child)::after { content: "·"; margin-left: 14px; color: var(--c-line-strong); }
/* hover logo popover */
.sponsor .slogo {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px) scale(.96);
  background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 12px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14); opacity: 0; pointer-events: none; z-index: 6;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
}
.sponsor .slogo img { height: 42px; width: auto; max-width: min(480px, 86vw); display: block; }
.sponsor:hover .slogo { opacity: 1; transform: translate(-50%, -10px) scale(1); }
.sponsor.no-logo .slogo { display: none; }

/* =========================================================
   Page header (sub pages) — editorial
   ========================================================= */
.page-head { padding: calc(var(--nav-h) + 56px) 0 40px; border-bottom: 1px solid var(--c-head); }
.page-head .eyebrow { color: var(--accent); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.02em; }
.page-head p { color: var(--c-soft); margin-top: 14px; max-width: 64ch; font-size: 1.05rem; }
.crumbs { font-size: .82rem; color: var(--c-faint); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .06em; }
.crumbs a:hover { color: var(--c-head); }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #0d0f12; color: #9aa2ad; padding: 60px 0 26px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 28px; } }
.footer .brand__mark { background: #fff; color: #0d0f12; }
.footer .brand__text b { color: #fff; }
.footer .brand__text span { color: #6b7280; }
.footer p { font-size: .9rem; margin-top: 15px; max-width: 340px; }
.footer h5 { color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 15px; font-family: var(--display); }
.footer ul li { margin-bottom: 9px; }
.footer ul a { font-size: .91rem; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .82rem; color: #646c77; }

/* =========================================================
   Reveal on scroll (subtle fade)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   "Edit this page" button — only injected on localhost / file://
   (hidden on the live site so visitors never see it)
   ========================================================= */
.edit-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 1200;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--c-head); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22); transition: background .15s var(--ease), transform .15s var(--ease);
}
.edit-fab:hover { background: #000; transform: translateY(-2px); }
.edit-fab svg { width: 16px; height: 16px; }
.edit-fab .lc { font-size: .7rem; opacity: .65; font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
