/* === Tokens === */
:root {
  --ink: #0E1116;
  --ink-2: #1A1F26;
  --graphite: #3A3F47;
  --graphite-2: #6B7079;
  --stone: #F4EFE6;
  --stone-2: #EAE3D5;
  --paper: #FBF8F2;
  --rule: rgba(14,17,22,0.12);
  --rule-soft: rgba(14,17,22,0.06);
  --accent: #B07248;
  --accent-ink: oklch(36% 0.06 50);
  --accent-soft: rgba(176,114,72,0.10);

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 140px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv01";
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

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

/* === Typography === */
.display, h1.hero {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  font-size: clamp(44px, 7.4vw, 116px);
  margin: 0;
  text-wrap: balance;
}
.display em, h1.hero em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}
h2 { font-weight: 600; letter-spacing: -0.02em; font-size: clamp(28px, 3.2vw, 48px); line-height: 1.05; margin: 0; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -0.015em; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; margin: 0; }
h4 { font-weight: 600; letter-spacing: -0.005em; font-size: 16px; margin: 0; }
p  { margin: 0; }
.lede { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.45; color: var(--graphite); max-width: 60ch; letter-spacing: -0.005em; }
.body { font-size: 16.5px; line-height: 1.6; color: var(--graphite); max-width: 64ch; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--graphite-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
  border: 1px solid var(--rule);
  padding: 4px 8px;
  border-radius: 2px;
  display: inline-block;
}
.accent { color: var(--accent); }

/* === Layout === */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section.section-airy { padding: calc(var(--section-y) * 1.2) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 760px) {
  .grid12 { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

/* === Nav === */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: baseline; gap: 14px;
  font-weight: 700; letter-spacing: -0.01em; font-size: 17px;
}
.brand .mark {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0; transform: translateY(2px);
}
.brand .sub { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--graphite-2); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-size: 13.5px; padding: 8px 12px; border-radius: 2px;
  color: var(--graphite); letter-spacing: -0.005em;
  transition: color .15s ease, background .15s ease;
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--accent);
}
.nav-cta {
  font-size: 13px; padding: 9px 14px; border: 1px solid var(--ink);
  border-radius: 999px; color: var(--ink);
  transition: background .15s ease, color .15s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; }
@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--rule);
  padding: 16px var(--gutter) 28px;
  background: var(--paper);
}
.mobile-menu.open { display: grid; gap: 4px; }
.mobile-menu .nav-link { padding: 12px 0; font-size: 17px; color: var(--ink); }
.mobile-menu .nav-link.active::after { display: none; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* === Hero === */
.hero-section {
  padding: clamp(56px, 7vw, 100px) 0 clamp(48px, 6vw, 88px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.hero-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 56px);
  gap: 20px; flex-wrap: wrap;
}
.hero-meta .right { display: flex; gap: 24px; align-items: center; }
.hero-headline { max-width: 18ch; }
.hero-sub {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end;
  margin-top: clamp(28px, 3.5vw, 48px);
}
@media (max-width: 860px) { .hero-sub { grid-template-columns: 1fr; gap: 24px; } }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-tertiary {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--graphite);
  border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  margin-left: 6px; transition: color .15s ease, border-color .15s ease;
}
.hero-tertiary:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero-bio {
  margin-top: clamp(28px, 3.5vw, 48px);
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  align-items: start; padding-top: 28px; border-top: 1px solid var(--rule);
}
@media (max-width: 760px) { .hero-bio { grid-template-columns: 1fr; gap: 14px; } }
.hero-bio .lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--graphite-2); padding-top: 4px;
}
.hero-bio .txt {
  font-size: clamp(15px, 1.3vw, 18px); color: var(--ink); line-height: 1.45;
  max-width: 58ch; letter-spacing: -0.005em;
}

/* Credibility strip */
.cred-strip {
  margin-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.cred-strip > div {
  padding: 22px 20px;
  border-left: 1px solid var(--rule-soft);
}
.cred-strip > div:first-child { border-left: 0; }
.cred-strip .num {
  font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em;
  font-size: clamp(22px, 2vw, 32px); display: block; color: var(--ink);
}
.cred-strip .lab {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--graphite-2); margin-top: 6px;
}
@media (max-width: 900px) {
  .cred-strip { grid-template-columns: repeat(2, 1fr); }
  .cred-strip > div { border-left: 0; border-top: 1px solid var(--rule-soft); }
  .cred-strip > div:nth-child(-n+2) { border-top: 0; }
  .cred-strip > div:nth-child(odd) { border-right: 1px solid var(--rule-soft); }
}

