/* Value Bridge Partners — institutional redesign
   Single shared stylesheet. No framework. */

:root {
  color-scheme: only light; /* prevent browser dark-mode colour override */
  --bg: #FAF7F2;           /* warm off-white */
  --bg-alt: #F2EDE3;       /* panel */
  --ink: #121212;          /* near black */
  --ink-soft: #2A2A2A;
  --muted: #6B6660;        /* secondary text */
  --rule: #D9D2C4;         /* hairlines */
  --rule-soft: #E8E2D4;
  --accent: oklch(0.42 0.11 25);    /* oxblood ink accent */
  --accent-soft: oklch(0.42 0.11 25 / 0.08);

  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia Pro", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --wrap-narrow: 880px;
  --wrap-reading: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Typography ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.sans  { font-family: var(--sans); }
.mono  { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance; }
p  { margin: 0; text-wrap: pretty; }

.display {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 400;
}
.display em { font-style: italic; color: var(--accent); }

.h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.05; }
.h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
.h3 { font-size: 22px; line-height: 1.25; }
.lede {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 32px; }
.wrap-reading { max-width: var(--wrap-reading); margin: 0 auto; padding: 0 32px; }

.section { padding: clamp(60px, 8vw, 120px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }

.rule { border-top: 1px solid var(--rule); }
.rule-soft { border-top: 1px solid var(--rule-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand img.brand-logo { height: 40px; width: auto; display: block; }
.site-footer .brand img.brand-logo { height: 48px; }
.brand-wordmark-hidden { position: absolute; left: -10000px; }
.nav-primary { display: flex; align-items: center; gap: 28px; }
.nav-primary a {
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
  text-decoration: none; padding: 8px 0; position: relative;
}
.nav-primary a:hover { color: var(--ink); }
.nav-primary a[aria-current="page"] { color: var(--ink); }
.nav-primary a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  border-bottom: 1px solid var(--accent);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--ink);
  font-family: var(--sans); font-size: 13px; text-decoration: none;
  color: var(--ink); background: transparent;
  transition: background 120ms ease, color 120ms ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta .arrow { font-family: var(--serif); }

.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.lang-switch a { text-decoration: none; color: var(--muted); padding: 4px 2px; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { color: var(--ink); border-bottom: 1px solid var(--accent); }
.lang-switch .lang-sep { color: var(--rule); }

@media (max-width: 860px) {
  .nav-primary a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font-family: var(--sans); font-size: 14px;
  text-decoration: none; cursor: pointer; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn .arrow { font-family: var(--serif); font-size: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; font-family: var(--sans); font-size: 14px;
  text-decoration: none; cursor: pointer; border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.link-arrow {
  display: inline-flex; gap: 8px; align-items: center;
  text-decoration: none; color: var(--ink);
  font-family: var(--sans); font-size: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow .arrow { font-family: var(--serif); }

/* ---------- Hero / Pagehead ---------- */
.pagehead {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.pagehead .eyebrow { margin-bottom: 24px; display: block; }
.pagehead .lede { margin-top: 28px; }
.breadcrumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Cards / tiles ---------- */
.tile {
  border-top: 1px solid var(--ink);
  padding: 28px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: background 150ms ease, padding 150ms ease;
}
.tile:hover { background: linear-gradient(to bottom, var(--accent-soft), transparent 80%); }
.tile .tile-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); padding-top: 4px; }
.tile .tile-body h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; margin-bottom: 8px; }
.tile .tile-body p { color: var(--muted); max-width: 64ch; font-size: 15px; }
.tile .tile-arrow { font-family: var(--serif); font-size: 24px; align-self: center; color: var(--ink); }
.tile:hover .tile-arrow { color: var(--accent); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Inline content ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18; margin-top: 2.2em; margin-bottom: 0.2em;
  letter-spacing: -0.01em;
}
.prose h3 { font-size: 20px; line-height: 1.3; margin-top: 1.8em; font-family: var(--serif); font-weight: 500; }
.prose p, .prose li { font-size: 17px; line-height: 1.68; color: var(--ink-soft); }
.prose p { max-width: 64ch; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--accent); font-style: italic; }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5;
  color: var(--ink);
}
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.prose a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg);
  padding: 72px 0 40px;
  margin-top: 80px;
}
.site-footer .foot-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule-soft);
}
.site-footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  margin-bottom: 18px;
}
.site-footer .foot-links a {
  display: block; font-size: 14px; text-decoration: none; color: var(--ink-soft);
  padding: 4px 0;
}
.site-footer .foot-links a:hover { color: var(--accent); }
.site-footer .foot-bottom {
  display: flex; justify-content: space-between; padding-top: 32px; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
}
@media (max-width: 860px) {
  .site-footer .foot-top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utilities ---------- */
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px;
  border: 1px solid var(--rule); font-family: var(--sans); font-size: 12px;
  color: var(--ink-soft); text-decoration: none;
  background: transparent;
}
.chip:hover { border-color: var(--ink); }

