/* =========================================================
   Sela Advisory — Site Styles (2026 refresh)
   Single stylesheet. No build step.
   Modern font pairing w/ graceful fallback, light + dark
   themes, glass header, card layouts, tasteful motion.
   ========================================================= */

/* -----------------------------
   Self-hosted webfonts (no third-party requests).
   Subsets mirror Google Fonts; browsers fetch only the
   unicode-ranges a page actually uses (~113 KB latin).
   ----------------------------- */
/* Fraunces vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Fraunces latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
/* Inter greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Inter vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* Inter latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback for Inter: body text renders in
   adjusted Arial until the webfont arrives, with near-zero
   layout shift on swap. */
@font-face {
  font-family: "Inter-fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}

/* -----------------------------
   Design tokens — light theme
   ----------------------------- */
:root {
  color-scheme: light;

  --bg: #FBFAF7;
  --bg-tint: #F4F0E8;
  --surface: #FFFFFF;
  --surface-2: #F7F3EC;
  --surface-glass: rgba(251, 250, 247, 0.72);

  --text: #1B1A18;
  --text-soft: #46443F;
  --text-muted: #6B695F;

  --border: #E9E4D9;
  --border-strong: #D9D3C5;

  --accent: #3C5E6E;
  --accent-strong: #294651;
  --accent-contrast: #FFFFFF;
  --accent-soft: #E7EEF1;
  --gold: #B5894C;

  --brand-tile: #34525F;

  --ring: rgba(60, 94, 110, 0.40);

  --shadow-sm: 0 1px 2px rgba(28, 30, 35, 0.04), 0 1px 3px rgba(28, 30, 35, 0.06);
  --shadow-md: 0 4px 14px rgba(28, 30, 35, 0.06), 0 14px 34px rgba(28, 30, 35, 0.08);
  --shadow-lg: 0 22px 48px rgba(28, 30, 35, 0.14);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", Times, serif;
  --font-sans: "Inter", "Inter-fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Measure */
  --max-prose: 40rem;
  --max-content: 70rem;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  /* Radii */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

/* Dark theme — automatic (system) unless explicitly forced light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #111317;
    --bg-tint: #171A20;
    --surface: #181B21;
    --surface-2: #1F242C;
    --surface-glass: rgba(17, 19, 23, 0.66);

    --text: #ECEAE3;
    --text-soft: #C4C2BA;
    --text-muted: #93918A;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.17);

    --accent: #88B2C2;
    --accent-strong: #A9C9D5;
    --accent-contrast: #0E1418;
    --accent-soft: rgba(136, 178, 194, 0.12);
    --gold: #CBA468;

    --ring: rgba(136, 178, 194, 0.45);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.46);
    --shadow-lg: 0 26px 54px rgba(0, 0, 0, 0.55);
  }
}

/* Dark theme — manual override (toggle) */
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #111317;
  --bg-tint: #171A20;
  --surface: #181B21;
  --surface-2: #1F242C;
  --surface-glass: rgba(17, 19, 23, 0.66);

  --text: #ECEAE3;
  --text-soft: #C4C2BA;
  --text-muted: #93918A;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);

  --accent: #88B2C2;
  --accent-strong: #A9C9D5;
  --accent-contrast: #0E1418;
  --accent-soft: rgba(136, 178, 194, 0.12);
  --gold: #CBA468;

  --ring: rgba(136, 178, 194, 0.45);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 26px rgba(0, 0, 0, 0.46);
  --shadow-lg: 0 26px 54px rgba(0, 0, 0, 0.55);
}

/* -----------------------------
   Reset / base
   ----------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.prose a,
.faq dd a,
.footer-blurb a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }

a:hover,
a:focus-visible { color: var(--accent-strong); }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 4px;
}

/* -----------------------------
   Typography
   ----------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2) 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.55rem + 2.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.15rem); margin-top: var(--space-5); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.45rem); margin-top: var(--space-4); }

p { margin: 0 0 var(--space-3) 0; }
.prose p { color: var(--text-soft); }

strong { font-weight: 650; color: var(--text); }
em { font-style: italic; }

blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-style: italic;
  background: var(--surface-2);
}

ul, ol { padding-left: 1.2rem; margin: 0 0 var(--space-3) 0; }
.prose ul, .prose ol { color: var(--text-soft); }
li { margin-bottom: 0.55rem; }
li::marker { color: var(--accent); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-5) 0;
}

code, pre {
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  background: var(--surface-2);
}
pre {
  padding: var(--space-2);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
code { padding: 0.12em 0.38em; font-size: 0.9em; border-radius: 5px; }
pre code { padding: 0; background: transparent; }

/* -----------------------------
   Layout containers
   ----------------------------- */
.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.prose { max-width: var(--max-prose); margin: 0 auto; }
.prose-wide { max-width: 50rem; margin: 0 auto; }

/* -----------------------------
   Skip link (a11y)
   ----------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -3rem;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--space-2); color: var(--accent-contrast); }

/* -----------------------------
   Site header / nav (sticky glass)
   ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.85rem 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark { display: inline-flex; flex-shrink: 0; }
.brand-mark .logo {
  display: block;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand:hover .logo { transform: rotate(-4deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-top: 0.28rem;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-nav a:not(.nav-cta) {
  position: relative;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.28rem;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta):focus-visible { color: var(--text); }
.site-nav a:not(.nav-cta):hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--text); }

.nav-cta { margin-left: 0.4rem; }

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 0.25rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Mobile nav controls (hidden on desktop) */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* -----------------------------
   Buttons
   ----------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent-strong);
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; box-shadow: none; }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-strong);
  box-shadow: none;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent);
}

