/* =============================================================================
   AIware Lab — stylesheet
   Palette is derived from the Lero brand: navy #001e62, blue #0067b9,
   magenta #ce0058.
   ========================================================================== */

/* ---------- tokens ------------------------------------------------------- */

:root {
  --navy:        #001e62;
  --navy-deep:   #001238;
  --blue:        #0067b9;
  --blue-bright: #2f8de0;
  --magenta:     #ce0058;
  --violet:      #6b2f8f;

  --ink:         #101725;
  --ink-soft:    #3d4657;
  --muted:       #6a7488;
  --faint:       #9aa3b5;

  --bg:          #ffffff;
  --bg-tint:     #f5f7fb;
  --bg-deep:     #f0f3f9;
  --border:      #e3e8f1;
  --border-soft: #eef1f7;

  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   22px;

  --shadow-sm:   0 1px 2px rgba(16, 23, 37, .05), 0 2px 8px rgba(16, 23, 37, .04);
  --shadow-md:   0 2px 6px rgba(16, 23, 37, .06), 0 12px 32px rgba(16, 23, 37, .07);
  --shadow-lg:   0 4px 12px rgba(0, 30, 98, .08), 0 24px 60px rgba(0, 30, 98, .12);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Source Serif 4", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --wrap-narrow: 780px;
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:         #e9edf6;
    --ink-soft:    #c2cade;
    --muted:       #97a1b8;
    --faint:       #6f7a91;
    --bg:          #0c111c;
    --bg-tint:     #121927;
    --bg-deep:     #161e30;
    --border:      #26304a;
    --border-soft: #1c2437;
    --blue:        #6cb2f0;
    --blue-bright: #8ec7ff;
    --magenta:     #ff5f93;
    --shadow-sm:   0 1px 2px rgba(0,0,0,.4);
    --shadow-md:   0 2px 6px rgba(0,0,0,.35), 0 12px 32px rgba(0,0,0,.3);
    --shadow-lg:   0 4px 12px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.45);
  }
}

/* ---------- reset -------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 660; letter-spacing: -.021em; overflow-wrap: break-word; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ----------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: 84px; }
.section--tint { background: var(--bg-tint); }
.section--tight { padding-block: 60px; }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--magenta); margin: 0 0 14px;
}

.section-title { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 16px; }
.section-lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 0 0 44px; }

.rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ---------- skip link ---------------------------------------------------- */

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip:focus { left: 12px; }

/* ---------- header ------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: 0 1px 14px rgba(16,23,37,.05); }

.site-header .wrap { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
/* on very narrow screens the affiliation line is the first thing to go */
@media (max-width: 400px) { .site-header .brand-sub { display: none; } }
.brand-name { font-size: 17.5px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.brand-sub { font-size: 11px; font-weight: 560; color: var(--muted); letter-spacing: .045em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 8px 13px; border-radius: 8px;
  font-size: 15px; font-weight: 540; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg-deep); color: var(--ink); text-decoration: none; }
.nav a.is-active { color: var(--navy); background: color-mix(in srgb, var(--blue) 11%, transparent); font-weight: 620; }
@media (prefers-color-scheme: dark) { .nav a.is-active { color: var(--blue-bright); } }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--border); border-radius: 9px;
  width: 40px; height: 38px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 14px; font-size: 16px; }
}

/* ---------- hero --------------------------------------------------------- */

.hero { position: relative; overflow: hidden; background: var(--navy-deep); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .52; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(0,18,56,.93) 0%, rgba(0,30,98,.8) 42%, rgba(0,30,98,.38) 78%, rgba(0,30,98,.26) 100%),
    radial-gradient(1000px 460px at 82% 108%, rgba(206,0,88,.34), transparent 70%);
}
.hero-inner { position: relative; padding-block: clamp(88px, 13vw, 148px); color: #fff; }
/* Brand lockup: mark + name + affiliation, sized to be the first thing read.
   The rule beneath separates it from the headline so the two large blocks do
   not read as one paragraph. */
.hero-brand {
  display: flex; align-items: center; gap: clamp(14px, 1.8vw, 20px);
  margin-bottom: clamp(26px, 3.4vw, 38px);
  padding-bottom: clamp(22px, 2.8vw, 30px);
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.hero-mark {
  width: clamp(46px, 6.4vw, 66px); height: clamp(46px, 6.4vw, 66px);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.28));
}
.hero-brand-text { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hero-brand-name {
  font-size: clamp(30px, 5vw, 52px); font-weight: 720; letter-spacing: -.028em;
  line-height: 1.02; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.3);
}
.hero-brand-sub {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(11px, 1.15vw, 12.5px); font-weight: 650;
  letter-spacing: .13em; text-transform: uppercase; color: #9fc6f4;
}
.hero-brand-sub::before {
  content: ""; width: 22px; height: 2px; background: var(--magenta);
  border-radius: 2px; flex-shrink: 0;
}
@media (max-width: 520px) {
  .hero-brand { gap: 13px; }
  .hero-brand-sub { letter-spacing: .1em; }
}

