/*
 * Planning and Project Controls (FR2) — shared stylesheet.
 * Generated by .dev/build.js — edit SITE_CSS there, not this file.
 * Mirrors the live site: Libre Franklin, uppercase letter-spaced title and
 * section labels, two-column editorial layout, no heavy chrome.
 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --text: #333333;
    --text-strong: #222222;
    --text-soft: #666666;
    --bg: #ffffff;
    --bg-soft: #fafafa;
    --line: #eaeaea;
    --accent: #7a6a53;
    --shell: 945px;
    --label-col: 306px;
    --gap: 56px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    /* System stack only — no webfont request to a third-party CDN, so the
       site renders fully offline and depends on nothing external. */
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.66;
    color: var(--text);
    background: var(--bg);
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

/* Header */

/* Sticky sitewide so the nav stays reachable on long pages. Solid
   background, since content scrolls underneath it. Padding is tighter than
   a static header would use, to keep the sticky bar from eating the screen. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 26px 0 0;
}

/* Logo mark + wordmark + build version, top left. */
.brand-row { display: flex; align-items: center; gap: 13px; }
.brand-mark { flex-shrink: 0; }

.version {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    color: var(--text-soft);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 2px 6px;
    white-space: nowrap;
    background: var(--bg);
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-strong);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    line-height: 1.2;
}
.site-title .brand-mark { color: var(--text-strong); }
.site-title:hover .brand-mark { color: var(--accent); }
.site-title:hover { color: var(--accent); }

.site-tagline { font-size: 15px; color: var(--text-soft); margin-top: 6px; }

.site-nav { margin-top: 22px; border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 32px; padding: 18px 0; }
.site-nav a { font-size: 14px; font-weight: 600; color: var(--text-strong); text-decoration: none; }
.site-nav a:hover, .site-nav a.is-active { color: var(--accent); }

.has-children { position: relative; }
.has-children > a { display: inline-flex; align-items: center; gap: 5px; }
.caret { flex-shrink: 0; stroke: var(--text-soft); transition: transform .15s ease; }
.has-children:hover .caret { transform: rotate(180deg); stroke: var(--accent); }

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 10px 0;
    min-width: 260px;
    z-index: 50;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.has-children:hover .submenu, .has-children:focus-within .submenu { display: block; }
.submenu a { display: block; padding: 9px 22px; font-weight: 400; line-height: 1.4; }
.submenu a:hover { background: var(--bg-soft); }

/* Content */

main { padding: 76px 0 96px; }

.block { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: var(--gap); }

.block-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.96px;
    text-transform: uppercase;
    color: var(--text-strong);
    line-height: 1.5;
}

.block-body > * + * { margin-top: 22px; }
.block-body p { color: var(--text); }

.block-body h2 {
    font-size: 26px;
    font-weight: 300;
    line-height: 1.45;
    color: var(--text);
    letter-spacing: normal;
    text-transform: none;
    margin-top: 38px;
}

.block-body h3 { font-size: 18px; font-weight: 600; color: var(--text-strong); margin-top: 28px; }
.block-body h4 { font-size: 15px; font-weight: 600; color: var(--text-strong); margin-top: 22px; }

.block-body ul, .block-body ol { padding-left: 20px; }
.block-body li { margin-bottom: 8px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text-strong); font-weight: 600; }

.editor-note {
    background: #fff8e6;
    border-left: 3px solid #d9a441;
    padding: 14px 18px;
    font-size: 14px;
    color: #6b5420;
}

.contact-block { background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 16px 20px; }

/* Footer */

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 60px 0 34px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 34px; }
.site-footer h4 { font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-strong); margin-bottom: 14px; }
.site-footer a { display: block; font-size: 14px; color: var(--text-soft); margin-bottom: 9px; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-soft); }

/* Responsive */

