/* =========================================================
   BDC Capital — Brand stylesheet
   Inspired by family-office / private-investor aesthetics
   (peakcap.co.uk reference) — restrained, world-class feel.
   ========================================================= */

/* ---------- Self-hosted fonts (Latin subset) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2?v=20260507d') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2?v=20260507d') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2?v=20260507d') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-400.woff2?v=20260507d') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-500.woff2?v=20260507d') format('woff2');
}

:root {
  --navy:        #002E76;
  --navy-deep:   #001f54;
  --navy-soft:   #1a4691;
  --cream:       #f5f1ea;
  --cream-soft:  #fbf8f2;
  --bronze:      #b08d57;
  --bronze-soft: #c7a572;
  --ink:         #111418;
  --ink-soft:    #2a2f36;
  --muted:       #6b6f76;
  --line:        #e6e0d3;
  --line-strong: #c9c0ac;
  --white:       #ffffff;

  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1240px;
  --container-narrow: 880px;

  --easing: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--easing); }
button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
/* Headings switched from Playfair (serif) to Inter (sans) per client request.
   Weights bumped 400 → 500 because Inter's monoline stroke reads lighter
   than Playfair at the same numeric weight. Tighter tracking applied at
   display sizes — Inter benefits from negative letter-spacing. */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--navy);
  margin: 0 0 .5em;
  line-height: 1.18;
}
/* Mobile h1 = 32px (2rem). Other headings scaled to preserve hierarchy.
   Desktop sizes (clamp max) unchanged. */
h1 { font-size: clamp(2rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
h2 { font-size: clamp(1.58rem, 3.4vw, 2.9rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
h3 { font-size: clamp(1.04rem, 1.8vw, 1.55rem); font-weight: 500; }
h4 { font-size: clamp(0.92rem, 1.5vw, 1.1rem); font-weight: 600; letter-spacing: .02em; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bronze);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--bronze);
  display: inline-block;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 60ch;
}

blockquote {
  margin: 0;
  padding: 1.2rem 0 1.2rem 1.4rem;
  border-left: 2px solid var(--bronze);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  padding-left: clamp(1.25rem, 4vw, 2.5rem);
  padding-right: clamp(1.25rem, 4vw, 2.5rem);
  margin: 0 auto;
}
.container--narrow { max-width: var(--container-narrow); }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--cream { background: var(--cream); }
.section--cream-soft { background: var(--cream-soft); }
.section--navy { background: var(--navy); color: #e6e9f1; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,.78); }

.divider {
  height: 1px; background: var(--line);
  border: 0; margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  display: flex; align-items: center;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(255,255,255,0);
  /* DO NOT add backdrop-filter here — it creates a containing block for
     position:fixed descendants and breaks the off-canvas .nav.
     Apply backdrop-filter only on .is-scrolled below. */
  transition: background .35s var(--easing), box-shadow .35s var(--easing), padding .35s var(--easing);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  padding-top: .65rem; padding-bottom: .65rem;
}
.site-header.is-solid {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--container); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: .9rem;
  color: var(--navy);
  position: relative; z-index: 101;
}
.site-header.menu-open .brand { color: var(--white); }
.brand-logo {
  display: block;
  width: 60px;
  height: auto;
  flex-shrink: 0;
}
.brand-logo path { fill: currentColor; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-header.is-translucent .brand { color: var(--white); }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: .4rem 0;
}
.nav a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--easing);
}
.nav a:hover::after, .nav a.is-active::after {
  transform: scaleX(1); transform-origin: left;
}
.nav a:hover, .nav a.is-active { color: var(--navy); }

.site-header.is-translucent .nav a { color: rgba(255,255,255,.88); }
.site-header.is-translucent .nav a:hover { color: var(--white); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: .5rem;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle svg { width: 28px; height: 28px; display: block; }
.menu-toggle svg line {
  transform-box: view-box;
  transform-origin: 12px 12px;
  transition: transform .35s var(--easing), opacity .25s var(--easing);
}
.site-header.menu-open .menu-toggle svg line:nth-child(1) {
  transform: rotate(45deg) translateY(5px);
}
.site-header.menu-open .menu-toggle svg line:nth-child(2) {
  opacity: 0;
}
.site-header.menu-open .menu-toggle svg line:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px);
}

@media (max-width: 880px) {
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .4s var(--easing), visibility 0s linear .4s;
    visibility: hidden;
    z-index: 99;
    overflow-y: auto;
    padding: 6rem 1.5rem 3rem;
    -webkit-overflow-scrolling: touch;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform .4s var(--easing), visibility 0s linear 0s;
  }
  .nav a {
    color: rgba(255,255,255,.85);
    font-size: 1.1rem;
    padding: .5rem 0;
  }
  .nav a::after { display: none; }
  .nav a:hover, .nav a.is-active { color: var(--white); }
  .menu-toggle { display: inline-flex; z-index: 102; position: relative; }
  .site-header.menu-open .menu-toggle { color: var(--white); }
}

