:root {
  --ink: #111413;
  --muted: #66706d;
  --paper: #f4f3ee;
  --surface: #ffffff;
  --soft: #f9faf7;
  --line: #dce1de;
  --coal: #090d0d;
  --graphite: #1b2222;
  --evergreen: #214b3e;
  --steel: #60777c;
  --gold: #c7a45a;
  --wine: #7c3943;
  --shadow: 0 26px 70px rgba(17, 20, 19, 0.16);
  --narrow: min(1180px, calc(100% - 40px));
  --wide: min(1320px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: 5.8rem;
  line-height: 0.95;
}

h2 {
  font-size: 3.35rem;
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

h4 {
  margin: 0;
  font-size: 1.02rem;
}

p {
  margin: 0;
}

.site-header {
  min-height: 100vh;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.97) 0%, rgba(9, 13, 13, 0.86) 45%, rgba(9, 13, 13, 0.28) 100%),
    url("assets/institutional-finance-hero.png") center/cover;
}

.nav {
  width: var(--wide);
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--coal);
  background: linear-gradient(135deg, #ead08c, var(--gold));
  font-weight: 950;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 0.96rem;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 750;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 850;
}

.nav-links a {
  padding: 12px 0;
}

.nav-links a:hover {
  color: var(--surface);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--surface);
}

.hero {
  width: var(--wide);
  min-height: calc(100vh - 86px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  gap: 58px;
  padding: 58px 0 100px;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.mandate-band .eyebrow,
.evidence-panel .eyebrow,
.governance-section .eyebrow {
  color: var(--gold);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--coal);
  background: var(--gold);
}

.button.secondary {
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.hero-command {
  align-self: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(9, 13, 13, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-command strong {
  display: block;
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.12;
}

.hero-command ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-command li {
  position: relative;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.hero-command li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.metrics {
  width: var(--wide);
  margin: -52px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metrics div {
  min-height: 136px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--evergreen);
  font-size: 2.15rem;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.38;
}

.section {
  width: var(--wide);
  margin: 0 auto;
  padding: 108px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.wide {
  max-width: 1000px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 62px;
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.intro-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.78;
}

.source-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.source-ledger article,
.mandate-grid article,
.process-grid article,
.contact-form,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 20, 19, 0.08);
}

.source-ledger article {
  min-height: 296px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
}

.source-ledger article > span,
.mandate-grid article > span {
  color: var(--wine);
  font-size: 0.77rem;
  font-weight: 950;
  text-transform: uppercase;
}

.source-ledger p,
.mandate-grid p,
.process-grid p,
.tab-panel p,
.faq-item p,
.contact-section p,
.governance-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.source-ledger strong {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--evergreen);
  font-size: 0.92rem;
  line-height: 1.55;
}

.evidence-panel {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  margin-top: 18px;
  padding: 40px;
  border-radius: 8px;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.98), rgba(27, 34, 34, 0.94)),
    linear-gradient(135deg, var(--coal), var(--evergreen));
  box-shadow: var(--shadow);
}

.evidence-panel h2,
.governance-section h2,
.mandate-band h2 {
  color: var(--surface);
}

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

.evidence-grid article {
  min-height: 156px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.evidence-grid strong {
  display: block;
  color: var(--surface);
}

.evidence-grid span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.62;
}

.mandate-band {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 42px;
  align-items: start;
  padding: 44px;
  border-radius: 8px;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.98), rgba(33, 75, 62, 0.9)),
    linear-gradient(135deg, var(--coal), var(--evergreen));
  box-shadow: var(--shadow);
}

.mandate-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.78;
}

.mandate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.mandate-grid article {
  min-height: 240px;
  padding: 26px;
}

.mandate-grid h3 {
  margin: 16px 0 12px;
}

.institutional-section {
  padding-top: 96px;
}

.institutional-banner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
  margin-bottom: 18px;
  padding: 42px;
  border-radius: 8px;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.98), rgba(96, 119, 124, 0.76)),
    linear-gradient(135deg, var(--coal), var(--steel));
  box-shadow: var(--shadow);
}

