/* ── Shared styles — Mitch Smith ──────────────────────────────── */

/* Self-hosted (was Google Fonts CDN) — removes the extra DNS lookup +
   connection to a third-party origin, and gives us a stable local URL
   that's actually possible to <link rel="preload">, which a dynamically-
   served Google Fonts URL is not. One variable-font file per family
   covers every weight, and the "latin" unicode range alone covers
   everything this site's English copy uses, including em dashes and
   curly quotes (U+2000-206F). font-display: optional plus the preload
   hint in each page's <head> means the web font is usually used from
   the first paint.

   But Chrome can still swap in a font that arrives just after the
   first layout (measured Nov 2026: on a slow phone the hero H2 went
   from two lines in Arial Bold to one in Fredoka, CLS 0.17). So each
   family is followed by a metric-matched fallback (the "... Fallback"
   faces below): Arial scaled by size-adjust so it takes the same width
   as the web font, so text wraps the same either way and nothing moves.
   The size-adjust values are the measured width ratio of the site's
   real text (web font / Arial, per weight band); ascent/descent
   overrides are the web font's own metrics divided by size-adjust. */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: optional;
    src: url('fonts/dm-sans-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 300 700;
    font-display: optional;
    src: url('fonts/fredoka-variable-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallbacks (see the comment above). Fredoka is only
   used bold, so one bold face covers it. */
@font-face {
    font-family: 'Fredoka Fallback';
    src: local('Arial Bold'), local('Arial-BoldMT');
    size-adjust: 93.66%;
    ascent-override: 103.57%;
    descent-override: 25.62%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'DM Sans Fallback';
    font-weight: 100 599;
    src: local('Arial'), local('ArialMT');
    size-adjust: 103.72%;
    ascent-override: 95.45%;
    descent-override: 29.89%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'DM Sans Fallback';
    font-weight: 600 1000;
    src: local('Arial Bold'), local('Arial-BoldMT');
    size-adjust: 102.29%;
    ascent-override: 96.78%;
    descent-override: 30.31%;
    line-gap-override: 0%;
}

:root {
    --bg: #EAE6DD;
    --fg: #1F1F24;
    --accent-blue: #1120CF;
    --accent-coral: #FF6B4A;  /* was --accent-pink / --accent-orange until 16 Nov 2026 */
    --subtle: #D9D3C5;
    --border: #1F1F24;
    --font: 'DM Sans', 'DM Sans Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Fredoka', 'Fredoka Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Text colours: only these. Headings and strong text use --fg (or
       --bg on dark). Body text is charcoal; one grey (muted) for labels,
       meta and captions on light surfaces, one on dark. */
    --text-body: #1F1F24;                   /* all paragraphs, leads: full charcoal (Mitch, 15 Nov 2026: 75% read too light on desktop) */
    --text-muted: rgba(31,31,36,0.68);      /* labels, meta, captions (5:1) */

    /* Text on brand-colour tiles */
    --text-on-dark: #EAE6DD;                /* charcoal tiles, CTA: full oatmeal, matching charcoal body text (15 Nov 2026) */
    --text-on-blue: #EAE6DD;
    --text-on-coral: rgba(31,31,36,0.85);   /* 4.68:1 on coral */

    /* Grain texture for solid brand surfaces (page background, colour
       blocks, media text tiles, pull quote, CTA). Use as
       background-image on a ::before at opacity 0.12, size 182px. */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");

    --link-underline: rgba(17,32,207,0.35); /* --accent-blue at 35% */

    /* Layout (values from the B2B reference page) */
    --space-section: 100px;                 /* gap between page sections */
    --container-pad: 40px;                  /* 24px at 768px and below */
    --rule: 2px solid var(--fg);            /* the site's hard border */
    --radius: 8px;                          /* grids, panels */
    --radius-sm: 4px;                       /* buttons, inputs, small frames */
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

::selection { background: var(--accent-coral); color: var(--bg); }
::-moz-selection { background: var(--accent-coral); color: var(--bg); }

/* Grain texture over the whole page — part of the "Legible Complexity"
   brand pilot. Lived only in each page's local chrome block before this
   consolidation (never in shared.css), same pattern as the pullquote
   texture fix earlier. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: var(--grain);
    background-repeat: repeat;
    background-size: 182px;
    opacity: 0.18;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

/* Browsers give form controls their own native UI font by default —
   without this, every <button>/<input> on the site silently renders in
   the OS's system font instead of Inter. */
button, input, textarea, select { font-family: inherit; }

/* Without this, browsers can still paint native platform form-control
   chrome (OS-level borders/backgrounds/insets) underneath our custom
   button styling — a known source of subtle cross-browser rendering
   inconsistencies on elements with custom borders/shadows. */
button { appearance: none; -webkit-appearance: none; -moz-appearance: none; }

/* External links (anything that navigates away from this domain) get a
   consistent, accessible blue so they're clearly identifiable as leaving
   the site — scoped via target="_blank", the established convention for
   every external link on this site (see CLAUDE.md). Internal nav/buttons/
   card links intentionally keep their own branded styling, since they're
   chrome, not content.
   THE HYPERLINK CONVENTION, for any link inside actual body/prose
   content (an article, a quote citation, a table-of-contents entry —
   anywhere a reader expects "this blue underlined text is clickable"):
   same color, same underline, same hover, regardless of internal or
   external. blog.css applies this exact treatment to every in-content
   link (post body, byline, table of contents, citations) since
   a[target="_blank"] alone can't reach internal links, which carry no
   target attribute. Any future prose content elsewhere on the site
   should match this, not invent a different link color. */
a[target="_blank"] {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}
a[target="_blank"]:hover { text-decoration-color: var(--accent-blue); opacity: 0.8; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.label {
    color: var(--fg);
    margin-bottom: 10px;
    display: block;
}

/* ── Reserve space for JS-injected sections (prevents CLS) ─────── */
/* shared.js swaps these placeholders for real content on DOMContentLoaded;
   without a reserved height the page jumps when the swap happens. */
/* Measured 18 Nov 2026 (re-measure after changing these blocks: compare each
   placeholder's height with JS blocked against the injected block's). The
   client strip has a fixed height per breakpoint and sits near the fold on
   phones, so it's exact; about-preview and the CTA are far below the fold
   and vary with text wrapping, so theirs are typical values. */
[data-inject="clients"]       { min-height: 272px; }
[data-inject="about-preview"] { min-height: 556px; }
[data-inject="cta"]           { min-height: 492px; }

@media (max-width: 960px) {
    [data-inject="clients"]       { min-height: 266px; }
    [data-inject="about-preview"] { min-height: 866px; }
    [data-inject="cta"]           { min-height: 478px; }
}
@media (max-width: 768px) {
    [data-inject="clients"]       { min-height: 188px; }
}
@media (max-width: 640px) {
    [data-inject="about-preview"] { min-height: 820px; }
    [data-inject="cta"]           { min-height: 410px; }
}

/* ── Scroll progress ─────────────────────────────────────────── */
.scroll-line {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-coral));
    box-shadow: none; /* was a pre-rebrand light-blue/pink glow */
    border-radius: 0 3px 3px 0;
    z-index: 1000;
    width: 0%;
    transition: width 0.05s linear;
}

/* ── Header ──────────────────────────────────────────────────── */
header {
    padding: 22px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(234,230,221,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--rule);
    box-shadow: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fg);
}


/* Header and footer: text wordmark in the heading font (Mitch, 15 Nov
   2026: no logo mark until the real logo arrives). Type from the
   Subheading role in the Type system block. */
.site-wordmark { width: fit-content; color: var(--accent-blue); transition: opacity 0.18s ease; }
.site-wordmark:hover { opacity: 0.8; }
.site-wordmark:active { opacity: 0.6; }
.site-wordmark:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 4px; }
/* Charcoal in the footer so "I can probably help." stays the blue focus. */
.footer-logo-block .site-wordmark { color: var(--fg); }

/* ── Nav ─────────────────────────────────────────────────────── */
nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li { display: flex; align-items: center; }

/* Scoped to the header menu — a bare `nav a` also hit the breadcrumb
   <nav>s and forced their links into uppercase menu styling. */
header nav a {
    text-decoration: none;
    color: var(--fg);
    font-weight: 600;
    font-size: 15px;
}

/* Charcoal, coral on hover, blue while pressed (Mitch, 15 Nov 2026). */
header nav a:hover { color: var(--accent-coral); }
header nav a:active { color: var(--accent-blue); }
header nav a.active { color: var(--accent-blue); font-weight: 700; }
header nav a.active:hover { color: var(--accent-blue); }

/* ── Services dropdown ───────────────────────────────────────── */
.nav-services { position: relative; }

.nav-services-btn {
    background: none; border: none; cursor: pointer;
    font-family: var(--font); font-weight: 600; font-size: 15px;
    color: var(--fg);
    display: flex; align-items: center; gap: 4px;
    padding: 0; line-height: 1;
}

.nav-services-btn:hover { color: var(--accent-coral); }
.nav-services-btn:active { color: var(--accent-blue); }
.nav-services-btn.is-active { color: var(--accent-blue); font-weight: 700; }
.nav-services-btn.is-active:hover { color: var(--accent-blue); }

.nav-services-btn .chevron {
    display: inline-block;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-services.open .nav-services-btn .chevron { transform: rotate(180deg); }

.services-dropdown {
    position: fixed;
    top: var(--header-h, 68px);
    left: var(--dropdown-left, 50%);
    transform: translateX(-50%) translateY(-6px);
    background: var(--bg);
    border-radius: 0;
    /* No side padding: link hover fills reach the borders. */
    padding: 6px 0;
    /* Hard border, not a soft shadow. No top border: the header's own
       2px bottom line is the top edge, so the two don't double up. */
    border: var(--rule);
    border-top: none;
    min-width: 220px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.18s ease;
}

.nav-services.open .services-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.services-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px; /* 20 = old 6px container + 14px link inset */
    border-radius: 0;
    text-decoration: none;
    color: var(--fg);
    font-size: 13.5px;
    font-weight: 500;
    opacity: 1;
    transition: background 0.15s;
    gap: 8px;
    letter-spacing: -0.01em;
    text-transform: none;
}

.services-dropdown a:hover { background: var(--subtle); }
.services-dropdown a.current { font-weight: 700; }

.nav-blog { padding-left: 8px; }

