/* =========================================================================
   CPRP — site stylesheet (landing page + report flipbook)

   Mobile-first; desktop rules (min-width: 992px) sit right after the rules they
   change. Pixel values come from the Figma frames (desktop 1920, mobile 402).
   The flipbook is scoped under body.fb.

   Contents
      1. FONTS
      2. RESET
      3. LANDING — TOKENS & UTILITIES
      4. LANDING — COMPONENTS
      5. LANDING — HERO
      6. LANDING — CONTEXT
      7. LANDING — CO-CHAIRS & PANEL MEMBERS
      8. LANDING — FOCUS AREAS & RECOMMENDATIONS
      9. LANDING — REVIEW
     10. LANDING — REPORT
     11. LANDING — FOOTER
     12. LANDING — MOTION
     13. FLIPBOOK — VIEWER
     14. FLIPBOOK — PAGES & ANIMATIONS
     15. FLIPBOOK — SEARCH
   ========================================================================= */


/* =========================================================================
   1. FONTS
   ========================================================================= */

/* Self-hosted fonts. Montserrat (body) comes from Google Fonts, linked in the HTML. */

/* Futura PT (ParaType) — headings */
@font-face {
    font-family: "Futura PT";
    src:
        local("Futura PT Bold"),
        local("FuturaPT-Bold"),
        url("../fonts/FuturaPT-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* =========================================================================
   2. RESET
   ========================================================================= */

/* Shared reset for the landing page and the flipbook */

*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
}
h1,
h2,
h3,
p,
ul,
ol,
address {
    margin: 0;
}
ul,
ol {
    padding: 0;
    list-style: none;
}
address {
    font-style: normal;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}
img,
svg {
    vertical-align: middle;
}
img {
    max-width: 100%;
    height: auto;
}


/* =========================================================================
   3. LANDING — TOKENS & UTILITIES
   ========================================================================= */

/* Landing page (R2 layout): tokens, page defaults and utilities.
   Mobile-first; one desktop breakpoint at 992px, written next to the rules it changes.
   Pixel values come from the Figma frames (desktop 1920, mobile 402); desktop sizes are fluid
   (clamp) so the design size is reached at 1920px. */

:root {
    /* Color */
    --blue: #217ec3; /* main accent (R2.2 palette) */
    --cyan: #6bccdf;
    --orange: #f0531c; /* only the line under the "Four Sources" photos still uses it */
    --navy: #003149;
    --slate: #3d6378;
    --cream: #f8f2e6;
    --sky: #e5ecf2;
    --pale: #d9e0e5;
    --mist: #eeeff1;

    /* Font family: Montserrat from Google Fonts, Futura PT self-hosted */
    --font-primary: "Montserrat", system-ui, sans-serif;
    --font-heading: "Futura PT", var(--font-primary);

    --gutter: 20px;
    --nav-h: 70px;
}
@media (min-width: 992px) {
    :root {
        --gutter: clamp(40px, 10.4vw, 200px);
        --nav-h: 80px;
    }
}

html {
    font-size: 100%; /* 16px base: all type and spacing below are in rem */
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}
body {
    color: var(--navy);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* UTILITIES ============================================================== */
.wrap {
    width: 100%;
    max-width: calc(1520px + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}
/* Futura headings; each section sets its own size */
.heading,
.heading-font {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}
.text-blue {
    color: var(--blue);
}
.text-navy {
    color: var(--navy);
}
.text-slate {
    color: var(--slate);
}
/* Line break the design asks for on desktop only */
.br-desktop {
    display: none;
}
@media (min-width: 992px) {
    .br-desktop {
        display: inline;
    }
}

/* Heading rule used by the people sections: slate line with a blue start */
.rule {
    position: relative;
    height: 3px;
    background: var(--slate);
}
.rule::before {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 125px;
    height: 11px;
    border-radius: 0 6px 6px 0;
    background: var(--blue);
}
@media (max-width: 991.98px) {
    .rule {
        height: 2px;
    }
    .rule::before {
        top: -2px;
        width: 83px;
        height: 5px;
    }
}


/* =========================================================================
   4. LANDING — COMPONENTS
   ========================================================================= */

/* BUTTONS ================================================================ */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 42px;
    padding-inline: 1.5rem;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: filter 0.2s;
}
.btn-cta:hover {
    filter: brightness(1.12);
}
.btn-cta--navy {
    background: var(--navy);
}
.btn-more {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding-inline: 0.875rem;
    border-radius: 3px;
    background: var(--cyan);
    color: #fff;
    font-size: 0.6875rem;
    transition: filter 0.2s;
}
.btn-more:hover {
    filter: brightness(1.12);
}
@media (min-width: 992px) {
    .btn-cta {
        font-size: 0.875rem;
    }
    .btn-more {
        height: clamp(34px, 2.35vw, 45px);
        padding-inline: clamp(1.25rem, 1.56vw, 1.875rem);
        border-radius: 4px;
        font-size: clamp(0.875rem, 0.94vw, 1.125rem);
    }
}

/* CAROUSEL (behaviour in script.js, section 3) ========================= */
.carousel__track {
    position: relative;
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
    display: none;
}
.carousel__track img {
    flex: none;
    object-fit: cover;
    scroll-snap-align: center;
}
.carousel__nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.875rem;
    padding-inline: var(--gutter);
}
/* Filled while the button can scroll; outlined and faded once it reaches the end */
.carousel__btn {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1.5px solid var(--blue);
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    transition:
        background-color 0.2s,
        color 0.2s,
        opacity 0.2s,
        filter 0.2s;
}
.carousel__btn:not(:disabled):hover {
    filter: brightness(1.12);
}
.carousel__btn:disabled {
    background: transparent;
    color: var(--blue);
    opacity: 0.4;
    cursor: default;
}
@media (min-width: 992px) {
    .carousel__btn {
        width: clamp(50px, 3.44vw, 66px);
        height: clamp(50px, 3.44vw, 66px);
    }
}

/* NAV (behaviour in script.js, section 2) =================================== */
.nav {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
}
.nav__bar {
    display: flex;
    align-items: stretch;
    height: var(--nav-h);
    background: #fff;
}
.nav__toggle {
    flex: none;
    width: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
}
.nav__links {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav__links::-webkit-scrollbar {
    display: none;
}
.nav__link {
    display: flex;
    align-items: center;
    height: 100%;
    padding-inline: 2.75rem;
    border-top: 4px solid transparent;
    color: var(--navy);
    font-size: 0.8125rem;
    white-space: nowrap;
    transition:
        background-color 0.2s,
        color 0.2s;
}
.nav__link:hover {
    color: var(--blue);
}
.nav__link.is-active {
    background: var(--blue);
    border-top-color: var(--navy);
    color: #fff;
}
/* Mobile menu: the tab strip opens as a dropdown list */
@media (max-width: 991.98px) {
    .nav.is-open .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 0.5rem var(--gutter) 1.25rem;
        border-radius: 0 0 20px 20px;
        background: #fff;
        box-shadow: 0 12px 24px rgb(0 0 0 / 0.08);
    }
    .nav.is-open .nav__link {
        height: auto;
        padding: 0.75rem 0;
        border: 0;
        background: none;
        color: var(--navy);
        font-size: 0.9375rem;
    }
    .nav.is-open .nav__link.is-active {
        color: var(--blue);
    }
}
@media (min-width: 992px) {
    /* Transparent over the hero; the tab strip is 987px wide at 1920 */
    .nav__bar {
        width: max-content;
        max-width: 100%;
        margin-inline: auto;
        justify-content: center;
        background: transparent;
    }
    .nav__toggle {
        display: none;
    }
    .nav__link {
        justify-content: center;
        padding-inline: clamp(0.875rem, 1.7vw, 2rem);
        font-size: clamp(0.875rem, 0.94vw, 1.125rem);
    }
    .nav__link.is-active {
        background: var(--blue);
    }
    /* The bar is transparent over the hero; once the page scrolls it gets a full-width background */
    .nav {
        transition:
            background-color 0.25s,
            box-shadow 0.25s;
    }
    .nav.is-scrolled {
        background: #fff;
        box-shadow: 0 2px 16px rgb(0 49 73 / 0.1);
    }
}


/* =========================================================================
   5. LANDING — HERO
   ========================================================================= */

/* HERO: title, three photo cards, CTA pill on a pale striped background */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + 3.125rem);
    padding-bottom: 3.75rem;
    background:
        repeating-linear-gradient(-48deg, transparent 0 220px, rgb(255 255 255 / 0.35) 220px 330px),
        var(--mist);
    text-align: center;
}
.hero__title {
    margin-inline: auto;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}
