/* ============================================================
   SDF Capital — shared stylesheet
   Palette: deep evergreen + brass on warm white
   Type: Fraunces (display) · Hanken Grotesk (body) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --ink:        #0E2A20;   /* near-black green, primary text on light */
  --pine:       #163A2B;   /* brand green */
  --pine-700:   #1B4736;
  --moss:       #2E6B4F;   /* lighter green, hovers */
  --brass:      #BD9A4E;   /* accent */
  --brass-bright:#D6B566;
  --paper:      #FBFAF6;   /* warm near-white page bg */
  --surface:    #FFFFFF;
  --surface-2:  #F2F0E8;   /* faint warm panel */
  --muted:      #56685E;   /* secondary text on light */
  --muted-soft: #8A978F;
  --line:       rgba(14,42,32,0.12);
  --line-brass: rgba(189,154,78,0.45);
  --on-dark:    #EDF1EC;   /* text on green */
  --on-dark-mut:#A9BDB0;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --r-lg: 10px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t-med: 420ms cubic-bezier(.16,1,.3,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.07; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { color: var(--muted); }
.serif-italic { font-style: italic; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .96rem;
  padding: .92em 1.55em; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  letter-spacing: .005em;
}
.btn .arr { transition: transform var(--t-fast); }
.btn:hover .arr { transform: translateX(3px); }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-bright); transform: translateY(-2px); }
.btn--pine { background: var(--pine); color: var(--on-dark); }
.btn--pine:hover { background: var(--pine-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: rgba(237,241,236,.35); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); }

