/* RHGS site, built on the RHGS Design System tokens.
   Layout concept: full-bleed photographic heroes cut by the brand's diagonal band
   (lime bar over blue band), calm light content sections, navy footer. */

:root {
  /* brand (from tokens/colors.css) */
  --blue: #004aad;
  --blue-mid: #216cb5;
  --sky: #499ed7;
  --blue-light: #b5c9e3;
  --blue-pale: #e8f3fa;
  --lime: #bffc70;
  --lime-dark: #a0d455;
  --navy: #1e3461;
  --navy-mid: #2c4f88;

  /* semantic, light */
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --card: #ffffff;
  --ink: #2d3142;
  --ink-soft: #4e5565;
  --head: #0d1117;
  --line: #d1d5dc;
  --line-soft: #e8eaed;
  --link: #004aad;
  --eyebrow: #216cb5;
  --btn: #004aad;
  --btn-hover: #003a8c;
  --band: #1e3461;
  --band-deep: #16274a;
  --focus: #499ed7;

  /* type (from tokens/typography.css) */
  --font-sans: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  /* spacing, radii, shadows (from tokens/spacing.css) */
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 2px 8px rgba(0,74,173,.08), 0 4px 16px rgba(0,74,173,.06);
  --shadow-lg: 0 8px 24px rgba(0,74,173,.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 16px 48px rgba(0,74,173,.16);

  /* motion (from tokens/motion.css) */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 350ms;

  --header-h: 84px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1428;
    --bg-soft: #0f1b38;
    --card: #13224a;
    --ink: #d8e0ef;
    --ink-soft: #a3b1cb;
    --head: #ffffff;
    --line: rgba(181,201,227,.22);
    --line-soft: rgba(181,201,227,.12);
    --link: #8cc6ee;
    --eyebrow: #7fbbe6;
    --btn: #2a6ad0;
    --btn-hover: #3b7de3;
    --band: #142750;
    --band-deep: #0a1226;
    --shadow-md: 0 2px 8px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.22);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.38), 0 2px 8px rgba(0,0,0,.3);
    --shadow-xl: 0 16px 48px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1428;
  --bg-soft: #0f1b38;
  --card: #13224a;
  --ink: #d8e0ef;
  --ink-soft: #a3b1cb;
  --head: #ffffff;
  --line: rgba(181,201,227,.22);
  --line-soft: rgba(181,201,227,.12);
  --link: #8cc6ee;
  --eyebrow: #7fbbe6;
  --btn: #2a6ad0;
  --btn-hover: #3b7de3;
  --band: #142750;
  --band-deep: #0a1226;
  --shadow-md: 0 2px 8px rgba(0,0,0,.28), 0 4px 16px rgba(0,0,0,.22);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.38), 0 2px 8px rgba(0,0,0,.3);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast) var(--ease); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; color: var(--head); text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--lime); color: var(--navy); padding: 10px 16px; font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease), backdrop-filter var(--t-slow) var(--ease);
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(22, 39, 74, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(10,18,38,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; transition: height var(--t-base) var(--ease); }
.is-scrolled .brand img { height: 46px; }
.nav-list { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; }
.nav-list a {
  position: relative; display: block; padding: 8px 2px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: .8125rem;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-sm);
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-menu { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; opacity: 0; transition: opacity var(--t-base) var(--ease); }
.is-scrolled .progress { opacity: 1; }

/* ---------- hero ---------- */
.hero, .page-hero { position: relative; isolation: isolate; color: #fff; background: var(--band); overflow: hidden; }
.hero-media { position: absolute; inset: -4% 0; z-index: -3; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(22,39,74,.96) 0%, rgba(0,74,173,.80) 52%, rgba(30,52,97,.40) 100%),
    linear-gradient(0deg, rgba(22,39,74,.55), rgba(22,39,74,0) 40%);
}
.dots {
  position: absolute; left: max(12px, env(safe-area-inset-left, 0px)); bottom: 70px; width: 180px; height: 120px; z-index: -1; opacity: .55;
  background-image: radial-gradient(circle, var(--blue-light) 2px, transparent 2.5px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(45deg, #000 0%, transparent 85%); mask-image: linear-gradient(45deg, #000 0%, transparent 85%);
}
.hero { padding-top: calc(var(--header-h) + clamp(64px, 11vw, 132px)); padding-bottom: clamp(120px, 16vw, 200px); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.7rem, 6.4vw, 5.2rem); line-height: 1; letter-spacing: .004em; color: #fff; max-width: 15ch;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p.lead { margin-top: 26px; max-width: 34em; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; color: rgba(255,255,255,.92); font-weight: 500; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(54px, 8vw, 116px); display: block; z-index: 0; }
.edge .e-lime { fill: var(--lime); }
.edge .e-blue { fill: var(--blue); }
.edge .e-bg { fill: var(--bg); }
.edge.to-soft .e-bg { fill: var(--bg-soft); }

.hero .rise { animation: rise .9s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .12s; }
.hero .rise:nth-child(3) { animation-delay: .24s; }
.hero-media img { animation: settle 2.4s var(--ease) both; }
@keyframes rise { from { opacity: .001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }

.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(88px, 11vw, 150px); background: linear-gradient(135deg, var(--band-deep), var(--navy-mid)); }
.page-hero.has-img .hero-scrim { background: linear-gradient(100deg, rgba(22,39,74,.94) 0%, rgba(0,74,173,.74) 60%, rgba(30,52,97,.45) 100%); }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; color: #fff; letter-spacing: .004em; }
.page-hero .intro { margin-top: 20px; max-width: 46em; color: rgba(255,255,255,.92); font-size: 1.15rem; line-height: 1.55; font-weight: 500; }
.page-hero .intro + .intro { margin-top: 10px; }
.page-hero .rise { animation: rise .8s var(--ease) both; }

/* ---------- shared bits ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: #d3ff9c; box-shadow: 0 6px 22px rgba(191,252,112,.35); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-blue { background: var(--btn); color: #fff; }
.btn-blue:hover { background: var(--btn-hover); box-shadow: var(--shadow-lg); }

.section { padding-block: clamp(56px, 8vw, 108px); }
.section.soft { background: var(--bg-soft); }
.section.band { background: var(--band); color: #fff; }
.section.band h2, .section.band h3 { color: #fff; }
.section.band a:not(.btn) { color: var(--lime); }

.eyebrow { display: block; margin-bottom: 14px; font-weight: 700; font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; color: var(--eyebrow); }
.band .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--lime); }
.h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.04; letter-spacing: .004em;
}
.h2 a { color: inherit; text-decoration: none; background-image: linear-gradient(var(--lime), var(--lime)); background-size: 0 3px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--t-slow) var(--ease); }
.h2 a:hover { background-size: 100% 3px; }
.rule { display: block; width: 64px; height: 4px; margin-top: 18px; background: linear-gradient(90deg, var(--blue) 0 68%, var(--lime) 68% 100%); border-radius: 1px; }
.band .rule { background: linear-gradient(90deg, var(--sky) 0 68%, var(--lime) 68% 100%); }
.section-head { margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { text-align: center; }
.section-head.center .rule { margin-inline: auto; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink); }

/* ---------- cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card .media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .media img { transform: scale(1.045); }
.media.contain img { object-fit: contain; padding: 14px; }
.card .body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; min-width: 0; }
.card h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.15rem; line-height: 1.28; text-wrap: pretty; }
.card h3 a { color: var(--head); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--link); }
.card p { font-size: .98rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .8125rem; letter-spacing: .13em; text-transform: uppercase; color: var(--link); text-decoration: none; }
.more svg { width: 16px; height: 16px; transition: transform var(--t-base) var(--ease); }
a.more:hover svg, .card:hover .more svg { transform: translateX(4px); }
.date { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.card.thumb .media { aspect-ratio: 1 / 1; }
.card.thumb .body { padding: 16px 18px 20px; gap: 6px; }
.card.thumb h3 { font-size: 1.02rem; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 9999px; background: var(--blue-pale); color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
:root[data-theme="dark"] .badge { background: rgba(127,187,230,.16); color: #a9d6f5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { background: rgba(127,187,230,.16); color: #a9d6f5; } }

/* list cards (events, projects) */
.stack { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.list-card { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; }
.list-card .media { aspect-ratio: auto; min-height: 220px; height: 100%; }
.list-card .body { padding: clamp(20px, 3vw, 32px); gap: 12px; justify-content: center; }
.list-card h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.list-card .more { margin-top: 8px; }

/* ---------- home sections ---------- */
.overview { text-align: center; }
.overview .lede { max-width: 52em; margin-inline: auto; }

.announce { display: grid; grid-template-columns: 1.05fr 1fr; background: var(--band); color: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.announce .pic { min-height: 340px; position: relative; }
.announce .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.announce .txt { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.announce h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.05; color: #fff; }
.announce p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin: 0; }

.video-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); aspect-ratio: 16 / 8; background: var(--band-deep); color: #fff; text-decoration: none; }
.video-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.video-card:hover img { transform: scale(1.04); }
.video-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(22,39,74,.78), rgba(22,39,74,.12) 55%); }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--lime); color: var(--navy); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(191,252,112,.55); transition: transform var(--t-base) var(--ease); }
.play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-card:hover .play { transform: scale(1.08); }
.video-card .cap { position: absolute; z-index: 2; left: clamp(16px, 3vw, 32px); bottom: clamp(14px, 2.4vw, 26px); right: 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.video-card .cap svg { width: 16px; height: 16px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(191,252,112,.5); } 80%, 100% { box-shadow: 0 0 0 26px rgba(191,252,112,0); } }
.play { animation: ping 2.8s var(--ease) infinite; }