.hero__subtitle {
    margin: 1.25rem auto 0;
    max-width: 30ch;
    color: var(--slate);
    font-size: 0.875rem;
    line-height: 1.3;
}
.hero__cards {
    display: grid;
    grid-template-columns: min(227px, 100%);
    gap: 1.375rem;
    justify-content: center;
    margin-top: 2.375rem;
}
.hero-card {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.25rem;
    width: 100%;
    aspect-ratio: 227 / 158;
    overflow: hidden;
    border-top: 4px solid var(--blue);
    color: #fff;
}
/* The photo is exported from Figma with its blue duotone already applied */
.hero-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card__icon,
.hero-card__label {
    position: relative;
    z-index: 1;
}
.hero-card__icon {
    font-size: 1.625rem;
}
.hero-card__label {
    max-width: none;
    font-size: 0.75rem;
    line-height: 1.25;
}

/* CTA: icon tabs pinned to the right edge on mobile, they follow the scroll */
.hero__cta {
    position: fixed;
    z-index: 5;
    right: 0;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    display: grid;
    gap: 0.375rem;
}
.hero__cta .btn-cta {
    width: 52px;
    height: 66px;
    padding: 0;
    border-radius: 12px 0 0 12px;
    font-size: 0;
    gap: 0;
}
.hero__cta iconify-icon {
    font-size: 1.875rem;
}
.hero__cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
@media (min-width: 992px) {
    .hero {
        padding-top: calc(var(--nav-h) + clamp(3.75rem, 7.2vw, 8.625rem));
        padding-bottom: clamp(3.75rem, 7vw, 8.125rem);
    }
    .hero__title {
        font-size: clamp(2.375rem, 3.125vw, 3.75rem);
        line-height: 1.1;
    }
    .hero__title::after {
        content: none;
    }
    .hero__subtitle {
        max-width: none;
        margin-top: clamp(1rem, 1.4vw, 1.625rem);
        font-size: clamp(0.9375rem, 1.05vw, 1.25rem);
    }
    .hero__cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.625rem;
        margin-top: clamp(3.5rem, 6.4vw, 7.625rem);
    }
    .hero-card {
        width: 100%;
        aspect-ratio: 500 / 349;
        gap: 0.625rem;
        border-top-width: 10px;
    }
    .hero-card__icon {
        font-size: clamp(2.5rem, 2.8vw, 3.3125rem);
    }
    .hero-card__label {
        max-width: none;
        font-size: clamp(1.125rem, 1.35vw, 1.625rem);
    }

    /* Pill bar */
    .hero__cta {
        position: static;
        display: flex;
        width: max-content;
        max-width: calc(100% - 2 * var(--gutter));
        gap: clamp(0.625rem, 0.73vw, 0.875rem);
        margin: clamp(2.25rem, 3.4vw, 4rem) auto 0;
        padding: clamp(0.5rem, 0.73vw, 0.875rem);
        border-radius: 14px;
        background: var(--pale);
    }
    .hero__cta .btn-cta {
        width: auto;
        height: clamp(36px, 2.2vw, 42px);
        padding-inline: clamp(1rem, 1.8vw, 2.125rem);
        border-radius: 10px;
        font-size: clamp(0.6875rem, 0.68vw, 0.8125rem);
        gap: 0.5rem;
    }
    .hero__cta iconify-icon {
        font-size: 1rem;
    }
    .hero__cta span {
        position: static;
        width: auto;
        height: auto;
        clip-path: none;
    }

    /* Docked: once the pill has scrolled away it becomes the mobile icon tabs, centred on the right edge
       (class set by initCtaDock in script.js) */
    .hero__cta.is-docked {
        position: fixed;
        top: 50%;
        right: 0;
        bottom: auto;
        display: grid;
        width: auto;
        max-width: none;
        gap: 0.375rem;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: none;
        transform: translateY(-50%);
        animation: cta-dock-in 0.25s ease-out;
    }
    .hero__cta.is-docked .btn-cta {
        width: 52px;
        height: 66px;
        padding: 0;
        border-radius: 12px 0 0 12px;
        font-size: 0;
        gap: 0;
    }
    .hero__cta.is-docked iconify-icon {
        font-size: 1.875rem;
    }
    .hero__cta.is-docked span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
}
@keyframes cta-dock-in {
    from {
        opacity: 0;
        transform: translate(100%, -50%);
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero__cta.is-docked {
        animation: none;
    }
}


/* =========================================================================
   6. LANDING — CONTEXT
   ========================================================================= */

/* CONTEXT: photo with the pale "Shopping has changed" panel */
.context {
    display: grid;
    background: var(--pale);
    color: var(--navy);
}
.context__img {
    width: 100%;
    height: auto;
    aspect-ratio: 362 / 245;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
}
.context__text {
    padding: 2.25rem var(--gutter) 2.75rem;
}
.context__title {
    font-size: 1.625rem;
    line-height: 1.2;
}
.context__body {
    color: var(--slate);
    display: grid;
    gap: 1.125rem;
    margin-top: 1.75rem;
    font-size: 0.875rem;
    line-height: 1.3;
}
@media (max-width: 991.98px) {
    /* Mobile: photo and pale panel sit inside a 362px card with the page showing at the sides */
    .context {
        margin: 2.25rem 1.25rem 0;
        background: none;
    }
    .context__text {
        padding: 2.125rem 2.25rem 2.5rem;
        background: var(--pale);
    }
}
@media (min-width: 992px) {
    .context {
        grid-template-columns: 48.3fr 51.7fr;
        align-items: stretch;
    }
    .context__img {
        height: 100%;
        aspect-ratio: auto;
    }
    .context__text {
        align-self: center;
        max-width: calc(745px + 2 * clamp(24px, 3.4vw, 66px));
        padding: clamp(2.5rem, 4.5vw, 5.375rem) clamp(1.5rem, 3.4vw, 4.125rem);
    }
    .context__title {
        font-size: clamp(2.125rem, 3.125vw, 3.75rem);
        line-height: 1.2;
    }
    .context__body {
        gap: clamp(0.875rem, 1.2vw, 1.375rem);
        margin-top: clamp(1.75rem, 3.2vw, 3.875rem);
        font-size: clamp(0.8125rem, 0.94vw, 1.125rem);
        line-height: 1.3;
    }
}


/* =========================================================================
   7. LANDING — CO-CHAIRS & PANEL MEMBERS
   ========================================================================= */

.people {
    padding-block: 3.5rem 4.375rem;
    background: #fff;
}
.people__head {
    display: block;
}
.people__title {
    font-size: 1.875rem;
    line-height: 1.15;
}
.people__title .text-navy,
.people__title .text-slate {
    display: inline;
}
.people__head--chairs .people__title {
    color: var(--navy);
}
.people__head--members .people__title {
    color: var(--slate);
}
.people__intro {
    margin-top: 1rem;
    color: var(--slate);
    font-size: 0.8125rem;
    line-height: 1.4;
}
.people .rule {
    margin-top: 1.625rem;
}

/* CO-CHAIRS: portrait on a pale panel, name on navy */
.chairs {
    display: grid;
    gap: 1.375rem;
    margin-top: 2.5rem;
}
.chair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    aspect-ratio: 351 / 175;
    margin-top: 2.125rem;
}
/* The portrait stands on the panel's bottom edge and rises above its top edge */
.chair__photo {
    position: relative;
    background: var(--sky);
}
.chair__photo img {
    position: absolute;
    bottom: 0;
    left: calc(var(--l) * 1%);
    width: calc(var(--w) * 1%);
    max-width: none;
    height: auto;
}
.chair__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.875rem;
    background: var(--navy);
    color: #fff;
}
.chair__name {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.25;
}
.chair__role {
    margin-top: 0.75rem;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.3;
}

