/* ═══════════════════════════════════════════════════════════════════
   HEURYSTIX DESIGN SYSTEM — system.css (owner: Designer, v1, 1 Nov 2026)
   ONE stylesheet for every page: header, footer, homepage modules and
   inner-page modules (service pages, approach page, services hub).
   Replaces /css/site.css. Standalone: needs no other CSS and no JS.

   Contract kept from inner.css (Developer builds to these):
     body.page-inner · section.module.module--{name} | [data-module="{name}"]
     .wrap .module-head .eyebrow .card .card-tag .card-grid(.cols-2/.cols-4)
     .text-link .crumbs .hero-actions .compare .deliverable-grid .deliverable
     .mechanism-grid .mechanism .mech-no .mechanism-deep .cta-strip .timeline
     .sector-card .sector-code .badge .model-card .model-no .engagement-note
     .faq .related-card .cta-band .cta-actions .big-mail .service-grid
     .service-card .svc-no .card-link .approach-banner .be-chips .foot-nav
     .placeholder .skip-link .visually-hidden .btn .btn-primary .btn-ghost
   Header keeps the live class names: .nav .nav-logo .nav-links (+ new
   .nav-cta, .nav-menu, .nav-toggle).

   Readability rules (Vinod): body 18px / 1.65 in #E6EBE8, muted never
   darker than #B4BDB8, nav 15px sentence case, labels >= 13px with
   letter-spacing <= .08em, buttons 16px, every text pair >= 7:1.
   Solid backgrounds only: no blobs, glows, gradients, grain, outlined
   text or neumorphic shadows.
   ═══════════════════════════════════════════════════════════════════ */

/* ── 0. Tokens ─────────────────────────────────────────────────── */
:root {
  --bg: #0A0C0B;            /* page                                   */
  --bg-alt: #111513;        /* alternate module band                  */
  --surface: #111513;       /* legacy alias (site.css name)           */
  --text: #F2F5F3;          /* headings     17.87 bg · 16.77 alt      */
  --body: #E6EBE8;          /* running text 16.27 bg · 15.27 alt      */
  --muted: #B4BDB8;         /* secondary    10.19 bg ·  9.57 alt      */
  --ink-soft: var(--muted); /* legacy alias (inner.css name)          */
  --emerald: #10B981;       /* accents/links 7.73 bg · 7.26 alt       */
  --emerald-hi: #34D399;    /* hover        10.21 bg · 9.58 alt       */
  --deep: #0F5132;
  --brass: #C8A24B;         /* tags, sparingly 8.15 bg · 7.65 alt     */
  --danger-ink: #F28B8E;    /* 8.28 bg · 7.77 alt                     */
  --on-emerald: #02140C;    /* button label: 7.47 on emerald, 9.86 on hover */
  --line: #262D29;          /* hairlines (decoration, not text)       */
  --line-strong: #3A433E;   /* control borders                        */
  --card-bg: var(--bg-alt); /* cards on bg bands; flips on alt bands  */

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --body-size: 1.125rem;    /* 18px */
  --small-size: 1.0625rem;  /* 17px: smallest running text */
  --nav-size: .9375rem;     /* 15px */
  --btn-size: 1rem;         /* 16px */
  --label-size: .875rem;    /* 14px mono labels (min 13px) */
  --label-track: .06em;     /* max .08em */

  --radius: 12px;
  --radius-lg: 16px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1200px;
  --module-pad: clamp(4rem, 9vw, 7rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── 1. Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--body);
  font-family: var(--f-body); font-size: var(--body-size); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--text); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
p { max-width: 68ch; text-wrap: pretty; }
strong, b { color: var(--text); font-weight: 600; }
em { font-style: normal; color: var(--emerald); }
::selection { background: var(--emerald); color: var(--on-emerald); }

.wrap { max-width: var(--maxw); margin: 0 auto; }
.lede { font-size: clamp(1.1875rem, 1.6vw, 1.3125rem); color: var(--body); max-width: 56ch; }
.mono-tag { font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); color: var(--muted); }

