/* Desert Peak Capital Partners — Site styles
   Navy + Gold private lending brand, modeled after
   Archwest, Dunmor, Anchor — but distinctly DPCP. */

:root {
  --navy:        #152A47;
  --navy-deep:   #0E1F36;
  --navy-90:     rgba(21, 42, 71, 0.92);
  --gold:        #B08A3E;
  --gold-light:  #D9B86A;
  --gold-soft:   rgba(176, 138, 62, 0.12);
  --page:        #FBFAF7;
  --page-warm:   #F4EFE6;
  --ink:         #1A1F2B;
  --muted:       #6C7280;
  --rule:        #E2E1DC;
  --white:       #FFFFFF;
  --shadow-sm:   0 1px 2px rgba(14, 31, 54, 0.06), 0 1px 1px rgba(14, 31, 54, 0.04);
  --shadow-md:   0 8px 24px rgba(14, 31, 54, 0.08), 0 2px 6px rgba(14, 31, 54, 0.04);
  --shadow-lg:   0 24px 48px rgba(14, 31, 54, 0.16), 0 4px 12px rgba(14, 31, 54, 0.06);
  --container:   1200px;
  --container-wide: 1320px;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   16px;
  --font-serif:  'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  display: inline-block;
}
.rule {
  display: inline-block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

/* Offset in-page anchor jumps so the sticky header doesn't cover headings */
html { scroll-padding-top: 110px; }
[id] { scroll-margin-top: 110px; }
.site-header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand__logo {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}
.brand--footer .brand__logo {
  height: 72px;
  opacity: 0.95;
}
@media (max-width: 768px) {
  .brand__logo { height: 48px; }
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
  position: relative;
}
.nav a:hover { color: var(--navy); }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after,
.nav-dropdown__trigger.is-active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
}

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: color .2s ease;
  position: relative;
  cursor: pointer;
}
.nav-dropdown__trigger:hover,
.nav-dropdown__trigger.is-active { color: var(--navy); }
.nav-dropdown__caret {
  width: 11px;
  height: 7px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  color: currentColor;
  transition: transform .2s ease;
}
.nav-dropdown:hover .nav-dropdown__caret,
.nav-dropdown:focus-within .nav-dropdown__caret { transform: rotate(180deg); }
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(14, 31, 54, 0.08);
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 18px 48px -16px rgba(14, 31, 54, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown__menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.nav-dropdown__menu a:hover { background: rgba(14, 31, 54, 0.05); color: var(--navy); }
.nav-dropdown__viewall {
  margin-top: 6px;
  padding-top: 12px !important;
  border-top: 1px solid rgba(14, 31, 54, 0.08);
  color: var(--gold) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

/* Form checkbox grid (used on Broker Partnerships) */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 18px;
  margin-top: 8px;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}
.checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
}

/* Ghost button matching the Partner CTA */
.btn--ghost.is-active {
  background: var(--navy) !important;
  color: #fff !important;
  border-color: var(--navy) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--page); }
.btn--ghost-light {
  background: transparent;
  color: var(--page);
  border: 1px solid rgba(251, 250, 247, 0.5);
}
.btn--ghost-light:hover { background: var(--page); color: var(--navy-deep); }
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--navy);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--page);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(14,31,54,0.92) 0%, rgba(14,31,54,0.78) 38%, rgba(14,31,54,0.35) 72%, rgba(14,31,54,0.10) 100%);
}
.hero__inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 80px 28px 100px;
  width: 100%;
}
.hero__content {
  max-width: 720px;
}
.hero h1 {
  color: var(--page);
  font-size: clamp(40px, 6vw, 76px);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero__slogan {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: 32px;
}
.hero__lede {
  font-size: 18px;
  line-height: 1.65;
  max-width: 560px;
  color: rgba(251, 250, 247, 0.88);
  margin-bottom: 18px;
}
.hero__notice {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  border-left: 2px solid var(--gold-light);
  padding-left: 12px;
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 36px;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(14, 31, 54, 0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(176, 138, 62, 0.25);
}
.hero__stats-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--gold-light);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1;
  margin-bottom: 6px;
}
.stat span {
  color: rgba(251, 250, 247, 0.7);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ----- Sections ----- */
section {
  padding: clamp(72px, 8vw, 120px) 28px;
}
.section__container {
  max-width: var(--container);
  margin: 0 auto;
}
.section__container--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
}
.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section__head h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 16px;
}
.section__head p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}
.section--dark {
  background: var(--navy);
  color: var(--page);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--page); }