.cta-wrap { margin: var(--space-4) 0; }
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: var(--space-4) 0;
}

/* -----------------------------
   Eyebrow label
   ----------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}

/* -----------------------------
   Sections
   ----------------------------- */
main { display: block; }
section { padding: var(--space-6) 0; }
section.tight { padding: var(--space-5) 0; }

.section-heading { margin-bottom: var(--space-3); }
h2 { scroll-margin-top: 6rem; }

/* -----------------------------
   Hero
   ----------------------------- */
.hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-6);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(42% 55% at 18% 12%, color-mix(in srgb, var(--accent) 24%, transparent) 0%, transparent 60%),
    radial-gradient(38% 48% at 88% 6%, color-mix(in srgb, var(--gold) 20%, transparent) 0%, transparent 58%),
    radial-gradient(50% 60% at 70% 90%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 62%);
  filter: blur(8px);
  opacity: 0.9;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
  pointer-events: none;
}
[data-theme="dark"] .hero::after { mix-blend-mode: screen; opacity: 0.05; }

.hero h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem);
  line-height: 1.05;
  max-width: 21ch;
  margin-bottom: var(--space-3);
}
.hero-lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  max-width: 40rem;
  color: var(--text-soft);
}
.hero.center { text-align: center; }
.hero.center h1,
.hero.center .hero-lede { margin-left: auto; margin-right: auto; }

/* Trust chips below hero */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-4);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* -----------------------------
   Feature / card grid
   ----------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.feature-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.feature-card .card-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: 0.97rem; }

/* -----------------------------
   Highlight panel ("how we are paid" / "what we are NOT")
   ----------------------------- */
.what-we-are-not,
.panel {
  margin: var(--space-5) auto 0;
  padding: var(--space-4) var(--space-4);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}
.what-we-are-not h2 { margin-top: 0; }

/* -----------------------------
   Service / deliverable blocks (What We Do)
   ----------------------------- */
.deliverable {
  position: relative;
  margin: var(--space-3) 0;
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.deliverable:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.deliverable h2 {
  margin-top: 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
  font-size: 1.4rem;
}
.deliverable p { color: var(--text-soft); }
.deliverable p:last-child { margin-bottom: 0; }

/* -----------------------------
   FAQ
   ----------------------------- */
.faq { margin-top: var(--space-3); }
.faq dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text);
}
.faq dt:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.faq dd { margin: var(--space-1) 0 0 0; color: var(--text-soft); }

/* -----------------------------
   Blog index cards
   ----------------------------- */
