@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root{
  --bg: #fafafa;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --panelTint: rgba(255,255,255,.7);
  --panelTint2: rgba(255,255,255,.5);
  --shadow: rgba(0,0,0,.06);
  --shadow-lg: rgba(0,0,0,.1);

  --invert-bg: #1a1a1a;
  --invert-fg: #ffffff;

  --card-border: rgba(0,0,0,.08);
  --card-border-strong: rgba(0,0,0,.15);

  --meta-hover: rgba(255,255,255,.9);
  --meta-hover-mono: 'Inter', system-ui, sans-serif;
  --action-hover-border: rgba(255,255,255,.5);
  --action-hover-bg: rgba(255,255,255,.15);

  --hero-filter: grayscale(30%) contrast(105%) brightness(105%);
  --hero-overlay: linear-gradient(135deg, rgba(255,255,255,.85) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,.9) 100%);

  --nav-bg: rgba(250,250,250,.85);

  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,.08);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-soft: linear-gradient(135deg, rgba(102,126,234,.05) 0%, rgba(118,75,162,.05) 100%);
}

body[data-theme="dark"]{
  --bg: #0f0f0f;
  --fg: #f5f5f5;
  --muted: #a0a0a0;
  --line: #2a2a2a;
  --panelTint: rgba(30,30,30,.8);
  --panelTint2: rgba(30,30,30,.5);
  --shadow: rgba(0,0,0,.3);
  --shadow-lg: rgba(0,0,0,.5);

  --invert-bg: #f5f5f5;
  --invert-fg: #0f0f0f;

  --card-border: rgba(255,255,255,.1);
  --card-border-strong: rgba(255,255,255,.2);

  --meta-hover: rgba(0,0,0,.8);
  --action-hover-border: rgba(0,0,0,.5);
  --action-hover-bg: rgba(0,0,0,.2);

  --hero-filter: grayscale(30%) contrast(105%) brightness(60%);
  --hero-overlay: linear-gradient(135deg, rgba(15,15,15,.9) 0%, rgba(15,15,15,.7) 50%, rgba(15,15,15,.95) 100%);

  --nav-bg: rgba(15,15,15,.9);

  --accent: #60a5fa;
  --accent-soft: rgba(96,165,250,.1);
  --gradient-soft: linear-gradient(135deg, rgba(102,126,234,.08) 0%, rgba(118,75,162,.08) 100%);
}