.institutional-banner .eyebrow {
  color: var(--gold);
}

.institutional-banner h2 {
  color: var(--surface);
}

.institutional-banner p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.78;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.framework-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 20, 19, 0.08);
}

.framework-card.europe {
  border-color: rgba(199, 164, 90, 0.58);
  background:
    linear-gradient(180deg, rgba(199, 164, 90, 0.12), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.framework-card span {
  color: var(--wine);
  font-size: 0.77rem;
  font-weight: 950;
  text-transform: uppercase;
}

.framework-card p,
.framework-card li {
  color: var(--muted);
  line-height: 1.66;
}

.framework-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.framework-card a {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--evergreen);
  font-weight: 950;
}

.country-readiness {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 30px;
  align-items: start;
  margin-top: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 20, 19, 0.08);
}

.country-readiness h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.country-readiness p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.78;
}

.program-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 20, 19, 0.08);
}

.program-row {
  display: grid;
  grid-template-columns: 0.9fr 1.08fr 1.15fr 1.2fr;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.program-row:last-child {
  border-bottom: 0;
}

.program-row span,
.program-row strong {
  line-height: 1.55;
}

.program-row span {
  color: var(--muted);
}

.program-row span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.program-head {
  color: var(--surface);
  background: var(--graphite);
}

.program-head strong {
  color: var(--surface);
}

.funded-section {
  padding-top: 96px;
}

.funded-header {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 28px;
  padding: 42px;
  border-radius: 8px;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.97), rgba(27, 34, 34, 0.94)),
    linear-gradient(135deg, var(--coal), var(--graphite));
  box-shadow: var(--shadow);
}

.funded-header .eyebrow {
  color: var(--gold);
}

.funded-header h2 {
  color: var(--surface);
}

.funded-header p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.78;
}

.funded-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.funded-card {
  min-height: 282px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 20, 19, 0.08);
}

.funded-card.major {
  grid-column: span 2;
  min-height: 360px;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.96), rgba(33, 75, 62, 0.9)),
    linear-gradient(135deg, var(--coal), var(--evergreen));
}

.funded-card > span,
.funded-card.major span {
  color: var(--wine);
  font-size: 0.77rem;
  font-weight: 950;
  text-transform: uppercase;
}

.funded-card.major span,
.funded-card.major h3 {
  color: var(--surface);
}

.funded-card p {
  color: var(--muted);
  line-height: 1.72;
}

.funded-card.major p,
.funded-card.major dd {
  color: rgba(255, 255, 255, 0.78);
}

.funded-card strong {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--evergreen);
  font-size: 0.91rem;
  line-height: 1.55;
}

.funded-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: auto 0 0;
}

.funded-card dl div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.funded-card dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.funded-card dd {
  margin: 8px 0 0;
  line-height: 1.55;
}

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

.project-detail-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 20, 19, 0.08);
}

.project-detail-card.highlight {
  grid-column: span 2;
  min-height: 410px;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.97), rgba(33, 75, 62, 0.9)),
    linear-gradient(135deg, var(--coal), var(--evergreen));
  box-shadow: var(--shadow);
}

.project-title {
  display: grid;
  gap: 10px;
}

.project-title span {
  color: var(--wine);
  font-size: 0.77rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-detail-card.highlight .project-title span {
  color: var(--gold);
}

.project-detail-card.highlight h3 {
  color: var(--surface);
}

.project-detail-card p {
  color: var(--muted);
  line-height: 1.72;
}

.project-detail-card.highlight p {
  color: rgba(255, 255, 255, 0.78);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: auto;
}

.project-facts.compact {
  grid-template-columns: 1fr;
}

.project-facts div {
  min-height: 120px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.project-detail-card.highlight .project-facts div {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.project-facts strong {
  display: block;
  color: var(--evergreen);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.project-detail-card.highlight .project-facts strong {
  color: var(--gold);
}

.project-facts span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.52;
}

.project-detail-card.highlight .project-facts span {
  color: rgba(255, 255, 255, 0.76);
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tab {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: var(--surface);
  background: var(--evergreen);
}

.tab-panels {
  min-height: 420px;
}

.tab-panel {
  display: none;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(17, 20, 19, 0.08);
}

.tab-panel.active {
  display: block;
}

.tab-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.8;
}

.swift-code-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.swift-code-section h4 {
  margin-bottom: 16px;
  color: var(--evergreen);
}

.swift-code-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.swift-code-grid span {
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  line-height: 1.38;
}

.swift-code-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--evergreen);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article {
  min-height: 250px;
  padding: 26px;
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--graphite);
  font-weight: 950;
}

.governance-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: start;
  margin-top: 108px;
  padding: 48px;
  border-radius: 8px;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.96), rgba(96, 119, 124, 0.78)),
    linear-gradient(135deg, var(--coal), var(--steel));
  box-shadow: var(--shadow);
}

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