/* ---------- Practice blocks (3-pillar services architecture) ---------- */
.practice-block { margin-bottom: 72px; }
.practice-block:last-child { margin-bottom: 0; }
.practice-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
  align-items: baseline;
}
.practice-head .practice-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.practice-head .practice-title {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  grid-column: 2;
  grid-row: 2;
  margin-top: 12px;
}
.practice-head .practice-num { grid-column: 1; grid-row: 1 / span 2; }
.practice-head .practice-blurb {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}
.tile-under-practice .tile-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
  text-transform: lowercase;
}
.tile-under-practice .tile-body h4 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--ink);
}
.tile-under-practice .tile-body p { color: var(--muted); max-width: 64ch; font-size: 15px; }
@media (max-width: 740px) {
  .practice-head { grid-template-columns: 1fr; gap: 16px; }
  .practice-head .practice-title, .practice-head .practice-blurb { grid-column: 1; grid-row: auto; }
}

.kv { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--rule-soft); }
.kv:last-child { border-bottom: 1px solid var(--rule-soft); }
.kv dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; padding-top: 3px; }
.kv dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }

.placeholder-img {
  background:
    repeating-linear-gradient(135deg, var(--rule-soft) 0 1px, transparent 1px 16px),
    var(--bg-alt);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); aspect-ratio: 4 / 5;
}

details.faq {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
}
details.faq:last-child { border-bottom: 1px solid var(--rule); }
details.faq > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px; align-items: baseline;
  font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--ink);
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+"; font-family: var(--serif); color: var(--muted); font-size: 22px; line-height: 1;
  transition: transform 200ms ease;
}
details.faq[open] > summary::after { content: "–"; color: var(--accent); }
details.faq .faq-body { padding-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 70ch; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: 16px/1.5 var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: 10px 0; outline: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Misc ---------- */
.tag-accent { color: var(--accent); }
.divider-dot { color: var(--rule); margin: 0 10px; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Sticky CTA (long-form articles) ---------- */
.sticky-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; background: var(--ink); color: var(--bg);
  font-family: var(--sans); font-size: 14px; text-decoration: none;
  border: 1px solid var(--ink);
  box-shadow: 0 8px 30px -10px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease, background 120ms ease;
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta:hover { background: var(--accent); border-color: var(--accent); }
.sticky-cta .arrow { font-family: var(--serif); font-size: 16px; }
.sticky-cta .x {
  margin-left: 4px; color: color-mix(in oklab, var(--bg) 55%, transparent);
  font-family: var(--serif); font-size: 18px; line-height: 1; cursor: pointer;
}
.sticky-cta .x:hover { color: var(--bg); }
@media (max-width: 600px) { .sticky-cta { right: 12px; bottom: 12px; padding: 11px 16px; font-size: 13px; } }

/* ---------- Opt-in (non-gated) ---------- */
.optin {
  border: 1px solid var(--ink); background: var(--bg-alt);
  padding: 36px 40px; margin: 56px 0;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.optin .optin-copy h3 { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.optin .optin-copy p { font-size: 14px; color: var(--muted); line-height: 1.55; max-width: 46ch; }
.optin .optin-form { display: flex; gap: 0; align-items: stretch; min-width: 320px; }
.optin .optin-form input {
  flex: 1; font: 15px/1.4 var(--sans); color: var(--ink);
  background: transparent; border: 1px solid var(--ink); border-right: 0;
  padding: 12px 14px; outline: none;
}
.optin .optin-form input::placeholder { color: var(--muted); }
.optin .optin-form input:focus { border-color: var(--accent); }
.optin .optin-form button {
  font-family: var(--sans); font-size: 14px; padding: 12px 18px;
  background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
  cursor: pointer; transition: background 120ms ease; white-space: nowrap;
}
.optin .optin-form button:hover { background: var(--accent); border-color: var(--accent); }
.optin .optin-note { grid-column: 1 / -1; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.optin.done .optin-form { display: none; }
.optin .optin-thanks { display: none; font-family: var(--serif); font-size: 18px; color: var(--accent); }
.optin.done .optin-thanks { display: block; }
@media (max-width: 740px) {
  .optin { grid-template-columns: 1fr; padding: 28px 24px; gap: 22px; }
  .optin .optin-form { min-width: 0; }
}