/* Section header */
.section-head {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
  align-items: start;
}
.section-head .meta { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.section-head h2 { max-width: 22ch; }
.section-head .desc { color: var(--graphite); max-width: 50ch; margin-top: 16px; font-size: 16px; line-height: 1.55; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* Path cards (3 engagement paths) */
.paths { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.path { padding: clamp(28px, 3.2vw, 48px); border-left: 1px solid var(--rule); position: relative; transition: background .25s ease; min-height: 380px; display: flex; flex-direction: column; }
.path:first-child { border-left: 0; background: var(--stone); }
.path:first-child::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent);
}
.path:hover { background: var(--stone); }
.path:first-child:hover { background: color-mix(in oklab, var(--stone) 80%, var(--accent) 8%); }
.path .num { font-family: var(--mono); font-size: 11px; color: var(--graphite-2); letter-spacing: 0.1em; }
.path:first-child .num { color: var(--accent); }
.path .featured-tag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.path h3 { margin-top: 18px; max-width: 14ch; }
.path:first-child h3 { font-size: clamp(22px, 1.8vw, 28px); max-width: 13ch; }
.path .role { color: var(--accent); font-size: 13.5px; margin-top: 12px; font-family: var(--mono); letter-spacing: 0.02em; }
.path p { color: var(--graphite); font-size: 15px; line-height: 1.55; margin-top: 16px; }
.path:first-child p { color: var(--ink); }
.path .ex { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--graphite-2); }
.path .ex strong { color: var(--ink); font-weight: 500; }
.path .roles-list {
  margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px;
}
.path .roles-list .pill {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em;
  border: 1px solid var(--rule); padding: 4px 9px; border-radius: 2px;
  color: var(--graphite);
}
.path:first-child .roles-list .pill { border-color: var(--ink); color: var(--ink); }
@media (max-width: 900px) {
  .paths { grid-template-columns: 1fr; }
  .path { border-left: 0; border-top: 1px solid var(--rule); }
  .path:first-child { border-top: 0; }
}

/* Pillars (4-up value) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.pillar { padding: clamp(28px, 3vw, 40px) clamp(20px, 2vw, 28px); border-left: 1px solid var(--rule); position: relative; }
.pillar:first-child { border-left: 0; }
.pillar .idx { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; }
.pillar h3 { margin-top: 14px; font-size: 19px; }
.pillar p { margin-top: 14px; color: var(--graphite); font-size: 14.5px; line-height: 1.55; }
.pillar .bullets { margin-top: 16px; display: grid; gap: 8px; }
.pillar .bullets li {
  list-style: none; font-size: 13px; color: var(--graphite);
  padding-left: 14px; position: relative; line-height: 1.45;
}
.pillar .bullets li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 1px; background: var(--accent);
}
.pillar ul { padding: 0; margin: 0; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-top: 1px solid var(--rule); }
  .pillar:nth-child(2) { border-left: 1px solid var(--rule); }
  .pillar:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 600px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--rule); }
  .pillar:first-child { border-top: 0; }
}

/* Anonymised client labels strip (proof) */
.client-strip {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.client-pill {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em;
  border: 1px solid var(--rule); padding: 7px 12px; border-radius: 2px;
  color: var(--graphite); background: var(--paper);
  display: inline-flex; align-items: center; gap: 8px;
}
.client-pill::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
}

/* Proof block */
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; gap: 40px; } }
.proof-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.proof-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: center;
}
.proof-row .pno { font-family: var(--mono); font-size: 11px; color: var(--graphite-2); letter-spacing: 0.1em; }
.proof-row .ptxt { font-size: 16px; line-height: 1.4; color: var(--ink); letter-spacing: -0.005em; }
.proof-row .pscale { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; }

/* AI section */
.ai-wrap { background: var(--stone); border-radius: 4px; padding: clamp(40px, 5vw, 80px); }
.ai-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
@media (max-width: 900px) { .ai-head { grid-template-columns: 1fr; gap: 24px; } }
.ai-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.ai-grid > div {
  background: var(--stone); padding: 24px 24px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 180px;
}
.ai-grid .ai-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; }
.ai-grid h4 { font-size: 17px; letter-spacing: -0.01em; }
.ai-grid p { font-size: 13.5px; color: var(--graphite); line-height: 1.5; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ai-grid { grid-template-columns: 1fr; } }

