/* =====================================================================
   SEVEN ROOTS CONSULTING — SHARED DESIGN SYSTEM
   Extracted and elevated from the homepage, 2026-06.
   Brand sheet: navy / olive / sage / copper / cream. Montserrat sitewide,
   differentiated by weight and letter-spacing. Sentence case everywhere;
   ALL CAPS reserved for the five pillar names and four process steps.
   ===================================================================== */

/* =============================================
   1. TOKENS
   ============================================= */
:root {
  /* Typography. Single family per the 2026-05 brand refresh. */
  --font-display: 'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    'Montserrat', system-ui, -apple-system, Segoe UI, sans-serif;

  /* Modular type scale (approx 1.22 ratio, fluid at the top end) */
  --text-xs:   0.78rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   clamp(1.3rem, 1.8vw, 1.5rem);
  --text-xl:   clamp(1.9rem, 3.4vw, 2.75rem);
  --text-2xl:  clamp(2.7rem, 5.5vw, 4.5rem);

  /* Color palette. Five-color system from the official brand sheet. */
  --color-dark:         #1a2342;  /* deep navy, primary */
  --color-mid:          #6f7d56;  /* olive, secondary */
  --color-sage:         #a8b39a;  /* light sage, tertiary */
  --color-accent:       #c47a3d;  /* burnt copper, accent */
  --color-accent-light: #d99a65;  /* lighter copper for hovers on dark */
  --color-cream:        #ebe5d4;  /* warm cream, background */
  --color-warm-white:   #f6f1e6;  /* slightly lifted cream */
  --color-white:        #ffffff;
  --color-text:         #1a2342;  /* navy on light backgrounds */
  --color-muted:        #5a6473;  /* desaturated navy for secondary text */
  --color-border:       #c9c2af;  /* cream-toned border */
  --color-border-light: #ddd6c4;

  /* Spacing rhythm */
  --space-section: clamp(88px, 11vw, 136px);
  --space-head:    clamp(2.75rem, 5vw, 4.25rem);

  --radius:    4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 4px rgba(26,35,66,0.07);
  --shadow-md: 0 4px 18px rgba(26,35,66,0.10);
  --shadow-lg: 0 14px 40px rgba(26,35,66,0.12);
}

/* =============================================
   2. RESET + BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
html.motion { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[id] { scroll-margin-top: 96px; }

/* =============================================
   3. ACCESSIBILITY UTILITIES
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-dark);
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; outline: 2px solid var(--color-accent); outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-mid);
}

@media (prefers-reduced-motion: reduce) {
  html, html.motion { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================
   4. TYPOGRAPHY
   ============================================= */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--color-dark);
}
h1 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); line-height: 1.25; }
h4 {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--color-dark);
}
.pillar-text h3,
.partner-card h3,
.hw-feature h3,
.ai-card h3 {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: 0;
}
.hw-feature h3 { color: #fff; font-size: var(--text-sm); margin-bottom: 0.3rem; }
p { font-size: var(--text-base); line-height: 1.78; color: var(--color-muted); }

/* Eyebrow: sentence case, distinguished by weight, spacing, and copper.
   ALL CAPS is reserved for pillar and process labels only. */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--color-accent);
  flex-shrink: 0;
}

.text-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--color-dark); }

/* =============================================
   5. LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
section { padding: var(--space-section) 0; }

.section-header { margin-bottom: var(--space-head); }
.section-header h2 { margin: 1rem 0 1.1rem; max-width: 640px; }
.section-header p { max-width: 600px; font-size: var(--text-md); line-height: 1.75; }
.section-header p + p { font-size: var(--text-base); margin-top: 0.85rem; }

/* =============================================
   6. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  border: none;
}
.btn-primary {
  background: var(--color-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-mid);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-border);
}
.card .btn-outline { border-color: var(--color-mid); margin-top: auto; }
.btn-outline:hover { border-color: var(--color-dark); }
.btn-ghost-light {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.22);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }
.btn-block { width: 100%; }
/* Smaller secondary action, used for the ghost CTA in the article dual-CTA. */
.btn-sm { padding: 0.65rem 1.3rem; font-size: 0.82rem; }

/* =============================================
   7. NAVIGATION
   ============================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,241,230,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow 0.25s;
}
nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  padding: 0.35rem 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a:hover { color: var(--color-dark); border-bottom-color: var(--color-accent); }
.nav-cta {
  background: var(--color-dark) !important;
  color: #fff !important;
  padding: 0.6rem 1.3rem !important;
  border-radius: var(--radius) !important;
  border-bottom: none !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--color-mid) !important; }

/* Mobile navigation. The hamburger and panel are hidden on desktop and
   appear at <=760px (see the media query in section 28). The open/close
   FUNCTION is CSS that works with or without JS-driven animation; the
   slide/fade transition is gated behind html.motion so reduced-motion
   and no-JS visitors get an instant, working toggle. */
