/*
 * Make My Hype website stylesheet (Stage 3)
 * Implements docs/ui/design-system.md (source of truth: Brand Guidelines v1.0).
 *
 * Order: 1 fonts · 2 tokens · 3 base · 4 type · 5 layout · 6 devices · 7 components
 *        8 header · 9 sections · 10 footer · 11 placeholders · 12 styleguide · 13 motion · 14 print
 * No preprocessor and no framework: one file, plain CSS.
 */

/* 1. Fonts (self-hosted, SIL OFL — see /assets/fonts/LICENSE-OFL.txt) ------------------- */
@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo";
    src: url("/assets/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-ext-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

/* 2. Tokens (design-system.md §10) ------------------------------------------------------- */
:root {
    --c-black: #0F0F0F;
    --c-yellow: #FFC21A;
    --c-offwhite: #F5F2EA;
    --c-white: #FFFFFF;
    --c-slate: #4A4A4A;
    --c-lightgray: #D9D9D9;
    --c-red: #D3241B;
    --c-yellow-hover: #E5AC0E;
    --c-surface-hover: #ECECEC;

    --font-heading: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --heading-stretch: 75%;

    /* mobile-first type scale; tablet/desktop values set in the media queries below */
    --fs-h1: 40px;  --lh-h1: 46px;
    --fs-h2: 32px;  --lh-h2: 40px;
    --fs-h3: 24px;  --lh-h3: 32px;
    --fs-h4: 20px;  --lh-h4: 28px;
    --fs-body: 16px; --lh-body: 26px;
    --fs-small: 15px; --lh-small: 22px;
    --fs-label: 13px; --lh-label: 18px;
    --fs-caption: 12px; --lh-caption: 18px;
    --fs-lead: 18px; --lh-lead: 28px;
    --fs-metric: 44px;

    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
    --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 120px; --s-11: 144px;

    --container: 1280px;
    --gutter: 20px;
    --gap: 16px;
    --section-pad: 56px;
    --head-gap: 32px;
    --card-pad: 24px;
    --header-h: 64px;

    --bracket-arm: 28px; --bracket-stroke: 5px;
    --bracket-arm-sm: 24px; --bracket-stroke-sm: 4px;

    --dur-instant: 120ms; --dur-fast: 200ms; --dur-base: 300ms;
    --dur-slow: 600ms; --dur-reveal: 700ms; --dur-hero: 800ms;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-in: cubic-bezier(0.55, 0, 1, 0.45);

    --shadow-pop: 0 12px 32px -12px rgba(15, 15, 15, .25);
}

@media (min-width: 768px) {
    :root {
        --fs-h1: 56px; --lh-h1: 62px;
        --fs-h2: 40px; --lh-h2: 50px;
        --fs-h3: 28px; --lh-h3: 36px;
        --fs-h4: 22px; --lh-h4: 30px;
        --fs-body: 18px; --lh-body: 28px;
        --fs-small: 16px; --lh-small: 24px;
        --fs-label: 14px; --lh-label: 20px;
        --fs-lead: 20px; --lh-lead: 30px;
        --fs-metric: 56px;
        --gutter: 32px; --gap: 24px; --section-pad: 80px; --head-gap: 36px; --card-pad: 28px;
        --header-h: 72px;
        --bracket-arm: 36px; --bracket-stroke: 6px;
    }
}
@media (min-width: 1024px) {
    :root { --gutter: 40px; --section-pad: 88px; --head-gap: 40px; --card-pad: 32px; --header-h: 88px; }
}
@media (min-width: 1280px) {
    :root {
        --fs-h1: 72px; --lh-h1: 80px;
        --fs-h2: 48px; --lh-h2: 60px;
        --fs-h3: 32px; --lh-h3: 40px;
        --fs-h4: 24px; --lh-h4: 32px;
        --fs-lead: 22px; --lh-lead: 32px;
        --fs-metric: 72px;
        --gutter: 48px; --gap: 32px; --section-pad: 96px; --head-gap: 44px;
        --bracket-arm: 48px; --bracket-stroke: 8px;
    }
}

/* 3. Base --------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
    margin: 0;
    background: var(--c-offwhite);
    color: var(--c-black);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, ul, ol, dl, dd, figure, blockquote, h1, h2, h3, h4 { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--c-black); outline-offset: 3px; }
.bg-black :focus-visible, .site-footer :focus-visible { outline-color: var(--c-yellow); }
::selection { background: var(--c-yellow); color: var(--c-black); }
[hidden] { display: none !important; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 500;
    background: var(--c-black); color: var(--c-white); padding: 16px 20px;
    font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { top: 16px; outline-color: var(--c-yellow); }
main:focus { outline: none; }

.icon { width: 1em; height: 1em; flex: none; }
.icon--56 { width: 56px; height: 56px; }

/* 4. Typography --------------------------------------------------------------------------- */
.h1, .h2, .h3, .h4 {
    font-family: var(--font-heading);
    font-stretch: var(--heading-stretch);
    font-weight: 700;
    color: inherit;
    text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -0.01em; max-width: 22ch; }
.h1--hero { font-weight: 900; max-width: none; }
.h1--statement { font-weight: 900; max-width: 16ch; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.005em; max-width: 28ch; }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 60ch; }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.muted { color: var(--c-slate); }
.label {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--fs-label);
    line-height: var(--lh-label);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-slate);
}
.meta, .caption {
    font-family: var(--font-mono);
    font-size: var(--fs-caption);
    line-height: var(--lh-caption);
    letter-spacing: 0.04em;
    color: var(--c-slate);
}
.meta { font-size: var(--fs-label); line-height: var(--lh-label); }

/* Heading lines: authored breaks apply from tablet up; phones wrap naturally. */
.ln { display: inline; }
@media (min-width: 768px) {
    .ln { display: block; }
}