@media (max-width: 860px) {
    .block { grid-template-columns: 1fr; gap: 16px; }
    .site-header { padding-top: 16px; }
    .site-title { font-size: 17px; letter-spacing: 1.2px; gap: 8px; }
    .site-title .brand-mark { width: 20px; height: 20px; }
    .site-tagline { display: none; }
    .site-nav { margin-top: 14px; }
    main { padding: 48px 0 64px; }
    .site-nav ul { gap: 18px; }
    .block-body h2 { font-size: 21px; }
    .submenu { position: static; border: 0; box-shadow: none; padding: 6px 0 6px 14px; min-width: 0; }
}

/* ── Sticky header, compact state ─────────────────────────────────────
   Set by the small inline script in the footer once the page scrolls. The
   header is roomy at the top of a page and tight thereafter, so a persistent
   bar never costs a fifth of the viewport. */

.site-header { transition: padding .16s ease; }
.site-header .site-title,
.site-header .site-tagline { transition: font-size .16s ease, opacity .12s ease; }

.site-header.is-compact { padding-top: 12px; }
.site-header.is-compact .site-tagline { display: none; }
.site-header.is-compact .site-title { font-size: 19px; }
.site-header.is-compact .brand-mark { width: 22px; height: 22px; }
.site-header.is-compact .site-nav { margin-top: 12px; }
.site-header.is-compact .site-nav ul { padding: 11px 0; }

@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header .site-title, .site-header .site-tagline { transition: none; }
}

/* ── Media ────────────────────────────────────────────────────────────
   site.css previously had no img or table rules at all. Profile photos
   rendered at their natural size, which is what blew the team table rows
   to ~700px tall and pushed the tick marks out of alignment. */

.block-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Team cards ───────────────────────────────────────────────────────
   The team list is a flat sequence of img / h3 / p in the source. Wrapping
   each person in .team-card and laying them out on a grid replaces the
   single-column stack of full-height photos. */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 26px;
    margin-top: 26px;
}

.team-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px;
    background: #fff;
}

.team-card img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background: var(--bg-soft);
    margin-bottom: 14px;
}

.team-card h3 { margin-top: 0; font-size: 17px; }
.team-card h3 a { color: var(--text-strong); text-decoration: none; }
.team-card h3 a:hover { color: var(--accent); }

.team-card .role {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    color: var(--accent);
    margin-top: 2px;
}

.team-card .email { font-size: 13px; margin-top: 4px; }
.team-card .bio { font-size: 14px; line-height: 1.6; margin-top: 12px; }

.team-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 7px; }
.team-tags a, .team-tags span {
    font-size: 12px;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--text-soft);
    text-decoration: none;
    background: var(--bg-soft);
}
.team-tags a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Tables ───────────────────────────────────────────────────────────
   Fixed layout so the first column cannot be pushed wide by its contents.
   The table always fits the container width - no horizontal scrolling -
   by shrinking padding/font at narrower widths instead. */

.table-wrap { margin-top: 22px; }

.block-body table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px;
}

.block-body th,
.block-body td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
}

.block-body thead th {
    background: var(--bg-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--text-strong);
    position: sticky;
    top: 0;
}
.block-body thead th a { color: var(--text-strong); text-decoration: none; }
.block-body thead th a:hover { color: var(--accent); }

.block-body tbody tr:nth-child(even) { background: var(--bg-soft); }

/* First column: the person. Photo shrinks to an avatar beside the name. */
.block-body tbody td:first-child {
    text-align: left;
    white-space: normal;
    width: 18%;
}
.block-body tbody td:first-child img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background: var(--bg-soft);
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}
.block-body tbody td:first-child a { text-decoration: none; font-weight: 600; }
.block-body tbody td:first-child p { display: inline; font-size: 12px; }
.block-body tbody td:first-child p a { font-weight: 400; color: var(--text-soft); }

@media (max-width: 640px) {
    .team-grid { grid-template-columns: 1fr; }
}

/* The .block grid reserves a left label column that stays empty further down
   the page. On wide screens the team grid and the matrix table reclaim it. */
@media (min-width: 1000px) {
    .team-grid,
    .table-wrap {
        margin-left: calc(-1 * (var(--label-col) + var(--gap)));
    }
}