.nav-actions { display: none; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-dark);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--color-dark); }
.nav-toggle .nav-toggle-bars,
.nav-toggle .nav-toggle-bars::before,
.nav-toggle .nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle .nav-toggle-bars { position: relative; }
.nav-toggle .nav-toggle-bars::before,
.nav-toggle .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle .nav-toggle-bars::before { top: -6px; }
.nav-toggle .nav-toggle-bars::after { top: 6px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(26,35,66,0.45);
  display: none;
}
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(82vw, 320px);
  height: 100%;
  background: var(--color-warm-white);
  border-left: 1px solid var(--color-border-light);
  padding: 1.5rem 1.5rem 2rem;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.nav-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-dark);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.nav-panel-close:hover { border-color: var(--color-dark); }
.nav-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.nav-panel a {
  display: block;
  padding: 0.8rem 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}
.nav-panel a:hover { color: var(--color-dark); }
.nav-panel a.nav-cta {
  margin-top: 1rem;
  text-align: center;
  background: var(--color-dark);
  color: #fff;
  border-bottom: none;
  border-radius: var(--radius);
}
.nav-panel a.nav-cta:hover { background: var(--color-mid); }
/* Open state: shown for everyone. Animation only when motion is allowed. */
.nav-open .nav-overlay { display: block; }
.nav-open .nav-panel { display: flex; }
html.motion .nav-overlay { opacity: 0; transition: opacity 0.25s ease; }
html.motion .nav-panel { transform: translateX(100%); transition: transform 0.28s ease; }
html.motion.nav-open .nav-overlay { opacity: 1; }
html.motion.nav-open .nav-panel { transform: translateX(0); }

/* =============================================
   8. BRAND BANNER
   The official lockup and tagline. Flows into the
   hero on the same cream canvas.
   ============================================= */
.brand-banner {
  background: var(--color-cream);
  padding: clamp(56px, 8vw, 96px) 0 0;
  text-align: center;
}
.brand-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--color-border);
}
.brand-banner-logo {
  width: clamp(260px, 38vw, 460px);
  height: auto;
  display: block;
}
.brand-banner-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-dark);
  margin: 0;
}

/* =============================================
   9. HERO
   Cream canvas continuing from the banner. Copper
   root-system decor at right; stats panel overlaps
   the navy pillars band below.
   ============================================= */
.hero {
  padding: clamp(64px, 8vw, 104px) 0 0;
  background: var(--color-cream);
  position: relative;
  overflow: visible;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 880px; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.6rem; max-width: 20ch; }
.hero h1 em { font-style: italic; color: var(--color-accent); }
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-decor {
  position: absolute;
  top: 44%;
  right: -30px;
  transform: translateY(-50%);
  width: 480px;
  height: 580px;
  color: var(--color-accent);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.hero-decor svg { width: 100%; height: 100%; display: block; }

/* Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
}
.tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.32rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text);
  background: rgba(255,255,255,0.45);
}

/* CTA row */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(4rem, 7vw, 6rem);
}

/* Stats panel: white card straddling the cream hero
   and the navy pillars band. */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2.75rem;
  position: relative;
  z-index: 2;
  margin-bottom: -64px;
}
.stat-item {
  padding-right: 2.25rem;
  border-right: 1px solid var(--color-border-light);
}
.stat-item:not(:first-child) { padding-left: 2.25rem; }
.stat-item:last-child { border-right: none; padding-right: 0; }
.stat-item::before {
  content: '';
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1.1rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}
.stat-number.stat-number-sm { font-size: 2rem; padding-top: 0.55rem; }
.stat-number.accent { color: var(--color-accent); }
.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: 0.04em;
}

/* =============================================
   10. PILLARS
   Navy band, cream text, copper line icons. Top
   padding accommodates the overlapping stats panel.
   ============================================= */
.pillars {
  background: var(--color-dark);
  color: var(--color-cream);
  padding: calc(var(--space-section) + 64px) 0 var(--space-section);
}
.pillars-head {
  text-align: center;
  margin-bottom: var(--space-head);
}
.pillars-head .eyebrow { color: var(--color-accent-light); }
.pillars-head .eyebrow::before { background: var(--color-accent-light); }
.pillars-head h2 {
  margin: 1rem 0 0.85rem;
  color: var(--color-cream);
}
.pillars-head p {
  color: rgba(235,229,212,0.78);
  max-width: 640px;
  margin: 0 auto;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(28px, 3vw, 40px);
}
.pillars-grid .pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(235,229,212,0.18);
}
.pillars-grid .pillar-icon {
  width: 56px;
  height: 56px;
  color: var(--color-accent);
  background: none;
  border-radius: 0;
}
.pillars-grid .pillar-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.4;
}
/* Brand-system label: ALL CAPS is documented for the five pillar names. */
.pillar-label {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
}
.pillars-grid .pillar-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(235,229,212,0.85);
}

/* =============================================
   11. SERVICES + CARD SYSTEM
   ============================================= */
