/* =========================================================================
   Brighterr — Design System + Homepage styles
   Hand-coded. Mobile-first. Token-driven. No frameworks.
   ========================================================================= */

/* ----- 0. FONTS (self-hosted, no external requests) --------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}

/* ----- 1. DESIGN TOKENS ------------------------------------------------- */
:root {
  /* Brand colour — green primary accent (the green diamond) */
  --brand-600: #128A53;   /* primary CTA / links — AA on white (4.9:1) */
  --brand-700: #0F6E43;   /* hover / active */
  --brand-500: #1A9E5F;   /* diamond mark / accents on dark */
  --brand-050: #E9F6EF;   /* tint surfaces */

  /* Neutrals (warm-cool ink for credibility) */
  --ink-900: #11271C;     /* deep green-black — headings / dark sections */
  --ink-800: #1B2A22;
  --ink-700: #33413A;     /* body text on light (12.4:1) */
  --ink-500: #5C6B63;     /* muted text (4.7:1 on white) */
  --ink-300: #C9D2CC;     /* borders */
  --ink-100: #EEF2EF;     /* hairlines / subtle fills */
  --paper:   #FFFFFF;
  --paper-2: #F6F9F7;     /* alternating section bg */

  /* Functional */
  --focus:   #0A66C2;     /* high-contrast focus ring, distinct from brand */

  /* Type scale — modular ~1.25 (major third), fluid via clamp() */
  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.45vw, 1.50rem);
  --step-2:  clamp(1.56rem, 1.38rem + 0.85vw, 2.10rem);
  --step-3:  clamp(1.95rem, 1.60rem + 1.60vw, 3.00rem);
  --step-4:  clamp(2.44rem, 1.90rem + 2.60vw, 4.00rem);

  /* Spacing scale (4px base, geometric-ish) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Misc */
  --radius:   12px;
  --radius-sm: 8px;
  --maxw:      1180px;   /* base content track: balanced, avoids dead space */
  --maxw-wide: 1360px;   /* wide track: hero, diagrams, card grids, 2-col */
  --maxw-prose: 68ch;    /* comfortable reading measure for body prose */
  --gutter:    clamp(1.25rem, 4vw, 3rem);  /* fluid side padding, scales up on wide screens */
  --shadow:   0 1px 2px rgba(17,39,28,.06), 0 8px 24px rgba(17,39,28,.06);
  --shadow-lg:0 12px 40px rgba(17,39,28,.12);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ----- 2. RESET / BASE -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--ink-900); line-height: 1.14; }
/* Display headings — Fraunces serif, editorial and classy */
h1, h2 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); line-height: 1.08; }
h2 { font-size: var(--step-3); }
/* Component-level headings stay in the UI sans for clarity */
h3 { font-family: var(--font-sans); font-size: var(--step-1); letter-spacing: -0.01em; font-weight: 600; }

