/* ==========================================================================
   BDB Design Build - site stylesheet
   Loaded AFTER Bootstrap (css/bootstrap.min.css). Plain CSS, no build step.

   Contents
     1. Fonts (self-hosted Poppins)
     2. Design tokens (CSS custom properties)  <-- colours / type sizes live HERE only
     3. Base + Bootstrap overrides
     4. Buttons
     5. Section bands + eyebrow (shared by blocks)
     6. Header + navigation
     7. Footer
     8. Block styles (added in Stage 3)

   Source of values: the supplied PDF (1920px-wide desktop artboard). Sizes below
   are the PDF's px at 1920 expressed as fluid clamp() so they scale down for
   smaller screens. Colours were sampled from the PDF vector fills / rendered pixels.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts - Poppins (SIL OFL 1.1, see fonts/OFL-Poppins.txt). Latin subset.
      Weights in the PDF: Light 300 (nav + buttons), Regular 400, Medium 500
      (roles, timeline years). No italics are used in the designs.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colours (sampled from the PDF) */
    --bdb-navy: #021d49;              /* section + text navy */
    --bdb-light-blue: #b8dcff;        /* accent, light-blue sections, buttons */
    --bdb-white: #ffffff;
    --bdb-text-on-navy: #f6f6f6;      /* body copy on navy */
    --bdb-footer-grey: #4e4e4e;
    --bdb-footer-border: #2b2b2b;     /* 8px rule on top of the footer */
    --bdb-footer-muted: #c4c4c4;      /* PDF used #808080 (2.1:1 - fails WCAG AA); 4.8:1 here */
    --bdb-nav-pill-bg: rgba(255, 255, 255, 0.1);   /* header pill over the hero */
    --bdb-placeholder-bg: #99c4ed;    /* avatar card photo area */
    --bdb-placeholder-fg: #43709b;    /* avatar figure */
    --bdb-placeholder-text: #85868a;  /* "Image" label in timeline circles */

    /* KNOWN CONTRAST ISSUES IN THE APPROVED DESIGN (WCAG 2.2 AA, flagged in readme.html).
       Light blue on white and white on light blue are only 1.4:1. These three tokens default to the
       design's colours; changing them here is the only edit needed. Suggested accessible values
       (>= 3:1, which is what large text needs) are listed in readme.html > Accessibility. */
    --bdb-accent-on-light: var(--bdb-light-blue);   /* accent words on white / light-blue bands + white cards */
    --bdb-role-on-white: var(--bdb-light-blue);     /* team role text on a white card */
    --bdb-role-on-light-blue: var(--bdb-white);     /* team role text on a light-blue card */

    /* Type families */
    --bdb-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Type scale: PDF px @1920 -> clamp(mobile min, vw, desktop max).
       vw value = PDF px / 19.2 */
    --fs-body: clamp(1rem, 1.354vw, 1.625rem);              /* 26px */
    --fs-small: clamp(1rem, 1.458vw, 1.75rem);              /* 28px timeline captions */
    --fs-nav: clamp(0.9375rem, 1.146vw, 1.375rem);          /* 22px nav + buttons */
    --fs-display: clamp(2.375rem, 5.38vw, 6.45rem);         /* 103px hero H1 / statement heading */
    --fs-stat: clamp(2.75rem, 6.1vw, 7.3rem);               /* 117px big stat line */
    --fs-h2: clamp(1.875rem, 2.98vw, 3.6rem);               /* 57px section heading */
    --fs-card-title: clamp(1.5rem, 2.083vw, 2.5rem);        /* 40px card / person name */
    --fs-year: clamp(2.5rem, 5.58vw, 6.7rem);               /* 107px timeline year */
    --fs-footer: clamp(0.9375rem, 0.94vw, 1.125rem);        /* ~18px */
    --fs-legal: 0.8125rem;

    /* Letter-spacing, calibrated by comparing text widths in the PDF with Poppins' natural
       widths: display text, names, nav and buttons are tracked tight; the uppercase eyebrow
       is tracked open; body copy, captions and roles are not tracked. */
    --ls-tight: -0.028em;
    --ls-year: -0.045em;
    --ls-eyebrow: 0.048em;

    --lh-body: 1.385;                 /* 36px line pitch on 26px text */
    --lh-display: 0.9;                /* hero H1 pitch: 92px on 103px */

    /* Layout */
    --bdb-container: 1584px;          /* content width: 168px margins at 1920 */
    --bdb-radius-card: 1.25rem;       /* 20px */
    --bdb-radius-pill: 999px;
    --bdb-section-pad: clamp(3rem, 6.1vw, 7.3rem);          /* ~117px */

    /* Header vertical padding: tall over the hero (67px @1920), compact once it turns solid */
    --bdb-header-pad: clamp(0.875rem, 3.5vw, 4.1875rem);
    --bdb-header-pad-compact: clamp(0.75rem, 0.95vw, 1.125rem);

    /* Focus ring colour. Overridden to light blue on dark surfaces. */
    --bdb-focus: var(--bdb-navy);
}