/* MEMBERS: portrait on sky blue, details on slate */
.people__head--members {
    margin-top: 4.375rem;
}
.members {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.375rem;
}
.member {
    display: grid;
    grid-template-columns: 45% 1fr;
}
.member__photo {
    background: var(--sky);
    line-height: 0;
}
.member__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.member__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--slate);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.3;
}
.member__name {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
}
@media (min-width: 992px) {
    .people {
        padding-block: clamp(4.375rem, 7.8vw, 9.375rem) clamp(5rem, 8vw, 9.625rem);
    }
    .people__title {
        font-size: clamp(2.25rem, 3.125vw, 3.75rem);
        line-height: 1.1;
    }
    .people__head--chairs {
        display: grid;
        grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
        align-items: center;
        gap: 2.5rem;
    }
    .people__intro {
        margin: 0;
        padding-left: clamp(0, 0.4vw, 0.5rem);
        font-size: clamp(1rem, 1.35vw, 1.625rem);
        line-height: 1.2;
    }
    .people .rule {
        margin-top: clamp(2rem, 3.5vw, 4.125rem);
    }

    .chairs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.875rem, 4vw, 4.875rem);
        margin-top: clamp(4.375rem, 7.4vw, 8.875rem);
    }
    .chair {
        aspect-ratio: 751 / 375;
        margin-top: 0;
    }
    .chair__text {
        padding: clamp(1rem, 1.35vw, 1.625rem);
    }
    .chair__name {
        font-size: clamp(1.375rem, 1.9vw, 2.25rem);
        font-weight: 600;
    }
    .chair__role {
        margin-top: clamp(0.875rem, 1.4vw, 1.625rem);
        font-size: clamp(0.6875rem, 0.83vw, 1rem);
        max-width: 18em;
    }

    .people__head--members {
        margin-top: clamp(5rem, 8vw, 9.625rem);
    }
    .members {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(1.5rem, 3.6vw, 4.8125rem) clamp(1.5rem, 3.3vw, 3.9375rem);
        margin-top: clamp(2.75rem, 4.4vw, 5.25rem);
    }
    .member {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    /* Portraits keep their Figma size (--w, % of the card) and may rise above the box (--t, % of the card width);
       the orange text block is stacked above, so anything below the box is hidden */
    .member__photo {
        position: relative;
        aspect-ratio: 465 / 371;
    }
    .member__photo img {
        position: absolute;
        top: 0;
        left: 50%;
        translate: -50% 0;
        width: calc(var(--w, 75) * 1%);
        height: auto;
        margin-top: calc(var(--t, 0) * 1%);
        object-fit: initial;
    }
    .member__text {
        position: relative;
        justify-content: flex-start;
        gap: clamp(0.625rem, 1.1vw, 1.25rem);
        min-height: clamp(160px, 12.5vw, 240px);
        padding: clamp(1.125rem, 1.6vw, 1.875rem) clamp(1.25rem, 2.4vw, 2.875rem);
        font-size: clamp(0.6875rem, 0.78vw, 0.9375rem);
    }
    .member__name {
        font-size: clamp(1.375rem, 1.7vw, 2rem);
        line-height: 1.15;
    }
}


/* =========================================================================
   8. LANDING — FOCUS AREAS & RECOMMENDATIONS
   ========================================================================= */

/* Both sections sit on one cream background; the focus panel starts above it */
.cream {
    background: var(--cream);
}

