/* ==========================================================================
   Flourisher design tokens
   Never hard-code a colour, space, or radius below this block — use a token.
   Every colour token is redefined for dark; nothing else changes by theme.
   ========================================================================== */

:root {
  /* Colour — light */
  --bg: #fbfaf7;
  --bg-sunken: #f4f2ec;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #1d2321;
  --muted: #5f6b66;
  --faint: #78837d;
  --line: #e3e1da;
  --line-strong: #cfccc2;
  --accent: #2f7d5d;
  --accent-hover: #276a4f;
  --accent-soft: #eaf3ee;
  --accent-contrast: #ffffff;
  --warn: #8a5d13;
  --warn-soft: #fdf4e3;
  --danger: #b0432f;

  /* Space — 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1rem;
  --t-lg: clamp(1.05rem, 1.6vw, 1.19rem);
  --t-xl: clamp(1.25rem, 2vw, 1.5rem);
  --t-2xl: clamp(1.6rem, 3vw, 2.1rem);
  --t-3xl: clamp(2.1rem, 4.4vw, 3rem);
  --t-4xl: clamp(2.4rem, 5.4vw, 3.7rem);

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --border: 1px solid var(--line);

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --maxw-prose: 62ch;
  --gutter: var(--s-5);
  --section-y: clamp(56px, 9vw, 104px);

  /* Motion */
  --ease: cubic-bezier(.2, .6, .3, 1);
  --dur: .18s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101413;
    --bg-sunken: #0b0e0d;
    --surface: #171c1a;
    --surface-raised: #1c2220;
    --text: #e8ece9;
    --muted: #a3b0aa;
    --faint: #8998921;
    --faint: #899892;
    --line: #262d2a;
    --line-strong: #38423e;
    --accent: #6fc79b;
    --accent-hover: #86d4ad;
    --accent-soft: #17251e;
    --accent-contrast: #0d1211;
    --warn: #e0b263;
    --warn-soft: #241d10;
    --danger: #f0846f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* ==========================================================================
   Base
   ========================================================================== */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--t-base)/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s-4); color: var(--accent-contrast); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font: inherit;
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-contrast); }
.btn:active { transform: translateY(1px); }

.btn-sm { padding: 8px 15px; font-size: var(--t-xs); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

.btn-invert { background: var(--bg); color: var(--text); border-color: var(--bg); }
.btn-invert:hover { background: var(--surface); border-color: var(--surface); color: var(--text); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: var(--border);
}

.header-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-3) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 650; }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name { letter-spacing: -.02em; }
.tld { color: var(--muted); font-weight: 400; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  font-size: var(--t-sm);
  color: var(--muted);
}
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) var(--gutter) var(--s-5);
    background: var(--bg);
    border-bottom: var(--border);
    font-size: var(--t-base);
  }
  .site-nav a { padding: var(--s-3) 0; border-bottom: var(--border); }
  .site-nav .btn { margin-top: var(--s-4); border-bottom: 0; }
  /* Hidden only once JS has taken control — the menu is open by default without JS */
  .site-nav[hidden] { display: none; }
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.section-sunken {
  max-width: none;
  background: var(--bg-sunken);
  border-block: var(--border);
}
.section-sunken > * { max-width: var(--maxw); margin-inline: auto; }

.section-head { max-width: var(--maxw-narrow); margin-bottom: var(--s-7); }
.section-title { font-size: var(--t-2xl); margin-bottom: var(--s-3); }
.section-sub { color: var(--muted); font-size: var(--t-lg); max-width: var(--maxw-prose); }
.section-foot {
  margin-top: var(--s-6);
  color: var(--muted);
  font-size: var(--t-sm);
  max-width: var(--maxw-prose);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 var(--s-3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--t-xs);
  font-weight: 600;
}

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); }

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.card p { color: var(--muted); font-size: var(--t-sm); }
.card-quiet { background: transparent; border-style: dashed; }

/* Icons are masked, not <img>-loaded: currentColor and CSS custom properties do
   not cross the <img> boundary, so an <img> would render the wrong accent in one
   of the two themes. The mask preserves each asset's internal opacity. */