/* --------------------------------------------------------------------------
   3. Base + Bootstrap overrides
   -------------------------------------------------------------------------- */
:root {
    --bs-body-font-family: var(--bdb-font);
    --bs-body-font-size: var(--fs-body);
    --bs-body-font-weight: 400;
    --bs-body-line-height: var(--lh-body);
    --bs-body-color: var(--bdb-navy);
    --bs-body-color-rgb: 2, 29, 73;
    --bs-body-bg: var(--bdb-white);
    --bs-link-color: var(--bdb-navy);
    --bs-link-color-rgb: 2, 29, 73;
    --bs-link-hover-color: var(--bdb-navy);
    --bs-link-hover-color-rgb: 2, 29, 73;
}

html {
    -webkit-text-size-adjust: 100%;
    /* keeps focused elements and #anchors clear of the fixed header */
    scroll-padding-top: clamp(5.5rem, 7vw, 8.5rem);
}

body {
    font-family: var(--bdb-font);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--bdb-navy);
    background: var(--bdb-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Content width: 1584px content box, with a comfortable gutter on small screens. */
.container {
    --bs-gutter-x: clamp(2rem, 4vw, 3rem);
    max-width: calc(var(--bdb-container) + var(--bs-gutter-x));
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    margin-top: 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-underline-offset: 0.2em;
}

/* Keyboard focus: visible on every interactive element, never removed. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.navbar-toggler:focus-visible {
    outline: 3px solid var(--bdb-focus);
    outline-offset: 3px;
    box-shadow: none;
}

.section--navy,
.site-header,
.site-footer {
    --bdb-focus: var(--bdb-light-blue);
}

/* Skip link (Bootstrap's .visually-hidden-focusable, made visible + styled) */
.visually-hidden-focusable:focus {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--bdb-light-blue);
    color: var(--bdb-navy);
    border-radius: var(--bdb-radius-pill);
    font-size: 1rem;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. Buttons
   .btn-pill : light-blue pill, navy Light text (Contact Us, What BDB do >)
   PDF: height 69px, Light 22px, fully rounded.
   -------------------------------------------------------------------------- */
.btn-pill {
    --bs-btn-padding-x: clamp(1.5rem, 3.1vw, 3.75rem);
    --bs-btn-padding-y: 0;
    --bs-btn-font-family: var(--bdb-font);
    --bs-btn-font-size: var(--fs-nav);
    --bs-btn-font-weight: 300;
    --bs-btn-line-height: 1.2;
    letter-spacing: var(--ls-tight);
    --bs-btn-color: var(--bdb-navy);
    --bs-btn-bg: var(--bdb-light-blue);
    --bs-btn-border-color: var(--bdb-light-blue);
    --bs-btn-border-width: 0;
    --bs-btn-border-radius: var(--bdb-radius-pill);
    --bs-btn-hover-color: var(--bdb-navy);
    --bs-btn-hover-bg: var(--bdb-white);
    --bs-btn-hover-border-color: var(--bdb-white);
    --bs-btn-active-color: var(--bdb-navy);
    --bs-btn-active-bg: var(--bdb-white);
    --bs-btn-active-border-color: var(--bdb-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(3rem, 3.59vw, 4.3125rem);   /* 69px */
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out;
}

/* Two-tone focus ring that works on white, light-blue and navy backgrounds. */
.btn-pill:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--bdb-navy), 0 0 0 6px var(--bdb-white);
}