.services { background: var(--color-white); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border-light);
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
.card-icon svg { width: 19px; height: 19px; stroke-width: 1.75; }
.card-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}
.card h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.card-body { font-size: 0.925rem; margin-bottom: 1.4rem; }
.card ul {
  list-style: none;
  margin-top: auto;
  margin-bottom: 1.9rem;
}
.card ul li {
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.card ul li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 0.58rem;
  flex-shrink: 0;
}
.card-footer-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  text-align: center;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--color-border-light);
}

/* =============================================
   12. PROCESS
   Warm-white strip, olive icons, ALL CAPS step
   labels (documented brand-system labels).
   ============================================= */
.process {
  background: var(--color-warm-white);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
.process-head {
  text-align: center;
  margin-bottom: var(--space-head);
}
.process-head h2 { margin: 1rem 0 0.85rem; }
.process-head p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}
.process-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0 2rem;
  border-left: 1px solid var(--color-border-light);
  position: relative;
}
.process-step:first-child { border-left: none; padding-left: 0; }
.process-step:last-child { padding-right: 0; }
.process-step-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.08em;
}
.process-step-icon {
  width: 48px;
  height: 48px;
  color: var(--color-mid);
}
.process-step-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.4;
}
.process-step-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-dark);
}
.process-step-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

/* =============================================
   13. HEARTWOOD BAND (navy)
   ============================================= */
.heartwood {
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}
.heartwood .container { position: relative; z-index: 1; }
.heartwood-decor {
  position: absolute;
  left: -60px;
  bottom: -40px;
  width: 520px;
  height: 300px;
  color: var(--color-accent-light);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}
.heartwood-decor svg { width: 100%; height: 100%; display: block; }
.heartwood-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}
.heartwood-left .eyebrow { color: var(--color-accent-light); }
.heartwood-left .eyebrow::before { background: var(--color-accent-light); }
.heartwood-left h2 { color: #fff; margin: 1rem 0 1.1rem; }
.heartwood-left h2 em { font-style: italic; color: var(--color-accent-light); }
.heartwood-left p { color: rgba(255,255,255,0.82); margin-bottom: 2.25rem; }

.hw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.hw-feature {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.hw-feature:hover { background: rgba(255,255,255,0.085); border-color: rgba(255,255,255,0.16); }
.hw-feature .card-icon {
  background: rgba(255,255,255,0.08);
  color: var(--color-accent-light);
  margin-bottom: 0.8rem;
}
.hw-feature p { font-size: 0.825rem; color: rgba(255,255,255,0.78); line-height: 1.55; }

/* === Heartwood live demo ===
   A row of question chips and a brief panel on the navy band. The full
   brief text is always in the DOM; the compose-in (below, gated behind
   html.motion) only animates opacity and transform, so reduced-motion
   and no-JS visitors see a complete, static brief. Tokens only. */
.hw-demo {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.hw-demo-lead {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  margin: 0 0 1.1rem;
}
.hw-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.hw-chip {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hw-chip:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
}
.hw-chip[aria-pressed="true"] {
  color: var(--color-dark);
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  font-weight: 600;
}

.hw-brief {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.hw-brief-question {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hw-brief-block { margin-bottom: 1.25rem; }
.hw-brief-block:last-child { margin-bottom: 0; }
.hw-brief-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.45rem;
}
.hw-brief-block p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.86);
  margin: 0;
}
.hw-brief-rec {
  font-size: 0.95rem !important;
  color: #fff !important;
}
.hw-brief-block ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: disc;
}
.hw-brief-block li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
  margin-bottom: 0.4rem;
}
.hw-brief-block li:last-child { margin-bottom: 0; }
.hw-brief-block li::marker { color: var(--color-accent-light); }
.hw-brief-foot {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255,255,255,0.78);
}

/* Compose-in: visual only, behind html.motion. Blocks start hidden and
   reveal in sequence using their --hw-step index set by the JS. */
html.motion .hw-brief.is-composing .hw-brief-question,
html.motion .hw-brief.is-composing .hw-brief-block,
html.motion .hw-brief.is-composing .hw-brief-foot {
  opacity: 0;
  transform: translateY(10px);
  animation: hw-compose 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(var(--hw-step, 0) * 0.18s);
}
@keyframes hw-compose {
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .hw-chip { width: 100%; }
}

/* =============================================
   14. AI READINESS (cream)
   ============================================= */
.ai-readiness { background: var(--color-cream); }

.ai-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: nowrap;
}
.ai-flow-step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 11rem;
}
.ai-flow-step .step-num {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-white);
  margin-bottom: 0.7rem;
}
.ai-flow-step .step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}
.ai-flow-sep {
  flex: 0 0 auto;
  color: var(--color-border);
  display: flex;
  align-items: center;
}
.ai-flow-sep i, .ai-flow-sep svg { width: 18px; height: 18px; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ai-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.ai-card:hover { box-shadow: var(--shadow-md); }
.ai-card .card-icon { background: var(--color-cream); }
.ai-card h3 { margin-bottom: 0.5rem; }
.ai-card p { font-size: 0.9rem; }

/* =============================================
   15. BELIEF BAND (navy)
   ============================================= */
.belief-band {
  background: var(--color-dark);
  padding: clamp(80px, 10vw, 120px) 0;
  text-align: center;
}
.belief-band .eyebrow {
  color: var(--color-accent-light);
  display: inline-flex;
  margin-bottom: 1.75rem;
}
.belief-band .eyebrow::before { background: var(--color-accent-light); }
.belief-band .eyebrow::after {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--color-accent-light);
  flex-shrink: 0;
}
.belief-statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  font-weight: 600;
  color: #fff;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.belief-statement em { font-style: italic; color: var(--color-accent-light); }

