/* ==========================================================================
   Graventura Group — Global Styles
   Brand: Cormorant Garamond (display) + Inter (body).
   Palettes:
     .palette-1 — home & statement pages (darker, navy-led)
     .palette-2 — internal pages (lighter, slate-led)  [default on body]
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens — Palette 1 (Home / statement) ---------- */
.palette-1 {
  --bg:            #050a30;
  --surface:       #0a1248;
  --surface-soft:  #0e1858;
  --ink:           #ffffff;
  --ink-muted:     #c5cae8;
  --ink-subtle:    rgba(255,255,255,0.55);
  --line:          rgba(255,255,255,0.12);
  --accent:        #d4af37;
  --accent-soft:   rgba(212,175,55,0.16);
  --secondary:     #1e5c80;

  --btn-bg:        #ffffff;
  --btn-fg:        #050a30;
  --btn-bg-hover:  #d4af37;
}

/* ---------- Tokens — Palette 2 (default, internal pages) ---------- */
:root, .palette-2 {
  --bg:            #ffffff;
  --surface:       #ffffff;
  --surface-soft:  #f5f6f7;
  --ink:           #1e3a5f;
  --ink-muted:     #4a5d75;
  --ink-subtle:    #7a8a99;
  --line:          #e6e8eb;
  --accent:        #d4af37;
  --accent-soft:   #f7eac9;
  --secondary:     #00687a;

  --btn-bg:        #1e3a5f;
  --btn-fg:        #ffffff;
  --btn-bg-hover:  #050a30;
}

/* ---------- Static (palette-agnostic) tokens ---------- */
:root {
  --gold:          #d4af37;
  --navy:          #050a30;
  --slate:         #1e3a5f;
  --champagne:     #e7d2a3;

  --font-display:  'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw:          1200px;
  --maxw-narrow:   880px;
  --pad-x:         clamp(20px, 4vw, 56px);
  --section-y:     clamp(80px, 9vw, 140px);

  --radius-sm:     4px;
  --radius-md:     10px;
  --radius-lg:     16px;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-md:     0 10px 30px -12px rgba(5, 10, 48, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px 0;
}
.h-display, .h-section, .h-sub {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.h-display { font-size: clamp(48px, 7vw, 96px); line-height: 1; }
.h-section { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; }
.h-sub     { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.18; }
.lede {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  max-width: 60ch;
}
.body, p { font-size: 16px; line-height: 1.7; color: var(--ink-muted); margin: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.container--narrow { max-width: var(--maxw-narrow); }
section { padding-block: var(--section-y); }
.stack > * + * { margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--accent); letter-spacing: 0.02em;
}
.text-link:hover .arr { transform: translateX(3px); }

/* ---------- Decorative gold rule ---------- */
.gold-rule { display: inline-block; width: 56px; height: 1.5px; background: var(--accent); border-radius: 1px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { width: 42px; height: 42px; }
.brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.brand .name {
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  letter-spacing: 0.04em; color: var(--ink);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-muted);
  letter-spacing: 0.02em; transition: color .2s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 11.5px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(96px, 12vw, 180px) clamp(64px, 8vw, 120px); }
.hero h1 { max-width: 16ch; }
.hero .lede { margin-top: 28px; max-width: 56ch; }
.hero .cta-row { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Statement block (mission) ---------- */
.statement {
  background: var(--surface-soft);
  padding-block: clamp(80px, 10vw, 160px);
}
.statement .quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 48px); line-height: 1.22;
  color: var(--ink); max-width: 26ch;
}
.statement .gold-rule { margin-bottom: 22px; }

/* ---------- Two-col section heading ---------- */
.two-col-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 80px);
  align-items: end; margin-bottom: clamp(40px, 5vw, 72px);
}
@media (max-width: 800px) { .two-col-head { grid-template-columns: 1fr; } }