.post-card {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.post-card h2, .post-card h3 { margin: 0 0 var(--space-2); font-size: 1.45rem; margin-top: 0; }
.post-card h3 { font-size: 1.3rem; }
.post-card h2 a, .post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover, .post-card h2 a:focus-visible,
.post-card h3 a:hover, .post-card h3 a:focus-visible { color: var(--accent); }
.post-card .summary { color: var(--text-soft); margin-bottom: var(--space-2); }
.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}
.post-card .read-more .arrow { transition: transform 0.2s ease; }
.post-card:hover .read-more .arrow { transform: translateX(4px); }

/* -----------------------------
   Blog post body
   ----------------------------- */
.post-meta {
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  font-size: 1.05rem;
  line-height: 1.55;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}
.back-link:hover { color: var(--accent); }

/* -----------------------------
   Soft CTA (in-article)
   ----------------------------- */
.soft-cta {
  margin-top: var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}
.soft-cta p { margin-bottom: var(--space-2); color: var(--text-soft); }
.soft-cta .btn { margin-top: var(--space-1); }

/* -----------------------------
   Guide hero
   ----------------------------- */
.guide-hero { position: relative; padding: var(--space-7) 0 var(--space-3); overflow: hidden; isolation: isolate; }
.guide-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(40% 50% at 20% 10%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 60%),
    radial-gradient(36% 46% at 85% 8%, color-mix(in srgb, var(--gold) 18%, transparent) 0%, transparent 58%);
  filter: blur(8px);
}
.guide-hero h1 { max-width: 20ch; }
.guide-hero .subhead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: var(--space-3);
}
.secondary-link {
  display: block;
  margin-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About row (founder photo placeholder) */
.about-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.about-row .about-text { flex: 1; min-width: 16rem; }
.photo-placeholder {
  width: 200px; height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-strong) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem; letter-spacing: 0.16em; font-weight: 600;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

/* -----------------------------
   Footer
   ----------------------------- */
.site-footer {
  margin-top: var(--space-7);
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.footer-brand .brand { margin-bottom: var(--space-2); }
.footer-brand .brand-wordmark { font-size: 1.3rem; }
.footer-blurb { max-width: 30ch; color: var(--text-muted); margin: 0; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-h {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 0 0 0.3rem;
}
.footer-col a { color: var(--text-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-loc { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.footer-legal {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.footer-legal p { max-width: 60rem; margin: 0 auto var(--space-2); font-size: 0.8rem; line-height: 1.55; color: var(--text-muted); }
.footer-copy { color: var(--text-muted); }

/* -----------------------------
   Scroll reveal (progressive enhancement)
   ----------------------------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal-ready [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Entrance animation for hero content */
@media (prefers-reduced-motion: no-preference) {
  .hero .prose-wide > * {
    animation: rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .hero .prose-wide > *:nth-child(1) { animation-delay: 0.05s; }
  .hero .prose-wide > *:nth-child(2) { animation-delay: 0.13s; }
  .hero .prose-wide > *:nth-child(3) { animation-delay: 0.21s; }
  .hero .prose-wide > *:nth-child(4) { animation-delay: 0.29s; }
  .hero .prose-wide > *:nth-child(5) { animation-delay: 0.37s; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Blog & editorial system (2026 content build)
   ========================================================= */

/* Reading progress bar (progressive enhancement) */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.reading-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform-origin: left;
  transition: width 0.08s linear;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--space-3);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-strong); }
.breadcrumb [aria-current="page"] { color: var(--text-soft); }

/* Category tag */
.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
a.cat-tag:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-strong); }
[data-theme="dark"] .cat-tag { color: var(--accent-strong); }

/* Article header + meta row */
.article-header { margin-bottom: var(--space-4); }
.article-header h1 {
  font-size: clamp(2rem, 1.5rem + 2.3vw, 3rem);
  line-height: 1.08;
  margin: var(--space-2) 0 var(--space-3);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.article-meta time { color: var(--text-muted); }
.article-meta .reading-time { display: inline-flex; align-items: center; gap: 0.35rem; }
.article-meta .reading-time svg { width: 14px; height: 14px; }

.standfirst {
  font-family: var(--font-sans);
  font-size: clamp(1.12rem, 1.02rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

/* Byline / author chip */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.byline .monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.byline .byline-name { color: var(--text-soft); font-weight: 600; font-size: 0.9rem; }
.byline .byline-sub { color: var(--text-muted); font-size: 0.78rem; }

/* Article body refinements */
.article-body > h2:first-child { margin-top: 0; }
.article-body figure { margin: var(--space-4) 0; }
.article-body figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.article-body figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--text-muted); text-align: center; }

/* Pull quote */
.pullquote {
  margin: var(--space-5) 0;
  padding: var(--space-1) 0 var(--space-1) var(--space-3);
  border: none;
  border-left: 3px solid var(--gold);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pullquote p { margin: 0; color: var(--text); }
.pullquote cite {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

/* Inline term definition (dotted underline) */
.term {
  font-style: italic;
  border-bottom: 1px dotted var(--border-strong);
  cursor: help;
}

/* Stat callout strip inside articles */
.stat-callout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.stat-callout .stat {
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat-callout .stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-callout .stat .label { display: block; margin-top: 0.4rem; font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

/* Table of contents */
.toc {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toc .toc-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.4rem; }
.toc a { color: var(--text-soft); font-size: 0.95rem; }
.toc a:hover { color: var(--accent); }

/* Key takeaways card */
.key-takeaways {
  margin: var(--space-6) 0 var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}
.key-takeaways h2,
.key-takeaways h3 { margin-top: 0; font-size: 1.25rem; }
.takeaway-list { list-style: none; margin: 0; padding: 0; }
.takeaway-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.8rem;
  color: var(--text-soft);
}
.takeaway-list li:last-child { margin-bottom: 0; }
.takeaway-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 1.15rem;
  height: 1.15rem;
  background-color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Author box at article end */
.author-box {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.author-box .author-mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.author-box .author-body { flex: 1; }
.author-box .author-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin: 0 0 0.25rem;
}
.author-box p { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 0.5rem; }
.author-box .author-link { font-size: 0.9rem; font-weight: 600; }

/* Keep reading / related posts */
.read-next { margin-top: var(--space-6); }
.read-next .read-next-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}
.read-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-3);
}
.mini-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mini-card .mini-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.mini-card .mini-title a { color: var(--text); }
.mini-card .mini-title a:hover { color: var(--accent); }
.mini-card .mini-meta { font-size: 0.78rem; color: var(--text-muted); }

/* -----------------------------
   Blog index — featured + grid
   ----------------------------- */
.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin-bottom: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.featured-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.featured-visual {
  position: relative;
  min-height: 16rem;
  background:
    radial-gradient(60% 70% at 25% 20%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 70%),
    radial-gradient(50% 60% at 85% 90%, color-mix(in srgb, var(--gold) 40%, transparent) 0%, transparent 65%),
    linear-gradient(150deg, var(--accent-strong) 0%, var(--brand-tile, #34525F) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.featured-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.featured-visual .featured-logo { width: 78px; height: 78px; filter: drop-shadow(0 8px 22px rgba(0,0,0,0.35)); }
.featured-body { padding: var(--space-4) var(--space-4); display: flex; flex-direction: column; }
.featured-body .featured-flag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--gold); margin-bottom: var(--space-2);
}
.featured-body h2 { margin: 0 0 var(--space-2); margin-top: 0; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.featured-body h2 a { color: var(--text); }
.featured-body h2 a:hover { color: var(--accent); }
.featured-body .summary { color: var(--text-soft); margin-bottom: var(--space-3); }
.featured-body .post-card-meta { margin-top: auto; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: var(--space-3);
}
.post-grid .post-card { margin-bottom: 0; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-2);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }
.post-card .summary { flex: 1; }

/* Blog filter chips (visual grouping) */
.topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-3) 0 var(--space-5);
}
.topic-chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.topic-chip:hover { color: var(--accent); border-color: var(--accent); }
.topic-chip .count { color: var(--text-muted); font-size: 0.75rem; margin-left: 0.2rem; }

/* Newsletter / closing strip on blog index */
.blog-closing {
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-sm);
}
.blog-closing h2 { margin-top: 0; }
.blog-closing p { color: var(--text-soft); max-width: 38rem; margin-left: auto; margin-right: auto; }

@media (max-width: 720px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-visual { min-height: 11rem; order: -1; }
}

/* =========================================================
   Visual explainers — diagrams, charts, timelines, panels
   All theme-aware (driven by tokens; work in light + dark)
   ========================================================= */

figure.diagram { margin: var(--space-4) 0; }
figure.diagram > figcaption,
.figure-note {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- "Who works for whom" — two sides of the table --- */
.whose-side {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.side-col { display: flex; flex-direction: column; gap: 0.7rem; }
.side-head {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--text-muted);
  margin: 0 0 0.2rem;
}
.party-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.party-card .role { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.party-card .role em { font-weight: 400; color: var(--text-muted); }
.party-card .pays {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.76rem; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; text-align: right;
}
.party-card .pays svg { width: 15px; height: 15px; flex-shrink: 0; }
.you-node {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-3) var(--space-2);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  text-align: center;
}
.you-node .you-big { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--accent-strong); line-height: 1; }
.you-node .you-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.1em; }
.party-card.is-sela {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface), var(--accent-soft));
}
.party-card.is-sela .role { color: var(--accent-strong); }
.party-card.is-sela .pays { color: var(--accent); font-weight: 600; }
@media (min-width: 721px) {
  .whose-side::before {
    content: ""; position: absolute; top: 1.7rem; bottom: 0.2rem; left: 50%;
    width: 1px; background: var(--border-strong);
  }
}
@media (max-width: 560px) {
  .party-card { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .party-card .pays { text-align: left; }
}

/* --- Flat-fee vs percentage chart --- */
.pay-chart-wrap { margin: var(--space-3) 0 0; }
.pay-chart { width: 100%; height: auto; display: block; }
.pay-chart .axis { stroke: var(--border-strong); stroke-width: 1.5; }
.pay-chart .grid { stroke: var(--border); stroke-width: 1; }
.pay-chart .line-pct { stroke: var(--gold); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pay-chart .line-flat { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; }
.pay-chart .dot-pct { fill: var(--gold); }
.pay-chart .dot-flat { fill: var(--accent); }
.pay-chart .axlabel { fill: var(--text-muted); font-family: var(--font-sans); font-size: 13px; font-weight: 500; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  justify-content: center; margin-top: var(--space-3);
}
.chart-legend .lg { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-soft); }
.chart-legend .lg i { width: 1.4rem; height: 0.28rem; border-radius: 2px; flex-shrink: 0; }
.chart-legend .lg-pct i { background: var(--gold); }
.chart-legend .lg-flat i { background: var(--accent); }

/* --- Buyer's journey timeline --- */
.journey {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.journey li::marker { content: none; }
.journey-step { position: relative; padding-top: 3rem; }
.journey-step .step-num {
  position: absolute; top: 0; left: 0;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-contrast);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  box-shadow: var(--shadow-sm); z-index: 1;
}
.journey-step::before {
  content: ""; position: absolute; top: 1.1rem; left: 2.2rem; right: -0.5rem; height: 2px;
  background: var(--border-strong);
}
.journey-step:last-child::before { display: none; }
.journey-step h3 { font-size: 1.02rem; margin: 0 0 0.3rem; }
.journey-step p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.journey-step .step-tag {
  display: inline-block; margin-top: 0.5rem;
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
}
@media (max-width: 820px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey-step { padding: 0 0 var(--space-3) 3.2rem; }
  .journey-step::before { top: 2.2rem; bottom: -0.3rem; left: 1.1rem; right: auto; width: 2px; height: auto; }
  .journey-step:last-child { padding-bottom: 0; }
}

/* --- Money-at-stake stat strip (links) --- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-2);
}
.stat-link {
  display: block;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.stat-link .num { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.stat-link .label { display: block; margin-top: 0.45rem; font-size: 0.85rem; color: var(--text-soft); line-height: 1.4; }
.stat-link .more { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.7rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.stat-link .more .arrow { transition: transform 0.2s ease; }
.stat-link:hover .more .arrow { transform: translateX(3px); }

/* --- "What can go wrong" risk panel --- */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-2);
  margin: var(--space-4) 0;
}
.risk-item {
  display: flex; gap: 0.85rem;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.risk-item .risk-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--gold) 16%, transparent);
  color: var(--gold);
}
.risk-item .risk-ic svg { width: 21px; height: 21px; }
.risk-item h3 { font-size: 1rem; margin: 0 0 0.25rem; }
.risk-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* --- Trust "by design" chips --- */
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin: var(--space-3) 0 0;
}
.trust-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.trust-chip svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* --- Testimonials (ready for real client quotes) --- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.quote-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.quote-card .quote-mark { font-family: var(--font-display); font-size: 2.6rem; line-height: 0.5; color: var(--accent); height: 1.1rem; }
.quote-card blockquote { margin: 0; padding: 0; border: none; background: none; font-style: normal; color: var(--text-soft); font-size: 1.02rem; line-height: 1.6; }
.quote-card .quote-by { display: flex; align-items: center; gap: 0.65rem; margin-top: auto; padding-top: var(--space-1); }
.quote-card .quote-by .qmono {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
}
.quote-card .quote-by .qname { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.quote-card .quote-by .qrole { color: var(--text-muted); font-size: 0.8rem; }

/* --- Mid-page CTA banner --- */
.cta-banner {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--accent-soft) 0%, var(--surface) 70%);
  box-shadow: var(--shadow-sm);
}
.cta-banner .cta-banner-text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  color: var(--text); margin: 0; max-width: 34rem; line-height: 1.25;
}
.cta-banner .btn { flex-shrink: 0; }