/* =============================================
   16. ABOUT (white)
   ============================================= */
.about { background: var(--color-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}
.about-left h2 { margin: 1rem 0 1.4rem; }
.about-left p { margin-bottom: 1.1rem; font-size: var(--text-md); line-height: 1.75; }
.about-left p:last-child { margin-bottom: 0; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 2rem;
  background: var(--color-warm-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}
.about-pillars .pillar { display: flex; flex-direction: row; gap: 1rem; align-items: flex-start; }
.about-pillars .pillar-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border-radius: var(--radius);
  flex-shrink: 0;
  color: var(--color-accent);
}
.about-pillars .pillar-icon svg { width: 17px; height: 17px; stroke-width: 1.75; }
.about-pillars .pillar-text h3 { margin-bottom: 0.2rem; }
.about-pillars .pillar-text p { font-size: var(--text-sm); margin: 0; }

/* =============================================
   17. PARTNERS (cream)
   ============================================= */
.partners { background: var(--color-cream); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.partner-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}
.partner-card:hover { box-shadow: var(--shadow-md); }
.partner-card .card-icon { margin-bottom: 0; flex-shrink: 0; }
.partner-card h3 { margin-bottom: 0.35rem; }
.partner-card p { font-size: var(--text-sm); }

/* =============================================
   18. FAQ (white)
   Editorial hairline list rather than boxed cards.
   ============================================= */
.faq { background: var(--color-white); }
.faq-list {
  max-width: 800px;
  border-top: 1px solid var(--color-border-light);
}
.faq-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.6rem;
}
.faq-item p {
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 68ch;
}

/* =============================================
   19. CONTACT
   Warm-white band; the form sits in a white card.
   ============================================= */
.contact {
  background: var(--color-warm-white);
  border-top: 1px solid var(--color-border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-left h2 { margin: 1rem 0 1.1rem; }
.contact-left > p { margin-bottom: 2.5rem; font-size: var(--text-md); }

.contact-steps { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.5rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  flex-shrink: 0;
}
.step p { font-size: 0.9rem; padding-top: 0.3rem; }

.contact-quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 1.3rem;
  margin-top: 0.5rem;
}
.contact-quote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.5;
}
.contact-quote cite {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 0.5rem;
  font-style: normal;
}

/* Form */
.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(2rem, 3.5vw, 2.75rem);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--color-mid); }
.form-group textarea { resize: vertical; min-height: 96px; }
.form-note {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.875rem;
}
.hidden { display: none !important; }

/* Required-field indicator and inline error message. */
.req {
  color: var(--color-accent);
  margin-left: 0.15rem;
  font-weight: 700;
}
.form-error {
  display: none;
  margin-top: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #9a3b1f; /* darker copper for AA contrast on white */
}
.form-group.has-error .form-error { display: block; }
.form-group.has-error input,
.form-group.has-error select {
  border-color: #9a3b1f;
}

/* Scheduler line beside the contact form (secondary action). */
.contact-schedule {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}
.contact-schedule p { font-size: var(--text-sm); margin-bottom: 0.6rem; }
.contact-schedule .btn-outline { width: 100%; }

/* =============================================
   20. FOOTER (navy)
   ============================================= */
footer {
  background: var(--color-dark);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-brand img { height: 28px; width: auto; opacity: 0.8; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.footer-tagline {
  font-size: var(--text-xs);
  color: var(--color-sage);
  margin-top: 0.3rem;
}
.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,1); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-top: 1.5rem;
}

/* =============================================
   21. MOTION
   Everything here is gated behind html.motion,
   which motion.js adds only when the visitor has
   not requested reduced motion. No-JS and
   reduced-motion readers always see the finished
   page. The prefers-reduced-motion block in
   section 3 zeroes all durations as a backstop.
   ============================================= */
html.motion .reveal,
html.motion [data-reveal="children"] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.motion .reveal.is-visible,
html.motion [data-reveal="children"].is-visible > * {
  opacity: 1;
  transform: none;
}

/* Quiet hover lifts, motion-gated so reduced-motion
   visitors keep shadow changes without transforms. */
html.motion .card:hover,
html.motion .ai-card:hover,
html.motion .partner-card:hover { transform: translateY(-3px); }
html.motion .hw-feature:hover { transform: translateY(-2px); }
html.motion .btn-primary:hover,
html.motion .btn-outline:hover { transform: translateY(-1px); }