/* FOCUS AREAS: sky-blue panel with a navy offset shadow */
.focus {
    position: relative;
    padding-inline: 1.25rem;
}
.focus__panel {
    position: relative;
    top: -40px;
    margin-bottom: -40px;
    padding: 2.25rem 1.25rem 2.5rem;
    background: var(--sky);
    box-shadow: 8px 8px 0 var(--navy);
}
.focus__title {
    color: var(--navy);
    font-size: 1.875rem;
    line-height: 1.1;
    text-align: center;
}
.focus__grid {
    display: grid;
    gap: 1.375rem;
    margin-top: 1.75rem;
}
.focus__item {
    display: grid;
    grid-template-columns: 78px 1fr;
    grid-template-areas:
        "icon title"
        "icon text";
    align-items: center;
    column-gap: 0.875rem;
    text-align: center;
}
.focus__item img {
    grid-area: icon;
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}
.focus__item h3 {
    grid-area: title;
    align-self: end;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--blue);
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.25;
}
.focus__item p {
    grid-area: text;
    align-self: start;
    padding-top: 0.5rem;
    color: var(--slate);
    font-size: 0.6875rem;
    line-height: 1.3;
}
@media (min-width: 992px) {
    .focus {
        padding-inline: 0;
    }
    .focus__panel {
        width: min(1660px, 100% - 2 * clamp(20px, 6.8vw, 131px));
        margin-inline: auto;
        top: clamp(-90px, -4.7vw, -50px);
        margin-bottom: clamp(-90px, -4.7vw, -50px);
        padding: clamp(1.875rem, 2.4vw, 2.875rem) 0 clamp(2.25rem, 3.4vw, 4rem);
        box-shadow: clamp(8px, 0.52vw, 10px) clamp(8px, 0.52vw, 10px) 0 var(--navy);
    }
    .focus__title {
        font-size: clamp(2.125rem, 2.8vw, 3.375rem);
    }
    .focus__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        margin-top: clamp(1.875rem, 2.6vw, 3.125rem);
        padding-inline: clamp(0.625rem, 4vw, 4.8125rem);
    }
    .focus__item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "title"
            "text";
        justify-items: center;
        align-content: start;
        padding: 0 clamp(0.875rem, 1.8vw, 2.125rem);
    }
    .focus__item + .focus__item {
        border-left: 2px solid var(--navy);
    }
    .focus__item img {
        width: clamp(70px, 5.9vw, 113px);
        max-height: none;
        height: clamp(68px, 5.7vw, 110px);
    }
    .focus__item h3 {
        align-self: auto;
        display: grid;
        align-items: center;
        min-height: 2.5em;
        margin-top: clamp(1.125rem, 1.7vw, 2rem);
        padding: 0;
        border: 0;
        font-size: clamp(1rem, 1.25vw, 1.5rem);
        font-weight: 600;
    }
    .focus__item h3::after {
        content: "";
        width: clamp(40px, 3.45vw, 66px);
        height: 1px;
        margin: clamp(0.875rem, 1.3vw, 1.5625rem) auto 0;
        background: var(--blue);
    }
    .focus__item p {
        padding-top: clamp(0.875rem, 1.3vw, 1.5625rem);
        font-size: clamp(0.75rem, 0.9vw, 1.0625rem);
        line-height: 1.4;
    }
}