/* ---------- Practice phases (home: 3-phase journey) ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.2vw, 36px); position: relative; }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } }
.phase {
  position: relative; padding: 36px 32px 32px;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.phase:hover { transform: translateY(-4px); border-color: var(--accent); }
.phase .num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.phase .num em { font-style: normal; color: var(--ink-subtle); letter-spacing: 0.18em; }
.phase h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin: 0 0 14px; color: var(--ink); }
.phase p  { color: var(--ink-muted); font-size: 15px; line-height: 1.65; }

/* ---------- Alignment grid (who we work with — 4 cols) ---------- */
.align-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 36px); }
@media (max-width: 960px) { .align-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .align-grid { grid-template-columns: 1fr; } }
.align-card { padding-top: 8px; }
.align-card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--accent); margin-bottom: 22px;
}
.align-card h4 {
  font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.25;
  color: var(--ink); margin: 0 0 10px;
}
.align-card p { font-size: 14.5px; color: var(--ink-muted); }

/* ---------- Proof points / marquee quotes ---------- */
.proof { overflow: hidden; padding-block: clamp(72px, 8vw, 120px); }
.proof-track {
  display: flex; gap: 28px;
  animation: marquee 60s linear infinite;
}
.proof-track:hover { animation-play-state: paused; }
.proof-card {
  min-width: 380px; flex: 0 0 380px;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface);
}
.proof-card blockquote {
  font-family: var(--font-display); font-weight: 400;
  font-size: 20px; line-height: 1.4; color: var(--ink);
  margin: 0 0 16px;
}
.proof-card cite { font-style: normal; font-size: 13px; color: var(--ink-subtle); letter-spacing: 0.04em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Network section ---------- */
.network .net-art {
  position: relative; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg); background: var(--surface-soft);
  overflow: hidden;
}
.network .net-art svg { width: 100%; height: 100%; }
.network-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 820px) { .network-grid { grid-template-columns: 1fr; } }

/* ---------- Insights cards ---------- */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface); transition: transform .35s var(--ease), border-color .25s var(--ease);
}
.insight-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.insight-card .thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--secondary), var(--accent));
  opacity: 0.85;
}
.insight-card .meta { padding: 22px 24px 6px; font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); }
.insight-card h4 { padding: 0 24px; margin: 6px 0 14px; font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.25; color: var(--ink); }
.insight-card p  { padding: 0 24px 24px; font-size: 14.5px; color: var(--ink-muted); }

/* ---------- CTA block / contact ---------- */
.cta-block {
  background: var(--surface-soft);
  padding-block: clamp(72px, 9vw, 132px);
  text-align: center;
}
.cta-block .container { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-block h2 { max-width: 22ch; }
.cta-block .lede { text-align: center; }

/* ---------- Partners ribbon ---------- */
/* Trusted-by partners section (replaces former proof/testimonials) */
.partners-impact {
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--surface-soft);
  overflow: hidden;
}
.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px 40px;
  align-items: center;
  justify-items: center;
  margin-top: 24px;
}
.partner-logo {
  height: 96px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  filter: grayscale(0.15);
  transition: filter .3s ease, transform .3s ease, opacity .3s ease;
}
.partner-logo:hover { filter: grayscale(0); transform: translateY(-2px); }
.partner-logo img {
  max-height: 80px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.partner-placeholder {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-subtle);
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}
@media (max-width: 640px) {
  .partners-logos { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  .partner-logo { height: 80px; }
  .partner-logo img { max-height: 64px; max-width: 130px; }
  .partner-placeholder { font-size: 14px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #fff;
  padding-block: 64px 36px;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--gold); }
.site-footer .inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) { .site-footer .inner { grid-template-columns: 1fr; } }
.site-footer .brand .name { color: #fff; }
.site-footer .tagline {
  font-family: var(--font-display); font-style: italic; color: rgba(255,255,255,0.7);
  margin-top: 18px; font-size: 17px; line-height: 1.5; max-width: 30ch;
}
.site-footer h5 {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px;
}
.site-footer ul li { padding-block: 5px; font-size: 14px; }
.site-footer .legal {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.5);
}

