/* =============================================================================================
   eITs public website

   One stylesheet. The old site had four (site, navbar, fonts, responsive) with the breakpoints in
   a different file from the rules they overrode, which is why so much of it was !important.

   Order: tokens, reset, typography, layout, components, forms, responsive.
   ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
   Fonts. NOT HERE ANY MORE, AND THAT IS DELIBERATE: see Components/Shared/SiteFonts.razor.

   Nunito Sans is now two VARIABLE woff2 subsets (latin and latin-ext) instead of the nine static
   TTFs this file used to declare, 830,948 bytes of them. A normal English page now downloads one
   49,648-byte file that covers every weight from 300 to 800.

   ⚠️ DO NOT MOVE THE @font-face RULES BACK INTO THIS FILE. A static stylesheet cannot reach
   @Assets[...], so it can only name the unfingerprinted URL, which is served with a one-hour
   must-revalidate cache rather than the one-year immutable one, and which does NOT match the URL
   the preload in the head fetches. While they lived here the font was downloaded twice on first
   paint. The component exists to make those two URLs the same one.

   Everything this file still assumes about the typeface: weights 300, 400, 600, 700 and 800 are
   all inside the variable axis, so any of them is free. 900 is not, and nothing here asks for it.
   No italic face is declared, as none ever was; <em> gets a synthesised oblique, same as before.
   --------------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------------
   Tokens.

   The brand blues are the old site's, so the company still looks like itself. What has changed is
   that there is now a scale, and the text colours are picked for contrast rather than for looks:
   --brand-500 is 3.5:1 on white, which is fine for a fill or a border and NOT enough for body
   text, so links use --brand-700 at roughly 7:1.
   --------------------------------------------------------------------------------------------- */
:root {
    --brand-50:  #F4F8FD;
    --brand-100: #EAF1FB;
    --brand-200: #CFE3F7;
    --brand-300: #81CBFB;
    --brand-400: #5BA3DC;
    --brand-500: #3885C7;
    --brand-600: #2D6DA5;
    --brand-700: #225584;
    --brand-800: #1A4166;
    --brand-900: #142F47;

    --ink-900: #1E2F3B;
    --ink-800: #2B3D4B;
    --ink-700: #3D5365;
    --ink-600: #52697C;
    --ink-500: #6B8094;
    --ink-300: #A9B8C4;
    --ink-200: #D4DDE4;
    --ink-100: #E8EDF1;
    --ink-50:  #F5F8FA;

    --accent: #FA6520;

    --success-bg: #E8F6EE;
    --success-fg: #11633A;
    --warning-bg: #FDF4E3;
    --warning-fg: #7A5209;
    --error-bg:   #FDEDEC;
    --error-fg:   #8E2B22;
    --info-bg:    var(--brand-50);
    --info-fg:    var(--brand-800);

    --surface: #FFFFFF;
    --surface-muted: var(--ink-50);
    --surface-invert: var(--brand-900);

    --text: var(--ink-900);
    --text-muted: var(--ink-600);
    --text-invert: #FFFFFF;
    --text-invert-muted: var(--brand-200);

    --link: var(--brand-700);
    --link-hover: var(--brand-800);

    --border: var(--ink-200);
    --border-strong: var(--ink-300);

    --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;

    /* A modular scale, clamped so it is fluid between a phone and a desktop with no breakpoints. */
    --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
    --step-0:  clamp(1.00rem, 0.95rem + 0.25vw, 1.13rem);
    --step-1:  clamp(1.20rem, 1.10rem + 0.50vw, 1.45rem);
    --step-2:  clamp(1.44rem, 1.28rem + 0.80vw, 1.90rem);
    --step-3:  clamp(1.73rem, 1.48rem + 1.25vw, 2.50rem);
    --step-4:  clamp(2.07rem, 1.68rem + 1.95vw, 3.30rem);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    --radius: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(30, 47, 59, 0.06), 0 2px 8px rgba(30, 47, 59, 0.05);
    --shadow-md: 0 4px 12px rgba(30, 47, 59, 0.08), 0 12px 32px rgba(30, 47, 59, 0.07);

    --shell: 1180px;
    --shell-narrow: 760px;

    --header-height: 76px;
}