/* --------------------------------------------------------------------------
   5. Section bands + eyebrow (shared; blocks add their own rules in Stage 3)
   -------------------------------------------------------------------------- */
.section {
    padding-block: var(--bdb-section-pad);
}
.section--white { background: var(--bdb-white); color: var(--bdb-navy); }
.section--navy { background: var(--bdb-navy); color: var(--bdb-text-on-navy); }
.section--light-blue { background: var(--bdb-light-blue); color: var(--bdb-navy); }

/* Headings inherit the band's text colour (Bootstrap 5.3: --bs-heading-color is inherit),
   so individual components can set their own heading colour without specificity fights. */
:root {
    --bs-heading-color: inherit;
}
.section--navy {
    --bs-heading-color: var(--bdb-white);
}

.eyebrow {
    margin: 0 0 1rem;
    font-size: var(--fs-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    color: var(--bdb-light-blue);
}

/* --------------------------------------------------------------------------
   6. Header + navigation
   Default: solid navy bar in normal flow.
   .site-header--overlay: transparent, absolutely positioned over the hero
   (set with 'hero_overlay_header' => true in the page's $page array).
   PDF @1920: logo 382x70 at x=168; nav pill ~729x70 centred on the page, white
   10% fill, links Light 22px with 42px between; Contact Us pill 236x69 at the right.
   -------------------------------------------------------------------------- */
.site-header {
    /* Pages with no hero: a solid navy bar that stays at the top of the viewport. */
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--bdb-navy);
    padding-block: var(--bdb-header-pad-compact);
}

/* Pages with a hero ('hero_overlay_header' => true): transparent over the photo at the top.
   Without JS it simply scrolls away with the page (position: absolute). With JS (assets/js/header.js
   adds .js to <html>) it is fixed, and turns into the solid compact bar once the page has been
   scrolled past the bottom of the menu (.is-scrolled), then back to transparent at the top. */
.site-header--overlay {
    position: absolute;
    inset: 0 0 auto 0;
    background: transparent;
    padding-block: var(--bdb-header-pad);
    transition: background-color 0.25s ease-in-out, padding-block 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}
.js .site-header--overlay {
    position: fixed;
}
.site-header--overlay.is-scrolled {
    background: var(--bdb-navy);
    padding-block: var(--bdb-header-pad-compact);
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.25);
}
/* header.js adds this briefly while measuring, so no transition runs during the measurement */
.site-header--overlay.is-measuring {
    transition: none;
}
@media (prefers-reduced-motion: reduce) {
    .site-header--overlay {
        transition: none;
    }
}

.site-header .navbar {
    --bs-navbar-padding-y: 0;
    --bs-navbar-padding-x: 0;
    padding: 0;
}

.site-header .navbar > .container {
    align-items: center;
}