/* ---------- Page intro (inner pages) ---------- */
.page-intro {
  padding-block: clamp(96px, 11vw, 160px) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-intro h1 { max-width: 18ch; font-size: clamp(42px, 5.4vw, 76px); }
.page-intro .lede { margin-top: 24px; max-width: 56ch; }

/* ---------- Problem → Solution → Impact flow ---------- */
.psi-flow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; align-items: stretch; }
@media (max-width: 900px) { .psi-flow { grid-template-columns: 1fr; } }
.psi-step {
  padding: 36px 30px; border: 1px solid var(--line); border-right: none;
  position: relative;
}
@media (max-width: 900px) { .psi-step { border-right: 1px solid var(--line); } }
.psi-step:last-child { border-right: 1px solid var(--line); }
.psi-step:nth-child(2) { background: var(--surface-soft); }
.psi-step .lbl {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.psi-step h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  margin: 0 0 12px; color: var(--ink); line-height: 1.25;
}
.psi-step p { font-size: 15px; }

/* ---------- Service blocks (services page) ---------- */
.svc-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 4vw, 72px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
@media (max-width: 880px) { .svc-block { grid-template-columns: 1fr; } }
.svc-block .num {
  font-family: var(--font-display); font-weight: 500; font-size: 56px; color: var(--accent);
  line-height: 1; margin-bottom: 12px;
}
.svc-block h3 {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 44px);
  margin: 0 0 18px; color: var(--ink); line-height: 1.15;
}
.svc-block .lede { margin-bottom: 28px; }
.svc-offerings h4 {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.svc-offerings ul li {
  padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.svc-offerings ul li:first-child { border-top: none; padding-top: 0; }
.svc-offerings ul li strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.svc-offerings ul li span  { color: var(--ink-muted); line-height: 1.55; display: block; }

/* ---------- Engagement tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-muted);
  background: var(--surface);
}

/* ---------- About: founders ---------- */
.founder { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-block: 56px; border-top: 1px solid var(--line); align-items: start; }
@media (max-width: 700px) { .founder { grid-template-columns: 1fr; } }
.founder .photo {
  aspect-ratio: 1 / 1; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--surface-soft), var(--accent-soft));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 64px; font-weight: 500; color: var(--ink-subtle);
}
.founder h3 { font-family: var(--font-display); font-weight: 500; font-size: 32px; margin: 0 0 8px; color: var(--ink); }
.founder .role {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.founder .tags { margin-bottom: 22px; }
.founder p { font-size: 15px; }
.founder p + p { margin-top: 14px; }

/* ---------- About: principles ---------- */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle {
  padding: 32px 28px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.principle:hover { border-color: var(--accent); transform: translateY(-3px); }
.principle h4 {
  font-family: var(--font-display); font-weight: 500; font-size: 24px;
  margin: 0 0 14px; color: var(--ink);
}
.principle p { font-size: 15px; }

/* ---------- Vision (image overlay block) ---------- */
.vision {
  position: relative; padding-block: clamp(112px, 12vw, 180px);
  background:
    linear-gradient(135deg, rgba(5,10,48,0.86), rgba(30,92,128,0.78)),
    radial-gradient(circle at 25% 30%, rgba(212,175,55,0.18), transparent 50%),
    radial-gradient(circle at 75% 70%, rgba(231,210,163,0.16), transparent 55%),
    #050a30;
  color: #fff; text-align: center;
}
.vision .eyebrow { color: var(--gold); }
.vision h2 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.15;
  font-size: clamp(32px, 4.4vw, 56px); max-width: 26ch; margin-inline: auto; color: #fff;
}

/* ---------- "Why we exist" mini graphic (about) ---------- */
.why-graphic {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center;
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface-soft); margin: 24px 0;
}
.why-graphic .silos { display: flex; gap: 10px; }
.why-graphic .silo {
  padding: 14px 14px; border: 1px dashed var(--ink-subtle); border-radius: 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-subtle);
  position: relative;
}
.why-graphic .silo::after {
  content: '✕'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 36px; color: var(--accent); opacity: 0.4;
}
.why-graphic .arrow { color: var(--accent); font-size: 24px; }
.why-graphic .unified {
  padding: 16px 22px; border-radius: 999px;
  background: var(--accent); color: var(--navy);
  font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Animation utilities ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Small bits ---------- */
.arr::before { content: '→'; }
.dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  margin-inline: 8px; vertical-align: middle;
}

