/* ==========================================================================
   Chen Lab @ SUSTech — global stylesheet
   ========================================================================== */

:root {
  --navy: #0d1f33;
  --navy-2: #14304d;
  --ink: #101d2b;
  --body: #35485c;
  --muted: #6b7c8f;
  --line: #e2e8ef;
  --line-2: #eef2f6;
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-soft-2: #eef3f7;
  --accent: #0e6f7d;
  --accent-soft: #e6f2f3;
  --amber: #c4842a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
  --r: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; font-family: var(--sans); letter-spacing: 0; }

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft-2); padding: .1em .4em; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 800px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, #1d5570 100%);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 24% 22%, rgba(255,255,255,.55) 0 1.2px, transparent 1.3px),
                    radial-gradient(circle at 72% 64%, rgba(255,255,255,.42) 0 1.2px, transparent 1.3px);
  background-size: 9px 9px, 13px 13px;
  opacity: .5;
}
.brand-mark span {
  position: relative; z-index: 1;
  font-family: var(--serif); color: #fff; font-size: 15px; letter-spacing: .04em; font-weight: 600;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.16; }
.brand-name {
  font-family: var(--serif); font-size: 1.06rem; color: var(--ink); font-weight: 600; letter-spacing: -.01em;
}
.brand-sub { font-size: .745rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: .905rem;
  color: var(--body);
  border-radius: 6px;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--bg-soft); color: var(--navy); }
.nav a.active { color: var(--navy); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 38px; cursor: pointer; padding: 0; color: var(--ink);
}
.nav-toggle svg { display: block; margin: 0 auto; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -10%, #1d5a74 0%, transparent 62%),
    radial-gradient(760px 420px at 4% 106%, #1a3c56 0%, transparent 66%),
    linear-gradient(160deg, #0c1c2e 0%, #102c43 52%, #0d2337 100%);
  color: #dbe6ee;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding: 86px 0 78px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: #8fc0cf; margin-bottom: 22px;
  border: 1px solid rgba(143,192,207,.28);
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(143,192,207,.07);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #6fd0c4;
  box-shadow: 0 0 0 3px rgba(111,208,196,.16);
}

.hero h1 { color: #fff; margin-bottom: 20px; letter-spacing: -.018em; }
.hero h1 em { font-style: italic; color: #9ed3d8; }

.hero-lede {
  font-size: 1.075rem;
  color: #b6c8d6;
  max-width: 34em;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: .905rem; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #eef4f7; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.26); color: #dbe6ee; }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0b5a65; color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* hero visual: orbital figure */
.hero-figure { position: relative; }
.hero-figure svg { width: 100%; height: auto; overflow: visible; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.orbit-slow { transform-origin: 210px 200px; animation: orbit 46s linear infinite; }
.orbit-mid  { transform-origin: 210px 200px; animation: orbit 30s linear infinite reverse; }
.orbit-fast { transform-origin: 210px 200px; animation: orbit 18s linear infinite; }
.pulse-dot  { animation: floaty 6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .orbit-slow, .orbit-mid, .orbit-fast, .pulse-dot { animation: none; }
}

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.13);
  position: relative; z-index: 1;
}
.stats div { padding: 20px 0 24px; }
.stat-num {
  font-family: var(--serif); font-size: 1.6rem; color: #fff; font-weight: 600; line-height: 1.1;
}
.stat-label { font-size: .735rem; letter-spacing: .1em; text-transform: uppercase; color: #7f97a9; margin-top: 5px; }

/* ---------- sections ---------- */

.section { padding: 78px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 56px 0; }
.section + .section.tight { padding-top: 0; }

.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: block;
  font-size: .735rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); font-size: 1.01rem; margin-bottom: 0; }

.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 62px 0 50px;
}
.page-head h1 { margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 660px; margin: 0; font-size: 1.02rem; }

/* ---------- cards / grids ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -18px rgba(16,29,43,.32);
  border-color: #d3dde7;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .meta { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.card-num {
  font-family: var(--serif); font-size: .82rem; color: var(--accent);
  letter-spacing: .1em; margin-bottom: 14px; display: block; font-weight: 700;
}

/* research cards with figure */
.rcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.rcard:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -24px rgba(16,29,43,.38); border-color: #cfdae5; }

.rcard-media {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  padding: 16px 20px;
  display: grid;
  place-items: center;
  height: 248px;
  overflow: hidden;
}
.rcard-media img {
  position: absolute;
  top: 16px;
  left: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 32px);
  object-fit: contain;
  object-position: center;
}

.play-btn {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); background: rgba(255,255,255,.94);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.play-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.play-btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

.rcard-body { padding: 22px 24px 26px; flex: 1; }
.rcard-body h3 { font-size: 1.16rem; margin-bottom: 10px; }
.rcard-body p { font-size: .945rem; color: var(--body); }
.rcard-body p:last-child { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag {
  font-size: .74rem; letter-spacing: .02em;
  color: #4a6076; background: var(--bg-soft-2);
  border-radius: 999px; padding: 3px 10px;
}
.tag.teal { background: var(--accent-soft); color: #0a5b66; }

/* ---------- PI block ---------- */

.pi-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}

.pi-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(165deg, #e9eff4, #d6e2ea);
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.pi-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.pi-photo .initials {
  font-family: var(--serif); font-size: 3.1rem; color: #9db0c2; letter-spacing: .02em;
}
.pi-photo .photo-note {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: .68rem; text-align: center; color: #7b8fa3;
  background: rgba(255,255,255,.8); padding: 5px 8px; letter-spacing: .04em;
}

.pi-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; font-size: .88rem; }
.pi-links a { display: flex; align-items: center; gap: 9px; color: var(--body); }
.pi-links a:hover { color: var(--accent); }
.pi-links svg { flex-shrink: 0; opacity: .6; }

.prose h3 { margin-top: 34px; margin-bottom: 12px; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--body); }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.pill {
  font-size: .8rem; padding: 5px 12px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--line); color: #46596c;
}

