/* ============================================================
   RN Capital — stylesheet
   ============================================================ */

:root {
  --charcoal-950: #0b0c0f;
  --charcoal-900: #111318;
  --charcoal-800: #181b21;
  --charcoal-700: #22262e;
  --charcoal-600: #343a45;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);

  --cream: #f7f5f1;
  --cream-dim: #efece5;
  --paper: #ffffff;
  --ink: #15161a;
  --ink-soft: #4a4d55;
  --ink-faint: #7a7d85;
}

:root {
  --copper: #b3814a;
  --copper-light: #d8a978;
  --copper-dark: #8a6238;
  --silver: #c7cbd1;

  --max-w: 1140px;
  --radius: 14px;
  --radius-sm: 8px;

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.14);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
section { position: relative; }
section[id] { scroll-margin-top: 84px; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--copper);
}
section.dark .eyebrow { color: var(--copper-light); }
section.dark .eyebrow::before { background: var(--copper-light); }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 14px;
  color: var(--ink);
}
section.dark .section-head h2 { color: var(--paper); }
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
}
section.dark .section-head p { color: rgba(255,255,255,0.68); }

.pad { padding: 108px 0; }
@media (max-width: 640px) { .pad { padding: 76px 0; } }

section.light { background: var(--paper); color: var(--ink); }
section.cream { background: var(--cream); color: var(--ink); }
section.dark { background: var(--charcoal-950); color: var(--paper); }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease, color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--copper-light), var(--copper) 55%, var(--copper-dark));
  color: #1a1206;
  box-shadow: 0 10px 30px rgba(179, 129, 74, 0.35);
}
.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--paper);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.6); }
.btn-ghost-light {
  border-color: rgba(21,22,26,0.2);
  color: var(--ink);
}
.btn-ghost-light:hover { border-color: rgba(21,22,26,0.5); }
.btn-block { width: 100%; }

/* -------------------- Nav -------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color .35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  padding: 13px 0;
  background: rgba(11, 12, 15, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 34px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--paper);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 34px; height: 26px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--paper);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}
.nav-toggle span { top: 12px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--charcoal-950);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 17px; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0c0d10 url("../assets/hero-bg.jpg") center 30% / cover no-repeat;
  color: var(--paper);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0.55) 40%, rgba(8,9,11,0.92) 100%),
    linear-gradient(90deg, rgba(6,7,9,0.75) 0%, rgba(6,7,9,0.25) 55%, rgba(6,7,9,0.55) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 90px;
}
.hero-inner { max-width: 700px; }
.hero-inner .eyebrow { color: var(--copper-light); margin-bottom: 22px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--copper-light), var(--copper) 60%, var(--silver));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-audience {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.hero-audience span {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 8px 4px;
}
.hero-audience .chip {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
}
.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 20px;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  background: var(--copper-light);
  border-radius: 50%;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { opacity: 0; }
}

/* -------------------- Grids / Cards -------------------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid rgba(21,22,26,0.08);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(21,22,26,0.14); }
.card .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--copper);
  font-weight: 600;
  letter-spacing: .08em;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 12px;
  color: var(--ink);
}
.card p { color: var(--ink-soft); font-size: 15px; }

.card-dark {
  background: var(--charcoal-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.card-dark h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 12px;
}
.card-dark p { color: rgba(255,255,255,0.68); font-size: 15px; }

/* -------------------- Purpose section icon marks -------------------- */
.mark {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--cream-dim), var(--cream));
  border: 1px solid rgba(21,22,26,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-dark);
  font-family: var(--font-display);
  font-weight: 600;
}

/* -------------------- Searcher -------------------- */
.searcher {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .searcher { grid-template-columns: 1fr; gap: 40px; } }

.searcher-id {
  position: sticky;
  top: 110px;
}
.searcher-id .avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--charcoal-800), var(--charcoal-950));
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-light);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 22px;
}
.searcher-id h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.searcher-id .role {
  margin-top: 6px;
  color: var(--copper-dark);
  font-weight: 600;
  font-size: 14px;
}
.searcher-id p { margin-top: 16px; color: var(--ink-soft); font-size: 15px; }

.pillars { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.pillar {
  border: 1px solid rgba(21,22,26,0.08);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: var(--cream);
}
.pillar h4 {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 600;
  color: var(--ink);
}
.pillar p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.goal-line {
  margin-top: 26px;
  padding: 22px 26px;
  border-left: 3px solid var(--copper);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  font-style: italic;
}

/* -------------------- Thesis -------------------- */
.thesis-lede { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 800px; }
.thesis-lede + .thesis-lede { margin-top: 20px; color: rgba(255,255,255,0.6); font-size: 16px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 64px;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 44px; } }

