:root {
  --bg: #0a0b0e;
  --bg-soft: #11131a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0f4;
  --text-soft: #9099a8;
  --gold: #d9b25a;
  --gold-soft: rgba(217, 178, 90, 0.14);
  --font: -apple-system, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse 900px 500px at 20% -10%, rgba(217, 178, 90, 0.08), transparent),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(90, 130, 217, 0.06), transparent);
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #8a6a20);
  color: #100c02;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}
.brand-sub {
  font-size: 12.5px;
  color: var(--text-soft);
}

/* hero */
.hero {
  padding: 72px 0 32px;
  max-width: 720px;
}
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.hero-title {
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff, #b9bcc4 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 17.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0 0 36px;
}
.stat-row {
  display: flex;
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.stat-label {
  font-size: 12.5px;
  color: var(--text-soft);
  letter-spacing: 0.03em;
}

/* filter tabs */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 44px 0 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.filter-pill {
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.filter-pill.is-active {
  color: #100c02;
  background: var(--gold);
  border-color: var(--gold);
}

/* sections */
.legend-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}
.legend-section.is-hidden { display: none; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 0;
}
.section-range {
  font-size: 13px;
  color: var(--text-soft);
}

/* cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: linear-gradient(160deg, hsla(var(--hue), 70%, 55%, 0.10), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: hsla(var(--hue), 70%, 60%, 0.5);
  box-shadow: 0 16px 32px -18px hsla(var(--hue), 70%, 50%, 0.55);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: hsla(var(--hue), 70%, 60%, 0.18);
  color: hsl(var(--hue), 70%, 72%);
  border: 1px solid hsla(var(--hue), 70%, 60%, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.card-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}
.card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}
.card-org, .card-years {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-soft);
}
.card-title {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--text);
  opacity: 0.85;
}

/* profile page */
.profile { padding-top: 56px; }
.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.back-link:hover { color: var(--gold); }

.profile-hero {
  display: flex;
  gap: 26px;
  align-items: center;
  padding-bottom: 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.profile-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  background: linear-gradient(160deg, hsla(var(--hue), 70%, 60%, 0.28), hsla(var(--hue), 70%, 40%, 0.08));
  border: 1px solid hsla(var(--hue), 70%, 60%, 0.4);
  color: hsl(var(--hue), 75%, 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 30px;
}
.profile-meta .card-num {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profile-meta h1 {
  margin: 6px 0 8px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.profile-org {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-soft);
}
.profile-title {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--gold);
  font-weight: 600;
}

.profile-bio {
  font-size: 18px;
  line-height: 1.7;
  color: #d6d9de;
  max-width: 700px;
  margin-bottom: 40px;
}

.facts-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.facts-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 56px;
}
.fact-card {
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid hsl(var(--hue), 70%, 55%);
  border-radius: 10px;
  font-size: 15.5px;
  line-height: 1.55;
  color: #dfe2e7;
}

.prev-next {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  gap: 16px;
}
.prev-next a {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.prev-next a span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.prev-next a:hover { color: var(--gold); }
.prev-next .next { text-align: right; align-items: flex-end; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 28px;
  font-size: 12.5px;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .hero-title { font-size: 38px; }
  .stat-row { gap: 24px; }
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .prev-next .next { text-align: left; align-items: flex-start; }
}