.site-header .navbar-brand {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.site-header .navbar-brand img {
    display: block;
    width: clamp(11.875rem, 19.9vw, 23.875rem);        /* 382px at 1920 */
    height: auto;
}

/* Hamburger (white lines on dark) */
.site-header .navbar-toggler {
    --bs-navbar-toggler-padding-y: 0.5rem;
    --bs-navbar-toggler-padding-x: 0.75rem;
    --bs-navbar-toggler-border-radius: var(--bdb-radius-pill);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    --bs-navbar-toggler-focus-width: 0;
    border-color: rgba(255, 255, 255, 0.6);
    background: var(--bdb-nav-pill-bg);
}

.site-header .nav-link {
    color: var(--bdb-white);
    font-size: var(--fs-nav);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
    white-space: nowrap;
    transition: color 0.15s ease-in-out;
}

/* Hover/active are not in the PDF. They are white text with a light-blue underline (a colour
   change to light blue fails contrast over bright hero photos). Active is also Regular weight. */
.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-header .nav-link[aria-current="page"] {
    color: var(--bdb-white);
    text-decoration: underline;
    text-decoration-color: var(--bdb-light-blue);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.4em;
}
.site-header .nav-link.active,
.site-header .nav-link[aria-current="page"] {
    font-weight: 400;
}

/* Mobile / tablet: collapsed panel */
@media (max-width: 991.98px) {
    .site-header .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 1.5rem;
        background: rgba(2, 29, 73, 0.96);
        flex-basis: 100%;
        /* the header is fixed/sticky, so a long menu on a short screen must scroll inside itself */
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .site-header .navbar-nav {
        gap: 0.25rem;
        margin-bottom: 1rem;
    }
    .site-header .navbar-nav {
        --bs-navbar-nav-link-padding-x: 1rem;
    }
    .site-header .nav-link {
        padding-block: 0.75rem;
        font-size: 1.125rem;
        border-radius: 1rem;
    }
    .site-header .nav-link.active,
    .site-header .nav-link[aria-current="page"] {
        background: var(--bdb-nav-pill-bg);
    }
    .site-header .navbar-collapse > .btn-pill {
        display: flex;
        width: 100%;
        font-size: 1.125rem;
    }
}

/* Desktop: logo | centred pill | Contact Us. The collapse wrapper is flattened
   (display: contents) so the pill can be centred on the page, not between the siblings. */
@media (min-width: 992px) {
    .site-header .navbar > .container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        column-gap: clamp(0.75rem, 1.5vw, 2rem);
    }
    .site-header .navbar-brand {
        grid-column: 1;
        justify-self: start;
    }
    .site-header .navbar-collapse {
        display: contents !important;
    }
    .site-header .navbar-nav {
        --bs-navbar-nav-link-padding-x: clamp(0.5rem, 1.09vw, 1.3125rem);   /* 21px: 42px gap between links */
        /* Darkens the photo behind the pill a little so the white links always reach 4.5:1,
           even over the brightest parts of a hero image. */
        -webkit-backdrop-filter: brightness(0.7);
        backdrop-filter: brightness(0.7);
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        height: clamp(3rem, 3.65vw, 4.375rem);          /* ~70px */
        padding-inline: clamp(0.5rem, 1.93vw, 2.3125rem); /* 37px */
        border-radius: var(--bdb-radius-pill);
        background: var(--bdb-nav-pill-bg);
    }
    .site-header .nav-link {
        padding-block: 0.5rem;
    }
    .site-header .navbar-collapse > .btn-pill {
        grid-column: 3;
        justify-self: end;
        min-width: clamp(8.5rem, 12.3vw, 14.75rem);       /* 236px */
    }
    .site-header .navbar-toggler {
        display: none;
    }
}

/* Browsers without backdrop-filter: use a slightly darker pill fill instead. */
@supports not ((backdrop-filter: brightness(0.7)) or (-webkit-backdrop-filter: brightness(0.7))) {
    @media (min-width: 992px) {
        .site-header--overlay:not(.is-scrolled) .navbar-nav {
            background: rgba(2, 29, 73, 0.55);
        }
    }
}

/* --------------------------------------------------------------------------
   7. Footer
   PDF: 8px #2b2b2b top rule, #4e4e4e background. Row 1: stacked logo,
   nav (uppercase), accreditation logos, social icons. Then address block,
   then the small legal / credit line.
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bdb-footer-grey);
    border-top: 8px solid var(--bdb-footer-border);
    color: var(--bdb-white);
    font-size: var(--fs-footer);
    line-height: 1.3;
    padding-block: clamp(2rem, 2.9vw, 3.5rem) clamp(2.5rem, 4.7vw, 5.625rem);
}

.site-footer a {
    color: var(--bdb-footer-muted);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
.site-footer a:hover {
    color: var(--bdb-white);
    text-decoration: underline;
}

.site-footer__top {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: start;
}

.site-footer__brand img {
    display: block;
    width: clamp(11.875rem, 19.9vw, 23.875rem);
    height: auto;
}

.site-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.site-footer__nav li + li {
    margin-top: 0.4rem;
}
.site-footer__nav a[aria-current="page"] {
    color: var(--bdb-white);
    font-weight: 500;
}

.site-footer__accreditations {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem clamp(1.5rem, 4vw, 5.5rem);
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer__accreditations img {
    display: block;
    height: clamp(2.75rem, 3vw, 3.5rem);
    width: auto;
}
/* Shown only until the real logo files are added to assets/img/ */
.site-footer__accreditations .is-missing {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border: 1px dashed var(--bdb-footer-muted);
    border-radius: 0.5rem;
    color: var(--bdb-footer-muted);
    font-size: var(--fs-legal);
}