/* ---------- header / nav ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-head.scrolled { background: rgba(251,250,246,.86); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.site-head.solid { background: var(--paper); border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: baseline; gap: .5ch; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: .02em; color: var(--ink); }
.brand .bar { color: var(--brass); font-weight: 400; transform: translateY(-1px); }
.brand .sub { font-family: var(--mono); font-size: .62rem; letter-spacing: .34em; color: var(--muted); text-transform: uppercase; align-self: center; font-weight: 500; }
.site-head.on-dark:not(.scrolled):not(.solid) .brand { color: var(--paper); }
.site-head.on-dark:not(.scrolled):not(.solid) .brand .sub { color: var(--on-dark-mut); }
.site-head.on-dark:not(.scrolled):not(.solid) .nav-links a { color: var(--on-dark); }
.site-head.on-dark:not(.scrolled):not(.solid) .nav-toggle span { background: var(--on-dark); }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a { font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; padding-block: 4px; transition: color var(--t-fast); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--brass); transition: width var(--t-fast); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brass); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform var(--t-fast), opacity var(--t-fast); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t-med), opacity var(--t-med);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 16px 0 0; width: 100%; justify-content: center; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--pine); color: var(--on-dark);
  padding-top: clamp(128px, 18vh, 180px); padding-bottom: clamp(72px, 11vw, 128px);
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(189,154,78,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189,154,78,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
}
.hero__skyline { position: absolute; right: 0; bottom: 0; width: min(46%, 560px); opacity: .9; pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; }
.hero__eyebrow { color: var(--brass-bright); }
.hero__eyebrow::before { background: var(--brass-bright); }
.hero h1 { color: #fff; max-width: 16ch; margin-top: 22px; }
.hero h1 em { font-style: italic; color: var(--brass-bright); }
.hero__sub { color: var(--on-dark-mut); font-size: clamp(1.05rem, 1.7vw, 1.32rem); max-width: 52ch; margin-top: 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: clamp(48px, 7vw, 80px); padding-top: 30px; border-top: 1px solid rgba(189,154,78,.28); position: relative; z-index: 2; }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); color: #fff; line-height: 1; }
.stat__num span { color: var(--brass-bright); }
.stat__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mut); margin-top: 10px; max-width: 22ch; }

/* ---------- generic section heads ---------- */
.sec-head { max-width: 64ch; }
.sec-head h2 { margin-top: 16px; }
.sec-head p { margin-top: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- model / process steps (4 stage) ---------- */
.model { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: 52px; }
.model__cell { background: var(--surface); padding: 32px 28px 36px; position: relative; transition: background var(--t-fast); }
.model__cell:hover { background: var(--surface-2); }
.model__idx { font-family: var(--mono); font-size: .76rem; color: var(--brass); letter-spacing: .1em; }
.model__cell h3 { font-size: 1.18rem; margin-top: 18px; }
.model__cell p { font-size: .96rem; margin-top: 10px; }
@media (max-width: 860px) { .model { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .model { grid-template-columns: 1fr; } }

/* ---------- divisions ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 36px 30px; transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(14,42,32,.35); border-color: var(--line-brass); }
.card__ico { width: 46px; height: 46px; color: var(--pine); }
.card h3 { margin-top: 22px; }
.card p { margin-top: 12px; font-size: .97rem; }
@media (max-width: 880px) { .cards { grid-template-columns: 1fr; } }

/* ---------- split (image-less, line art) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--rev { grid-template-columns: .95fr 1.05fr; }
.split__art { position: relative; aspect-ratio: 4/3.2; border-radius: var(--r-lg); overflow: hidden; background: var(--pine); }
.split__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 820px) { .split, .split--rev { grid-template-columns: 1fr; } .split__art { order: -1; } }

/* values list */
.values { margin-top: 30px; display: grid; gap: 2px; }
.value-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row .n { font-family: var(--mono); color: var(--brass); font-size: .82rem; }
.value-row h4 { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.value-row p { font-size: .95rem; margin-top: 4px; }

/* ---------- deal flow rail (signature) ---------- */
.flow { background: var(--pine); color: var(--on-dark); }
.flow .eyebrow { color: var(--brass-bright); }
.flow .eyebrow::before { background: var(--brass-bright); }
.flow h2 { color: #fff; }
.flow p.lead { color: var(--on-dark-mut); }
.rail { position: relative; margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rail__line { position: absolute; top: 26px; left: 7%; right: 7%; height: 2px; background: rgba(189,154,78,.25); z-index: 0; }
.rail__line::after { content: ""; position: absolute; inset: 0; width: var(--draw, 0%); background: var(--brass-bright); transition: width 1.4s cubic-bezier(.16,1,.3,1); }
.step { position: relative; z-index: 1; text-align: left; }
.step__dot { width: 54px; height: 54px; border-radius: 50%; background: var(--pine); border: 2px solid var(--brass); color: var(--brass-bright); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; font-size: 1.05rem; }
.step h3 { color: #fff; margin-top: 22px; font-size: 1.4rem; }
.step .role { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-bright); margin-top: 6px; }
.step p { color: var(--on-dark-mut); font-size: .96rem; margin-top: 12px; }
@media (max-width: 760px) { .rail { grid-template-columns: 1fr; gap: 36px; } .rail__line { display: none; } }

/* ---------- team grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.member { text-align: center; }
.avatar {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.2rem; color: var(--brass-bright);
  background: linear-gradient(155deg, var(--pine), var(--ink));
  border: 1px solid var(--line-brass); position: relative; overflow: hidden;
  transition: transform var(--t-med);
}
.avatar::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(189,154,78,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(189,154,78,.10) 1px,transparent 1px); background-size: 22px 22px; opacity:.6; }
.member:hover .avatar { transform: translateY(-4px); }
.member h3 { font-size: 1.15rem; margin-top: 16px; }
.member .role { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-top: 6px; }
.team-group + .team-group { margin-top: 60px; }
.team-group__label { font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA band ---------- */
.band { background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.band__grid { position:absolute; inset:0; opacity:.4; background-image: linear-gradient(rgba(189,154,78,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(189,154,78,.08) 1px,transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%); }
.band > * { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band p { color: var(--on-dark-mut); margin: 16px auto 0; max-width: 48ch; }
.band .hero__cta { justify-content: center; }

/* ---------- markets ---------- */
.markets { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.market { font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); background: var(--surface); transition: border-color var(--t-fast), color var(--t-fast); }
.market:hover { border-color: var(--brass); color: var(--moss); }
.market.on-dark { border-color: rgba(189,154,78,.4); color: var(--on-dark); background: transparent; }

/* ---------- page hero (interior) ---------- */
.phead { background: var(--pine); color: var(--on-dark); padding-top: clamp(120px, 16vh, 168px); padding-bottom: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.phead__grid { position:absolute; inset:0; opacity:.45; background-image: linear-gradient(rgba(189,154,78,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(189,154,78,.07) 1px,transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, #000, transparent 75%); }
.phead .wrap { position: relative; z-index: 1; }
.phead h1 { color: #fff; max-width: 18ch; margin-top: 18px; }
.phead p { color: var(--on-dark-mut); max-width: 56ch; margin-top: 20px; font-size: clamp(1.02rem,1.5vw,1.2rem); }
.phead .eyebrow { color: var(--brass-bright); } .phead .eyebrow::before { background: var(--brass-bright); }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(189,154,78,.16); }
.field textarea { resize: vertical; min-height: 130px; }
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--pine); flex: none; }
.consent label { font-family: var(--sans); font-size: .82rem; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.5; }
.consent a { color: var(--moss); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: .85rem; color: var(--muted-soft); }
.form-ok { display:none; padding: 16px 18px; border-radius: var(--radius); background: rgba(46,107,79,.1); border: 1px solid rgba(46,107,79,.3); color: var(--pine); font-weight: 600; }
.form-ok.show { display: block; }

.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
@media (max-width: 820px) { .contact-split { grid-template-columns: 1fr; } }
.info-row { padding: 20px 0; border-top: 1px solid var(--line); }
.info-row:first-child { border-top: 0; }
.info-row .k { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.info-row .v { margin-top: 6px; color: var(--ink); font-size: 1.05rem; }
.info-row .v a:hover { color: var(--moss); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin-top: 40px; }
.legal h3 { font-size: 1.1rem; margin-top: 26px; }
.legal p, .legal li { color: var(--muted); margin-top: 12px; font-size: .98rem; }
.legal ul { margin-top: 12px; padding-left: 22px; list-style: disc; }
.legal li { margin-top: 6px; }
.legal .updated { font-family: var(--mono); font-size: .8rem; color: var(--muted-soft); margin-top: 8px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--on-dark-mut); padding-block: clamp(48px, 6vw, 72px) 32px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { color: #fff; }
.foot-brand .brand .sub { color: var(--on-dark-mut); }
.foot-brand p { margin-top: 18px; max-width: 34ch; font-size: .95rem; color: var(--on-dark-mut); }
.foot-col h4 { font-family: var(--mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.foot-col ul { margin-top: 16px; display: grid; gap: 11px; }
.foot-col a { font-size: .95rem; color: var(--on-dark); transition: color var(--t-fast); }
.foot-col a:hover { color: var(--brass-bright); }
.foot-addr { font-size: .95rem; color: var(--on-dark); font-style: normal; line-height: 1.7; }
.foot-bottom { margin-top: clamp(40px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(189,154,78,.2); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: .82rem; }
.foot-bottom .legal-links { display: flex; gap: 22px; }
.foot-bottom .legal-links a:hover { color: var(--brass-bright); }
.foot-social { display: flex; gap: 14px; margin-top: 22px; }
.foot-social a { width: 38px; height: 38px; border: 1px solid rgba(189,154,78,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--on-dark); transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.foot-social a:hover { border-color: var(--brass); color: var(--brass-bright); transform: translateY(-2px); }
.foot-social svg { width: 17px; height: 17px; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

.disclaimer { font-size: .78rem; color: var(--muted-soft); line-height: 1.6; margin-top: 40px; max-width: 90ch; }

/* ---------- reveal animation (progressive enhancement) ---------- */
.reveal { transition: opacity var(--t-med), transform var(--t-med); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in, .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); z-index: 200; font-weight: 600; }
.skip:focus { left: 8px; }