/* ---------------------------------------------------------------------------------------------
   Reset and base.
   --------------------------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + var(--space-5));
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ⚠️ A visible focus ring on everything focusable. Never remove this without replacing it: it is
   the only way a keyboard user knows where they are. */
:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    z-index: 200;
    padding: var(--space-3) var(--space-5);
    background: var(--brand-900);
    color: var(--text-invert);
    border-radius: 0 0 var(--radius) var(--radius);
    text-decoration: none;
    font-weight: 700;
    transition: top 120ms ease-out;
}

.skip-link:focus {
    top: 0;
}

/* ---------------------------------------------------------------------------------------------
   Typography.
   --------------------------------------------------------------------------------------------- */
h1, h2, h3, h4 {
    margin: 0 0 var(--space-4);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ink-900);
    text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }

p {
    margin: 0 0 var(--space-4);
    text-wrap: pretty;
}

a {
    color: var(--link);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--link-hover);
}

ul, ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-5);
}

strong {
    font-weight: 700;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-3);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.eyebrow::after {
    content: "";
    width: 36px;
    height: 2px;
    background: var(--brand-300);
}

.lead {
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-700);
}

.section-title {
    margin-bottom: var(--space-3);
}

.section-lead {
    max-width: 62ch;
    margin-bottom: var(--space-7);
    font-size: var(--step-1);
    color: var(--text-muted);
}

.section-after {
    margin-top: var(--space-6);
    margin-bottom: 0;
}

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

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    text-decoration: none;
}

.link-arrow::after {
    content: "\2192";
    transition: transform 150ms ease-out;
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow:hover::after {
    transform: translateX(3px);
}

/* ---------------------------------------------------------------------------------------------
   Layout.
   --------------------------------------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--space-5);
}

.shell--narrow {
    max-width: var(--shell-narrow);
}

.band {
    padding-block: var(--space-9);
}

.band--tight {
    padding-block: var(--space-7);
}

.band--muted {
    background: var(--surface-muted);
}

.band--feature {
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 100%);
    color: var(--text-invert);
}

.band--feature h2,
.band--feature h3 {
    color: var(--text-invert);
}

.band--feature .lead,
.band--feature p {
    color: var(--text-invert-muted);
}

.band--feature .eyebrow {
    color: var(--brand-300);
}

.band--feature .eyebrow::after {
    background: var(--brand-500);
}

/* ---------------------------------------------------------------------------------------------
   Header and navigation.
   --------------------------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    min-height: var(--header-height);
}

.site-header__brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-nav {
    flex: 1 1 auto;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    display: inline-block;
    padding-block: var(--space-2);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--ink-700);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.site-nav__link:hover {
    color: var(--brand-700);
    border-bottom-color: var(--brand-300);
}

/* NavLink adds .active on the current route, so the nav says where you are. */
.site-nav__link.active {
    color: var(--brand-700);
    border-bottom-color: var(--brand-500);
}

.site-header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    background: var(--ink-800);
    border-radius: 2px;
}

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(20, 47, 71, 0.55);
    opacity: 0;
    transition: opacity 200ms ease-out;
}

.mobile-nav.is-open {
    opacity: 1;
}

.mobile-nav__panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: min(360px, 88vw);
    padding: var(--space-6) var(--space-5);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 220ms ease-out;
}

.mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
}

.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    font-size: 1.8rem;
    line-height: 1;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--ink-800);
}

.mobile-nav__list {
    margin: var(--space-5) 0;
    padding: 0;
    list-style: none;
}

.mobile-nav__list li + li {
    border-top: 1px solid var(--border);
}

.mobile-nav__list a {
    display: block;
    padding: var(--space-4) 0;
    font-size: var(--step-1);
    font-weight: 700;
    color: var(--ink-900);
    text-decoration: none;
}

.mobile-nav__list a:hover {
    color: var(--brand-700);
}

.mobile-nav__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-5);
    border-top: 1px solid var(--border);
}

.mobile-nav__tel {
    font-weight: 700;
    text-align: center;
}