p { max-width: var(--maxw-prose); }
a { color: var(--brand-700); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Skip link */
.skip-link {
  position: absolute; left: var(--space-4); top: -100%;
  background: var(--ink-900); color: #fff; padding: .6rem 1rem;
  border-radius: var(--radius-sm); z-index: 200; transition: top .15s;
}
.skip-link:focus { top: var(--space-4); }

/* ----- 3. LAYOUT PRIMITIVES -------------------------------------------- */
/* Two content tracks. Both centred; background colour lives on the full-bleed
   <section>, content sits in a track -> edge-to-edge bg + intentional gutters. */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* Wide track: hero, the Revenue Engine diagram, stat grid, umbrella row,
   feature/2-col sections — these fill the page so it never looks boxed-in. */
.container--wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(var(--space-7), 6vw, var(--space-9)); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink-900); color: #DFE8E2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--brand { background: var(--paper-2); }

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--space-3);
}
.section--dark .eyebrow { color: #9FB2A8; }

.lead { font-size: var(--step-1); color: var(--ink-700); line-height: 1.5; }
.section--dark .lead { color: #C9D6CE; }
.muted { color: var(--ink-500); font-size: var(--step--1); }
.section--dark .muted { color: #9FB2A8; }

.section-head { max-width: 56ch; margin-bottom: var(--space-7); }
.section-head p { margin-top: var(--space-4); }

/* ----- 4. BUTTONS ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: var(--step-0);
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .05s;
  line-height: 1.2; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--secondary { background: transparent; color: var(--ink-900); border-color: var(--ink-300); }
.btn--secondary:hover { border-color: var(--ink-700); background: var(--paper-2); }
.section--dark .btn--secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.section--dark .btn--secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { padding: 1rem 1.75rem; font-size: var(--step-1); }
.btn--block { width: 100%; }
/* Text-style link button — for a quiet secondary action next to a primary CTA */
.btn--link { padding: .85rem .25rem; border: 0; background: transparent; color: var(--ink-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-300); }
.btn--link:hover { color: var(--ink-900); text-decoration-color: var(--ink-700); }
.section--dark .btn--link { color: #C9D6CE; }
.section--dark .btn--link:hover { color: #fff; }

/* ----- 5. HEADER / NAV -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--ink-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-5); list-style: none; padding: 0; }
.nav-links a { color: var(--ink-700); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.nav-links a:hover { color: var(--brand-700); }
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--ink-300);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink-900); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile nav panel */
@media (max-width: 819px) {
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow);
    display: none; padding: var(--space-4) var(--space-5) var(--space-6);
  }
  .nav-menu[data-open="true"] { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--ink-100); }
  .nav-links a { display: block; padding: var(--space-4) 0; font-size: var(--step-0); }
  .nav-menu .btn { margin-top: var(--space-5); }
}
@media (min-width: 820px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex !important; align-items: center; gap: var(--space-6); }
  .nav-cta { display: inline-flex; }
}

/* ----- 6. HERO ---------------------------------------------------------- */
.hero { padding-block: clamp(var(--space-7), 7vw, var(--space-9)); }
.hero h1 { margin-bottom: var(--space-4); max-width: 15ch; }
.hero .lead { font-size: var(--step-0); max-width: 46ch; margin-bottom: var(--space-6); }
.hero .lead strong { color: var(--ink-900); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero-microcopy { margin-top: var(--space-4); color: var(--ink-500); font-size: var(--step--1); max-width: 52ch; }

/* Trust strip */
.trust-strip {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--ink-100);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6);
  align-items: center;
}
.trust-strip li { list-style: none; display: flex; align-items: center; gap: .5rem; font-size: var(--step--1); color: var(--ink-700); font-weight: 600; }
.trust-strip svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-500); }

/* ----- 7. PROBLEM / PAIN BULLETS --------------------------------------- */
.pain-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-block: var(--space-6); max-width: 60ch; }
.pain-list li { position: relative; padding-left: 2rem; }
.pain-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 2px; background: var(--ink-500); border-radius: 2px;
}
.callout {
  margin-top: var(--space-6); padding: var(--space-5) var(--space-6);
  background: var(--paper-2); border-left: 4px solid var(--ink-900);
  border-radius: var(--radius-sm); font-size: var(--step-1); color: var(--ink-900); font-weight: 600;
  max-width: 60ch;
}

/* ----- 8. BENEFIT / CARD GRID ------------------------------------------ */
.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: var(--space-6);
  box-shadow: var(--shadow);
}
.section--alt .card { background: var(--paper); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--ink-700); }

/* ----- 9. PHASE CARDS (How it works) ----------------------------------- */
.phases { display: grid; gap: var(--space-5); counter-reset: phase; }
@media (min-width: 720px) { .phases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .phases { grid-template-columns: repeat(5, 1fr); } }

.phase {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3);
}
.phase .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--ink-900); color: #fff; font-weight: 800; font-size: var(--step-0);
}
.phase h3 { font-size: var(--step-0); margin: 0; }
.phase p { font-size: var(--step--1); color: var(--ink-700); margin: 0; }
.phase .you-get { font-size: var(--step--1); color: var(--ink-900); margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--ink-100); }
.phase .you-get strong { color: var(--ink-900); }