/* ---------- Work page — case study cards (short version) ---------- */
.case-card {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 4vw, 72px);
  padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line);
}
.case-card:last-of-type { border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .case-card { grid-template-columns: 1fr; } }
.case-card .case-meta .number {
  font-family: var(--font-display); font-weight: 500; font-size: 56px; color: var(--accent);
  line-height: 1; margin-bottom: 18px;
}
.case-card .case-meta .eyebrow { margin-bottom: 14px; }
.case-card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 18px; color: var(--ink); line-height: 1.15;
}
.case-card .lede { margin-bottom: 28px; }
.case-card .col-group { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
@media (max-width: 600px) { .case-card .col-group { grid-template-columns: 1fr; } }
.case-card .col-group h4 {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.case-card .col-group ul li {
  padding: 8px 0 8px 18px; position: relative; font-size: 14.5px; line-height: 1.55; color: var(--ink-muted);
}
.case-card .col-group ul li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 8px; height: 1.5px; background: var(--accent);
}

/* ---------- Case study detail (long form) ---------- */
.case-detail .intro {
  padding-block: clamp(96px, 11vw, 160px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.case-detail .intro h1 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.05;
  font-size: clamp(40px, 5.4vw, 72px); max-width: 22ch; margin: 0;
}
.case-detail .intro .lede { margin-top: 24px; max-width: 60ch; }
.case-detail .body { padding-block: clamp(64px, 8vw, 112px); }
.case-detail .body .container--narrow { display: grid; gap: 32px; }

.case-detail h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.18;
  margin: 40px 0 14px; color: var(--ink);
}
.case-detail h2:first-child { margin-top: 0; }
.case-detail h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25;
  margin: 28px 0 12px; color: var(--ink);
}
.case-detail p { font-size: 16.5px; line-height: 1.75; color: var(--ink-muted); margin: 0; }
.case-detail p + p { margin-top: 14px; }
.case-detail ul.case-list { display: grid; gap: 10px; margin: 4px 0 8px; }
.case-detail ul.case-list li {
  padding: 12px 16px 12px 36px; position: relative; font-size: 15.5px; line-height: 1.6;
  color: var(--ink-muted); background: var(--surface-soft); border-radius: var(--radius-sm);
}
.case-detail ul.case-list li::before {
  content: ''; position: absolute; left: 14px; top: 21px;
  width: 12px; height: 1.5px; background: var(--accent);
}
.case-detail .callout {
  padding: 28px 32px; border-left: 3px solid var(--accent);
  background: var(--surface-soft); margin: 24px 0;
}
.case-detail .callout strong { color: var(--ink); }
.case-detail .stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 32px 0;
}
@media (max-width: 720px) { .case-detail .stat-grid { grid-template-columns: 1fr; } }
.case-detail .stat {
  padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
}
.case-detail .stat .num {
  font-family: var(--font-display); font-weight: 500; font-size: 44px; line-height: 1; color: var(--accent);
  margin-bottom: 8px;
}
.case-detail .stat p { font-size: 14px; }

/* Phase table (long-form case 1) */
.case-detail .phase-table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  font-size: 14.5px;
}
.case-detail .phase-table th, .case-detail .phase-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.case-detail .phase-table th {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.case-detail .phase-table td:first-child { color: var(--ink); font-weight: 500; }

/* Next-case nav */
.case-next {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding-block: 48px; border-top: 1px solid var(--line);
}
.case-next .label { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-subtle); }
.case-next .title {
  font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2;
  color: var(--ink); margin-top: 6px;
}

/* ==========================================================================
   v1.3 — Mobile responsive + design polish
   Adds: hamburger menu, refined Contact button on light bg, Insights card fix,
   touch targets, mobile typography scaling, footer mobile stack.
   ========================================================================== */

/* ---------- Mobile menu toggle button (hamburger) ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  margin-left: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; pointer-events: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Mobile navigation (hamburger drawer) ---------- */
@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-header .inner { gap: 12px; }

  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 24px var(--pad-x) 48px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .32s var(--ease);
    z-index: 49;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--ink);
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0;
  }
  .nav .btn {
    margin-top: 28px;
    padding: 16px 24px;
    font-size: 13px;
    justify-content: center;
    align-self: stretch;
  }
  html.nav-open, body.nav-open { overflow: hidden; }
}