/* 5. Layout ------------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.sec { padding-block: var(--section-pad); position: relative; }
.bg-offwhite { background: var(--c-offwhite); }
.bg-white { background: var(--c-white); }
.bg-black { background: var(--c-black); color: var(--c-white); }
.bg-black .label, .bg-black .meta, .bg-black .caption { color: var(--c-lightgray); }
.bg-black p { color: var(--c-lightgray); }
.bg-white + .bg-white { padding-top: 0; }
.bg-offwhite + .bg-offwhite { padding-top: 0; }

.sec-head { display: grid; gap: var(--s-3); margin-bottom: var(--head-gap); }
.sec-head .lead { margin-top: var(--s-2); }
.sec-head:empty { display: none; }
.sec-foot { margin-top: var(--s-7); }

.split-grid { display: grid; gap: var(--s-6); }
.split-grid .sec-head { margin-bottom: 0; align-content: start; }
.split-grid__body { display: grid; gap: var(--s-5); align-content: start; max-width: 68ch; }
@media (min-width: 1024px) {
    .split-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
    .split-grid > .sec-head { grid-column: 1 / span 5; }
    .split-grid > .split-grid__body { grid-column: 7 / span 6; }
}

/* 6. Brand devices ------------------------------------------------------------------------ */
/* Highlight bar (Brand Guidelines §10): yellow box behind black text, on any background. */
.hl {
    background-color: transparent;
    background-image: linear-gradient(var(--c-yellow), var(--c-yellow));
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: var(--c-black);
    padding: 0.02em 0.14em 0.04em;
    margin-inline: -0.04em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Corner bracket (Brand Guidelines §10): an L-shaped corner, square ends. */
.bracket {
    position: absolute;
    width: var(--bracket-arm);
    height: var(--bracket-arm);
    border: 0 solid var(--c-yellow);
    pointer-events: none;
}
.bracket--hero {
    top: calc(-1 * var(--bracket-arm) - 16px);
    left: calc(-1 * var(--bracket-stroke) - 12px);
    border-top-width: var(--bracket-stroke);
    border-left-width: var(--bracket-stroke);
}
.bracket--frame {
    top: -16px; left: -16px; z-index: 1;
    border-top-width: var(--bracket-stroke);
    border-left-width: var(--bracket-stroke);
}
.bracket--card {
    top: 16px; right: 16px;
    width: var(--bracket-arm-sm); height: var(--bracket-arm-sm);
    border-top-width: var(--bracket-stroke-sm);
    border-right-width: var(--bracket-stroke-sm);
    transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
}
.bracket--red-corner {
    right: calc(var(--gutter) - var(--bracket-stroke) - 12px);
    bottom: calc(-1 * var(--bracket-arm) - 12px);
    border-color: var(--c-red);
    border-bottom-width: var(--bracket-stroke);
    border-right-width: var(--bracket-stroke);
}

/* Pillar strip (Brand Guidelines §03) */
.pillar-strip {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) 0;
    font-weight: 500; font-size: var(--fs-small); letter-spacing: 0.3em; text-transform: uppercase;
}
.pillar-strip span { display: inline-flex; align-items: center; }
.pillar-strip span + span::before {
    content: ""; display: inline-block; width: 1px; height: 1em; background: var(--c-slate);
    margin-inline: 1.2em 1.5em;
}
.pillar-strip--dark { color: var(--c-lightgray); }
@media (max-width: 479px) {
    .pillar-strip { letter-spacing: 0.16em; font-size: 14px; }
    .pillar-strip span + span::before { margin-inline: 0.7em 0.86em; }
}

/* 7. Components --------------------------------------------------------------------------- */
/* Buttons (Brand Guidelines §07) */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; min-width: 140px; padding: 0 28px;
    font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 20px;
    text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn__icon { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.btn--primary { background: var(--c-yellow); color: var(--c-black); }
.btn--primary:hover { background: var(--c-yellow-hover); }
.btn--primary:active { background: var(--c-yellow-hover); transform: translateY(1px); }
.btn--secondary { background: var(--c-white); color: var(--c-black); border-color: var(--c-black); }
.btn--secondary:hover { background: var(--c-surface-hover); }
.btn--secondary:active { background: var(--c-lightgray); }
.btn--secondary-dark { background: transparent; color: var(--c-white); border-color: var(--c-white); }
.btn--secondary-dark:hover { background: rgba(255, 255, 255, .1); }
.btn.is-disabled, .btn[aria-disabled="true"] { background: var(--c-lightgray); color: var(--c-slate); cursor: not-allowed; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
    .btn:hover .btn__icon { transform: translateX(4px); }
}
@media (max-width: 767px) {
    .hero__actions .btn, .cta-band__body .btn { width: 100%; }
    .btn { min-height: 48px; }
}

/* Text link (Brand Guidelines §07): black text, thick yellow underline */
.link {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; color: var(--c-black);
    text-decoration: underline;
    text-decoration-color: var(--c-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
    transition: text-decoration-thickness var(--dur-fast) var(--ease-out);
}
.link__icon { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.link:hover { text-decoration-thickness: 5px; }
.link:active { text-decoration-color: var(--c-yellow-hover); }
@media (hover: hover) and (pointer: fine) {
    .link:hover .link__icon { transform: translateX(4px); }
}
.link--on-dark, .bg-black .link { color: var(--c-white); }
.link--small { font-size: var(--fs-small); }
.prose a, .split-grid__body p a {
    text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px;
}

/* Cards (Brand Guidelines §08) */
.card-grid { display: grid; gap: var(--gap); list-style: none; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
    .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .card-grid--scroll {
        grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto;
        scroll-snap-type: x mandatory; padding-bottom: var(--s-3);
        margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
        scroll-padding-inline: var(--gutter);
    }
    .card-grid--scroll > * { scroll-snap-align: start; }
}

.card {
    position: relative;
    display: flex; flex-direction: column; gap: var(--s-4);
    background: var(--c-white);
    border: 1px solid var(--c-black);
    padding: var(--card-pad);
}
.bg-white .card { background: var(--c-white); }
.card__icon { width: 40px; height: 40px; transition: transform var(--dur-base) var(--ease-out); }
.card__icon-tile { display: grid; place-items: center; width: 72px; height: 72px; background: var(--c-offwhite); }
.card--industry .card__icon { width: 44px; height: 44px; }
.card--industry .card__title { font-size: var(--fs-h4); line-height: var(--lh-h4); padding-right: 0; }
.card--industry .bracket--card {
    top: auto; bottom: 16px; right: 16px; opacity: 0;
    border-top-width: 0; border-bottom-width: var(--bracket-stroke-sm);
    transition: opacity var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out);
}
.card--industry:focus-within .bracket--card { opacity: 1; }
.card__title {
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700;
    font-size: var(--fs-h3); line-height: var(--lh-h3); text-transform: uppercase; letter-spacing: 0.01em;
    padding-right: 40px;
}
.card__title-sentence { padding-right: 0; }
.card__title a, .card__title-sentence a { text-decoration: none; }
.card__promise { font-weight: 600; font-size: var(--fs-body); }
.card__text { color: var(--c-slate); font-size: var(--fs-small); line-height: var(--lh-small); }
.card__links { list-style: none; display: grid; gap: var(--s-2); font-size: var(--fs-small); }
.card__links a { text-decoration: underline; text-decoration-color: var(--c-lightgray); text-underline-offset: 4px; position: relative; z-index: 1; }
.card__links a:hover { text-decoration-color: var(--c-yellow); }
.card__foot { margin-top: auto; padding-top: var(--s-2); }
.card:focus-within { outline: 3px solid var(--c-black); outline-offset: 3px; }
.card:focus-within :focus-visible { outline: none; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.card--media { padding: 0; gap: 0; }
.card--media .card__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--card-pad); }
.card--media .media { border: 0; border-bottom: 1px solid var(--c-black); }
.card-grid.card-grid--cases { grid-template-columns: minmax(0, 1fr); }
.card-grid--cases .card__body { flex: 1 1 auto; }
@media (min-width: 600px) and (max-width: 899px) {
    .card-grid--cases .card--media { flex-direction: row; }
    .card-grid--cases .card--media .media { flex: 0 0 44%; aspect-ratio: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--c-black); }
}
@media (min-width: 900px) { .card-grid.card-grid--cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sec--continues { padding-top: 0; }
.card__media-wrap { position: relative; }
.card__play {
    position: absolute; left: 16px; bottom: 16px; width: 48px; height: 48px;
    display: grid; place-items: center; background: var(--c-yellow); color: var(--c-black);
}
.card__play .icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
    .card:hover .bracket--card { width: 32px; height: 32px; opacity: 1; }
    .card:hover .card__icon { transform: translateY(-4px); }
    .card:hover .link { text-decoration-thickness: 5px; }
    .card:hover .link__icon { transform: translateX(4px); }
    .card--media:hover .media img { transform: scale(1.04); }
    .card--related:hover, .card--industry:hover { background: var(--c-white); }
}