/* =============================================
   22. RESPONSIVE
   ============================================= */
@media (max-width: 1180px) {
  .hero-decor { display: none; }
}
@media (max-width: 1000px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .cards-grid { grid-template-columns: 1fr; }
  .heartwood-inner { grid-template-columns: 1fr; gap: 3rem; }
  .heartwood-decor { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .partners-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-flow { flex-direction: column; gap: 0.75rem; }
  .ai-flow-step { max-width: none; }
  .ai-flow-sep { transform: rotate(90deg); }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem;
  }
  .stat-item {
    border-right: none;
    padding: 0;
  }
  .stat-item:not(:first-child) { padding-left: 0; }
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .process-step { border-left: none; padding: 0; }
}
@media (max-width: 760px) {
  /* Inline nav links collapse into the hamburger panel on phones. */
  .nav-links { display: none; }
  .nav-actions { display: flex; align-items: center; gap: 0.6rem; }
  .nav-actions .nav-cta {
    background: var(--color-dark);
    color: #fff;
    padding: 0.55rem 1rem;
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius);
    border-bottom: none;
    white-space: nowrap;
  }
  .nav-actions .nav-cta:hover { background: var(--color-mid); }
}
@media (max-width: 720px) {
  .nav-logo img { height: 44px; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .hw-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   SUBPAGE COMPONENTS
   Shared systems for the insights articles, hub and listing pages,
   legal documents, and utility pages. Everything below builds on the
   tokens and base styles above.
   ===================================================================== */

/* =============================================
   23. BREADCRUMB + SUBPAGE NAV WORDMARK
   ============================================= */
.breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--color-accent); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-dark); }
.breadcrumb span { color: var(--color-muted); }

/* Brand wordmark beside the nav logo on some subpages. */
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* =============================================
   24. PAGE HEADER
   Cream introduction band shared by the insights
   listing, the pillar hubs, and the legal pages,
   so every interior page opens on the same canvas
   as the homepage hero.
   ============================================= */
.page-header {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border-light);
  padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 6vw, 56px);
}
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: 1rem;
}
.page-header h1 em { font-style: italic; color: var(--color-accent); }
.page-header p {
  max-width: 62ch;
  font-size: var(--text-md);
  line-height: 1.75;
}
.page-header .doc-meta { font-size: var(--text-sm); }

/* =============================================
   25. ARTICLE PROSE
   The shared reading system for every insights
   article: hero, measure, typography, tables,
   callouts, and byline.
   ============================================= */
.article-hero {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border-light);
  padding: clamp(72px, 9vw, 110px) 0 clamp(44px, 6vw, 64px);
}
.article-hero .eyebrow { margin-bottom: 1.1rem; }
.article-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  margin-bottom: 1.4rem;
}
.article-hero h1 em { font-style: italic; color: var(--color-accent); }
.article-meta { font-size: var(--text-sm); color: var(--color-muted); }
.article-lede {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--color-muted);
  max-width: 62ch;
  margin-top: 1.1rem;
}

.article-body {
  background: var(--color-white);
  padding: clamp(48px, 7vw, 80px) 0 var(--space-section);
}
/* Comfortable reading measure, used by the hero and the body. */
.article-content { max-width: 70ch; }
.article-content h2 {
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  margin: 3.25rem 0 1.1rem;
}
.article-content h3 { font-size: 1.3rem; margin: 2.25rem 0 0.75rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul,
.article-content ol { margin: 0 0 1.5rem 1.4rem; color: var(--color-muted); }
.article-content li {
  line-height: 1.78;
  margin-bottom: 0.5rem;
  color: var(--color-muted);
}
.article-content strong { color: var(--color-dark); font-weight: 600; }
.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.article-content a:hover { color: var(--color-dark); }
.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.35rem 0 0.35rem 1.3rem;
  margin: 2rem 0;
}
.article-content blockquote p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.55;
}
.article-content code {
  font-family: var(--font-body);
  font-size: 0.9em;
  background: var(--color-warm-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius);
  padding: 0.1em 0.4em;
}

/* Comparison tables inside articles. */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0 2.25rem;
  font-size: 0.9rem;
}
.compare-table caption {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  text-align: left;
  padding-bottom: 0.75rem;
}
.compare-table th {
  text-align: left;
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-dark);
  padding: 0.75rem 1rem;
  background: var(--color-cream);
  border-bottom: 2px solid var(--color-border);
}
.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-muted);
  line-height: 1.55;
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 500; color: var(--color-dark); }

