/* ============================================================
   InnovateX — Graphite & Coral Design System
   All colors driven from :root — swap the kit in one place.
   ============================================================ */

:root {
  --primary: #24282E;        /* graphite */
  --accent: #FF6B5A;         /* coral */
  --accent-hover: #EC5748;
  --label: #C9584A;          /* terracotta labels on white */
  --accent-soft: #F2A68C;    /* salmon accents on dark */
  --surface: #FBF7F4;        /* warm off-white */
  --surface-2: #F3EEEA;
  --line: #ece4df;
  --ink: #22262b;
  --muted: #6f6b68;
  --white: #ffffff;

  --font-head: 'Poppins', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-w: 1180px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(36, 40, 46, 0.09);
  --shadow-lg: 0 24px 64px rgba(36, 40, 46, 0.14);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--primary); font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
section.tight { padding: 56px 0; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: 0.78rem;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--label); margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--accent-soft); }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 46em; }
.on-dark .lead { color: rgba(255,255,255,0.78); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.98rem; padding: 15px 32px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: all 0.22s ease;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(236,87,72,0.35); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.on-dark .btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--primary); }
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,244,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--primary); letter-spacing: -0.02em; }
.logo:hover { color: var(--primary); }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-family: var(--font-head); font-size: 0.92rem; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-hover); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta { margin-left: 6px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a::before { content: ''; }
.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 220px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--surface-2); }
.dropdown-menu a.active::after { display: none; }
.caret { font-size: 0.6em; margin-left: 4px; opacity: 0.6; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--primary); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0; bottom: 0;
    background: var(--surface); flex-direction: column; align-items: flex-start;
    padding: 28px 24px; gap: 4px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.28s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a { display: block; padding: 15px 0; font-size: 1.05rem; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 0 0 8px 16px;
  }
  .nav-cta { margin: 18px 0; border-bottom: none !important; }
  body.nav-open { overflow: hidden; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding: 110px 0 96px; }
.hero-dark { background: var(--primary); color: #fff; }
.hero-dark h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats-band { background: var(--primary); color: #fff; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 36px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2.7rem; font-weight: 800; color: var(--accent-soft); line-height: 1.05; }
.stat-label { font-size: 0.92rem; color: rgba(255,255,255,0.72); margin-top: 8px; }
.stats-light .stat-num { color: var(--accent-hover); }
.stats-light .stat-label { color: var(--muted); }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: all 0.25s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }
a.card { color: inherit; display: block; }

.card-dark { background: var(--primary); border-color: var(--primary); }
.card-dark h3, .card-dark h4 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.75); }

.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: 0.85rem;
  color: var(--label); letter-spacing: 0.1em; margin-bottom: 12px; display: block;
}

/* Tag / badge */
.tag {
  display: inline-block; font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px;
  border-radius: 999px; background: var(--surface-2); color: var(--label);
  margin-bottom: 14px;
}
.tag.tag-real { background: #e9f2ec; color: #2f6b47; }
.tag.tag-composite { background: var(--surface-2); color: var(--label); }

/* Big-stat case cards */
.case-stat { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--accent-hover); line-height: 1.1; margin-bottom: 8px; }

/* ---------- Sections ---------- */
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- 4D timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 24px; }
@media (max-width: 880px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step { padding: 30px 26px 30px 30px; border-left: 2px solid var(--line); position: relative; }
.timeline-step::before {
  content: ''; position: absolute; left: -7px; top: 38px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,107,90,0.18);
}
.timeline-step .step-d { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--line); line-height: 1; margin-bottom: 10px; }
.timeline-step:hover .step-d { color: var(--accent-soft); }

/* ---------- Process / numbered list ---------- */
.num-list { counter-reset: step; list-style: none; }
.num-list li { position: relative; padding: 22px 0 22px 68px; border-bottom: 1px solid var(--line); }
.num-list li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--accent);
}
.num-list h4 { margin-bottom: 4px; }
.num-list p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Quote / testimonial ---------- */
.quote-block {
  background: #fff; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 34px 38px; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto;
}
.quote-block blockquote { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--primary); line-height: 1.5; }
.quote-attr { margin-top: 16px; font-size: 0.92rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); border-radius: 20px; padding: 68px 56px; text-align: center; color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 40em; margin: 0 auto 30px; }
@media (max-width: 640px) { .cta-band { padding: 48px 26px; } }

/* ---------- Article / longform ---------- */
.article { padding: 72px 0 88px; }
.article-head { max-width: 780px; margin: 0 auto 44px; padding: 0 24px; }
.article-meta { font-size: 0.88rem; color: var(--muted); margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.article-body { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.article-body h2 { font-size: 1.65rem; margin: 44px 0 16px; }
.article-body h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }
.article-body .callout {
  background: var(--surface-2); border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0; padding: 22px 26px; margin: 28px 0;
}
.article-body .callout p:last-child { margin-bottom: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.article-body th, .article-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.article-body th { font-family: var(--font-head); font-weight: 600; color: var(--primary); background: var(--surface-2); }
.article-body .sources { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; }
.article-body .sources ol { margin-left: 18px; }

/* Disclosure note */
.disclosure {
  font-size: 0.85rem; color: var(--muted); background: var(--surface-2);
  border-radius: 10px; padding: 14px 18px; margin-top: 28px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; }
label { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--primary); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--ink);
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }

/* Honeypot — off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--accent-hover); font-weight: 700; }

/* Validation */
.field-err {
  display: block; margin-top: 6px; font-family: var(--font-body); font-weight: 500;
  font-size: .84rem; color: #B3352A;
}
input.has-error, textarea.has-error, select.has-error { border-color: #B3352A; background: #FEF6F5; }

/* Submit status line */
.form-status { font-size: .9rem; line-height: 1.5; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-sending { color: var(--muted); }
.form-status.is-error   { color: #B3352A; }
.form-status.is-warn    { color: #8A5A12; }
.form-status a          { text-decoration: underline; }

/* Post-submit confirmation, replaces the form in place */
.form-done {
  background: var(--surface-2); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 26px 26px 28px;
}
.form-done h3 { font-family: var(--font-head); font-size: 1.35rem; margin-bottom: 10px; }
.form-done p  { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
details.faq { border-bottom: 1px solid var(--line); padding: 6px 0; }
details.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--primary); padding: 16px 32px 16px 0; list-style: none; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.4rem;
  color: var(--accent); transition: transform 0.2s;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 0 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.72); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--accent-soft); }
.footer-brand p { font-size: 0.94rem; max-width: 30em; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 48px; padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.84rem; color: rgba(255,255,255,0.5);
}
.footer-tagline { color: var(--accent-soft); font-family: var(--font-head); font-weight: 600; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Tool pages (printable) ---------- */
.tool-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 48px; max-width: 860px; margin: 0 auto; }
.tool-sheet h2 { font-size: 1.4rem; margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.tool-sheet .fill-line { border-bottom: 1px solid var(--line); height: 34px; margin-bottom: 8px; }
.check-list { list-style: none; }
.check-list li { padding: 12px 0 12px 40px; position: relative; border-bottom: 1px solid var(--line); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 14px; width: 20px; height: 20px;
  border: 2px solid var(--accent); border-radius: 5px;
}
.tool-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.tool-table th, .tool-table td { border: 1px solid var(--line); padding: 12px; text-align: left; font-size: 0.93rem; vertical-align: top; }
.tool-table th { background: var(--surface-2); font-family: var(--font-head); }
.tool-table td.tall { height: 72px; }

@media print {
  .site-header, .site-footer, .no-print, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .tool-sheet { border: none; padding: 0; box-shadow: none; }
  section { padding: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Editorial homepage components (MBB-grade landing)
   ============================================================ */

/* Oversized hero */
.hero-xl { position: relative; overflow: hidden; padding: 130px 0 110px; }
.hero-xl h1 { font-size: clamp(2.7rem, 6.2vw, 4.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; max-width: 13.5em; }
.hero-xl .lead { font-size: 1.28rem; max-width: 38em; }
.kicker { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 26px; }
.kicker::before { content: ''; width: 42px; height: 2px; background: var(--accent); }
.hero-ring { position: absolute; right: -180px; top: 50%; transform: translateY(-50%); width: 640px; height: 640px; opacity: 0.09; pointer-events: none; }
@media (max-width: 880px) { .hero-ring { width: 420px; right: -160px; } }
.hero-note { font-size: 0.9rem; color: rgba(255,255,255,0.55); }

/* Credibility strip */
.cred-strip { background: var(--surface); border-bottom: 1px solid var(--line); padding: 22px 0; }
.cred-strip .container { display: flex; flex-wrap: wrap; gap: 12px 0; align-items: center; justify-content: space-between; }
.cred-item { font-family: var(--font-head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; padding-right: 22px; }
.cred-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Editorial split section */
.split { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 72px; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.pull { font-family: var(--font-head); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; color: var(--primary); }
.pull em { font-style: normal; color: var(--accent-hover); }
.prose p { margin-bottom: 18px; color: var(--muted); font-size: 1.04rem; }
.prose p strong { color: var(--ink); }

/* Numbered capability list */
.cap-list { list-style: none; border-top: 1px solid var(--line); }
.cap-list li { border-bottom: 1px solid var(--line); }
.cap-list a { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: baseline; padding: 22px 4px; color: inherit; transition: background 0.2s, padding-left 0.2s; }
.cap-list a:hover { background: var(--surface-2); padding-left: 14px; }
.cap-list .cap-no { font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; color: var(--label); letter-spacing: 0.08em; }
.cap-list .cap-name { font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--primary); }
.cap-list .cap-arrow { color: var(--accent); font-weight: 700; opacity: 0; transition: opacity 0.2s; }
.cap-list a:hover .cap-arrow { opacity: 1; }
@media (max-width: 640px) { .cap-list a { grid-template-columns: 44px 1fr; } .cap-list .cap-arrow { display: none; } }

/* Featured case (large) */
.feature-case { display: grid; grid-template-columns: 1fr 1fr; background: var(--primary); border-radius: 20px; overflow: hidden; color: #fff; }
@media (max-width: 880px) { .feature-case { grid-template-columns: 1fr; } }
.feature-case .fc-stat { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; background: linear-gradient(155deg, #2c313a, #1d2126); }
.feature-case .fc-stat .big { font-family: var(--font-head); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 800; color: var(--accent-soft); line-height: 1; letter-spacing: -0.02em; }
.feature-case .fc-stat .big-label { margin-top: 14px; color: rgba(255,255,255,0.65); font-size: 1rem; }
.feature-case .fc-body { padding: 56px 48px; }
.feature-case .fc-body h3 { color: #fff; font-size: 1.5rem; margin: 10px 0 14px; }
.feature-case .fc-body p { color: rgba(255,255,255,0.75); }
@media (max-width: 640px) { .feature-case .fc-stat, .feature-case .fc-body { padding: 36px 28px; } }

/* Insight rows (magazine list) */
/* Insight rows — three columns: tag / (title + description) / arrow.
   Baseline-aligned rather than centred so rows of different heights read as a
   consistent list instead of drifting. */
.insight-rows { list-style: none; border-top: 1px solid var(--line); }
.insight-rows li { border-bottom: 1px solid var(--line); }
.insight-rows a {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) 28px;
  gap: 28px; align-items: start; padding: 26px 6px 26px 4px; color: inherit;
  transition: background .2s ease, padding-left .2s ease;
}
.insight-rows a:hover { background: var(--surface-2); padding-left: 14px; }
.insight-rows .ir-tag {
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--label);
  padding-top: 6px; line-height: 1.4;
}
.insight-rows .ir-body { display: block; min-width: 0; }
.insight-rows .ir-title {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 1.12rem; color: var(--primary); line-height: 1.38;
  text-wrap: balance;
}
.insight-rows .ir-desc {
  display: block; font-size: .95rem; color: var(--muted);
  line-height: 1.6; margin-top: 7px; max-width: 62ch;
}
.insight-rows .ir-arrow {
  color: var(--accent); font-weight: 700; font-size: 1.15rem;
  padding-top: 3px; justify-self: end; transition: transform .2s ease;
}
.insight-rows a:hover .ir-arrow { transform: translateX(5px); }
@media (max-width: 820px) {
  .insight-rows a { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
  .insight-rows .ir-arrow { display: none; }
}
@media (max-width: 560px) {
  .insight-rows a { grid-template-columns: 1fr; gap: 8px; padding: 22px 2px; }
  .insight-rows .ir-tag { padding-top: 0; }
  .insight-rows a:hover { padding-left: 2px; }
}

/* Founder featurette */
.founder-feat { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .founder-feat { grid-template-columns: 1fr; gap: 28px; } }
.monogram { aspect-ratio: 1; border-radius: 18px; background: linear-gradient(155deg, #2c313a, #1d2126); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.monogram span { font-family: var(--font-head); font-size: 4.2rem; font-weight: 800; color: var(--accent-soft); letter-spacing: 0.02em; }
.monogram::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(242,166,140,0.3); border-radius: 12px; }

/* Offer rail (no-price engagement cards) */
.offer-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
@media (max-width: 980px) { .offer-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .offer-rail { grid-template-columns: 1fr; } }
.offer-rail a { padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; transition: background 0.2s; display: block; }
.offer-rail a:hover { background: var(--surface-2); }
.offer-rail h4 { font-size: 1.08rem; margin: 12px 0 8px; }
.offer-rail p { font-size: 0.92rem; color: var(--muted); }
.offer-rail .of-kicker { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }

/* Section header with rule */
.rule-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-top: 2px solid var(--primary); padding-top: 22px; margin-bottom: 46px; flex-wrap: wrap; }
.rule-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.rule-head .rh-link { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }

/* ============================================================
   v2 — EDITORIAL LAYER
   Adds: accessibility, breadcrumbs, service index, FAQ,
   capability grid, proof bar, editorial serif accents.
   ============================================================ */

:root { --font-serif: 'Source Serif 4', Georgia, serif; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--primary); color: #fff; padding: 12px 20px;
  font-family: var(--font-head); font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 14px 0; margin: 0;
  font-size: .82rem; font-family: var(--font-head); font-weight: 500; }
.crumbs li + li::before { content: '/'; color: var(--muted); opacity: .5; margin-right: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-hover); }
.crumbs span { color: var(--primary); font-weight: 600; }

/* ---------- Editorial type ---------- */
.serif { font-family: var(--font-serif); font-style: italic; }
.display-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.35;
  color: var(--primary); letter-spacing: -.01em;
}
.on-dark .display-quote { color: #fff; }
.overline {
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--label);
}
.on-dark .overline { color: var(--accent-soft); }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }
.on-dark .hairline { background: rgba(255,255,255,.16); }

/* ---------- Capability index (numbered, L.E.K.-style) ---------- */
.cap-index { list-style: none; border-top: 1px solid var(--line); }
.cap-index li { border-bottom: 1px solid var(--line); }
.cap-index a {
  display: grid; grid-template-columns: 62px 1fr auto; align-items: baseline;
  gap: 18px; padding: 26px 8px 26px 0; color: var(--primary);
  transition: background .2s ease, padding .2s ease;
}
.cap-index a:hover { background: var(--surface-2); padding-left: 14px; color: var(--primary); }
.cap-index .ci-no {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: var(--label); letter-spacing: .06em; padding-top: 4px;
}
.cap-index .ci-body h3 { font-size: 1.24rem; margin-bottom: 5px; }
.cap-index .ci-body p { color: var(--muted); font-size: .96rem; max-width: 60ch; margin: 0; }
.cap-index .ci-arrow { font-size: 1.3rem; color: var(--accent); transition: transform .2s ease; }
.cap-index a:hover .ci-arrow { transform: translateX(6px); }
@media (max-width: 640px) {
  .cap-index a { grid-template-columns: 46px 1fr; gap: 12px; padding: 20px 0; }
  .cap-index .ci-arrow { display: none; }
}

/* ---------- Proof bar ---------- */
.proof-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden;
}
.proof-bar > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.proof-bar > div:last-child { border-right: 0; }
.proof-bar .pb-num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.75rem;
  color: var(--primary); letter-spacing: -.02em; line-height: 1.1;
}
.proof-bar .pb-label { font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
@media (max-width: 720px) { .proof-bar > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s ease;
}
.faq[open] summary::after { content: '\2212'; }
.faq summary:hover { color: var(--accent-hover); }
.faq-a { padding: 0 40px 24px 0; color: var(--muted); }
.faq-a p + p { margin-top: 14px; }
.faq-a strong { color: var(--ink); }

/* ---------- Service page furniture ---------- */
.svc-hero { background: var(--primary); color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden; }
.svc-hero .svc-no {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 8rem);
  color: rgba(255,255,255,.07); position: absolute; right: 4%; top: 6%; line-height: 1; letter-spacing: -.04em;
}
.svc-hero h1 { color: #fff; max-width: 17em; }
.svc-hero .lead { color: rgba(255,255,255,.8); margin-top: 18px; }

.sig-list { list-style: none; }
.sig-list li {
  position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.sig-list li::before {
  content: ''; position: absolute; left: 6px; top: 22px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--accent);
}
.sig-list li:last-child { border-bottom: 0; }

.deliverable-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.deliverable {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; border-top: 3px solid var(--accent);
}
.deliverable h4 { margin-bottom: 8px; }
.deliverable p { font-size: .93rem; color: var(--muted); margin: 0; }

.week-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.week-rail > div { padding: 24px; border-right: 1px solid var(--line); }
.week-rail > div:last-child { border-right: 0; }
.week-rail .wk { font-family: var(--font-head); font-weight: 700; font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin-bottom: 10px; }
.week-rail h4 { margin-bottom: 8px; }
.week-rail p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .week-rail > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- Fit / not-fit ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.fit-col.no { background: var(--surface-2); }
.fit-col h4 { margin-bottom: 14px; }
.fit-col ul { list-style: none; }
.fit-col li { padding: 9px 0 9px 26px; position: relative; font-size: .95rem; color: var(--muted); }
.fit-col li::before { position: absolute; left: 0; font-weight: 700; }
.fit-col.yes li::before { content: '\2713'; color: #2f7d5f; }
.fit-col.no li::before { content: '\2715'; color: #b4564a; }
@media (max-width: 720px) { .fit-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.note-band {
  background: var(--surface-2); border-left: 3px solid var(--accent);
  padding: 22px 26px; border-radius: 0 10px 10px 0;
}
.note-band p:last-child { margin-bottom: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted);
}
.on-dark .pill { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.82); }
.anchor-nav {
  position: sticky; top: 74px; z-index: 40; background: rgba(251,247,244,.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.anchor-nav ul { display: flex; gap: 26px; list-style: none; padding: 14px 0; overflow-x: auto;
  font-family: var(--font-head); font-size: .88rem; font-weight: 500; }
.anchor-nav a { color: var(--muted); white-space: nowrap; }
.anchor-nav a:hover { color: var(--accent-hover); }
.related-rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.related-rail a {
  display: block; padding: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--primary); transition: all .2s ease;
}
.related-rail a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--primary); }
.related-rail .rr-k { font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.related-rail h4 { margin-top: 8px; font-size: 1.02rem; line-height: 1.3; }

/* ---------- Wide capability dropdown ---------- */
.dropdown-menu.dd-wide {
  min-width: 620px; left: -18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px;
  padding: 14px;
}
.dd-wide a { display: flex; align-items: baseline; gap: 11px; font-size: .89rem; padding: 9px 12px; }
.dd-no { font-family: var(--font-head); font-weight: 700; font-size: .68rem;
  color: var(--label); letter-spacing: .08em; flex-shrink: 0; }
.dd-sep { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.dd-sep a { font-weight: 600; color: var(--accent); }
@media (max-width: 1080px) { .dropdown-menu.dd-wide { min-width: 460px; grid-template-columns: 1fr; max-height: 70vh; overflow-y: auto; } }
@media (max-width: 920px) {
  /* Breakpoint must match the mobile-nav rule above (920px). A mismatch leaves
     the drawer sub-menus permanently expanded in the gap between the two. */
  .dropdown-menu.dd-wide { min-width: 0; grid-template-columns: 1fr; }
  .dropdown-menu, .dropdown:hover .dropdown-menu {
    position: static; opacity: 1; visibility: hidden; transform: none;
    box-shadow: none; border: 0; max-height: 0; overflow: hidden; padding: 0;
    transition: max-height .25s ease;
  }
  .dropdown.open .dropdown-menu, .dropdown.open:hover .dropdown-menu {
    visibility: visible; max-height: 720px; padding: 4px 0 10px 14px;
  }
  .dropdown > a .caret { transition: transform .2s ease; display: inline-block; }
  .dropdown.open > a .caret { transform: rotate(180deg); }
  .dd-wide a { padding: 11px 0; }
  .nav-links .dd-sep { border-top: 1px solid var(--line); }
}


/* ---------- No-JS fallback nav ----------
   The header and footer are injected by site.js. If the script is blocked
   (strict local file policies, an extension, a CSP), the page would otherwise
   have no navigation at all. This renders a plain nav in that case. */
.nojs-nav { border-bottom: 1px solid var(--line); background: var(--surface); padding: 14px 0; }
.nojs-nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none;
  font-family: var(--font-head); font-weight: 500; font-size: .92rem; }
.nojs-nav a { color: var(--ink); }
.nojs-nav a:hover { color: var(--accent-hover); }
.nojs-nav strong { font-weight: 800; font-size: 1.15rem; color: var(--primary); margin-right: 8px; }

/* ============================================================
   v3 — STAT TILES, SPEC LISTS, DIAGRAMS, CALENDLY
   ============================================================ */

/* Complementary accents. Chosen to sit with graphite + coral on cream
   without competing with the CTA colour, which stays coral throughout. */
:root {
  --c-teal:   #17806B;  --c-teal-bg:   #E4F2EE;
  --c-amber:  #B87514;  --c-amber-bg:  #FAF0DF;
  --c-indigo: #47509B;  --c-indigo-bg: #EAEBF7;
  --c-plum:   #8C4A63;  --c-plum-bg:   #F7EBF0;
  --c-coral:  #C9584A;  --c-coral-bg:  #FAEBE7;
}

/* ---------- Stat tiles (Track record, in numbers) ---------- */
.stat-tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
/* 8 tiles into 4 / 3 / 2 / 1 columns — never leaves a single orphan on a row. */
@media (max-width: 1080px) { .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px)  { .stat-tiles { grid-template-columns: minmax(0, 1fr); } }
/* .st-4 — the homepage proof bar. 4 tiles skip the 3-column step, which would
   otherwise strand one tile alone on a second row. 4 / 2 / 1 only. */
@media (max-width: 1080px) { .stat-tiles.st-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px)  { .stat-tiles.st-4 { grid-template-columns: minmax(0, 1fr); } }
.stat-tile {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 22px 22px; overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.3,1.1), box-shadow .25s ease, border-color .25s ease;
}
.stat-tile.visible { opacity: 1; transform: none; }
.stat-tile::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--tile); transform: scaleX(0); transform-origin: left;
  transition: transform .6s ease .15s;
}
.stat-tile.visible::before { transform: scaleX(1); }
.stat-tile:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(36,40,46,.13); border-color: transparent; }
.stat-tile .st-num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.15rem;
  letter-spacing: -.03em; line-height: 1; color: var(--tile);
  display: flex; align-items: baseline; gap: 3px;
}
.stat-tile .st-num small { font-size: .52em; font-weight: 700; letter-spacing: 0; }
.stat-tile .st-label { font-size: .88rem; color: var(--ink); margin-top: 12px; line-height: 1.5; font-weight: 500; }
.stat-tile .st-note { font-size: .76rem; color: var(--muted); margin-top: 8px; }
.stat-tile .st-chip {
  display: inline-block; font-family: var(--font-head); font-size: .66rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
  background: var(--tile-bg); color: var(--tile); margin-bottom: 14px;
}
.t-teal   { --tile: var(--c-teal);   --tile-bg: var(--c-teal-bg); }
.t-amber  { --tile: var(--c-amber);  --tile-bg: var(--c-amber-bg); }
.t-indigo { --tile: var(--c-indigo); --tile-bg: var(--c-indigo-bg); }
.t-plum   { --tile: var(--c-plum);   --tile-bg: var(--c-plum-bg); }
.t-coral  { --tile: var(--c-coral);  --tile-bg: var(--c-coral-bg); }
.t-ink    { --tile: var(--primary);  --tile-bg: var(--surface-2); }

