:root {
  --bg: #F8F7F4; --bg-card: #FFFFFF; --bg-dark: #1A1A1A;
  --ink: #1A1A1A; --ink-2: #404040; --ink-3: #737373; --ink-4: #A3A3A3;
  --line: #E5E5E5; --red: #002FA7; --red-soft: rgba(0,47,167,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }

.nav { position: sticky; top: 0; z-index: 100; background: rgba(248,247,244,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 18px 60px; display: flex; align-items: center; justify-content: space-between; }
.nav .brand, a.brand, a.brand:link, a.brand:visited, a.brand:hover, a.brand:active, a.brand:focus { font-family: 'Fraunces', serif !important; font-weight: 700 !important; font-size: 22px !important; letter-spacing: -0.4px !important; font-variation-settings: "opsz" 9 !important; text-decoration: none !important; color: var(--ink) !important; border-bottom: none !important; background: none !important; }
.nav .brand .red, a.brand .red { color: var(--red) !important; font-weight: 700 !important; }
.nav .links { display: flex; gap: 32px; font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.nav .links a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav .links a:hover, .nav .links a.active { color: var(--red); }
.nav .btn-nav { padding: 10px 20px; background: var(--ink); color: var(--bg); border-radius: 6px; font-size: 12px; text-decoration: none; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1px; }

.section { padding: 120px max(60px, calc((100vw - 1280px) / 2 + 60px)); margin: 0; position: relative; overflow: hidden; }
.section > *:not(.hero-motion) { position: relative; z-index: 2; max-width: 1280px; margin-left: auto; margin-right: auto; }
.section .hero-motion { opacity: 0.85; }

/* Alternating section tint — applied via body class on each themed page */
body.theme-buyout section.section:nth-of-type(even),
body.theme-growth section.section:nth-of-type(even),
body.theme-vc section.section:nth-of-type(even),
body.theme-ma section.section:nth-of-type(even),
body.theme-careers section.section:nth-of-type(even),
body.theme-candidates section.section:nth-of-type(even),
body.theme-hires section.section:nth-of-type(even) {
  background: linear-gradient(180deg, rgba(0,47,167,0.025) 0%, rgba(0,47,167,0.05) 100%);
}
body.theme-buyout .hero,
body.theme-growth .hero,
body.theme-vc .hero,
body.theme-ma .hero,
body.theme-careers .hero,
body.theme-candidates .hero,
body.theme-hires .hero {
  background: linear-gradient(180deg, #FAF9F6 0%, #F4F2EC 100%);
}
.hero { padding: 140px max(60px, calc((100vw - 1280px) / 2 + 60px)) 100px; margin: 0; position: relative; overflow: hidden; }
.hero > *:not(.hero-motion) { position: relative; z-index: 2; }
.hero-motion { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* Section surface variants for rhythm */
.section.surface-tint { background: linear-gradient(180deg, rgba(0,47,167,0.025), rgba(0,47,167,0.04)); max-width: none; padding-left: max(60px, calc((100vw - 1280px) / 2 + 60px)); padding-right: max(60px, calc((100vw - 1280px) / 2 + 60px)); }
.section.surface-cream { background: #F1EFE9; max-width: none; padding-left: max(60px, calc((100vw - 1280px) / 2 + 60px)); padding-right: max(60px, calc((100vw - 1280px) / 2 + 60px)); }

.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 32px; display: flex; width: fit-content; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--red); }

.h-display { font-family: 'Fraunces', serif; font-size: clamp(48px, 7vw, 88px); font-weight: 700; letter-spacing: -1.5px; line-height: 1; color: var(--ink); margin-bottom: 32px; font-variation-settings: "opsz" 9; }
.h-display .red { color: var(--red); }
.h-display .italic { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; letter-spacing: -1px; font-variation-settings: "opsz" 9; }

.h-sub { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 680px; margin-bottom: 40px; }

.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 18px 32px; border-radius: 6px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; text-decoration: none; border: none; cursor: pointer; transition: transform 0.15s, opacity 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-blue { background: var(--red); color: #fff; }

.h2 { font-family: 'Fraunces', serif; font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.05; max-width: 820px; font-variation-settings: "opsz" 9; }
.h2 .red { color: var(--red); }
.h2 .italic { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-variation-settings: "opsz" 9; }

/* Two-column body content */
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; margin-top: 60px; }
.two-col .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1.5px; padding-top: 8px; }
.two-col .body p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin-bottom: 20px; }
.two-col .body p strong { color: var(--ink); font-weight: 600; }
.two-col .body ul { list-style: none; margin-top: 8px; }
.two-col .body ul li { font-size: 16px; line-height: 1.55; color: var(--ink-2); padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.two-col .body ul li::before { content: '→'; color: var(--red); font-family: 'JetBrains Mono', monospace; font-size: 14px; padding-top: 2px; }

/* Numbered list */
.numbered { margin-top: 60px; border-top: 1px solid var(--ink); }
.numbered .row { display: grid; grid-template-columns: 80px 280px 1fr; align-items: flex-start; padding: 36px 0; border-bottom: 1px solid var(--line); gap: 40px; }
.numbered .row .num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--red); padding-top: 8px; }
.numbered .row h4 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; font-variation-settings: "opsz" 9; }
.numbered .row p { font-size: 15px; color: var(--ink-3); line-height: 1.6; }