.feature { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.feature .shot { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; position: sticky; top: calc(var(--header-h) + 24px); }
.feature h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.1; }
.feature h3 a { color: var(--head); text-decoration: none; }
.feature h3 a:hover { color: var(--link); }
.authors { margin: 18px 0 20px; font-size: 1rem; }
.feature .abstract { font-size: 1rem; line-height: 1.7; color: var(--ink); max-width: 68ch; }

.panel { background: #fff; border-radius: var(--radius-lg); padding: clamp(14px, 3vw, 32px); box-shadow: var(--shadow-md); border: 1px solid var(--line-soft); }
.panel img { width: 100%; height: auto; }
.funders { display: grid; grid-template-columns: 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center; }
.funders .cihr { width: clamp(110px, 14vw, 170px); }
.sub-lede { max-width: 52em; margin-bottom: 28px; font-size: 1.1rem; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: minmax(200px, 330px) minmax(0, 1fr); gap: clamp(24px, 6vw, 84px); align-items: start; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.split .text { max-width: 70ch; }
.split .text p:last-child { margin-bottom: 0; }
.objectives { list-style: none; display: grid; gap: 14px; margin-top: 18px; counter-reset: obj; }
.objectives li { position: relative; padding: 16px 20px 16px 58px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.objectives li::before { content: ""; position: absolute; left: 20px; top: 21px; width: 22px; height: 22px; border-radius: 50%; background-color: var(--lime); background-image: radial-gradient(circle, var(--navy) 0 3.5px, transparent 4px); }
.mission-box { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--band); color: #fff; box-shadow: var(--shadow-xl); }
.mission-box p { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: rgba(255,255,255,.95); }
.focus-list { --fgap: clamp(18px, 2.4vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--fgap); }
.focus { flex: 0 0 calc((100% - 2 * var(--fgap)) / 3); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: clamp(26px, 3.4vw, 40px) clamp(20px, 2.6vw, 32px) clamp(28px, 3.4vw, 40px); }
.focus .ico { width: clamp(150px, 62%, 210px); aspect-ratio: 1 / 1; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line-soft); }
.focus .ico img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.focus:hover .ico img { transform: scale(1.06); }
.focus h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.1; margin-bottom: 12px; text-wrap: balance; }
.focus p { margin: 0; color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }

/* ---------- team ---------- */
.subnav { position: sticky; z-index: 20; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: none; }
.subnav a { flex: none; padding: 8px 16px; border-radius: 9999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.subnav a:hover, .subnav a.on { background: var(--btn); border-color: var(--btn); color: #fff; }
.team-block { scroll-margin-top: calc(var(--header-h) + 64px); }
.team-block + .team-block { margin-top: clamp(56px, 8vw, 100px); }
.team-intro { max-width: 60em; margin: 0 0 clamp(24px, 3vw, 40px); color: var(--ink-soft); font-size: 1.08rem; }
.person { padding: 26px 24px 26px; gap: 0; }
.person .pic { width: 132px; height: 132px; margin-bottom: 18px; border-radius: 50%; overflow: hidden; flex: none; }
.person .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.person:hover .pic img { transform: scale(1.06); }
.person h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.55rem; line-height: 1.08; }
.person h3 a { color: var(--head); text-decoration: none; }
.person h3 a::after { content: ""; position: absolute; inset: 0; }
.person h3 a:hover { color: var(--link); }
.person .role { margin: 6px 0 0; font-weight: 700; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--eyebrow); }
.person .bio { margin: 12px 0 0; font-size: .98rem; line-height: 1.58; color: var(--ink-soft); }
.person .more { margin-top: 18px; padding-top: 0; }
.person.plain h3 a::after { display: none; }
.partners-grid { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.partner { padding: 28px; gap: 18px; }
.partner .logo { height: 76px; display: flex; align-items: center; }
.partner .logo img { max-height: 100%; width: auto; max-width: 240px; }
.partner .logo-bg { padding: 10px 16px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); width: fit-content; }
.partner p { margin: 0; color: var(--ink-soft); }
.partner a.cover { position: absolute; inset: 0; }

/* ---------- tabs, pagination ---------- */
.tabs { display: flex; gap: clamp(18px, 3vw, 36px); border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 4vw, 40px); }
.tab { position: relative; padding: 14px 0; border: 0; background: none; cursor: pointer; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: .01em; color: var(--ink-soft); transition: color var(--t-fast) var(--ease); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: linear-gradient(90deg, var(--blue) 0 68%, var(--lime) 68% 100%); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); }
.tab[aria-selected="true"] { color: var(--head); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:hover { color: var(--head); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: rise .5s var(--ease) both; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }
.pager .btn { border-color: var(--line); color: var(--link); }
.pager .btn:hover { border-color: var(--btn); background: var(--btn); color: #fff; }

/* ---------- publications ---------- */
.pub { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); padding: clamp(20px, 3vw, 32px); align-items: start; }
.pub.no-img { grid-template-columns: minmax(0, 1fr); }
.pub .thumb { display: block; width: 148px; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-soft); background: #fff; }
.pub .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pub:hover .thumb img { transform: scale(1.06); }
.pub h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; text-wrap: balance; }
.pub h3 a { color: var(--head); text-decoration: none; }
.pub h3 a:hover { color: var(--link); }
.pub .venue { margin: 12px 0 0; color: var(--ink-soft); font-style: italic; }
.pub .by { margin: 12px 0 0; font-size: .98rem; line-height: 1.7; color: var(--ink); }
.pub .by strong { font-weight: 700; margin-right: 4px; }
.pub .by a { white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--band-deep); color: rgba(255,255,255,.88); padding-top: clamp(64px, 8vw, 100px); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--blue) 0 62%, var(--lime) 62% 74%, var(--sky) 74% 100%); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); }
.site-footer h2, .site-footer h3 { color: #fff; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 20px; }
.footer-brand .ttl { display: inline-block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; color: #fff; text-decoration: none; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 14px; max-width: 30em; }
.footer-title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; margin-bottom: 18px; color: #fff; }
.contacts { display: grid; gap: 20px; list-style: none; }
.contacts strong { color: #fff; }
.contacts a { color: var(--lime); text-decoration: none; word-break: break-word; }
.contacts a:hover { text-decoration: underline; }
.contacts span { display: block; }
.copyright { margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .92rem; color: rgba(255,255,255,.7); }
.copyright p { margin: 0; }

/* ---------- scroll reveal (starts visible, only eases in) ---------- */
.rv { opacity: .55; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: rgba(22,39,74,.97); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height var(--t-slow) var(--ease), visibility 0s linear var(--t-slow); }
  .nav-open .nav { max-height: 80vh; visibility: visible; transition: max-height var(--t-slow) var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(var(--gutter), env(safe-area-inset-left, 0px)) 22px; }
  .nav-list a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--lime); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .focus { flex-basis: calc((100% - var(--fgap)) / 2); }
}
@media (max-width: 860px) {
  .announce, .feature, .split { grid-template-columns: minmax(0, 1fr); }
  .announce .pic { min-height: 260px; }
  .feature .shot { position: static; }
  .list-card { grid-template-columns: minmax(0, 1fr); }
  .list-card .media { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .video-card { aspect-ratio: 16 / 10; }
  .funders { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  :root { --header-h: 72px; }
  .brand img { height: 44px; }
  .is-scrolled .brand img { height: 40px; }
  .focus { flex-basis: 100%; }
  .pub { grid-template-columns: minmax(0, 1fr); }
  .pub .thumb { width: 110px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .play svg { width: 26px; height: 26px; }
  .tabs { gap: 22px; }
  .pager { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero-media { transform: none !important; }
}

/* featured publication preview: fade the cropped page edges */
.feature .shot img { width: 100%; height: auto; }
.feature .shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, #fff 0, rgba(255,255,255,0) 12%), linear-gradient(to top, #fff 0, rgba(255,255,255,0) 18%); }

/* core team: four across */
.core-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

/* partner logo marquee */
.marquee-panel { position: relative; padding: clamp(18px, 2.6vw, 30px) 0 14px; overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.marquee-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 56s linear infinite; will-change: transform; }
.marquee:hover .marquee-track, .marquee-panel.paused .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.logo-item { flex: none; width: clamp(170px, 17vw, 240px); height: 112px; padding-inline: 18px; display: grid; place-items: center; }
.logo-item img { width: auto; height: auto; max-width: 100%; max-height: 88px; object-fit: contain; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-toggle { display: block; margin: 8px 18px 0 auto; padding: 6px 14px; border: 1px solid var(--line); border-radius: 9999px; background: #fff; color: #2d3142; font: 700 .72rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.marquee-toggle:hover { background: var(--blue-pale); border-color: var(--sky); }
.marquee-toggle .t-play { display: none; }
.marquee-panel.paused .marquee-toggle .t-play { display: inline; }
.marquee-panel.paused .marquee-toggle .t-pause { display: none; }

/* events carousel */
.car-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(22px, 3vw, 36px); }
.car-head .section-head { margin: 0; }
.car-controls { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.car-count { margin-right: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.car-btn { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: var(--link); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease); }
.car-btn svg { width: 22px; height: 22px; }
.car-btn.prev svg { transform: scaleX(-1); }
.car-btn:hover:not(:disabled) { background: var(--btn); border-color: var(--btn); color: #fff; transform: translateY(-1px); }
.car-btn:disabled { opacity: .35; cursor: default; }
.carousel { margin-inline: -4px; }
.car-viewport { --cgap: clamp(16px, 2vw, 26px); display: flex; gap: var(--cgap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; scroll-behavior: smooth; padding: 8px 4px 26px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: 2px; }
.car-viewport::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 calc((100% - 3 * var(--cgap)) / 4); min-width: 0; scroll-snap-align: start; display: flex; }
.car-item .card { width: 100%; }
.car-progress { height: 3px; border-radius: 2px; background: var(--line-soft); overflow: hidden; }
.car-progress span { display: block; height: 100%; width: 25%; border-radius: 2px; background: linear-gradient(90deg, var(--blue) 0 70%, var(--lime) 70% 100%); transition: transform .35s var(--ease), width .35s var(--ease); transform-origin: left; }
@media (max-width: 1100px) { .car-item { flex-basis: calc((100% - 2 * var(--cgap)) / 3); } }
@media (max-width: 820px) { .car-item { flex-basis: calc((100% - var(--cgap)) / 2); } }
@media (max-width: 560px) {
  .car-item { flex-basis: 78%; }
  .car-head { align-items: flex-start; flex-direction: column; }
  .car-controls { align-self: flex-end; margin-top: -4px; }
  .car-btn { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; }
  .logo-item.dup, .marquee-toggle { display: none; }
  .car-viewport { scroll-behavior: auto; }
}

/* ---- motion polish ---- */
.section-head .rule { transition: transform .9s var(--ease) .25s; transform-origin: left center; }
.section-head.center .rule { transform-origin: center; }
.section-head.rv:not(.in) .rule { transform: scaleX(0); }
.section-head.rv:not(.in) .eyebrow { opacity: 0; transform: translateX(-10px); }
.section-head .eyebrow { transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s; }
.focus.rv .ico { transform: scale(.86); transition: transform .9s var(--ease); }
.focus.rv.in .ico { transform: none; }
.person.rv .pic, .pub.rv .thumb { transform: scale(.9); transition: transform .8s var(--ease) .1s; }
.person.rv.in .pic, .pub.rv.in .thumb { transform: none; }
.mission-box.rv { transform: translateY(26px) scale(.985); }
.mission-box.rv.in { transform: none; }
.edge { animation: edgein 1.1s var(--ease) .2s both; }
@keyframes edgein { from { transform: translateY(38%); opacity: .4; } to { transform: none; opacity: 1; } }
.btn-lime, .btn-blue { position: relative; overflow: hidden; }
.btn-lime::after, .btn-blue::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.4) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.btn-lime:hover::after, .btn-blue:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.logo-item img { transition: transform var(--t-base) var(--ease), filter var(--t-base) var(--ease); }
.logo-item:hover img { transform: scale(1.08); }
.car-item .card { transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease); }
.person:hover, .pub:hover { transform: translateY(-3px); }
.site-header { transition: background-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), padding var(--t-base) var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .btn-lime::after, .btn-blue::after { display: none; }
}

/* hero headline: word-by-word reveal */
.hero h1.split { display: block; animation: none; opacity: 1; }
.hero h1.split em { display: inline; }
.hero h1.split .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1.split .hw > span { display: inline-block; transform: translateY(110%) rotate(3deg); transform-origin: left bottom; opacity: 0; animation: wordin .85s var(--ease) forwards; animation-delay: calc(var(--i) * 85ms + 150ms); }
.hero h1.split em .hw > span { animation-name: wordin, glow; animation-duration: .85s, 1.6s; animation-delay: calc(var(--i) * 85ms + 150ms), calc(var(--i) * 85ms + 900ms); animation-fill-mode: forwards, none; }
@keyframes wordin { to { transform: none; opacity: 1; } }
@keyframes glow { 0%, 100% { text-shadow: 0 0 0 rgba(191,252,112,0); } 45% { text-shadow: 0 0 26px rgba(191,252,112,.55); } }
@media (prefers-reduced-motion: reduce) {
  .hero h1.split .hw > span { transform: none; opacity: 1; }
}

/* expandable bio */
.person .bio.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.more-btn { background: none; border: 0; padding: 0; margin-top: 18px; cursor: pointer; font-family: inherit; }
.more-btn:hover svg { transform: translateX(4px); }
.more-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 4px; border-radius: 4px; }
.bio-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: clamp(24px, 4vw, 40px); border: 0; border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); box-shadow: 0 24px 80px rgba(0,30,80,.35); text-align: left; overflow: auto; }
.bio-dialog[open] { animation: dlgin .35s var(--ease); }
.bio-dialog::backdrop { background: rgba(22,39,74,.62); backdrop-filter: blur(3px); animation: fade .35s var(--ease); }
@keyframes dlgin { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.bio-dialog .pic { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin-bottom: 14px; }
.bio-dialog .pic img { width: 100%; height: 100%; object-fit: cover; }
.bio-dialog h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.9rem; line-height: 1.05; }
.bio-dialog .role { margin: 6px 0 0; font-weight: 700; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--eyebrow); }
.bio-dialog .bio-full { margin: 16px 0 0; line-height: 1.65; color: var(--ink-soft); }
.bio-close { position: absolute; top: 10px; right: 12px; margin: 0; }
.bio-close button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--head); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease); }
.bio-close button:hover { background: var(--btn); color: #fff; border-color: var(--btn); }

/* ---- article + profile pages ---- */
.prose-wrap .prose { max-width: 820px; }
.prose-wrap .prof { max-width: 1000px; }
.page-hero.article h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 22ch; }
.back { margin: 0 0 26px; }
.prose { font-size: 1.06rem; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; margin-top: 1.8em; color: var(--head); }
.prose h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1.15; margin-top: 1.5em; color: var(--head); }
.prose a:not(.btn):not(.g-item) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img, .prose video { display: block; max-width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); line-height: 1.5; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--lime); font-size: 1.12rem; color: var(--head); }
.prose hr { border: 0; height: 3px; width: 72px; background: linear-gradient(90deg, var(--sky) 0 68%, var(--lime) 68% 100%); margin: 2em 0; }
.prose .btn { margin: 4px 8px 4px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--blue-pale); color: var(--navy); }
.prose details { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; background: var(--bg-soft); }
.prose summary { cursor: pointer; font-weight: 700; color: var(--head); }
.prose details[open] summary { margin-bottom: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery .g-item { display: block; overflow: hidden; border-radius: var(--radius-lg); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: none; border-radius: 0; transition: transform .6s var(--ease); }
.gallery .g-item:hover img { transform: scale(1.05); }
.prof { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.prof-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 4px solid var(--lime); background: #fff; }
.socs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.soc-btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--link); transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease), border-color var(--t-base) var(--ease); }
.soc-btn:hover { background: var(--btn); color: #fff; border-color: var(--btn); }
@media (max-width: 760px) { .prof { grid-template-columns: minmax(0, 1fr); } .prof-photo { max-width: 240px; } }
.prose mark { background: var(--blue-pale); color: var(--navy); padding: 2px 10px; border-radius: 4px; }
.prof-role { margin: 0 0 18px; font-weight: 700; font-size: .85rem; letter-spacing: .13em; text-transform: uppercase; color: var(--eyebrow); }