/* Slightly smaller than before: the lockup above now shares the top of the
   hero, and two competing display sizes flatten the hierarchy. */
.hero h1 {
  font-size: clamp(27px, 5.2vw, 58px); font-weight: 700; letter-spacing: -.032em;
  max-width: 17ch; margin: 0 0 22px; color: #fff;
  overflow-wrap: break-word;
}
.hero .hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: #9fc6f4; margin-bottom: 24px;
}
.hero .hero-kicker::before { content: ""; width: 26px; height: 2px; background: var(--magenta); border-radius: 2px; }
.hero p.hero-lead {
  font-size: clamp(17px, 2vw, 20.5px); line-height: 1.6; max-width: 60ch;
  color: rgba(255,255,255,.86); margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.005em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #eef4fd; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.btn-ghost { border-color: rgba(255,255,255,.42); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--blue); box-shadow: var(--shadow-md); }
@media (prefers-color-scheme: dark) {
  .btn-solid { background: var(--blue); color: #04101f; }
}

/* ---------- statement / about -------------------------------------------- */

.statement {
  font-family: var(--serif); font-size: clamp(22px, 2.9vw, 31px); line-height: 1.42;
  letter-spacing: -.012em; color: var(--ink); max-width: 26ch;
}
.statement em { color: var(--magenta); font-style: italic; }

.two-col { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(36px, 6vw, 78px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 32px; } .statement { max-width: none; } }

.prose p { color: var(--ink-soft); font-size: 17.5px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 620; }

/* ---------- research cards ----------------------------------------------- */

/* min() keeps auto-fit tracks from overflowing a container narrower than the floor */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 22px; }
/* research strands read better two-up: more room for the body copy */
@media (min-width: 900px) { .card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rcard {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 28px 26px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--violet) 45%, var(--magenta));
  opacity: 0; transition: opacity .2s;
}
.rcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.rcard:hover::before { opacity: 1; }
.rcard-num {
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--faint);
  letter-spacing: .08em; display: block; margin-bottom: 14px;
}
.rcard h3 { font-size: 21px; margin: 0 0 10px; letter-spacing: -.022em; }
.rcard-lead { font-size: 16px; color: var(--ink-soft); font-weight: 540; margin: 0 0 12px; }
.rcard-body { font-size: 15.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.6; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.tag {
  font-size: 12.5px; font-weight: 560; padding: 4px 11px; border-radius: 999px;
  background: var(--bg-deep); color: var(--muted); border: 1px solid var(--border-soft);
}

/* ---------- stats -------------------------------------------------------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 2px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 28px 26px; }
.stat-num { font-size: 34px; font-weight: 700; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
@media (prefers-color-scheme: dark) { .stat-num { color: var(--blue-bright); } }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- news --------------------------------------------------------- */

.news { list-style: none; }
.news li {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--border-soft);
}
.news li:first-child { border-top: 0; }
.news time { font-family: var(--mono); font-size: 13px; color: var(--faint); padding-top: 3px; letter-spacing: .02em; }
.news p { margin: 0; font-size: 16.5px; color: var(--ink-soft); }
@media (max-width: 620px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- people ------------------------------------------------------- */

.people-section + .people-section { margin-top: 62px; }
.people-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 26px; }
.people-heading h2 { font-size: 24px; letter-spacing: -.024em; }
.people-heading .count { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.people-heading::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(238px, 100%), 1fr)); gap: 22px; }

