/* ==========================================================================
   Operating Partners — site stylesheet
   Design system: deep indigo base (#13123D), violet accent (#7C7CF0),
   green = system/after, red = dependency/before. Inter typeface.
   ========================================================================== */

:root {
  --indigo-950: #0D0C2B;
  --indigo-900: #13123D;
  --indigo-800: #1C1B52;
  --indigo-700: #2A2870;
  --accent: #7C7CF0;
  --accent-strong: #5B5BD6;
  --accent-soft: #ECECFD;
  --red: #E5484D;
  --red-soft: #FDECEC;
  --green: #30A46C;
  --green-soft: #E9F6EF;
  --ink: #17172E;
  --ink-soft: #3E3E58;
  --ink-faint: #6B6B85;
  --paper: #FFFFFF;
  --paper-tint: #F7F7FC;
  --line: #E6E6F0;
  --line-dark: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(19, 18, 61, 0.05), 0 8px 28px rgba(19, 18, 61, 0.08);
  --shadow-lift: 0 2px 4px rgba(19, 18, 61, 0.06), 0 16px 44px rgba(19, 18, 61, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: inherit;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

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

.section {
  padding: 96px 0;
}

.section-tint {
  background: var(--paper-tint);
}

.section-dark {
  background: var(--indigo-900);
  color: #fff;
}

.section-dark a {
  color: var(--accent);
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 16px;
}

.section-dark .kicker {
  color: var(--accent);
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.section-dark .lede {
  color: rgba(255, 255, 255, 0.88);
}

.section-head {
  margin-bottom: 56px;
}

.section-head.centered {
  text-align: center;
}

.section-head.centered .lede {
  margin-left: auto;
  margin-right: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(19, 18, 61, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand img.brand-logo {
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 124, 240, 0.35);
}

.btn-primary:hover {
  background: #8F8FF4;
  color: #fff;
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-quiet {
  color: var(--accent-strong);
  border: 1px solid var(--line);
  background: #fff;
}

.btn-quiet:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.site-nav .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

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

.hero {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(124, 124, 240, 0.28), transparent 65%),
    radial-gradient(700px 420px at 8% 110%, rgba(91, 91, 214, 0.22), transparent 60%),
    var(--indigo-900);
  color: #fff;
  padding: 120px 0 110px;
  overflow: hidden;
}

.hero .kicker {
  color: var(--accent);
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 24px;
}

.hero .lede {
  font-size: 1.3rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero {
  padding: 88px 0 72px;
}

.page-hero .lede {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Diagram (problem / solution funnel)
   -------------------------------------------------------------------------- */

.diagram-card {
  background: var(--indigo-950);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 40px 32px 28px;
  margin: 0 auto;
  max-width: 860px;
}

.diagram-sources {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.diagram-source {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.diagram-arrows {
  height: 56px;
  width: 100%;
}

.diagram-arrows path {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1.5;
  fill: none;
}

.diagram-hub {
  margin: 0 auto;
  max-width: 340px;
  text-align: center;
  border-radius: 14px;
  padding: 20px 24px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.diagram-hub small {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  margin-top: 4px;
  opacity: 0.85;
}

.hub-founder {
  background: rgba(229, 72, 77, 0.16);
  border: 1.5px solid var(--red);
  color: #FF8A8E;
}

.hub-system {
  background: rgba(48, 164, 108, 0.16);
  border: 1.5px solid var(--green);
  color: #5BD69A;
}

.diagram-caption {
  text-align: center;
  margin: 28px 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  margin-bottom: 0;
  font-size: 0.97rem;
}

.section-dark .card p {
  color: rgba(255, 255, 255, 0.85);
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-dark .card ul {
  color: rgba(255, 255, 255, 0.85);
}

.card ul li {
  margin-bottom: 6px;
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.chain-line {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.7;
  max-width: 720px;
  margin: 56px auto 0;
  color: var(--ink);
}

.chain-line strong {
  color: var(--accent-strong);
}

/* Cost columns */
.cost-card {
  border-top: 3px solid var(--red);
}

.cost-card h4 {
  margin-bottom: 12px;
}

.cost-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cost-card li {
  margin-bottom: 7px;
}

/* --------------------------------------------------------------------------
   Phases
   -------------------------------------------------------------------------- */

.phase-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: phase;
}

.phase {
  position: relative;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.phase-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

.phase h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.phase p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Deep phase blocks (how-it-works) */
.phase-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.phase-block:last-child {
  border-bottom: 1px solid var(--line);
}

.phase-block .phase-label .phase-num {
  font-size: 0.85rem;
}

.phase-block h3 {
  font-size: 1.4rem;
}

.phase-block .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.phase-block h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.phase-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.phase-block li {
  margin-bottom: 6px;
}

.phase-block .phase-intro {
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   Before / after
   -------------------------------------------------------------------------- */

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.ba-col {
  border-radius: var(--radius);
  padding: 30px 28px;
}

.ba-before {
  background: var(--red-soft);
  border: 1px solid rgba(229, 72, 77, 0.25);
}

.ba-after {
  background: var(--green-soft);
  border: 1px solid rgba(48, 164, 108, 0.25);
}

.ba-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.ba-before h3 { color: var(--red); }
.ba-after h3 { color: var(--green); }

.ba-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ba-col li {
  padding: 9px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.98rem;
}

.ba-col li:first-child {
  border-top: 0;
}

/* --------------------------------------------------------------------------
   Case studies
   -------------------------------------------------------------------------- */

.case-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-card .case-head {
  padding: 32px 36px 24px;
  border-bottom: 1px solid var(--line);
}

.case-card .case-body {
  padding: 28px 36px 36px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}

.badge-live {
  background: var(--green-soft);
  color: var(--green);
}

.badge-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.case-meta {
  color: var(--ink-faint);
  font-size: 0.95rem;
  margin: 0;
}

.case-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.case-cols h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.case-cols .col-before h4 { color: var(--red); }
.case-cols .col-after h4 { color: var(--green); }

.case-cols ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.case-cols li {
  margin-bottom: 8px;
}

.case-result {
  margin: 26px 0 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--paper-tint);
  font-weight: 600;
  font-size: 1rem;
}

/* Scenario vignettes */
.vignette {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.vignette .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.vignette h3 {
  font-size: 1.15rem;
}

.vignette .ba {
  margin-top: 14px;
  font-size: 0.95rem;
  display: grid;
  gap: 8px;
}

.vignette .ba span {
  display: block;
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
}

.vignette .ba span::before {
  position: absolute;
  left: 0;
  top: 1px;
  font-weight: 800;
}

.vignette .ba .b::before {
  content: "×";
  color: var(--red);
}

.vignette .ba .a::before {
  content: "✓";
  color: var(--green);
}

/* Checklist */
.checklist {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.checklist li {
  break-inside: avoid;
  padding: 10px 0 10px 34px;
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--accent);
  background: rgba(124, 124, 240, 0.12);
}

.checklist li::after {
  content: "✓";
  position: absolute;
  left: 3.5px;
  top: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Model tiles / measure cards
   -------------------------------------------------------------------------- */

.model-tile h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.model-tile .step {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: block;
  margin-bottom: 10px;
}

.measure-card h3 {
  font-size: 1.05rem;
}

.measure-card p {
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  text-align: center;
  padding: 110px 0;
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(124, 124, 240, 0.3), transparent 65%),
    var(--indigo-900);
  color: #fff;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0 auto 18px;
}

.cta-band .lede {
  margin: 0 auto 40px;
}

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

.site-footer {
  background: var(--indigo-950);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 40px;
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.site-footer .brand {
  margin-bottom: 10px;
}

.footer-tagline {
  max-width: 340px;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

/* Hidden-until-scroll only when JS is running (html.js); without JS everything is visible */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .phase-strip { grid-template-columns: repeat(2, 1fr); }
  .phase-block { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 700px) {
  .section { padding: 68px 0; }
  .hero { padding: 84px 0 76px; }

  .grid-2,
  .grid-3,
  .grid-4,
  .phase-strip,
  .before-after,
  .case-cols,
  .phase-block .cols {
    grid-template-columns: 1fr;
  }

  .checklist { columns: 1; }

  .diagram-sources {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--indigo-900);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px 24px 20px;
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px 0;
    font-size: 1.05rem;
  }

  .site-nav .btn {
    margin-top: 10px;
    text-align: center;
  }

  .case-card .case-head,
  .case-card .case-body {
    padding-left: 24px;
    padding-right: 24px;
  }
}
