/* =========================================================================
   Dark Horse Capital — site stylesheet
   Design language carried over from the investor deck:
   Cormorant Garamond (display) · Inter Tight (body) · JetBrains Mono (labels)
   Ink-and-paper palette with a single blue accent.
   ========================================================================= */

:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --paper: #fafaf7;
  --paper-warm: #f4f2ec;
  --grey-90: #181818;
  --grey-70: #404040;
  --grey-50: #737373;
  --grey-40: #8a8a8a;
  --grey-30: #b8b8b8;
  --grey-15: #d9d6cf;
  --grey-08: #ebe8e2;
  --rule: #2a2a2a;
  --accent: #4472C4;
  --accent-deep: #2c4d8f;
  --accent-soft: rgba(68, 114, 196, 0.12);
  --serif: "Cormorant Garamond", "Garamond", serif;
  --sans: "Inter Tight", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", monospace;
  --maxw: 1240px;
  --pad: clamp(22px, 6vw, 96px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02", "kern";
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Atmospheric background: deep radial wash + film grain, like the deck stage */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(ellipse at 28% 14%, #141414 0%, #070707 58%, #000 100%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(64px, 11vh, 140px) 0; }
.section--tight { padding: clamp(48px, 8vh, 96px) 0; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--rule) 8%, var(--rule) 92%, transparent); border: 0; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey-50);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--grey-50); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; line-height: 1.04; }
h1 { font-size: clamp(40px, 6.4vw, 86px); }
h2 { font-size: clamp(30px, 4.4vw, 56px); }
h3 { font-size: clamp(21px, 2.4vw, 30px); font-weight: 400; }
em { font-style: italic; color: var(--accent); font-family: var(--serif); }
.lede { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.4; color: var(--grey-15); max-width: 40ch; }
p.body { color: var(--grey-30); max-width: 62ch; font-size: clamp(15px, 1.15vw, 17px); }
p.body + p.body { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--grey-50); color: var(--paper);
  transition: border-color .35s, background .35s, color .35s, gap .35s;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); gap: 16px; }
.btn--solid { background: var(--accent); border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn .arrow { transition: transform .35s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,7,7,0.6); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { height: 34px; width: auto; filter: invert(1) brightness(1.12); opacity: .95; }
.brand .wordmark {
  font-family: var(--serif); font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase;
  line-height: 1; border-left: 1px solid var(--grey-50); padding-left: 14px;
}
.brand .wordmark span { display: block; font-size: 9px; letter-spacing: 0.3em; color: var(--grey-50); margin-top: 4px; font-family: var(--sans); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey-30); position: relative; padding: 6px 0; transition: color .3s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--accent); transition: width .3s;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a.login { border: 1px solid var(--grey-50); padding: 9px 16px; }
.nav-links a.login::after { display: none; }
.nav-links a.login:hover { border-color: var(--accent); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 0; color: var(--paper); cursor: pointer; padding: 8px; }
.nav-toggle svg { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(140px, 22vh, 230px); padding-bottom: clamp(70px, 12vh, 150px); }
.hero h1 { margin: 18px 0 26px; max-width: 16ch; }
.hero .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grey-50); margin-top: 38px; display: flex; gap: 26px; flex-wrap: wrap;
}

/* ---------- Page header (interior pages) ---------- */
.page-head { padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(40px, 6vh, 80px); }
.page-head h1 { max-width: 18ch; margin-top: 16px; }
.page-head .lede { margin-top: 28px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.cell { display: block; background: var(--ink); padding: clamp(26px, 3vw, 40px); transition: background .35s; }
a.cell:hover { background: #101010; }
.cell .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); }
.cell h3 { margin: 14px 0 10px; }
.cell p { color: var(--grey-40); font-size: 15px; line-height: 1.55; }

/* Strategy / fund list */
.fund {
  display: grid; grid-template-columns: 90px 1fr auto; gap: clamp(16px, 3vw, 48px);
  align-items: baseline; padding: clamp(26px, 3.4vw, 42px) 0; border-top: 1px solid var(--rule);
  transition: padding-left .4s;
}
.fund:hover { padding-left: 10px; }
.fund:last-child { border-bottom: 1px solid var(--rule); }
.fund .vintage { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--accent); }
.fund .fund-name { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 34px); font-weight: 400; }
.fund .fund-desc { color: var(--grey-40); font-size: 15px; margin-top: 8px; max-width: 56ch; }
.fund .tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-50); white-space: nowrap; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px); }
.person { }
.avatar {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule); background: linear-gradient(160deg, #131313, #0a0a0a);
  font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); color: var(--grey-30);
  letter-spacing: 0.02em; margin-bottom: 20px; transition: border-color .4s, color .4s;
}
.person:hover .avatar { border-color: var(--accent); color: var(--paper); }
.person .name { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.person .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-top: 8px; }
.person .bio { color: var(--grey-40); font-size: 14.5px; line-height: 1.55; margin-top: 14px; max-width: 40ch; }
.person .li {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-50);
  transition: color .3s;
}
.person .li:hover { color: var(--accent); }
.person .li svg { width: 15px; height: 15px; }

/* ---------- Stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stat { background: var(--ink); padding: clamp(22px,2.6vw,34px); }
.stat .figure { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 300; line-height: 1; }
.stat .figure em { font-size: 0.6em; }
.stat .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-50); margin-top: 12px; }

/* ---------- Protected / investor notice ---------- */
.gate {
  border: 1px solid var(--accent); background: var(--accent-soft);
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start;
}
.gate .eyebrow { color: var(--accent); margin-bottom: 0; }
.gate .eyebrow::before { background: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: clamp(56px, 8vh, 96px) 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-top .brand { margin-bottom: 22px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-50); margin-bottom: 18px; font-weight: 400; }
.footer-col a, .footer-col p { display: block; color: var(--grey-30); font-size: 14px; margin-bottom: 11px; transition: color .3s; }
.footer-col a:hover { color: var(--paper); }
.disclaimer { font-size: 11px; line-height: 1.7; color: var(--grey-50); max-width: 110ch; margin-top: 8px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-50); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-50); }
.field input, .field textarea, .field select {
  background: #0e0e0e; border: 1px solid var(--rule); color: var(--paper);
  font-family: var(--sans); font-size: 15px; padding: 13px 15px; width: 100%;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; }
.d4 { animation-delay: .55s; } .d5 { animation-delay: .7s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; } html { scroll-behavior: auto; } }

/* ---------- Focus visibility (accessibility) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .approach-split { grid-template-columns: 1fr !important; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(8,8,8,0.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--rule);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 18px var(--pad); border-top: 1px solid var(--rule); }
  .nav-links a.login { border: 0; border-top: 1px solid var(--rule); color: var(--accent); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .fund { grid-template-columns: 1fr; gap: 6px; }
  .fund .tag { margin-top: 6px; }
  .people { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