.site-footer__social {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer__social a {
    display: inline-flex;
    padding: 0.25rem;
    color: var(--bdb-footer-muted);
}
.site-footer__social a:hover {
    color: var(--bdb-white);
}
.site-footer__social svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.site-footer__contact {
    margin: clamp(2rem, 3.1vw, 3.75rem) 0 0;
    font-style: normal;
}
.site-footer__company {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--bdb-footer-muted);
    font-weight: 500;
}
.site-footer__contact p {
    margin: 0 0 1rem;
}
.site-footer__contact .label {
    color: var(--bdb-footer-muted);
    font-weight: 500;
}
.site-footer__contact a.is-primary {
    color: var(--bdb-white);
}

.site-footer__legal {
    margin: clamp(1.5rem, 2.3vw, 2.75rem) 0 0;
    font-size: var(--fs-legal);
    letter-spacing: 0.02em;
    color: var(--bdb-footer-muted);
}
.site-footer__legal a {
    text-decoration: underline;
}
.site-footer__legal .sep {
    margin-inline: 0.5rem;
    opacity: 0.6;
}

@media (min-width: 992px) {
    /* x positions at 1920: logo 168, nav 602, accreditations 943, social at the right */
    .site-footer__top {
        grid-template-columns: 1fr 0.8fr 1.6fr auto;
        column-gap: clamp(1.5rem, 2.5vw, 3rem);
    }
    .site-footer__social {
        justify-content: flex-end;
    }
}

/* --------------------------------------------------------------------------
   8. Block styles (one sub-section per block in includes/blocks/)
   -------------------------------------------------------------------------- */

/* Inline colour helper used inside raw-HTML block fields: <span class="text-accent">.
   Light blue on dark backgrounds; on light backgrounds it uses --bdb-accent-on-light (see tokens). */
.text-accent {
    color: var(--bdb-light-blue);
}
.section--white .text-accent,
.section--light-blue .text-accent,
.cta-card--light .text-accent {
    color: var(--bdb-accent-on-light);
}

/* ---- 8.1 hero-banner -----------------------------------------------------
   PDF: 1089px tall @1920 (56.7vw). Navy gradient measured from the artwork:
   ~100% navy at the left fading to ~5% at the right. Content block is vertically
   centred in the space below the header. */
.hero-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(30rem, 56.7vw, 68.0625rem);
    padding-block: clamp(6rem, 5.2vw, 6.25rem) clamp(3rem, 5vw, 6rem);
    background: var(--bdb-navy);
    color: var(--bdb-white);
    overflow: hidden;
}
.hero-banner__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, var(--bdb-navy) 14%, rgba(2, 29, 73, 0) 105%);
}
.hero-banner__content {
    width: 100%;
}
.hero-banner__eyebrow {
    margin-bottom: clamp(0.75rem, 1.9vw, 2.3rem);
}
.hero-banner__heading {
    margin: 0 0 clamp(1rem, 1.8vw, 2.2rem);
    font-size: var(--fs-display);
    line-height: var(--lh-display);
    letter-spacing: var(--ls-tight);
    color: var(--bdb-white);
    overflow-wrap: break-word;
}
.hero-banner__strapline {
    max-width: 33em;
    margin: 0;
    color: var(--bdb-white);
}
.hero-banner__cta {
    margin: clamp(1.5rem, 4.6vw, 5.5rem) 0 0;
}
.hero-banner__cta .btn-pill {
    min-width: clamp(13rem, 24.2vw, 29rem);          /* 464px @1920 */
}
@media (max-width: 767.98px) {
    /* On narrow screens the text spans the photo, so the overlay is stronger. */
    .hero-banner::before {
        background: linear-gradient(90deg, rgba(2, 29, 73, 0.92) 0%, rgba(2, 29, 73, 0.6) 100%);
    }
}

/* ---- 8.2 statement-heading ----------------------------------------------
   PDF: heading ~103px, intro 26px, stat ~117px; ~127px above / ~159px below. */
