/* ---------- Tokens ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: .25rem; --radius-md: .5rem; --radius-lg: .75rem;

  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;

  --wrap: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

:root, [data-theme='light'] {
  --color-bg: #f5f3ee;
  --color-surface: #fbfaf7;
  --color-tint: #ebe8e1;
  --color-border: #d6d2c8;
  --color-divider: #e1ddd4;
  --color-text: #13263d;
  --color-text-muted: #4f5b69;
  --color-text-faint: #8a929c;
  --color-primary: #1d4673;
  --color-primary-hover: #153558;
  --color-brass: #a06d22;
  --color-dark: #0f1d2e;
  --color-dark-2: #172a40;
  --color-on-dark: #ece9e2;
  --color-on-dark-muted: #aab4c1;
  --shadow-md: 0 6px 24px rgba(19, 38, 61, .08);
}

[data-theme='dark'] {
  --color-bg: #0d151f;
  --color-surface: #131e2b;
  --color-tint: #111b27;
  --color-border: #263547;
  --color-divider: #1d2a39;
  --color-text: #e6e3dc;
  --color-text-muted: #a3adb9;
  --color-text-faint: #6c7785;
  --color-primary: #8fb6e0;
  --color-primary-hover: #b3cfec;
  --color-brass: #d3a35a;
  --color-dark: #08101a;
  --color-dark-2: #111d2b;
  --color-on-dark: #ece9e2;
  --color-on-dark-muted: #a3adb9;
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--color-brass); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.skip { position: absolute; left: -9999px; top: var(--space-2); background: var(--color-primary); color: #fff; padding: var(--space-2) var(--space-4); z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: var(--space-4); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(var(--space-5), 4vw, var(--space-10)); }

h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: var(--text-xl); max-width: 22ch; }
.h2-wide { max-width: 30ch; }
h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; }
p { max-width: 65ch; }
em { font-style: italic; }

.eyebrow, .kicker {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-brass); margin-bottom: var(--space-4);
}
.kicker::before { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: var(--space-3); }

/* ---------- Buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm);
  font-size: var(--text-sm); font-weight: 600; text-decoration: none; letter-spacing: .005em;
  border: 1px solid transparent; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-5); }
.btn-primary { background: var(--color-primary); color: #fff; }
[data-theme='dark'] .btn-primary { color: #0d151f; }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn-ghost:hover { border-color: var(--color-text); }
.btn-light { background: var(--color-on-dark); color: #0f1d2e; }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgba(236,233,226,.35); color: var(--color-on-dark); }
.btn-ghost-light:hover { border-color: var(--color-on-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--color-divider); }
.header-inner { display: flex; align-items: center; gap: var(--space-8); height: 76px; }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); }
.mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.brand-role { font-size: var(--text-xs); color: var(--color-text-muted); }
.nav { display: flex; gap: var(--space-6); margin-left: auto; }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; padding: var(--space-2) 0; transition: color .2s; }
.nav a:hover { color: var(--color-text); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--color-border); color: var(--color-text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--color-text); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(var(--space-12), 7vw, var(--space-24)) var(--space-12); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(var(--space-10), 5vw, var(--space-20)); align-items: center; }
.hero h1 { font-size: var(--text-3xl); margin-bottom: var(--space-6); max-width: 16ch; }
.hero h1 em { color: var(--color-primary); }
.lede { font-size: var(--text-lg); line-height: 1.5; color: var(--color-text-muted); margin-bottom: var(--space-8); max-width: 52ch; }

.bridge { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-6) var(--space-5); box-shadow: var(--shadow-md); }
.bridge svg { width: 100%; height: auto; }
.bridge figcaption { margin-top: var(--space-3); font-family: var(--font-display); font-style: italic; font-size: var(--text-base); color: var(--color-text-muted); text-align: center; max-width: none; }
.d-box { fill: var(--color-bg); stroke: var(--color-text); stroke-width: 1.4; }
.d-box-soft { fill: var(--color-bg); stroke: var(--color-border); stroke-width: 1.2; }
.d-core { fill: var(--color-text); }
.d-arc { stroke: var(--color-brass); stroke-width: 2.6; fill: none; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.6s .3s var(--ease) forwards; }
.d-line { stroke: var(--color-text-faint); stroke-width: 1.2; }
.d-label { font: 600 15px var(--font-body); fill: var(--color-text); }
.d-small { font: 600 13.5px var(--font-body); fill: var(--color-text); }
.d-sub { font: 400 11.5px var(--font-body); fill: var(--color-text-muted); }
.d-core-label { font: 500 18px var(--font-display); fill: var(--color-bg); }
.d-core-sub { font: 400 11.5px var(--font-body); fill: var(--color-bg); opacity: .8; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.cred-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
  margin-top: clamp(var(--space-12), 6vw, var(--space-20)); padding-top: var(--space-6); border-top: 1px solid var(--color-border);
}
.cred-strip li { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.4; padding-left: var(--space-4); border-left: 2px solid var(--color-brass); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-tint { background: var(--color-tint); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: start; }
.split > div > p + p { margin-top: var(--space-4); }
.split > div > h2 + p { margin-top: var(--space-6); color: var(--color-text-muted); }

/* problem */
.symptoms { border-top: 1px solid var(--color-border); margin-bottom: var(--space-8); }
.symptoms li { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); font-size: var(--text-base); }
.symptoms span { font-weight: 600; }
.problem-body > p { color: var(--color-text-muted); }
.pull { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); padding-left: clamp(var(--space-6), 4vw, var(--space-12)); border-left: 3px solid var(--color-brass); max-width: 980px; margin-left: auto; }
.pull p { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.15; letter-spacing: -0.015em; max-width: 26ch; }
.pull em { color: var(--color-brass); }