/* ── Hamburger button ────────────────────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
    z-index: 101;
}

.nav-hamburger .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fg);
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(0.34,1.3,0.64,1);
    transform-origin: center;
}

.nav-hamburger.open .bar-1 { transform: translateY(3.5px) rotate(45deg); }
.nav-hamburger.open .bar-2 { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Mobile nav overlay ──────────────────────────────────────── */
.mobile-nav {
    position: fixed;
    top: var(--header-h, 68px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.34,1.2,0.64,1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 36px;
    padding-bottom: 48px;
    min-height: 100%;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

/* Type: Title role (Fredoka) in the Type system block. */
.mobile-nav-links > li > a {
    display: block;
    color: var(--fg);
    text-decoration: none;
    padding: 12px 0;
}

/* Charcoal; coral while pressed; the current page blue (as on desktop).
   No dividing lines (Mitch, 15 Nov 2026). */
.mobile-nav-links > li > a:hover,
.mobile-nav-links > li > a:active { color: var(--accent-coral); }
.mobile-nav-links > li > a.active { color: var(--accent-blue); }

.mobile-services-toggle {
    width: 100%;
    color: var(--fg);
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.mobile-services-toggle:active { color: var(--accent-coral); }
.mobile-services-toggle:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 4px; }

/* Plus drawn in CSS: blue once Services is open, and its vertical bar
   turns flat so it reads as a minus (tap again to close). */
.mobile-plus {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 4px;
}
.mobile-plus::before,
.mobile-plus::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
    background: var(--fg);
    transition: transform 0.22s ease;
}
.mobile-plus::after { transform: rotate(90deg); }
.mobile-services-item.open .mobile-plus::before,
.mobile-services-item.open .mobile-plus::after { background: var(--accent-blue); }
.mobile-services-item.open .mobile-plus::after { transform: rotate(0deg); }

.mobile-services-sub {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}

.mobile-services-item.open .mobile-services-sub { max-height: 400px; }

/* Type: Subheading role (Fredoka). Dark grey, a step below the
   charcoal main items, for hierarchy (Mitch, 15 Nov 2026). */
.mobile-services-sub li a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 0 10px 20px;
}

.mobile-services-sub li a:hover,
.mobile-services-sub li a:active { color: var(--accent-coral); }
.mobile-services-sub li a.current { color: var(--accent-blue); }

/* Contact: last item, same type as the rest, in coral so it stands out
   (blue while pressed). */
.mobile-nav-links > li.mobile-nav-contact > a { color: var(--accent-blue); } /* was coral: failed contrast */
.mobile-nav-links > li.mobile-nav-contact > a:active,
.mobile-nav-links > li.mobile-nav-contact > a.active { color: var(--accent-blue); }


/* Tighter section rhythm on phones (Mitch, 13 Nov 2026): 100px read
   as dead space at 393px. */
@media (max-width: 640px) {
    :root { --space-section: 64px; }
}

@media (max-width: 768px) {
    header { padding: 16px 0; }
    :root { --container-pad: 24px; }
    header nav { display: none; }
    .nav-hamburger { display: flex; }
    .clients-strip { padding: 16px 0 20px !important; margin-bottom: 0 !important; border-bottom: none !important; }
    .clients-strip-head { margin-bottom: 12px !important; }
}

/* ── Footer (v2): dark "island" shell holding light content cards ──
   Structure follows Mitch's Canva wireframe: CTA + logo stacked in a
   left column, Site/Services/Legal in a right
   column, full-width copyright pill underneath. Reuses the same dark
   navy gradient as the site-wide .cta component for consistency. */
/* .site-footer is deliberately NOT `.container` — it needs to span the
   full viewport width so the gradient below reaches both edges of the
   screen with no white gutter. `.footer-inner` (which IS `.container`)
   holds the actual 1200px-constrained content, padding, and divider,
   so nothing else about the layout changes. */
.site-footer {
    border-top: var(--rule);
    background: none;
}

.footer-inner {
    padding-top: 64px;
    padding-bottom: 64px;
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.footer-col-left, .footer-col-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-block h3 {
    color: var(--fg);
    margin-bottom: 6px;
}

.footer-cta-block h2 {
    max-width: 520px;
    color: var(--accent-blue);
    text-wrap: balance;
}

.footer-cta-block .footer-contact { margin-top: 20px; }
.footer-links-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.footer-link-block { display: flex; flex-direction: column; gap: 10px; }

.footer-link-block a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link-block a:hover { color: var(--fg); }
/* "Cookie Settings" (shared.js) is a <button>, styled as a footer link. */
.footer-link-btn {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-body);
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}
.footer-link-btn:hover { color: var(--fg); }
.footer-link-btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.footer-link-btn:active { color: var(--fg); }

/* Logo + "Connect on LinkedIn", left of the bottom bar (copyright in
   the centre, location on the right; stacked on phones). Blue and
   underlined from the global external-link rule; the underline only
   draws under the text, not the logo. */
.footer-linkedin {
    display: inline-flex;
    justify-self: start; /* clickable area hugs the content */
    align-items: center;
    gap: 8px;
}
.footer-linkedin:active { opacity: 0.6; }
.footer-linkedin:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.footer-linkedin img { display: block; width: 24px; height: 24px; }

/* Three columns so the copyright sits in the true centre whatever the
   widths of the items either side. */
.footer-bottom-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 40px;
    color: var(--text-body);
}

.footer-bottom-bar > span {
    color: var(--text-body);
}
.footer-bottom-bar > span:last-child { justify-self: end; text-align: right; }

/* Tablet: one column, left-aligned like every other section; the
   three link lists stay side by side. */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* Phone: CTA, links, logo, each a full-width row, all
   left-aligned. display: contents on the two macro columns lets order
   resequence the blocks without changing source order. Links: Services
   on the left, Site above Legal on the right. */
@media (max-width: 640px) {
    .footer-inner { padding-top: 56px; padding-bottom: 48px; }
    .footer-grid { display: flex; flex-direction: column; gap: 48px; }
    .footer-col-left, .footer-col-right { display: contents; }

    .footer-cta-block        { order: 1; }
    .footer-links-row        { order: 3; }
    .footer-logo-block       { order: 4; }

    .footer-links-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "services site" "services legal";
        gap: 32px 24px;
    }
    .footer-col-services { grid-area: services; }
    .footer-col-site     { grid-area: site; }
    .footer-col-legal    { grid-area: legal; }

    .footer-bottom-bar { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
    .footer-bottom-bar > span:last-child { text-align: left; }
}

/* Really narrow phones: verified the Site/Legal pairing stays clean
   (no clipping/cramping) all the way down to 320px — the narrowest
   width any real device still in use has — so this is a floor for
   genuinely degenerate viewports below that, not a rule that fires on
   real phones today. */
@media (max-width: 300px) {
    .footer-links-row {
        grid-template-columns: 1fr;
        grid-template-areas: "services" "site" "legal";
    }
}

/* ── Section heading (service pages) ────────────────────────── */
.section-h2 {
    margin-bottom: 28px;
    /* When a heading wraps, even out the lines instead of leaving one
       word dangling ("Experienced across / multiple sectors"). */
    text-wrap: balance;
}

/* Small kicker line directly under a .section-h2 — tightens the
   heading's own margin so the two read as one connected unit. */

/* ── Client logo marquee (all pages) ────────────────────────── */
/* margin-bottom: 0, border-width: 2px — every page that injects this
   component (home/services overview, 5 service pages)
   was pulling both in to these same values anyway (as local
   per-page overrides on 2 of them, un-fixed on the other 5), so the
   real defaults belong here, not repeated/missed per page. Spacing to
   whatever follows is each page's own section's top padding instead. */
.clients-strip {
    padding: 32px 0 64px;
    border-top: var(--rule);
    border-bottom: var(--rule);
    margin-bottom: 0;
}

/* Label and the marquee's pause/play button share one row. */
.clients-strip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
    max-width: 1200px;
    margin: 0 auto 28px;
}
.clients-strip .label {
    display: block;
    margin: 0;
}

/* Pause/play for the client marquee (WCAG 2.2.2: moving content needs a
   pause). Same round oatmeal button as .carousel-btn. Behaviour in
   _initClientMarquee (shared.js). */
.marquee-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: var(--rule);
    border-radius: 50%;
    background: var(--bg);
    color: var(--fg);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.marquee-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.marquee-toggle .icon-play,
.marquee-toggle.is-paused .icon-pause { display: none; }
.marquee-toggle.is-paused .icon-play { display: block; }
.marquee-toggle:hover  { transform: scale(1.08); }
.marquee-toggle:active { transform: scale(0.94); }
.marquee-toggle:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

/* Skip link (shared.js): off-screen until it gets keyboard focus, then
   top-left over the header. Jumps to the page's <main>. */
.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1001;
    padding: 10px 18px;
    background: var(--fg);
    color: var(--bg);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.skip-link:hover { text-decoration: underline; }
.skip-link:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
.skip-link:active { transform: scale(0.98); }
main:focus { outline: none; } /* focused only by the skip link */

.marquee-track {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
    /* Draggable/swipeable (see _initClientMarquee in shared.js).
       pan-y: vertical swipes still scroll the page on phones. */
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.marquee-track:active,
.marquee-track.is-dragging { cursor: grabbing; }

/* Client names as text, not logos (trademark/permission reasons).
   Two identical .client-set lists sit side by side; translating the
   track by -50% lands set 2 exactly where set 1 started, so the loop
   is seamless. Each name owns its trailing sparkle (see shared.js) so
   both sets are the same width. Row height (96px) matches the old
   logo row, so the strip's overall height is unchanged. */
/* Movement is driven by _initClientMarquee in shared.js (not a CSS
   animation) so it can be dragged: a constant px/s speed, so adding
   or removing names needs no retuning. */
.client-track {
    display: flex;
    width: max-content;
    will-change: transform;
}

.client-set {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Each item is a 3-row grid in column 1: big name, then two small
   lines (relationship, what they are); sparkle in column 2 level
   with the name. The name carries no margin, so its row is exactly its
   own height and the sparkle (centred in that row) stays on its centre.
   Column 1 sizes to whichever line is widest, and all lines are
   centred in it. When a small label is wider than the name, the extra
   space splits evenly either side of the name instead of piling up
   between the name and the next sparkle. */
.client-name {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    justify-items: center;
    text-align: center;
    height: 96px;
    white-space: nowrap;
}

.client-role {
    grid-column: 1;
    grid-row: 2;
    margin-top: 8px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--fg);
}

/* Relationship colour-coding (same key as the About page career list):
   Freelance blue; In-house, Agency-side and Client charcoal. (In-house
   was coral until 16 Nov 2026: coral text fails contrast on oatmeal.) */
.client-role--freelance { color: var(--accent-blue); }

.client-title {
    grid-column: 1;
    grid-row: 1;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--fg);
}