/* In-article callout (Heartwood pointers and similar asides). */
.hw-callout {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.hw-callout p { margin-bottom: 0.75rem; }
.hw-callout p:last-child { margin-bottom: 0; }

/* Publisher byline block at the end of an article. */
.about-publisher {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 3rem 0 0;
}
.about-publisher h3 { font-size: 1.15rem; margin: 0 0 0.65rem; }
.about-publisher p { margin-bottom: 0; font-size: 0.925rem; }
.about-publisher a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about-publisher a:hover { color: var(--color-dark); }

/* =============================================
   26. ARTICLE FAQ BAND + CLOSING CTA
   Cream FAQ band and the navy Heartwood band
   that close out each article.
   ============================================= */
.faq-section {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-section) 0;
}
.faq-section .section-header { margin-bottom: 2.75rem; }
.faq-section .faq-list { max-width: 70ch; border-top-color: var(--color-border); }
.faq-section .faq-item { border-bottom-color: var(--color-border); padding: 1.75rem 0; }
.faq-section .faq-item h3 { font-size: 1.2rem; }
.faq-section .faq-item div p { margin: 0; color: var(--color-muted); line-height: 1.7; }

.heartwood-cta {
  background: var(--color-dark);
  padding: clamp(72px, 9vw, 110px) 0;
  text-align: center;
}
.heartwood-cta .eyebrow {
  color: var(--color-accent-light);
  margin-bottom: 1.25rem;
}
.heartwood-cta .eyebrow::before { background: var(--color-accent-light); }
.heartwood-cta .eyebrow::after {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--color-accent-light);
  flex-shrink: 0;
}
.heartwood-cta h2 { color: #fff; margin: 0 auto 1rem; max-width: 600px; }
.heartwood-cta h2 em { font-style: italic; color: var(--color-accent-light); }
.heartwood-cta p {
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 auto 2rem;
}
/* Dual CTA: a primary consulting action plus the secondary Heartwood
   pitch. The secondary block sits below, set apart by a hairline rule. */
.heartwood-cta .cta-primary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.heartwood-cta .cta-secondary {
  max-width: 540px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.heartwood-cta .cta-primary h2 { margin-bottom: 1rem; }
/* On the dark band the navy primary button would vanish; give it the
   copper accent for a clear, high-contrast primary action. */
.heartwood-cta .cta-primary .btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.heartwood-cta .cta-primary .btn-primary:hover { background: var(--color-accent-light); }
.heartwood-cta .cta-secondary h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.heartwood-cta .cta-secondary h3 em { font-style: italic; color: var(--color-accent-light); }
.heartwood-cta .cta-secondary p {
  margin: 0 auto 1.25rem;
  font-size: 0.92rem;
}

/* The decision brief: compact newsletter signup placed above the CTA. */
.decision-brief {
  background: var(--color-warm-white);
  border-top: 1px solid var(--color-border-light);
  padding: clamp(40px, 6vw, 64px) 0;
}
.decision-brief-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.decision-brief h2 { margin: 0.75rem 0 0.75rem; }
.decision-brief > .decision-brief-inner > p {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: var(--text-sm);
}
.decision-brief-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin: 0 auto;
  align-items: flex-start;
}
.decision-brief-form .form-group {
  flex: 1;
  margin-bottom: 0;
  text-align: left;
}
.decision-brief-form .btn { flex-shrink: 0; }
@media (max-width: 520px) {
  .decision-brief-form { flex-direction: column; align-items: stretch; }
}

/* =============================================
   27. INSIGHTS LISTING + HUBS
   Pillar groups on /insights/, article cards on
   both the listing and the four hub pages, and
   the related-pillars strip.
   ============================================= */
.article-list {
  background: var(--color-white);
  padding: clamp(40px, 6vw, 64px) 0 var(--space-section);
}
.pillar-group {
  max-width: 70ch;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.pillar-group:first-child { padding-top: 0; }
.pillar-group:last-child { border-bottom: none; }
.pillar-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}
.pillar-head .pillar-icon {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-warm-white);
  color: var(--color-accent);
}
.pillar-head .pillar-icon i,
.pillar-head .pillar-icon svg { width: 18px; height: 18px; }
.pillar-heading { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0; }
.pillar-heading a { color: var(--color-dark); transition: color 0.2s; }
.pillar-heading a:hover { color: var(--color-accent); }
.pillar-description { font-size: 0.95rem; margin-bottom: 1.25rem; }

.article-card {
  max-width: 70ch;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.article-card:first-child { padding-top: 0; }
.article-card:last-child { border-bottom: none; }
.article-card .eyebrow { margin-bottom: 0.5rem; }
.article-card h2,
.article-card h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.article-card h2 a,
.article-card h3 a { color: var(--color-dark); transition: color 0.2s; }
.article-card h2 a:hover,
.article-card h3 a:hover { color: var(--color-accent); }
.article-card p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.read-more,
.see-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s;
}
.read-more:hover,
.see-all:hover { color: var(--color-dark); }
.see-all { display: inline-block; margin-top: 1.25rem; }
.empty-state { max-width: 70ch; color: var(--color-muted); }
.empty-state a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-state a:hover { color: var(--color-dark); }

/* Related pillars ("Keep exploring") strip. */
.pillars-strip {
  background: var(--color-warm-white);
  border-top: 1px solid var(--color-border-light);
  padding: clamp(48px, 6vw, 72px) 0;
}
.pillars-strip .eyebrow { margin-bottom: 0.85rem; }
.pillars-strip h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.pillars-strip ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.pillars-strip a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  transition: color 0.2s;
}
.pillars-strip a:hover { color: var(--color-dark); }