/* RECOMMENDATIONS: one white card per category */
.recs {
    padding-block: 3.5rem 4.375rem;
}
.recs__title {
    color: var(--navy);
    font-size: 1.875rem;
    line-height: 1.2;
    text-align: center;
}
.recs__intro {
    margin: 1.375rem auto 0;
    max-width: 38ch;
    color: var(--slate);
    font-size: 0.8125rem;
    line-height: 1.35;
    text-align: center;
}
.recs__list {
    display: grid;
    gap: 0.75rem;
    margin-top: 2.5rem;
}
.rec {
    display: grid;
    gap: 1.375rem;
    padding: 1.25rem 1rem 1.5rem 1.125rem;
    border-top: 5px solid var(--slate);
    background: #fff;
}
.rec__cat {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 1.125rem;
}
.rec__cat img {
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: contain;
}
.rec__cat h3 {
    margin-bottom: 0.75rem;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
}
.rec__tag {
    padding: 0.25rem 0.875rem;
    border-top: 1px solid var(--slate);
    background: var(--pale);
    color: var(--navy);
    font-size: 0.5625rem;
    line-height: 1.5;
}
.rec__body ol {
    counter-reset: rec var(--start, 0);
}
.rec__body ol[start="3"] {
    --start: 2;
}
.rec__body ol[start="5"] {
    --start: 4;
}
.rec__body ol[start="6"] {
    --start: 5;
}
.rec__body li {
    position: relative;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    column-gap: 0.875rem;
    padding-block: 0.875rem;
    counter-increment: rec;
    color: var(--navy);
    font-size: 0.6875rem;
    line-height: 1.25;
}
.rec__body li + li {
    border-top: 1px solid #555;
}
.rec__body li::before {
    content: counter(rec);
    color: var(--pale);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
@media (min-width: 992px) {
    .recs {
        padding-block: clamp(4.375rem, 6.2vw, 7.5rem) clamp(4.375rem, 6.4vw, 7.75rem);
    }
    .recs__title {
        font-size: clamp(2.125rem, 2.8vw, 3.375rem);
    }
    .recs__intro {
        max-width: 965px;
        margin-top: clamp(1.25rem, 1.8vw, 2.125rem);
        font-size: clamp(0.875rem, 0.94vw, 1.125rem);
    }
    .recs__list {
        gap: clamp(0.75rem, 1vw, 1.25rem);
        width: min(1403px, 100%);
        margin: clamp(2.5rem, 4.6vw, 5.5rem) auto 0;
    }
    .rec {
        grid-template-columns: 40fr 60fr;
        align-items: center;
        gap: 0;
        padding: clamp(1.5rem, 2.3vw, 2.75rem) clamp(1.25rem, 2.9vw, 3.5rem) clamp(1.5rem, 2.3vw, 2.75rem) 0;
        border-top: 0;
        border-left: clamp(6px, 0.52vw, 10px) solid var(--slate);
    }
    .rec__cat {
        grid-template-columns: 44% 1fr;
        gap: clamp(0.625rem, 1.2vw, 1.5rem);
        padding-left: clamp(1rem, 1.9vw, 2.3125rem);
    }
    .rec__cat img {
        max-height: none;
    }
    .rec__cat h3 {
        margin-bottom: clamp(0.875rem, 1.6vw, 1.875rem);
        font-size: clamp(1.25rem, 1.75vw, 2.125rem);
        line-height: 1.2;
    }
    .rec__tag {
        padding: clamp(0.3125rem, 0.5vw, 0.625rem) clamp(0.875rem, 1.1vw, 1.3125rem);
        font-size: clamp(0.6875rem, 0.8vw, 0.9375rem);
    }
    .rec__body li {
        grid-template-columns: clamp(40px, 4.8vw, 92px) 1fr;
        column-gap: clamp(0.375rem, 0.8vw, 0.9375rem);
        padding-block: clamp(0.875rem, 1.4vw, 1.75rem);
        font-size: clamp(0.8125rem, 0.94vw, 1.125rem);
        line-height: 1.2;
        min-height: clamp(84px, 6.5vw, 126px);
    }
    .rec__body li::before {
        font-size: clamp(3.375rem, 5vw, 6rem);
    }
}


/* =========================================================================
   9. LANDING — REVIEW
   ========================================================================= */

/* REVIEW: "How the Panel conducted its review" — stats, sources, photo strip, survey, consultations */
.review {
    background: #fff;
}
.review__head {
    padding-block: 3.75rem 3.125rem;
    text-align: center;
}
.review__eyebrow {
    color: var(--blue);
    font-size: 0.6875rem;
    line-height: 1.4;
}
.review__title {
    margin-top: 1.75rem;
    color: var(--navy);
    font-size: 1.375rem;
    line-height: 1.2;
}
.review__intro {
    margin: 1.625rem auto 0;
    max-width: 38ch;
    color: var(--slate);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* STATS: cream band with a blue rule on top */
.stats {
    border-top: 3px solid var(--blue);
    background: var(--cream);
}
.stats__inner {
    display: grid;
    gap: 2.75rem;
    padding-block: 3.75rem 3.5rem;
    text-align: center;
}
.stat {
    display: grid;
    justify-items: center;
    align-content: start;
}
.stat img {
    width: auto;
    height: 76px;
}
.stat__num {
    margin-top: 1.25rem;
    color: var(--navy);
    font-family: var(--font-heading);
    font-size: 3.625rem;
    font-weight: 700;
    line-height: 1;
}
.stat__label {
    max-width: 17em;
    margin-top: 0.75rem;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.25;
}
@media (min-width: 992px) {
    .review__head {
        padding-block: clamp(5rem, 8.3vw, 10rem) clamp(3.75rem, 6.2vw, 7.5rem);
    }
    .review__eyebrow {
        font-size: clamp(1rem, 1.25vw, 1.5rem);
    }
    .review__title {
        margin-top: clamp(1.75rem, 2.6vw, 3.125rem);
        font-size: clamp(2.125rem, 3.125vw, 3.75rem);
        line-height: 1.1;
    }
    .review__intro {
        max-width: 590px;
        margin-top: clamp(1.625rem, 2.6vw, 3.125rem);
        font-size: clamp(0.875rem, 0.94vw, 1.125rem);
    }
    .stats {
        border-top-width: 4px;
    }
    .stats__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(1.25rem, 3vw, 3.75rem);
        padding-block: clamp(2.5rem, 3.4vw, 4rem) clamp(2.5rem, 3.4vw, 4rem);
    }
    .stat img {
        height: clamp(64px, 5.3vw, 102px);
    }
    .stat__num {
        margin-top: clamp(1.875rem, 3.6vw, 4.375rem);
        font-size: clamp(3.5rem, 5.2vw, 6.25rem);
    }
    .stat__label {
        margin-top: clamp(0.5rem, 0.8vw, 0.875rem);
        font-size: clamp(1.0625rem, 1.35vw, 1.625rem);
        line-height: 1.15;
    }
}

/* SOURCES: slate panel with four photo cards, over a soft grey fade */
.sources {
    padding: 3.75rem 1.25rem 0;
}
.sources__panel {
    padding: 1.875rem 1.625rem 2rem;
    background: var(--cyan);
}
.sources__title {
    color: #fff;
    font-size: 1.375rem;
    line-height: 1.2;
    text-align: center;
}
.sources__list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.375rem;
}
.sources__list li {
    border-bottom: 0;
    background: var(--navy);
}
.sources__list img {
    display: block;
    width: 100%;
    aspect-ratio: 348 / 330;
    object-fit: cover;
    border-bottom: 3px solid var(--orange);
}
.sources__list p {
    margin: 0.875rem 0;
    padding: 0.25rem 0 0.25rem 0.875rem;
    border-left: 1px solid rgb(255 255 255 / 0.5);
    margin-left: 1.125rem;
    color: #fff;
    font-size: 0.8125rem;
    line-height: 1.25;
}
@media (min-width: 992px) {
    .sources {
        padding: clamp(2.5rem, 4vw, 4.75rem) 0 0;
        background: linear-gradient(to bottom, #fff 0, #fff 18%, #d3dcdc 18%, #fff 100%);
    }
    .sources__panel {
        width: min(1580px, 100% - 2 * clamp(20px, 8.9vw, 170px));
        margin-inline: auto;
        padding: clamp(1.5rem, 2.6vw, 3.125rem) clamp(1.5rem, 2.6vw, 3.125rem) clamp(1.875rem, 3vw, 3.625rem);
    }
    .sources__title {
        font-size: clamp(1.875rem, 2.8vw, 3.375rem);
    }
    .sources__list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(0.5rem, 0.55vw, 0.6875rem);
        margin-top: clamp(1.625rem, 2.6vw, 3.125rem);
    }
    .sources__list img {
        border-bottom-width: 5px;
    }
    .sources__list p {
        margin: clamp(1rem, 1.6vw, 1.875rem) 0;
        margin-left: clamp(1rem, 1.5vw, 1.75rem);
        padding-left: clamp(0.625rem, 1vw, 1.1875rem);
        font-size: clamp(0.875rem, 1.04vw, 1.25rem);
    }
}

/* FEEDBACK statement */
.feedback {
    padding-block: 3.25rem 4.125rem;
    color: var(--navy);
    font-size: 1.375rem;
    line-height: 1.2;
}
@media (min-width: 992px) {
    .feedback {
        max-width: 1007px;
        padding-block: clamp(3.5rem, 6.3vw, 7.5rem) clamp(1.5rem, 2.6vw, 3.125rem);
        margin-left: 0;
        font-size: clamp(1.625rem, 2.1vw, 2.5rem);
        line-height: 1.2;
    }
}

/* STRIP: mobile centres the active photo; desktop shows the last three. */
.strip__track {
    align-items: center;
    gap: 0;
    padding-inline: 11.3vw;
}
.strip__track img {
    width: 77.4vw;
    height: auto;
    aspect-ratio: 311 / 207;
    border-radius: 5px;
    transform: scale(0.717);
}
@media (prefers-reduced-motion: no-preference) {
    .strip__track img {
        transition: transform 0.2s ease;
    }
}
.strip__track img + img {
    margin-left: calc(0.625rem - 10.95vw);
}
.strip__track img.is-active {
    transform: scale(1);
}
@media (min-width: 992px) {
    .strip__track {
        align-items: stretch;
        padding: 0;
        overflow: hidden;
    }
    .strip__track img {
        width: 33.34%;
        aspect-ratio: 645 / 430;
        border-radius: 0;
        transform: none;
    }
    .strip__track img + img {
        margin-left: 0;
    }
    .strip__track img:first-child {
        display: none;
    }
}