.client-desc {
    grid-column: 1;
    grid-row: 3;
    margin-top: 5px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-muted);
}

/* Coral four-point sparkle between names — same motif as the hero
   illustrations' sparkles, small enough to read as punctuation. */
.client-sep {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 20px;
    height: 20px;
    margin: 0 40px;
    fill: var(--accent-coral);
    flex-shrink: 0;
}

/* Mobile: names keep scrolling (text has no need for the old
   one-logo crossfade) — smaller type, narrower edge fade. Must sit
   after the base .client-* rules above to win the cascade. */
@media (max-width: 768px) {
    .marquee-track {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    }
    .client-title { font-size: 26px; }
    .client-role { margin-top: 6px; font-size: 11px; }
    .client-desc { margin-top: 4px; font-size: 11px; }
    .client-sep { width: 14px; height: 14px; margin: 0 24px; }
}

/* ── Service page: breadcrumb (optional) ────────────────────────
   Same visual treatment as blog.css's .post-breadcrumb (font-size,
   weight, colour) — one breadcrumb style sitewide. Unlike that one,
   padding-top here is deliberately just "clear the fixed header plus
   a small gap" (~81px header + 31px desktop, ~62px + 22px mobile),
   not the full ~180px/84px a page-opening hero needs — a slim nav
   trail should sit close under the header, not float halfway down
   the empty space meant for a big heading. Whatever page adds this
   also needs its own .svc-hero padding-top shrunk since .svc-hero is
   no longer the first element (see ai-search-geo-aeo's own <style>
   block for the pattern to copy). */
.svc-breadcrumb {
    padding-top: 112px;
    color: var(--fg);
}
/* Charcoal like the menu: coral on hover, blue while pressed. */
.svc-breadcrumb a { color: var(--fg); text-decoration: none; }
.svc-breadcrumb a:hover { color: var(--accent-coral); }
.svc-breadcrumb a:active { color: var(--accent-blue); }
.svc-breadcrumb .svc-breadcrumb-sep { margin: 0 8px; }
.svc-breadcrumb [aria-current] { color: var(--fg); }
/* Phones: breadcrumb tucked just under the fixed 62px header. */
@media (max-width: 640px) {
    .svc-breadcrumb { padding-top: 72px; }
}

/* ── Service page: hero ──────────────────────────────────────── */
/* Fixed-width image column (not a fraction) — every hero using this
   component should render its image at the exact same size regardless
   of how long that page's heading/description happens to be, rather
   than the image shrinking or growing with the text column. */
.svc-hero {
    /* Hero with no breadcrumb above it (the homepage): same top as a
       service page's hero, i.e. breadcrumb top padding 112px + its
       22.5px line + the 32px gap, so the image and the client strip
       sit at the same height on every page (Mitch, 15 Nov 2026). */
    padding-top: calc(112px + 22.5px + 32px);
    padding-bottom: 64px;
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: center;
}

/* Narrower image column in the tablet-ish band just above the
   single-column collapse — at a fixed 480px, the text column gets
   squeezed hard enough here that long single-line headings (e.g. the
   homepage's "Mitch Smith Digital") start wrapping onto an extra
   line. */
@media (max-width: 1200px) and (min-width: 961px) {
    .svc-hero { grid-template-columns: 1fr 340px; }
}

/* Breadcrumb-style small H1: the literal, keyword-focused page title,
   sits above the big styled H2. Reuses the site-wide .label eyebrow
   style so it matches the "small caps label above a heading" pattern
   already used throughout the site (Challenge/Philosophy sections etc). */
.svc-hero h1.label, .hero h1.label, .blog-index-hero h1.label {
    margin-bottom: 14px;
}

/* ── Simple page hero (.hero, not .svc-hero) ─────────────────────
   Used by About and the user sitemap; kept here so a future change
   only has to happen once. */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 64px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@media (max-width: 960px) {
    .hero { padding-top: 130px; padding-bottom: 340px; }
}

@media (max-width: 640px) {
    .hero { padding-top: 40px; padding-bottom: 28px; }
}

.svc-hero h2 {
    margin-bottom: 28px;
}

/* Reusable line-break control for service page H2s: wrap a phrase in
   .h1-line spans in the markup to force a specific break point without
   inserting a literal line break into the heading's text content (keeps
   the underlying string as one continuous, semantic phrase). No effect
   on pages that don't use it. Scoped to the 2-column desktop layout,
   where the narrower heading column can wrap differently than mobile. */
@media (min-width: 961px) {
    .svc-hero h2 .h1-line { display: block; }
}

.svc-hero .hero-desc {
    color: var(--text-body);
    max-width: 520px;
}

.svc-hero .hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    align-items: center;
}

/* No forced aspect-ratio/square box: these are tightly cropped,
   transparent illustrations at varying natural proportions (portrait,
   near-square, etc.), not photos needing a fixed frame. max-width:100%
   (not a fixed px value) so the image always respects whatever its
   actual grid column is at each breakpoint — .svc-hero's image column
   is 480px wide on desktop but only 340px in the 961-1200px tablet
   tier, and a fixed max-width here would let a wide image ignore that
   narrower column and overflow it. max-height still caps a tall
   portrait image from overpowering the hero vertically, independent
   of column width. Always set width/height attributes on the img tag
   matching its real intrinsic size, per CLAUDE.md's "img width/height
   attributes" gotcha (this exact class hit it once already). */
/* Definite box (column width, height from the width/height attributes'
   ratio, capped), so its space is reserved before the file arrives. With
   width:auto the box was 0 tall until the image loaded, and the hero text
   and client strip jumped 200px on slow phones (CLS 0.18, PageSpeed,
   18 Nov 2026). The <picture> wrapper (responsive-images.mjs) must fill
   the flex .visual-stage too, or it shrink-wraps to 0 before the image
   loads. The image stays centred at the top of its box, as before. */
.visual-stage > picture { display: block; width: 100%; }
.hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 480px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    object-position: center top;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    /* Oatmeal on blue, 7.91:1 (Mitch, 16 Nov 2026). Was white on coral,
       2.82:1, which failed PageSpeed's contrast check; black on coral
       (7.45:1) was the other option. */
    background: var(--accent-blue);
    color: var(--bg);
    /* 2px charcoal outline, matching the site's hard-border style;
       padding is 2px less on each side so the button keeps its size. */
    border: var(--rule);
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
    box-shadow: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    position: relative;
    overflow: hidden;
}

button.btn-primary { cursor: pointer; }
.btn-primary:hover  { transform: scale(1.04) translateY(-1px); box-shadow: none; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

/* Carousel arrows (prev/next), driven by _initCarousels in shared.js.
   Shown only at 640px and below, inside a [data-carousel] (the
   homepage sectors become a carousel on phones). Oatmeal circle with the
   site's hard border, centred on the carousel's side edges. */
.carousel-btn {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: var(--rule);
    border-radius: 50%;
    background: var(--bg);
    color: var(--fg);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s ease;
}
.carousel-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.carousel-btn--prev { left: 12px; }
.carousel-btn--next { right: 12px; }
.carousel-btn:not(:disabled):hover  { transform: scale(1.08); }
.carousel-btn:not(:disabled):active { transform: scale(0.94); }
.carousel-btn:focus-visible { outline: 2px solid var(--bg); outline-offset: 3px; }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 640px) {
    [data-carousel] .carousel-btn { display: flex; }
}
/* Loop copies (first/last slide cloned by shared.js) only belong in
   the phone carousel, never in the wider grid. */
@media (min-width: 641px) {
    [data-carousel-clone] { display: none !important; }
}

.visual-stage {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prose-section {
    padding-bottom: var(--space-section);
}

.prose-section p {
    color: var(--text-body);
    margin-bottom: 20px;
}

.prose-section p:last-child { margin-bottom: 0; }

/* ── Simple legal/content pages (T&Cs, Privacy, Cookies, etc.) ──
   Shared so every plain text page (no hero) uses identical spacing —
   just a container class, no per-page duplication. */
.legal-page {
    padding-top: 160px;
    padding-bottom: var(--space-section);
    max-width: 760px;
}

.legal-page h1 {
    margin-bottom: 32px;
}

.legal-page h2 {
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-page p {
    color: var(--text-body);
    margin-bottom: 20px;
}

/* Short note pages (contact thank-you, 404): big heading with a smaller
   bold line straight under it, then an optional list of links. */
.note-page h1 { margin-bottom: 8px; }
.legal-page .note-sub { color: var(--fg); margin-bottom: 32px; }
.page-links { list-style: none; margin: 0 0 20px; padding: 0; }
.page-links li + li { margin-top: 8px; }
/* Illustration above the heading on a note page (the 404 cat), and a
   centred variant where the illustration leads and the text follows. */
.note-art { display: block; width: 240px; max-width: 100%; height: auto; margin-bottom: 24px; }
/* Desktop: smaller art and less space above it, so the whole page (down
   to the Contact button) fits in a typical laptop browser window. */
@media (min-width: 641px) {
    .note-art { width: 200px; }
    .legal-page.note-centered { padding-top: 120px; }
}
.note-centered { text-align: center; }
.note-centered .note-art { margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
    .legal-page { padding-top: 110px; padding-bottom: 64px; }
    .legal-page h2 { margin-top: 32px; }
}

/* ── Contact page and form ──────────────────────────────────────
   Sits in the narrow .legal-page column. Inputs follow the site's
   hard-border style (2px charcoal, --radius-sm). Type comes from the
   Type system roles at the end of this file. */
.contact-form { margin-top: 32px; }

/* "Contact" heading with the paper plane illustration to its right. */
.contact-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.contact-head h1 { margin-bottom: 0; }
.contact-head-art { width: 180px; height: auto; flex-shrink: 0; }
@media (max-width: 640px) { .contact-head-art { width: 110px; } }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}


.form-field input,
.form-field textarea {
    width: 100%;
    border: var(--rule);
    border-radius: var(--radius-sm);
    background: var(--subtle);
    color: var(--fg);
    padding: 12px 16px;
}
.form-field textarea { resize: vertical; min-height: 160px; }
/* Hover and focus turn the border blue; focus also adds a 1px ring so
   the border reads 3px (box-shadow, so nothing moves). */
.form-field input:focus, .form-field textarea:focus { box-shadow: 0 0 0 1px var(--accent-blue); }
.form-field input:hover, .form-field input:focus,
.form-field textarea:hover, .form-field textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
}