/* ----- 10. WHY / LIST WITH ICONS --------------------------------------- */
.feature-list { list-style: none; padding: 0; display: grid; gap: var(--space-5); max-width: 70ch; }
.feature-list li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-4); align-items: start; }
.feature-list .tick {
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink-100);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 2px;
}
.feature-list .tick svg { width: 16px; height: 16px; color: var(--ink-900); }
.section--dark .feature-list .tick { background: rgba(255,255,255,.92); }
.section--dark .feature-list .tick svg { color: var(--ink-900); }
.feature-list strong { color: var(--ink-900); display: block; }
.section--dark .feature-list strong { color: #fff; }
.feature-list p { margin-top: 2px; }

/* ----- 11. FORMS -------------------------------------------------------- */
.form-card {
  background: var(--paper); border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: clamp(var(--space-5), 4vw, var(--space-7)); box-shadow: var(--shadow-lg);
}
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-weight: 600; color: var(--ink-900); margin-bottom: var(--space-2); font-size: var(--step--1); }
.field .opt { color: var(--ink-500); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-0); color: var(--ink-900);
  padding: .8rem 1rem; border: 1.5px solid var(--ink-300); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(18,138,83,.18);
}
.field textarea { resize: vertical; min-height: 90px; }
.form-microcopy { font-size: var(--step--1); color: var(--ink-500); margin-top: var(--space-4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Inline lead-magnet form (email only) */
.inline-form { display: grid; gap: var(--space-3); max-width: 480px; margin-top: var(--space-5); }
@media (min-width: 560px) { .inline-form { grid-template-columns: 1fr auto; align-items: start; } }
.inline-form .field { margin: 0; }
.section--dark .inline-form label { color: #fff; }

/* Two-col layout for lead-magnet + final cta */
.split { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr .95fr; gap: var(--space-8); } }

.benefit-bullets { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.benefit-bullets li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); }
.benefit-bullets svg { width: 20px; height: 20px; color: var(--ink-700); margin-top: 3px; }
.section--dark .benefit-bullets svg { color: #C9D6CE; }

.reassurance { margin-top: var(--space-5); font-style: italic; color: var(--ink-500); }
.section--dark .reassurance { color: #9FB2A8; }

/* ----- 12. NEED-FLAG (visible only intent for editors, comment in DOM) -- */

/* ----- 13. FOOTER ------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: #AEC0B6; padding-block: var(--space-7); }
.site-footer a { color: #DFE8E2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 28px; margin-bottom: var(--space-3); }
.footer-brand p { font-size: var(--step--1); color: #8DA298; max-width: 38ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); list-style: none; padding: 0; font-size: var(--step--1); }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.1); font-size: var(--step--1); color: #8DA298; }

/* ----- 14. UTIL --------------------------------------------------------- */
.center { text-align: center; }
.mt-6 { margin-top: var(--space-6); }
.cta-row { margin-top: var(--space-6); }
.section--brand .callout { background: #fff; }
.tag { display:inline-block; font-size: var(--step--1); font-weight:700; color: var(--ink-700); background: var(--ink-100); padding:.25rem .6rem; border-radius:999px; }

/* ----- 15. STAT / PROOF CARDS (homepage Proof — Option A) --------------- */
.grid--stat { grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid--stat { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--stat { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--radius);
  padding: var(--space-6); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.stat-num {
  font-size: var(--step-2); font-weight: 800; color: var(--ink-900);
  line-height: 1.1; letter-spacing: -0.02em; max-width: none;
}
.stat-num .stat-unit { display: block; font-size: var(--step--1); font-weight: 700; color: var(--ink-500); letter-spacing: 0; margin-top: 2px; }
.stat-card p { font-size: var(--step--1); color: var(--ink-700); }

.founder-line { max-width: 64ch; color: var(--ink-700); }
.section--dark .founder-line { color: #C9D6CE; }
.founder-line a { font-weight: 700; color: var(--brand-500); text-decoration: none; white-space: nowrap; }
.founder-line a:hover { text-decoration: underline; }

/* ----- 16. STORY PAGE (about.html) ------------------------------------- */
/* Generous, one-idea-per-screen rhythm. Reuses tokens + components only. */
.story-hero { padding-block: clamp(var(--space-7), 7vw, var(--space-9)); }
.story-hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 880px) { .story-hero-grid { grid-template-columns: 1.2fr .8fr; gap: var(--space-8); } }
.story-hero h1 { margin-bottom: var(--space-5); max-width: 20ch; }
.story-hero .lead { max-width: 56ch; }

/* Founder photo (placeholder until real asset) */
.founder-photo {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--paper-2), #fff);
  border: 1px solid var(--ink-100); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; width: 100%;
  display: flex; align-items: flex-end;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption { font-size: var(--step--1); color: var(--ink-500); margin-top: var(--space-3); }
.photo-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-3);
  color: var(--ink-500); text-align: center; padding: var(--space-6);
}
.photo-placeholder svg { width: 56px; height: 56px; color: var(--ink-300); }
.photo-placeholder span { font-size: var(--step--1); font-weight: 600; }

/* Story prose blocks — narrow measure, roomy spacing */
.prose { max-width: 64ch; }
.prose p { margin-top: var(--space-5); }
.prose p:first-child { margin-top: 0; }

/* Pullquote — large, ink (near-monochrome per positioning) */
.pullquote {
  max-width: 30ch; margin-block: var(--space-8); padding-left: var(--space-5);
  border-left: 4px solid var(--ink-900);
  font-size: var(--step-2); line-height: 1.25; font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink-900);
}
.section--dark .pullquote { color: #fff; border-color: #fff; }
.section--alt .pullquote { color: var(--ink-900); }

/* Timeline — clean skimmable vertical list */
.timeline { list-style: none; padding: 0; margin-top: var(--space-7); display: grid; gap: 0; max-width: 70ch; }
.timeline li {
  display: grid; gap: var(--space-2);
  padding-block: var(--space-6);
  border-top: 1px solid var(--ink-100);
}
.timeline li:last-child { border-bottom: 1px solid var(--ink-100); }
@media (min-width: 720px) {
  .timeline li { grid-template-columns: 1fr auto; align-items: baseline; column-gap: var(--space-6); }
  .timeline .tl-body { grid-column: 1; }
  .timeline .tl-number { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.timeline .tl-company { font-size: var(--step-1); font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; }
.timeline .tl-meta { font-size: var(--step--1); color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.timeline .tl-desc { color: var(--ink-700); margin-top: var(--space-3); max-width: 60ch; }
.timeline .tl-number {
  font-size: var(--step-2); font-weight: 800; color: var(--ink-900);
  line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap;
}

/* Credentials — two-column fact list (not prose) */
.facts { list-style: none; padding: 0; display: grid; gap: var(--space-5); margin-top: var(--space-6); max-width: 70ch; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-7); } }
.facts li { display: grid; gap: var(--space-1); }
.facts dt, .facts .fact-label { font-size: var(--step--1); font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .06em; }
.facts dd, .facts .fact-value { font-size: var(--step-0); color: var(--ink-900); font-weight: 600; }
.section--dark .facts .fact-label { color: #9FB2A8; }
.section--dark .facts .fact-value { color: #fff; }

/* ----- 17. LEADERSHIP & SPECIALISTS (about.html #leadership) ----------- */
/* Responsive card grid — 2-up on desktop, single column on mobile.
   Square photo slot uses aspect-ratio so the real image drops in with zero
   layout shift. Built to take a 3rd/4th card without redesign.
   Reuses .photo-placeholder + tokens only — one design system, not a bolt-on. */
.team-grid { display: grid; gap: var(--space-6); margin-top: var(--space-2); }
@media (min-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); } }

.team-card {
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}

/* Square photo slot — zero layout shift when the real image lands */
.team-photo {
  aspect-ratio: 1 / 1; width: 100%;
  background: linear-gradient(150deg, var(--paper-2), #fff);
  border-bottom: 3px solid var(--ink-900);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.team-name { margin: 0; }
.team-title { font-size: var(--step--1); font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.team-bio { color: var(--ink-700); margin: 0; max-width: none; }

.team-subhead {
  font-size: var(--step--1); font-weight: 700; color: var(--ink-900);
  text-transform: uppercase; letter-spacing: .06em; margin: var(--space-2) 0 0;
}
.team-areas {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-2) var(--space-5);
}
@media (min-width: 480px) { .team-areas { grid-template-columns: repeat(2, 1fr); } }
.team-areas li { position: relative; padding-left: 1.4rem; font-size: var(--step--1); color: var(--ink-700); }
.team-areas li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 2px; background: var(--ink-500); border-radius: 2px;
}

.team-creds { font-size: var(--step--1); color: var(--ink-500); margin: var(--space-2) 0 0; }
.team-link { margin: auto 0 0; padding-top: var(--space-2); }
.team-link a { font-weight: 700; color: var(--brand-700); text-decoration: none; }
.team-link a:hover { text-decoration: underline; }

/* CTA card — reusable site-wide closing card */
.cta-card {
  background: var(--ink-900); color: #DFE8E2; border-radius: var(--radius);
  padding: clamp(var(--space-6), 5vw, var(--space-8)); text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-card p { color: #C9D6CE; max-width: 52ch; margin: var(--space-5) auto 0; }
.cta-card .cta-row { display: flex; justify-content: center; }

/* =========================================================================
   18. VISUAL LAYER (additive — inline-SVG icons, hero motif, engine diagram,
       stat accents, section rhythm). Reuses existing tokens only.
       Geometric/line system: viewBox 24, 1.75 stroke, currentColor.
   ========================================================================= */

/* ---- 18.1 Generic icon helper (size via font-size or width on .ic) ----- */
.ic { width: 1.5rem; height: 1.5rem; flex-shrink: 0; }

/* ---- 18.2 Hero: two-column copy + abstract motif ----------------------- */
.hero-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 880px) {
  /* True side-by-side: copy left, engine visual right, vertically centred.
     Roughly even split so the visual is large enough to balance the copy. */
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: clamp(var(--space-7), 5vw, var(--space-9)); }
}
.hero-copy { min-width: 0; }
.hero-visual { display: none; }            /* mobile: keep payload light & focus on copy */
@media (min-width: 880px) {
  .hero-visual { display: block; }
}
.engine-motif {
  width: 100%; height: auto; aspect-ratio: 440 / 360;  /* reserves space -> no CLS */
  max-width: 560px; margin-inline: auto;   /* larger so it fills the wide track */
}
/* Gentle, optional motion — fully disabled for reduced-motion users */
@media (prefers-reduced-motion: no-preference) {
  .engine-motif .core-spin { transform-box: fill-box; transform-origin: center; animation: coreFloat 9s ease-in-out infinite; }
  .engine-motif .flow--in { animation: flowDash 2.6s linear infinite; }
  @keyframes coreFloat { 0%,100% { transform: rotate(45deg) translateY(0); } 50% { transform: rotate(45deg) translateY(-4px); } }
  @keyframes flowDash { to { stroke-dashoffset: -22; } }
}

/* ---- 18.3 Benefit cards with icon ------------------------------------- */
.card--icon { display: flex; flex-direction: column; gap: var(--space-3); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--ink-700);
  margin-bottom: var(--space-2);
}
.card-icon .ic { width: 26px; height: 26px; }

/* ---- 18.4 Revenue Engine diagram (connected phase journey) ------------- */
.phases--engine .phase { position: relative; align-items: flex-start; }
.phase-marker {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-3);
  margin-bottom: var(--space-1);
}
.phase-marker .num { position: relative; z-index: 2; }
.phase-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--paper-2); color: var(--ink-700);
}
.phase-icon .ic { width: 20px; height: 20px; }

/* Connectors between phase nodes — drawn with pseudo-elements so markup
   stays a clean semantic <ol>. Vertical on mobile, horizontal on desktop. */
.phases--engine { position: relative; }
.phases--engine .phase::after {
  content: ""; position: absolute; z-index: 0;
  background: var(--ink-300);
}
/* Mobile / tablet single-col: vertical line + arrow downward */
@media (max-width: 719px) {
  .phases--engine { gap: var(--space-6); }
  .phases--engine .phase::after {
    left: 17px; top: 100%; width: 2px; height: var(--space-6);
    background: repeating-linear-gradient(var(--ink-300) 0 5px, transparent 5px 11px);
  }
  .phases--engine .phase:last-child::after { display: none; }
}
/* Desktop 5-up: horizontal dashed connector with an arrowhead */
@media (min-width: 980px) {
  .phases--engine .phase::after {
    top: 17px; left: calc(100% - 1px); width: var(--space-5); height: 2px;
    background: repeating-linear-gradient(90deg, var(--ink-300) 0 6px, transparent 6px 12px);
  }
  .phases--engine .phase::before {
    content: ""; position: absolute; z-index: 1;
    top: 12px; left: calc(100% + var(--space-5) - 7px);
    width: 8px; height: 8px; border-top: 2px solid var(--ink-500);
    border-right: 2px solid var(--ink-500); transform: rotate(45deg);
  }
  .phases--engine .phase:last-child::after,
  .phases--engine .phase:last-child::before { display: none; }
}
/* Tablet 2-up: hide connectors (grid wraps; lines would mislead) */
@media (min-width: 720px) and (max-width: 979px) {
  .phases--engine .phase::after { display: none; }
}

/* ---- 18.5 Umbrella verticals icon row ---------------------------------- */
.vertical-row {
  list-style: none; padding: 0; margin-top: var(--space-6);
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 560px) { .vertical-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px) { .vertical-row { grid-template-columns: repeat(5, 1fr); } }
.vertical-row li {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4); border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm); background: var(--paper-2);
  font-size: var(--step--1); font-weight: 700; color: var(--ink-900); line-height: 1.25;
}
.vertical-row .vertical-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px;
  background: #fff; color: var(--ink-700); border: 1px solid var(--ink-100);
}
.vertical-row .vertical-icon .ic { width: 22px; height: 22px; }
.vertical-row small { display: block; font-weight: 500; color: var(--ink-500); font-size: 0.78em; }