/* Inline glossed term (dotted underline + native tooltip) */
abbr.gloss { text-decoration: none; border-bottom: 1px dotted var(--border-strong); cursor: help; }

/* -----------------------------
   Responsive
   ----------------------------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
    z-index: 2;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: var(--space-2);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-toggle:checked ~ .site-nav {
    max-height: 80vh;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav a:not(.nav-cta) { padding: 0.85rem 0.6rem; font-size: 1rem; }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin: 0.4rem 0 0; justify-content: center; }
  .theme-toggle { margin: 0.5rem auto 0.2rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  section { padding: var(--space-5) 0; }
  .hero { padding: var(--space-6) 0 var(--space-5); }
  .container { padding: 0 var(--space-3); }
  .photo-placeholder { width: 100%; max-width: 320px; height: 220px; }
}


/* -----------------------------
   CTA price note (transparency microcopy under buttons)
   ----------------------------- */
.cta-note {
  margin: 0.7rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Journey variant: 4 columns (homepage "how it works") */
.journey.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) {
  .journey.cols-4 { grid-template-columns: 1fr; }
}

/* -----------------------------
   Mobile sticky CTA bar (homepage only; appears after the
   hero CTA scrolls out of view; fixed + transform = no CLS)
   ----------------------------- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: none;
  padding: 0.6rem var(--space-3) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--surface-glass);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(28, 30, 35, 0.10);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mobile-cta .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}
.mobile-cta.show { transform: none; }
@media (max-width: 760px) {
  .mobile-cta { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-cta { transition: none; }
}

/* -----------------------------
   Reduced motion
   ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* -----------------------------
   Print
   ----------------------------- */
@media print {
  .site-header, .site-nav, .nav-burger, .theme-toggle,
  .site-footer, .cta-wrap, .cta-group, .btn, .soft-cta,
  .back-link, .skip-link, .hero::before, .hero::after,
  .reading-progress, .breadcrumb, .topic-row, .read-next,
  .soft-cta, .blog-closing, .mobile-cta, .cta-note {
    display: none !important;
  }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.4; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
  .deliverable, .post-card, .what-we-are-not, .panel {
    border: 1px solid #ccc; box-shadow: none; break-inside: avoid;
  }
  h1, h2, h3 { break-after: avoid; }
}