/* =============================================
   28. DOCUMENT PROSE
   Legal pages and the accessibility statement:
   a narrow, sober reading column under the
   shared page header.
   ============================================= */
.doc-main { padding: clamp(40px, 6vw, 64px) 0 var(--space-section); }
.doc-prose { max-width: 70ch; }
.doc-prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.85rem; }
.doc-prose h2:first-child { margin-top: 0; }
.doc-prose h2 .num { color: var(--color-accent); font-weight: 500; margin-right: 0.5rem; }
.doc-prose p { margin-bottom: 0.9rem; }
.doc-prose ul { padding-left: 1.4rem; margin-bottom: 0.9rem; color: var(--color-muted); }
.doc-prose li { margin-bottom: 0.4rem; color: var(--color-muted); line-height: 1.7; }
.doc-prose strong { color: var(--color-dark); font-weight: 600; }
.doc-prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.doc-prose a:hover { color: var(--color-dark); }
.doc-meta { font-size: var(--text-sm); color: var(--color-muted); }

/* =============================================
   29. SUBPAGE RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .pillar-group { padding: 2.25rem 0; }
  .compare-table { font-size: 0.825rem; }
  .compare-table th,
  .compare-table td { padding: 0.6rem 0.7rem; }
}

/* =============================================
   Seven Roots Diagnostic
   Interactive 7-root technology-foundation
   self-assessment at /diagnostic/. Uses existing
   tokens only. Root-draw is motion-gated; the
   final colored state is the default render so
   reduced-motion and no-JS readers see the result.
   ============================================= */
.diag-intro {
  background: var(--color-cream);
  padding: calc(var(--space-section) + 56px) 0 calc(var(--space-section) - 24px);
}
.diag-intro-inner { max-width: 720px; }
.diag-intro h1 { margin: 1rem 0 1.25rem; }
.diag-lede { font-size: var(--text-md); line-height: 1.75; color: var(--color-muted); max-width: 640px; }

.diag-tool { background: var(--color-white); }
.diag-shell { max-width: 920px; }

.diag-noscript {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: var(--color-warm-white);
}
.diag-noscript h2 { margin-bottom: 0.75rem; }
.diag-noscript .btn { margin-top: 1rem; }

/* Progress */
.diag-progress { margin-bottom: 2.25rem; }
.diag-progress-label {
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.diag-progress-track {
  height: 4px;
  background: var(--color-border-light);
  border-radius: 2px;
  overflow: hidden;
}
.diag-progress-bar {
  display: block;
  height: 100%;
  width: 14.28%;
  background: var(--color-mid);
  border-radius: 2px;
}
html.motion .diag-progress-bar { transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* Question + options */
.diag-fieldset { border: 0; margin: 0; padding: 0; }
.diag-legend {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--color-dark);
  font-weight: 600;
  padding: 0;
}
.diag-root-tag {
  display: inline-block;
  margin-top: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  color: var(--color-mid);
  font-weight: 600;
}
.diag-options { display: grid; gap: 0.85rem; }
.diag-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.05rem 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-white);
}
html.motion .diag-option { transition: border-color 0.2s, background 0.2s; }
.diag-option:hover { border-color: var(--color-mid); }
.diag-option.is-selected {
  border-color: var(--color-accent);
  background: var(--color-cream);
}
.diag-option input[type="radio"] {
  margin: 0.2rem 0 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  flex: 0 0 auto;
}
.diag-option-text {
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
}

/* Quiz nav */
.diag-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}
.diag-restart-row { margin-top: 1.5rem; }
.diag-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
}
.diag-link-btn:hover { color: var(--color-dark); }