/* Promise grid (4-up) */
.promise-grid { margin-top: 60px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.promise { padding: 40px 0; border-bottom: 1px solid var(--line); padding-right: 40px; }
.promise:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 40px; }
.promise:nth-child(even) { padding-left: 40px; }
.promise .num { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--red); margin-bottom: 14px; letter-spacing: 1px; }
.promise h4 { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 12px; font-variation-settings: "opsz" 9; }
.promise p { font-size: 15px; line-height: 1.6; color: var(--ink-3); }

/* Placement list (compact) */
.placements { margin-top: 60px; border-top: 1px solid var(--ink); }
.placement { display: grid; grid-template-columns: 1fr 240px 100px; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.placement .name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 19px; letter-spacing: -0.3px; }
.placement .firm { font-size: 14px; color: var(--ink-3); }
.placement .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--red); text-transform: uppercase; letter-spacing: 1px; text-align: right; }

/* Featured placements (with face) */
.featured-placements { margin-top: 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.fp-card { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; align-items: center; }
.fp-card:nth-child(3n+1) { padding-left: 0; }
.fp-card:nth-child(3n+2) { padding-left: 28px; padding-right: 28px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.fp-card:nth-child(3n) { padding-left: 28px; padding-right: 0; }
.fp-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #E5E5E5, #D4D4D4); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: var(--ink-3); }
.fp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fp-meta { min-width: 0; flex: 1; }
.fp-strategy { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--red); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 4px; }
.fp-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 18px; letter-spacing: -0.3px; line-height: 1.2; margin-bottom: 4px; color: var(--ink); }
.fp-firm { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.fp-card.hidden { display: none; }
@media (max-width: 900px) {
  .featured-placements { grid-template-columns: 1fr; }
  .fp-card, .fp-card:nth-child(3n+1), .fp-card:nth-child(3n+2), .fp-card:nth-child(3n) { padding: 24px 0; border-left: none; border-right: none; }
}

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 32px 40px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: 'Fraunces', serif; font-size: 56px; font-weight: 700; letter-spacing: -1.5px; font-variation-settings: "opsz" 9; line-height: 1; margin-bottom: 8px; }
.stat .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 1px; }