.section--dark .section__head p { color: rgba(251, 250, 247, 0.7); }
.section--warm { background: var(--page-warm); }

/* ----- Intro / Value Props ----- */
.intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.intro__title { font-size: clamp(32px, 4vw, 48px); margin: 0; }
.intro__body p { font-size: 17px; line-height: 1.7; color: var(--ink); }
.intro__body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 64px;
  float: left;
  line-height: 0.85;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--gold);
}

/* ----- Programs grid ----- */
.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.programs--five {
  grid-template-columns: repeat(4, 1fr);
}
.programs--five > .program { grid-column: span 1; }
.programs--five > .program--center { grid-column: 2 / span 2; }
@media (max-width: 900px) {
  .programs--five { grid-template-columns: repeat(2, 1fr); }
  .programs--five > .program,
  .programs--five > .program--center { grid-column: span 1; }
  .programs--five > .program--center { grid-column: 1 / span 2; justify-self: stretch; max-width: 50%; margin: 0 auto; }
}
@media (max-width: 500px) {
  .programs--five { grid-template-columns: 1fr; }
  .programs--five > .program,
  .programs--five > .program--center { grid-column: 1; max-width: none; }
}
.program {
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.section--dark .program {
  background: var(--navy-deep);
  border-color: rgba(176, 138, 62, 0.2);
}
.program:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.program__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--gold);
}
.program h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.section--dark .program h3 { color: var(--page); }
.program p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
  flex-grow: 1;
}
.section--dark .program p { color: rgba(251, 250, 247, 0.7); }
.program__terms {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.section--dark .program__terms { border-top-color: rgba(176, 138, 62, 0.18); }
.program__terms li {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--ink);
}
.section--dark .program__terms li { color: rgba(251, 250, 247, 0.88); }
.program__terms li span:first-child { color: var(--muted); }
.section--dark .program__terms li span:first-child { color: rgba(251, 250, 247, 0.55); }
.program__terms li strong { color: var(--navy); font-weight: 600; }
.section--dark .program__terms li strong { color: var(--gold-light); }
.program__link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.program__link:hover { color: var(--gold-light); }

/* ----- Projects gallery ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 22px 16px;
  background: linear-gradient(to top, rgba(14,31,54,0.85), transparent);
  color: var(--page);
}
.gallery figure figcaption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
}
.gallery figure figcaption span {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.gallery .g-hero    { grid-column: span 8; grid-row: span 2; }
.gallery .g-tall    { grid-column: span 4; grid-row: span 2; }
.gallery .g-wide    { grid-column: span 6; grid-row: span 1; }
.gallery .g-half    { grid-column: span 6; grid-row: span 1; }
.gallery .g-third   { grid-column: span 4; grid-row: span 1; }
.gallery .g-square  { grid-column: span 4; grid-row: span 1; }

/* ----- Partners ----- */
.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.partner-card {
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.partner-card__avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 0 0 4px var(--page), 0 0 0 6px var(--gold), var(--shadow-md);
}
.partner-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.partner-card h3 {
  font-size: 24px;
  margin-bottom: 4px;
}
.partner-card .role {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.partner-card p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin: 0;
}

/* ----- Partner tiles (clickable cards on partners.html) ----- */
.partner-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  max-width: 880px;
  margin: 0 auto;
}
.partner-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px 40px;
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
}
.partner-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}
.partner-tile__avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 0 0 4px var(--page), 0 0 0 6px var(--gold), var(--shadow-md);
  transition: box-shadow .25s ease;
}
.partner-tile:hover .partner-tile__avatar {
  box-shadow: 0 0 0 4px var(--page), 0 0 0 7px var(--gold-light), var(--shadow-lg);
}
.partner-tile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.partner-tile h3 {
  font-size: 28px;
  margin: 0 0 6px;
}
.partner-tile .role {
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 18px;
}
.partner-tile__view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease, gap .2s ease;
}
.partner-tile:hover .partner-tile__view {
  color: var(--gold);
  gap: 12px;
}

