:root {
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --ink: #1d2833;
  --muted: #5b6874;
  --line: #d6dde3;
  --line-strong: #c3ced7;
  --accent: #2f4f63;
  --accent-soft: #eaf0f4;
  --accent-graph: #4b6477;
  --accent-autism: #667654;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 10px 28px rgba(21, 33, 46, 0.05);
  --container: min(1100px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", sans-serif;
  line-height: 1.68;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0.7rem;
  color: #16202a;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.16;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
}

.page-home .page-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 246, 247, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(214, 221, 227, 0.92);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.page-home .nav-row {
  min-height: 54px;
}

.page-home .brand {
  font-size: 1.42rem;
}

.page-home .site-nav a {
  padding: 6px 10px;
  font-size: 0.92rem;
}

.brand {
  font-family: "Source Serif 4", serif;
  font-size: 1.55rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--line);
}

.compact-main {
  padding: 26px 0 22px;
}

.page-home .compact-main {
  display: flex;
  align-items: center;
  padding: 4px 0 0;
}

.compact-hero {
  padding: 8px 0 16px;
}

.page-home .compact-hero {
  width: 100%;
  padding: 0;
}

.landing-grid,
.research-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.page-home .landing-grid {
  grid-template-columns: minmax(0, 1.42fr) minmax(198px, 0.45fr);
  gap: 10px;
  align-items: center;
}

.page-home .hero-copy {
  max-width: 700px;
  padding-right: 4px;
}

.page-home .eyebrow {
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  margin-bottom: 14px;
}

.page-home .hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(1.82rem, 2.75vw, 2.5rem);
  margin-bottom: 8px;
}

.subpage-hero h1 {
  max-width: 16ch;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 14px;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 0;
}

.page-home .lead {
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.56;
}

.eyebrow,
.card-label,
.network-role,
.profile-role {
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 12px;
}

.card-label,
.network-role,
.profile-role {
  margin-bottom: 8px;
}

.fact-cluster,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact-cluster {
  margin: 18px 0 20px;
}

.page-home .fact-cluster {
  margin: 12px 0 14px;
  gap: 8px;
}

.fact-chip,
.tag {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #44515d;
  font-size: 0.83rem;
  font-weight: 600;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.page-home .button-row {
  gap: 8px;
  margin-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-home .button {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.button-primary:hover {
  background: #274455;
  border-color: #274455;
}

.button-secondary {
  background: var(--surface);
}

.button-secondary:hover {
  background: var(--surface-soft);
  border-color: var(--line-strong);
}

.profile-card,
.tabs-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 16px;
}

.page-home .profile-card {
  max-width: 234px;
  justify-self: end;
  padding: 8px;
}

.profile-photo-frame {
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #e5eaef;
}

.page-home .profile-photo-frame {
  max-width: 132px;
  margin: 0 auto 5px;
  border-radius: 14px;
}

.profile-photo-frame img {
  width: 100%;
  height: auto;
}

.page-home .profile-card-copy {
  line-height: 1.42;
}

.profile-org {
  margin-bottom: 4px;
  color: var(--muted);
}

.page-home .profile-role,
.page-home .profile-org,
.page-home .identity-item dd,
.page-home .tag {
  font-size: 0.88rem;
}

.page-home .profile-org {
  margin-bottom: 2px;
  line-height: 1.35;
}

.identity-grid {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.page-home .identity-grid {
  gap: 6px;
  margin-top: 5px;
}

.identity-item {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.page-home .identity-item {
  padding-top: 5px;
}

.identity-item dt {
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

.page-home .identity-item dt {
  margin-bottom: 2px;
  font-size: 0.8rem;
}

.identity-item dd {
  margin: 0;
  color: var(--muted);
}

.page-home .identity-item dd {
  line-height: 1.42;
}

.tag-row {
  margin-top: 14px;
}

.page-home .tag-row {
  margin-top: 10px;
  gap: 6px;
}

.page-home .tag {
  padding: 5px 9px;
}

.page-home .fact-chip,
.page-home .tag {
  padding: 5px 9px;
  font-size: 0.8rem;
}

.compact-board-section {
  padding: 8px 0 10px;
}

.tabs-shell {
  padding: 16px;
}

.tabs-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.tabs-intro h2 {
  max-width: 14ch;
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
  margin-bottom: 0;
}

.compact-note {
  max-width: 31ch;
  margin-bottom: 0;
  color: var(--muted);
  text-align: right;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-button:hover,
.tab-button:focus-visible {
  outline: none;
  border-color: var(--line-strong);
  color: var(--accent);
}

.tab-button.is-active {
  background: var(--accent-soft);
  border-color: #c8d6e0;
  color: var(--accent);
}

.compact-panel-body {
  display: block;
  overscroll-behavior: contain;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card {
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.dashboard-card-wide {
  grid-column: 1 / -1;
}

.dashboard-card h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

.section-copy {
  color: var(--muted);
}

.dashboard-card p:last-child,
.partner-card p:last-child {
  margin-bottom: 0;
}

.key-list {
  margin-bottom: 0;
  padding-left: 18px;
}

.key-list li {
  margin-bottom: 6px;
}

.card-stack {
  display: grid;
  gap: 10px;
}

.card-stack-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.card-stack-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.card-stack-item strong {
  display: block;
  margin-bottom: 2px;
}

.card-stack-item p {
  color: var(--muted);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.partner-card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.partner-card h4 {
  margin-bottom: 6px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.partner-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.inline-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 10px 0 24px;
}

.page-home .site-footer {
  padding: 0 0 6px;
}

.page-home .footer-row {
  gap: 10px;
  padding-top: 6px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-row p {
  margin-bottom: 0;
}

.footer-row p:last-child {
  text-align: right;
}

.tabs-ready .tab-panel {
  display: none;
}

.tabs-ready .tab-panel.is-active {
  display: block;
}

@media (min-width: 961px) {
  .page-home .compact-panel-body {
    max-height: 390px;
    overflow: auto;
    padding-right: 6px;
  }

  .page-research .compact-panel-body {
    max-height: 470px;
    overflow: auto;
    padding-right: 6px;
  }

  .compact-panel-body::-webkit-scrollbar {
    width: 10px;
  }

  .compact-panel-body::-webkit-scrollbar-thumb {
    background: #d5dde4;
    border: 2px solid var(--surface);
    border-radius: 999px;
  }

  .compact-panel-body::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 960px) {
  .landing-grid,
  .research-hero-grid,
  .tabs-intro {
    grid-template-columns: 1fr;
  }

  .page-home .compact-main {
    display: block;
    padding: 20px 0 14px;
  }

  .page-home .compact-hero {
    padding: 0;
  }

  .dashboard-grid,
  .partner-grid,
  .footer-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy h1,
  .subpage-hero h1,
  .tabs-intro h2 {
    max-width: none;
  }

  .compact-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .nav-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .site-nav a,
  .button,
  .tab-button {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
  }

  .dashboard-grid,
  .partner-grid,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .page-home .profile-card {
    max-width: none;
    justify-self: stretch;
  }

  .page-home .profile-photo-frame {
    max-width: 260px;
  }

  .tabs-shell {
    padding: 14px;
    border-radius: 18px;
  }

  .tab-list {
    flex-direction: column;
  }

  .footer-row p:last-child {
    text-align: left;
  }
}