/* Narrower viewports: shrink padding/font so the fixed-layout matrix table
   still fits without ever needing to scroll sideways. */
@media (max-width: 900px) {
    .block-body table { font-size: 11.5px; }
    .block-body th, .block-body td { padding: 6px 4px; }
    .block-body tbody td:first-child img { width: 26px; height: 26px; margin-right: 4px; }
}
@media (max-width: 640px) {
    .block-body table { font-size: 10px; }
    .block-body th, .block-body td { padding: 4px 2px; }
    .block-body tbody td:first-child img { display: none; }
}

/* .site-nav ul sets a 32px flex gap; the submenu inherits it and ends up
   with enormous row spacing. Reset it for the dropdown. */
.submenu ul { display: block; gap: 0; padding: 0; list-style: none; }
.submenu li { margin: 0; }

/* --- Accessibility & heading normalisation (review pass, Sep 2026) --- */

/* The page's visible eyebrow doubles as the document's <h1> on pages that
   have no other top-level heading. Reset the UA margins so promoting the
   element from <div> to <h1> is purely semantic and changes nothing visually. */
h1.block-label { margin: 0; font-size: 14px; font-weight: 800; }

/* Keyboard users get a way past the sticky nav; it stays off-screen until focused. */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--text-strong, #111);
    color: #fff;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-to-content:focus { left: 0; }

main:focus { outline: none; }

/* ==========================================================================
   Landing page, section furniture, client grid and motion.
   Added in the September 2026 review pass.

   Motion approach: everything below is opacity + transform only (compositor
   properties), so scrolling stays smooth, and every animation is disabled
   wholesale under prefers-reduced-motion at the bottom of this file.
   ========================================================================== */

/* --- Page load: a brief veil so the first paint doesn't flash unstyled --- */

.page-veil {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .45s ease, visibility .45s ease;
}
.page-veil__bar {
    width: 120px;
    height: 2px;
    background: var(--line);
    overflow: hidden;
    position: relative;
}
.page-veil__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-100%);
    animation: veilSweep 1.1s cubic-bezier(.4,0,.22,1) infinite;
}
@keyframes veilSweep {
    0%   { transform: translateX(-100%); }
    55%  { transform: translateX(0); }
    100% { transform: translateX(100%); }
}
/* The veil is removed by script once the page is ready; if script never runs
   (or fails), this keeps the page usable rather than permanently covered. */
.is-ready .page-veil { opacity: 0; visibility: hidden; }
html:not(.js) .page-veil { display: none; }

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

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s cubic-bezier(.4,0,.22,1), transform .55s cubic-bezier(.4,0,.22,1);
}
.reveal.is-in { opacity: 1; transform: none; }
/* Staggered children read as one motion rather than ten separate ones. */
.reveal-group > * { transition-delay: calc(var(--i, 0) * 70ms); }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* --- Compact sticky header once the page scrolls --- */

.site-header { transition: padding .25s ease; }
.site-header.is-compact { padding-top: 14px; }
.site-header.is-compact .site-tagline { display: none; }
.site-header.is-compact .site-nav { margin-top: 12px; }

/* --- Full-bleed sections (break out of the 945px shell) --- */