/* Spam trap: off-screen rather than display:none, which some bots skip. */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-alert {
    margin-top: 24px;
    padding: 16px 20px;
    border: var(--rule);
    border-left: 8px solid var(--accent-coral);
    border-radius: var(--radius-sm);
    background: var(--subtle);
    color: var(--fg);
}


/* Header Contact button: a compact .btn-primary after the desktop menu.
   Hidden on phones (Mitch, 15 Nov 2026: it drew the eye from the menu
   icon; Contact is in the mobile menu, footer and every page CTA) and
   on narrow desktops, where the menu would wrap. */
header nav { margin-left: auto; }
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 28px;
}
.btn-primary.header-contact { padding: 3px 16px; }
@media (max-width: 849px) {
    .header-contact { display: none; }
}

/* ── Service page: cards grid ───────────────────────────────── */
.services-grid { padding-bottom: var(--space-section); }

/* Arrow-style text link inside tiles ("View Local SEO"). */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fg);
    text-decoration: none;
    margin-top: 8px;
    transition: opacity 0.2s ease;
}

.card-link:hover { opacity: 0.6; }

/* ── Service page: media grid (alternating image/text tiles) ───
   Flush 2-col grid, same gap-reveals-background border technique as
   .color-blocks-grid below — replaces the old 4-separate-.grid-row
   layout, where each "row" was really its own independent 2-col grid
   with a 20px gap AND margin-bottom between rows, on top of each
   individual .card already having its own 2px border. That stacked
   three different kinds of spacing (row gap, row margin, per-card
   border) into what was supposed to read as one grid, which is why it
   looked like loose padded boxes rather than a grid. Text tiles are
   charcoal-only (not the multi-colour palette) on purpose — this
   section sits above .color-blocks-grid on every service page, and
   two different grids back to back read better when only one of them
   is doing the multi-colour mosaic thing. */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--fg);
    border: var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.media-tile-img {
    aspect-ratio: 1 / 1;
    /* Stops the grid's default row-stretch from forcing the image
       taller than its aspect-ratio whenever its text sibling needs
       more vertical space than the image's own natural square. */
    align-self: start;
}
.media-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Transparent cartoon illustrations in a media tile: plain charcoal
   behind (no grain texture), scaled to fit with breathing room
   instead of cropped like a photo. */
.media-tile-img.tile-illustration {
    background: var(--fg);
    padding: 12%;
}
.media-tile-img.tile-illustration img { object-fit: contain; }
.media-tile-text {
    position: relative;
    background: var(--fg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 64px;
    min-width: 0;
}
/* Same grain texture as .color-block — ties the two tile systems
   together as one material, even though this one stays charcoal. */
.media-tile-text::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--grain);
    background-repeat: repeat;
    background-size: 182px;
    opacity: 0.12;
}
.media-tile-text h3, .media-tile-text p { position: relative; z-index: 1; }
.media-tile-text h3 {
    color: var(--bg);
    margin-bottom: 16px;
    overflow-wrap: break-word;
}
.media-tile-text p {
    color: var(--text-on-dark);
    margin: 0;
    max-width: 420px;
}
.media-tile-text .card-link {
    position: relative;
    z-index: 1;
    color: var(--bg);
}
.media-tile-text .card-link:hover { opacity: 0.6; }
/* A button instead of the text link (homepage pillars): sits under the
   copy at its natural width; oatmeal focus ring, as blue vanishes on
   charcoal. */
.media-tile-text .btn-primary {
    align-self: flex-start;
    margin-top: 24px;
    z-index: 1;
    /* Same width for every tile's button, sized to the longest label
       ("View Local SEO", 177px): short labels centre in it. A longer
       label simply grows its button, so raise this if one is added. */
    min-width: 11.25em;
    justify-content: center;
}
.media-tile-text .btn-primary:focus-visible { outline-color: var(--bg); }
/* Optional: a tile heading can itself be the link (hub page), so the
   whole title is a target rather than only the small text link. */
/* Source order is always image, then its text (IT IT IT…), so the
   one-column layout below 860px pairs each picture with its own text
   (and screen readers get the same order). The desktop zigzag comes
   from here instead: every second pair puts its image in column 2 and
   its text in column 1; `dense` lets that text fill the gap to its
   left on the same row. */
@media (min-width: 861px) {
    .media-grid { grid-auto-flow: row dense; }
    .media-grid > :nth-child(4n+3) { grid-column: 2; }
    .media-grid > :nth-child(4n+4) { grid-column: 1; }
}
@media (max-width: 860px) {
    .media-grid { grid-template-columns: 1fr; }
    .media-tile-text { padding: 40px 28px; }
    /* Full-width squares were 341px tall on a phone and 716px on a
       portrait tablet: shorter, capped bands instead. Pictures scale
       to fit rather than crop, so nothing is cut off (the AI logos
       grid runs edge to edge, on the same charcoal as the tile). */
    .media-tile-img { width: 100%; aspect-ratio: 4 / 3; max-height: 340px; }
    .media-tile-img img { object-fit: contain; }
    .media-tile-img.tile-illustration { padding: 28px 15%; }
    /* One column: each image + text pair becomes its own card with a
       gap between cards, so a picture can't be read as belonging to
       the text above it. The grid stops being the box; each tile
       carries its half of the border and corners instead. */
    .media-grid {
        gap: 0;
        background: none;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }
    .media-tile-img {
        background: var(--fg);
        border: var(--rule);
        border-bottom: 0;
        border-radius: var(--radius) var(--radius) 0 0;
        overflow: hidden;
    }
    .media-tile-text {
        border: var(--rule);
        border-top: 0;
        border-radius: 0 0 var(--radius) var(--radius);
        overflow: hidden;
    }
    .media-tile-text:not(:last-child) { margin-bottom: 20px; }
}

/* ── Flat colour-block grid (brutalist bento) ───────────────────
   Shared across service pages for "feature list as brand-colour
   tiles" sections. Dividers come from the grid `gap` revealing the
   container's own --fg background underneath — not per-cell
   borders — so there is no nth-child border-collapse math to keep
   in sync with column count or item count, and nothing to leak
   across the mobile single-column breakpoint (see docs/gotchas.md,
   :last-child leaking). 3 columns by default; add .cols-2 for two.
   Variants: .color-block-{charcoal,blue,coral,oatmeal}. */
.color-blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--fg);
    border: var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.color-blocks-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.color-block {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
    min-width: 0;
}
/* Same grain texture already used on .cta/.pullquote-band — every
   solid-colour brand surface carries it, so these tiles read as
   part of the same system rather than flat dead colour. */
.color-block::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--grain);
    background-repeat: repeat;
    background-size: 182px;
    opacity: 0.12;
}
.color-block h3, .color-block p { position: relative; z-index: 1; }
.color-block h3 {
    overflow-wrap: break-word;
    margin-bottom: 18px;
}
.color-block p {
    margin: 0;
    max-width: 300px;
}
.color-block .card-link { margin-top: 14px; }

.color-block-charcoal { background: var(--fg); }
.color-block-charcoal h3 { color: var(--bg); }
.color-block-charcoal p { color: var(--text-on-dark); }
.color-block-charcoal .card-link { color: var(--bg); }

.color-block-blue { background: var(--accent-blue); }
.color-block-blue h3 { color: var(--bg); }
.color-block-blue p { color: var(--text-on-blue); }
.color-block-blue .card-link { color: var(--bg); }

.color-block-coral { background: var(--accent-coral); }
.color-block-coral h3 { color: var(--fg); }
.color-block-coral p { color: var(--text-on-coral); }
.color-block-coral .card-link { color: var(--fg); }

.color-block-oatmeal { background: var(--bg); }
.color-block-oatmeal h3 { color: var(--fg); }
.color-block-oatmeal p { color: var(--text-body); }
.color-block-oatmeal .card-link { color: var(--fg); }

.color-block .card-link:hover { opacity: 0.6; }

@media (max-width: 860px) {
    .color-blocks-grid, .color-blocks-grid.cols-2 { grid-template-columns: 1fr; }
    .color-block { aspect-ratio: auto; }
}

/* ── Service page: "and more" closing note ──────────────────────
   Sits under the granular-topics grid on every service template.
   Page-template-level element, not a one-off — originally built as a
   bordered dark box on seo-audits only, flattened to a plain bold
   heading + text + button (no background/border) and rolled out
   identically to all 5 templates for consistency. */
.grid-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    /* Matches the 100px rhythm every other section gap on the page
       uses (was 40px, visibly tighter than the gap above the grid). */
    margin-top: var(--space-section);
}
.grid-more-text { max-width: 640px; }
/* "And more": a Subheading over Body text (type system). */
.grid-more h3 { color: var(--fg); margin-bottom: 12px; }
.grid-more p {
    margin: 0;
    color: var(--text-body);
}
.grid-more .btn-primary { flex-shrink: 0; }

@media (max-width: 640px) {
    .grid-more { flex-direction: column; align-items: flex-start; }
}

/* ── Service page: CTA block ─────────────────────────────────── */
.cta-wrap { padding-bottom: var(--space-section); }

/* Heading only (no email address: bots would collect it). Type from
   the Title role in the Type system block. */
.cta-title {
    color: var(--bg);
    margin: 0;
}

.cta {
    background: var(--fg);
    color: var(--bg);
    padding: 96px 60px;
    border-radius: var(--radius);
    border: var(--rule);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Grain texture, faded toward the center — same technique as the
   pullquote band and buttons. */
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--grain);
    background-repeat: repeat;
    background-size: 182px;
    opacity: 0.3;
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 15%, black 65%);
    mask-image: radial-gradient(ellipse at center, transparent 15%, black 65%);
}

.cta-sub {
    color: var(--text-on-dark);
    max-width: 560px;
    margin: 20px auto 0;
}