/* SURVEY statement: right aligned */
.survey {
    padding-block: 5.8125rem 3.25rem;
    color: var(--navy);
    font-size: 1.375rem;
    line-height: 1.2;
    text-align: right;
}
.survey .heading-font {
    font-size: 1em;
}
@media (min-width: 992px) {
    .survey {
        max-width: 1015px;
        margin-left: auto;
        padding-block: clamp(1.25rem, 2vw, 2.375rem) clamp(2.5rem, 4.5vw, 5.375rem);
        font-size: clamp(1.5rem, 1.98vw, 2.375rem);
    }
}

/* CONSIDER: consultation text and photo carousel with prev/next buttons */
.consider {
    padding-block: 2.75rem 3.5rem;
    background: var(--pale);
}
.consider__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.625rem;
}
.consider__text {
    display: grid;
    gap: 1.375rem;
    color: var(--navy);
    font-size: 1.375rem;
    line-height: 1.2;
}
.consider__inner .carousel__nav {
    padding-inline: 0;
}
.consider__track {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: calc(var(--gutter) * 0);
}
.consider__track img {
    width: 76vw;
    max-width: 480px;
    aspect-ratio: 3 / 2;
}
@media (min-width: 992px) {
    .consider {
        padding-block: clamp(2.5rem, 3.2vw, 3.875rem);
        overflow: hidden;
    }
    .consider__inner {
        grid-template-columns: minmax(0, 536px) minmax(0, 1fr);
        align-items: center;
        gap: clamp(1.875rem, 2.4vw, 2.875rem);
        max-width: none;
    }
    .consider__text {
        font-size: clamp(1.5rem, 1.88vw, 2.25rem);
        line-height: 1.12;
    }
    /* Carousel bleeds to the right edge of the screen, with a peek of the neighbouring photos */
    .consider__carousel {
        margin-right: calc(-1 * var(--gutter));
        min-width: 0;
    }
    .consider__track {
        margin-inline: 0;
        gap: clamp(0.375rem, 0.4vw, 0.5rem);
        scroll-padding-left: clamp(80px, 7.45vw, 143px);
    }
    .consider__track img {
        width: clamp(300px, 28.2vw, 540px);
        max-width: none;
        height: clamp(220px, 20.9vw, 401px);
        aspect-ratio: auto;
        scroll-snap-align: start;
    }
    .consider__track img:nth-child(2) {
        width: clamp(400px, 42.2vw, 810px);
    }
    /* Buttons sit on the photo: 26px above its bottom edge, 137px in from the screen edge (Figma, 1920) */
    .consider__carousel {
        position: relative;
    }
    .consider__inner .carousel__nav {
        position: absolute;
        right: clamp(1.5rem, 7.14vw, 8.5625rem);
        bottom: clamp(1rem, 1.35vw, 1.625rem);
        margin: 0;
        padding: 0;
    }
}


/* =========================================================================
   10. LANDING — REPORT
   ========================================================================= */

/* REPORT: flipbook mockup, copy and download buttons */
.report {
    padding-block: 3.5rem 4.375rem;
    background: #fff;
}
.report__inner {
    display: grid;
    gap: 1.75rem;
}
.report__content {
    display: contents;
}
.report__eyebrow {
    color: var(--blue);
    font-size: 0.75rem;
    line-height: 1.4;
}
.report__title {
    margin-top: 1rem;
    color: var(--navy);
    font-size: 1.75rem;
    line-height: 1.15;
}
.report__text {
    margin-top: 1.375rem;
    color: var(--slate);
    font-size: 0.75rem;
    line-height: 1.35;
}
.report__img {
    justify-self: center;
    width: 100%;
    order: 1;
}
.report__btns {
    display: grid;
    gap: 0.875rem;
    order: 2;
}
.report__btns .btn-cta {
    height: 42px;
    font-size: 0.8125rem;
}
.report__eyebrow,
.report__title,
.report__text {
    order: 0;
}
.report__title {
    margin-top: -12px;
}
.report__text {
    margin-top: -6px;
}
@media (min-width: 992px) {
    .report {
        padding-block: clamp(4.375rem, 6vw, 7.125rem) clamp(5rem, 7.2vw, 8.625rem);
    }
    .report__inner {
        grid-template-columns: minmax(0, 865fr) minmax(0, 590fr);
        align-items: center;
        gap: clamp(2.5rem, 3.4vw, 4.125rem);
    }
    .report__content {
        display: block;
    }
    .report__img {
        order: 0;
        width: 100%;
    }
    .report__eyebrow {
        font-size: clamp(1rem, 1.25vw, 1.5rem);
    }
    .report__title {
        margin-top: clamp(0.875rem, 1.3vw, 1.5rem);
        font-size: clamp(2.125rem, 3.125vw, 3.75rem);
        line-height: 1.1;
    }
    .report__text {
        margin-top: clamp(1.875rem, 3.4vw, 4rem);
        font-size: clamp(0.875rem, 1.05vw, 1.25rem);
        line-height: 1.3;
    }
    .report__btns {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(0.75rem, 1.05vw, 1.25rem);
        margin-top: clamp(1.875rem, 3.4vw, 4rem);
    }
    .report__btns .btn-cta {
        height: clamp(40px, 2.4vw, 46px);
        padding-inline: clamp(1.875rem, 3.4vw, 3.25rem);
        font-size: clamp(0.75rem, 0.75vw, 0.875rem);
    }
}


/* =========================================================================
   11. LANDING — FOOTER
   ========================================================================= */

/* FOOTER: navy links block, slate copyright strip, blue base (cyan + blue bars on desktop) */
.footer {
    position: relative;
    color: #fff;
}
.footer__main {
    padding-block: 3rem 2.75rem;
    background: var(--navy);
}
.footer__inner {
    display: grid;
    justify-items: center;
    gap: 2.5rem;
}
.footer__links {
    display: grid;
    gap: 1.375rem;
    justify-items: center;
    font-size: 0.9375rem;
    text-align: center;
}
.footer__links a:hover {
    color: var(--cyan);
}
.footer__social {
    display: flex;
    gap: 0.875rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgb(255 255 255 / 0.4);
    width: min(210px, 70%);
    justify-content: center;
}
.footer__copy {
    padding-block: 1.125rem;
    background: var(--slate);
    font-size: 0.75rem;
    text-align: center;
}
.footer__bar {
    height: 29px;
    background: var(--blue);
}
@media (min-width: 992px) {
    .footer__main {
        padding-block: clamp(3.125rem, 4.2vw, 5rem) clamp(4.375rem, 5.4vw, 6.5rem);
    }
    .footer__inner {
        grid-template-columns: 1fr auto;
        align-items: start;
        justify-items: stretch;
        gap: 2.5rem;
    }
    .footer__links {
        grid-auto-flow: column;
        grid-template-rows: repeat(2, auto);
        justify-items: start;
        justify-content: start;
        gap: 0.625rem clamp(1.875rem, 4.8vw, 5.75rem);
        font-size: clamp(0.875rem, 1.04vw, 1.25rem);
        text-align: left;
    }
    .footer__social {
        width: auto;
        padding: clamp(1.5rem, 1.8vw, 2.125rem) 0 0;
        border: 0;
        gap: 0.625rem;
    }
    /* Copyright sits in the navy block, below the social icons */
    .footer__copy {
        position: absolute;
        left: 0;
        right: 0;
        top: clamp(100px, 7.5vw, 143px);
        padding: 0;
        background: none;
        font-size: clamp(0.75rem, 0.84vw, 1rem);
        text-align: right;
    }
    .footer__bar {
        height: clamp(60px, 4.95vw, 95px);
        background: linear-gradient(to bottom, var(--cyan) 0 69%, var(--blue) 69% 100%);
    }
}