/* ---- 18.6 Stat-card sparkline accent ----------------------------------- */
.stat-card { position: relative; }
.stat-accent { display: block; width: 64px; height: 28px; color: var(--brand-500); margin-bottom: var(--space-1); }
.stat-accent svg { width: 100%; height: 100%; }

/* ---- 18.7 Section rhythm: eyebrow tick + section divider --------------- */
/* Small brand-diamond tick before every eyebrow — ties sections to the mark. */
.eyebrow { position: relative; padding-left: 1.05rem; }
.eyebrow::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 9px; height: 9px; transform: translateY(-50%) rotate(45deg);
  background: var(--brand-500); border-radius: 2px;
}

/* ---- 18.8 Problem section: pain list + leaky-pipeline motif ------------- */
.problem-grid { display: grid; gap: var(--space-6); align-items: center; margin-block: var(--space-6); }
@media (min-width: 880px) {
  .problem-grid { grid-template-columns: 1.1fr .9fr; gap: clamp(var(--space-7), 5vw, var(--space-9)); }
}
.problem-grid .pain-list { margin-block: 0; }     /* spacing now owned by the grid */

/* Pain items: swap the bare dash for a small leak glyph in a tinted chip */
.pain-list--icon li { padding-left: 0; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); align-items: start; }
.pain-list--icon li::before { content: none; }     /* remove the old dash pseudo */
.pain-list--icon .pain-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-700);
}
.pain-list--icon .pain-icon .ic { width: 17px; height: 17px; }