/* ── 2. Accessibility ──────────────────────────────────────────── */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--emerald); color: var(--on-emerald);
  font-size: var(--btn-size); font-weight: 500; padding: .75rem 1.1rem; border-radius: 8px;
}
.skip-link:focus { top: .75rem; }
:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 6px;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── 3. Buttons (one primary style site-wide) ─────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 10px;
  font-family: var(--f-body); font-size: var(--btn-size); font-weight: 500; line-height: 1.2;
  letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-primary { background: var(--emerald); color: var(--on-emerald); }
.btn-primary:hover { background: var(--emerald-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 600px) {
  .hero-actions .btn, .cta-strip .btn, .cta-actions .btn { width: 100%; }
}

/* ── 4. Header (sticky; hamburger on mobile) ──────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2rem;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav-logo { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.nav-logo svg { width: 30px; height: auto; }
.nav-logo b { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: .06em; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: var(--nav-size); font-weight: 500; color: var(--body);
  padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover { color: var(--text); border-color: var(--line-strong); }
.nav-links a[aria-current="page"] { color: var(--text); border-color: var(--emerald); }
.nav-cta { min-height: 42px; padding: .55rem 1.05rem; }

/* mobile menu: <details class="nav-menu"> works with no JS.
   Developer's JS hamburger may instead use .nav-toggle[aria-expanded] + .nav-panel. */
.nav-menu, .nav-toggle { display: none; }
.nav-menu > summary, .nav-toggle {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem .9rem;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg);
  font-size: var(--nav-size); font-weight: 500; color: var(--text);
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::before, .nav-toggle::before {
  content: ''; width: 18px; height: 12px; flex: none;
  background: linear-gradient(var(--text) 0 0) top / 100% 2px no-repeat,
              linear-gradient(var(--text) 0 0) center / 100% 2px no-repeat,
              linear-gradient(var(--text) 0 0) bottom / 100% 2px no-repeat;
}
.nav-menu[open] > summary::before, .nav-toggle[aria-expanded="true"]::before {
  width: 14px; height: 14px; margin-inline: 2px;
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), var(--text) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), var(--text) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
}
.nav-panel {
  position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 1px);
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.5rem; display: grid; gap: .25rem;
}
.nav-panel a:not(.btn) {
  font-size: 1.125rem; font-weight: 500; color: var(--text);
  padding: .85rem 0; border-bottom: 1px solid var(--line);
}
.nav-panel a[aria-current="page"] { color: var(--emerald); }
.nav-panel .btn { margin-top: 1rem; width: 100%; }
@media (max-width: 860px) {
  .nav-links, .nav > .nav-cta { display: none; }
  .nav-menu, .nav-toggle { display: block; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle[aria-expanded="false"] + .nav-panel { display: none; }
}
@media (min-width: 861px) { .nav-panel { display: none !important; } }

/* ── 5. Module shell + background rhythm ──────────────────────── */
:is(.module, [data-module]) { padding: var(--module-pad) var(--gutter); position: relative; }
main > :is(.module, [data-module]):nth-of-type(even):not(:is(.module--cta-band, [data-module="cta-band"])),
:is(.module--alt, [data-alt]) {
  background: var(--bg-alt); --card-bg: var(--bg);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
:is(.module, [data-module]) > .wrap { max-width: var(--maxw); margin: 0 auto; }

.module-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 62ch; }
.eyebrow, .chapter {
  display: block; margin-bottom: 1rem;
  font-family: var(--f-mono); font-size: var(--label-size); font-weight: 500;
  letter-spacing: var(--label-track); text-transform: uppercase; color: var(--emerald);
}
:is(.module, [data-module]) h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1.12; max-width: 24ch; }
.module-head p:not(.eyebrow, .placeholder) { margin-top: 1rem; color: var(--body); }
:is(.module, [data-module]) h3 { font-size: 1.375rem; line-height: 1.25; }