/* ---------- Before / after comparison ----------
   Two states side by side, one row per dimension, so the change is legible
   without reading the narrative. Collapses to stacked pairs on mobile. */
.ba-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.ba-head, .ba-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.4fr; }
.ba-head {
  background: var(--primary); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.ba-head > div, .ba-row > div { padding: 14px 18px; }
.ba-row { border-top: 1px solid var(--line); font-size: .93rem; }
.ba-row:nth-child(even) { background: var(--surface); }
.ba-dim { font-family: var(--font-head); font-weight: 700; color: var(--primary); }
.ba-before { color: var(--muted); }
.ba-after { color: var(--ink); font-weight: 500; border-left: 3px solid var(--accent); }
@media (max-width: 720px) {
  .ba-head { display: none; }
  .ba-row { grid-template-columns: 1fr; padding: 6px 0 12px; }
  .ba-row > div { padding: 4px 16px; }
  .ba-before::before { content: 'Before: '; font-weight: 700; color: var(--label); }
  .ba-after::before  { content: 'After: ';  font-weight: 700; color: var(--label); }
  .ba-after { border-left: 0; }
}

/* Constraints: what the work had to accept as fixed. */
.constraint-list { list-style: none; display: grid; gap: 12px; }
.constraint-list li {
  background: var(--surface-2); border-left: 4px solid var(--label);
  border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: .94rem;
}
.constraint-list strong { font-family: var(--font-head); display: block; margin-bottom: 3px; }

/* ---------- Methodology notes ----------
   Sits under a quantified claim and states how it was measured. Structure
   follows the benefits-tracking discipline: frozen baseline, stated
   measurement method, attribution, and an honest evidence grade. Collapsed
   by default so it reassures the careful reader without taxing the rest. */
.method-note { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.method-note > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: .74rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  transition: color .18s ease;
}
.method-note > summary::-webkit-details-marker { display: none; }
.method-note > summary::before {
  content: '+'; display: inline-block; width: 15px; height: 15px; line-height: 13px;
  text-align: center; border: 1px solid var(--line); border-radius: 50%;
  font-size: .82rem; font-weight: 700; color: var(--accent-hover);
}
.method-note[open] > summary::before { content: '\2212'; }
.method-note > summary:hover { color: var(--accent-hover); }
.mn-body { padding-top: 12px; }
.mn-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
@media (max-width: 560px) { .mn-body dl { grid-template-columns: 1fr; gap: 2px 0; } }
.mn-body dt {
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--label); padding-top: 2px;
}
.mn-body dd { margin: 0 0 6px; font-size: .87rem; line-height: 1.55; color: var(--muted); }
.mn-grade {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
.mn-measured  { background: #E4F2EE; color: #17806B; }
.mn-derived   { background: #EAEBF7; color: #47509B; }
.mn-estimated { background: #FAF0DF; color: #B87514; }
.on-dark .method-note { border-top-color: rgba(255,255,255,.18); }
.on-dark .method-note > summary { color: rgba(255,255,255,.66); }
.on-dark .mn-body dd { color: rgba(255,255,255,.72); }
.on-dark .mn-body dt { color: var(--accent-soft); }

/* ---------- Testimonials ----------
   Three quote cards. Built and responsive-tested ahead of real quotes
   landing; the markup sits commented out in src/index.html until then. */
.tq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .tq-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

.tq-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px;
  display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease;
}
.tq-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(36,40,46,.11); }
.tq-card::before {
  content: '\201C'; position: absolute; top: 8px; left: 22px;
  font-family: var(--font-head); font-size: 3.6rem; font-weight: 800; line-height: 1;
  color: var(--accent); opacity: .22;
}
.tq {
  position: relative; font-size: 1.02rem; line-height: 1.62; color: var(--ink);
  margin: 14px 0 22px; flex: 1;
}
.tq-card figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 16px; }
.tq-name { font-family: var(--font-head); font-weight: 700; font-size: .96rem; color: var(--primary); }
.tq-role { font-size: .87rem; color: var(--muted); line-height: 1.45; }
.tq-tag {
  align-self: flex-start; margin-top: 10px; font-family: var(--font-head);
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--surface-2); color: var(--label);
}
@media (prefers-reduced-motion: reduce) { .tq-card:hover { transform: none; } }