*{ box-sizing:border-box; }
html{ scroll-behavior: smooth; }
html,body{ height:100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  letter-spacing: -0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav{
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--nav-bg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.nav::-webkit-scrollbar { display: none; }

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
  opacity: 0.85;
  flex-shrink: 0;
}
.brand:hover{ opacity: 1; }

.brand__name--short { display: none; }

@media (max-width: 900px) {
  .brand__name--full { display: none; }
  .brand__name--short { display: block; }
}

.nav__links{
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  flex-shrink: 0;
}

.nav__link{
  background: transparent;
  color: var(--fg);
  border: 1px solid transparent;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover{
  background: var(--accent-soft);
  border-color: var(--card-border);
}

.nav__link.is-active{
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}

.page{ display: none; }
.page.is-active{ display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

.hero{
  position: relative;
  height: calc(100vh - 70px);
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--hero-filter);
  transform: scale(1.05);
}

.hero__overlay{
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero__content{
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero__title{
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--fg) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle{
  font-size: 16px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero__actions{ margin-top: 32px; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: var(--invert-bg);
  color: var(--invert-fg);
  padding: 14px 24px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px var(--shadow-lg);
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-lg);
}

.btn:active{ transform: translateY(0); }

.btn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.h1{
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.h2{
  font-size: 14px;
  font-weight: 600;
  margin: 32px 0 12px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.h3{
  font-size: 13px;
  font-weight: 600;
  margin: 24px 0 10px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted{
  color: var(--muted);
  font-size: 13px;
}

.cardGrid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.subsectionTitle{
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.subsectionTitle:first-of-type{
  margin-top: 1rem;
}

.partnersGrid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.partnerCard{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.partnerCard:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.partnerCard__logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
}

.partnerCard__name{
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--fg);
}

.partnerCard__scope{
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.partnerCard__description{
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.partnerCard__link{
  margin-top: auto;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.partnerCard__link:hover{
  text-decoration: underline;
}

.card.is-hidden, .outputBar.is-hidden{ display: none; }

.teamTabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.teamTab{
  padding: 10px 20px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.teamTab:hover{
  border-color: var(--card-border-strong);
  color: var(--fg);
}

.teamTab.is-active{
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.outputsSummary{
  margin-bottom: 24px;
}
.outputsSummary p{
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}
.summaryItem{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.summaryIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
  vertical-align: middle;
}

.teamTabContent{
  margin-top: 16px;
}

.teamPanel{
  display: none;
}

.teamPanel.is-active{
  display: block;
}

.teamDescription{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
}

.teamMembers{
  margin-bottom: 20px;
}
.teamMembers h4{
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.teamMembers--contributors h4{
  font-size: 13px;
}
.teamMembersList{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.teamMemberBadge{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}
.teamMemberBadge--linked{
  cursor: pointer;
  border-color: var(--muted);
  color: var(--fg);
}
.teamMemberBadge--linked:hover{
  background: var(--fg);
  color: var(--bg);
}
.teamMemberBadge__count{
  font-size: 11px;
  opacity: 0.7;
}

.teamOutputsSection{
  margin-top: 24px;
}
.teamOutputsSection h4{
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.outputList{
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.outputBar{
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--card-border);
  transition: background 0.2s ease;
}

.outputBar:first-child{
  border-top: 1px solid var(--card-border);
}

.outputBar:hover{
  background: var(--panelTint);
  margin: 0 -16px;
  padding: 24px 16px;
  border-radius: 12px;
  border-color: transparent;
}

.outputBar:hover + .outputBar{
  border-top-color: transparent;
}

.outputBar__year{
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding-top: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.outputBar__wipBadge{
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.outputBar__type{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
}

.outputBar__content{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outputBar__title{
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.outputBar__desc{
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.outputBar__pi{
  font-size: 13px;
  font-weight: 500;
  margin-top: 4px;
}
.outputBar__meta{
  font-size: 13px;
  color: var(--muted);
  opacity: 0.8;
}

.outputBar__actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.outputBar__actions .actionBtn{
  padding: 6px 12px;
  font-size: 11px;
}

@media (max-width: 700px){
  .outputBar{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .outputBar__year{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .outputBar__actions{
    padding-top: 8px;
  }
}

.projMoreBtn{
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panelTint);
  border: 1px solid var(--card-border);
  padding: 12px 18px;
  border-radius: 14px;
  cursor: pointer;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.projMoreBtn:hover{
  border-color: var(--card-border-strong);
  background: var(--accent-soft);
}

.projMoreBtn__icon{
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.projMoreBtn.is-expanded .projMoreBtn__icon{ transform: rotate(90deg); }

.card{
  text-align: left;
  background: var(--panelTint);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px;
  cursor: default;
  color: var(--fg);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover{
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-lg);
}

.card:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card__title{
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.card__meta{
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.card:hover .card__meta{
  color: var(--meta-hover);
}

.cardActions{
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actionBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.actionBtn:hover{
  transform: translateY(-1px);
  border-color: var(--card-border-strong);
  background: var(--accent-soft);
}

.card:hover .actionBtn{
  border-color: var(--action-hover-border);
  background: var(--action-hover-bg);
}

.actionBtn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.actionBtn--download{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.actionBtn--download:hover{
  opacity: 0.9;
}

.projCat{ margin-top: 20px; }

.themeToggle{
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.themeBtn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panelTint);
  color: var(--fg);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.themeBtn:hover{
  background: var(--accent-soft);
  border-color: var(--card-border-strong);
}

.themeBtn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.themeBtn__icon{
  font-size: 16px;
  line-height: 1;
}

.themeBtn__label{
  font-size: 12px;
  font-weight: 500;
}

.langToggle{
  display: flex;
  gap: 6px;
  align-items: center;
}

.langBtn{
  width: 38px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--panelTint);
  color: var(--fg);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s ease;
}

.langBtn:hover{
  background: var(--accent-soft);
  border-color: var(--card-border-strong);
}

.langBtn.is-active{
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}

.memberCard{ padding: 20px; }

.memberCard__name{
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.memberCard__tagline{
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.memberCard__affiliation{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.memberCard--simple{
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 16px;
  background: var(--panelTint);
  border: 1px solid var(--card-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.memberCard--simple .memberCard__name{
  font-weight: 600;
  letter-spacing: -0.01em;
}

.memberCard--simple:hover{
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-lg);
}

.memberCard--simple:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.memberCard--simple{
  position: relative;
  cursor: pointer;
}

.memberCard__linkedin{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #0077b5;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.memberCard__linkedin:hover{
  transform: scale(1.1);
  opacity: 0.9;
}

.memberDetail{
  padding: 20px 0;
}
.memberDetail__back{
  background: var(--fg);
  color: var(--bg);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}
.memberDetail__back:hover{
  opacity: 0.85;
}
.memberDetail__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.memberDetail__name{
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}
.memberDetail__role{
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.memberDetail__linkedin{
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #0077b5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.memberDetail__linkedin:hover{
  opacity: 0.9;
}
.memberDetail__bio{
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  margin: 16px 0 24px;
  max-width: 700px;
}
.memberDetail__outputsTitle{
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}
.memberDetail__outputs{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.memberOutput{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}
.memberOutput__type{
  width: 24px;
  height: 24px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.memberOutput__year{
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  width: 40px;
}
.memberOutput__title{
  font-size: 14px;
  font-weight: 500;
}
.memberDetail__noOutputs{
  font-size: 14px;
  color: var(--muted);
}

.programWrap{
  max-width: 800px;
}

.programMeta{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 8px;
}

.prose{
  margin-top: 24px;
  border: 1px solid var(--card-border);
  background: var(--panelTint);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.prose p{
  margin: 0 0 18px 0;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.8;
}

.prose p:last-child{ margin-bottom: 0; }
.prose p.muted{ color: var(--muted); }

@media (max-width: 768px){
  .nav{
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .nav__links{ order: 3; width: 100%; justify-content: flex-start; }
  .hero__title{ font-size: 36px; }
  .hero__content{ padding: 32px 16px; }
  .container{ padding: 24px 16px 40px; }
  .cardGrid{ grid-template-columns: 1fr; }
}

.notice{
  margin-top: 20px;
  border: 1px solid var(--card-border);
  background: var(--panelTint);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mapWrap{
  margin-top: 20px;
  position: relative;
}

.mapHost{
  border: 1px solid var(--line);
  background: var(--panelTint);
  border-radius: 20px;
  padding: 16px;
  overflow: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mapHost svg{
  width: 100%;
  max-width: 980px;
  height: auto;
  background: transparent;
}

.mapHost path{
  stroke: var(--line);
  stroke-width: 0.6;
  cursor: pointer;
  transition: stroke-width 0.2s ease;
}

.mapHost path:hover{
  stroke-width: 1.5;
  stroke: var(--accent);
}

.tooltip{
  position: fixed;
  pointer-events: none;
  background: var(--invert-bg);
  color: var(--invert-fg);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  display: none;
  transform: translate(14px, 14px);
  max-width: 280px;
  box-shadow: 0 16px 40px var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.memberCard__top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.memberCard__role{
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.memberCard__bio{
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.memberCard__links{ margin-top: 16px; }

.link{
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.link:hover{ opacity: 0.7; }

.fundingNarrative{
  max-width: 800px;
  margin-top: 12px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text);
}
.fundingNarrative p{
  margin-bottom: 14px;
}
.fundingNarrative a{
  color: var(--accent, #2563eb);
  text-decoration: underline;
}
.fundingNarrative strong{
  font-weight: 600;
}

.fundingWrap{
  max-width: 1000px;
  margin-top: 16px;
}

.fundingLead{
  margin-top: 12px;
  max-width: 800px;
  line-height: 1.7;
  font-size: 15px;
}

.fundingProgress{
  margin-top: 24px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.fundingProgress__header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.fundingProgress__title{
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

.fundingProgress__total{
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.fundingProgress__bar{
  width: 100%;
  height: 24px;
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.fundingProgress__consumed{
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 12px 0 0 12px;
  transition: width 0.5s ease;
}

.fundingProgress__legend{
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.fundingProgress__legendItem{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.fundingProgress__legendDot{
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.fundingProgress__legendDot--consumed{
  background: #22c55e;
}

.fundingProgress__legendDot--remaining{
  background: var(--muted);
  opacity: 0.3;
}

.fundingProgress__legendValue{
  font-weight: 600;
  color: var(--fg);
}

.fundingProgress__legendLabel{
  color: var(--muted);
}

.fundingProgress__perOutput{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--muted);
  opacity: 0.8;
  font-size: 0.9rem;
}

.fundingProgress__perOutputLabel{
  color: var(--muted);
}

.fundingProgress__perOutputValue{
  font-weight: 600;
  color: var(--accent);
}

.fundingProgress__perOutputCount{
  color: var(--muted);
  font-size: 0.85rem;
}

.grantList{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grantRow{
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.6fr;
  gap: 20px;
  border: 1px solid var(--card-border);
  background: var(--panelTint);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.grantRow:hover{
  border-color: var(--card-border-strong);
  box-shadow: 0 8px 24px var(--shadow);
}

.grantTitle{
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.grantOrg{
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.grantLinks{
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.grantLink{
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.grantLink:hover{ opacity: 0.7; }

.grantMeta{
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.grantDates{
  font-weight: 600;
  color: var(--fg);
}

.grantType{
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
}

.grantAmount{
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.grantMoney{
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-align: right;
}

@media (max-width: 860px){
  .grantRow{
    grid-template-columns: 1fr;
  }
  .grantAmount{ justify-content: flex-start; }
  .grantMoney{ text-align: left; }
}

.legend{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.legend__title{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

.legend__row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legend__label{
  font-size: 13px;
  opacity: 0.85;
  white-space: nowrap;
}

.legend__bar{
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  min-width: 180px;
  flex: 1;
}

.pageHeader{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.controls{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.control{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control__label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.control__input{
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--panelTint);
  color: var(--fg);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.control__input:hover{
  border-color: var(--card-border-strong);
}

.control__input:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

::selection{
  background: var(--accent);
  color: white;
}

::-webkit-scrollbar{
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track{
  background: var(--bg);
}

::-webkit-scrollbar-thumb{
  background: var(--line);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover{
  background: var(--muted);
}

.footer{
  border-top: 1px solid var(--line);
  padding: 1rem 2rem;
  background: var(--panelTint);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer__content{
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer__contact{
  color: var(--fg);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 16px;
  border: 1px solid var(--fg);
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.footer__contact:hover{
  background: var(--fg);
  color: var(--bg);
}
.footer__admin{
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer__admin:hover{
  opacity: 1;
  color: var(--accent);
}