.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: flex; flex-direction: column; gap: .7rem; position: relative;
}
.card p:not(.role) { color: var(--body); max-width: 52ch; }
.card-tag, .card .mono-tag {
  font-family: var(--f-mono); font-size: var(--label-size); font-weight: 500;
  letter-spacing: var(--label-track); text-transform: uppercase; color: var(--brass);
}
.card-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; } }

.text-link, .prose a {
  color: var(--emerald); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  transition: color .2s;
}
.text-link:hover, .prose a:hover { color: var(--emerald-hi); }
.text-link::after { content: ' →'; }
.module-foot { margin-top: 2.25rem; }

/* ── 6. hero (inner + home) ───────────────────────────────────── */
:is(.module--hero, [data-module="hero"]) { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
:is(.module--hero, [data-module="hero"]) h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.06; letter-spacing: -.02em; max-width: 18ch; }
:is(.module--hero, [data-module="hero"]) .lede, .hero-sub { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.crumbs { margin-bottom: 1.75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.crumbs li { font-size: var(--nav-size); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: var(--muted); }
.crumbs a { color: var(--body); text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--line-strong); }
.crumbs a:hover { color: var(--emerald); }
.crumbs [aria-current="page"] { color: var(--text); }

/* ── 7. problem ───────────────────────────────────────────────── */
:is(.module--problem, [data-module="problem"]) .card { border-top: 3px solid var(--danger-ink); }
.pain-index { font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); color: var(--danger-ink); }

/* ── 8. contrast: "the usual way" vs "how we do it" ───────────── */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card-bg); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1.2rem clamp(1.1rem, 2.4vw, 1.9rem); border-bottom: 1px solid var(--line); font-size: var(--body-size); line-height: 1.55; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font-family: var(--f-mono); font-weight: 500; font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; }
.compare thead th:first-child { color: var(--muted); }
.compare thead th:last-child { color: var(--emerald); }
.compare td:last-child, .compare .ours { color: var(--text); border-left: 1px solid var(--line-strong); }
.compare tbody th { font-weight: 400; color: var(--muted); }
.compare .usual::before, .compare tbody th::before { content: '✕  '; color: var(--danger-ink); }
.compare .ours::before, .compare tbody td:last-child::before { content: '✓  '; color: var(--emerald); }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.compare-col { background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.compare-col.ours { border-color: var(--emerald); }
.compare-col ul { display: grid; gap: .9rem; margin-top: 1rem; }
.compare-col li { color: var(--muted); padding-left: 1.6rem; position: relative; }
.compare-col.ours li { color: var(--text); }
.compare-col.usual li::before { content: '✕'; position: absolute; left: 0; color: var(--danger-ink); }
.compare-col.ours li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); }
@media (max-width: 700px) {
  .compare-cols { grid-template-columns: 1fr; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line); }
  .compare tbody th, .compare td { border-bottom: 0; }
  .compare td:last-child { border-left: 0; border-top: 1px dashed var(--line-strong); }
}

/* ── 9. reframe / statement ───────────────────────────────────── */
.statement-line, :is(.module--reframe, [data-module="reframe"]) blockquote {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.2; color: var(--text); max-width: 28ch; margin: .25rem 0 1.5rem;
}
:is(.module--reframe, [data-module="reframe"], .module--statement, [data-module="statement"]) p:not(.statement-line) { color: var(--body); max-width: 62ch; }

/* ── 10. deliverables ─────────────────────────────────────────── */
.deliverable-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(6, minmax(0, 1fr)); }
.deliverable-grid > * { grid-column: span 2; }
.deliverable-grid > :nth-child(-n+2) { grid-column: span 3; }
.deliverable-grid:has(> :nth-child(4):last-child) > * { grid-column: span 3; }
@media (max-width: 900px) {
  .deliverable-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deliverable-grid > *, .deliverable-grid > :nth-child(-n+2) { grid-column: span 1; }
  .deliverable-grid > :nth-child(5):last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .deliverable-grid { grid-template-columns: 1fr; } }