body.is-menu-locked { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .95rem 1.7rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  transition: background .3s var(--easing), color .3s var(--easing), border-color .3s var(--easing), transform .3s var(--easing);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.4);
}
.btn--light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn .arrow {
  width: 14px; height: 1px; background: currentColor; position: relative;
}
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--navy);
}
.link-arrow::after {
  content: "→"; transition: transform .3s var(--easing);
}
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 0 0 clamp(3rem, 8vw, 6rem);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  /* JPG fallback for browsers without image-set() */
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 60%, rgba(0,46,118,.85) 100%),
    url("/assets/hero-skyline.jpg?v=20260507d") center/cover no-repeat;
  /* Modern browsers: WebP via image-set() */
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 60%, rgba(0,46,118,.85) 100%),
    image-set(
      url("/assets/hero-skyline.webp?v=20260507d") type("image/webp"),
      url("/assets/hero-skyline.jpg?v=20260507d") type("image/jpeg")
    ) center/cover no-repeat;
  z-index: -1;
}
.hero h1 {
  color: var(--white);
  max-width: 18ch;
  font-weight: 400;
  letter-spacing: -.01em;
}
.hero .lead { color: rgba(255,255,255,.85); max-width: 52ch; margin-top: 1.4rem; }
.hero .eyebrow { color: var(--bronze-soft); }
.hero .eyebrow::before { background: var(--bronze-soft); }
.hero .hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
/* Primary CTA: navy fill reads as blue-on-blue over hero gradient — hairline contrast ring */
.hero .hero-cta .btn:not(.btn--light) {
  border-color: rgba(255, 255, 255, 0.38);
}
.hero .hero-cta .btn:not(.btn--light):hover {
  border-color: rgba(255, 255, 255, 0.55);
}

.hero--inner { min-height: 56vh; align-items: center; padding: 9rem 0 5rem; }
.hero--inner h1 { max-width: 22ch; }

/* ---------- Page intro ---------- */
.page-intro { padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-intro h1 { font-size: clamp(2.16rem, 5vw, 4.2rem); }

/* ---------- Pillars / cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.pillar {
  background: var(--white);
  padding: clamp(2rem, 3vw, 3rem);
  display: flex; flex-direction: column; gap: 1rem;
  transition: background .35s var(--easing);
}
.pillar:hover { background: var(--cream-soft); }
.pillar .num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--bronze);
  font-style: italic;
}
.pillar h3 { color: var(--navy); margin: 0; }
.pillar p { font-size: .98rem; line-height: 1.65; }

/* ---------- Two-column split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.split-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--cream);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-image--alternate-crop img { object-position: 72% 30%; }
.split-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,46,118,.08) 0%, rgba(0,46,118,0) 60%);
  pointer-events: none;
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: .5rem;
  font-weight: 400;
}
.stat .label {
  font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 600px) { .step { grid-template-columns: 60px 1fr; } }
.step .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--bronze);
  font-style: italic;
  font-weight: 400;
}
.step h3 { margin: 0 0 .6rem; }
.step p { font-size: 1rem; max-width: 60ch; }

/* ---------- Bullets ---------- */
.bullet-list {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: grid; gap: .9rem;
}
.bullet-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}
.bullet-list li::before {
  content: ""; position: absolute;
  left: 0; top: .75em;
  width: 8px; height: 1px;
  background: var(--bronze);
}

/* ---------- Founder card ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.5fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .founder { grid-template-columns: 1fr; } }
.founder-portrait {
  aspect-ratio: 3/4;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-name {
  font-family: var(--sans);
  font-size: 1.6rem; color: var(--navy);
  margin: 0;
}
.founder-role {
  font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: .3rem 0 .55rem;
}
.founder-linkedin { margin: 0 0 1.35rem; }
.founder-linkedin a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze);
  transition: color .25s var(--easing);
}
.founder-linkedin a:hover { color: var(--navy); }

/* ---------- Insights cards ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.insight-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform .35s var(--easing), box-shadow .35s var(--easing), border-color .35s var(--easing);
}
.insight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,46,118,.08);
  border-color: var(--line-strong);
}
.insight-card .meta {
  font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
}
.insight-card h3 {
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.3;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--cream);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-left: 2px solid var(--bronze);
}
.contact-card h3 { margin-top: 0; }
.contact-card p { margin: 0 0 .4rem; color: var(--ink); }
.contact-card .label {
  display: block;
  font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 1.4rem 0 .4rem;
}
.contact-card a:hover { color: var(--navy); }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .5rem; }
.field label {
  font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 1rem;
  padding: .9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: border-color .25s var(--easing), box-shadow .25s var(--easing);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0,46,118,.08);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success {
  background: var(--cream);
  border-left: 2px solid var(--bronze);
  padding: 1.2rem 1.4rem;
  font-size: .95rem;
  display: none;
}
.form-success.is-visible { display: block; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.cta-band h2 { color: var(--white); max-width: 22ch; margin: 0 auto 1rem; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 60ch; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 4.5rem 0 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-logo { width: 64px; height: auto; color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.65); margin-top: 1rem; max-width: 30ch; }
.footer-col h3 {
  color: var(--white);
  font-family: var(--sans);
  font-size: .78rem; letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 1.2rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(255,255,255,.55);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--easing), transform .9s var(--easing);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.max-prose { max-width: 64ch; }
.max-prose-narrow { max-width: 56ch; }
.mx-auto { margin-left: auto; margin-right: auto; }