/* Media slots and images */
.media { position: relative; overflow: hidden; background: var(--c-lightgray); margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--slot {
    display: grid; place-items: center; padding: var(--s-5);
    background:
        linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(74, 74, 74, .25) 50%, transparent calc(50% + 0.5px)),
        var(--c-offwhite);
    border: 1px solid var(--c-slate);
}
.bg-offwhite .media--slot { background-color: var(--c-white); background-image: linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(74, 74, 74, .25) 50%, transparent calc(50% + 0.5px)); }
.media__brief {
    font-family: var(--font-mono); font-size: var(--fs-caption); line-height: var(--lh-caption);
    background: inherit; background-color: var(--c-white); padding: 6px 10px; border: 1px solid var(--c-slate);
    max-width: 30ch; text-align: center; color: var(--c-slate);
}

/* Checks / points lists */
.points { list-style: none; display: grid; }
.points li { padding-block: var(--s-4); border-top: 1px solid var(--c-lightgray); color: var(--c-slate); }
.points li:last-child { border-bottom: 1px solid var(--c-lightgray); }
.points strong {
    display: block; color: var(--c-black); margin-bottom: var(--s-1);
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700;
    font-size: var(--fs-h4); line-height: var(--lh-h4);
}
ol.points { counter-reset: pt; }
.checks { list-style: none; display: grid; gap: var(--s-3); }
.checks li { display: flex; gap: var(--s-3); align-items: flex-start; }
.checks__icon { width: 24px; height: 24px; padding: 4px; background: var(--c-yellow); color: var(--c-black); margin-top: 2px; }

/* Icon button */
.icon-btn {
    width: 48px; height: 48px; display: inline-grid; place-items: center;
    background: var(--c-white); border: 1px solid var(--c-black); cursor: pointer;
}
.icon-btn:hover { background: var(--c-surface-hover); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn:disabled { color: var(--c-lightgray); border-color: var(--c-lightgray); cursor: default; }

/* 8. Header ------------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--c-offwhite);
    border-bottom: 1px solid var(--c-lightgray);
    transition: box-shadow var(--dur-base) var(--ease-in-out);
}
.site-header.is-compact { box-shadow: var(--shadow-pop); }
.site-header__bar {
    display: flex; align-items: center; gap: var(--s-5);
    height: var(--header-h);
    transition: height var(--dur-base) var(--ease-in-out);
}
.site-header.is-compact .site-header__bar { height: 64px; }
.site-header__logo { display: block; flex: none; margin-left: -6px; }
/* Logo artwork is ≈72% of the PNG height: a 56px box gives a 40px logo. */
.site-header__logo img { height: 52px; width: auto; transition: height var(--dur-base) var(--ease-in-out); }
@media (min-width: 1024px) { .site-header__logo img { height: 64px; } .site-header.is-compact .site-header__logo img { height: 50px; } }
.site-header__actions { display: flex; align-items: center; gap: var(--s-3); margin-left: auto; }
.btn--header { min-height: 44px; padding: 0 20px; }
.btn__label-short { display: none; }
@media (max-width: 1279px) { .btn--header .btn__label-long { display: none; } .btn--header .btn__label-short { display: inline; } }
@media (max-width: 479px) { .btn--header { display: none; } }

.nav { display: none; }
@media (min-width: 1024px) {
    .nav { display: block; margin-left: auto; }
    .nav__list { display: flex; align-items: center; gap: 4px 20px; list-style: none; }
    .site-header__actions { margin-left: var(--s-5); }
}
@media (min-width: 1280px) { .nav__list { column-gap: 32px; } }
.nav__item { position: static; display: flex; align-items: center; }
.nav__link {
    display: inline-block; padding: 8px 0; font-weight: 500; font-size: 16px; text-decoration: none;
    background: linear-gradient(var(--c-yellow), var(--c-yellow)) no-repeat left bottom / 0 3px;
    transition: background-size var(--dur-fast) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { background-size: 100% 3px; }
.nav__toggle {
    display: inline-grid; place-items: center; width: 28px; height: 32px; padding: 0;
    background: none; border: 0; cursor: pointer;
}
.nav__toggle .icon { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-offwhite); border-top: 1px solid var(--c-black); box-shadow: var(--shadow-pop);
    padding-block: var(--s-7);
}
.nav-panel__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.nav-panel__title {
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700;
    font-size: 28px; line-height: 36px; text-transform: uppercase; text-decoration: none;
}
.nav-panel__title:hover { text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-panel__summary { color: var(--c-slate); margin: 4px 0 16px; }
.nav-panel ul { list-style: none; display: grid; gap: 10px; }
.nav-panel ul a { text-decoration: none; }
.nav-panel ul a:hover { text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.menu-button {
    width: 48px; height: 48px; display: inline-grid; place-items: center;
    background: none; border: 1px solid var(--c-black); cursor: pointer; padding: 0;
}
.menu-button .icon { width: 22px; height: 22px; }
.menu-button__close { display: none; }
.menu-button[aria-expanded="true"] .menu-button__open { display: none; }
.menu-button[aria-expanded="true"] .menu-button__close { display: block; }
@media (min-width: 1024px) { .menu-button, .mobile-nav { display: none !important; } }

.mobile-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 300;
    background: var(--c-offwhite); overflow-y: auto; overscroll-behavior: contain;
    border-top: 1px solid var(--c-black);
}
.mobile-nav .wrap { padding-block: var(--s-6) var(--s-8); display: grid; gap: var(--s-6); }
.mobile-nav__list { list-style: none; }
.mobile-nav__list > li { border-bottom: 1px solid var(--c-lightgray); }
.mobile-nav__link {
    display: flex; width: 100%; justify-content: space-between; align-items: center;
    padding: 14px 0; background: none; border: 0; text-align: left; cursor: pointer; text-decoration: none;
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700;
    font-size: 28px; line-height: 36px;
}
.mobile-nav__toggle .icon { width: 20px; height: 20px; transition: transform var(--dur-fast) var(--ease-out); }
.mobile-nav__toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }
.mobile-nav__sub { display: grid; gap: 4px; padding: 0 0 var(--s-4); }
.mobile-nav__sub a { padding: 8px 0; text-decoration: none; font-weight: 500; }
body.is-menu-open { overflow: hidden; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-slate); margin-bottom: var(--s-6); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--c-lightgray); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; }

/* 9. Sections ----------------------------------------------------------------------------- */
/* Hero */
.hero--home { padding-block: var(--s-9) var(--s-7); }
@media (min-width: 1280px) { .hero--home { padding-block: var(--s-11) var(--s-8); } }
.hero__copy { position: relative; display: grid; gap: var(--s-5); justify-items: start; }
.hero__label { margin-bottom: calc(-1 * var(--s-2)); }
.hero__lead { max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5) var(--s-6); margin-top: var(--s-3); width: 100%; }
.hero__pillars {
    margin-top: var(--s-8); padding-top: var(--s-5);
    border-top: 1px solid var(--c-black);
}
.hero--page { padding-block: var(--s-8) var(--s-7); }