/* Ensure label text is legible on dark CTA backgrounds */
.cta .label { color: #fff !important; }

.cta .btn-primary { margin-top: 36px; }
/* Blue focus ring would vanish on the charcoal CTA panel. */
.cta .btn-primary:focus-visible { outline-color: var(--bg); }

/* ── Service page: FAQ accordion ─────────────────────────────────
   Native <details>/<summary> — every answer exists in the DOM at
   parse time and is closed only via the `open` attribute, not a JS-
   driven display:none toggle, so crawlers/bots that don't execute JS
   still see the full question+answer text. Click-to-expand is free
   browser behaviour; the CSS below is purely cosmetic (card, icon).
   Each question is its own .card-style box (same subtle-bg/24px-radius
   language as .card elsewhere) rather than a shared list with full-
   width divider lines — avoids a page of long black hairlines. */
.faq-section { padding-bottom: var(--space-section); }

.faq-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.faq-head .section-h2 { margin-bottom: 0; }

/* Matches .prose-section p exactly (font-size/line-height/colour) —
   this is body copy, not a kicker label, so it should read as such. */
.faq-updated {
    color: var(--text-body);
    white-space: nowrap;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

/* Cards touch (no gap) with borders overlapping, not doubling —
   each item after the first sits -2px (the border width) higher, so
   its top border is drawn exactly on top of the previous item's
   bottom border instead of stacking into a 4px line. Rounding is
   confined to the group's outer top/bottom corners only, so the
   stack still reads as one continuous shape, matching the 8px radius
   used on .media-grid/.color-blocks-grid elsewhere on this page. */
.faq-item {
    position: relative;
    background: var(--subtle);
    border: var(--rule);
    margin-top: -2px;
    overflow: hidden;
}
.faq-item:first-child { margin-top: 0; border-top-left-radius: 8px; border-top-right-radius: 8px; }
.faq-item:last-child { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
/* Outline never changes colour, open or closed — only the question
   text and +/− icon (via currentColor) go blue, further down. */

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    cursor: pointer;
    color: var(--fg);
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-item:hover .faq-question { color: var(--accent-blue); }
.faq-question:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: -4px; }

/* Plus/minus icon — two bars; the vertical one rotates 90deg onto the
   horizontal one when open, so "+" becomes "−". currentColor ties it
   to .faq-question's own colour (charcoal closed, blue open/hover). */
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    background: currentColor;
    transition: transform 0.25s cubic-bezier(0.34,1.3,0.64,1);
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 2px; height: 14px; transform: translate(-50%,-50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-question { color: var(--accent-blue); }

/* No divider between question and answer — the question's own bottom
   padding already creates the gap. Answer has no max-width — it runs
   the full width of the card, not half of it. */
.faq-answer {
    padding: 0 32px 28px;
}
.faq-answer p {
    color: var(--text-body);
    margin: 0;
}
/* Some answers run to more than one paragraph — gap between them only
   (margin:0 above still collapses a single-paragraph answer flush
   against its own padding). */
.faq-answer p + p { margin-top: 16px; }
/* Same in-content link treatment as blog.css's #post-body a — one
   convention for the whole site, internal or external. Scoped with
   :not([target="_blank"]) so a genuine external citation link (which
   gets this exact same look for free from shared.css's global
   a[target="_blank"] rule) is never fought by a same-specificity
   local colour override — see CLAUDE.md's external-link gotcha. */
.faq-answer a:not([target="_blank"]) {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 2px;
}
.faq-answer a:not([target="_blank"]):hover { text-decoration-color: var(--accent-blue); opacity: 0.8; }

@media (max-width: 640px) {
    .faq-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .faq-updated { white-space: normal; }
    .faq-question { padding: 22px 20px; gap: 16px; }
    .faq-answer { padding: 0 20px 22px; }
}

/* Dark variant (.faq-list.faq-list--dark): the same expandable list
   with charcoal question bars and oatmeal text, e.g. a post's Sources.
   The opened answer stays on the light fill, so links inside keep the
   site's one blue link style (blue on charcoal fails contrast). Hover,
   focus and press turn the title and +/- coral (5.8:1 on charcoal);
   titles only, never body text (Mitch, 20 Nov 2026). */
.faq-list--dark .faq-question { background: var(--fg); color: var(--text-on-dark); }
.faq-list--dark .faq-item[open] .faq-question { color: var(--text-on-dark); }
.faq-list--dark .faq-item:hover .faq-question,
.faq-list--dark .faq-question:focus-visible,
.faq-list--dark .faq-question:active { color: var(--accent-coral); }
.faq-list--dark .faq-question:focus-visible { outline: 2px solid var(--bg); outline-offset: -6px; }
.faq-list--dark .faq-item[open] .faq-answer { padding-top: 24px; }

/* Closing line, bottom-left under the cards — plain body copy (matches
   .prose-section p) with the contact ask inline, not a separate button
   or arrow link. The page already has a full CTA band right above this
   section and the footer's own contact block right below, so a third
   standalone button/link here would be redundant. */
.faq-closing {
    margin-top: 32px;
    color: var(--text-body);
}
/* Also text links on the narrow pages (legal, contact, thanks) and
   internal links in prose paragraphs (service pages link to each other
   in body text and FAQs, never in headings). */
.faq-closing a:not([target="_blank"]),
.prose-section p a:not([target="_blank"]),
.glossary-def a:not([target="_blank"]),
.glossary-more a,
.glossary-toc-topic li a,
.legal-page p a:not([target="_blank"]),
.page-links a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: var(--link-underline);
    text-underline-offset: 2px;
}
.faq-closing a:not([target="_blank"]):hover,
.prose-section p a:not([target="_blank"]):hover,
.glossary-def a:not([target="_blank"]):hover,
.glossary-more a:hover,
.glossary-toc-topic li a:hover,
.legal-page p a:not([target="_blank"]):hover,
.page-links a:hover { text-decoration-color: var(--accent-blue); opacity: 0.8; }
/* Internal links on charcoal tiles: coral, 5.82:1 on charcoal, and
   underlined (coral and the oatmeal tile text are too close to tell
   apart by colour alone). Never on blue tiles (coral is 3.5:1 there) or
   coral tiles. Mitch, 16 Nov 2026. */
.media-tile-text p a:not([target="_blank"]),
.color-block-charcoal p a:not([target="_blank"]) {
    color: var(--accent-coral);
    text-decoration: underline;
    text-decoration-color: rgba(255,107,74,0.5);
    text-underline-offset: 2px;
    transition: opacity 0.2s ease;
}
.media-tile-text p a:not([target="_blank"]):hover,
.color-block-charcoal p a:not([target="_blank"]):hover { text-decoration-color: var(--accent-coral); opacity: 0.8; }
.media-tile-text p a:not([target="_blank"]):focus-visible,
.color-block-charcoal p a:not([target="_blank"]):focus-visible { outline: 2px solid var(--bg); outline-offset: 2px; border-radius: 2px; }
.media-tile-text p a:not([target="_blank"]):active,
.color-block-charcoal p a:not([target="_blank"]):active { opacity: 0.7; }

.section-title {
    text-wrap: balance;
}


/* ── Hero below a breadcrumb ─────────────────────────────────────
   The breadcrumb already clears the fixed header, so a hero that
   follows it only needs a small gap (base .svc-hero assumes it's the
   first thing on the page). Was copied into every service page and
   About as a local <style> block. Two classes, so it beats the
   single-class .svc-hero rules in the responsive block below. */
.svc-breadcrumb + .svc-hero { padding-top: 32px; }
/* Text-only hero (no .visual-stage, e.g. Recommendations): one column,
   so the heading isn't squeezed beside an empty image column. */
.svc-hero:not(:has(.visual-stage)) { grid-template-columns: 1fr; }
.svc-hero:not(:has(.visual-stage)) h2 { max-width: 24ch; text-wrap: balance; }
@media (max-width: 960px) {
    .svc-breadcrumb + .svc-hero { padding-top: 20px; }
}

/* Pin the hero image to the top of the row instead of re-centring it
   whenever the text column wraps to a different number of lines, so
   every hero image sits at the same height. (About's photo frame is
   deliberately left centred.) */
.visual-stage:has(.hero-img) { align-self: start; }
@media (max-width: 960px) {
    .visual-stage:has(.hero-img) { height: auto; overflow: visible; }
}

/* ── Service page: responsive ────────────────────────────────── */
@media (max-width: 960px) {
    .svc-hero { grid-template-columns: 1fr; padding-top: 84px; gap: 16px; }
    /* height:auto, not a fixed height + overflow:hidden, which crops
       the illustrations; the image's own max-width/height keeps the
       mobile hero a sensible size. */
    .visual-stage { height: auto; }
    .hero-img { max-width: 280px; max-height: 280px; margin: 0 auto; object-position: center top; }

    /* Visually reorder the hero to label → image → heading → copy → CTA on
       mobile (per Mitch: image works better above the heading, but the
       heading/copy/button must still land above the fold). `display:contents`
       dissolves the desktop text wrapper so its children become direct grid
       items alongside .visual-stage, letting `order` interleave them without
       touching HTML/DOM order — screen readers and crawlers still see the
       original label → h1 → copy → button → image reading order. */
    .svc-hero > div:not(.visual-stage) { display: contents; }
    .svc-hero .label { order: 1; }
    .svc-hero .visual-stage { order: 2; }
    .svc-hero h2 { order: 3; margin-bottom: 0; }
    .svc-hero .hero-desc { order: 4; }
    .svc-hero .hero-actions { order: 5; margin-top: 0; }

}

@media (max-width: 640px) {
    /* Phones: tighter hero top (label straight under the breadcrumb,
       image straight under the label) and a smaller illustration
       (280px on tablets), so the heading, copy and button sit higher. */
    .svc-breadcrumb + .svc-hero { padding-top: 8px; }
    .svc-hero h1.label { margin-bottom: 0; }
    .hero-img { max-width: 200px; max-height: 200px; }
    .cta { padding: 60px 28px; }
}

/* ── About preview (shared inject) ──────────────────────────────── */
.about-preview-section {
    position: relative;
    /* Matches the 100px rhythm every other major section-to-section
       gap on the site uses (pullquote-band, prose-section,
       services-grid, cta-wrap) — was 72px, visibly tighter than its
       neighbours. */
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}
/* Full-bleed divider, same technique as .mindset::before on the About
   page — .about-preview-section is also `.container` itself (needed
   for its own grid), so a plain border-top here would be clipped to
   the 1200px content width instead of spanning the full viewport.
   2px to match the weight used for every other visible full-bleed
   divider on the site (header, footer, .clients-strip, .pullquote-band). */
.about-preview-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    border-top: var(--rule);
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
    align-items: center;
}

.about-preview-portrait {
    position: relative;
}

.about-preview-frame {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius-sm);
    border: var(--rule);
    overflow: hidden;
    box-shadow: none;
    z-index: 1;
}