.governance-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item button {
  width: 100%;
  min-height: 66px;
  padding: 0 22px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-item p {
  display: none;
  margin: 0;
  padding: 0 22px 22px;
}

.faq-item.open p {
  display: block;
}

.contact-section {
  width: var(--wide);
  margin: 108px auto 0;
  padding-bottom: 92px;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-section h2 {
  margin-bottom: 18px;
}

.contact-section p {
  font-size: 1.03rem;
}

.contact-email {
  margin-top: 20px;
}

.contact-methods {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.contact-email a,
.contact-phone a,
.contact-whatsapp a {
  color: var(--evergreen);
  font-weight: 950;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--soft);
  font: inherit;
}

textarea {
  min-height: 132px;
  padding-top: 12px;
  resize: vertical;
}

.file-upload {
  padding: 16px;
  border: 1px dashed rgba(33, 75, 62, 0.38);
  border-radius: 8px;
  background: #f7f8f4;
}

.file-upload input {
  padding: 10px;
  background: var(--surface);
}

.file-upload small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(199, 164, 90, 0.42);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--evergreen);
  font-weight: 900;
}

.button:disabled {
  cursor: wait;
  opacity: 0.66;
  transform: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px max(20px, calc((100vw - 1320px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.footer a {
  color: var(--evergreen);
  font-weight: 950;
}

@media (max-width: 1120px) {
  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .hero,
  .intro-section,
  .evidence-panel,
  .mandate-band,
  .institutional-banner,
  .country-readiness,
  .funded-header,
  .governance-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
  }

  .source-ledger,
  .mandate-grid,
  .framework-grid,
  .funded-grid,
  .process-grid,
  .swift-code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funded-card.major {
    grid-column: auto;
  }

  .funded-card dl {
    grid-template-columns: 1fr;
  }

  .project-detail-grid,
  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-detail-card.highlight {
    grid-column: auto;
  }

  .program-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --narrow: min(100% - 28px, 1180px);
    --wide: min(100% - 28px, 1320px);
  }

  .site-header {
    min-height: auto;
  }

  .nav {
    min-height: 74px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 50px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 0.88rem;
  }

  .brand-text small {
    font-size: 0.7rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 14px;
    right: 14px;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    background: rgba(9, 13, 13, 0.98);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
  }

  .hero {
    min-height: auto;
    padding: 50px 0 84px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1.04rem;
  }

  .hero-command strong {
    font-size: 1.65rem;
  }

  .metrics,
  .source-ledger,
  .mandate-grid,
  .framework-grid,
  .funded-grid,
  .project-detail-grid,
  .process-grid,
  .evidence-grid,
  .swift-code-grid {
    grid-template-columns: 1fr;
  }

  .metrics div {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .section,
  .contact-section {
    padding-top: 82px;
  }

  .evidence-panel,
  .mandate-band,
  .institutional-banner,
  .funded-header,
  .governance-section {
    padding: 28px 22px;
  }

  .program-table {
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .program-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 38px rgba(17, 20, 19, 0.08);
  }

  .program-head {
    display: none;
  }

  .tab {
    flex: 1 1 100%;
  }

  .tab-panel {
    padding: 24px 20px;
  }

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

  .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-command,
  .contact-form {
    padding: 22px;
  }
}