.deliverable .card-tag { order: -1; }
.deliverable { border-top: 3px solid var(--emerald); }
.inline-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; color: var(--body); }

/* ── 11. mechanisms (+ home approach before/after) ────────────── */
.mechanism-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 760px) { .mechanism-grid { grid-template-columns: 1fr; } }
.mechanism { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; align-items: baseline; border-left: 3px solid var(--emerald); }
.mechanism > :not(.mech-no) { grid-column: 2; }
.mech-no { grid-row: 1 / span 3; font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); color: var(--brass); }
.mechanism-deep { gap: 1rem; }
.mechanism-deep dl { display: grid; gap: 1rem; margin-top: .4rem; }
.mechanism-deep dt { font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--emerald); }
.mechanism-deep dd { color: var(--body); }
.mechanism-deep dd.example { color: var(--text); border-left: 2px solid var(--brass); padding-left: 1rem; }
/* before/after copy example */
.ba { display: grid; gap: .6rem; margin-top: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ba p { display: grid; grid-template-columns: 4.5rem 1fr; gap: .9rem; font-size: var(--small-size); }
.ba p > span:first-child { font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; padding-top: .15rem; }
.ba .before { color: var(--muted); }
.ba .before > span:first-child { color: var(--muted); }
.ba .after { color: var(--text); }
.ba .after > span:first-child { color: var(--emerald); }
.page-home :is(.module--hero) h1 { font-size: clamp(2.5rem, 4.6vw, 3.875rem); max-width: 16ch; }

/* ── 12. cta-band (mid-page strip) ────────────────────────────── */
:is(.module--cta-band, [data-module="cta-band"]) { padding-top: 0; padding-bottom: var(--module-pad); }
.cta-strip {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--card-bg); border: 1px solid var(--line-strong); border-left: 3px solid var(--emerald); border-radius: var(--radius);
}
.cta-strip p { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--text); }

/* ── 13. process timeline ─────────────────────────────────────── */
.timeline { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); position: relative; }
.timeline::before { content: ''; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: var(--line-strong); }
.timeline > li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.timeline > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: var(--label-size); font-weight: 500;
  color: var(--emerald); background: var(--bg); border: 2px solid var(--emerald);
}
:is(.module:nth-of-type(even), .module--alt, [data-alt]) .timeline > li::before { background: var(--bg-alt); }
.timeline h3 { margin-bottom: .5rem; }
.timeline p { color: var(--body); }
.timeline .step-no { display: none; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .timeline > li { padding: 0 0 2.25rem 4.25rem; min-height: 44px; }
  .timeline > li:last-child { padding-bottom: 0; }
}

/* ── 14. sectors / applies ────────────────────────────────────── */
.sector-card { border-top: 3px solid var(--brass); }
.sector-card h3 { font-size: 1.3rem; }
.sector-code { font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--brass); }

/* ── 15. engagement ───────────────────────────────────────────── */
.model-card .model-no { font-family: var(--f-mono); font-size: var(--label-size); font-weight: 500; letter-spacing: var(--label-track); color: var(--emerald); }
.model-card ul { display: grid; gap: .5rem; margin-top: .4rem; }
.model-card li { color: var(--body); padding-left: 1.4rem; position: relative; }
.model-card li::before { content: '–'; position: absolute; left: 0; color: var(--emerald); }
.badge {
  display: inline-flex; align-items: center; gap: .5rem; width: fit-content;
  font-family: var(--f-mono); font-size: var(--label-size); font-weight: 500; letter-spacing: var(--label-track); text-transform: uppercase;
  color: var(--emerald); border: 1px solid var(--emerald); border-radius: 999px; padding: .35rem .85rem;
}
.engagement-note { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--text); }

/* ── 16. faq ──────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.4rem 0;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.35; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--emerald-hi); }
.faq summary::after {
  content: '+'; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 1.25rem; color: var(--text);
}
.faq details[open] summary::after { content: '–'; border-color: var(--emerald); color: var(--emerald); }
.faq details > :not(summary) { padding: 0 0 1.5rem; max-width: 66ch; color: var(--body); }

/* ── 17. related ──────────────────────────────────────────────── */
.related-card { transition: border-color .2s; }
.related-card:hover { border-color: var(--emerald); }
.related-card h3::after { content: ' →'; color: var(--emerald); }