/* ---------------------------------------------------------------------------------------------
   Buttons.
   --------------------------------------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    /* 44px minimum, because a target smaller than that is hard to hit on a touch screen. */
    min-height: 44px;
    font-family: inherit;
    font-size: var(--step-0);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out;
}

.button--compact {
    padding: var(--space-2) var(--space-4);
    font-size: var(--step--1);
    min-height: 40px;
}

.button--primary {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #FFFFFF;
}

.button--primary:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #FFFFFF;
}

.button--ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--ink-900);
}

.button--ghost:hover {
    border-color: var(--brand-600);
    color: var(--brand-700);
}

.button--invert {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--brand-800);
}

.button--invert:hover {
    background: var(--brand-100);
    border-color: var(--brand-100);
    color: var(--brand-900);
}

.band--feature .button--ghost {
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

.band--feature .button--ghost:hover {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* ---------------------------------------------------------------------------------------------
   Hero.
   --------------------------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, var(--brand-50) 0%, #FFFFFF 62%);
    padding-block: var(--space-9) var(--space-8);
}

.hero--compact {
    padding-block: var(--space-8) var(--space-7);
}

/* The old site shipped a 589 KB JPEG and a 37 KB PNG overlay to produce a background pattern.
   This is the same idea in gradients: no request, no layout shift, and it scales to any screen. */
.hero__pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(56, 133, 199, 0.10) 0, transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(129, 203, 251, 0.16) 0, transparent 45%),
        linear-gradient(to right, rgba(56, 133, 199, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 133, 199, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

.hero__inner {
    position: relative;
    max-width: 860px;
}

.hero__title {
    margin-bottom: var(--space-5);
}

.hero__lead {
    max-width: 64ch;
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-700);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

/* ---------------------------------------------------------------------------------------------
   Pillar cards.
   --------------------------------------------------------------------------------------------- */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pillar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 150ms ease-out, box-shadow 150ms ease-out, transform 150ms ease-out;
}

.pillar-card:hover {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pillar-card__title {
    margin-bottom: var(--space-2);
    font-size: var(--step-1);
}

.pillar-card__title a {
    color: inherit;
    text-decoration: none;
}

/* The whole card is the hit area, driven off the one real link inside it, so there is still exactly
   one link per card for a screen reader rather than three that all go to the same place. */
.pillar-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.pillar-card:hover .pillar-card__title a {
    color: var(--brand-700);
}

.pillar-card__strapline {
    margin-bottom: var(--space-3);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.pillar-card__summary {
    flex: 1 1 auto;
    color: var(--text-muted);
}

.pillar-card__more {
    margin-top: var(--space-4);
    font-weight: 700;
    color: var(--brand-700);
}

.pillar-card__more::after {
    content: " \2192";
}

/* ---------------------------------------------------------------------------------------------
   Capability grid.
   --------------------------------------------------------------------------------------------- */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6) var(--space-7);
    margin: 0;
    padding: 0;
    list-style: none;
}

.capability {
    padding-left: var(--space-4);
    border-left: 3px solid var(--brand-300);
}

.capability__title {
    margin-bottom: var(--space-2);
    color: var(--brand-800);
}

.capability__body {
    margin-bottom: 0;
    color: var(--text-muted);
}

.band--muted .capability {
    border-left-color: var(--brand-400);
}

/* ---------------------------------------------------------------------------------------------
   Process list.
   --------------------------------------------------------------------------------------------- */
.process-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-6);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: process;
}

.process-step {
    padding-top: var(--space-4);
    border-top: 3px solid var(--brand-500);
}

.process-step__title {
    margin-bottom: var(--space-2);
}

.process-step__body {
    margin-bottom: 0;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------------------------
   Client logos.
   --------------------------------------------------------------------------------------------- */
.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 120px;
}

/* A FIXED height, in CSS, deliberately.
   The markup carries no width/height attributes because the seven logos run from 2.0:1 to 3.3:1
   and a single pair of numbers would be wrong for six of them. A fixed CSS height reserves the
   vertical box before the image arrives, which is the only axis that shifts the page; the width
   then falls out of each file's own intrinsic ratio. Recutting a logo cannot break this. */