/* ---------- Contact button: lighter treatment on light pages ---------- */
.palette-2 .site-header .nav .btn {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.palette-2 .site-header .nav .btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- Insights card layout fix ---------- */
.insight-card { display: flex; flex-direction: column; gap: 16px; }
.insight-card .insight-cover {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-soft);
}
.insight-card .insight-cover img {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.insight-card .insight-cover:hover img { transform: scale(1.04); }
.insight-card .eyebrow { margin: 4px 0 0 0; font-size: 10.5px; }
.insight-card h3.h3-utility {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.22;
  margin: 0;
}
.insight-card h3.h3-utility a {
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.insight-card h3.h3-utility a:hover { background-size: 100% 1px; }
.insight-card p.body-text {
  color: var(--ink-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- Pagination ---------- */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 10px;
  margin: 0 4px;
  border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--font-body); font-size: 14px;
  color: var(--ink-muted);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.pagination .page-numbers.current { background: var(--accent-soft); }

/* ---------- Mobile typography scaling ---------- */
@media (max-width: 640px) {
  .h-display { font-size: clamp(40px, 11vw, 60px); line-height: 1.02; }
  .h-section { font-size: clamp(28px, 8vw, 40px); line-height: 1.12; }
  .h-sub     { font-size: clamp(22px, 6vw, 30px); }
  .lede      { font-size: 16.5px; line-height: 1.6; }
  .eyebrow   { font-size: 10.5px; }
  section    { padding-block: clamp(56px, 14vw, 80px); }

  .btn { padding: 14px 22px; min-height: 44px; }
  .text-link { padding: 8px 0; min-height: 44px; }
  .nav a { min-height: 44px; }

  :root { --pad-x: 20px; }

  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { justify-content: center; }
}

/* ---------- Mobile: stacked section spacing ---------- */
@media (max-width: 640px) {
  .two-col-head { gap: 18px; }
  .who-grid, .who-card { gap: 16px; }
  .partners-logos { gap: 18px 24px; }
  .partner-logo { height: 70px; }
  .partner-logo img { max-height: 56px; max-width: 120px; }
  .insights-grid { gap: 36px; }
  .case-card { gap: 32px; padding-block: 48px; }
  .case-card .number { font-size: 44px; }
  .case-card h3 { font-size: clamp(24px, 6.5vw, 32px); }
  .case-card .col-group { gap: 22px; }
  .principles { gap: 32px; }
  .founder { gap: 24px; }
  .founder .photo { width: 80px; height: 80px; font-size: 22px; }
  .vision h2 { font-size: clamp(26px, 7vw, 36px); }
}

/* ---------- Footer ---------- */
.site-footer .inner { gap: 40px; }
.site-footer .inner h5 {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin: 0 0 18px;
}
.site-footer .inner ul li { padding: 6px 0; }
.site-footer .legal {
  display: flex; justify-content: space-between; gap: 20px;
  padding-top: 32px; margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12.5px; color: rgba(255,255,255,0.6);
}
@media (max-width: 640px) {
  .site-footer { padding-block: 56px 32px; }
  .site-footer .legal { flex-direction: column; gap: 8px; padding-top: 24px; margin-top: 24px; }
  .case-card .btn { width: 100%; justify-content: center; }
}

/* ---------- WordPress block editor content styling ---------- */
.entry-content p,
.entry-content ul,
.entry-content ol { margin-bottom: 18px; color: var(--ink-muted); }
.entry-content h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 36px); line-height: 1.18;
  margin: 56px 0 16px; color: var(--ink);
}
.entry-content h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25;
  margin: 36px 0 12px; color: var(--ink);
}
.entry-content ul, .entry-content ol { padding-left: 22px; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { padding: 4px 0; color: var(--ink-muted); }
.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 0 18px 28px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-style: italic;
  font-size: 22px; line-height: 1.4; color: var(--ink);
}
.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   v1.4 — Bug fixes: mobile menu, header alignment, insights card
   ========================================================================== */