/* ── 18. closing-cta ──────────────────────────────────────────── */
.cta-band {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end;
  background: var(--card-bg); border: 1px solid var(--line-strong); border-top: 3px solid var(--emerald); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.75rem);
}
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-band p { margin-top: 1rem; color: var(--body); max-width: 50ch; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.big-mail { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1875rem, 2vw, 1.5rem); color: var(--text); text-decoration: underline; text-underline-offset: .22em; text-decoration-color: var(--line-strong); }
.big-mail:hover { color: var(--emerald-hi); }

/* ── 19. services grid (home + hub) ───────────────────────────── */
.service-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(6, minmax(0, 1fr)); }
.service-grid > * { grid-column: span 2; }
.service-grid > :nth-child(-n+2) { grid-column: span 3; }
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid > *, .service-grid > :nth-child(-n+2) { grid-column: span 1; }
  .service-grid > :nth-child(5):last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }
/* Six cards: 3×2 desktop, 2-up tablet, 1-up phone. The five-card span rules stay for other counts. */
.service-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid:has(> :nth-child(6):last-child) > *,
.service-grid:has(> :nth-child(6):last-child) > :nth-child(-n+2) { grid-column: auto; }
@media (max-width: 900px) {
  .service-grid:has(> :nth-child(6):last-child) { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .service-grid:has(> :nth-child(6):last-child) { grid-template-columns: 1fr; }
}

/* Sticky lead bar on small screens. The header button covers desktop. */
@media (max-width: 760px) {
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .lead-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center;
    min-height: 52px;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: var(--emerald); color: var(--on-emerald);
    font-family: var(--f-display); font-weight: 600; font-size: 1rem;
    border-top: 1px solid var(--emerald);
  }
  body.contact-in-view { padding-bottom: 0; }
  body.contact-in-view .lead-bar { display: none; }
}
@media (min-width: 761px) { .lead-bar { display: none; } }
.field-error { color: var(--danger-ink); font-size: var(--small-size); }
.field-help { color: var(--muted); font-size: var(--small-size); }
.form-status.ok { color: var(--emerald); }
.form-status.err { color: var(--danger-ink); }
.service-card { min-height: 220px; }
.service-card .ghost { display: none; }            /* outlined numerals removed */
.service-card .svc-no { font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); color: var(--brass); }
.service-card h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); }
.service-card .card-link, .service-card .text-link { margin-top: auto; align-self: flex-start; }
.service-card .card-link { color: var(--emerald); font-weight: 500; text-decoration: underline; text-underline-offset: .22em; }
.service-card .card-link::after { content: ' →'; }
.service-card .card-link:hover { color: var(--emerald-hi); }
.service-card.is-live { border-color: var(--line-strong); }

.approach-banner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
  background: var(--card-bg); border: 1px solid var(--line-strong); border-left: 3px solid var(--emerald); border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.25rem);
}
.approach-banner h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.approach-banner p { color: var(--body); margin-top: .8rem; }
.be-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.be-chips li { font-size: var(--nav-size); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: .3rem .85rem; }
@media (max-width: 760px) { .approach-banner { grid-template-columns: 1fr; } }

/* ── 20. HOME modules ─────────────────────────────────────────── */
/* hero with diagram */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; border-radius: var(--radius-lg); }
.hero-figure figcaption { margin-top: .75rem; font-size: var(--nav-size); color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-figure { max-width: 560px; } }

/* belief: 3 statements */
.belief-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: belief; }
.belief-list > li { counter-increment: belief; border-top: 2px solid var(--emerald); padding-top: 1.25rem; }
.belief-list > li::before { content: counter(belief, decimal-leading-zero); display: block; margin-bottom: .75rem; font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); color: var(--emerald); }
.belief-list h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); margin-bottom: .6rem; }
.belief-list p { color: var(--body); }
@media (max-width: 860px) { .belief-list { grid-template-columns: 1fr; } }