/* outcomes */
.outcomes { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); margin-top: var(--space-12); counter-reset: o; }
.outcomes li { grid-column: span 2; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-6); counter-increment: o; }
.outcomes li::before { content: counter(o, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: var(--text-base); color: var(--color-brass); margin-bottom: var(--space-6); }
.outcomes li h3 { margin-bottom: var(--space-2); }
.outcomes li p { color: var(--color-text-muted); font-size: var(--text-sm); }
.outcomes .o-feature { grid-column: span 4; grid-row: span 1; background: var(--color-dark); border-color: var(--color-dark); color: var(--color-on-dark); }
.outcomes .o-feature h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); max-width: 18ch; }
.outcomes .o-feature p { color: var(--color-on-dark-muted); font-size: var(--text-base); }
.outcomes li:nth-child(3), .outcomes li:nth-child(4), .outcomes li:nth-child(5) { grid-column: span 2; }

/* method */
.loop-card { margin-top: clamp(var(--space-12), 6vw, var(--space-16)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-12)); background: var(--color-surface); }
.loop-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-8); align-items: end; margin-bottom: var(--space-10); }
.loop-head h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); }
.loop-head p { color: var(--color-text-muted); }
.loop { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.loop::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 1px; background: var(--color-border); }
.loop li { position: relative; padding-right: var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); }
.loop .n { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--color-surface); border: 1.5px solid var(--color-text); font-size: var(--text-xs); font-weight: 600; margin-bottom: var(--space-3); position: relative; }
.loop li:last-child .n { border-color: var(--color-brass); color: var(--color-brass); }
.loop strong { font-size: var(--text-base); }
.loop small { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.45; }
.loop-note { margin-top: var(--space-10); padding: var(--space-5) var(--space-6); background: var(--color-tint); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--color-text-muted); max-width: none; }
.loop-note strong { color: var(--color-text); }

.table-wrap { margin-top: var(--space-12); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 640px; }
.compare caption { text-align: left; font-weight: 600; font-size: var(--text-base); margin-bottom: var(--space-4); }
.compare th, .compare td { text-align: left; padding: var(--space-4) var(--space-4) var(--space-4) 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.compare thead th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-faint); font-weight: 600; }
.compare tbody th { font-weight: 600; width: 16%; }
.compare td:nth-child(2) { color: var(--color-text-muted); width: 34%; }
.compare td:nth-child(3) { color: var(--color-text); }

/* engagements (dark) */
.section-dark { background: var(--color-dark); color: var(--color-on-dark); }
.section-dark .kicker { color: var(--color-brass); }
[data-theme='light'] .section-dark .kicker { color: #d3a35a; }
.offers { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: var(--space-4); margin-top: var(--space-12); }
.offer { background: var(--color-dark-2); border: 1px solid rgba(236,233,226,.1); border-radius: var(--radius-md); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.offer p { color: var(--color-on-dark-muted); font-size: var(--text-sm); }
.offer h3 { color: var(--color-on-dark); }
.offer-meta { font-size: var(--text-xs) !important; letter-spacing: .06em; text-transform: uppercase; color: #d3a35a !important; font-weight: 600; }
.offer-lead { grid-row: span 2; background: transparent; border-color: rgba(211,163,90,.5); }
.offer-lead h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); }
.offer-lead p { font-size: var(--text-base); }
.offer-tag { display: inline-block; align-self: flex-start; font-size: var(--text-xs) !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-dark) !important; background: #d3a35a; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); }
.offer-out { border-top: 1px solid rgba(236,233,226,.15); padding-top: var(--space-4); margin-top: auto; }
.offer-out strong { color: var(--color-on-dark); }
.offer-lead .btn { align-self: flex-start; margin-top: var(--space-4); }
.offers .offer:nth-child(4) { grid-column: 2 / span 2; }

.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); margin-top: clamp(var(--space-12), 6vw, var(--space-20)); padding-top: var(--space-8); border-top: 1px solid rgba(236,233,226,.15); }
.who h3 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--color-on-dark-muted); margin-bottom: var(--space-3); font-weight: 600; }
.who p { font-size: var(--text-sm); color: var(--color-on-dark); }