/* Leak motif: never on mobile (keep focus on the pain list); fixed ratio = no CLS */
.leak-figure { margin: 0; display: none; }
@media (min-width: 880px) { .leak-figure { display: block; } }
.leak-motif {
  width: 100%; height: auto; aspect-ratio: 260 / 300;
  max-width: 380px; margin-inline: auto; display: block;
}
.leak-caption {
  margin-top: var(--space-3); text-align: center;
  font-size: var(--step--1); color: var(--ink-500); font-style: italic; max-width: 32ch; margin-inline: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .leak-motif .leak-drop { transform-box: fill-box; transform-origin: top center; animation: leakFall 3.4s ease-in infinite; }
  .leak-motif .leak-drop:nth-child(2) { animation-delay: 1.1s; }
  .leak-motif .leak-drop:nth-child(3) { animation-delay: 2.2s; }
  @keyframes leakFall {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateY(34px); opacity: 0; }
  }
}

/* ---- 18.9 Reduced-motion safety (belt & suspenders) -------------------- */
@media (prefers-reduced-motion: reduce) {
  .engine-motif .core-spin, .engine-motif .flow--in,
  .leak-motif .leak-drop { animation: none !important; }
}

/* ---- 18.10 Services: stack cards (grid--2, feature card, tier head) ----- */
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }

/* Feature card = the emphasized "Start here" wedge card */
.card--feature {
  border-color: var(--brand-200, var(--brand-500));
  border-left: 4px solid var(--brand-500);
  background: var(--brand-050);
  margin-bottom: var(--space-6);
}
.card--feature .tag { margin-bottom: var(--space-3); }
.stack-tier-head {
  margin-top: var(--space-7); margin-bottom: var(--space-5);
  font-size: var(--step-1); color: var(--ink-900);
}

/* Card with an icon chip used on the stack list (reuses .card-icon look) */
.card .card-icon { margin-bottom: var(--space-4); }

/* ---- 18.11 "One partner vs five vendors" contrast motif ---------------- */
/* Reuses the vertical-icon chip visual; an arrow funnels five chips into one. */
.one-partner {
  display: grid; gap: var(--space-5); align-items: center; margin-top: var(--space-6);
}
@media (min-width: 820px) { .one-partner { grid-template-columns: 1fr auto 1fr; gap: var(--space-6); } }
.one-partner .op-many {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3);
}
@media (min-width: 480px) { .one-partner .op-many { grid-template-columns: repeat(3, 1fr); } }
.one-partner .op-chip {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: var(--space-3); text-align: center;
  border: 1px dashed var(--ink-300); border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--ink-500);
  font-size: var(--step--2, var(--step--1)); font-weight: 600; line-height: 1.2;
}
.one-partner .op-chip .ic { width: 22px; height: 22px; }
.one-partner .op-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-500); width: 44px; height: 44px; margin-inline: auto;
}
.one-partner .op-arrow .ic { width: 32px; height: 32px; }
@media (max-width: 819px) { .one-partner .op-arrow { transform: rotate(90deg); } }
.one-partner .op-one {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  padding: var(--space-6); text-align: center;
  border: 2px solid var(--brand-500); border-radius: var(--radius);
  background: var(--brand-050); box-shadow: var(--shadow);
}
.one-partner .op-one .card-icon { margin: 0; background: #fff; }
.one-partner .op-one strong { color: var(--ink-900); font-size: var(--step-0); }
.one-partner .op-one span { color: var(--ink-700); font-size: var(--step--1); }

/* ---- 18.12 Tax/M&A: "areas he leads" with check icons ------------------ */
.team-areas--icon li { padding-left: 0; display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); align-items: start; }
.team-areas--icon li::before { content: none; }
.team-areas--icon .area-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; color: var(--brand-600);
}
.team-areas--icon .area-icon .ic { width: 18px; height: 18px; }