/* ----- Partner bio detail page ----- */
.partner-bio {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.partner-bio__avatar {
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 5px var(--page), 0 0 0 7px var(--gold), var(--shadow-lg);
}
.partner-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }
.partner-bio__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.partner-bio__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.partner-bio__meta-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.partner-bio__meta-value {
  font-size: 15px;
  color: var(--ink);
}
.partner-bio__meta-value a { color: var(--navy); border-bottom: 1px solid var(--gold-light); }
.partner-bio__meta-value a:hover { color: var(--gold); }
.partner-bio__role {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 8px;
}
.partner-bio h1, .partner-bio h2 {
  font-size: 48px;
  margin: 0 0 28px;
  line-height: 1.05;
}
.partner-bio__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 32px;
  padding-left: 24px;
  border-left: 3px solid var(--gold);
}
.partner-bio p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
}
.partner-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color .2s ease, gap .2s ease;
}
.partner-back:hover { color: var(--navy); gap: 12px; }
@media (max-width: 768px) {
  .partner-tiles { grid-template-columns: 1fr; gap: 28px; }
  .partner-bio { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .partner-bio__avatar { width: 220px; height: 220px; margin: 0 auto; }
  .partner-bio__meta { align-items: center; }
  .partner-bio__lead { padding-left: 0; padding-top: 14px; border-left: 0; border-top: 3px solid var(--gold); text-align: left; }
  .partner-bio h1, .partner-bio h2 { font-size: 36px; }
}

/* ----- Process ----- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--gold) 0 6px, transparent 6px 14px);
  z-index: 0;
}
.process-step {
  position: relative;
  text-align: left;
  padding-top: 0;
}
.process-step__num {
  position: relative;
  z-index: 1;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--page);
  border: 1px solid var(--gold);
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.section--dark .process-step__num {
  background: var(--navy-deep);
  color: var(--gold-light);
}
.process-step h3 { font-size: 19px; margin-bottom: 8px; }
.process-step p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.65; }
.section--dark .process-step p { color: rgba(251, 250, 247, 0.7); }

/* ----- Capital sources ----- */
.capital-sources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.capital-source {
  background: var(--page);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.capital-source svg { width: 36px; height: 36px; color: var(--gold); }
.capital-source strong { font-family: var(--font-serif); font-size: 17px; color: var(--navy); }
.capital-source span { font-size: 12.5px; color: var(--muted); }

/* ----- CTA banner ----- */
.cta-banner {
  position: relative;
  isolation: isolate;
  color: var(--page);
  background: var(--navy-deep);
  overflow: hidden;
  padding: 100px 28px;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/sonora-pool-night.jpg') center/cover;
  opacity: 0.18;
  z-index: -1;
}
.cta-banner h2 {
  color: var(--page);
  font-size: clamp(32px, 4vw, 52px);
  max-width: 720px;
  margin: 0 auto 20px;
}
.cta-banner p {
  font-size: 18px;
  color: rgba(251, 250, 247, 0.78);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(251, 250, 247, 0.7);
  padding: 72px 28px 32px;
}
.site-footer__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.site-footer__brand p {
  font-size: 14.5px;
  margin: 16px 0 0;
  max-width: 320px;
  line-height: 1.7;
}
.site-footer__slogan {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-light);
  font-size: 20px;
  margin: 0 0 14px !important;
}
.founder-feature { max-width: 760px; margin: 0 auto; }
.founder-feature .partner-card { text-align: center; }
.founder-feature .partner-card__avatar { margin-inline: auto; }
.founder-feature .partner-card p { max-width: 62ch; margin-inline: auto; }
.site-footer__licensing {
  max-width: var(--container-wide);
  margin: 32px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: #e2dbcb;
  font-size: 13px;
  line-height: 1.7;
}
.site-footer__licensing span:first-child { color: #fff; font-weight: 600; }
@media (max-width: 600px) {
  .site-footer__licensing { flex-direction: column; gap: 8px; padding-inline: 0; }
  .partner-bio .btn { margin: 8px 0 !important; }
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer ul li a:hover { color: var(--gold-light); }
.site-footer__bottom {
  max-width: var(--container-wide);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 250, 247, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(251, 250, 247, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__bottom > a:last-child { margin-left: auto; }

/* ----- Page banner (interior pages) ----- */
.page-banner {
  position: relative;
  isolation: isolate;
  color: var(--page);
  padding: 140px 28px 80px;
  background: var(--navy-deep);
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  z-index: -1;
}
.page-banner[data-bg="sonora"]::before { background-image: url('../images/hero-sonora-exterior.jpg'); }
.page-banner[data-bg="pool"]::before   { background-image: url('../images/sonora-pool-day.jpg'); }
.page-banner[data-bg="bath"]::before   { background-image: url('../images/npc01-bath.jpg'); }
.page-banner[data-bg="kitchen"]::before{ background-image: url('../images/sonora-kitchen.jpg'); }
.page-banner__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
}
.page-banner .crumbs {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.page-banner h1 {
  color: var(--page);
  font-size: clamp(36px, 5.4vw, 64px);
  max-width: 820px;
  margin: 0 0 18px;
}
.page-banner p {
  font-size: 18px;
  max-width: 620px;
  color: rgba(251, 250, 247, 0.82);
  margin: 0;
}

/* ----- About page ----- */
.story {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.story img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.story h2 { font-size: clamp(30px, 4vw, 44px); }
.story p { font-size: 17px; line-height: 1.7; }

/* ----- Programs detail ----- */
.program-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 60px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 110px;
}
.program-detail:last-child { border-bottom: 0; }
.program-detail h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 14px;
}
.program-detail p { font-size: 16.5px; line-height: 1.7; }
.program-detail__terms {
  background: var(--page-warm);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.program-detail__terms h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.program-detail__terms dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
  margin: 0;
}
.program-detail__terms dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 2px;
}
.program-detail__terms dd {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--navy);
}

/* ----- Contact form ----- */
.address-field { position: relative; width: 100%; }
.address-results { background: #fff; border: 1px solid var(--rule); border-radius: 6px; margin-top: 8px; box-shadow: var(--shadow-md); }
.address-results[hidden] { display: none; }
.address-results ul { padding: 0; margin: 0; list-style: none; }
.address-results [role="option"] { padding: 14px 16px; font-size: 15px; line-height: 1.5; cursor: pointer; border-bottom: 1px solid var(--rule); }
.address-results [role="option"]:hover, .address-results [aria-selected="true"] { background: var(--page-warm); }
.address-attribution { padding: 10px 16px; text-align: right; color: #5e5e5e; font: 400 13px/1.5 var(--font-sans); }
.address-attribution span { white-space: nowrap; }
.contact-form .address-help, .address-privacy { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }
.address-privacy summary { cursor: pointer; color: var(--navy); }
.address-privacy p { font-size: 13px; }
.address-privacy a { text-decoration: underline; }
.contact-form .field--invalid input,
.contact-form .field--invalid select,
.contact-form .field--invalid textarea {
  border: 1.5px solid #b42318;
  background-color: #fff4f2;
  box-shadow: 0 0 0 1px rgba(180,35,24,.08);
}
.contact-form .field--invalid label { color: #9f241c; }
.contact-form .field-error {
  color: #9f241c;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.contact-form .field-error[hidden] { display: none; }
.contact-form .form-completion { font-size: 13px; line-height: 1.6; color: var(--navy); margin: 0 0 16px; }
.contact-form button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}
.contact-info h3 { font-size: 24px; margin-bottom: 18px; }
.contact-info .item {
  border-top: 1px solid var(--rule);
  padding: 18px 0;
}
.contact-info .item dt {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-info .item dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}
.contact-form {
  background: var(--page-warm);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--page); padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-bottom: 1px solid var(--rule); align-items: stretch; gap: 4px; max-height: calc(100vh - var(--mobile-header-height, 94px)); max-height: calc(100dvh - var(--mobile-header-height, 94px)); overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
  .nav > * { flex-shrink: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  /* Mobile disclosures open only on an explicit tap, never hover/focus. */
  .nav-dropdown { width: 100%; }
  .nav-dropdown__trigger { padding: 12px 14px; width: 100%; justify-content: space-between; }
  .nav-dropdown__menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 4px 0 8px 14px;
    min-width: 0;
  }
  .nav-dropdown.is-expanded > .nav-dropdown__menu { display: flex; }
  .nav-dropdown .nav-dropdown__caret { transform: none; }
  .nav-dropdown.is-expanded .nav-dropdown__caret { transform: rotate(180deg); }
  .nav-dropdown__menu a { padding: 8px 12px; font-size: 13px; color: var(--muted); }
  .nav-dropdown__viewall { margin-top: 8px; padding-top: 10px !important; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .intro, .story, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .partners { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .program-detail { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero { min-height: 0; flex-direction: column; }
  .hero__inner { padding: 48px 28px 56px; width: 100%; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .hero__cta .btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
  .hero__stats { position: static; width: 100%; background: rgba(14, 31, 54, 0.96); }
  .hero__stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 28px; max-width: 100%; }
  .gallery { grid-auto-rows: 160px; }
  .gallery .g-hero    { grid-column: span 12; }
  .gallery .g-tall    { grid-column: span 12; grid-row: span 1; }
  .gallery .g-wide,
  .gallery .g-half    { grid-column: span 12; }
  .gallery .g-third,
  .gallery .g-square  { grid-column: span 6; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ----- Utility ----- */
.text-gold { color: var(--gold); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ----- Recently Funded page ----- */
.section--tight { padding: clamp(36px, 4vw, 56px) 28px; }
.section--tight + .section--warm { margin-top: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.stats .stat {
  background: #fff;
  border: 1px solid rgba(14, 31, 54, 0.08);
  border-left: 3px solid var(--gold);
  padding: 22px 24px;
  border-radius: 4px;
}
.stats .stat strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.stats .stat span {
  color: rgba(14, 31, 54, 0.6);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

.deal-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(14, 31, 54, 0.1);
  border-radius: 6px;
  background: #fff;
  margin-top: 32px;
}
.deal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 720px;
}
.deal-table thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 14px 18px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.deal-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid rgba(14, 31, 54, 0.06);
  color: rgba(14, 31, 54, 0.85);
}
.deal-table tbody tr:hover td { background: rgba(176, 138, 62, 0.04); }
.deal-table tbody td:nth-child(4) { font-family: var(--font-serif); color: var(--navy); font-weight: 600; }
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.pill--funded { background: rgba(34, 139, 84, 0.12); color: #1f7a4a; }

.footnote {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(14, 31, 54, 0.55);
  font-style: italic;
}

/* ----- Dashboard ----- */
.dash-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.dash-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 6px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.dash-head p { margin: 0; color: rgba(14, 31, 54, 0.6); font-size: 14px; }
.dash-controls { display: flex; gap: 8px; align-items: center; }
.dash-controls select, .dash-controls button {
  font: inherit;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid rgba(14, 31, 54, 0.15);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.dash-controls button:hover { background: var(--navy); color: #fff; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.kpi {
  background: #fff;
  border: 1px solid rgba(14, 31, 54, 0.08);
  border-radius: 8px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}
.kpi__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14, 31, 54, 0.55);
  font-weight: 600;
  margin-bottom: 10px;
}
.kpi__value {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.kpi__sub { margin-top: 8px; font-size: 12px; color: rgba(14, 31, 54, 0.5); }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }

.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-card {
  background: #fff;
  border: 1px solid rgba(14, 31, 54, 0.08);
  border-radius: 8px;
  padding: 22px 24px;
}
.dash-card h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin: 0 0 16px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.chart-wrap { position: relative; height: 280px; }

.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(14, 31, 54, 0.55);
  padding: 8px 10px;
  border-bottom: 1px solid rgba(14, 31, 54, 0.1);
  font-weight: 600;
}
.dash-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(14, 31, 54, 0.05);
  color: rgba(14, 31, 54, 0.85);
}
.dash-table td:last-child {
  text-align: right;
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 600;
}
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-bar {
  display: inline-block;
  height: 6px;
  background: rgba(176, 138, 62, 0.5);
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 8px;
}
.dash-empty { color: rgba(14, 31, 54, 0.5); font-style: italic; padding: 14px 4px; }
.dash-token-prompt {
  background: #fff;
  border: 1px solid rgba(14, 31, 54, 0.1);
  border-radius: 8px;
  padding: 28px;
  max-width: 520px;
  margin: 80px auto;
  text-align: center;
}
.dash-token-prompt input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(14, 31, 54, 0.2);
  font: inherit;
  margin: 12px 0;
}
.dash-meta {
  font-size: 12px;
  color: rgba(14, 31, 54, 0.5);
  margin-top: 12px;
  text-align: right;
}