.statement-heading.section {
    padding-top: clamp(3rem, 6.6vw, 7.9rem);
    padding-bottom: clamp(3rem, 8.3vw, 9.95rem);
}
.statement-heading__heading {
    margin: 0 0 clamp(0.75rem, 1.6vw, 1.9rem);
    font-size: var(--fs-display);
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
    overflow-wrap: break-word;
}
.statement-heading__intro {
    margin: 0 0 clamp(0.75rem, 1.25vw, 1.5rem);
}
.statement-heading__stat {
    margin: 0;
    font-size: var(--fs-stat);
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
    overflow-wrap: break-word;
}

/* ---- 8.3 content-section ------------------------------------------------
   PDF: ~153px above and below; paragraphs one line apart (36px on 26px text). */
.content-section.section {
    /* white / light-blue band (PDF Meet The Team: ~144px above, ~139px below) */
    padding-block: clamp(3rem, 7.4vw, 8.9rem);
}
.content-section.section--navy {
    /* navy band (PDF Home: ~159px above, ~184px below) */
    padding-top: clamp(3rem, 8.3vw, 9.95rem);
    padding-bottom: clamp(3rem, 9.6vw, 11.5rem);
}
.content-section__heading {
    margin: 0 0 clamp(1.25rem, 2.5vw, 3rem);
    font-size: var(--fs-h2);
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
}
.content-section__inner > :last-child {
    margin-bottom: 0;
}
.content-section__inner p {
    margin: 0 0 1.385em;
}
.content-section__inner--wide { max-width: 75rem; }
.content-section__inner--narrow { max-width: 50rem; }
.content-section__inner--left { text-align: left; margin-right: auto; }
.content-section__inner--center { text-align: center; margin-inline: auto; }
.content-section__inner--right { text-align: right; margin-left: auto; }

/* ---- 8.4 cta-cards ------------------------------------------------------
   PDF: cards 503x590 with 38px gaps, radius ~20px, padding 62/45/44.
   Icon + two-tone title at the top; body text pinned to the bottom. */
.cta-cards.section {
    padding-block: clamp(3rem, 7vw, 8.4rem);
}
.cta-cards__grid {
    display: grid;
    gap: clamp(1rem, 2vw, 2.4rem);
    grid-template-columns: 1fr;
}
.cta-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3.23vw, 3.875rem) clamp(1.25rem, 2.34vw, 2.8125rem) clamp(1.5rem, 2.3vw, 2.75rem);
    border-radius: var(--bdb-radius-card);
    transition: box-shadow 0.2s ease-in-out;
}
.cta-card--light { background: var(--bdb-white); color: var(--bdb-navy); }
.cta-card--dark { background: var(--bdb-navy); color: var(--bdb-white); }
.cta-card:hover {
    box-shadow: 0 0.5rem 1.75rem rgba(2, 29, 73, 0.2);
}
.cta-card__top {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.1vw, 1.3rem);
}
.cta-card__icon {
    flex: none;
    width: clamp(3rem, 3.44vw, 4.125rem);            /* 66px */
    height: auto;
}
.cta-card__heading {
    margin: 0;
    font-size: var(--fs-card-title);
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
}
.cta-card__heading a {
    color: inherit;
    text-decoration: none;
}
.cta-card:hover .cta-card__heading a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
/* The stretched link covers the whole card, so the focus ring is drawn around the card. */
.cta-card a:focus-visible {
    outline: 0;
}
.cta-card .stretched-link:focus-visible::after {
    outline: 3px solid var(--bdb-focus);
    outline-offset: 3px;
    border-radius: var(--bdb-radius-card);
}
.cta-card--dark .stretched-link:focus-visible::after {
    outline-color: var(--bdb-light-blue);
}
.cta-card__text {
    max-width: 16em;
    margin: auto 0 0;
    padding-top: clamp(2rem, 5vw, 6rem);
}
@media (min-width: 992px) {
    .cta-cards__grid { grid-template-columns: repeat(3, 1fr); }
    .cta-card { min-height: min(30.7vw, 36.9rem); }   /* 590px @1920 */
}

/* ---- 8.5 team-grid ------------------------------------------------------
   PDF: cards 485 wide, 66px gaps, equal heights; photo 485x312; text padding ~57px.
   Role colours follow the design (light blue on white/navy cards, white on the
   light-blue card) via the --bdb-role-on-* tokens at the top of this file. NOTE: light blue
   on white and white on light blue are ~1.4:1 (see the contrast note on those tokens). */