.band { padding: 96px 0; }
.band--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--dark { background: #1c1b19; color: #e9e6e1; }
.band--dark h2, .band--dark h3 { color: #fff; }
.band--dark a { color: #fff; }

.band-head { max-width: 640px; margin-bottom: 44px; }
.band-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 14px;
}
.band-title { font-size: 34px; line-height: 1.25; font-weight: 300; color: var(--text-strong); }
.band--dark .band-title { color: #fff; }
.band-sub { margin-top: 14px; color: var(--text-soft); font-size: 17px; }

/* --- Hero --- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 110px 0 96px;
    background: linear-gradient(160deg, #fbfaf8 0%, #f3f1ec 60%, #ece8e0 100%);
    border-bottom: 1px solid var(--line);
}
/* Abstract programme-bar motif drawn in CSS — no image file needed, and it
   scales to any viewport. Sits behind the text at low contrast. */
.hero::before {
    content: "";
    position: absolute;
    right: -8%;
    top: 12%;
    width: 62%;
    height: 76%;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(122,106,83,.13) 0 10px,
            transparent 10px 34px
        );
    -webkit-mask-image: linear-gradient(to right, transparent, #000 35%, #000 70%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 35%, #000 70%, transparent);
    transform: skewY(-4deg);
    animation: heroDrift 26s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes heroDrift {
    from { transform: skewY(-4deg) translateY(0); }
    to   { transform: skewY(-4deg) translateY(-26px); }
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero h1 {
    font-size: 52px;
    line-height: 1.12;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: var(--text-strong);
}
.hero h1 strong { font-weight: 700; }
.hero-lede { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--text); max-width: 600px; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    border: 1px solid var(--text-strong);
    color: var(--text-strong);
    background: transparent;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--text-strong); color: #fff; transform: translateY(-2px); }
.btn--solid { background: var(--text-strong); color: #fff; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* --- Stat row --- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}
.stat__num { font-size: 40px; font-weight: 300; color: var(--text-strong); line-height: 1; }
.stat__label { margin-top: 10px; font-size: 14px; color: var(--text-soft); }

/* --- Card grid --- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.card {
    background: var(--bg);
    padding: 30px 28px 34px;
    text-decoration: none;
    display: block;
    transition: background-color .2s ease, transform .2s ease;
}
.card:hover { background: var(--bg-soft); transform: translateY(-3px); }
.card h3 { font-size: 17px; font-weight: 700; color: var(--text-strong); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-soft); line-height: 1.6; }
.card__more { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent); }

/* --- "Clients we have worked for" logo grid --- */

.clients-strip { padding: 0 0 96px; }
.clients-strip__head {
    font-size: 30px;
    font-weight: 300;
    color: #b8b8b8;
    padding: 56px 0 40px;
}
.client-grid {
    background: #f4f4f4;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    padding: 56px 32px;
}
.client-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 120px;
    padding: 18px;
    text-align: center;
    text-decoration: none;
    filter: grayscale(1);
    opacity: .62;
    transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.client-cell:hover { opacity: 1; filter: none; transform: translateY(-3px); }
/* Logo sits above the wordmark - both stay visible together. */
.client-cell img { max-width: 56px; max-height: 56px; width: auto; height: auto; }
.client-cell__word {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #555;
    line-height: 1.3;
}
.client-cell__word small {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    color: #9a9a9a;
    margin-top: 6px;
}

/* --- CTA band --- */

.cta { text-align: center; }
.cta .band-title { margin: 0 auto; }
.cta .hero-actions { justify-content: center; }

/* --- Footer --- */

.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    margin-top: 0;
    padding: 64px 0 32px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 40px 32px;
    padding-bottom: 44px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-strong);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 9px; }
.footer-col a {
    font-size: 14px;
    color: var(--text-soft);
    text-decoration: none;
    transition: color .15s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    font-size: 13px;
    color: var(--text-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    align-items: center;
    justify-content: space-between;
}
.footer-bottom a { color: var(--text-soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* --- Responsive --- */

@media (max-width: 720px) {
    .hero { padding: 72px 0 64px; }
    .hero h1 { font-size: 36px; }
    .hero-lede { font-size: 17px; }
    .band { padding: 64px 0; }
    .band-title { font-size: 26px; }
    .hero::before { display: none; }
    .block { grid-template-columns: 1fr; gap: 18px; }
}

/* --- Motion opt-out ---
   Anyone who has asked their OS for less motion gets the same page with no
   movement at all: reveals start visible, loops stop, the veil never shows. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .page-veil { display: none; }
}

/* Wider gutters for the landing-page bands: the 945px editorial shell is right
   for prose, too tight for a four-across card grid. */
.band .shell, .clients-strip .shell, .site-footer .shell { max-width: 1180px; }
/* The header was left at the narrower --shell default while the crumb bar,
   main column, hero and footer were all widened to 1180px - so the masthead
   and nav sat 118px inboard of every other element on the page. */
.site-header .shell { max-width: 1180px; }
.hero .shell { max-width: 1180px; }

/* Six across on desktop keeps the client wall in even rows, like a logo sheet. */
@media (min-width: 900px) {
    .client-grid { grid-template-columns: repeat(6, 1fr); }
}

/* --- Breadcrumbs ---
   Added on every page but the home page: gives each deep page a link back up
   its own branch, which is the cheapest internal-linking win on a site this
   deep (services run four levels down). Mirrors the BreadcrumbList JSON-LD
   already in each head. */
.crumbs {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    font-size: 13px;
    color: var(--text-soft);
}
.crumbs .shell { max-width: 1180px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs a { color: var(--text-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs__sep { color: #c9c9c9; }
.crumbs [aria-current="page"] { color: var(--text-strong); font-weight: 600; }

/* The crumb bar is the first child of <main>, which already carries 76px of top
   padding for pages without one. Pull the bar up flush against the header and
   give the content its own, smaller gap underneath. */
main > .crumbs:first-child { margin-top: -76px; margin-bottom: 44px; }
@media (max-width: 720px) { main > .crumbs:first-child { margin-top: -48px; margin-bottom: 28px; } }

/* --- Persistent header ---
   position: sticky keeps the bar pinned through the whole document while still
   participating in layout, so nothing needs a magic padding-top offset that
   would drift whenever the header height changes. isolation prevents a stacking
   context created further down the page from painting over it. */
.site-header {
    position: sticky;
    top: 0;
    isolation: isolate;
    will-change: padding;
}
/* Anchor targets clear the sticky bar instead of hiding underneath it. */
:target, [id] { scroll-margin-top: 160px; }

/* Notice block, used on pages awaiting content. */
.notice {
    border-left: 3px solid var(--accent);
    background: var(--bg-soft);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 15px;
}
.notice p { color: var(--text-soft); }

/* The bottom bar's two halves are flex items; the right-hand link list was
   wrapping one link per line because the middots are separate text nodes.
   Make it its own inline row that wraps as a unit. */
.footer-bottom > span:last-child {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* --- Brand ---
   The real FR2 mark, recovered from the Wayback Machine after the WordPress
   media library was lost. #1D1B57 is sampled straight from the logo artwork.
   It is introduced as its own token rather than overwriting --accent, so the
   existing warm link colour is a separate decision. */
:root { --brand: #1D1B57; }

/* The mark is now an <img>, not an inline SVG, so it needs explicit sizing to
   avoid a layout shift before it loads. */
img.brand-mark {
    height: 30px;
    width: auto;          /* the mark is wider than it is tall - do not square it */
    flex-shrink: 0;
    transition: opacity .2s ease;
}
@media (max-width: 720px) { img.brand-mark { height: 24px; } }
.site-title:hover img.brand-mark { opacity: .7; }

/* The dark call-to-action band picks up the brand navy instead of near-black. */
.band--dark { background: var(--brand); }
.band--dark .band-sub { color: #b9b6cf; }

/* ── Client project cards ────────────────────────────────────────────
   Used on /our-clients/[slug]/ pages: one card per project, with a
   photo (or placeholder icon), a short description, and the project
   value/scale where known. */
.client-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin: 22px 0;
}
.client-project-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.client-project-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 12px;
    letter-spacing: .3px;
}
.client-project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.client-project-card__body { padding: 16px 18px 18px; }
.client-project-card__body h3 { margin: 0 0 6px; font-size: 16px; }
.client-project-card__body p { margin: 0 0 8px; font-size: 14px; color: var(--text-soft); }
.client-project-card__value {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--text-strong);
    background: var(--bg-soft);
    border-radius: 4px;
    padding: 4px 8px;
}

/* Team Expertise Matrix: each checkmark links through to that service's
   page. Style as a quiet, centered target rather than default link blue. */
.matrix-tick {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}
.matrix-tick:hover,
.matrix-tick:focus-visible {
    text-decoration: none;
    color: var(--text-strong);
    transform: scale(1.25);
}