/* Full-bleed photo hero: the photograph spans the whole section behind the copy. */
.hero--photo {
    display: flex; align-items: flex-end; isolation: isolate; overflow: hidden;
    min-height: min(calc(100svh - var(--header-h)), 880px);
}
.hero--photo > .wrap { width: 100%; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--c-black); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, .30) 0%, rgba(15, 15, 15, .78) 50%, rgba(15, 15, 15, .94) 100%);
}
@media (min-width: 1024px) {
    .hero__bg::after {
        background:
            linear-gradient(90deg, rgba(15, 15, 15, .92) 0%, rgba(15, 15, 15, .78) 38%, rgba(15, 15, 15, .25) 72%, rgba(15, 15, 15, .05) 100%),
            linear-gradient(0deg, rgba(15, 15, 15, .55) 0%, rgba(15, 15, 15, 0) 32%);
    }
}
.hero__bg--slot { background: repeating-linear-gradient(135deg, #222 0 1px, transparent 1px 28px), var(--c-black); }
.hero--photo .hero__copy { max-width: 920px; }
.hero--photo .h1, .hero--photo .hero__lead { color: var(--c-white); }
.hero--photo .hero__label { color: var(--c-lightgray); }
.hero--photo .hero__pillars { border-top-color: rgba(255, 255, 255, .35); }
.hero__brief {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-5);
    font-family: var(--font-mono); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-lightgray);
}

/* Intro + facts + statement */
.creds { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--gap); margin-top: var(--s-8); }
@media (min-width: 1024px) { .creds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .creds__item--award { grid-column: 1 / -1; } }
.creds__item { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); padding-top: var(--s-5); border-top: 2px solid var(--c-black); }
.creds__value {
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 900;
    font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--c-black);
}
.creds__item--fact .creds__value { min-height: 72px; display: flex; align-items: flex-end; }
.creds__label { color: var(--c-slate); font-size: var(--fs-small); line-height: var(--lh-small); }
.creds__icon { width: 72px; height: 72px; margin: -4px 0 0 -8px; color: var(--c-black); }
.creds__year { font-family: var(--font-mono); font-size: var(--fs-label); line-height: var(--lh-label); color: var(--c-slate); }
.creds__name {
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700;
    font-size: var(--fs-h4); line-height: var(--lh-h4);
}
.statement { display: grid; gap: var(--s-5); max-width: 900px; }

/* Engine diagram (split, diagram variant) */
.engine { margin-top: var(--s-5); }
.engine__nodes { list-style: none; display: grid; gap: 28px; position: relative; padding-left: 28px; }
.engine__nodes::before {
    content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 18px;
    border: 2px solid var(--c-yellow); border-right: 0;
}
.engine__node {
    position: relative; border: 1px solid var(--c-slate); padding: 16px 20px; display: grid; gap: 4px;
    background: var(--c-black);
}
.engine__node::before { content: ""; position: absolute; left: -12px; top: 50%; width: 12px; height: 2px; background: var(--c-yellow); }
.engine__name { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700; font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--c-white); }
.engine__role { color: var(--c-lightgray); font-size: var(--fs-small); }
.engine figcaption { margin-top: var(--s-4); }

/* Rich text */
.prose { display: grid; gap: var(--s-5); }
.prose--narrow { max-width: 800px; }
.prose ul { padding-left: 1.2em; display: grid; gap: var(--s-2); }
.prose blockquote { border-left: 6px solid var(--c-yellow); padding-left: var(--s-5); font-size: var(--fs-lead); line-height: var(--lh-lead); }

/* Image + text */
.media-split__grid { display: grid; gap: var(--s-7); align-items: center; }
.media-split__media { position: relative; max-width: 520px; }
.media-split__text > div:last-child { display: grid; gap: var(--s-5); justify-items: start; }
@media (min-width: 1024px) {
    .media-split__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
    .media-split--left .media-split__media { grid-column: 1 / span 5; }
    .media-split--left .media-split__text { grid-column: 7 / span 6; }
    .media-split--right .media-split__media { grid-column: 8 / span 5; order: 2; }
    .media-split--right .media-split__text { grid-column: 1 / span 6; }
}
.person { display: grid; gap: 2px; }
.person__name { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700; font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--c-black); }
.person__role { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--c-slate); }

/* Video */
.video { position: relative; }
.video__play {
    position: absolute; left: 50%; top: 50%; translate: -50% -60%;
    width: 72px; height: 72px; border-radius: 999px; border: 0; display: grid; place-items: center;
    background: var(--c-yellow); color: var(--c-black);
}
.video__play .icon { width: 28px; height: 28px; margin-left: 4px; }
.video__play:disabled { cursor: not-allowed; }
.video .caption { margin-top: var(--s-3); }

/* Feature list */
.features { list-style: none; display: grid; gap: var(--s-6) var(--gap); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { display: grid; gap: var(--s-3); align-content: start; }
.feature__icon { width: 48px; height: 48px; margin-bottom: var(--s-2); }
.feature p { color: var(--c-slate); }

/* Process (real sequence: numbered) */
.process { list-style: none; display: grid; gap: var(--s-6); }
.process__step { position: relative; display: grid; gap: var(--s-3); align-content: start; padding-left: 64px; }
.process__num {
    position: absolute; left: 0; top: 0;
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 900;
    font-size: 40px; line-height: 40px;
}
.process__step p { color: var(--c-slate); }
.process__outcome {
    font-family: var(--font-mono); font-size: var(--fs-caption); line-height: var(--lh-caption);
    color: var(--c-black) !important; border-left: 4px solid var(--c-yellow); padding-left: 10px;
}
@media (min-width: 1024px) {
    .process--horizontal { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
    .process--horizontal .process__step { padding-left: 0; padding-top: 72px; border-top: 2px solid var(--c-black); }
    .process--horizontal .process__step::before {
        content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; background: var(--c-yellow);
    }
    .process--horizontal .process__num { top: 20px; }
}

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gap); }
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.metric { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--c-black); }
.metric__value { order: 0; display: flex; align-items: flex-start; gap: 4px; }
.metric__number {
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 900;
    font-size: var(--fs-metric); line-height: 1; font-variant-numeric: tabular-nums;
}
.metric__number--sm { font-size: 48px; }
.metric__suffix {
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 900;
    font-size: calc(var(--fs-metric) * 0.6); line-height: 1; background: var(--c-yellow); color: var(--c-black); padding: 0 .1em;
}
.metric__label { order: 1; font-weight: 500; }
.metric__source .ph-tag { margin-top: 6px; }
.metric__source { order: 2; font-family: var(--font-mono); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-slate); }