.about-preview-frame img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.about-preview-text h2 {
    color: var(--accent-blue);
    margin-top: 8px;
    margin-bottom: 24px;
    max-width: 540px;
}
.about-preview-text p {
    color: var(--text-body);
    max-width: 560px;
    margin-bottom: 16px;
}
.about-preview-text p:last-of-type { margin-bottom: 0; }

/* Underlined so it reads as a link (it's a plain text link, not a
   button). */
.about-preview-link {
    display: inline-block;
    color: var(--fg);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    margin-top: 28px;
    transition: opacity 0.2s ease;
}
.about-preview-link:hover  { opacity: 0.6; }
.about-preview-link:active { opacity: 0.8; }
.about-preview-link:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 4px; border-radius: 2px; }

/* One column: the photo moves up between the name and the bio
   (About, Mitch Smith, photo, paragraphs, link). The text column
   dissolves (display: contents) so its children and the photo can be
   ordered together; same technique as .svc-hero. */
@media (max-width: 960px) {
    .about-preview-grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;               /* spacing comes from each item's margins */
    }
    .about-preview-text { display: contents; }
    .about-preview-text .label { order: 1; }
    .about-preview-text h2 { order: 2; }
    .about-preview-portrait {
        order: 3;
        width: 100%;
        max-width: 360px;
        margin-bottom: 28px;
    }
    .about-preview-text p { order: 4; }
    .about-preview-link { order: 5; }
}

@media (max-width: 640px) {
    .about-preview-portrait { max-width: 280px; }
    .about-preview-section { padding-top: 48px; padding-bottom: 72px; }
}

/* ── Pull Quote Band (used on multiple pages) ──────────────────── */
.pullquote-band {
    /* Flat charcoal, no gradient (the brand's "hard borders, not soft
       blur" rule). */
    /* No border-top/bottom here — same colour as this element's own
       fill, so declaring one does nothing visible on its own, but it
       silently doubles the line weight whenever a preceding sibling
       (e.g. .clients-strip) contributes its own border-bottom at the
       same seam with zero gap between them (two stacked 2px borders,
       not a collapsed one — same bug class as the FAQ card dividers).
       Pages that deliberately butt this band against another full-
       bleed band (no margin-bottom) re-declare real borders locally,
       e.g. index.html, where they're genuinely the separator between
       two differently-coloured bands. */
    background: var(--fg);
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
    /* padding is internal (spaces the quote's own content); it does
       nothing to separate this band from whatever comes next, since the
       next element's own top padding is what used to provide that gap —
       true only by accident, for whichever section happened to follow a
       pullquote before. Default to actually leaving space after the band
       so a pullquote dropped before plain content never sits flush
       against it. Pages that deliberately stack this band directly
       against another full-bleed band (the border between them is the
       intended separator) override this back to 0 locally. */
    margin-bottom: var(--space-section);
    overflow: hidden;
    position: relative;
}
/* Grain texture, faded toward the center so it reads as a subtle
   vignette rather than an even noise wash — same technique used on
   .cta. This lived only in each page's local chrome block (never in
   shared.css), which is exactly how it went missing on the blog
   pages: nothing broke visibly enough to notice until compared
   directly against the homepage. Fixed at the root here so no future
   page can omit it by forgetting to paste it in. */
.pullquote-band::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: var(--grain);
    background-repeat: repeat;
    background-size: 182px;
    opacity: 0.3;
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 15%, black 65%);
    mask-image: radial-gradient(ellipse at center, transparent 15%, black 65%);
}
.pullquote-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 64px;
    align-items: center;
}
.pullquote-content { position: relative; }
/* Attribution under a quote from someone else (Recommendations page);
   such bands never carry a photo, so the quote takes the full width. */
.pullquote-cite { position: relative; z-index: 1; margin: 20px 0 0; color: var(--text-on-dark); }
.pullquote-inner:not(:has(.pullquote-photo)) { grid-template-columns: 1fr; }
/* ...and a tighter band: half the section padding, so the content
   it introduces (e.g. the recommendation cards) starts sooner. */
.pullquote-band:not(:has(.pullquote-photo)) { padding-top: 48px; padding-bottom: 48px; }
@media (max-width: 640px) {
    .pullquote-band:not(:has(.pullquote-photo)) { padding-top: 40px; padding-bottom: 40px; }
}
/* Someone else's quote reads as supporting evidence, not a statement:
   smaller than Mitch's own (max 34px rather than 48px); phones keep 20px. */
@media (min-width: 641px) {
    .pullquote-inner:not(:has(.pullquote-photo)) .pullquote-text { font-size: clamp(26px, 2.4vw, 34px); }
}
.pullquote-mark {
    font-family: 'Georgia', serif;
    font-size: 220px;
    line-height: 0.7;
    color: var(--accent-coral);
    opacity: 0.25;
    position: absolute;
    top: -20px;
    left: -16px;
    pointer-events: none;
    user-select: none;
}
.pullquote-text {
    text-wrap: balance;   /* no single word left on the last line */
    font-size: clamp(26px, 3.2vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--bg);
    margin: 0;
    position: relative;
    z-index: 1;
}
.pullquote-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: var(--rule);
    object-fit: cover;
    object-position: center top;
    box-shadow: none;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    /* Photo sits left of the quote (not stacked under it); it comes
       after the quote in the DOM, so `order` moves it visually only. */
    .pullquote-inner {
        grid-template-columns: 72px 1fr;
        gap: 20px;
        padding-left: var(--container-pad);
        padding-right: var(--container-pad);
    }
    .pullquote-photo { order: -1; width: 72px; height: 72px; }
    /* Phones: fill each line instead of balancing (a long word like
       "knowledgeable" made balance shorten every line, leaving a gap on
       the right); pretty still avoids a lone last word. */
    .pullquote-text { font-size: 20px; text-wrap: pretty; }
    .pullquote-mark { font-size: 100px; top: -28px; left: -6px; }
}

/* ── Cookie consent banner ─────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--fg);
    border-top: var(--rule);
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    margin: 0;
    max-width: 640px;
    color: var(--text-on-dark);
}
.cookie-banner-text a { color: var(--bg); text-decoration: underline; }

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner-actions button {
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

/* Blue with oatmeal text like every primary button (7.91:1); Mitch, 16 Nov
   2026. Not green: a "go" colour on Accept is the kind of nudge the ICO
   warns about. Reject stays the same size, side by side. */
.cookie-banner-accept {
    background: var(--accent-blue);
    color: var(--bg);
    border: 2px solid var(--accent-blue);
}
.cookie-banner-accept:hover { transform: scale(1.04) translateY(-1px); }

.cookie-banner-reject {
    background: transparent;
    color: var(--bg);
    border: 2px solid var(--bg);
}
.cookie-banner-reject:hover { background: var(--bg); color: var(--fg); }

@media (max-width: 640px) {
    .cookie-banner { padding: 20px 24px; flex-direction: column; align-items: stretch; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions button { flex: 1; }
}

/* ══ Content components (promoted from the About page) ═══════════════
   Built from the service-page language: 2px charcoal rules, 8px outer
   radius, --subtle fill. Documented in docs/design-system.md. */

/* ── Section spacing ─────────────────────────────────────────────
   .page-section: a generic content section on the 100px rhythm (same as
   .prose-section / .services-grid, at every width).
   .after-strip: the first section after the client strip, which has no
   pull quote above it to provide the gap. */
.page-section { padding-bottom: var(--space-section); }
.after-strip { padding-top: var(--space-section); }

/* Full-bleed 2px divider along the top of a .container section (same
   technique as .about-preview-section::before), e.g. where a page has
   no client strip to separate the hero from the content. */
.rule-top { position: relative; }
.rule-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    border-top: var(--rule);
}

/* A button (or buttons) closing a section, e.g. "View Recommendations"
   at the end of the About page. */
.section-actions { margin-top: 32px; }

/* One short line under a grid that closes the section, e.g. "Where it
   started: ..." under Prior experience. */
.section-note { margin-top: 24px; color: var(--text-body); }

/* Intro paragraph between a .section-h2 and the component below it. */
.section-intro {
    color: var(--text-body);
    margin-bottom: 40px;
}

/* Screen-reader-only text. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ── Colour-block kicker ─────────────────────────────────────────
   Small uppercase line (e.g. dates) above a .color-block's h3. Needs the
   same stacking as the h3/p to clear the grain ::before layer. */
.block-kicker {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 14px;
}
.color-block-charcoal .block-kicker { color: var(--text-on-dark); }
.color-block-blue .block-kicker { color: var(--text-on-dark); }
.color-block-coral .block-kicker { color: var(--text-muted); }

/* ── Neutral blocks: .color-blocks-grid.neutral-blocks ───────────
   Variant of the colour-block grid with plain --subtle tiles and dark
   text, for brief supporting content: compact cards (dates, title,
   one line), not square tiles, at every width: content-height rows,
   top aligned, so a row is only as tall as its tallest card. Used for
   Prior experience and Education on the About page. Optional
   .block-meta row: dates left, place right. */
.neutral-blocks .color-block {
    background: var(--subtle);
    aspect-ratio: auto;
    justify-content: flex-start;
    padding: 24px;
}
.neutral-blocks .block-kicker { margin-bottom: 8px; }
.block-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.block-meta .block-kicker { margin: 0; }
.neutral-blocks .color-block h3 {
    margin-bottom: 6px;
    color: var(--fg);
}
.neutral-blocks .color-block p {
    max-width: none;
    color: var(--text-body);
}
.neutral-blocks .block-kicker { color: var(--text-muted); }
/* ── Career list: ol.role-list > li.role ─────────────────────────
   Stacked cards with overlapping 2px borders, same build as .faq-list.
   Columns: dates + .role-tag | title + company | kicker + description.
   .role-tag colour follows the client strip's key: in-house coral,
   freelance blue, agency-side charcoal. */
.role-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.role {
    display: grid;
    grid-template-columns: 190px 1fr 1.35fr;
    gap: 32px;
    align-items: start;
    padding: 32px;
    background: var(--subtle);
    border: var(--rule);
    margin-top: -2px;
}
/* Same stacked layout at every width, so these first/last rules can't
   leak into a different layout. */