/* ---------- timeline ---------- */

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; margin: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--accent);
}
.timeline .tl-year {
  font-family: var(--mono); font-size: .78rem; color: var(--accent); letter-spacing: .04em; display: block;
}
.timeline .tl-title { display: block; color: var(--ink); font-weight: 600; font-size: .98rem; }
.timeline .tl-sub { display: block; font-size: .89rem; color: var(--muted); }

/* ---------- publications ---------- */

.pub-controls {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 30px;
  position: sticky; top: 72px; z-index: 30;
}

.search-box {
  position: relative; flex: 1 1 240px; min-width: 180px;
}
.search-box input {
  width: 100%; padding: 9px 12px 9px 34px;
  border: 1px solid var(--line); border-radius: 7px;
  font-family: var(--sans); font-size: .9rem; color: var(--ink);
  background: #fff; outline: none;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14,111,125,.1); }
.search-box svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); opacity: .4; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--sans); font-size: .82rem;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: #46596c;
  cursor: pointer; transition: all .16s ease;
}
.chip:hover { border-color: #c5d2de; color: var(--navy); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.pub-count { font-size: .82rem; color: var(--muted); margin-left: auto; white-space: nowrap; }

.pub-year-head {
  display: flex; align-items: baseline; gap: 14px;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.pub-year-head:first-of-type { margin-top: 8px; }
.pub-year-head span:first-child {
  font-family: var(--serif); font-size: 1.32rem; color: var(--navy); font-weight: 600;
}
.pub-year-head span:last-child { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 15px 14px 15px 8px;
  border-radius: 8px;
  border-bottom: 1px solid var(--line-2);
  transition: background .15s ease;
}
.pub-item:hover { background: #fafcfd; }
.pub-idx {
  font-family: var(--mono); font-size: .8rem; color: #a3b3c2; padding-top: 4px; text-align: right;
}
.pub-body { min-width: 0; }
.pub-authors { font-size: .855rem; color: var(--muted); line-height: 1.55; margin-bottom: 3px; }
.pub-title { font-size: .985rem; color: var(--ink); font-weight: 600; line-height: 1.45; margin-bottom: 4px; }
.pub-venue { font-size: .855rem; color: var(--muted); font-style: italic; }
.pub-venue b { font-style: normal; font-weight: 700; color: #3d5266; }
.pub-flags { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.flag {
  font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
  padding: 1px 6px; border-radius: 3px; font-family: var(--sans);
}
.flag.hi { background: #fdf3e2; color: #9b6516; }
.flag.corr { background: var(--accent-soft); color: #0a5b66; }
.flag.first { background: #eceafb; color: #4b3f9e; }
.flag.cover { background: #fdeaea; color: #a33; }

.pub-note {
  font-size: .8rem; color: var(--muted); margin-top: 26px;
  padding: 14px 18px; background: var(--bg-soft); border-left: 3px solid var(--line);
  border-radius: 0 6px 6px 0;
}

.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- people ---------- */

.person {
  text-align: center;
  padding: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.person:hover { transform: translateY(-3px); box-shadow: 0 10px 26px -18px rgba(16,29,43,.3); }

/* square portrait on top of the card */
.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  background: #eef3f7;
  border-bottom: 1px solid var(--line-2);
}
.portrait-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  font-family: var(--serif);
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(150deg, #2c4a63, #3f7d8c);
  border-bottom: 1px solid var(--line-2);
  letter-spacing: .02em;
}
.person .body { padding: 16px 16px 0; }

.avatar {
  width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; color: #fff;
  background: linear-gradient(150deg, #24455f, #0e6f7d);
  letter-spacing: .02em;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--line);
  overflow: hidden;
}
.avatar.alt1 { background: linear-gradient(150deg, #2c4a63, #3f7d8c); }
.avatar.alt2 { background: linear-gradient(150deg, #3a4a5e, #6b8fa3); }
.avatar.alt3 { background: linear-gradient(150deg, #4a3f52, #8a6f9c); }
.person h4 { margin-bottom: 3px; font-weight: 600; font-size: .98rem; }
.person .cn { font-size: .8rem; color: var(--muted); margin-bottom: 5px; letter-spacing: .02em; }
.person .role { font-size: .82rem; color: var(--accent); margin-bottom: 6px; }
.person .topic { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* group sub-headings on the people page */
.group-head {
  display: flex; align-items: baseline; gap: 12px;
  margin: 44px 0 20px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.group-head:first-of-type { margin-top: 0; }
.group-head h3 { margin: 0; font-size: 1.15rem; font-family: var(--serif); color: var(--navy); }
.group-head span { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

/* people grid — always four columns on desktop, so a one-person or
   two-person group keeps the same card width as a full row */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.placeholder-note {
  margin-top: 26px; padding: 16px 20px;
  background: #fffaf0; border: 1px dashed #e8d5ac; border-radius: 8px;
  font-size: .86rem; color: #866a33;
}

/* ---------- news ---------- */

.news-item {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 6px; }
.news-date {
  font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-top: 4px;
}
.news-date b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.news-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.news-item p { font-size: .935rem; color: var(--body); margin-bottom: 0; }

/* ---------- funding ---------- */

.fund {
  display: grid; grid-template-columns: 1fr auto; gap: 20px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  align-items: center;
}
.fund h4 { margin-bottom: 4px; font-size: 1rem; }
.fund p { margin: 0; font-size: .87rem; color: var(--muted); }
.fund .amount { font-family: var(--mono); font-size: .8rem; color: var(--accent); white-space: nowrap; }

/* ---------- contact / cta ---------- */

.cta-band {
  background: linear-gradient(150deg, #0c1c2e, #12374f 70%, #0e2b40);
  color: #cfdde7;
  border-radius: 16px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #a9bdcb; margin: 0; max-width: 46ch; font-size: .98rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-block { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-block svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.contact-block h4 { margin-bottom: 3px; }
.contact-block p { margin: 0; font-size: .93rem; color: var(--body); }

.map-frame {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--bg-soft); position: relative;
}
.map-frame svg { width: 100%; height: 100%; display: block; }

/* ---------- join ---------- */

.join-list { list-style: none; padding: 0; margin: 0 0 8px; }
.join-list li {
  position: relative; padding-left: 26px; margin-bottom: 14px;
  font-size: .95rem;
}
.join-list li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg);
}

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 20px;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: #0a5b66;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
}

/* ---------- footer ---------- */

.site-footer {
  background: #0b1928;
  color: #93a7b8;
  padding: 58px 0 34px;
  margin-top: 0;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-footer h4 {
  color: #fff; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 14px; font-weight: 600;
}
.site-footer a { color: #93a7b8; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; font-size: 1.05rem; }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; line-height: 1.65; font-size: .875rem; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-bottom {
  padding-top: 24px; display: flex; justify-content: space-between; gap: 16px;
  font-size: .795rem; color: #6b7f90; flex-wrap: wrap;
}

/* ---------- reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- print ---------- */

@media print {
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header { position: static; backdrop-filter: none; }
  .nav, .nav-toggle, .play-btn, .pub-controls, .hero-actions, .cta-band .btn { display: none !important; }
  .hero, .cta-band, .site-footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .section { padding: 28px 0; }
  a { color: inherit; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 62px 0 56px; }
  .hero-figure { max-width: 420px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pi-grid { grid-template-columns: 200px 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 72px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px; gap: 2px;
    box-shadow: 0 18px 30px -22px rgba(16,29,43,.3);
  }
  .nav.open a { padding: 11px 10px; }
  .nav.open a.active::after { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 38px 28px; }
  .pi-grid { grid-template-columns: 1fr; }
  .pi-photo { max-width: 220px; }
  .pub-controls { position: static; }
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-date { display: flex; align-items: baseline; gap: 8px; }
  .news-date b { font-size: 1rem; }
  .section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .fund { grid-template-columns: 1fr; }
  .pub-item { grid-template-columns: 1fr; gap: 4px; }
  .pub-idx { text-align: left; }
}

/* ---------- 2026-10: positioning blocks ---------- */
.hero-position {
  margin: 22px 0 0;
  padding: 14px 18px;
  max-width: 62ch;
  background: rgba(255,255,255,.05);
  border-left: 2px solid rgba(158,211,216,.75);
  border-radius: 0 8px 8px 0;
  color: #d2e2ea;
  font-size: .98rem;
  line-height: 1.64;
}
.hero-position strong { color: #fff; font-weight: 600; }

.diffs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.diff {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.diff .dnum {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 9px;
}
.diff h4 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.diff p { margin: 0; font-size: .92rem; line-height: 1.62; color: var(--body); }

.steps { margin-top: 16px; }
.step { padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line-2); }
.step:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.step-k {
  display: block;
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.step p { margin: 0; font-size: .92rem; line-height: 1.62; color: var(--body); }

.claim {
  margin: 0 0 30px;
  padding: 22px 26px;
  border-radius: var(--r);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.claim p { margin: 0; font-size: 1.02rem; line-height: 1.66; color: #0b3f47; }
.claim p strong { color: #072e34; }

@media (max-width: 820px) {
  .diffs { grid-template-columns: 1fr; }
  .claim { padding: 18px 20px; }
}