/* ---- 18.13 About: timeline sector markers + photo-frame accent --------- */
/* Small sector icon chip beside each company name — adds rhythm, stays a
   clean semantic <ol>. Decorative; the company name carries the meaning. */
.timeline .tl-company { display: flex; align-items: center; gap: var(--space-3); }
.timeline .tl-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
  background: var(--paper-2); color: var(--ink-700); border: 1px solid var(--ink-100);
}
.timeline .tl-ico .ic { width: 20px; height: 20px; }

/* Founder / partner photo placeholder: subtle inset brand corner-ticks so the
   empty state still feels designed (no stock imagery). Inset (positive offsets)
   so they sit inside the overflow-hidden photo frame and are never clipped.
   Only shown while the placeholder is present — hidden once a real <img> lands. */
.founder-photo:has(.photo-placeholder),
.team-photo:has(.photo-placeholder) { position: relative; }
.founder-photo:has(.photo-placeholder)::before,
.team-photo:has(.photo-placeholder)::before {
  content: ""; position: absolute; top: 10px; left: 10px;
  width: 26px; height: 26px; border-top: 3px solid var(--brand-500);
  border-left: 3px solid var(--brand-500); border-top-left-radius: 5px;
  pointer-events: none; z-index: 1;
}
.founder-photo:has(.photo-placeholder)::after,
.team-photo:has(.photo-placeholder)::after {
  content: ""; position: absolute; bottom: 10px; right: 10px;
  width: 26px; height: 26px; border-bottom: 3px solid var(--brand-500);
  border-right: 3px solid var(--brand-500); border-bottom-right-radius: 5px;
  pointer-events: none; z-index: 1;
}

/* ----- 19. DESIGN-CONSISTENCY PASS: utility/landing page visuals ---------
   Additive only. Reuses existing tokens and the shared icon sprite.
   Covers: contact reassurance cluster, checklist phase preview, phase
   section headers, thank-you success mark, 404 off-course mark. */

/* 19.1 Contact — reassurance icon cluster (reuses .feature-list) */
.reassure-list { margin-top: var(--space-6); margin-bottom: var(--space-6); gap: var(--space-4); }
.reassure-list .tick { width: 34px; height: 34px; }
.reassure-list .tick svg { width: 19px; height: 19px; }