/* Case study */
.case-feature { position: relative; display: grid; gap: var(--s-6); margin-bottom: var(--s-7); }
.case-feature__media { position: relative; }
.case-feature__body { display: grid; gap: var(--s-4); align-content: center; justify-items: start; }
.case-feature__body .h3 a { text-decoration: none; }
.case-feature__results { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.case-feature__results > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.case-feature__results dt { font-size: var(--fs-small); color: var(--c-slate); }
@media (min-width: 1024px) {
    .case-feature { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
    .case-feature__media { grid-column: 1 / span 7; }
    .case-feature__body { grid-column: 8 / span 5; }
}
@media (hover: hover) and (pointer: fine) {
    .case-feature:hover .link { text-decoration-thickness: 5px; }
    .case-feature:hover .link__icon { transform: translateX(4px); }
    .case-feature:hover .media img { transform: scale(1.04); }
}

/* Testimonials */
.quotes__track { list-style: none; display: grid; gap: var(--gap); }
@media (min-width: 1024px) { .quotes__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quotes--carousel .quotes__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 90%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px;
}
.quotes--carousel .quotes__track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .quotes--carousel .quotes__track { grid-auto-columns: 76%; } }
@media (min-width: 1024px) { .quotes--carousel .quotes__track { grid-auto-columns: calc(50% - var(--gap) / 2); } }
.quote { scroll-snap-align: start; background: var(--c-white); border: 1px solid var(--c-black); padding: var(--card-pad); display: grid; gap: var(--s-4); align-content: start; }
.quote figure { display: grid; gap: var(--s-5); }
.quote__mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--c-yellow); color: var(--c-black); }
.quote__mark .icon { width: 22px; height: 22px; }
.quote blockquote p { font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 60ch; color: var(--c-black); }
.quote figcaption { display: grid; gap: 2px; }
.quote__name { font-weight: 600; }
.quote__role { color: var(--c-slate); font-size: var(--fs-small); }
.quote__source { font-family: var(--font-mono); font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-slate); margin-top: var(--s-1); }
.quotes--carousel .quote blockquote p { font-size: var(--fs-body); line-height: var(--lh-body); }
.quotes__controls { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-5); }
.quotes__pos { font-family: var(--font-mono); font-size: var(--fs-label); min-width: 4ch; text-align: center; }

/* Logo wall */
.logos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--c-lightgray); border-left: 1px solid var(--c-lightgray); }
@media (min-width: 768px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logos__item { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: var(--s-4); border-right: 1px solid var(--c-lightgray); border-bottom: 1px solid var(--c-lightgray); }
.logos__item img { max-height: 48px; width: auto; opacity: .7; transition: opacity var(--dur-fast) var(--ease-out); }
.logos__item img:hover { opacity: 1; }
.logos__slot { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-slate); text-align: center; }

/* FAQ */
.faq { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) {
    .faq--split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
    .faq--split > .sec-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
    .faq--split > .faq__list { grid-column: 6 / span 7; }
}
.faq__list { border-top: 1px solid var(--c-lightgray); }
.faq__item { border-bottom: 1px solid var(--c-lightgray); position: relative; }
.faq__item::before { content: ""; position: absolute; left: -20px; top: 0; bottom: 0; width: 4px; background: var(--c-yellow); opacity: 0; transition: opacity var(--dur-base) var(--ease-in-out); }
.faq__item.is-open::before { opacity: 1; }
.faq__q { margin: 0; }
.faq__btn {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--s-5);
    min-height: 64px; padding: 20px 0; background: none; border: 0; text-align: left; cursor: pointer;
    font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 700;
    font-size: var(--fs-h4); line-height: var(--lh-h4);
}
.faq__icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--c-black); transition: background-color var(--dur-fast) var(--ease-out); }
.faq__icon .icon { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-in-out); }
.faq__btn:hover .faq__icon, .faq__btn[aria-expanded="true"] .faq__icon { background: var(--c-yellow); border-color: var(--c-yellow); }
.faq__btn[aria-expanded="true"] .faq__icon .icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-base) var(--ease-in-out); }
.faq__a-inner { overflow: hidden; }
.faq__a p { color: var(--c-slate); max-width: 68ch; padding-bottom: var(--s-5); }
.faq__item.is-closed .faq__a { grid-template-rows: 0fr; }
.faq__item.is-closed .faq__a-inner { visibility: hidden; }

/* CTA band (Brand Guidelines §12) */
.cta-band { overflow: hidden; }
.cta-band__grid { position: relative; display: grid; gap: var(--s-6); }
.cta-band__head { position: relative; display: grid; gap: var(--s-4); }
.cta-band__head .bracket--hero { top: calc(-1 * var(--bracket-arm) - 12px); }
.cta-band__head .h1 { color: var(--c-white); max-width: none; }
.cta-band__body { display: grid; gap: var(--s-5); justify-items: start; align-content: end; }
.cta-band__links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); }
@media (min-width: 1024px) {
    .cta-band__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: var(--s-4); }
    .cta-band__head { grid-column: 1 / span 7; }
    .cta-band__body { grid-column: 9 / span 4; }
}
.cta-inline .cta-band__grid { border-top: 2px solid var(--c-black); padding-top: var(--s-6); }
.cta-inline .cta-band__body { align-content: start; }
@media (min-width: 1024px) {
    .cta-inline .cta-band__head { grid-column: 1 / span 6; }
    .cta-inline .cta-band__body { grid-column: 8 / span 5; }
}

/* Awards */
.awards { list-style: none; display: grid; gap: var(--gap); }
@media (min-width: 768px) { .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .awards--grid, .awards--row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.award { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 1px solid var(--c-black); justify-items: start; }
.award__icon { width: 40px; height: 40px; margin-bottom: var(--s-2); }
.award__year { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--c-slate); }
.award__org { color: var(--c-slate); font-size: var(--fs-small); }

/* Events */
.events { list-style: none; display: grid; gap: var(--gap); }
@media (min-width: 1024px) { .events--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.event { position: relative; display: flex; gap: var(--s-5); align-items: flex-start; background: var(--c-white); border: 1px solid var(--c-black); padding: var(--card-pad); }
.event__date { flex: none; width: 88px; display: grid; place-items: center; padding: 12px 8px; border: 1px solid var(--c-black); text-align: center; transition: background-color var(--dur-fast) var(--ease-out); }
.event__day { font-family: var(--font-heading); font-stretch: var(--heading-stretch); font-weight: 900; font-size: 40px; line-height: 44px; }
.event__month { font-family: var(--font-mono); font-size: var(--fs-caption); }
.event__body { display: grid; gap: var(--s-2); }
.event__body a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .event:hover .event__date { background: var(--c-yellow); border-color: var(--c-yellow); } }

/* 10. Footer ------------------------------------------------------------------------------ */
.site-footer { background: var(--c-black); color: var(--c-lightgray); padding-block: var(--s-9) var(--s-6); border-top: 1px solid var(--c-slate); }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); padding-bottom: var(--s-7); border-bottom: 1px solid var(--c-slate); }
.site-footer__logo img { height: 72px; width: auto; margin-left: -10px; }
.site-footer__cols { display: grid; gap: var(--s-7) var(--gap); padding-block: var(--s-7); }
@media (min-width: 768px) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer__heading { font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--c-lightgray); margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--c-lightgray); text-decoration: none; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-footer .link { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 3px; }
.site-footer__text { margin-bottom: var(--s-4); max-width: 32ch; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--c-slate); font-size: var(--fs-small); }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

/* Error page */
.error-page { min-height: 50vh; }
.error-page .sec-head { margin-bottom: var(--s-6); }
.error-page__links { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); }
.debug { white-space: pre-wrap; font-family: var(--font-mono); font-size: 13px; background: var(--c-white); border: 1px solid var(--c-lightgray); padding: 16px; margin-top: 24px; overflow-x: auto; }

