:root {
  --ink: #14213d;
  --ink-soft: #33415c;
  --teal: #1b998b;
  --teal-dark: #13756b;
  --green: #7aae7a;
  --gold: #d8a657;
  --paper: #fbfaf6;
  --mist: #eef7f4;
  --line: #dce7e3;
  --white: #ffffff;
  --danger: #9f3a38;
  --shadow: 0 20px 50px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.brand:hover,
.brand:focus {
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(190px, 20vw, 260px);
  height: auto;
}

.brand-mark-image {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-wordmark {
  display: grid;
  gap: 1px;
  color: #00466c;
  font-size: 1rem;
  line-height: 1.02;
}

.brand-wordmark span:first-child {
  color: #008c92;
}

.brand-wordmark span:last-child {
  color: #563198;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.menu-toggle:hover,
.menu-toggle:focus {
  border-color: var(--teal);
}

.menu-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.menu-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.primary-nav form {
  margin: 0;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: 78vh;
  align-items: center;
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(238, 247, 244, 0.92), rgba(251, 250, 246, 0.85)),
    linear-gradient(145deg, #14213d, #1b998b 52%, #d8a657);
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.08;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5.5vw, 4.8rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}

h3 {
  font-size: 1.15rem;
}

.tagline {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 800;
}

.hero p,
.page-hero p,
.page-band p {
  font-size: 1.04rem;
}

.actions,
.inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.actions.compact {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(27, 153, 139, 0.24);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: none;
}

.button.small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.9rem;
}

.hero-panel,
.auth-card,
.metric-card,
.program-tile,
.opportunity-card,
.consent-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual > picture,
.visual-copy picture,
.image-band picture,
.visual-hero picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-visual img,
.visual-copy img,
.image-band img,
.visual-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual > picture {
  position: absolute;
  inset: 0;
}

.hero-visual .hero-panel {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.hero-visual .metric-card {
  min-width: 0;
  padding: 14px;
}

.hero-visual .metric-card strong {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  overflow-wrap: anywhere;
}

.page-hero {
  padding: clamp(52px, 8vw, 88px) clamp(20px, 5vw, 72px) 42px;
  background: linear-gradient(120deg, var(--mist), var(--paper));
}

.visual-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.visual-hero picture {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}

.page-hero p {
  max-width: 820px;
}

.page-band {
  padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 72px);
}

.page-band.compact-opportunities {
  padding-top: clamp(18px, 3vw, 34px);
}

.page-band.muted {
  background: var(--mist);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.prose {
  max-width: 900px;
}

.visual-copy {
  display: grid;
  gap: 18px;
}

.visual-copy picture {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-copy p {
  margin: 0;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
}

.image-band picture {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.metric-card,
.program-tile,
.opportunity-card,
.consent-card,
.value-card {
  padding: 20px;
  box-shadow: none;
}

.program-tile h2,
.opportunity-card h2 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.opportunity-card p {
  margin: 12px 0;
}

.opportunity-card > span {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.85rem;
  line-height: 1.1;
}

.metric-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.status {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--mist);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status.open {
  color: #0d5d54;
  background: #dff3ef;
}

.status.planning {
  color: #795800;
  background: #fff2cc;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.steps div {
  min-height: 86px;
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: var(--white);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 16px;
  max-width: 900px;
}

.timeline div {
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  background: var(--white);
}

.value-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.value-card h3 {
  color: var(--teal-dark);
}

.relationship-list,
.check-list,
.guardrail-list {
  display: grid;
  gap: 12px;
}

.relationship-list article,
.check-list p,
.guardrail-list p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.relationship-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.relationship-list p {
  margin: 0;
}

.check-list p {
  border-left: 4px solid var(--teal);
}

.guardrail-list p {
  border-left: 4px solid var(--gold);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq summary {
  padding: 18px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.auth-wrap {
  display: grid;
  min-height: 72vh;
  place-items: center;
  padding: 42px 20px;
  background: linear-gradient(120deg, var(--mist), var(--paper));
}

.auth-card {
  width: min(100%, 460px);
  padding: 28px;
}

.auth-card h1 {
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.12;
}

label {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bccdc8;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bccdc8;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
}

.form-note {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.side-nav {
  align-content: start;
  justify-content: stretch;
  gap: 4px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.side-nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--ink);
}

.side-nav a:hover,
.side-nav a:focus {
  background: var(--mist);
  text-decoration: none;
}

.dashboard-content {
  padding: clamp(26px, 5vw, 54px);
}

.warm-callout,
.panel-note {
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: var(--white);
}

.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.admin-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.participant-list {
  display: grid;
  gap: 16px;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.target-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.target-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.target-card strong {
  display: block;
  margin-top: 4px;
  font-size: 2rem;
  line-height: 1.1;
}

.target-card p {
  margin: 0;
}

.participant-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.participant-row h2 {
  font-size: 1.35rem;
}

.participant-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
}

.participant-metrics .metric-card {
  padding: 14px;
  background: var(--paper);
}

.participant-metrics .metric-card strong {
  font-size: 1.3rem;
}

.bar-track {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe8e4;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green), var(--gold));
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.fine-print {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-logo {
  display: block;
  width: min(100%, 190px);
  height: auto;
  border-radius: 8px;
  background: var(--white);
}

.site-footer .fine-print {
  color: #d7e1df;
}

@media (max-width: 920px) {
  .hero,
  .visual-hero,
  .image-band,
  .split,
  .section-heading,
  .participant-row,
  .dashboard-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 14px;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-end;
    gap: 12px 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-visual .hero-panel {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .section-heading {
    align-items: start;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-nav a {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
    white-space: normal;
  }

  .brand-mark-image {
    width: 52px;
    height: 52px;
  }

  .brand-wordmark {
    font-size: 0.95rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 14px 30px rgba(20, 33, 61, 0.1);
  }

  .site-header.nav-open .primary-nav {
    display: grid;
  }

  .primary-nav a,
  .primary-nav .link-button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--ink);
    text-align: left;
  }

  .primary-nav a:hover,
  .primary-nav a:focus,
  .primary-nav .link-button:hover,
  .primary-nav .link-button:focus {
    background: var(--mist);
    text-decoration: none;
  }

  .primary-nav .button.small {
    justify-content: flex-start;
    min-height: 44px;
    color: var(--white);
  }

  .hero,
  .page-hero,
  .page-band,
  .dashboard-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-visual {
    display: grid;
    min-height: 0;
    background: var(--white);
  }

  .hero-visual > img,
  .hero-visual > picture {
    position: static;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .hero-visual .hero-panel {
    position: static;
    grid-template-columns: 1fr;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
  }

  h1 {
    font-size: 2.15rem;
  }

  .actions,
  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions .button,
  .inline-actions .button {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .participant-metrics {
    grid-template-columns: 1fr;
  }
}