/* Result layout */
.diag-result-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 3rem;
  align-items: start;
}
.diag-viz-col { position: sticky; top: 96px; }
.diag-roots-svg { width: 100%; height: auto; display: block; }
.diag-viz-caption {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
  margin-top: 0.75rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Root colors by score. These are the DEFAULT rendered states
   (no animation needed). Strong = deep olive/sage, mixed = muted
   sage-grey, strained = short copper. */
.diag-root { stroke: var(--color-border); }
.diag-root.is-strong   { stroke: var(--color-mid);   stroke-width: 3.5; }
.diag-root.is-mixed    { stroke: var(--color-sage);  stroke-width: 3; opacity: 0.9; }
.diag-root.is-strained { stroke: var(--color-accent); stroke-width: 2.5; stroke-dasharray: 34 1000; }
.diag-tip { fill: var(--color-border); }
.diag-tip.is-strong   { fill: var(--color-mid); }
.diag-tip.is-mixed    { fill: var(--color-sage); }
.diag-tip.is-strained { fill: var(--color-accent); opacity: 0; }

/* Result readout */
.diag-readout-col h2 { margin: 0.75rem 0 0.85rem; }
.diag-band-sub { font-size: var(--text-md); color: var(--color-muted); margin-bottom: 1.75rem; }
.diag-readout-heading {
  font-size: var(--text-sm);
  letter-spacing: 0.5px;
  color: var(--color-dark);
  margin: 1.75rem 0 0.9rem;
}
.diag-weak-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.diag-weak-item {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}
.diag-weak-name {
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.3rem;
  font-size: var(--text-base);
}
.diag-weak-mean { font-size: var(--text-sm); line-height: 1.6; color: var(--color-muted); margin: 0; }
.diag-weak-none { font-size: var(--text-base); line-height: 1.65; color: var(--color-muted); }

.diag-readout-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.diag-readout-table th,
.diag-readout-table td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}
.diag-readout-table thead th {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
}
.diag-readout-table tbody th { font-weight: 500; color: var(--color-dark); }
.diag-rating {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.diag-rating-strong   { background: rgba(111,125,86,0.16); color: #4c573a; }
.diag-rating-mixed    { background: rgba(168,179,154,0.28); color: #5a6347; }
.diag-rating-strained { background: rgba(196,122,61,0.18); color: #9a5421; }

.diag-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

/* Root-draw enhancement, motion only. The colored final state above
   is already the default; this just eases roots in on first paint. */
html.motion .diag-result:not([hidden]) .diag-root {
  animation: diag-root-draw 0.7s ease both;
}
@keyframes diag-root-draw {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 760px) {
  .diag-result-grid { grid-template-columns: 1fr; gap: 2rem; }
  .diag-viz-col { position: static; max-width: 340px; margin: 0 auto; }
  .diag-nav .btn { flex: 1; }
}

/* Homepage diagnostic teaser */
.diag-teaser { background: var(--color-cream); }
.diag-teaser-inner {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 3rem;
  align-items: center;
}
.diag-teaser-copy h2 { margin: 1rem 0 1.1rem; max-width: 520px; }
.diag-teaser-copy p { max-width: 520px; font-size: var(--text-md); line-height: 1.7; }
.diag-teaser-copy .btn { margin-top: 1.75rem; }
.diag-teaser-mark { width: 100%; height: auto; display: block; }
@media (max-width: 760px) {
  .diag-teaser-inner { grid-template-columns: 1fr; gap: 2rem; }
  .diag-teaser-mark { max-width: 240px; margin: 0 auto; order: -1; }
}

/* === Twelve-month engagement ===
   An engagement told across a year as a root line that draws
   through the four process steps. Server-rendered, complete with
   no JS: the SVG path and all four phases are fully visible by
   default. The scroll-draw and per-phase reveal are pure
   enhancement, gated entirely behind html.motion (added by
   motion.js only when the visitor has not asked for reduced
   motion). engagement.js drives the draw from scroll progress. */
.engagement {
  background: var(--color-dark);
  color: var(--color-cream);
}
.engagement-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-head);
}
.engagement-head .eyebrow { color: var(--color-accent-light); justify-content: center; }
.engagement-head .eyebrow::before { background: var(--color-accent-light); }
.engagement-head h2 { color: var(--color-white); margin: 1rem 0 1.1rem; }
.engagement-head p { color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto; }

/* The journey: a centered root line with the four phases stacked
   beside it, alternating sides on wider screens. */
.engagement-journey {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.engagement-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Node-dot overlay: shares the exact geometry of the stretched line
   SVG (same width, centered) so percentage-positioned dots land on the
   path. Rendered as CSS circles so they never distort into ellipses. */
.engagement-nodes {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}
.engagement-line-node {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* The four phases. By default every phase is fully visible and
   readable; this is the no-JS / reduced-motion rendered state. */
.engagement-phases {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  z-index: 1;
}
.engagement-phase {
  position: relative;
  width: calc(50% - 3rem);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
}
.engagement-phase:nth-child(even) { margin-left: auto; }
.engagement-phase-month {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent-light);
  margin-bottom: 0.6rem;
}
.engagement-phase-step {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 0.7rem;
}
.engagement-phase-artifact {
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* Motion enhancement, gated behind html.motion only.
   The line is hidden by dashoffset and drawn by engagement.js as
   the section scrolls; each node fades in, and each phase rises
   into place when the line reaches it. */
html.motion .engagement-line-path {
  stroke-dasharray: var(--engagement-line-len, 1400);
  stroke-dashoffset: var(--engagement-line-len, 1400);
}
html.motion .engagement-line-path.is-drawn {
  stroke-dashoffset: 0;
}
html.motion .engagement-line-node {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.motion .engagement-line-node.is-lit { opacity: 1; }
html.motion .engagement-phase {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html.motion .engagement-phase.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  /* On phones the root line runs down the left edge and the phases
     stack full width beside it. */
  .engagement-line {
    left: 18px;
    transform: none;
    width: 60px;
  }
  .engagement-phases { gap: 2.25rem; }
  .engagement-phase,
  .engagement-phase:nth-child(even) {
    width: auto;
    margin-left: 56px;
  }
}