.client-logo img {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    /* No greyscale. With seven logos rather than forty, a desaturated wall buys tidiness at the
       price of recognition, and a logo whose distinguishing feature IS its colour stops reading
       at all. A slight lift on hover keeps the affordance without hiding anybody. */
    opacity: 0.92;
    transition: opacity 160ms ease-out;
}

.client-logo:hover img {
    opacity: 1;
}

.client-logo__sector {
    font-size: var(--step--1);
    color: var(--text-muted);
    text-align: center;
}

/* ---------------------------------------------------------------------------------------------
   Vendor partner badges. The rules that bind the artwork are documented with the badge itself,
   a little further down. Read that block before changing any size or spacing in this section.
   --------------------------------------------------------------------------------------------- */
.partners__intro {
    max-width: 60ch;
    margin-bottom: var(--space-5);
}

.partners__intro h2 {
    margin: 0 0 var(--space-2);
    font-size: var(--step-2);
}

.partners__intro p {
    margin: 0;
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------------------------
   ⚠️ VENDOR BRAND GUIDELINES ARE ENFORCED HERE, NOT LEFT TO THE PERSON WHO SWAPS THE ARTWORK IN.
   Ian supplied the Microsoft AI Cloud Partner Program brand page on 3 December 2026. It sets two
   hard rules for the "Microsoft Partner" lockups, and both are measurable, so both are code:

     MINIMUM SIZE   stacked lockup      0.375 in  /  27 px
                    horizontal lockup   0.2 in    /  12 px

     CLEAR SPACE    2x the cap-height of the "M", on all four sides, free of text, of other
                    logos, and of the edge of whatever contains it.

   Minimum size is a floor on the LOCKUP's own height. This site renders at 64 px, and 48 px in
   the compact strip, so it clears the stricter (stacked) minimum by better than 1.7x even in the
   strip. --partner-badge-min is therefore a guard rail rather than a live constraint: it exists
   so that a later "the badges are too big" tweak cannot quietly take the site out of compliance.

   Clear space is the reason the card padding and the badge-to-text gap below are driven from the
   badge height instead of the ordinary --space scale. The guideline is about DISTANCE TO OTHER
   THINGS, so the three things that can intrude are the card edge, the summary paragraph, and a
   neighbouring badge, and each is held at --partner-clear or more.

   ⚠️ --partner-clear-ratio IS THE ONE NUMBER HERE THAT IS STILL AN ESTIMATE, and it is marked as
   such because the licensed artwork is NOT YET IN THE REPOSITORY: images/partners/*.svg are both
   still type-only placeholders, so there is no "M" to measure. 2x cap-height lands near 0.4 of a
   stacked lockup's height and near 0.8 of a two-line horizontal one, because the taller the
   lockup the smaller a share of it the "M" is. 0.6 is set as a middle that is safe for the
   stacked form and close for the horizontal. WHEN THE REAL BADGE ARRIVES FROM PARTNER CENTER,
   MEASURE THE "M" AND SET THIS EXACTLY. Too much clear space costs layout; too little breaches
   the guidelines, so err high until it is measured.

   Everything else here is deliberately NOT styled like the client wall above. A client logo is
   ours to present quietly, so it gets a restrained treatment; a partner badge is used under the
   vendor's own brand guidelines, which forbid altering it. So: no greyscale, no opacity change,
   no hover filter, no recolouring, no cropping.
   --------------------------------------------------------------------------------------------- */
.partners {
    --partner-badge-height: 64px;
    --partner-badge-min: 27px;
    --partner-clear-ratio: 0.6;
    --partner-clear: calc(var(--partner-badge-height) * var(--partner-clear-ratio));
}

.partners__list {
    display: grid;
    /* Capped at 420px rather than 1fr, and packed left. With 1fr a SINGLE badge stretched its
       card the full width of the shell and left the mark marooned in the corner of an empty
       rectangle, which is how it looked the moment Google came out of the list on 3 Dec 2026.
       auto-fit collapses the empty tracks, so one badge gets one 420px card and two still sit
       side by side. */
    grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
    justify-content: start;
    gap: var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    /* Both of these ARE the clear space: the gap keeps the summary paragraph out of it, the
       padding keeps the card edge out of it. Do not put them back on the --space scale. */
    gap: var(--partner-clear);
    padding: var(--partner-clear);

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Height fixed, width auto: the placeholders will be swapped for real badges of unknown
   proportions, and a declared size that disagrees with the file is what turned the header logo
   into an oversized roundel. object-fit: contain guarantees no crop, which the guidelines also
   forbid. */
.partner img {
    height: var(--partner-badge-height);
    min-height: var(--partner-badge-min);
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.partner__summary {
    margin: 0;
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--text-muted);
}

/* The strip form: badges only, sitting inline inside another section. The badge shrinks to 48 px,
   so the clear space derived from it shrinks with it, which is the correct behaviour: the
   guideline is proportional to the mark, not a fixed number of pixels. 48 px still clears the
   27 px stacked minimum. */
.partners--compact {
    --partner-badge-height: 48px;
}

.partners--compact .partners__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

.partners--compact .partner {
    padding: var(--partner-clear);
}

/* ---------------------------------------------------------------------------------------------
   Client list (the /clients page).
   --------------------------------------------------------------------------------------------- */
.client-list {
    display: grid;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.client-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
    align-items: start;
    padding: var(--space-6);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* White, NOT --surface-muted, and it matters. Four of the seven client logos are PNGs with a
   transparent background and three are JPGs with a baked-in WHITE one, which there is no fixing:
   the white is in the file. On the muted tint those three rendered as a white rectangle floating
   inside a grey plate, visible on /clients the moment the real SeekTeachers, Triple West and
   Dalston Mill artwork went in on 3 Dec 2026. White makes the JPG background disappear and costs
   the PNGs nothing. The homepage wall (.client-logo) was already on --surface for this reason, so
   this also puts the two treatments back in step. The border below keeps the plate readable now
   that it no longer has a tint to define it. */
.client-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.client-card__logo img {
    width: auto;
    max-height: 64px;
    object-fit: contain;
}

.client-card__name {
    margin-bottom: var(--space-1);
    font-size: var(--step-1);
}

.client-card__sector {
    margin-bottom: var(--space-3);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-600);
}

.client-card__summary {
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------------------------
   Skills.
   --------------------------------------------------------------------------------------------- */
.chip {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--brand-800);
    background: var(--brand-100);
    border: 1px solid var(--brand-200);
    border-radius: 999px;
}

.skill-strip {
    padding: var(--space-5) var(--space-6);
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
}

.band--muted .skill-strip {
    background: var(--surface);
}

.skill-strip__title {
    margin-bottom: var(--space-3);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.skill-strip__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.skill-strip__more {
    margin: var(--space-4) 0 0;
    font-size: var(--step--1);
}

.band--feature .skill-strip {
    background: rgba(255, 255, 255, 0.08);
}

.band--feature .skill-strip__title {
    color: var(--brand-200);
}

.band--feature .chip {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.skills-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: var(--space-7);
}

.skill-group__title {
    margin-bottom: var(--space-2);
    font-size: var(--step-1);
    color: var(--brand-800);
}

.skill-group__body {
    color: var(--text-muted);
}

.skill-group__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------------------------------------------------------------------------------------------
   Case study feature.
   --------------------------------------------------------------------------------------------- */
.case-feature {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-7);
    align-items: center;
}

/* ---------------------------------------------------------------------------------------------
   Contact.
   --------------------------------------------------------------------------------------------- */
.contact-prompt {
    text-align: center;
    background: var(--surface-muted);
}

.contact-prompt p {
    max-width: 58ch;
    margin-inline: auto;
    color: var(--text-muted);
}

.contact-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-5);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.contact-form__title {
    margin-bottom: var(--space-5);
}

.contact-details {
    padding: var(--space-6);
    background: var(--surface-muted);
    border-radius: var(--radius-lg);
}

.contact-details h2 {
    font-size: var(--step-1);
}

.contact-details__list {
    margin: 0 0 var(--space-6);
}

.contact-details__list dt {
    margin-top: var(--space-4);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-details__list dd {
    margin: var(--space-1) 0 0;
    font-size: var(--step-1);
    font-weight: 700;
}

.contact-details__note h3 {
    font-size: var(--step-0);
}

.contact-details__note p {
    margin-bottom: 0;
    font-size: var(--step--1);
    color: var(--text-muted);
}

/* ---------------------------------------------------------------------------------------------
   Forms.
   --------------------------------------------------------------------------------------------- */
.field {
    margin-bottom: var(--space-5);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.field label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 700;
}

.required {
    color: var(--error-fg);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    /* 16px minimum, or iOS Safari zooms the whole page when the field is focused. */
    font-family: inherit;
    font-size: max(1rem, var(--step-0));
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    min-height: 48px;
}

.field textarea {
    resize: vertical;
    line-height: 1.6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand-500);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
    border-color: var(--error-fg);
}

.field .validation-message {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--error-fg);
}