.pcard {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px 22px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pcard .avatar { margin: 0 auto 16px; }
.pcard h3 { font-size: 18.5px; margin: 0 0 4px; letter-spacing: -.02em; }
.pcard .prole { font-size: 14px; color: var(--magenta); font-weight: 600; margin: 0 0 10px; }
.pcard .pbio { font-size: 14.5px; color: var(--muted); line-height: 1.58; margin: 0 0 14px; text-align: left; }
.pcard .tags { justify-content: center; margin-bottom: 14px; }
.pcard .tag { font-size: 11.5px; padding: 3px 9px; }

.avatar {
  width: 118px; height: 118px; border-radius: 50%; overflow: hidden;
  background: var(--bg-deep); position: relative; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-mono {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 660; color: #fff; letter-spacing: -.02em;
  user-select: none;
}

.plinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.plink {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 560; padding: 4px 10px; border-radius: 7px;
  color: var(--muted); border: 1px solid var(--border); background: var(--bg);
  transition: color .15s, border-color .15s, background .15s;
}
.plink:hover { color: var(--blue); border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, transparent); text-decoration: none; }

/* PI card — wide, horizontal */
.pi-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.pi-card .avatar { width: 200px; height: 200px; border-radius: var(--radius); }
.pi-card h3 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.028em; }
.pi-card .prole { font-size: 16px; color: var(--magenta); font-weight: 600; margin: 0 0 3px; }
.pi-card .paffil { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.pi-card .phonours {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  color: var(--navy); background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
@media (prefers-color-scheme: dark) { .pi-card .phonours { color: var(--blue-bright); } }
.pi-card .pbio { font-size: 16.5px; color: var(--ink-soft); line-height: 1.62; margin: 0 0 18px; }
.pi-card .plinks { justify-content: flex-start; }
.pi-card .plink { font-size: 13.5px; padding: 6px 13px; }
@media (max-width: 760px) {
  .pi-card { grid-template-columns: 1fr; gap: 26px; padding: 28px 24px; text-align: center; }
  .pi-card .avatar { margin-inline: auto; }
  .pi-card .plinks { justify-content: center; }
  .pi-card .pbio { text-align: left; }
  .pi-card .tags { justify-content: flex-start; text-align: left; }
  .pi-card .award-list li { text-align: left; }
}

.award-list { list-style: none; display: grid; gap: 6px; margin: 0 0 18px; }
.award-list li { font-size: 14.5px; color: var(--muted); padding-left: 20px; position: relative; }
.award-list li::before { content: "✦"; position: absolute; left: 0; color: var(--magenta); font-size: 12px; top: 1px; }

/* ---------- publications ------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filter-label { font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.chip {
  font-size: 13.5px; font-weight: 560; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); color: var(--ink-soft);
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-count {
  display: inline-block; margin-left: 5px; padding: 0 6px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: var(--bg-deep); color: var(--faint);
}
.chip[aria-pressed="true"] .chip-count { background: rgba(255,255,255,.22); color: #fff; }
@media (prefers-color-scheme: dark) { .chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #04101f; } }

.result-count { font-size: 14px; color: var(--faint); margin: 0 0 30px; font-family: var(--mono); }

.year-block + .year-block { margin-top: 44px; }
.year-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.year-head h2 {
  font-family: var(--mono); font-size: 15px; font-weight: 640; letter-spacing: .06em;
  color: var(--navy); padding: 4px 12px; border-radius: 7px;
  background: color-mix(in srgb, var(--blue) 11%, transparent);
}
@media (prefers-color-scheme: dark) { .year-head h2 { color: var(--blue-bright); } }
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.publist { list-style: none; }
.pub {
  padding: 20px 0; border-bottom: 1px solid var(--border-soft);
  display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: start;
}
.pub:last-child { border-bottom: 0; }
.pub-main { min-width: 0; }
.pub-title { font-size: 17.5px; font-weight: 620; letter-spacing: -.017em; color: var(--ink); margin: 0 0 6px; line-height: 1.35; }
.pub-authors { font-size: 14.5px; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
.pub-authors .me { color: var(--ink); font-weight: 640; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.venue {
  font-size: 12.5px; font-weight: 650; letter-spacing: .02em; padding: 3px 10px; border-radius: 6px;
  background: var(--bg-deep); color: var(--ink-soft); border: 1px solid var(--border-soft); white-space: nowrap;
}
.venue--journal { background: color-mix(in srgb, var(--violet) 13%, transparent); color: var(--violet); border-color: transparent; }
.venue--conference { background: color-mix(in srgb, var(--blue) 13%, transparent); color: var(--navy); border-color: transparent; }
@media (prefers-color-scheme: dark) {
  .venue--journal { color: #c79ce8; }
  .venue--conference { color: var(--blue-bright); }
}
.badge-award {
  font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--magenta) 13%, transparent); color: var(--magenta);
}

.pub-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding-top: 2px; }
.pub-links a {
  font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 7px;
  border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
  transition: all .15s;
}
.pub-links a:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
@media (max-width: 700px) {
  .pub { grid-template-columns: 1fr; }
  .pub-links { justify-content: flex-start; }
}

.empty-state { padding: 48px 0; text-align: center; color: var(--muted); font-size: 16px; }

/* ---------- partners ----------------------------------------------------- */

.plist { list-style: none; display: grid; gap: 2px; background: var(--border); border-radius: var(--radius); overflow: hidden; }
.plist li { background: var(--bg); padding: 22px 26px; display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 24px; align-items: baseline; }
.plist .pname { font-size: 16.5px; font-weight: 640; color: var(--ink); letter-spacing: -.015em; }
.plist .pnote { font-size: 15px; color: var(--muted); }
.plist .pevidence { display: block; font-size: 12.5px; color: var(--faint); font-style: italic; margin-top: 4px; }
@media (max-width: 700px) { .plist li { grid-template-columns: 1fr; gap: 6px; } }

.callout {
  border-left: 3px solid var(--magenta); background: var(--bg-tint);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 32px;
}
.callout p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.callout p + p { margin-top: 10px; }

/* ---------- join --------------------------------------------------------- */

.opening {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; margin-bottom: 16px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.opening:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); box-shadow: var(--shadow-sm); }
.opening-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.opening h3 { font-size: 20px; letter-spacing: -.022em; }
.opening-status { font-size: 12.5px; font-weight: 650; letter-spacing: .04em; color: #0d7a4a; background: rgba(13,122,74,.1); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .opening-status { color: #5fd39d; background: rgba(95,211,157,.13); } }
.opening p { margin: 0; font-size: 16px; color: var(--muted); }

/* the "nothing advertised" state: a statement, not a vacancy — so no hover lift
   and room to breathe between the two paragraphs */
.opening--none { background: transparent; }
.opening--none:hover { border-color: var(--border); box-shadow: none; }
.opening--none h3 { margin-bottom: 10px; }
.opening--none p + p { margin-top: 12px; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 650;
}
@media (prefers-color-scheme: dark) { .steps li::before { background: var(--blue); color: #04101f; } }
.steps h3 { font-size: 17.5px; margin: 0 0 4px; letter-spacing: -.018em; }
.steps p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- page hero (inner pages) -------------------------------------- */

.page-hero { padding-block: 66px 44px; border-bottom: 1px solid var(--border); background: var(--bg-tint); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin: 0 0 14px; letter-spacing: -.032em; }
.page-hero p { font-size: 18.5px; color: var(--muted); max-width: 62ch; margin: 0; }

/* ---------- footer ------------------------------------------------------- */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding-block: 56px 32px; margin-top: 0; }
.site-footer a { color: rgba(255,255,255,.9); }
.site-footer a:hover { color: #fff; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.footer-brand .brand-name { color: #fff; font-size: 19px; }
.footer-brand .brand-sub { color: rgba(255,255,255,.55); }
.footer-brand p { font-size: 14.5px; margin: 16px 0 0; max-width: 42ch; color: rgba(255,255,255,.62); }
.footer-lero {
  display: inline-block; margin-top: 22px; padding: 10px 16px;
  background: #fff; border-radius: 10px; line-height: 0;
}
.footer-lero img { width: 168px; height: auto; }

.footer-col h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 0 0 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col li { font-size: 14.5px; }

.funders-strip { padding: 22px 26px; background: rgba(255,255,255,.96); border-radius: var(--radius); margin-bottom: 28px; }
.funders-strip img { width: 100%; max-width: 760px; margin-inline: auto; height: auto; }
.funders-caption { font-size: 12px; color: rgba(255,255,255,.5); text-align: center; margin: 12px 0 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }
.credits { font-size: 12.5px; line-height: 1.6; }

@media print {
  .site-header, .hero-actions, .filters, .nav-toggle { display: none !important; }
  body { font-size: 11pt; }
}

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