:root {
  --ink: #101419;
  --navy: #111827;
  --muted: #5d6672;
  --line: #e2e6eb;
  --paper: #f7f8fa;
  --white: #ffffff;
  --gold: #f0b323;
  --gold-soft: #fff5d8;
  --teal: #006c75;
  --teal-soft: #e7f4f4;
  --green: #2f6f4e;
  --green-soft: #edf7f1;
  --shadow: 0 18px 50px rgba(16, 20, 25, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 230, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 48px, 1180px);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
  font-size: 22px;
}

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

.brand-name {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-name span {
  color: var(--gold);
}

.brand-line {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.2;
}

.nav-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--navy);
  white-space: nowrap;
}

.nav-cta svg,
.button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

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

.hero {
  position: relative;
  min-height: 74vh;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/funding-real-estate-hero.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 14, 18, 0.94) 0%, rgba(12, 14, 18, 0.84) 42%, rgba(12, 14, 18, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 14, 18, 0.24), rgba(12, 14, 18, 0.08));
}

.hero-lines {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -160px;
  z-index: -1;
  height: 420px;
  opacity: 0.28;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 28px, rgba(255, 255, 255, 0.18) 29px 30px);
}

.hero-inner {
  width: min(100% - 48px, 1180px);
  min-height: calc(74vh - 78px);
  margin: 0 auto;
  padding: 86px 0 66px;
  color: var(--white);
}

.eyebrow,
.section-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-label {
  border-color: var(--line);
  background: var(--white);
  color: var(--teal);
}

.section-label.inverse {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: 70px;
  line-height: 0.95;
  font-weight: 850;
}

.hero-statement {
  margin: 20px 0 0;
  max-width: 760px;
  color: var(--gold);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
}

.hero-copy {
  margin: 24px 0 0;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  padding: 0 20px;
  border: 1px solid transparent;
}

.button-primary {
  background: var(--gold);
  color: #14100a;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 760px);
  margin: 46px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-facts div {
  padding: 18px;
  background: rgba(16, 20, 25, 0.46);
}

.hero-facts dt {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  color: var(--white);
  font-size: 24px;
  font-weight: 850;
}

.section,
.section-band {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 84px 0;
}

.section-band {
  width: 100%;
  padding: 76px max(24px, calc((100% - 1180px) / 2));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section h2,
.section-band h2 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 42px;
  line-height: 1.12;
  font-weight: 850;
}

.section-heading > p:last-child,
.rich-copy,
.split-copy > p,
.contact-inner > div > p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.rich-copy p {
  margin-bottom: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.metric-grid article,
.service-card,
.stack-list article,
.network-grid article,
.check-panel,
.mandate-grid article,
.process-grid li,
.readiness-grid article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric-grid article {
  padding: 22px;
  box-shadow: none;
}

.metric-grid span,
.mandate-grid span {
  display: block;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-size: 33px;
  line-height: 1;
}

.metric-grid p {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  padding: 24px;
}

.icon-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}

.icon-box.gold {
  background: var(--gold-soft);
  color: #8b6100;
}

.icon-box.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.icon-box.green {
  background: var(--green-soft);
  color: var(--green);
}

.icon-box svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.stack-list h3,
.network-grid h3,
.mandate-grid h3,
.process-grid h3,
.readiness-grid h3 {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.service-card p,
.stack-list p,
.network-grid p,
.mandate-grid p,
.process-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 64px;
  align-items: start;
}

.split-section.reverse {
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1fr);
}

.split-section.reverse .split-copy {
  order: 2;
}

.split-copy h2 {
  margin-bottom: 22px;
}

.note {
  margin-top: 28px;
  border-left: 4px solid var(--gold);
  padding: 18px 20px;
  background: var(--gold-soft);
  border-radius: 0 8px 8px 0;
}

.note strong {
  color: var(--navy);
}

.note p {
  margin: 7px 0 0;
  color: #665124;
  line-height: 1.6;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-list article {
  position: relative;
  padding: 24px 24px 24px 58px;
  box-shadow: none;
}

.stack-list span {
  position: absolute;
  left: 22px;
  top: 26px;
  color: var(--teal);
  font-weight: 850;
}

.dark-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 84px max(24px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(180deg, rgba(16, 20, 25, 0.96), rgba(16, 20, 25, 0.96)),
    url("assets/funding-real-estate-hero.png") center / cover;
  color: var(--white);
}

.dark-panel h2,
.dark-panel .section-heading p {
  color: var(--white);
}

.dark-panel .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

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

.network-grid article {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  padding: 24px;
}

.network-grid h3 {
  color: var(--white);
}

.network-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.check-panel {
  padding: 28px;
}

.check-panel h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 24px;
}

.check-panel ul,
.readiness-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-panel li,
.readiness-grid li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.check-panel li + li,
.readiness-grid li + li {
  margin-top: 12px;
}

.check-panel li::before,
.readiness-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

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

.mandate-grid article {
  padding: 24px;
}

.process-section {
  border-top: 1px solid var(--line);
}

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.process-grid li {
  padding: 22px;
  box-shadow: none;
}

.process-grid span {
  color: var(--teal);
  font-weight: 850;
}

.readiness {
  padding-top: 0;
}

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

.readiness-grid article {
  padding: 26px;
  box-shadow: none;
}

.readiness-grid h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.contact-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 86px max(24px, calc((100% - 1180px) / 2));
  background: var(--navy);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 56px;
  align-items: start;
}

.contact-section h2 {
  color: var(--white);
}

.contact-inner > div > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.contact-name {
  margin: 0 0 18px;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
}

.contact-card a {
  display: block;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.contact-card a:hover {
  color: var(--gold);
}

.footer {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer p {
  margin: 0;
}

@media (max-width: 1100px) {
  .nav {
    width: min(100% - 32px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

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

  .nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .card-grid.four,
  .mandate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-cta {
    display: none;
  }

  .brand-line {
    max-width: 220px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    min-height: calc(76vh - 78px);
    padding: 64px 0 46px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-statement {
    font-size: 28px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts div {
    padding: 12px 10px;
  }

  .hero-facts dt {
    font-size: 10px;
  }

  .hero-facts dd {
    font-size: 18px;
  }

  .section,
  .footer {
    width: min(100% - 32px, 1180px);
  }

  .section,
  .section-band,
  .dark-panel,
  .contact-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-grid,
  .split-section,
  .split-section.reverse,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split-section.reverse .split-copy {
    order: 0;
  }

  .section h2,
  .section-band h2 {
    font-size: 34px;
  }

  .metric-grid,
  .card-grid.four,
  .network-grid,
  .mandate-grid,
  .process-grid,
  .readiness-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-line {
    max-width: 170px;
    font-size: 12px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-statement {
    font-size: 24px;
  }

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

  .button {
    width: 100%;
  }
}
