/* Beofor Capital — site styles */

:root {
  --burgundy: #7a0b26;
  --burgundy-dark: #5c071c;
  --burgundy-tint: #f6ecee;
  --ink: #1f1d1b;
  --muted: #5e5a55;
  --rule: #e4ded6;
  --paper: #fbf9f6;
  --white: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--burgundy); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 0.9em;
}

.lede { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.site-nav a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--burgundy); }
.site-nav .nav-hide-sm { display: inline; }

.btn {
  display: inline-block;
  padding: 0.75em 1.4em;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.site-nav .btn { color: var(--white); padding: 0.55em 1.1em; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background: #22303f url("/images/riverside.jpg") center 60% / cover no-repeat;
  min-height: min(82vh, 720px);
  display: flex; align-items: flex-end;
}
.hero { isolation: isolate; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-video.is-playing { opacity: 1; }
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(14, 22, 34, 0.82) 0%, rgba(14, 22, 34, 0.55) 45%, rgba(14, 22, 34, 0.15) 100%);
}
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: clamp(56px, 10vh, 104px); }
.hero h1 { max-width: 15em; color: var(--white); }
.hero h1 .line { display: block; }
.hero .eyebrow { color: #f1d7dd; }
.hero p.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 36em; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-short { min-height: 300px; }
.hero-short .wrap { padding-top: 72px; padding-bottom: 56px; }

/* ---------- Sections ---------- */

section { padding: clamp(64px, 9vw, 112px) 0; }
.section-white { background: var(--white); }
.section-head { max-width: 48em; margin-bottom: clamp(32px, 5vw, 56px); }

.grid-3 {
  display: grid; gap: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.pillar { border-top: 2px solid var(--burgundy); padding-top: 20px; }
.pillar p { color: var(--muted); margin: 0; }

/* Sub-portfolio cards */
.sleeves {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  background: var(--rule);
  border: 1px solid var(--rule);
}
.sleeve { background: var(--white); padding: 28px 28px 30px; }
.sleeve-num {
  font-family: var(--serif); font-size: 0.95rem; color: var(--burgundy);
  margin: 0 0 6px;
}
.sleeve h3 { margin-bottom: 4px; }
.sleeve .role {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}
.sleeve p:last-child { margin: 0; color: var(--muted); }

.risk-note {
  margin-top: 28px; font-size: 0.88rem; color: var(--muted); max-width: 60em;
}

/* Steps */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(24px, 3vw, 36px);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 16px;
  border: 1px solid var(--burgundy); border-radius: 50%;
  font-family: var(--serif); color: var(--burgundy);
}
.steps p { color: var(--muted); margin: 0; }

/* Terms */
.terms {
  display: grid; gap: 0 clamp(24px, 4vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin: 0;
}
.terms div { border-top: 1px solid var(--rule); padding: 20px 0; }
.terms dt { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.terms dd { margin: 0; color: var(--muted); }

/* Founder */
.founder {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: start;
}
.founder img { border-radius: 2px; width: 100%; max-width: 260px; }
.founder .creds {
  font-size: 0.9rem; color: var(--muted); letter-spacing: 0.02em;
  border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 20px;
}

/* Contact band */
.contact {
  position: relative; color: var(--white);
  background: var(--burgundy) url("/images/red-pattern.jpg") center / cover no-repeat;
}
.contact::before {
  content: ""; position: absolute; inset: 0; background: rgba(70, 5, 20, 0.55);
}
.contact .wrap { position: relative; }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: #f1d7dd; }
.contact p { color: rgba(255, 255, 255, 0.92); max-width: 46em; }
.contact-methods {
  display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 32px;
}
.contact-methods .label {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: #f1d7dd; margin-bottom: 4px;
}
.contact-methods a, .contact-methods span.value {
  font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--white); text-decoration: none; overflow-wrap: anywhere;
}
.contact-methods a:hover { text-decoration: underline; color: var(--white); }

/* About page bio */
.bio {
  display: grid; gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: start;
}
.bio aside img { width: 100%; max-width: 260px; border-radius: 2px; margin-bottom: 20px; }
.bio aside ul { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; color: var(--muted); }
.bio aside li { border-top: 1px solid var(--rule); padding: 10px 0; }
.bio .title {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--burgundy); margin-top: -0.4em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1b1918; color: #bdb6ad; font-size: 0.85rem; line-height: 1.6;
  padding: 48px 0 40px;
}
.site-footer a { color: #e9e3db; }
.site-footer .footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #36322f;
}
.site-footer .firm { font-family: var(--serif); font-size: 1.1rem; color: #f3eee8; margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer .disclosure { max-width: 72em; }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand img { height: 32px; }
  .site-nav .nav-hide-sm { display: none; }
  .founder, .bio { grid-template-columns: 1fr; }
  .founder img, .bio aside img { max-width: 200px; }
  .sleeves { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sub-portfolio groups (foundation vs. active) */
.sleeve-group + .sleeve-group { margin-top: clamp(40px, 6vw, 64px); }
.group-head { max-width: 46em; margin-bottom: 20px; }
.group-head h3 { font-size: 1.45rem; margin-bottom: 6px; }
.group-head p { color: var(--muted); margin: 0; }
@media (min-width: 721px) {
  .sleeves.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.bio aside .cred-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--burgundy); margin: 20px 0 4px;
}
.bio aside ul + .cred-label { margin-top: 24px; }