.field--actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
}

.field__note {
    margin: 0;
    font-size: var(--step--1);
    color: var(--text-muted);
}

/* ⚠️ HONEYPOT. Moved off-screen rather than display:none, because the cruder bots skip anything
   that is display:none or [hidden] and fill in everything else. aria-hidden on the wrapper and
   tabindex -1 on the input keep it away from assistive technology and the tab order. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------------------------------------
   Notices.
   --------------------------------------------------------------------------------------------- */
.notice {
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
    border-left: 4px solid currentColor;
    margin-bottom: var(--space-6);
}

.notice h2 {
    font-size: var(--step-1);
    color: inherit;
}

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

.notice--success { background: var(--success-bg); color: var(--success-fg); }
.notice--warning { background: var(--warning-bg); color: var(--warning-fg); }
.notice--error   { background: var(--error-bg);   color: var(--error-fg); }
.notice--info    { background: var(--info-bg);    color: var(--info-fg); }

.notice a {
    color: inherit;
    font-weight: 700;
}

.notice__reference {
    font-size: var(--step--1);
}

/* ---------------------------------------------------------------------------------------------
   Footer.
   --------------------------------------------------------------------------------------------- */
.site-footer {
    margin-top: var(--space-8);
    background: var(--brand-900);
    color: var(--text-invert-muted);
}