.icon {
  display: block;
  width: 24px; height: 24px;
  background-color: var(--accent);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.card .icon { margin-bottom: var(--s-4); }

.icon-ai         { -webkit-mask-image: url(assets/icon-ai.svg);         mask-image: url(assets/icon-ai.svg); }
.icon-advisory   { -webkit-mask-image: url(assets/icon-advisory.svg);   mask-image: url(assets/icon-advisory.svg); }
.icon-platform   { -webkit-mask-image: url(assets/icon-platform.svg);   mask-image: url(assets/icon-platform.svg); }
.icon-mobile     { -webkit-mask-image: url(assets/icon-mobile.svg);     mask-image: url(assets/icon-mobile.svg); }
.icon-data       { -webkit-mask-image: url(assets/icon-data.svg);       mask-image: url(assets/icon-data.svg); }
.icon-enablement { -webkit-mask-image: url(assets/icon-enablement.svg); mask-image: url(assets/icon-enablement.svg); }

.card-link {
  margin-top: auto;
  padding-top: var(--s-4);
  color: var(--accent);
  font-size: var(--t-sm);
  font-weight: 600;
}
.card-link::after { content: " \2192"; }

.tag-list {
  list-style: none;
  margin: 0 0 var(--s-2);
  padding: 0;
  color: var(--muted);
  font-size: var(--t-sm);
}
.tag-list li { padding: 2px 0 2px var(--s-4); position: relative; }
.tag-list li::before {
  content: "";
  position: absolute; left: 0; top: .8em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  opacity: .6;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) var(--gutter) clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-7);
}
.hero h1 { font-size: var(--t-4xl); font-weight: 700; margin-bottom: var(--s-4); }
.hero .lede {
  color: var(--muted);
  font-size: var(--t-lg);
  max-width: 34rem;
  margin-bottom: var(--s-6);
}
/* Inlined rather than <img>-loaded so its two-tone palette follows the theme. */
.hero-art { justify-self: end; color: var(--text); width: 100%; }
.hero-svg { display: block; width: 100%; height: auto; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cta-note { margin-top: var(--s-4); color: var(--faint); font-size: var(--t-xs); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-art { display: none; }
}

/* ==========================================================================
   Motion
   Every animation in this block is opt-out: the prefers-reduced-motion rule
   near the top of this file zeroes all durations, and the reveal utility
   below falls back to fully visible so nothing depends on motion to be read.
   ========================================================================== */

/* Hero starfield ------------------------------------------------------- */

.starfield .star {
  opacity: .18;
  animation: twinkle var(--t, 4s) var(--d, 0s) infinite ease-in-out;
}
.motes .mote {
  opacity: .3;
  animation: drift var(--t, 10s) var(--d, 0s) infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: .10; }
  50%      { opacity: .55; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0);      opacity: .28; }
  33%      { transform: translate(7px, -9px); opacity: .62; }
  66%      { transform: translate(-6px, 5px); opacity: .38; }
}

/* The lattice breathes very slowly, so the hero is never quite static. */
.hero-svg > g > g:nth-of-type(1) { animation: breathe 19s infinite ease-in-out; }
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: .62; }
}

/* Scroll reveal -------------------------------------------------------- */

/* Applied by main.js only when motion is allowed. Without JS, or with
   reduced motion, elements are never given .reveal and stay visible. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Hover lift ----------------------------------------------------------- */

.card {
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.practice:hover, .case:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

@media (prefers-reduced-motion: reduce) {
  .starfield .star, .motes .mote, .hero-svg > g > g:nth-of-type(1) { animation: none; }
  .starfield .star { opacity: .22; }
  .motes .mote { opacity: .45; }
  .reveal { opacity: 1; transform: none; }
  .practice:hover, .case:hover { transform: none; }
}

/* ==========================================================================
   Field band
   ========================================================================== */

.field-band {
  color: var(--text);
  background: var(--bg);
  line-height: 0;
  margin-bottom: -1px; /* seal the seam against the CTA band */
}
.field-svg { display: block; width: 100%; height: clamp(96px, 10vw, 150px); opacity: .95; }

/* ==========================================================================
   Logo wall + proof strip
   ========================================================================== */

.logo-wall {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter);
  text-align: center;
}
.logo-wall-title {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--s-5);
}
.logo-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4) var(--s-7);
  color: var(--muted);
  font-size: var(--t-base);
  font-weight: 600;
  letter-spacing: -.01em;
}

.proof-strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--s-6) var(--gutter) var(--s-7);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-5);
  border-bottom: var(--border);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-n { font-size: var(--t-xl); font-weight: 700; letter-spacing: -.02em; }
.stat-l { color: var(--muted); font-size: var(--t-sm); }

/* ==========================================================================
   Case studies
   ========================================================================== */