/* 11. Placeholder content (development/staging only; never rendered in production) ------- */
.ph-tag {
    display: inline-block; align-self: flex-start; justify-self: start;
    font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .02em;
    color: var(--c-red); background: var(--c-white); border: 1px dashed var(--c-red); padding: 3px 8px;
}
.card.is-placeholder, .quote.is-placeholder, .event.is-placeholder, .case-feature.is-placeholder,
.award.is-placeholder, .metric.is-placeholder, .creds__item.is-placeholder, .logos__item.is-placeholder {
    outline: 1px dashed var(--c-red); outline-offset: 4px;
}

/* 12. Styleguide (development/staging only) ----------------------------------------------- */
.sg-h { margin: var(--s-8) 0 var(--s-5); }
.swatches { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--gap); }
.swatch { display: grid; gap: 6px; font-size: var(--fs-small); }
.swatch__chip { display: block; height: 80px; border: 1px solid var(--c-lightgray); }
.swatch code { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-slate); }
.sw--black { background: var(--c-black); } .sw--yellow { background: var(--c-yellow); } .sw--offwhite { background: var(--c-offwhite); }
.sw--white { background: var(--c-white); } .sw--slate { background: var(--c-slate); } .sw--lightgray { background: var(--c-lightgray); } .sw--red { background: var(--c-red); }
.sg-type { display: grid; gap: var(--s-4); }
.sg-row { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; padding: var(--s-5) 0; }
.sg-row--dark { padding: var(--s-5); margin-top: var(--s-4); }
.sg-icons { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--gap); }
.sg-icons li { display: grid; gap: 8px; justify-items: start; }
.sg-label { background: var(--c-black); color: var(--c-lightgray); font-family: var(--font-mono); font-size: var(--fs-caption); padding-block: 10px; }
.sg-label code { color: var(--c-yellow); margin-right: 8px; }

/* 13. Motion (docs/ui/motion-guidelines.md). Content is visible by default; the
   hidden start states apply only when motion-init.js adds .js-motion. ------------------- */