/* Dark CTA */
.about-dark { background: var(--bg-dark); color: var(--bg); padding: 120px 60px; border-radius: 12px; margin: 80px 60px; position: relative; overflow: hidden; }
.about-dark > * { position: relative; z-index: 2; }
.about-dark .hero-motion { z-index: 0; opacity: 0.6; }
.about-dark .eyebrow { color: var(--ink-4); }
.about-dark .h2 { color: var(--bg); }
.about-dark .body-text { font-size: 18px; line-height: 1.7; color: #B8B8B8; max-width: 720px; margin-top: 32px; }
.about-dark .body-text strong { color: var(--bg); font-weight: 600; }

.final-cta { text-align: center; padding: 160px 60px; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.final-cta > * { position: relative; z-index: 2; }
.final-cta .hero-motion { z-index: 0; opacity: 0.5; }
.final-cta .eyebrow { color: var(--ink-4); justify-content: center; }
.final-cta .h2 { margin: 0 auto 32px; color: var(--bg); text-align: center; }
.final-cta .h-sub { margin: 0 auto 40px; color: #B8B8B8; text-align: center; }
.final-cta .cta-row { justify-content: center; }
.final-cta .btn-primary { background: var(--red); color: #fff; }
.final-cta .btn-secondary { color: var(--bg); border-color: #444; }

.footer { background: var(--bg-dark); color: #888; padding: 60px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 1px; text-align: center; }
.footer .row { display: flex; justify-content: center; gap: 32px; margin-bottom: 16px; }
.footer a { color: #B8B8B8; text-decoration: none; }
.footer a:hover { color: var(--red); }

/* Audience toggle */
.audience-toggle { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 32px; }
.audience-toggle button { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; padding: 10px 20px; border: none; background: transparent; color: var(--ink-3); border-radius: 999px; cursor: pointer; transition: all 0.2s; }
.audience-toggle button.active { background: var(--ink); color: var(--bg); }
.audience-toggle button:hover:not(.active) { color: var(--ink); }
.view { display: none; }
.view.active { display: block; }

/* Background video hero */
.hero-video { position: relative; overflow: hidden; padding: 0; max-width: none; margin: 0; }
.hero-video .video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video .video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(248,247,244,0.4) 0%, rgba(248,247,244,0.85) 70%, var(--bg) 100%); z-index: 1; }
.hero-video .hero-inner { position: relative; z-index: 2; padding: 160px 60px 120px; max-width: 1280px; margin: 0 auto; }

/* ============ PER-PAGE HERO MOTION (CSS-only, subtle) ============ */

/* BUYOUT — institutional grid + slow drifting capital mass */
.hero-motion.buyout {
  background:
    linear-gradient(rgba(0,47,167,0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(0,47,167,0.05) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(0,47,167,0.13), transparent 70%);
  animation: buyoutShift 32s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes buyoutShift {
  0%, 100% { background-position: 0 0, 0 0, 0% 0%; }
  50%      { background-position: 56px 28px, 28px 56px, 100% 100%; }
}

/* GROWTH — diagonal upward sweep */
.hero-motion.growth {
  background: linear-gradient(135deg, transparent 35%, rgba(0,47,167,0.10) 50%, transparent 65%);
  background-size: 250% 250%;
  animation: growthSweep 14s linear infinite;
}
@keyframes growthSweep {
  0%   { background-position: 100% 100%; }
  100% { background-position: -50% -50%; }
}

/* VC — drifting particle field */
.hero-motion.vc {
  background:
    radial-gradient(circle at 20% 30%, rgba(0,47,167,0.30) 1.5px, transparent 2px) 0 0 / 140px 140px,
    radial-gradient(circle at 65% 70%, rgba(0,47,167,0.22) 1.5px, transparent 2px) 0 0 / 200px 200px,
    radial-gradient(circle at 85% 15%, rgba(0,47,167,0.35) 2px, transparent 3px) 0 0 / 280px 280px,
    radial-gradient(circle at 40% 85%, rgba(0,47,167,0.18) 1.5px, transparent 2px) 0 0 / 160px 160px;
  animation: vcDrift 45s linear infinite;
}
@keyframes vcDrift {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 140px 70px, -200px 100px, 280px -140px, -160px -80px; }
}

/* M&A — two masses orbiting + merging */
.hero-motion.ma {
  background:
    radial-gradient(circle 360px at 25% 50%, rgba(0,47,167,0.14), transparent 70%),
    radial-gradient(circle 360px at 75% 50%, rgba(26,26,26,0.10), transparent 70%);
  animation: maOrbit 20s ease-in-out infinite;
}
@keyframes maOrbit {
  0%, 100% { background-position: 0 0, 0 0; }
  50%      { background-position: 18% 4%, -18% -4%; }
}

/* CAREERS — deal pipeline bands sliding right */
.hero-motion.careers {
  background: repeating-linear-gradient(90deg,
    transparent 0 100px,
    rgba(0,47,167,0.06) 100px 102px,
    transparent 102px 240px,
    rgba(0,47,167,0.04) 240px 241px,
    transparent 241px 380px);
  animation: careersFlow 22s linear infinite;
}
@keyframes careersFlow {
  0%   { background-position: 0 0; }
  100% { background-position: 380px 0; }
}

/* CANDIDATES — soft welcoming pulse */
.hero-motion.candidates {
  background: radial-gradient(circle at 50% 50%, rgba(0,47,167,0.12), transparent 65%);
  animation: candidatesPulse 11s ease-in-out infinite;
}
@keyframes candidatesPulse {
  0%, 100% { transform: scale(1);    opacity: 0.55; }
  50%      { transform: scale(1.18); opacity: 0.85; }
}

/* HIRES — slow gradient wave */
.hero-motion.hires {
  background: linear-gradient(120deg, transparent 38%, rgba(0,47,167,0.08) 50%, transparent 62%);
  background-size: 300% 300%;
  animation: hiresWave 24s linear infinite;
}
@keyframes hiresWave {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* DARK CTA variant — same effects but tuned for dark backgrounds */
.about-dark .hero-motion, .final-cta .hero-motion {
  mix-blend-mode: screen;
}
.about-dark .hero-motion.dark-grid, .final-cta .hero-motion.dark-grid {
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 60px 60px,
    radial-gradient(ellipse at 70% 30%, rgba(0,47,167,0.30), transparent 70%);
  animation: buyoutShift 35s ease-in-out infinite;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  .hero-motion { animation: none !important; }
}

@media (max-width: 900px) {
  .nav { padding: 14px 24px; }
  .nav .links { display: none; }
  .section, .hero, .final-cta { padding: 80px 24px; }
  .about-dark { margin: 0 24px; padding: 80px 32px; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise:nth-child(odd), .promise:nth-child(even) { padding: 32px 0; border-right: none; }
  .numbered .row { grid-template-columns: 1fr; gap: 8px; }
  .placement { grid-template-columns: 1fr; gap: 8px; }
  .placement .role { text-align: left; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); padding-right: 24px; }
}