.site-footer a {
    color: var(--text-invert-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* The footer's call-to-action button.
   This rule exists because of SPECIFICITY, not taste. `.site-footer a` scores (0,1,1) and
   `.button--invert` scores (0,1,0), so without an equally specific override the footer's pale
   link colour wins and the white button renders near-white text on a white fill. Caught on a
   screenshot: "Make an enquiry" was legible only while hovered. */
.site-footer .button--invert {
    color: var(--brand-800);
    text-decoration: none;
}

.site-footer .button--invert:hover {
    color: var(--brand-900);
    text-decoration: none;
}

.site-footer__cta {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-7);
    align-items: center;
    padding-block: var(--space-8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__cta h2 {
    color: #FFFFFF;
    margin-bottom: var(--space-3);
}

.site-footer__cta p {
    margin-bottom: 0;
    max-width: 54ch;
}

.site-footer__cta-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    align-items: flex-start;
}

.site-footer__tel {
    font-size: var(--step-1);
    font-weight: 700;
    color: #FFFFFF;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-6);
    padding-block: var(--space-7);
}

.site-footer__blurb {
    margin-top: var(--space-4);
    margin-bottom: 0;
    font-size: var(--step--1);
    max-width: 34ch;
}

.site-footer__col h3 {
    margin-bottom: var(--space-4);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.site-footer__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__col li + li {
    margin-top: var(--space-3);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--step--1);
}

.site-footer__legal p {
    margin: 0;
}

.site-footer__legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------------------------------------------------------------------------------------------
   Responsive. Most of the layout is intrinsic (auto-fit grids and clamped type), so there is far
   less here than the old site's separate responsive.css needed.
   --------------------------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .site-header__inner {
        justify-content: space-between;
    }

    .case-feature,
    .contact-layout,
    .site-footer__cta {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --space-9: 3.5rem;
        --space-8: 2.5rem;
    }

    .field-row,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .client-card {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .hero__actions .button,
    .contact-prompt__actions .button {
        width: 100%;
    }

    .site-footer__legal {
        justify-content: flex-start;
    }
}

/* ---------------------------------------------------------------------------------------------
   Motion and print.
   --------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------------------------------------------------------------------------------------------
   Utilities.
   --------------------------------------------------------------------------------------------- */

/* Available to assistive technology, invisible to everybody else. Used for table captions and
   any heading that the visual design carries but the markup still needs. NOT display:none, which
   removes it from the accessibility tree as well. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------------------------------------------------------------------------------------------
   Legal documents.

   Long-form prose, read rarely and usually under duress. The priorities are a comfortable
   measure, headings that are findable by eye, and enough vertical rhythm that a clause can be
   pointed at over the phone.
   --------------------------------------------------------------------------------------------- */
.legal {
    /* ~70 characters. Wider than this and the eye loses the line it is on. */
    max-width: 68ch;
    font-size: var(--step-0);
    line-height: 1.7;
    color: var(--text);
}

.legal__stamp {
    display: inline-block;
    margin: 0 0 var(--space-6);
    padding: var(--space-2) var(--space-3);
    background: var(--brand-50);
    border-radius: var(--radius);
    font-size: var(--step--1);
    color: var(--text-muted);
}

.legal h2 {
    margin-block: var(--space-7) var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: var(--step-2);
    line-height: 1.25;
}

.legal h2:first-of-type {
    margin-top: 0;
}

.legal h3 {
    margin-block: var(--space-5) var(--space-2);
    font-size: var(--step-1);
    line-height: 1.3;
}

.legal p {
    margin-block: 0 var(--space-4);
}

.legal ul,
.legal ol {
    margin-block: 0 var(--space-4);
    padding-left: var(--space-5);
}

.legal li {
    margin-bottom: var(--space-2);
}

/* Nested lists are common in these documents and need to stay visibly subordinate. */
.legal li > ul,
.legal li > ol {
    margin-top: var(--space-2);
    margin-bottom: 0;
}

.legal a {
    color: var(--brand-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal a:hover {
    color: var(--brand-900);
}

/* ⚠️ UNRESOLVED TEMPLATE PLACEHOLDER.
   The Fair Usage Policy and the Takedown Policy were published on the old site with the source
   template's own square brackets still in them, including a claim of ADR scheme membership with
   the scheme name missing. Rather than invent contractual limits, each one is marked. If this
   ever reaches production it will be loud, which is the point: silent placeholders are how they
   survived on the live site for over a year. */
.legal__todo {
    background: var(--warning-bg);
    color: var(--warning-fg);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px currentColor;
    font-weight: 600;
}

/* The lawful-basis table in the privacy policy. Scrolls rather than squashing on a phone. */
.legal__table-scroll {
    margin-bottom: var(--space-5);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--step--1);
}

.legal th,
.legal td {
    padding: var(--space-3);
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.legal thead th {
    background: var(--brand-50);
    font-weight: 600;
    color: var(--brand-900);
}

/* The cross-links at the foot of every policy. These documents incorporate each other by
   reference, so a reader who lands on one from a search result needs the others within reach. */
.legal__related {
    margin-top: var(--space-8);
    padding: var(--space-5);
    background: var(--brand-50);
    border-radius: var(--radius);
}

.legal__related h2 {
    margin: 0 0 var(--space-2);
    padding-top: 0;
    border-top: 0;
    font-size: var(--step-1);
}

.legal__related p {
    margin-bottom: var(--space-3);
    font-size: var(--step--1);
    color: var(--text-muted);
}

.legal__related ul {
    margin: 0 0 var(--space-3);
    padding-left: var(--space-5);
}

.legal__contact {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------------------------------
   Statutory company details in the footer.

   The Companies Act 2006 (and the Company, Limited Liability Partnership and Business (Names and
   Trading Disclosures) Regulations 2015) require a UK limited company to show its registered
   name, registered number, place of registration and registered office address on its website.
   Neither the old site nor the first cut of this one did. The registered name is NOT the trading
   name, so both appear.
   --------------------------------------------------------------------------------------------- */
.site-footer__statutory {
    margin: 0;
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--text-invert-muted);
    opacity: 0.85;
}

@media print {
    .site-header,
    .mobile-nav,
    .skip-link,
    .contact-prompt,
    .site-footer__cta {
        display: none;
    }

    body {
        color: #000;
    }

    .band {
        padding-block: var(--space-4);
    }
}