.js-motion [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Hero: the one orchestrated moment on the page. */
@media (min-width: 768px) {
    .js-motion .hero--home .ln { overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
    .js-motion .hero--home .ln__in { display: inline-block; transform: translateY(105%); transition: transform var(--dur-hero) var(--ease-out); }
    .js-motion .hero--home.is-in .ln__in { transform: none; }
    .js-motion .hero--home .ln:nth-child(2) .ln__in { transition-delay: 100ms; }
    .js-motion .hero--home .ln:nth-child(3) .ln__in { transition-delay: 200ms; }
}
.js-motion .hero--home .hl { background-size: 0% 100%; transition: background-size 500ms var(--ease-out) 750ms; }
.js-motion .hero--home.is-in .hl { background-size: 100% 100%; }
.js-motion .hero--home [data-hero="label"],
.js-motion .hero--home [data-hero="lead"],
.js-motion .hero--home [data-hero="actions"],
.js-motion .hero--home [data-hero="pillars"] {
    opacity: 0; transform: translateY(16px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.js-motion .hero--home [data-hero="lead"] { transition-delay: 450ms; }
.js-motion .hero--home [data-hero="actions"] { transition-delay: 580ms; }
.js-motion .hero--home [data-hero="pillars"] { transition-delay: 760ms; }
.js-motion .hero--home.is-in [data-hero] { opacity: 1; transform: none; }
.js-motion .hero--home [data-hero="bracket"] { transform: scale(0); transform-origin: top left; transition: transform 400ms var(--ease-out) 1000ms; }
.js-motion .hero--home.is-in [data-hero="bracket"] { transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0ms !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 14. Print ------------------------------------------------------------------------------- */
@media print {
    .site-header, .mobile-nav, .skip-link, .quotes__controls, .video__play { display: none !important; }
    .sec { padding-block: 24px; }
    .bg-black { background: #fff; color: #000; }
    .js-motion [data-reveal], .js-motion [data-hero] { opacity: 1 !important; transform: none !important; }
}

/* Footer contact details and social profiles (Stage 5A, from Site settings) */
.site-footer__contact, .site-footer__social { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--fs-small); line-height: var(--lh-small); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.site-footer__contact a, .site-footer__social a { color: var(--c-lightgray); text-decoration-color: var(--c-yellow); text-underline-offset: 4px; }
.site-footer__contact a:hover, .site-footer__social a:hover { color: var(--c-white); }

/* Admin preview banner (Stage 5B) */
.preview-bar { position: sticky; top: 0; z-index: 300; margin: 0; padding: 10px var(--gutter); background: var(--c-yellow); color: var(--c-black); font-family: var(--font-mono); font-size: var(--fs-label); text-align: center; }

/* Stage 6A revision: page-hero visuals, compact service cards, image slots, richer motion ----- */
/* Page hero: a photograph (or, until one is chosen, a brand composition) covers the whole hero */
.hero--cover { align-items: center; min-height: clamp(480px, 70svh, 660px); padding-block: var(--s-8); }
.hero--cover .hero__copy { max-width: 760px; }
.hero--cover .breadcrumbs ol { color: var(--c-lightgray); }
.hero--cover .breadcrumbs a { color: var(--c-white); }
.hero--cover .breadcrumbs li + li::before { color: rgba(255, 255, 255, .4); }
.hero--cover .hero__brief { color: var(--c-lightgray); }
.hero__bg--page img { object-position: 60% 50%; }
.hero__bg--art { overflow: hidden; }
.hero__bg--art::after { display: none; }
.hero__art-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.hero__art-stage {
    position: absolute; top: 50%; right: 4%; width: 40%; aspect-ratio: 1; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center; gap: 9%;
}
.hero__art-ring {
    position: absolute; inset: 6%; border-radius: 50%;
    border: 1px solid rgba(255, 194, 26, .35);
    box-shadow: 0 0 0 36px rgba(255, 194, 26, .05), 0 0 0 72px rgba(255, 194, 26, .03);
}
.hero__art-icon { position: relative; display: grid; place-items: center; color: var(--c-yellow); width: 22%; aspect-ratio: 1; }
.hero__art--1 .hero__art-icon { width: 34%; }
.hero__art-icon .icon { width: 100%; height: 100%; }
.hero__art--3 .hero__art-icon--2 { color: var(--c-white); }
.hero__art-corner { position: absolute; border: 0 solid var(--c-red); }
.hero__art-corner--br { bottom: 28px; right: 28px; width: 56px; height: 56px; border-bottom-width: 6px; border-right-width: 6px; }
@media (max-width: 899px) {
    .hero--cover { align-items: flex-end; min-height: clamp(520px, 80svh, 680px); }
    .hero__art-stage { top: 8%; right: -6%; width: 78%; transform: none; opacity: .32; }
    .hero__art-grid { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
    .hero__art-corner--br { display: none; }
}

/* Service cards: compact, with an icon tile; heading beside the cards on wide screens */
.card-grid--compact .card { --card-pad: 22px; gap: var(--s-3); }
.card-grid--compact .card__title { font-size: var(--fs-h4); line-height: var(--lh-h4); padding-right: 28px; }
.card-grid--compact .card__text { font-size: 15px; line-height: 22px; }
.card--service .card__icon-tile { width: 52px; height: 52px; transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.card--service .card__icon-tile .card__icon { width: 28px; height: 28px; }
@media (min-width: 1100px) {
    .svc-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s-8); align-items: start; }
    .svc-row > .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
    .svc-row > .sec-foot { grid-column: 2; margin-top: var(--s-5); }
    .svc-row .card-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Check lists in two columns where there is room */
.checks li > span { min-width: 0; }
@media (min-width: 768px) { .checks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-6); } }
.split-grid__body { max-width: none; }
.split-grid__body > p { max-width: 68ch; }
@media (min-width: 1024px) { .split-grid > .split-grid__body--wide { grid-column: 6 / span 7; } }

/* Image slots read as part of the design rather than empty boxes (staging only) */
.media-split__media .media--slot { aspect-ratio: 4 / 3; }
@media (min-width: 1024px) { .media-split__media .media--4x5, .media-split__media .media--slot { aspect-ratio: 1 / 1; } }

/* Hover: lift, icon zoom, image zoom */
.card { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
    .card--service:hover .card__icon-tile { background: var(--c-yellow); transform: scale(1.08); }
    .card--service:hover .card__icon { transform: scale(1.12); }
    .media-split__media:hover .media img { transform: scale(1.05); }
    .feature:hover .feature__icon, .features li:hover .icon { transform: scale(1.15); }
}

/* Motion (only when motion-init.js allows it) */
.js-motion [data-reveal] > li { transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js-motion [data-reveal]:not(.is-in) > li { opacity: 0; transform: translateY(20px) scale(.97); }
.js-motion [data-reveal].is-in > li:nth-child(2) { transition-delay: 90ms; }
.js-motion [data-reveal].is-in > li:nth-child(3) { transition-delay: 180ms; }
.js-motion [data-reveal].is-in > li:nth-child(4) { transition-delay: 270ms; }
.js-motion [data-reveal].is-in > li:nth-child(5) { transition-delay: 360ms; }
.js-motion [data-reveal].is-in > li:nth-child(n+6) { transition-delay: 450ms; }
.js-motion .media-split__media[data-reveal] { transform: translateY(24px) scale(.96); }
.js-motion .media-split__media[data-reveal].is-in { transform: none; }
.js-motion .media-split__media .media img { transform: scale(1.12); transition: transform 1400ms var(--ease-out); }
.js-motion .media-split__media.is-in .media img { transform: none; }
.js-motion .sec-head .hl { background-size: 0% 100%; transition: background-size 600ms var(--ease-out) 250ms; }
.js-motion .sec-head.is-in .hl { background-size: 100% 100%; }

/* Page hero entrance: copy rises, visual zooms in, icons drift gently */
.js-motion .hero--page [data-hero] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js-motion .hero--page [data-hero="heading"] { transition-delay: 80ms; }
.js-motion .hero--page [data-hero="lead"] { transition-delay: 200ms; }
.js-motion .hero--page [data-hero="bracket"] { transform: scale(0); transform-origin: top left; opacity: 1; transition: transform 400ms var(--ease-out) 500ms; }
.js-motion .hero--page.is-in [data-hero] { opacity: 1; transform: none; }
.js-motion .hero--cover .hero__bg img { transform: scale(1.1); transition: transform 2400ms var(--ease-out); }
.js-motion .hero--cover.is-in .hero__bg img { transform: scale(1.02); }
.js-motion .hero--cover .hero__art-stage { opacity: 0; transition: opacity 1200ms var(--ease-out) 200ms; }
.js-motion .hero--cover.is-in .hero__art-stage { opacity: 1; }
@media (max-width: 899px) { .js-motion .hero--cover.is-in .hero__art-stage { opacity: .32; } }
.js-motion .hero--page .hl { background-size: 0% 100%; transition: background-size 500ms var(--ease-out) 450ms; }
.js-motion .hero--page.is-in .hl { background-size: 100% 100%; }
@keyframes mmh-drift { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.04); } }
@keyframes mmh-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .7; } }
.js-motion .hero__art-icon { animation: mmh-drift 6s var(--ease-in-out) infinite; }
.js-motion .hero__art-icon--2 { animation-delay: -2s; }
.js-motion .hero__art-icon--3 { animation-delay: -4s; }
.js-motion .hero__art-ring { animation: mmh-pulse 8s var(--ease-in-out) infinite; }
@media print { .js-motion .hero--page [data-hero] { opacity: 1 !important; transform: none !important; } }
.hero--page .breadcrumbs ol { margin-bottom: calc(var(--bracket-arm) + 28px); }

/* Stage 6B: card tiles without a photo, hero byline, topic filter chips ------------------- */
.media--tile {
    display: grid; place-items: center; background-color: var(--c-black);
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 32px 32px;
}
.media__tile-icon { width: 22%; max-width: 72px; height: auto; aspect-ratio: 1; color: var(--c-yellow); transition: transform var(--dur-slow) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .media__tile-icon, .case-feature:hover .media__tile-icon { transform: scale(1.15); } }
.hero__meta { font-family: var(--font-mono); font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: .04em; color: var(--c-slate); }
.hero--cover .hero__meta { color: var(--c-lightgray); }
.chips ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4);
    border: 1px solid currentColor; font-size: var(--fs-small); text-decoration: none;
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.hero--cover .chip { color: var(--c-white); border-color: rgba(255, 255, 255, .5); }
.chip:hover, .chip.is-current { background: var(--c-yellow); color: var(--c-black); border-color: var(--c-yellow); }
.js-motion .hero--page [data-hero="meta"] { transition-delay: 280ms; }
.js-motion .hero--page [data-hero="chips"] { transition-delay: 340ms; }
.prose--article { margin-inline: auto; max-width: 72ch; }
.prose--article h2 { margin-top: var(--s-7); }
.bg-black .metric__source, .bg-black .metric__label { color: var(--c-lightgray); }
.bg-black .metric { border-color: rgba(255, 255, 255, .35); }

/* Stage 6C: photo gallery, full-screen viewer, photos on events, awards and testimonials ---- */
.media--4x3 { aspect-ratio: 4 / 3; }
/* Uniform 4:3 tiles in reading order (left to right); the viewer shows each photo uncropped. */
.gallery { list-style: none; display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 399px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.gallery__item { min-width: 0; }
.gallery__item figure { margin: 0; }
.gallery__link { position: relative; display: block; overflow: hidden; background: var(--c-lightgray); }
.gallery__link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.gallery__zoom {
    position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--c-yellow); color: var(--c-black); opacity: 0; transform: scale(.8);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.gallery__zoom .icon { width: 20px; height: 20px; }
.gallery__link:focus-visible { outline: 3px solid var(--c-black); outline-offset: 3px; }
.gallery__link:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
    .gallery__link:hover img { transform: scale(1.05); }
    .gallery__link:hover .gallery__zoom { opacity: 1; transform: none; }
}
@media (hover: none) { .gallery__zoom { opacity: 1; transform: none; } }
.gallery__caption { margin-top: var(--s-2); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-slate); }
.bg-black .gallery__caption { color: var(--c-lightgray); }