/* 19.2 Checklist landing — five-phase preview grid */
.phase-preview {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-5);
}
@media (min-width: 720px) {
  .phase-preview { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}
@media (min-width: 1040px) {
  .phase-preview { grid-template-columns: repeat(5, 1fr); }
}
.phase-preview li {
  display: grid; grid-template-columns: 34px 1fr; gap: var(--space-3); align-items: start;
}
@media (min-width: 1040px) {
  .phase-preview li { grid-template-columns: 1fr; gap: var(--space-3); }
}
.phase-preview strong { display: block; color: var(--ink-900); margin-bottom: 2px; }
.phase-preview p { font-size: var(--step--1); color: var(--ink-500); margin: 0; }

/* 19.3 Phase section headers (checklist-access) — icon beside the eyebrow */
.section-head--phase { display: grid; grid-template-columns: 34px 1fr; gap: var(--space-3) var(--space-4); align-items: center; }
.section-head--phase .phase-icon { grid-row: span 2; }
.section-head--phase .eyebrow { margin: 0; }
.section-head--phase h2 { grid-column: 2; margin-top: 0; }

/* 19.4 Thank-you — success mark */
.success-mark { display: inline-flex; color: var(--brand-600); margin-bottom: var(--space-4); }
.success-mark svg { width: clamp(72px, 12vw, 96px); height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .success-mark .sm-ring { transform-box: fill-box; transform-origin: center; animation: smPop .5s ease-out both; }
  .success-mark .sm-tick {
    stroke-dasharray: 60; stroke-dashoffset: 60;
    animation: smDraw .5s ease-out .25s forwards;
  }
  .success-mark .sm-spark { opacity: 0; animation: smSpark .4s ease-out .55s forwards; }
  .success-mark .sm-spark--2 { animation-delay: .7s; }
  @keyframes smPop { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
  @keyframes smDraw { to { stroke-dashoffset: 0; } }
  @keyframes smSpark { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
}

/* 19.5 404 — off-course map mark */
.nf-mark { display: inline-flex; color: var(--brand-600); margin-bottom: var(--space-4); }
.nf-mark svg { width: clamp(96px, 16vw, 132px); height: auto; }
.nf-mark .nf-path--gap { stroke-dasharray: 4 7; opacity: .6; }
.nf-mark .nf-ring { opacity: .35; }

/* =========================================================================
   20. TEAM PAGE (team.html) — additive. Reuses .team-grid / .team-card and
       all existing tokens. Adds: founder feature-card treatment, the inline
       arrow on team links, and the honest "we're expanding" note.
   ========================================================================= */
/* Founder tier — single wide feature card, distinct from the 2-up grids */
.team-grid--feature { margin-top: var(--space-2); }
@media (min-width: 760px) { .team-grid--feature { grid-template-columns: 1fr; } }

.team-card--feature { border-color: var(--brand-200); box-shadow: var(--shadow-lg); }
@media (min-width: 760px) {
  .team-card--feature { flex-direction: row; align-items: stretch; }
  .team-card--feature .team-photo {
    flex: 0 0 300px; aspect-ratio: 1 / 1; align-self: stretch;
    border-bottom: 0; border-right: 3px solid var(--brand-500);
  }
  .team-card--feature .team-body { justify-content: center; }
}

/* Inline arrow inside team-card links — sits on the baseline, brand-green */
.team-link a { display: inline-flex; align-items: center; gap: var(--space-2); }
.team-link a .ic { width: 18px; height: 18px; }

/* Honest "expanding" note — plain text, not a card. Quiet, credible. */
.team-expanding {
  margin-top: var(--space-7); max-width: 60ch;
  padding-left: var(--space-5); border-left: 3px solid var(--ink-200);
  font-size: var(--step--1); color: var(--ink-500); font-style: italic;
}

/* About-page condensed leadership preview (about.html #leadership).
   Clean named list — links into the full /team.html page. */
.team-preview { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; gap: 0; max-width: 64ch; }
.team-preview li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4); border-top: 1px solid var(--ink-100);
}
.team-preview li:last-child { border-bottom: 1px solid var(--ink-100); }
.team-preview .tp-name { font-size: var(--step-0); font-weight: 800; color: var(--ink-900); letter-spacing: -0.01em; }
.team-preview .tp-title { font-size: var(--step--1); color: var(--ink-700); font-weight: 600; }
.team-preview .tp-title em { color: var(--ink-500); font-style: normal; font-weight: 500; }

/* ============================================================
   20. Two-column editorial section + centered hero
   Fixes single-column text sitting in the left of the 1600 track
   with an empty right. Opt-in per section — do NOT add to sections
   whose body is a full-width grid (phase cards, stat/service grids).
   ============================================================ */

/* Heading in a left column, body (prose/lists/callouts) in the right —
   so the section actually uses the wide track and stays balanced. */
@media (min-width: 900px) {
  .container--split {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    column-gap: clamp(2.5rem, 5vw, 6rem);
    align-items: start;
  }
  .container--split > .section-head { grid-column: 1; grid-row: 1 / span 99; align-self: start; margin-bottom: 0; max-width: 34ch; }
  .container--split > :not(.section-head) { grid-column: 2; }
  /* first body element aligns to the heading's top */
  .container--split > .section-head + * { margin-top: 0; }
}

/* Centered hero — for interior heroes with no side visual, so the
   headline/CTA sit centered instead of hugging the left. */
.hero--center .container { text-align: center; }
.hero--center h1,
.hero--center .lead,
.hero--center .hero-microcopy { margin-left: auto; margin-right: auto; }
.hero--center h1 { max-width: 24ch; }
.hero--center .lead { max-width: 60ch; }
.hero--center .hero-cta { justify-content: center; }