/* Arrow pair, e.g. 62% -> 38% */
.st-num .st-from { color: var(--muted); font-size: .62em; font-weight: 700; }
.st-num .st-arrow { color: var(--tile); font-size: .55em; margin: 0 2px; opacity: .7; }

/* ---------- Spec list (vertical credential list inside a column) ----------
   Replaces .cred-strip, which is a full-width horizontal band and breaks
   when forced into a narrow grid column. */
.spec-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec-list > li { list-style: none; display: grid; grid-template-columns: 132px 1fr;
  gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: start; }
.spec-list > li:last-child { border-bottom: 0; }
.spec-list .sp-k {
  font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--label); padding-top: 3px; line-height: 1.45;
}
.spec-list .sp-v { font-size: .95rem; color: var(--ink); line-height: 1.55; }
.spec-list.on-tint > li:nth-child(odd) { background: var(--surface); }
@media (max-width: 560px) { .spec-list > li { grid-template-columns: 1fr; gap: 5px; } }

/* ---------- Diagram figures ---------- */
.figure { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 26px 22px; }
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { font-size: .84rem; color: var(--muted); margin-top: 18px; text-align: center; }
.figure.on-dark-fig { background: var(--primary); border-color: rgba(255,255,255,.14); }
.figure.on-dark-fig figcaption { color: rgba(255,255,255,.6); }
/* Diagram typography.
   Driven from the type system rather than hardcoded per <text> element, so the
   SVG tracks the page — including the fallback. Hardcoding "Poppins,sans-serif"
   meant that when the webfont failed the diagram dropped to generic sans while
   the surrounding page fell back to -apple-system, and the mismatch showed. */