.lightbox {
    width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px 72px; border: 0;
    background: rgba(15, 15, 15, .96); color: var(--c-white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(15, 15, 15, .9); }
.lightbox__figure { margin: 0; display: grid; gap: var(--s-3); justify-items: center; max-width: min(1400px, 100%); max-height: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 180px); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-lightgray); text-align: center; max-width: 70ch; }
.lightbox__count { position: absolute; top: 18px; left: 20px; font-family: var(--font-mono); font-size: var(--fs-label); color: var(--c-lightgray); }
.lightbox__btn {
    position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; cursor: pointer;
    background: var(--c-yellow); color: var(--c-black); transition: background var(--dur-fast) var(--ease-out);
}
.lightbox__btn:hover { background: var(--c-yellow-hover); }
.lightbox__btn:focus-visible { outline: 3px solid var(--c-white); outline-offset: 3px; }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next, .lightbox--single .lightbox__count { display: none; }
.js-motion .lightbox[open] .lightbox__img { animation: mmh-zoom-in 400ms var(--ease-out); }
@keyframes mmh-zoom-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.event--photo { align-items: stretch; }
.event__photo { flex: 0 0 160px; position: relative; overflow: hidden; }
.event__photo .media { height: 100%; }
@media (max-width: 599px) { .event--photo { flex-wrap: wrap; } .event__photo { flex-basis: 100%; } }
.event__more { margin-top: var(--s-2); position: relative; z-index: 1; }
.award__photo { margin-bottom: var(--s-3); }
.award .link { position: relative; z-index: 1; }
.quote__by--photo { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-3); align-items: center; }
.quote__by--photo > span { grid-column: 2; }
.quote__photo { grid-row: 1 / span 3; width: 56px; height: 56px; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .event--photo:hover .media img, .award--photo:hover .media img { transform: scale(1.05); } }

/* Stage 7: contact page, enquiry forms, floating WhatsApp button ------------------------- */
.contact-grid { display: grid; gap: var(--s-8); align-items: start; }
@media (min-width: 1024px) {
    .contact-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
    .contact-grid--single { grid-template-columns: minmax(0, 8fr); }
}
.contact-aside { background: var(--c-offwhite); padding: var(--card-pad); border-top: 6px solid var(--c-yellow); display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .contact-aside { position: sticky; top: calc(var(--header-h) + var(--s-5)); } }
.contact-aside__list { list-style: none; display: grid; gap: var(--s-5); }
.contact-aside__list li { display: grid; gap: var(--s-1); justify-items: start; }
.contact-aside__list a:not(.btn) { font-weight: 600; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-aside__note { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-slate); }
.lead-form { display: grid; gap: var(--s-5); }
.lead-form__grid { display: grid; gap: var(--s-5) var(--gap); }
@media (min-width: 700px) { .lead-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-small); line-height: var(--lh-small); }
.field__optional { font-weight: 400; color: var(--c-slate); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--c-black);
    background: var(--c-white); border: 1px solid var(--c-black); border-radius: 0;
    transition: box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--c-black) 50%), linear-gradient(135deg, var(--c-black) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-yellow); border-color: var(--c-black); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-red); border-width: 2px; }
.field__hint { font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--c-slate); }
.field__error { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-red); font-weight: 600; }
.field--check { display: flex; gap: var(--s-3); align-items: flex-start; }
.field--check input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; flex: 0 0 22px; accent-color: var(--c-black); }
.field--check label { font-weight: 400; }
.lead-form__notice { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-slate); }
.lead-form__notice a { text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lead-form__trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-errors { border: 2px solid var(--c-red); background: #FDF0EF; padding: var(--s-4) var(--s-5); display: grid; gap: var(--s-2); }
.form-errors ul { padding-left: 1.2em; }
.form-errors a { color: var(--c-red); font-weight: 600; }
.form-errors:focus { outline: 3px solid var(--c-black); outline-offset: 3px; }
.form-banner { margin: var(--s-6) 0 0; border-left: 6px solid var(--c-red); background: #FDF0EF; padding: var(--s-4) var(--s-5); font-weight: 600; }
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 56px; height: 56px; display: grid; place-items: center;
    background: var(--c-yellow); color: var(--c-black); box-shadow: var(--shadow-pop);
    transition: transform var(--dur-base) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:hover { background: var(--c-yellow-hover); transform: translateY(-3px) scale(1.05); }
.wa-float:focus-visible { outline: 3px solid var(--c-black); outline-offset: 3px; }
@media print { .wa-float { display: none; } }

/* Stage 9: cookie banner */
.consent { position: fixed; z-index: 60; inset: auto 0 0 0; background: var(--c-white); color: var(--c-black); border-top: 6px solid var(--c-yellow); box-shadow: 0 -8px 24px rgba(15, 15, 15, .12); max-height: 85vh; overflow-y: auto; }
.consent[hidden] { display: none; }
.consent__inner { max-width: 1200px; margin: 0 auto; padding: 20px 16px; display: grid; gap: 14px; }
.consent__title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; line-height: 26px; margin: 0; outline: none; }
.consent__title:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.consent__text { margin: 0; max-width: 80ch; font-size: 15px; line-height: 23px; }
.consent__text a { color: var(--c-black); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { flex: 1 1 160px; justify-content: center; }
.consent__prefs fieldset { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.consent__opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: var(--c-offwhite); }
.consent__opt input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--c-black); }
.consent__opt label { display: grid; gap: 2px; font-size: 15px; line-height: 22px; }
.consent__opt span { color: var(--c-slate); }
.has-consent .wa-float-wrap { display: none; }
.site-footer__cookies { background: none; border: 0; padding: 0; font: inherit; color: var(--c-lightgray); cursor: pointer; text-align: left; }
.site-footer__cookies:hover { color: var(--c-white); text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.site-footer__cookies:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
@media (min-width: 900px) {
    .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 32px; padding: 24px 32px; }
    .consent__title, .consent__text, .consent__prefs { grid-column: 1; }
    .consent__actions { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-self: center; min-width: 220px; }
    .consent__actions .btn { flex: none; }
}
@media print { .consent { display: none !important; } }

/* Stage 9B: privacy request steps */
.contact-aside__steps { margin: 0 0 var(--s-6); padding-left: 1.4em; display: grid; gap: var(--s-2); }
.contact-aside__steps li::marker { font-weight: 700; }
.contact-aside .h4 + .contact-aside__list { margin-top: var(--s-3); }

/* Stage 11: Team / Leadership cards */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6) var(--s-5); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 1024px) {
    .team-grid--2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
    .team-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .team-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.team-card { display: grid; gap: var(--s-2); align-content: start; }
.team-card__photo { margin-bottom: var(--s-2); }
.team-card__name { margin: 0; font-family: var(--font-heading); font-size: 22px; line-height: 28px; }
.team-card__name a { display: inline-flex; align-items: center; gap: 10px; color: var(--c-black); text-decoration: none; }
.team-card__name a:hover span:first-of-type { text-decoration: underline; text-decoration-color: var(--c-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.team-card__name a:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
.team-card__li { width: 22px; height: 22px; flex: none; color: #000; }
.team-card__role { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-slate); }
.team-card__bio { margin: var(--s-1) 0 0; font-size: 15px; line-height: 24px; }
.bg-black .team-card__name a, .bg-black .team-card__li { color: var(--c-white); }

/* Stage 11: whole service card is clickable (the card's main link covers the card;
   the small links inside stay clickable above it). */
.card--clickable .card__foot .link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card--clickable .card__links a { z-index: 2; }
.card--clickable { transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.card--clickable:hover { box-shadow: 6px 6px 0 var(--c-yellow); transform: translate(-2px, -2px); }
.card--clickable:hover .card__icon { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .card--clickable:hover { transform: none; } }