/* founders */
.founder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 760px) { .founder-grid { grid-template-columns: 1fr; } }
.founder { flex-direction: row; align-items: flex-start; gap: 1.25rem; }
.monogram {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--emerald);
  font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--text);
}
:is(.module--alt, [data-alt], main > .module:nth-of-type(even)) .monogram { background: var(--bg-alt); }
.founder .role { font-family: var(--f-mono); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--brass); margin-top: .3rem; }
.founder p:not(.role) { margin-top: .6rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside p:not(.eyebrow) { color: var(--body); margin-top: 1rem; }
.contact-aside .big-mail { display: inline-block; margin-top: 1.5rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; background: var(--card-bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-form .field { display: grid; gap: .45rem; }
.contact-form .field.full, .contact-form .form-foot { grid-column: 1 / -1; }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }
.contact-form label { font-size: var(--nav-size); font-weight: 500; color: var(--text); }
.contact-form :is(input, select, textarea) {
  width: 100%; min-height: 50px; padding: .7rem .9rem; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font-size: var(--body-size);
}
:is(.module--alt, [data-alt], main > .module:nth-of-type(even)) .contact-form :is(input, select, textarea) { background: var(--bg-alt); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form :is(input, select, textarea):focus { border-color: var(--emerald); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .25rem; }
.form-note { font-size: var(--small-size); color: var(--muted); }
.form-status { grid-column: 1 / -1; font-size: var(--small-size); color: var(--text); min-height: 1.65em; }
.form-status.ok { color: var(--emerald); }
.form-status.err { color: var(--danger-ink); }

/* ── 21. Footer (plain) ───────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 2rem; }
.site-footer > .wrap { display: grid; gap: 2.5rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 2.5rem; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; } }
.foot-brand p { margin-top: 1rem; color: var(--body); font-size: var(--small-size); max-width: 44ch; }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.foot-nav h2 { font-family: var(--f-mono); font-weight: 500; font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.foot-nav ul { display: grid; gap: .5rem; }
.foot-nav a { font-size: var(--small-size); color: var(--text); }
.foot-nav a:hover { color: var(--emerald-hi); text-decoration: underline; text-underline-offset: .22em; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--nav-size); color: var(--muted); }

/* ── 22. Placeholder marker ───────────────────────────────────── */
.placeholder {
  color: var(--brass) !important;   /* 7.6:1 on its tint, 8.15 on bg */
  font-family: var(--f-mono); font-size: .9em; letter-spacing: 0; text-transform: none;
  background: rgba(200,162,75,.07); outline: 1px dashed rgba(200,162,75,.6); outline-offset: 2px;
  border-radius: 4px; padding: .05em .35em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ── 23. Motion: subtle CSS-only fade-in, content visible without JS ── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  :is(.module--hero, [data-module="hero"]) :is(h1, .lede, .hero-actions, .hero-figure, .crumbs, .eyebrow) { animation: hx-rise .6s var(--ease) both; }
  :is(.module--hero, [data-module="hero"]) .lede { animation-delay: .08s; }
  :is(.module--hero, [data-module="hero"]) .hero-actions { animation-delay: .14s; }
  :is(.module--hero, [data-module="hero"]) .hero-figure { animation-delay: .2s; }
}

/* ── 24. Legacy live classes neutralised if they linger in markup ── */
#loader, .cursor-dot, .cursor-ring, .marquee, .rail, .grain, .scroll-cue, #scene, .foot-seal { display: none !important; }
.fade-up { opacity: 1 !important; transform: none !important; }

/* ── 25. Eyebrow guard: keep eyebrows emerald inside bands that restyle <p> ── */
:is(.cta-band, .approach-banner, .contact-aside, .module-head, .card) p.eyebrow { color: var(--emerald); margin-top: 0; }
@media (max-width: 480px) { .founder { flex-direction: column; } }