.role:first-child { margin-top: 0; border-radius: var(--radius) var(--radius) 0 0; }
.role:last-child { border-radius: 0 0 var(--radius) var(--radius); }

.role-dates {
    display: block;
    color: var(--text-muted);
}
.role-tag {
    display: block;
    margin-top: 8px;
    color: var(--fg);
}
.role-tag--freelance { color: var(--accent-blue); }

/* Promotion shown as two lines: current title, then the previous
   title in grey (the colour change implies the step up; no arrow). */
.role-progression > span:not(.visually-hidden) { display: block; }
.role-progression .role-prev { color: var(--text-muted); }

.role-kicker {
    margin: 0 0 6px;
    color: var(--fg);
}
.role h3 {
    margin: 0;
}
.role-company {
    margin: 6px 0 0;
    color: var(--text-body);
}
.role-desc {
    margin: 0;
    color: var(--text-body);
}
@media (max-width: 860px) {
    .role { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
}

/* Collapsible variant (ol.role-list[data-collapsible], About page):
   on stacked layouts each card shows dates, tag, title and company,
   and a tap opens the description (kicker hidden). A full-card
   .role-toggle button (shared.js) does the tapping; it and the
   plus/minus icon are hidden on desktop, where everything shows. */
.role-toggle { display: none; }
@media (max-width: 860px) {
    /* Rows: dates (+ the toggle icon, top right) / title, full width /
       company left, tag right / description when open. The two inner
       wrapper divs dissolve so their children sit on one grid. */
    .role-list[data-collapsible] .role {
        position: relative;
        grid-template-columns: 1fr auto;
        grid-template-areas: "dates ." "title title" "company tag" "body body";
        gap: 0 16px;
        align-items: center;
    }
    .role-list[data-collapsible] .role > div:not(.role-body) { display: contents; }
    .role-list[data-collapsible] .role-dates { grid-area: dates; }
    .role-list[data-collapsible] .role h3 { grid-area: title; margin-top: 12px; }
    .role-list[data-collapsible] .role-company { grid-area: company; }
    .role-list[data-collapsible] .role-tag { grid-area: tag; margin-top: 6px; text-align: right; }
    .role-list[data-collapsible] .role-body { grid-area: body; margin-top: 14px; }
    .role-list[data-collapsible] .role-kicker,
    .role-list[data-collapsible] .role-body { display: none; }
    .role-list[data-collapsible] .role.is-open .role-body { display: block; }
    .role-toggle {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        padding: 0;
        background: none;
        border: 0;
        border-radius: inherit;
        cursor: pointer;
        color: var(--fg);
    }
    .role-toggle::before,
    .role-toggle::after {
        content: '';
        position: absolute;
        top: 34px;
        right: 24px;
        width: 16px;
        height: 2px;
        background: currentColor;
        transition: transform 0.25s ease;
    }
    .role-toggle::after { transform: rotate(90deg); }
    .role-toggle[aria-expanded="true"]::after { transform: rotate(0deg); }
    .role-toggle:hover { color: var(--accent-blue); }
    .role-toggle:active::before,
    .role-toggle:active::after { opacity: 0.6; }
    .role-toggle:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: -3px; }
}

/* ── Recommendation cards: .quote-grid > .quote-col > .quote-card ──
   Two columns, newest first, read left to right (cards alternate between
   the columns). On mobile the columns dissolve (display: contents) and
   each card's inline order restores straight date order.
   Card: .rec-context band (Mitch's note on the relationship, with a
   .rec-type label), .rec-head (.rec-name linked to LinkedIn,
   .rec-headline, .rec-meta), then the verbatim blockquote. Initials,
   never photos.
   Colour: .rec-{charcoal,coral,blue} cycles in date order (mobile);
   .rec-d-{...} re-picks colours on desktop so touching cards never
   match. The name colour deliberately beats the global external-link
   blue. */
.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.quote-col { display: flex; flex-direction: column; gap: 24px; }
.quote-card {
    margin: 0;
    padding: 28px 32px 32px;
    background: var(--subtle);
    border: var(--rule);
    border-radius: var(--radius);
}
.rec-context {
    margin: -28px -32px 22px;
    padding: 16px 32px 18px;
    background: var(--fg);
    border-bottom: var(--rule);
    border-radius: 6px 6px 0 0;
    color: var(--text-on-dark);
}
.rec-type {
    display: block;
    margin-bottom: 6px;
    color: var(--bg);
}
.quote-card blockquote strong { font-weight: 700; color: var(--fg); }
.rec-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(31,31,36,0.18);
}
.rec-who { display: block; min-width: 0; }
.rec-headline,
.rec-meta {
    display: block;
}
.rec-headline { margin-top: 2px; color: var(--text-muted); }
.rec-meta { margin-top: 6px; color: var(--text-muted); }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p {
    margin: 0;
    color: var(--text-body);
}
.quote-card blockquote p + p { margin-top: 14px; }

.quote-card.rec-charcoal { --rec-colour: var(--fg); --rec-on: var(--bg); --rec-text: var(--fg); }
.quote-card.rec-coral { --rec-colour: var(--accent-coral); --rec-on: var(--fg); --rec-text: var(--fg); }
.quote-card.rec-blue { --rec-colour: var(--accent-blue); --rec-on: var(--bg); --rec-text: var(--accent-blue); }
@media (min-width: 861px) {
    .quote-card.rec-d-charcoal { --rec-colour: var(--fg); --rec-on: var(--bg); --rec-text: var(--fg); }
    .quote-card.rec-d-coral { --rec-colour: var(--accent-coral); --rec-on: var(--fg); --rec-text: var(--fg); }
    .quote-card.rec-d-blue { --rec-colour: var(--accent-blue); --rec-on: var(--bg); --rec-text: var(--accent-blue); }
}
.quote-card .rec-context { background: var(--rec-colour); color: var(--rec-on); }
.quote-card .rec-type { color: var(--rec-on); }
/* Name and role line: the card colour, except on coral cards, where
   they are charcoal (coral text fails contrast). */
.quote-card .rec-name,
.quote-card .rec-meta { color: var(--rec-text); }

/* Closing "Connect on LinkedIn" card: LinkedIn logo button left and
   label right in the band, then the profile link and a handshake,
   centred. The emoji is sized as an icon, not text. */
.linkedin-card .rec-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.linkedin-card .rec-type { margin: 0; }
.linkedin-card-logo {
    display: inline-flex;
    border-radius: var(--radius-sm);
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.linkedin-card-logo img { display: block; width: 44px; height: 44px; }
.linkedin-card-logo:hover  { transform: scale(1.06); }
.linkedin-card-logo:active { transform: scale(0.96); }
.linkedin-card-logo:focus-visible { outline: 2px solid var(--rec-on); outline-offset: 3px; }
.linkedin-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 6px;
    text-align: center;
}
.linkedin-card-emoji { font-size: 48px; line-height: 1; }

@media (max-width: 860px) {
    .quote-grid { display: flex; flex-direction: column; gap: 24px; align-items: stretch; }
    .quote-col { display: contents; }
    .quote-card { padding: 24px 22px 26px; }
    .rec-context { margin: -24px -22px 20px; padding: 14px 22px 16px; }
}

/* ── Back to top (shared.js _initBackToTop) ───────────────────────
   Round button, bottom right: blue with an oatmeal arrow like the primary
   buttons (7.91:1), so it stands out on the oatmeal page (Mitch, 16 Nov 2026).
   Fades in; hides instantly (visibility is switched, not animated). Sits
   under the header (100) and mobile menu so it never covers them. */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: var(--rule);
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--bg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top.is-visible:hover { transform: scale(1.08); }
.back-to-top.is-visible:active { transform: scale(0.94); }
.back-to-top:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
@media (max-width: 640px) {
    .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ── Glossary (/glossary/) ────────────────────────────────────────
   Page built by scripts/build-glossary.mjs from scripts/glossary.json.
   Like the blog posts: terms on the left, a 300px sticky contents box
   on the right (topics open with +/-). Below 960px the box sits above
   the terms, closed, and each topic ends with "Back to contents". */
.glossary-hero { padding-top: 180px; padding-bottom: 40px; }
.glossary-hero > * { max-width: 800px; }
.glossary-hero h1.label { margin-bottom: 14px; }
.glossary-h2 { margin-bottom: 24px; color: var(--accent-blue); }
.glossary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 64px;
    padding-top: 0;
    padding-bottom: 96px;
}
.glossary-main { grid-column: 1; grid-row: 1; min-width: 0; max-width: 800px; }
.glossary-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fg);
    cursor: pointer;
}
.glossary-top-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: var(--rule);
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--bg);
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.glossary-top-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.glossary-top:hover .glossary-top-icon { transform: translateY(-3px); }
.glossary-top:active .glossary-top-icon { transform: scale(0.94); }
.glossary-top:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 4px; border-radius: 999px; }
/* The aside sticks; inside it, the contents box (scrolls if several topics
   are open) and, on desktop, "Back to top". */