/* =========================================================================
   12. LANDING — MOTION
   ========================================================================= */

/* Motion only where it carries the content:
   - section headings, intros, cards and portraits fade up once (AOS, data-aos in the markup);
   - the review statistics count up when scrolled to (classes set by script.js, section 4);
   - the mobile menu drops open.
   Nothing else moves. All of it is skipped with prefers-reduced-motion. */

@media (prefers-reduced-motion: no-preference) {
    /* Stat icons fade in as their number starts counting */
    .js-motion .stat img {
        transition:
            opacity 0.8s ease-out 0.2s,
            translate 0.8s ease-out 0.2s;
    }
    .js-motion .stat:not(.is-counted) img {
        opacity: 0;
        translate: 0 12px;
    }

    @media (max-width: 991.98px) {
        .nav.is-open .nav__links {
            animation: drop 0.2s ease-out;
        }
    }
}

/* Inline count-up numbers take the width script.js holds, so the sentence around them stays put */
.js-motion span[data-to] {
    display: inline-block;
}

@keyframes drop {
    from {
        opacity: 0;
        translate: 0 -6px;
    }
}


/* =========================================================================
   13. FLIPBOOK — VIEWER
   ========================================================================= */

/* =========================================================================
   Report flipbook: viewer frame (header, stage, zoom layer, arrows, toolbar)
   ========================================================================= */

:root {
    --fb-bg: #4b5263;
    --fb-bar: #3b404c;
    --fb-text: #fff;
    --fb-accent: #3b82f6;
    --font-primary: "Montserrat", system-ui, sans-serif;

    /* Page renders are 1600 × 2263 (tools/build-flipbook.py); layers and search boxes use these design pixels */
    --page-w: 1600;
    --page-h: 2263;
    --header-h: 56px;
    --toolbar-h: 72px;
}
@media (max-width: 767.98px) {
    :root {
        --header-h: 48px;
        --toolbar-h: 64px;
    }
}

/* Scoped to the flipbook page (body.fb): this stylesheet is shared with the landing page */
.fb {
    color: var(--fb-text);
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 1.5;
}
.fb img {
    display: block;
}

/* LAYOUT ================================================================= */
.fb {
    display: grid;
    grid-template-rows: var(--header-h) 1fr var(--toolbar-h);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--fb-bg);
}
.fb__header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-inline: 20px;
}
.fb__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    opacity: 0.85;
}
.fb__back:hover {
    opacity: 1;
}
.fb__title {
    overflow: hidden;
    font-size: 14px;
    opacity: 0.6;
    white-space: nowrap;
    text-overflow: ellipsis;
}
@media (max-width: 767.98px) {
    .fb__title {
        display: none;
    }
}

/* STAGE, ZOOM LAYER AND BOOK ============================================= */
.fb__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    overflow: hidden; /* clip the zoomed book */
}
/* Zoom/pan layer: exactly the stage's size (Panzoom's contain: "outside" keeps it covering the stage,
   so any size difference would become a minimum zoom). The padding around the book lives here. */
.fb__zoom {
    position: absolute; /* exactly the stage, whatever the book's content measures before it's laid out */
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px 64px;
}
/* Zoomed in: drags pan the view (Panzoom) instead of turning pages (StPageFlip) */
.fb__zoom.is-zoomed {
    cursor: grab;
}
.fb__zoom.is-zoomed:active {
    cursor: grabbing;
}
.fb__zoom.is-zoomed .fb__book {
    pointer-events: none;
}
/* Width and height are set by script.js (fitBook) to exactly one spread or one page */
.fb__book {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.9s ease; /* same duration as the page turn */
}
/* On the cover only the right half of the spread is used: shift half a page to centre it */
.fb__book.is-closed {
    transform: translateX(-25%);
}
/* Back cover: only the left half of the spread is used: shift half a page the other way */
.fb__book.is-closed-end {
    transform: translateX(25%);
}
@media (max-width: 767.98px) {
    .fb__zoom {
        padding: 8px 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .fb__book {
        transition: none;
    }
}

/* PREV / NEXT ARROWS ===================================================== */
.fb__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 0;
    background: none;
    transform: translateY(-50%);
    transition: opacity 0.2s;
}
.fb__arrow--prev {
    left: 4px;
}
.fb__arrow--next {
    right: 4px;
}
.fb__arrow:disabled {
    opacity: 0.25;
    cursor: default;
}
@media (max-width: 767.98px) {
    .fb__arrow {
        width: 40px;
        height: 40px;
    }
    .fb__arrow iconify-icon {
        width: 28px;
    }
}

/* TOOLBAR ================================================================ */
.fb__toolbar {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 0 20px;
    background: var(--fb-bar);
}
.fb__progress {
    width: 100%;
    accent-color: var(--fb-accent);
    cursor: pointer;
}
.fb__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fb__pages {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}
.fb__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fb__zoom-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}
.fb__zoom-range {
    width: 110px;
    accent-color: var(--fb-accent);
    cursor: pointer;
}
.fb__btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    opacity: 0.85;
}
.fb__btn:hover {
    background: rgb(255 255 255 / 0.08);
    opacity: 1;
}
@media (max-width: 767.98px) {
    /* Pinch to zoom on touch; keep only the +/- buttons */
    .fb__zoom-range {
        display: none;
    }
}


/* =========================================================================
   14. FLIPBOOK — PAGES & ANIMATIONS
   ========================================================================= */

/* Report flipbook: pages, animated layers and their animations */

.fb-page {
    position: relative;
    overflow: hidden;
    background: #fff;
    container-type: inline-size;
}
.fb-page > picture:first-child,
.fb-page > picture:first-child img,
.fb-page > img:first-child {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Each page fades in as it comes into view: a white veil over the page (render and layers) clears once
   script.js marks it .is-shown (as a turn starts), and snaps back when it leaves so it fades in again */
.fb-page:not(.fb-page--blank)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    pointer-events: none;
}
/* A keyframe animation, not a transition: the library shows an incoming page (display: none → block) as the
   turn starts, and an element coming out of display: none has no previous opacity to transition from.
   Longer than the 0.9s turn (FLIP_MS), so the last of the fade is seen after the page lands. */