/* results */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-12); }
.result { border-top: 2px solid var(--color-text); padding-top: var(--space-5); display: flex; flex-direction: column; }
.r-org { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--color-text-muted); margin-bottom: var(--space-4); }
.r-stat { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; letter-spacing: -0.02em; }
.r-what { font-weight: 600; margin: var(--space-2) 0 var(--space-3); }
.result p:last-child { font-size: var(--text-sm); color: var(--color-text-muted); }
.r-big { grid-column: span 2; grid-row: span 2; background: var(--color-surface); border: 1px solid var(--color-divider); border-top: 2px solid var(--color-brass); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: var(--space-8); }
.r-big .r-stat { font-size: var(--text-3xl); color: var(--color-primary); margin-top: auto; }
.r-big p:last-child { font-size: var(--text-base); }

/* about */
.arc { border-left: 1px solid var(--color-border); }
.arc li { position: relative; padding: 0 0 var(--space-8) var(--space-8); }
.arc li:last-child { padding-bottom: 0; }
.arc li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--color-tint); border: 1.5px solid var(--color-text); }
.arc-now::before { background: var(--color-brass) !important; border-color: var(--color-brass) !important; }
.arc-step { font-weight: 600; margin-bottom: var(--space-1); }
.arc li p:last-child { color: var(--color-text-muted); font-size: var(--text-sm); }
.arc-now .arc-step { color: var(--color-brass); }
.creds { margin-top: clamp(var(--space-12), 6vw, var(--space-16)); padding-top: var(--space-8); border-top: 1px solid var(--color-border); display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); }
.creds h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); }
.creds ul { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-8); }
.creds li { font-size: var(--text-sm); padding-left: var(--space-4); border-left: 2px solid var(--color-brass); line-height: 1.45; }

/* contact */
.contact { background: var(--color-dark); color: var(--color-on-dark); }
.contact-inner { text-align: left; }
.contact h2 { font-size: var(--text-2xl); max-width: 20ch; margin-bottom: var(--space-6); }
.contact-inner > p { color: var(--color-on-dark-muted); font-size: var(--text-lg); margin-bottom: var(--space-8); }
.contact-inner > .contact-links { margin-top: var(--space-8); margin-bottom: 0; font-size: var(--text-sm); color: var(--color-on-dark-muted); }
.contact-links a { color: var(--color-on-dark); text-underline-offset: 3px; }

.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); border-top: 1px solid rgba(236,233,226,.1); }
.footer-inner { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); font-size: var(--text-xs); }
.footer-inner a { color: var(--color-on-dark-muted); }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .bridge { max-width: 560px; }
  .cred-strip { grid-template-columns: 1fr 1fr; }
  .loop { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-8); }
  .loop::before { display: none; }
  .offers { grid-template-columns: 1fr 1fr; }
  .offer-lead { grid-row: auto; grid-column: span 2; }
  .offers .offer:nth-child(4) { grid-column: auto; }
  .who { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .split, .loop-head, .creds { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .outcomes li, .outcomes .o-feature, .outcomes li:nth-child(n) { grid-column: auto; }
  .results { grid-template-columns: 1fr; }
  .r-big { grid-column: auto; }
  .offers { grid-template-columns: 1fr; }
  .offer-lead { grid-column: auto; }
  .who, .creds ul { grid-template-columns: 1fr; }
  .loop { grid-template-columns: 1fr 1fr; }
  .brand-role { display: none; }
  .btn-sm { padding-inline: var(--space-4); }
  .pull { margin-left: 0; }
  .r-big { grid-row: auto; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare caption { display: block; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare tr { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
  .compare th, .compare td { border: 0; padding: var(--space-1) 0; }
  .compare td::before { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-faint); font-weight: 600; }
  .compare td:nth-child(2)::before { content: 'Traditional'; }
  .compare td:nth-child(3)::before { content: 'My approach'; margin-top: var(--space-2); }
  .cta-row .btn { width: 100%; white-space: normal; }
  .header-actions .btn-sm { white-space: nowrap; }
}
@media (max-width: 420px) {
  .cred-strip { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}

/* portrait */
.portrait { margin-top: var(--space-10); max-width: 380px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-md); filter: saturate(.95); }
.portrait figcaption { display: flex; flex-direction: column; margin-top: var(--space-3); font-size: var(--text-sm); max-width: none; }
.portrait figcaption span { color: var(--color-text-muted); font-size: var(--text-xs); }
@media (max-width: 760px) { .portrait { max-width: 300px; } }