/* Recovery model — horizontal step diagram */
.recovery-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.recovery-step {
  padding: 32px 22px 28px;
  border-left: 1px solid var(--rule);
  position: relative;
  min-height: 220px;
  display: flex; flex-direction: column;
  transition: background .25s ease;
}
.recovery-step:first-child { border-left: 0; }
.recovery-step:hover { background: var(--stone); }
.recovery-step .step-no {
  font-family: var(--mono); font-size: 11px;
  color: var(--graphite-2); letter-spacing: 0.1em;
}
.recovery-step h4 {
  margin-top: 18px; font-size: 18px; letter-spacing: -0.01em;
}
.recovery-step p { margin-top: 12px; font-size: 13px; color: var(--graphite); line-height: 1.5; }
.recovery-step .arrow-r {
  position: absolute; right: -7px; top: 36px;
  width: 14px; height: 14px; background: var(--paper);
  border-right: 1px solid var(--rule); border-top: 1px solid var(--rule);
  transform: rotate(45deg);
  z-index: 2;
}
.recovery-step:last-child .arrow-r { display: none; }
@media (max-width: 1100px) {
  .recovery-flow { grid-template-columns: repeat(3, 1fr); }
  .recovery-step:nth-child(3n+1) { border-left: 0; }
  .recovery-step:nth-child(n+4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 700px) {
  .recovery-flow { grid-template-columns: repeat(2, 1fr); }
  .recovery-step:nth-child(3n+1) { border-left: 1px solid var(--rule); }
  .recovery-step:nth-child(2n+1) { border-left: 0; }
  .recovery-step:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .recovery-step .arrow-r { display: none; }
}

/* Case study cards */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }
.case {
  border: 1px solid var(--rule);
  padding: clamp(28px, 3vw, 40px);
  background: var(--paper);
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
  text-align: left;
  width: 100%;
}
.case:hover { border-color: var(--ink); }
.case .head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.case .domain {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--graphite-2); text-transform: uppercase;
}
.case h3 { font-size: 22px; letter-spacing: -0.015em; max-width: 22ch; }
.case .row { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.case .row .lab { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite-2); padding-top: 3px; }
.case .row .val { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.case .row .val.muted { color: var(--graphite); }
.case .outcome {
  margin-top: 4px; padding-top: 18px; border-top: 1px dashed var(--rule);
  display: flex; gap: 14px; align-items: baseline;
}
.case .outcome .lab { color: var(--accent); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.case .outcome .val { font-size: 15px; color: var(--ink); flex: 1; }

/* Final CTA */
.final-cta {
  background: var(--ink); color: var(--paper);
  padding: clamp(56px, 7vw, 120px) var(--gutter);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.final-cta .inner { max-width: var(--max); margin: 0 auto; }
.final-cta h2 { font-size: clamp(32px, 4vw, 60px); letter-spacing: -0.025em; max-width: 22ch; }
.final-cta .row { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.final-cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.final-cta .btn { border-color: var(--paper); color: var(--paper); }
.final-cta .btn-primary { background: var(--paper); color: var(--ink); }
.final-cta .btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.final-cta .btn-ghost { background: transparent; color: var(--paper); }
.final-cta .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* Footer */
footer.site {
  border-top: 1px solid var(--rule);
  padding: 72px 0 32px;
  font-size: 13.5px;
  color: var(--graphite);
}
footer.site .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer.site h5 { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--graphite-2); margin: 0 0 16px; font-weight: 500; }
footer.site a { display: block; padding: 4px 0; color: var(--graphite); transition: color .15s ease; }
footer.site a:hover { color: var(--ink); }
footer.site .brand-block .pitch { color: var(--ink); font-size: 16px; line-height: 1.45; max-width: 32ch; margin-top: 12px; letter-spacing: -0.005em; }
footer.site .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--graphite-2); }
@media (max-width: 800px) {
  footer.site .grid { grid-template-columns: 1fr 1fr; }
  footer.site .legal { flex-direction: column; gap: 12px; }
}

/* === Page header (for sub-pages) === */
.page-head {
  padding: clamp(72px, 9vw, 140px) 0 clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.page-head .kicker { margin-bottom: 24px; }
.page-head h1 {
  font-size: clamp(40px, 5.6vw, 84px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  max-width: 18ch;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
.page-head h1 em { font-family: var(--serif); font-style: italic; font-weight: 300; }
.page-head .lede { margin-top: clamp(20px, 2.5vw, 32px); max-width: 56ch; }

/* === Misc === */
.flex-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--graphite); }
.eyebrow-row {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite-2);
}
.eyebrow-row .rule { flex: 1; height: 1px; background: var(--rule); }

/* Utility */
.meta-mono {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--graphite-2); text-transform: uppercase;
}
.meta-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--graphite-2); text-transform: uppercase;
}