.team-grid.section {
    padding-block: clamp(3rem, 6.8vw, 8.15rem);
}
.team-grid__heading {
    margin: 0 0 clamp(2rem, 4.7vw, 5.6rem);
    font-size: var(--fs-h2);
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
}
.team-grid__grid {
    display: grid;
    gap: clamp(1.25rem, 3.44vw, 4.125rem);
    grid-template-columns: 1fr;
}
.team-card {
    --team-bg: var(--bdb-white);
    --team-text: var(--bdb-navy);
    --team-name: var(--bdb-navy);
    --team-role: var(--bdb-role-on-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--bdb-radius-card);
    background: var(--team-bg);
    color: var(--team-text);
}
.team-card--light-blue {
    --team-bg: var(--bdb-light-blue);
    --team-role: var(--bdb-role-on-light-blue);
}
.team-card--navy {
    --team-bg: var(--bdb-navy);
    --team-text: var(--bdb-text-on-navy);
    --team-name: var(--bdb-white);
    --team-role: var(--bdb-light-blue);      /* light blue on navy is 10.5:1 - fine */
}
.team-card__photo {
    aspect-ratio: 485 / 312;
    background: var(--bdb-placeholder-bg);
    overflow: hidden;
}
.team-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-card__avatar {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--bdb-placeholder-fg);
}
.team-card__body {
    padding: clamp(1.1rem, 1.45vw, 1.75rem) clamp(1.25rem, 2.97vw, 3.6rem) clamp(1.5rem, 2.6vw, 3.1rem);
}
.team-card__name {
    margin: 0;
    font-size: var(--fs-card-title);
    line-height: 1.2;
    letter-spacing: var(--ls-tight);
    color: var(--team-name);
}
.team-card__role {
    margin: 0 0 clamp(0.75rem, 1.25vw, 1.5rem);
    font-weight: 500;
    color: var(--team-role);
}
.team-card__bio p {
    margin: 0 0 1.385em;
}
.team-card__bio > :last-child {
    margin-bottom: 0;
}
@media (min-width: 640px) {
    .team-grid__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .team-grid__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 8.6 timeline -------------------------------------------------------
   PDF: 2px white centre line at the page centre; left text right-aligned and ending
   ~145px before the line, right text starting ~117px after it; years 107px light blue,
   captions 28px white; 490px white circles; large start chevron + small chevrons.
   The design's entry offsets were hand-placed and irregular; this uses regular
   alternating spacing instead. */
.timeline {
    --tl-gap: clamp(1.5rem, 2.6vw, 3.125rem);
    --tl-offset-left: clamp(1.25rem, 7.55vw, 9.1rem);
    --tl-offset-right: clamp(1.25rem, 6.1vw, 7.3rem);
    --tl-circle: clamp(14rem, 25.5vw, 30.625rem);
    --tl-media-pt: calc(var(--tl-circle) / 2 - var(--fs-year) / 2);
    --tl-marker-w: clamp(1.5rem, 2.7vw, 3.25rem);
    --tl-marker-h: clamp(0.85rem, 1.46vw, 1.75rem);
    --tl-big-w: clamp(2.75rem, 4.6vw, 5.5rem);
    --tl-big-h: clamp(1.5rem, 2.6vw, 3.125rem);
    --tl-chevron: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 28'%3e%3cpath d='M4 4 26 24 48 4' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    --tl-chevron-big: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 50'%3e%3cpath d='M6 6 44 44 82 6' fill='none' stroke='%23ffffff' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}
.timeline.section {
    padding-top: clamp(4rem, 11vw, 13.3rem);
    padding-bottom: 0;
}
.timeline__heading {
    margin: 0 0 clamp(2rem, 4vw, 4.9rem);
    font-size: clamp(2.25rem, 6.04vw, 7.25rem);     /* 116px */
    line-height: 1.2;
}
.timeline__list {
    position: relative;
    margin: 0;
    padding: 0 0 clamp(3rem, 11.8vw, 14rem);
    list-style: none;
}
/* the line starts at the tip of the big chevron and runs to the bottom of the band */
.timeline__list::before {
    content: "";
    position: absolute;
    top: calc(var(--tl-big-h) - var(--fs-year) * 0.1 - 2px);
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--bdb-white);
}
.timeline__entry {
    position: relative;
    width: 50%;
    margin-top: var(--tl-gap);
}
.timeline__entry:first-child {
    margin-top: 0;
}
.timeline__entry--right {
    margin-left: 50%;
}
.timeline__entry--left .timeline__text {
    padding-right: var(--tl-offset-left);
    text-align: right;
}
.timeline__entry--right .timeline__text {
    padding-left: var(--tl-offset-right);
}
.timeline__year {
    margin: 0;
    font-size: var(--fs-year);
    font-weight: 500;
    line-height: 1;
    letter-spacing: var(--ls-year);
    color: var(--bdb-light-blue);
}
.timeline__caption {
    max-width: 20em;
    margin: clamp(0.4rem, 0.6vw, 0.75rem) 0 0;
    font-size: var(--fs-small);
    line-height: 1.22;
    color: var(--bdb-white);
}
.timeline__entry--left .timeline__caption {
    margin-left: auto;
}