.glossary-aside {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.glossary-sidebar {
    width: 100%;
    max-height: calc(100vh - 196px);
    overflow-y: auto;
    padding: 24px;
    background: var(--subtle);
    border: var(--rule);
    border-radius: var(--radius);
    scroll-margin-top: 96px;
}
.glossary-toc-label { margin-bottom: 8px; color: var(--text-muted); }
.glossary-toc-topic { border-top: 1px solid rgba(31,31,36,0.15); }
.glossary-toc-topic:first-of-type { border-top: 0; }
.glossary-toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
    color: var(--fg);
    cursor: pointer;
    list-style: none;
}
.glossary-toc-summary::-webkit-details-marker { display: none; }
.glossary-toc-summary:hover { color: var(--accent-blue); }
.glossary-toc-summary:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.glossary-toc-summary:active { opacity: 0.8; }
.glossary-toc-topic[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
/* Overrides the site-wide nav ul / nav ul li rules (written for the header
   menu: centred, 28px gap), which would otherwise centre this list. */
.glossary-toc-topic ul { list-style: none; margin: 0; padding: 0 0 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.glossary-toc-topic li { display: block; }
.glossary-topic { padding-top: 0; padding-bottom: 40px; scroll-margin-top: 96px; }
.glossary-topic h2 { margin-bottom: 4px; color: var(--accent-blue); }
.glossary-intro { margin: 8px 0 4px; max-width: 680px; color: var(--text-body); }
.glossary-list { margin: 0; }
.glossary-entry {
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(31,31,36,0.15);
    scroll-margin-top: 96px;
}
/* The term you jumped to gets a coral bar in the left gutter (not blue
   text, which reads as a link; coral text fails contrast). No shift. */
.glossary-entry { position: relative; }
.glossary-entry:target::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: -16px;
    width: 4px;
    border-radius: 2px;
    background: var(--accent-coral);
}
.glossary-term { margin-bottom: 6px; }
/* Acronym expansion: its own line under the term, charcoal (the muted
   grey read too faint, Mitch 16 Nov 2026). */
.glossary-expansion { display: block; margin-top: 2px; color: var(--text-body); }
/* Long strings with no spaces (the UTM example) wrap rather than widen the
   page: on phones that caused sideways scrolling (Mitch, 18 Nov 2026). */
.glossary-def, .glossary-more { overflow-wrap: anywhere; }
.glossary-def { margin: 0; color: var(--text-body); }
.glossary-def code { font-size: 0.9em; overflow-wrap: break-word; } /* break at the <wbr>s first */
.glossary-more { margin: 8px 0 0; color: var(--text-body); }
@media (min-width: 961px) {
    body:has(.glossary-top) .back-to-top { display: none; } /* "Back to top" sits under the contents instead */
}
@media (max-width: 960px) {
    .glossary-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .glossary-main, .glossary-aside { grid-column: 1; grid-row: auto; }
    .glossary-aside { position: static; }
    .glossary-sidebar { max-height: none; overflow: visible; }
    .glossary-top { display: none; } /* phones use the floating button */
}
@media (max-width: 640px) {
    .glossary-hero { padding-top: 110px; padding-bottom: 24px; }
    .glossary-layout { padding-bottom: 64px; gap: 32px; }
    .glossary-sidebar { padding: 20px; }
}

/* ══ Type system ═══════════════════════════════════════════════════
   The ONLY place text size, weight, line-height, tracking, case and
   family are set. Components set colour (it depends on the surface:
   --fg/--text-body/--text-muted on oatmeal, --bg/--text-on-dark on
   charcoal) and spacing, never type. To style new text, give it a
   role class (.t-label, .t-display, .t-title, .t-h2, .t-tile, .t-sub,
   .t-lead, .t-body, .t-strong, .t-small, .t-link, .btn-primary) or add
   its selector to a role below; never write font rules anywhere else.
   Role classes are written :root .t-x so they beat component rules
   such as .prose-section p (an explicit role always wins).
   Sits last in the file so it wins over any component rule.
   Deliberate exceptions (brand pieces with their own type): logo,
   header/mobile nav, client strip names, pull quote, CTA email.

   Role        Font      Size                     Weight
   Label       DM Sans   14px, 16px >960 (never all caps)  600
   Display     Fredoka   48–92px                  900
   Title       Fredoka   36–56px                  900
   H2          Fredoka   24–32px                  900
   Tile        Fredoka   28–40px                  800
   Subheading  Fredoka   22px                     800
   Lead        DM Sans   18px                     400
   Body        DM Sans   16px                     400 (strong: 700)
   Small       DM Sans   14px, 15px >960          400
   Link        DM Sans   16px underlined          700
   Button      DM Sans   16px                     700
   Code        monospace 0.9em inline, 14px block 400
   ════════════════════════════════════════════════════════════════ */

/* Label: eyebrows, tags, kickers, the page H1 in heroes */
:root .t-label, .label, .svc-hero h1.label, .hero h1.label, .blog-index-hero h1.label, .cta .label, .clients-strip .label,
.footer-block h3, .block-kicker, .role-tag, .rec-type, .post-category, .post-toc-label, .post-toc-toggle,
.post-author-card-kicker, .post-tldr-label, .role-dates {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
}

/* Headings (Fredoka) */
:root .t-display, :root .t-title, :root .t-h2, :root .t-tile, :root .t-sub,
.svc-hero h2,
.post-title, .footer-cta-block h2, .legal-page h1, .blog-index-h2, .sitemap-h2, .glossary-h2, .cta-title,
.mobile-nav-links > li > a, .mobile-services-toggle, .mobile-services-sub li a,
.section-h2, .section-title, #post-body h2, .post-faq-title, .blog-featured-body h2,
.media-tile-text h3, .color-block h3,
.legal-page h2, #post-body h3, .post-related-title, .related-post-card h3, .post-author-card-name,
.footer-link-block h3, .site-wordmark, .role h3, .neutral-blocks .color-block h3,
.industry-card-body h3, .faq-question, .blog-index-card h2, .grid-more h3, .glossary-term {
    font-family: var(--font-heading);
    text-transform: none;
}
:root .t-display, .svc-hero h2 {
    font-size: clamp(48px, 7.5vw, 92px);
    font-weight: 900; line-height: 1; letter-spacing: -0.04em;
}
:root .t-title, .post-title, .footer-cta-block h2, .legal-page h1, .blog-index-h2, .sitemap-h2, .glossary-h2, .cta-title,
.mobile-nav-links > li > a, .mobile-services-toggle {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900; line-height: 1.05; letter-spacing: -0.03em;
}
/* Light text on the dark CTA reads heavier, and at 900 with tight
   tracking the letters ran together (Mitch, 15 Nov 2026). */
.cta-title { font-weight: 800; letter-spacing: 0; }
:root .t-h2, .section-h2, .section-title, #post-body h2, .post-faq-title, .blog-featured-body h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 900; line-height: 1.1; letter-spacing: -0.03em;
}
:root .t-tile, .media-tile-text h3, .color-block h3 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
}
:root .t-sub, .mobile-services-sub li a, .legal-page h2, #post-body h3, .post-related-title, .related-post-card h3, .post-author-card-name,
.footer-link-block h3, .site-wordmark, .role h3, .neutral-blocks .color-block h3,
.industry-card-body h3, .faq-question, .blog-index-card h2, .grid-more h3, .glossary-term {
    font-size: 22px;
    font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
}

/* Text (DM Sans) */
:root .t-lead, .svc-hero .hero-desc, .hero-desc, .post-intro p, .blog-index-hero .hero-desc, .sitemap-hero .hero-desc {
    font-family: var(--font);
    font-size: 18px; font-weight: 400; line-height: 1.7; letter-spacing: normal;
}
:root .t-body, .section-note, .prose-section p, .legal-page p, .footer-link-block a, .footer-link-btn, .footer-bottom-bar, .form-field input, .form-field textarea, .form-alert, .media-tile-text p, .color-block p, .grid-more p, .faq-answer p, .faq-closing,
.section-intro, .role-desc, .quote-card blockquote p, #post-body p, #post-body li, #post-body blockquote,
.post-media-split .post-media-split-text p, .post-author-card-bio, .post-table-wrap table,
.post-tldr li, .cta-sub, .about-preview-text p, .blog-featured-excerpt, .glossary-def, .glossary-more, .glossary-intro {
    font-family: var(--font);
    font-size: 16px; font-weight: 400; line-height: 1.7; letter-spacing: normal;
}
:root .t-strong, .pullquote-cite, .form-field label, .page-links a, .role-company, .role-kicker, .rec-name, .sitemap-list li a, .glossary-toc-summary, .glossary-top {
    font-family: var(--font);
    font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: normal;
}
:root .t-small, .svc-breadcrumb, .post-breadcrumb, .post-byline-text, .post-hero-caption, .post-image figcaption, .post-image-row figcaption,
.post-carousel-track figcaption, #post-body blockquote cite, .related-post-card-date, .post-author-card-title, .rec-headline,
.rec-meta, .rec-context, .faq-updated, .cookie-banner-text,
.post-toc a, .post-table-wrap th, .blog-index-card-date, .glossary-expansion, .glossary-toc-topic li a {
    font-family: var(--font);
    font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: normal; text-transform: none;
}
.post-table-wrap th { font-weight: 700; }
/* Code: monospace for file names and example files in blog posts
   (inline code sits in Body text at a slightly smaller size). */
#post-body code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
    font-size: 0.9em; font-weight: 400; letter-spacing: normal; text-transform: none;
}
#post-body pre.post-code { font-size: 14px; line-height: 1.6; }
#post-body pre.post-code code { font-size: inherit; }
/* Column name above each cell in a stacked table on phones (blog.css) */
.post-table-wrap td::before { font-family: var(--font); font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: normal; }

/* Desktop (above the 960 hero-stack breakpoint): 14px reads too small
   on a wide screen, so Label steps up to 16px and Small to 15px
   (one step under Body, so captions and meta stay secondary). */
@media (min-width: 961px) {
    :root .t-label, .label, .svc-hero h1.label, .hero h1.label, .blog-index-hero h1.label, .cta .label, .clients-strip .label,
    .block-kicker, .role-tag, .rec-type, .post-category, .post-toc-label, .post-toc-toggle,
    .post-author-card-kicker, .post-tldr-label, .role-dates {
        font-size: 16px;
    }
    :root .t-small, .svc-breadcrumb, .post-breadcrumb, .post-byline-text, .post-hero-caption, .post-image figcaption, .post-image-row figcaption,
    .post-carousel-track figcaption, #post-body blockquote cite, .related-post-card-date, .post-author-card-title, .rec-headline,
    .rec-meta, .rec-context, .faq-updated, .cookie-banner-text,
    .post-toc a, .post-table-wrap th, .blog-index-card-date, .glossary-expansion, .glossary-toc-topic li a {
        font-size: 15px;
    }
}

/* Standalone text links: always underlined so they read as links */
:root .t-link, .card-link, .about-preview-link, .post-related-view-all, .post-author-card-links a,
.sitemap-hero .hero-desc a {
    font-family: var(--font);
    font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: normal;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.btn-primary, .cookie-banner-actions button, .skip-link {
    font-family: var(--font);
    font-size: 16px; font-weight: 700; line-height: 1.6; letter-spacing: -0.01em;
}

/* Line break that only applies on phones (e.g. "Proper SEO /
   without the agency price tag"). Hidden elsewhere, so the heading
   flows as one line or balances naturally. */
.br-mobile { display: none; }
@media (max-width: 640px) { .br-mobile { display: inline; } }

/* Highlighted words inside a heading (replaces inline colour styles) */
.text-blue  { color: var(--accent-blue); }
.text-coral { color: var(--accent-coral); }