.fb-page.is-shown::after {
    opacity: 0;
    animation: fb-veil-clear 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fb-veil-clear {
    from {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .fb-page::after {
        display: none;
    }
}
/* Blank page left of the cover: same colour as the stage, so it reads as the table under the book */
.fb-page--blank {
    background: var(--fb-bg);
}
/* Closing onto the cover: no cast shadow on the "table" (the library sets display inline, not visibility) */
.fb__book.is-closing .stf__outerShadow {
    visibility: hidden;
}
/* 2px: the book slides on sub-pixel offsets while closing, so allow a whole pixel of margin */
.fb-page.is-under {
    clip-path: inset(2px);
}

/* LAYERS: cut from the page render by tools/build-flipbook.py, placed in design px on the
   1600 × 2263 page (--x, --y, --w, --h; --i is the stagger order among a page's bars) */
.fb-layer,
.fb-count {
    position: absolute;
    left: calc(var(--x) / var(--page-w) * 100%);
    top: calc(var(--y) / var(--page-h) * 100%);
}
.fb-layer {
    width: calc(var(--w) / var(--page-w) * 100%);
    height: calc(var(--h) / var(--page-h) * 100%);
}

/* Chart bars grow from their baseline (vertical) or left edge (horizontal) */
/* Hidden until the page is in view, so a page turning in doesn't show them finished first */
.fb-bar--v {
    transform: scaleY(0);
    transform-origin: bottom;
}
.fb-bar--h {
    transform: scaleX(0);
    transform-origin: left;
}
.fb-page.is-active .fb-bar--v {
    animation: fb-grow-v 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.3s + var(--i) * 0.1s);
}
.fb-page.is-active .fb-bar--h {
    animation: fb-grow-h 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.3s + var(--i) * 0.1s);
}
@keyframes fb-grow-v {
    to {
        transform: none;
    }
}
@keyframes fb-grow-h {
    to {
        transform: none;
    }
}

/* Bars carrying printed numbers (stacked rows, charts pasted in as pictures) are wiped in instead,
   so the numbers aren't squashed while growing */
.fb-wipe--v {
    clip-path: inset(100% 0 0 0);
}
.fb-wipe--h {
    clip-path: inset(0 100% 0 0);
}
.fb-page.is-active .fb-wipe {
    animation: fb-wipe 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.3s + var(--i) * 0.1s);
}
@keyframes fb-wipe {
    to {
        clip-path: inset(0);
    }
}

/* Badges, step numbers, timeline nodes and outlined numbers pop in, one after another */
.fb-pop {
    opacity: 0;
    transform: scale(0.6);
}
.fb-page.is-active .fb-pop {
    animation: fb-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(0.4s + var(--i) * 0.2s);
}

/* Donut charts sweep round from 12 o'clock */
@property --sweep {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
.fb-sweep {
    --sweep: 0deg;
    mask: conic-gradient(#000 var(--sweep), transparent 0);
}
.fb-page.is-active .fb-sweep {
    animation: fb-sweep 1.2s cubic-bezier(0.45, 0, 0.55, 1) 0.3s forwards;
}
@keyframes fb-sweep {
    to {
        --sweep: 360deg;
    }
}

/* Flow steps (and the arrow leading into each) appear in reading order */
.fb-step {
    opacity: 0;
}
.fb-step--h {
    transform: translateX(-12px);
}
.fb-step--v {
    transform: translateY(-12px);
}
.fb-page.is-active .fb-step {
    animation: fb-step 0.5s ease-out forwards;
    animation-delay: calc(0.3s + var(--i) * 0.35s);
}
@keyframes fb-step {
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes fb-pop {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Statistics: a counter (Futura PT, close to the PDF's face) counts up over the hidden exact image,
   which comes back when the count ends. font-size and line box: design px → page units */
.fb-count {
    display: none;
    height: calc(var(--h) / var(--page-h) * 100%);
    font-family: "Futura PT", var(--font-primary);
    font-weight: 700;
    font-size: calc(var(--fs) / var(--page-w) * 100cqw);
    line-height: calc(var(--h) / var(--page-w) * 100cqw);
    white-space: nowrap;
    /* script.js fits the counter onto the exact image (the PDF's face can be wider or heavier): its width
       (--fit, scaled round the baseline) and its baseline (--shift) */
    transform: translateY(var(--shift, 0)) scale(var(--fit, 1));
    transform-origin: left var(--baseline, 50%);
}
.fb-stat.is-counting .fb-count {
    display: block;
}
.fb-stat.is-counting .fb-layer {
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .fb-page.is-active .fb-layer {
        animation: none;
    }
    .fb-layer {
        opacity: 1;
        transform: none;
        mask: none;
        clip-path: none;
    }
}


/* =========================================================================
   15. FLIPBOOK — SEARCH
   ========================================================================= */

/* Report flipbook: search panel and the matches highlighted on the pages */

.fb-search {
    position: fixed;
    z-index: 5;
    top: var(--header-h);
    right: 0;
    bottom: var(--toolbar-h);
    display: flex;
    flex-direction: column;
    width: min(380px, 100%);
    background: #2b2f38;
    box-shadow: -8px 0 24px rgb(0 0 0 / 0.25);
}
.fb-search[hidden] {
    display: none;
}
.fb-search__count {
    padding: 16px 20px 8px;
    font-size: 14px;
    font-weight: 600;
}
.fb-search__results {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 8px;
}
.fb-search__results button {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    border: 0;
    background: none;
    color: rgb(255 255 255 / 0.8);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}
.fb-search__results button:hover {
    background: rgb(255 255 255 / 0.08);
}
.fb-search__results button.is-current {
    background: #2563eb;
    color: #fff;
}
.fb-search__results mark {
    background: none;
    color: #fff;
    font-weight: 700;
}
.fb-search__page {
    flex: none;
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
}
.fb-search__form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 10px 16px;
    border-top: 1px solid rgb(255 255 255 / 0.1);
}
.fb-search__form input {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 14px;
}

/* Matches drawn over the page, positioned in design px like the animated layers */
.fb-hit {
    position: absolute;
    left: calc(var(--x) / var(--page-w) * 100%);
    top: calc(var(--y) / var(--page-h) * 100%);
    width: calc(var(--w) / var(--page-w) * 100%);
    height: calc(var(--h) / var(--page-h) * 100%);
    border-radius: 2px;
    background: rgb(255 213 0 / 0.45);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.fb-hit.is-current {
    background: rgb(255 140 0 / 0.6);
    outline: 2px solid #ff8c00;
}