/* chevron marker on the line, level with the middle of the year */
.timeline__entry::before {
    content: "";
    position: absolute;
    top: calc(var(--tl-pt, 0px) + var(--fs-year) / 2 - var(--tl-marker-h) / 2);
    width: var(--tl-marker-w);
    height: var(--tl-marker-h);
    background: var(--tl-chevron) center / contain no-repeat;
}
.timeline__entry--left::before { right: 0; transform: translateX(50%); }
.timeline__entry--right::before { left: 0; transform: translateX(-50%); }
.timeline__entry--first::before {
    top: calc(var(--fs-year) * -0.1);
    width: var(--tl-big-w);
    height: var(--tl-big-h);
    background-image: var(--tl-chevron-big);
}

/* entries with a circular image: full-width row, text on one half, circle on the other,
   circle centred on the year */
.timeline__entry--media {
    --tl-pt: var(--tl-media-pt);
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-left: 0;
}
.timeline__entry--media > * {
    flex: 0 0 50%;
    min-width: 0;
}
.timeline__entry--media .timeline__text {
    padding-top: var(--tl-media-pt);
}
.timeline__entry--media::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
.timeline__entry--media.timeline__entry--right .timeline__media {
    order: -1;
    justify-content: flex-end;
    padding-right: var(--tl-offset-left);
}
.timeline__entry--media.timeline__entry--left .timeline__media {
    padding-left: var(--tl-offset-right);
}
.timeline__media {
    display: flex;
    margin: 0;
}
.timeline__circle {
    display: block;
    flex: none;
    width: var(--tl-circle);
    height: var(--tl-circle);
    border-radius: 50%;
    object-fit: cover;
}
.timeline__circle--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bdb-white);
    font-size: clamp(2rem, 5.07vw, 6.1rem);          /* 97px */
    font-weight: 500;
    color: var(--bdb-placeholder-text);
}

/* Mobile: line at the left edge, everything stacked to its right */
@media (max-width: 767.98px) {
    .timeline__list::before {
        left: 1rem;
    }
    .timeline__entry,
    .timeline__entry--right,
    .timeline__entry--media {
        display: block;
        width: 100%;
        margin-left: 0;
        padding-left: 3rem;
    }
    .timeline__entry--left .timeline__text,
    .timeline__entry--right .timeline__text {
        padding-right: 0;
        padding-left: 0;
        text-align: left;
    }
    .timeline__entry--left .timeline__caption {
        margin-left: 0;
    }
    .timeline__entry--media {
        --tl-pt: 0px;
    }
    .timeline__entry--media .timeline__text {
        padding-top: 0;
    }
    .timeline__entry--media .timeline__media,
    .timeline__entry--media.timeline__entry--left .timeline__media,
    .timeline__entry--media.timeline__entry--right .timeline__media {
        order: 0;
        justify-content: flex-start;
        padding: 1.25rem 0 0;
    }
    .timeline__circle {
        width: min(100%, 18rem);
        height: auto;
        aspect-ratio: 1;
    }
    .timeline__entry::before,
    .timeline__entry--left::before,
    .timeline__entry--right::before,
    .timeline__entry--media::before {
        left: 1rem;
        right: auto;
        transform: translateX(-50%);
    }
}