.list-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--paper);
}
.num-list { display: flex; flex-direction: column; gap: 22px; }
.num-list li { display: flex; gap: 18px; }
.num-list .n {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--copper-light);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.num-list .t strong {
  display: block;
  color: var(--paper);
  font-size: 15.5px;
  margin-bottom: 4px;
}
.num-list .t span { color: rgba(255,255,255,0.62); font-size: 14.5px; }

/* -------------------- Tables -------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(21,22,26,0.09);
  background: var(--paper);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 14.5px;
}
thead th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 16px 22px;
  border-bottom: 1px solid rgba(21,22,26,0.09);
  background: var(--cream);
}
tbody td {
  padding: 17px 22px;
  border-bottom: 1px solid rgba(21,22,26,0.06);
  color: var(--ink-soft);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody td:first-child { color: var(--ink); font-weight: 600; }
.priority-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream-dim);
  color: var(--copper-dark);
  font-weight: 700;
  font-size: 12.5px;
}
.tables-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tables-head h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.tables-head p { color: var(--ink-soft); font-size: 14.5px; }
.tables-block + .tables-block { margin-top: 64px; }

/* -------------------- The Ask -------------------- */
.ask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .ask-grid { grid-template-columns: 1fr; gap: 44px; } }

.ask-copy p { color: rgba(255,255,255,0.75); font-size: 16px; }
.ask-copy p + p { margin-top: 16px; }

.stack-bar {
  display: flex;
  width: 100%;
  height: 46px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stack-bar div { display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #14100a; }
.seg-debt { width: 60%; background: linear-gradient(135deg, var(--copper-light), var(--copper)); }
.seg-seller { width: 22.5%; background: linear-gradient(135deg, var(--silver), #8f95a0); color: #14171c; }
.seg-equity { width: 17.5%; background: var(--charcoal-700); color: rgba(255,255,255,0.85); border-left: 1px solid var(--line); }

.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
}
.stack-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.debt { background: var(--copper); }
.dot.seller { background: var(--silver); }
.dot.equity { background: var(--charcoal-600); border: 1px solid rgba(255,255,255,0.3); }

.ask-notes { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.ask-notes li {
  padding-left: 22px;
  position: relative;
  color: rgba(255,255,255,0.72);
  font-size: 14.5px;
}
.ask-notes li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--copper-light);
}

/* -------------------- Audience -------------------- */
.audience-card {
  border: 1px solid rgba(21,22,26,0.09);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.audience-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.audience-card p { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.audience-card a {
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--copper-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.audience-card a::after { content: "→"; transition: transform .25s ease; }
.audience-card a:hover::after { transform: translateX(3px); }

/* -------------------- Contact -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info p { color: var(--ink-soft); font-size: 16px; }
.contact-direct {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-direct a {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid rgba(21,22,26,0.18);
  width: fit-content;
  padding-bottom: 2px;
}
.contact-direct a:hover { border-color: var(--copper); color: var(--copper-dark); }

form.contact-form {
  background: var(--cream);
  border: 1px solid rgba(21,22,26,0.08);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  border: 1px solid rgba(21,22,26,0.15);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(179,129,74,0.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--ink-faint); }
.form-status {
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(75, 145, 100, 0.14); color: #2f6b45; }
.form-status.err { background: rgba(190, 80, 70, 0.14); color: #9c3a30; }

/* -------------------- Footer -------------------- */
.site-footer {
  position: relative;
  background: #0c0d10 url("../assets/footer-bg.jpg") center / cover no-repeat;
  color: rgba(255,255,255,0.75);
  padding: 72px 0 34px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,7,9,0.55), rgba(6,7,9,0.92));
}
.site-footer .wrap { position: relative; z-index: 2; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--paper);
}
.footer-tagline { max-width: 340px; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.55); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h5 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 16px; font-weight: 600;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14.5px; color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--copper-light); }
.footer-bottom {
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}
.footer-disclaimer {
  max-width: 760px;
  margin-top: 22px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
}

/* -------------------- Reveal animation -------------------- */
/* Content is ALWAYS visible by default — this is a fund website, not a demo
   reel, and nothing here should depend on a scroll event firing correctly
   (deep links, crawlers, screenshots, slow devices, JS errors, etc. all need
   to see full content). The .reveal/.in classes add a purely cosmetic,
   non-hiding lift-in for users who scroll normally. */
.reveal {
  opacity: 1;
  transform: translateY(10px);
  transition: transform .7s var(--ease);
}
.reveal.in { transform: translateY(0); }