.dg text            { font-family: var(--font-body); font-size: 16.5px; fill: var(--muted); }
.dg .dg-num         { font-family: var(--font-head); font-weight: 800; font-size: 30px; letter-spacing: -.02em; }
.dg .dg-name        { font-family: var(--font-head); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.dg .dg-q           { font-size: 16.5px; }
/* Bar labels sit inside their bar, so they are sized by the longest string —
   the production label in the 12-week row — not by taste. At 13.5 it clears
   the 510-wide bar with even padding; larger and it spills onto its neighbours. */
.dg .dg-bar         { font-size: 13.5px; }
.dg .dg-note        { font-size: 14px; }
.dg .dg-cap         { font-family: var(--font-head); font-weight: 700; font-size: 13px;
                      letter-spacing: .13em; text-transform: uppercase; }
/* The loop label supports the diagram; it should not compete with the stage
   questions, so it sits a step down in size and weight. */
.dg .dg-loop-label  { font-size: 14.5px; font-weight: 500; letter-spacing: .01em; fill: #C9584A; }

.dg-draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.visible .dg-draw, .figure.visible .dg-draw { animation: dgdraw 1.6s ease forwards; }
@keyframes dgdraw { to { stroke-dashoffset: 0; } }
/* Connectors draw first, then their arrowhead and label fade in — so the head
   never floats in place waiting for the line to reach it. */
.dg-loop { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.figure.visible .dg-loop { animation: dgdraw 1.5s ease .25s forwards; }
.dg-fade { opacity: 0; }
.figure.visible .dg-fade { animation: dgfade .45s ease 1.5s forwards; }
@keyframes dgfade { to { opacity: 1; } }
.dg-pop { opacity: 0; transform-origin: center; }
.figure.visible .dg-pop { animation: dgpop .5s cubic-bezier(.2,.8,.3,1.2) forwards; }
.figure.visible .dg-pop:nth-of-type(2) { animation-delay: .12s; }
.figure.visible .dg-pop:nth-of-type(3) { animation-delay: .24s; }
.figure.visible .dg-pop:nth-of-type(4) { animation-delay: .36s; }
@keyframes dgpop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }

/* ---------- Calendly embed ---------- */
.calendly-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; overflow: hidden; }
.calendly-inline-widget { min-width: 320px; height: 700px; }
@media (max-width: 640px) { .calendly-inline-widget { height: 900px; } }

@media (prefers-reduced-motion: reduce) {
  .stat-tile { opacity: 1; transform: none; }
  .stat-tile::before { transform: scaleX(1); }
  .dg-draw { stroke-dashoffset: 0; animation: none; }
  .dg-loop { stroke-dashoffset: 0; animation: none; }
  .dg-fade { opacity: 1; animation: none; }
  .dg-pop { opacity: 1; animation: none; }
  .tq-card { transition: none; }
}

/* ---------- Brand lockup ---------- */
.logo-lockup { display: flex; flex-direction: column; line-height: 1; }
.logo-lockup .lg-main { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.logo-lockup .lg-sub { font-family: var(--font-body); font-weight: 500; font-size: .68rem;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.site-footer .footer-byline { font-family: var(--font-body); font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.5); margin: -6px 0 12px 45px; }
@media (max-width: 420px) { .logo-lockup .lg-sub { display: none; } }

/* ============================================================
   v4 — MOBILE PASS
   Targets: 320–430px phones. Tap targets >=44px, no horizontal
   overflow, readable type, diagrams that survive a small screen.
   ============================================================ */

/* Nothing may push the page wider than the viewport. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, iframe, video, table { max-width: 100%; }
.container, .container-narrow { width: 100%; }

/* Long unbroken strings (URLs, emails) must wrap rather than scroll. */
p, li, h1, h2, h3, h4, .st-label, .sp-v { overflow-wrap: break-word; }

@media (max-width: 920px) {
  /* Full-width tap targets in the mobile drawer. */
  .nav-links a { min-height: 46px; display: flex; align-items: center; }
  .nav-links .nav-cta a { justify-content: center; min-height: 50px; font-size: 1rem; }
  .dd-wide a { min-height: 44px; }
}

@media (max-width: 780px) {
  section { padding: 60px 0; }
  section.tight { padding: 40px 0; }
  .container, .container-narrow { padding: 0 20px; }
  h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); line-height: 1.14; }
  h2 { font-size: clamp(1.5rem, 5.6vw, 2rem); }
  .lead { font-size: 1.08rem; }
  .display-quote { font-size: clamp(1.35rem, 5.6vw, 1.7rem); }
  body { font-size: 16.5px; }

  /* Buttons go full width and stack — thumb-reachable, no half-width taps. */
  .btn-group { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-group .btn { width: 100%; padding: 15px 24px; min-height: 50px; }
  .btn-group.inline-mobile { flex-direction: row; }

  /* Section heads stop competing for one line. */
  .rule-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rule-head .rh-link { font-size: .92rem; }

  /* The oversized watermark numeral on capability heroes was overflowing. */
  .svc-hero { padding: 52px 0 46px; }
  .svc-hero .svc-no { font-size: 4.6rem; right: 2%; top: 2%; }
  .hero-xl { padding: 72px 0 64px; }
  .hero-ring { display: none; }

  /* Sticky in-page nav: scrollable, with a fade so it reads as scrollable. */
  .anchor-nav { position: static; }
  .anchor-nav ul { gap: 18px; padding: 12px 0; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; }
  .anchor-nav ul::-webkit-scrollbar { display: none; }
  .anchor-nav a { min-height: 40px; display: flex; align-items: center; }

  .stat-tiles { gap: 12px; }
  .stat-tile { padding: 20px 16px 18px; }
  .stat-tile .st-num { font-size: 1.75rem; }
  .stat-tile .st-label { font-size: .84rem; }
  .stat-tile:hover { transform: none; box-shadow: none; }

  .faq summary { font-size: 1rem; padding: 20px 36px 20px 0; min-height: 48px; }
  .faq-a { padding-right: 0; }
  .note-band { padding: 18px 18px 18px 20px; }
  .figure { padding: 20px 14px 16px; }
  .footer-grid { gap: 28px; }
  .site-footer .footer-byline { margin-left: 45px; }
}

@media (max-width: 560px) {
  .container, .container-narrow { padding: 0 18px; }
  .deliverable-grid, .related-rail { grid-template-columns: 1fr; }
  .week-rail { grid-template-columns: 1fr; }
  .proof-bar { grid-template-columns: 1fr; }
  .cap-index a { padding: 18px 0; }
  .cap-index .ci-body h3 { font-size: 1.08rem; }
  .cap-index .ci-body p { font-size: .92rem; }
  .pill { font-size: .74rem; padding: 6px 12px; }
  .timeline { gap: 24px; }
}

@media (max-width: 400px) {
  h1 { font-size: 1.92rem; }
  .logo-lockup .lg-main { font-size: 1.14rem; }
  .logo-mark { width: 30px; height: 30px; }
}

/* Diagrams: too dense to shrink to phone width and stay readable, so they
   scroll horizontally inside their frame with a visible affordance. */
@media (max-width: 780px) {
  .figure .fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .figure .fig-scroll svg { min-width: 620px; }
  .figure .fig-hint { display: block; }
}
.figure .fig-hint {
  display: none; font-size: .74rem; color: var(--muted); text-align: center;
  margin-top: 10px; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}

/* iOS zooms the page on focus if an input is under 16px. */
input, select, textarea { font-size: 16px; }
.form-grid button { min-height: 50px; }

/* Respect the notch / rounded corners on modern phones. */
@supports (padding: max(0px)) {
  .container, .container-narrow {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

@media (max-width: 400px) {
  .calendly-wrap { margin-left: -18px; margin-right: -18px; border-radius: 0;
    border-left: 0; border-right: 0; padding: 4px; }
  .calendly-inline-widget { min-width: 0; width: 100%; }
}


/* ============================================================
   v5 — MOBILE REFINEMENT
   ============================================================ */

/* Headlines break at sensible points rather than leaving one orphan word. */
h1, h2, h3, .st-label, .ci-body h3, .ir-title { text-wrap: balance; }

@media (max-width: 780px) {
  /* Stat tiles: two up on a phone reads better than one huge card per screen. */
  .stat-tile { padding: 18px 14px 16px; }
  .stat-tile .st-chip { font-size: .6rem; padding: 3px 8px; margin-bottom: 10px; }
  .stat-tile .st-num { font-size: 1.6rem; }
  .stat-tile .st-num small { font-size: .55em; }
  .stat-tile .st-label { font-size: .8rem; margin-top: 9px; line-height: 1.42; }

  /* Engagement rail: 4 across is unreadable on a phone. */
  .offer-rail { grid-template-columns: 1fr; }
  .offer-rail a { padding: 24px 22px; }

  /* 4D timeline stacks with a connecting rule so the sequence stays legible. */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-step { padding: 20px 0 20px 46px; position: relative; border-left: 2px solid var(--line); }
  .timeline-step:last-child { border-left-color: transparent; }
  .timeline-step .step-d { position: absolute; left: -17px; top: 18px; margin: 0; }

  /* Capability index: the arrow column is dead weight at this width. */
  .cap-index a { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }

  .feature-case .big { font-size: 2.1rem; }
  .fc-body h3 { font-size: 1.15rem; }
  .display-quote { line-height: 1.3; }
  .crumbs ol { font-size: .76rem; padding: 11px 0; }
  .spec-list > li { padding: 15px 18px; }
}

@media (max-width: 400px) {
  .stat-tile .st-num { font-size: 1.85rem; }
  .stat-tile .st-label { font-size: .86rem; }
  .container, .container-narrow { padding: 0 16px; }
}

/* Tap highlight that matches the brand rather than the browser default blue. */
* { -webkit-tap-highlight-color: rgba(255,107,90,.18); }