.case-client {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.case h3 { font-size: var(--t-base); margin-bottom: var(--s-4); }
.case-dl { margin: 0; font-size: var(--t-sm); }
.case-dl dt {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: var(--s-3);
}
.case-dl dt:first-child { margin-top: 0; }
.case-dl dd { margin: 2px 0 0; color: var(--muted); }

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
  gap: var(--s-5);
}
.steps li { counter-increment: step; position: relative; padding-top: var(--s-6); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps li::after {
  content: "";
  position: absolute; top: 10px; left: 30px; right: 0;
  height: 1px; background: var(--line);
}
.steps h3 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.steps p { color: var(--muted); font-size: var(--t-sm); }

/* ==========================================================================
   Quotes + rating
   ========================================================================== */

.quote { margin: 0; }
.quote blockquote { margin: 0 0 var(--s-5); }
.quote blockquote p {
  color: var(--text);
  font-size: var(--t-sm);
  line-height: 1.6;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote-by {
  margin-top: auto;
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-xs);
  color: var(--muted);
  line-height: 1.45;
}
.quote-by strong { color: var(--text); font-size: var(--t-sm); }
.avatar {
  width: 40px; height: 40px; flex: none;
  background-color: var(--accent);
  -webkit-mask: url(assets/avatar-placeholder.svg) center/contain no-repeat;
  mask: url(assets/avatar-placeholder.svg) center/contain no-repeat;
}

.rating {
  margin-top: var(--s-6);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: var(--s-2) var(--s-3);
  font-size: var(--t-sm);
  color: var(--muted);
}
.rating-stars { color: var(--accent); letter-spacing: .1em; font-size: var(--t-base); }
.rating-score strong { font-size: var(--t-xl); color: var(--text); }

/* ==========================================================================
   Placeholder markers — see ADR 0002
   ========================================================================== */

.placeholder-flag {
  margin-top: var(--s-5);
  font-size: var(--t-xs);
  color: var(--warn);
  text-align: center;
}
.placeholder-flag::before { content: "\26A0  "; }

.pending {
  color: var(--faint);
  font-size: var(--t-sm);
  font-style: italic;
  margin-bottom: var(--s-2);
}

.site-notice {
  max-width: var(--maxw);
  margin: 0 auto var(--s-6);
  padding: var(--s-4) var(--s-5);
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--t-xs);
  line-height: 1.65;
}
.site-notice code {
  font-family: var(--font-mono);
  font-size: .95em;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.inline-form {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}
.inline-form input {
  flex: 1 1 250px;
  min-width: 0;
  padding: 11px 16px;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--t-sm);
}
.inline-form input::placeholder { color: var(--faint); }
.inline-form input:focus-visible { border-color: var(--accent); outline-offset: 1px; }

.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field input, .field textarea, .field select {
  padding: 11px 14px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--t-sm);
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: var(--t-xs); color: var(--faint); }

.form-note {
  min-height: 1.4em;
  margin: var(--s-3) 0 0;
  font-size: var(--t-sm);
  color: var(--accent);
}
.form-note.error { color: var(--danger); }

.form-micro { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--faint); }

/* ==========================================================================
   Signal + CTA band
   ========================================================================== */

.signal-inner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  text-align: center;
}
.signal-inner .eyebrow { background: transparent; padding-inline: 0; }
.signal-inner .section-sub { margin-inline: auto; }
.signal-inner .inline-form { justify-content: center; max-width: 460px; margin-inline: auto; }

/* Light: a dark slab, for emphasis at the close.
   Dark: inverting would put a pale slab at the foot of a dark page, which
   reads as a mistake — so it becomes a raised surface instead. */
.cta-band {
  background: var(--text);
  color: var(--bg);
  text-align: center;
  padding: var(--section-y) var(--gutter);
}
.cta-band h2 { font-size: var(--t-2xl); margin-bottom: var(--s-3); }
.cta-band p { opacity: .78; max-width: 44ch; margin: 0 auto var(--s-6); }

@media (prefers-color-scheme: dark) {
  .cta-band {
    background: var(--surface-raised);
    color: var(--text);
    border-top: 1px solid var(--line-strong);
  }
  .cta-band .btn-invert {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
  }
  .cta-band .btn-invert:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--accent-contrast);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: var(--border);
  padding: var(--s-8) var(--gutter) var(--s-6);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto var(--s-8);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
.footer-blurb {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: var(--t-sm);
  max-width: 30ch;
}
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
.footer-col h2 {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: var(--s-1);
}
.footer-col a { color: var(--muted); font-size: var(--t-sm); }
.footer-col a:hover { color: var(--accent); }
.footer-col .btn { margin-top: var(--s-2); }

.footer-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: var(--s-5);
  border-top: var(--border);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  justify-content: space-between; align-items: center;
  color: var(--faint);
  font-size: var(--t-xs);
}
.footer-base nav { display: flex; gap: var(--s-4); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Interior pages — page head, prose, service list, tables
   ========================================================================== */

.page-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) var(--s-5);
}
.page-head h1 { font-size: var(--t-3xl); margin-bottom: var(--s-4); }
.page-head .lede { color: var(--muted); font-size: var(--t-lg); max-width: var(--maxw-prose); }

.prose { max-width: var(--maxw-prose); }
.prose h3 { font-size: var(--t-base); margin-top: var(--s-6); }
.prose p, .prose li { color: var(--muted); font-size: var(--t-sm); }
.prose strong { color: var(--text); }

.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.service {
  border: var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--s-5);
}
.service h3 { font-size: var(--t-base); margin-bottom: var(--s-2); }
.service > p { color: var(--muted); font-size: var(--t-sm); }
.service-deliverables {
  margin: var(--s-3) 0 0;
  padding-left: var(--s-4);
  color: var(--faint);
  font-size: var(--t-xs);
}
.service-deliverables li { margin-bottom: 2px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); min-width: 520px; }
th, td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: var(--border); vertical-align: top; }
th {
  font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); font-weight: 600;
}
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; }