/* ---------- FIX 1: Sticky header backdrop-filter creates a containing block
   that traps the fixed-positioned mobile nav drawer inside its 64px bounding
   box. Disable backdrop-filter on mobile so position:fixed works against the
   viewport, not the header. ---------- */
@media (max-width: 880px) {
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Ensure header has solid background since blur is removed */
    background: var(--bg);
  }
}

/* ---------- FIX 2: Mobile nav drawer — make it a true full-viewport overlay
   with internal scroll, proper height, and a solid background. ---------- */
@media (max-width: 880px) {
  .nav {
    position: fixed !important;
    top: 64px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 64px) !important;
    background: var(--bg) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 32px var(--pad-x) 64px !important;
    transform: translateX(100%);
    transition: transform .32s var(--ease);
    z-index: 999;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  /* Adjust top offset when WP admin bar is showing */
  body.admin-bar .nav { top: 96px !important; height: calc(100vh - 96px) !important; }

  /* Each nav item gets full width + comfortable tap target */
  .nav a {
    display: block;
    width: 100%;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0;
    min-height: 44px;
  }
  .nav .btn {
    display: inline-flex;
    margin-top: 32px;
    padding: 16px 28px;
    font-size: 13px;
    justify-content: center;
    align-self: stretch;
    text-align: center;
  }

  /* Nav toggle button styling */
  .nav-toggle {
    z-index: 1000;
    position: relative;
  }
}

/* ---------- FIX 3: Header alignment on desktop — ensure inner row uses the
   same container max-width as the rest of the page so logo and nav align
   with page content. ---------- */
.site-header .container.inner {
  width: 100%;
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* On wider screens, ensure the nav has reasonable spacing and the button
   doesn't extend past the container. */
@media (min-width: 881px) {
  .site-header .inner { gap: 36px; }
  .nav { gap: 32px; }
}

/* ---------- FIX 4: Insights card — proper card container, padding, hover ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 1024px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .insights-grid { grid-template-columns: 1fr; } }

.insight-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.insight-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.insight-card .insight-cover {
  display: block;
  margin: -24px -24px 0 -24px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: var(--surface-soft);
  aspect-ratio: 16 / 10;
}
.insight-card .insight-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.insight-card .insight-cover:hover img { transform: scale(1.04); }
.insight-card .eyebrow {
  margin: 4px 0 0 0;
  font-size: 10.5px;
  color: var(--accent);
}
.insight-card h3.h3-utility {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.22;
  margin: 0;
  color: var(--ink);
}
.insight-card h3.h3-utility a {
  color: inherit;
  display: inline-block;
}
.insight-card h3.h3-utility a:hover { color: var(--accent); }
.insight-card p.body-text {
  color: var(--ink-muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insight-card .text-link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

/* ---------- FIX 5: Ensure body scroll always restored on menu close ---------- */
body:not(.nav-open) { overflow-y: auto !important; }
html:not(.nav-open) { overflow-y: auto !important; }

/* ---------- FIX 6: Make sure WordPress admin bar doesn't break sticky header ---------- */
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ---------- FIX 7: Container should never overflow viewport ---------- */
.container { box-sizing: border-box; }

/* ---------- FIX 8: Insights/page intro spacing on mobile ---------- */
@media (max-width: 640px) {
  .page-intro {
    padding-block: 56px 36px;
  }
}

/* ---------- FIX 9: Hide nav-toggle when explicitly desktop (failsafe) ---------- */
@media (min-width: 881px) {
  .nav-toggle { display: none !important; }
  .nav {
    position: static !important;
    flex-direction: row !important;
    background: transparent !important;
    height: auto !important;
    width: auto !important;
    transform: none !important;
    padding: 0 !important;
    overflow: visible !important;
    inset: auto !important;
  }
  .nav a {
    border-bottom: 0 !important;
    font-family: var(--font-body) !important;
    font-size: 13.5px !important;
    padding: 0 !important;
    min-height: auto !important;
    display: inline-flex !important;
    align-items: center;
  }
  .nav .btn {
    margin-top: 0 !important;
    padding: 10px 20px !important;
    align-self: auto !important;
  }
}
