/* UVU Africa — built from the real Figma design data (get_design_context
   on fileKey 8A7RIWLtK8PQWFd3ZqXTLr, node 20:352), not scaled down. Font
   sizes are the design's real px values; the content column is a fixed
   1400px max-width rather than the design's native ~1920px canvas, but
   type does NOT shrink to match that narrower column — a 64px heading is
   64px regardless of container width, exactly as it would be if this
   were simply a browser window narrower than the Figma frame.
   CHANGED 2026-09-18 (Chad): content column bumped site-wide from 1300px
   to 1400px. Every rule that shares this frame (.grid-container,
   .uvu-content, the nav's .inside-header, hero content/stats, Three
   Parts, Where We Work's strip offset, footer columns/bottom bar) was
   updated together so the logo, nav links, Contact Us button and every
   section's content all still start/end at the same x-position — this
   frame is deliberately duplicated across those rules rather than
   shared via a CSS variable (see the .uvu-content comment below for
   why), so a future width change must touch all of them again, not
   just this one. Sections that are deliberately WIDER than the frame
   (Where We Work's photo strip is full-bleed, Case Studies' card row at
   ~1660px, the CTA row at 1627px) are untouched — their widths are
   independent Figma measurements, not derived from this value. */

:root {
    --uvu-navy: #1D2951;
    --uvu-coral: #FA8072;
    --uvu-off-white: #F7F7F8;
    --uvu-light-grey: #D9D9D9;
    --uvu-white: #FFFFFF;
}

/* Corner radii. The design's large radii (40 / 34 / 32 / 24 / 20 / 17 / 16px,
   named by their desktop px) are right on a desktop card but make a ~350px
   phone card look over-rounded. Every one is one token that keeps its full
   value from a 625px-wide viewport up and shrinks in proportion below that
   (value x viewport / 625, never under 55% of it: 40px is 25px at 390px and
   22px at 320px), so the corners stay in the same proportion to the card on
   every screen and to each other. Pills (50px / 999px), circles (50%) and the
   small 4-10px radii are not touched. Elements that must line up (a card
   and its photo layers / caption shade) use the same token. */
:root {
    --uvu-r-40: clamp(22px, 6.4vw, 40px);
    --uvu-r-34: clamp(18.7px, 5.44vw, 34px);
    --uvu-r-32: clamp(17.6px, 5.12vw, 32px);
    --uvu-r-24: clamp(13.2px, 3.84vw, 24px);
    --uvu-r-20: clamp(11px, 3.2vw, 20px);
    --uvu-r-17: clamp(9.4px, 2.72vw, 17px);
    --uvu-r-16: clamp(8.8px, 2.56vw, 16px);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--uvu-navy);
}

/* GP's default global-styles body background (--base-2, a light grey) was
   showing through around every full-width section as a "boxed card" —
   force the whole content chain to plain white so our own section
   backgrounds (or lack of one = white) read correctly edge to edge. */
body,
#page,
.site-content,
#content,
.content-area,
#primary,
#main,
.site-main {
    background: #fff;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    padding-top: 0;
}

body {
    margin: 0 !important;
}

/* GeneratePress's own .alignfull rule is `max-width:100vw`, which does
   NOT subtract the scrollbar's width the way a `%`-based value would —
   so on any page tall enough to have a vertical scrollbar (i.e. every
   page here), every full-bleed section (hero, Three Parts, Where We
   Work, Who We Are, Case Studies, Partners strip) pokes a few px past
   the real viewport edge on both sides, and the page gets a permanent
   horizontal scrollbar. This is a known GP/Gutenberg quirk, not
   something in this stylesheet — confirmed by reading GP's own
   main.min.css directly. */
html,
body {
    overflow-x: hidden;
}

/* CORRECTION 2026-09-18: the comment above used to claim this poke-out
   was harmless because "the real content everywhere is already
   constrained by .uvu-content/the various __wrap elements" — that's
   false for exactly the content wrappers that sit DIRECTLY inside one
   of these .alignfull sections (.uvu-hero__content, .uvu-hero__stats,
   and every .uvu-content used inside Three Parts/Who We Are/Where We
   Work/Case Studies/Partners). Those use `width:100%` with a
   `max-width` cap, so at any viewport NARROWER than that cap they
   don't clip to a fixed size — they inherit 100% of the .alignfull
   parent's own (buggy, scrollbar-shifted) box directly, which measured
   consistently ~7.5px (half the scrollbar's own width) to the LEFT of
   where the nav/logo actually sit. Above the cap this is invisible
   because centering a fixed-width box within the shifted parent lands
   on the same visual center as the correctly-aligned nav frame (the
   two errors cancel by construction), but below the cap there's no
   centering to cancel it — headline text, stat numbers, section
   copy and card rows all rendered ~7.5px left of the logo/Contact Us
   frame, confirmed via getBoundingClientRect at 1024px width before
   this fix (found while widening the shared content frame from 1300px
   to 1400px, which enlarged the affected window from ~900-1300px to
   ~900-1400px — common laptop widths like 1366px sit right in it).
   Fixed at the source instead of patching every affected wrapper
   individually: every .alignfull section here is a direct child of
   .entry-content, which carries its own fixed, non-responsive 40px
   side padding at every width from 901px up to (at least) 1400px
   (confirmed empirically, not assumed) — replacing GP's vw-based
   escape with a margin tied to that real, known 40px padding removes
   the scrollbar term from the math entirely, rather than trying to
   compensate for a scrollbar width that varies by OS/browser and isn't
   knowable from CSS alone. Scoped to the exact window where that 40px
   figure holds and where the cancellation above stops applying. */
@media (min-width: 900px) and (max-width: 1400px) {
    /* GP's own rule is `.no-sidebar .entry-content .alignfull` (three
       classes) — a plain `.alignfull` here loses to it regardless of
       source order since specificity, not cascade position, decides
       between two non-!important rules. Matching that exact selector
       ties specificity, so ours (declared later) wins instead. */
    .no-sidebar .entry-content .alignfull {
        margin-left: -40px;
        margin-right: -40px;
        width: auto;
        max-width: none;
    }
}

.grid-container {
    max-width: 1400px;
}

/* GP auto-wraps every wp:group's children in a legacy
   .wp-block-group__inner-container div carrying its OWN 40px padding
   and (via block-layout defaults) its own narrower width — this was
   silently shrinking every section's real content (measured: a 1424px-
   wide alignfull section's content collapsed to 1120px because of this
   wrapper, not because of anything in our own CSS). Same issue hit and
   fixed the same way on LynnWood Wealth. Neutralize it everywhere and
   let our own explicit 1400px content wrappers be the only thing that
   sets width. */
.wp-block-group__inner-container {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* THE canonical content frame — identical box model to the nav's
   .inside-header (max-width:1400px, 20px padding, border-box), so
   every section's real content starts exactly where the logo starts
   and ends exactly where the Contact Us button ends, at every screen
   size (the 20px padding holds even once max-width stops mattering on
   narrower viewports — same reasoning as LynnWood's own container).
   .uvu-section only ever provides VERTICAL padding; this class is the
   only thing that ever sets horizontal position, so there is exactly
   one place width/alignment can drift instead of many. */
/* 1400px, matching #masthead .inside-header exactly (see that rule
   below) — this is the deliberate, load-bearing part of this class:
   every section's content must start exactly where the logo starts and
   end exactly where the Contact Us button ends. A previous edit bumped
   this to 1660px based on cross-measuring Figma text-node coordinates
   (Where We Work, Who We Are, Case Studies and the CTA row all measure
   noticeably wider than 1300px there) without checking it against the
   header's own hard-pinned width first — the developer caught the
   resulting misalignment (nothing lined up with the logo any more) and
   reverted to a shared, hard-pinned value; site-wide vertical alignment
   with the header wins over matching each section's own Figma
   measurement exactly. CHANGED 2026-09-18 (Chad): that shared value
   moved from 1300px to 1400px — still hard-pinned and still shared with
   the header, just a wider number. Sections that DO need to run wider
   than this (Where We Work's photo strip, Case Studies' card row, the
   CTA row) already do so deliberately via their own full-bleed
   treatment outside .uvu-content, not by widening this shared class. */
.uvu-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* The hero must start at literal y:0 so the absolutely-positioned nav
   sits entirely over it, not partly over a gap of default content
   padding above it. */
.inside-article,
.entry-content,
#main > article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.uvu-hero {
    margin-top: 0 !important;
}

/* The sitewide .wp-block-group__inner-container reset above only
   neutralizes GP's legacy 40px LEFT/RIGHT padding on that auto-wrapper —
   its top/bottom padding (30px each, measured directly, not assumed)
   was left standing sitewide, which is invisible for sections with
   generous room to spare but was quietly adding 60px of totally
   unbudgeted height to the hero specifically — on top of every
   svh-clamped value below, still pushing the stats row below the fold
   on short viewports no matter how far those clamps shrank. Scoped to
   the hero only (not the shared global rule) so no other section's
   vertical spacing changes. */
.uvu-hero > .wp-block-group__inner-container,
.uvu-hero__content > .wp-block-group__inner-container {
    padding-top: 0;
    padding-bottom: 0;
}

/* .uvu-hero's flex/justify-content actually has no effect on its own —
   its ONLY direct child is this single auto-wrapped inner-container
   (the align:full group's legacy wrapper), and a lone flex item under
   space-between just sits at flex-start with the leftover space
   trailing after it, not distributed. This div is the one that
   actually holds .uvu-hero__content and .uvu-hero__stats as its two
   real children (the carousel is absolutely positioned, so it doesn't
   count as a flex item) — THIS is what needs to stretch to the full
   hero height and do the space-between distribution, so the content
   block sits near the nav and the stats row pins to the true bottom
   edge with the photo filling the gap between them. Confirmed via
   getBoundingClientRect before this fix: hero was 1080px tall but this
   wrapper was only ~700px, leaving 380px of dead space AFTER the stats
   instead of the photo gap ending up where the design wants it. */
.uvu-hero > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* `min-height: 100%` here does NOT reliably resolve, because .uvu-hero's
       own height comes from `min-height`, not an explicit `height` — a
       percentage height against that is undefined/inconsistent. flex-grow
       stretches this item to fill whatever space flexbox actually computed
       for .uvu-hero regardless of how that height was arrived at, which is
       what actually makes this wrapper (and therefore the space-between
       below) span the hero's full height. Confirmed via getBoundingClientRect
       — min-height:100% left this at ~600px inside a 1024px-tall hero. */
    flex-grow: 1;
}

/* Vertical rhythm only — horizontal alignment is .uvu-content's job
   exclusively, so a section's colour band can stay full-bleed
   (alignfull) while its actual content still lines up with the nav. */
.uvu-section {
    padding: 80px 0;
}

/* "Fix padding throughout the pages top and bottom. It looks too big" —
   the same GP inner-container bug already found and fixed for the hero
   (see .uvu-hero > .wp-block-group__inner-container above) and patched
   on just the bottom edge of .uvu-partners was never fixed for the
   REST of the sections: GeneratePress auto-wraps every wp:group's
   children in a legacy .wp-block-group__inner-container that carries
   its own 40px top/bottom padding, stacking on top of this class's own
   80px — so Who We Are, Three Parts, Where We Work and Case Studies
   were all rendering ~120px of real top/bottom whitespace (128px for
   Where We Work's 88px override) instead of the intended 80/88px.
   Measured directly via getBoundingClientRect before fixing (Who We
   Are: section padding 80px each side, inner-container ANOTHER 40px
   each side, confirmed by the 274px-tall inner-container against
   ~115px of actual heading+paragraph content). Zeroing it here, once,
   sitewide for every .uvu-section makes this class's own padding (or
   a section's specific override, like .uvu-where's 88px bottom) the
   ONLY thing controlling vertical spacing — no more stacking.
   `display: flow-root` is also needed, not just the zeroed padding:
   once inner-container had zero padding/border, the last WP core
   block inside it (e.g. Who We Are's wp:columns) could margin-collapse
   its own bottom margin straight through inner-container's boundary,
   silently adding it back on top of .uvu-section's padding — measured
   an extra 30px on Who We Are and 24px on Where We Work this way even
   after the padding fix above. flow-root creates a new block
   formatting context so no child margin can escape past this wrapper. */
.uvu-section > .wp-block-group__inner-container {
    padding-top: 0;
    padding-bottom: 0;
    display: flow-root;
}

.uvu-eyebrow {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 12px;
    margin-bottom: 8px;
}

.uvu-section__lede {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
    color: var(--uvu-navy);
    opacity: 0.85;
}

/* Header / nav — sits transparently over the hero image, single row:
   logo left, links + Contact Us button on the right. Matches the Figma
   nav exactly: logo ~112x82, links Montserrat SemiBold 18px white,
   Contact Us a full pill (rounded-[50px], 53px tall, coral). */
/* Real DOM structure (confirmed by inspecting the rendered markup, not
   assumed): GP nests BOTH nav elements INSIDE .inside-header — they are
   not siblings of it. So .inside-header, not #masthead, is the actual
   flex row that needs the 1400px/20px-padding treatment; #masthead is
   just the transparent full-width shell that positions it over the hero. */
#masthead {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 30 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

#masthead .inside-header.grid-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
}

#masthead .site-branding-container {
    flex: 0 0 auto;
}

#masthead .site-branding-container {
    display: flex;
    align-items: center;
}

/* Real logo image is in place — the text title next to it is redundant */
#masthead .site-branding {
    display: none;
}

#masthead .site-logo img {
    max-height: 72px;
    width: auto;
    display: block;
}

/* GP renders TWO hamburger buttons: this outer one (its own separate
   nav, matched by data-nav to #site-navigation) and a second, redundant
   one nested inside #site-navigation itself. Both were unconditionally
   hidden before, at every screen width — meaning there was NO way to
   open the mobile menu at all; the full desktop link row just rendered
   inline instead, overlapping the hero (see the ≤900px block below,
   which re-shows this one and gives it real behaviour via nav.js). */
@media (min-width: 901px) {
    #masthead .main-navigation.mobile-menu-control-wrapper {
        display: none;
    }
}

#site-navigation {
    flex: 1;
    background: transparent;
}

#site-navigation .inside-navigation {
    padding: 0;
    max-width: none;
}

/* A second mobile-toggle button lives INSIDE .inside-navigation itself
   (distinct from the outer .mobile-menu-control-wrapper already
   hidden) — GP's justify-content:space-between on .inside-navigation
   was giving it real flex space, shrinking #primary-menu down to its
   own content width instead of filling the row (confirmed: measured
   821px instead of the available 1145px). */
#site-navigation .inside-navigation > button.menu-toggle {
    display: none;
}

/* A single auto-margin item plus justify-content:center does NOT center
   the other items — it absorbs ALL the free space itself, leaving the
   rest flush at the start (confirmed: links ended up hugging the logo).
   Real fix: take Contact Us out of the flex flow entirely and pin it to
   the row's right edge, so the <ul> only has to place its real links in
   the space to the left of it — no competing auto-margins involved.
   The links sit against the right: they end one link-gap (64px) before the
   Contact Us button (158px wide), so padding-right is 158 + 64. They used to
   be centred between the logo and the button, which suited five links but
   left three floating mid-header (Naomi Ncube, 2026-10-30: align the menu to
   the right). */
#primary-menu.main-nav {
    display: flex;
    flex: 1;
    position: relative;
    padding-right: 222px;
    box-sizing: border-box;
}

#primary-menu .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 64px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu .menu > li.uvu-nav-contact {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#primary-menu .menu > li > a {
    position: relative;
    color: var(--uvu-white);
    font-weight: 600;
    font-size: 16px;
    padding: 0;
}

/* Same coral underline treatment as LynnWood Wealth's nav (::after,
   scaleX transform, currentColor there — coral here per this design's
   colours). LynnWood inset the underline by GP's own 20px link padding
   so it matched the text width instead of the full clickable box; our
   links have no such padding (padding:0 above), so left:0/right:0
   already matches the text width here. Scoped to exclude the Contact Us
   button — that's a pill, not a text link, and shouldn't get this. */
#primary-menu .menu > li:not(.uvu-nav-contact) > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--uvu-coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

#primary-menu .menu > li:not(.uvu-nav-contact) > a:hover::after,
#primary-menu .menu > li:not(.uvu-nav-contact) > a:active::after {
    transform: scaleX(1);
}

#primary-menu .uvu-nav-contact a {
    background: var(--uvu-coral);
    color: var(--uvu-white) !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 21px;
    min-width: 158px;
    height: 53px;
    box-sizing: border-box;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background-color 0.2s ease;
}

/* Same hover treatment as the hero buttons — goes navy on hover. */
#primary-menu .uvu-nav-contact a:hover {
    background: var(--uvu-navy) !important;
    color: var(--uvu-white) !important;
}

/* Mobile nav: #masthead becomes the positioning context (position:
   relative, set below) for the dropdown panel, which is why nav.js
   toggles a class on #masthead itself rather than on #site-navigation
   or the menu — one shared anchor for both the CSS and the JS. */
@media (max-width: 900px) {
    /* BUG FOUND while tightening the hero's height-based sizing below:
       these two need !important — the desktop rule above declares
       `position: absolute !important` / `background: transparent
       !important`, and an !important declaration always wins over a
       later non-!important one regardless of media query or source
       order. Without this, #masthead was SECRETLY still absolute/
       transparent at every width, not actually becoming the in-flow
       solid navy bar this comment block always claimed — it just never
       showed because the old, much larger fixed hero padding-top
       (110px/90px) happened to clear the overlaid nav's real height by
       coincidence. Shrinking that padding to fit short viewports
       removed the accidental buffer and exposed the logo/text overlap
       directly. Confirmed via getComputedStyle before this fix:
       position was "absolute" even at 844px width. */
    #masthead {
        position: relative !important;
        background: var(--uvu-navy) !important;
    }

    #masthead .inside-header.grid-container {
        padding: 20px !important;
    }
}

/* Nav is now genuinely in-flow on mobile/tablet (fixed above), so its own
   height is a real, fixed cost on top of whatever the hero below it
   needs — and unlike the hero's own sizing, it wasn't responding to a
   short viewport at all (72px logo + 20px×2 padding = ~112px regardless
   of device height). On a short-but-still-narrow screen (a landscape
   phone, or a portrait phone with an unusually tall on-screen browser
   toolbar) that fixed cost alone was enough to push the stats row back
   below the fold even after every hero value above had already shrunk
   to its floor. Scoped to max-height so normal-height phones (~667px+)
   keep the full-size logo/nav untouched. */
@media (max-width: 900px) and (max-height: 620px) {
    #masthead .inside-header.grid-container {
        padding: 10px 20px !important;
    }

    #masthead .site-logo img {
        max-height: 44px;
    }

    /* The matching hero min-height override for THIS compacted-nav
       regime lives further down, right after the plain ≤900px hero
       rule — not here — because two equal-specificity `.uvu-hero`
       rules under different media queries are decided by SOURCE ORDER,
       not by which media query is "more specific" (both conditions can
       be true at once here). Putting it here, before that plain ≤900px
       rule, would have it silently overridden by the -112px version. */
}

@media (max-width: 900px) {
    #masthead .main-navigation.mobile-menu-control-wrapper {
        display: flex;
        align-items: center;
        margin-left: auto;
        /* GP's own .main-navigation default is background:#fff — without
           this it painted a solid white box behind the hamburger icon,
           hiding the bars entirely instead of showing white lines on
           the transparent/navy header. */
        background: none;
    }

    #mobile-menu-control-wrapper .menu-toggle {
        /* GeneratePress only shows its toggle up to 768px (`.menu-toggle
           { display: none }` above that), but this menu collapses at 900px,
           so between 769 and 900px (iPad portrait, a big phone on its side)
           the wrapper was there with no button in it and no way to open the
           menu at all. */
        display: block;
        background: none;
        border: none;
        padding: 8px;
        margin: 0;
        cursor: pointer;
        line-height: 0;
        color: var(--uvu-white);
        -webkit-tap-highlight-color: transparent;
    }

    /* Every state of the button keeps the same look. GP and the global
       button rules restyle button:hover / :focus / :active (a dark colour
       and a background), and a touch tap leaves a button hovered and
       focused, so the icon must not depend on the default state alone. */
    #mobile-menu-control-wrapper .menu-toggle:hover,
    #mobile-menu-control-wrapper .menu-toggle:focus,
    #mobile-menu-control-wrapper .menu-toggle:active {
        background: none;
        color: var(--uvu-white);
    }

    #mobile-menu-control-wrapper .menu-toggle:focus-visible {
        outline: 2px solid var(--uvu-coral);
        outline-offset: 2px;
        border-radius: 8px;
    }

    #mobile-menu-control-wrapper .gp-icon {
        color: var(--uvu-white);
    }

    #mobile-menu-control-wrapper .gp-icon svg {
        width: 28px;
        height: 28px;
        fill: currentColor;
    }

    /* GP's icon markup ships both the bars and the close (X) glyph in
       every toggle button; only one shows at a time. Default: bars.
       nav.js adds .is-open to #masthead when the panel is open. */
    #mobile-menu-control-wrapper .gp-icon svg:last-child {
        display: none;
    }

    #masthead.is-open #mobile-menu-control-wrapper .gp-icon svg:first-child {
        display: none;
    }

    #masthead.is-open #mobile-menu-control-wrapper .gp-icon svg:last-child {
        display: block;
    }

    /* The menu sits on its own full-width row under the logo + toggle (GP does
       this itself, but only up to 768px: `.has-inline-mobile-toggle
       #site-navigation { flex-basis: 100% }` and `.inside-header { flex-wrap:
       wrap }` are inside its max-width:768px block). Without it, 769-900px
       left the nav as a zero-width item mid-header, the toggle in the middle
       of the row and the dropdown (anchored to the nav) 40px wide. */
    #masthead .inside-header.grid-container {
        flex-wrap: wrap;
    }

    #site-navigation {
        flex: 0 0 100%;
    }

    /* Hidden by default; nav.js toggles #masthead.is-open to reveal it
       as a full-width dropdown anchored under the header row. Desktop's
       flex:1/padding-right:180px (reserving room for the absolutely
       positioned Contact Us button) don't apply here — Contact Us goes
       back into normal flow as just the last stacked link. */
    #primary-menu.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex: none;
        padding: 8px 20px 28px;
        background: var(--uvu-navy);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
        box-sizing: border-box;
        border-radius: var(--uvu-r-16);
        z-index: 40;
    }

    #masthead.is-open #primary-menu.main-nav {
        display: flex;
    }

    #primary-menu .menu {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
    }

    #primary-menu .menu > li.uvu-nav-contact {
        position: static;
        transform: none;
        margin-top: 4px;
    }
}

/* Hero — every vertical measurement below (padding, heading sizes, button
   height, stats padding) is a clamp() keyed to svh (small viewport height,
   the safe-before-chrome-collapses figure on mobile) rather than a fixed
   px value. Ceiling = the real Figma px value, so on any viewport tall
   enough this renders at full design size; only on a viewport too SHORT
   to fit that full stack (a windowed/non-maximized browser, a laptop with
   heavy chrome, a landscape phone) does the whole stack shrink together,
   proportionally, so the stats row stays inside the first screen instead
   of overflowing past it. The hero itself is a full `100svh` — it should
   visually fill the screen like a real banner, not just shrink-wrap to
   its own content — with `space-between` so the text block sits up near
   the nav and the stats row pins to the very bottom edge, and the photo
   fills whatever gap is left between them. This only works BECAUSE the
   content above is verified (see the project record's 14-viewport test)
   to always total less than 100svh with margin to spare — the space that
   creates is exactly the gap this layout needs, never a shortfall. */
.uvu-hero {
    position: relative;
    min-height: 100svh;
    color: var(--uvu-white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.uvu-hero__carousel,
.uvu-hero__track,
.uvu-hero__slide {
    position: absolute;
    inset: 0;
}

.uvu-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.uvu-hero__slide.is-active {
    opacity: 1;
}

/* Lives INSIDE slide 1 only (see hero-home.php) so it fades in/out with
   that slide rather than sitting as a shared layer over every photo —
   Banners 2-4 have no dark-left area baked in and were never meant to
   carry this gradient (confirmed by opening the source files: only
   Banner 1 has any inherent darkening).

   Slide 1 is Figma's own composite, three layers in the design's order
   (Home frame 555:51, hero 679:100): (1) the navy left-to-right gradient
   over the photo (node 975:354: 90% at 21.966% to 0 at 52.499%); (2) a
   navy 0 -> 60% band over the bottom 17.4% (node 572:50, y 898-1088 of
   1090) so the stats stay legible; (3) a flat #1D2951 rectangle in MULTIPLY
   at 50% over the whole hero (node 555:200). The first build had (2) as a
   gradient over the full height and no (3) at all, so the hero read about
   30% lighter and flatter than the design (sampled: left edge 29,41,81
   against the design's 18,25,53; face 112,95,95 against 83,70,68). With
   all three the sampled regions land within 1-4 levels of Figma. The
   band's 15px backdrop blur is left out on purpose: sampled against
   Figma it changes nothing visible under a 60% navy tint, and a
   backdrop-filter inside a slide that fades its own opacity would only
   switch on at the very end of the crossfade. */
.uvu-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29, 41, 81, 0.9) 21.966%, rgba(29, 41, 81, 0) 52.499%);
}

.uvu-hero__overlay:not(.uvu-hero__overlay--flat)::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 82.39%;
    bottom: 0.18%;
    background: linear-gradient(180deg, rgba(29, 41, 81, 0), rgba(29, 41, 81, 0.6));
}

.uvu-hero__overlay:not(.uvu-hero__overlay--flat)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--uvu-navy);
    mix-blend-mode: multiply;
    opacity: 0.5;
}

/* Slides 2-4: plain black darkening instead of slide 1's navy gradient
   — developer-specified, separate from the "does the source photo
   already have this" check done for slide 1. */
.uvu-hero__overlay--flat {
    background: rgba(0, 0, 0, 0.4);
}

/* "UVU" watermark — Figma's own mask group (node 555:207): white at 10%
   through the same artwork as the Partner / Our Story heroes' watermark
   (a raster alpha mask, 1602x1242; this one is the Home frame's copy,
   Rectangle 11), placed at x=1337 / y=246 and 740.033px wide (38.543% of
   1920), with its left 10.15% and bottom 1.48% cut off by the mask
   group's box. The right edge runs past the hero and is clipped by
   .uvu-hero's overflow:hidden, as in the design. This replaces an
   earlier version that tiled uvu-pattern.svg (a 544 KB SVG whose pattern
   fill was an embedded raster, already at 10% opacity inside the file)
   at 60% through an elliptical mask: it came out fainter, a different
   shape and heavier than the design (sampled at x1600 y500: 88,68,74
   against the design's 68,52,51; now identical). Vertical position is a
   percentage of the hero's height (246 / 1090) because the hero is
   100svh, not a fixed 1090px. */
.uvu-hero__pattern {
    position: absolute;
    top: 22.57%;
    left: 69.635%;
    width: 38.543%;
    aspect-ratio: 1602 / 1242;
    background: var(--uvu-white);
    opacity: 0.1;
    -webkit-mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    clip-path: inset(0 0 1.48% 10.15%);
    pointer-events: none;
}

/* Same 1400px/20px frame as the nav and every other section, so the
   headline starts at exactly the same x-position as the logo. The text
   itself is narrower (readability), but that's a max-width on the
   CHILDREN, not on this frame — the frame is what has to line up. */
/* flex-grow + a centered single flex item (its own auto-wrapped
   inner-container) so the headline block sits in the MIDDLE of
   whatever space is actually left between the nav and the stats row,
   instead of being anchored to the top by padding-top alone. Before
   this, shrinking padding-top on a short viewport was the ONLY thing
   moving the text — so as it shrank toward its floor, the text visibly
   crept up right against the nav. Now the padding clamp is just a
   guaranteed MINIMUM clearance either side; any space beyond what the
   text needs gets split evenly above and below by the centering,
   keeping the headline visually centered in the hero at every height
   instead of hugging the top edge. */
.uvu-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(30px, 14svh, 200px) 20px clamp(6px, 3.5svh, 60px);
    box-sizing: border-box;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uvu-hero__content > * {
    max-width: 760px;
}

/* The design hard-codes its own line breaks rather than relying on wrap
   (its source has each line as a separate paragraph) — matched with
   explicit <br> tags in the markup instead of guessing a width that
   happens to wrap the same way. These max-widths only need to be wide
   enough that the <br>-separated lines don't wrap AGAIN on their own. */
/* "It is an H1 and it looks small" — checked against the page's own
   plain `.uvu-section h2` (a flat 42px, not height-fluid): across every
   realistic small-desktop browser height (700-824px, the actual range
   most laptop browser windows land in after toolbar chrome), this H1's
   old clamp rendered 32-38px — SMALLER than a plain H2 elsewhere on the
   same page. Only past ~915px of viewport height did it pull ahead.
   Raised the floor to 44px (a hard guarantee, not just a low svh
   multiplier) so the H1 always reads larger than any H2 on the page
   regardless of window height, and raised the cap toward the Figma
   source (64px) to 62px. Nudged bigger again per direct feedback
   ("This heading can go bigger"): floor 52px, cap 72px (was 44/62,
   now past the 64px Figma source, same "bigger than the design"
   direction as the stats/lede feedback elsewhere this session). */
.uvu-hero__title {
    max-width: 700px;
    font-size: clamp(52px, 6svh, 72px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: clamp(4px, 1.3svh, 20px);
}

.uvu-hero__subhead {
    max-width: 700px;
    font-weight: 700;
    font-size: clamp(14px, 3svh, 36px);
    line-height: 1.25;
    margin-bottom: clamp(4px, 1.3svh, 20px);
}

/* Description has no hard-coded break in the design — this width is
   tuned so the real copy wraps naturally into 2 lines. Narrowed from
   700px per direct feedback ("the text width needs to be shorter") —
   at 700px the single sentence stretched close to the same measure as
   the (now-bigger) headline above it; 560px gives a visibly shorter
   line length while still wrapping to a clean 2 lines. */
.uvu-hero__desc {
    max-width: 560px;
    font-size: clamp(10px, 2svh, 25px);
    line-height: 1.3;
    margin-bottom: clamp(4px, 2svh, 32px);
}

/* The design leaves 75px between the description and the buttons (node
   555:206 ends y=738, buttons start y=813); here it was a flat 2svh (22px
   at 1080), so the buttons sat tucked under the copy. Opened up on viewports
   tall enough to spare it; below 760px the stack stays as tight as before so
   the headline never rides up into the nav. */
@media (min-height: 760px) {
    .uvu-hero__desc {
        margin-bottom: clamp(8px, 4.2svh, 48px);
    }
}

.uvu-hero .wp-block-button__link {
    padding: clamp(5px, 1.2svh, 14px) 32px;
    min-width: 158px;
    height: clamp(26px, 4.3svh, 53px);
    box-sizing: border-box;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Both hero buttons go navy on hover. !important needed because WP core
   applies has-coral-background-color with !important of its own. */
.uvu-hero .wp-block-button__link:hover {
    background-color: var(--uvu-navy) !important;
    color: var(--uvu-white) !important;
}

/* "See our impact" — a subtle glossy tint instead of flat transparent,
   with a thinner border than WP core's default 2px outline style. */
.uvu-hero .wp-block-button.is-style-outline .wp-block-button__link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.uvu-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--uvu-navy);
}

/* Developer's diagnosis: the outer container's justify-content:space-
   between was the actual bug — it sizes gaps off leftover space, which
   varies with content length instead of being predictable. Fix: each
   stat is an EQUAL-WIDTH column (flex:1), so the 4 of them always sum to
   exactly 100% of this frame with no leftover space to distribute — the
   row starts at the logo's x and ends at the Contact Us button's x
   because both share the identical 1400px/20px frame, not because of
   any justify-content trick on this element. */
.uvu-hero__stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    color: var(--uvu-off-white);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(5px, 2svh, 32px) 20px;
    box-sizing: border-box;
}

/* CORRECTED against the real Figma instance (node 679:100 stats row):
   the number+label pair sits as a tight, centered unit within each
   column, with breathing room on both sides before the dividers — not
   stretched edge-to-edge via space-between. That space-between was
   stretching the label away from its number to chase the divider,
   producing large, uneven gaps that don't exist in the design (the
   number and label are only ~12px apart in the source). */
.uvu-stat {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 24px;
    border-left: 1px solid rgba(247, 247, 248, 0.6);
}

/* At the current (larger) font sizes, 4 equal columns genuinely no
   longer fit a single row below ~1100px — confirmed: 1024px clipped
   "Livelihoods supported" off the frame. Rather than keep shrinking
   text to chase narrower widths, switch to a predictable 2x2 grid
   instead of relying on flex-wrap's less predictable break point. */
@media (max-width: 1100px) {
    .uvu-hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 20px;
        row-gap: clamp(4px, 1.5svh, 20px);
    }

    .uvu-stat:nth-child(odd) {
        padding-left: 0;
        border-left: none;
    }

    .uvu-stat:nth-child(even) {
        padding-left: 24px;
        border-left: 1px solid rgba(247, 247, 248, 0.6);
    }
}

.uvu-stat:first-child {
    padding-left: 0;
    border-left: none;
}

/* Single-row layout (above the 2x2 grid breakpoint): each stat is only as
   wide as its own number + label, and the spare width is shared so that
   every divider has the SAME space either side of it. That is the design's
   structure (node 679:100: number + label groups with a 52px divider
   between them) and it is what the first version, four equal-width
   columns, could not do: "$100M + Funds secured & deployed" is wider than
   a quarter of the row, so its label wrapped to three lines and the last
   number sat 12px from its divider while the first sat 30px. Grow weights
   1 : 2 : 2 : 1 with the ends pinned outward: the first stat gives all of
   its spare room to its right (next to the divider), each middle stat
   splits its spare room left and right, the last gives all of its to its
   left, so each divider gets the same extra on both sides. The row still
   starts at the logo's x and ends at the Contact Us button's x. Measured
   at 1920x1080 down to 1101x700: gap before / after every divider equal
   (40/41 at 1920, 48/49 at 1101), every label on two lines. */
@media (min-width: 1101px) {
    .uvu-hero__stats .uvu-stat {
        flex: 2 1 auto;
        justify-content: center;
    }

    .uvu-hero__stats .uvu-stat:first-child {
        flex-grow: 1;
        justify-content: flex-start;
    }

    .uvu-hero__stats .uvu-stat:last-child {
        flex-grow: 1;
        justify-content: flex-end;
        padding-right: 0;
    }
}

/* Checked against the real Figma stats row (node 679:100): the numbers
   are 48px there. First pass brought this up to clamp(16px, 3.5svh,
   42px) to match the ~88% shrink ratio the rest of the hero keeps to
   its own source sizes (title 64->56, subhead 40->36, desc 28->25).
   Feedback after seeing that live: still wanted bigger, so nudged past
   that ratio toward the full source size — cap 46px (~96% of Figma).
   Nudged again ("the stats can go bigger"): cap now 54px, past the
   48px Figma source, same direction as the hero title/lede feedback
   elsewhere this session. */
.uvu-stat__value {
    font-size: clamp(22px, 4.6svh, 54px);
    font-weight: 700;
    white-space: nowrap;
}

.uvu-stat__label {
    /* Each label has an explicit <br> at its natural split point (same
       approach as the hero headline) instead of a max-width, so the box
       shrink-wraps to whichever of the two manual lines is longer, with
       no leftover space. Spacing before the next divider now comes from
       the column's own padding (above), not a one-sided label padding —
       that's what let the label drift off-center from its number.
       Size bumped ("the text next to the number" too): cap 20px (was
       16px, past the 18px Figma source), floor/multiplier raised to
       match. */
    text-align: left;
    font-size: clamp(13px, 1.7svh, 20px);
    /* The design's labels are Montserrat Regular in solid #F7F7F8
       (nodes 555:239-242); this was Medium at 90%. nowrap because the
       two lines are the explicit <br>: left to wrap, "Funds secured &
       deployed" broke into three lines in a narrow column. */
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
}

.uvu-section h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
}

/* Right column's paragraph vertically centered within the row's height
   (matching the left column, which is often taller/shorter depending on
   its own heading length) rather than sticking to the top. */
.uvu-who__columns .wp-block-column:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.uvu-three-parts h2,
.uvu-where h2 {
    font-size: 46px;
}

/* "This text looks too big" (Three Parts' intro lede — the only place
   this class is used). Figma's own node (555:193) is actually 24px,
   even bigger than this rule's old 21px, so this isn't a
   restore-to-design fix — it's a direct size-down past what the
   design itself specifies, same as the hero description width/H1
   feedback earlier. */
.uvu-section__lede {
    font-size: 18px;
    line-height: 1.5;
}

.uvu-eyebrow {
    font-size: 18px !important;
    letter-spacing: 1.6px !important;
}

.uvu-where .wp-block-column p {
    font-size: 21px;
    line-height: 1.5;
}

.uvu-who .wp-block-column p {
    font-size: 19px;
    line-height: 1.5;
}

/* "Is this section padding top and bottom the same?" — checked, and no:
   measured 80px top but 110px bottom via getBoundingClientRect. The
   sitewide inner-container fix above (padding-top/bottom:0 +
   flow-root) stops WP's default .wp-block-columns bottom margin from
   LEAKING PAST the section, but flow-root only CONTAINS that margin —
   it doesn't remove it, so it was still rendering as ~30px of real
   blank space between the content and the section's own bottom
   padding, on top of that 80px. This only affects Who We Are, because
   its wp:columns block genuinely is the last piece of content in the
   section (nothing follows it before the section closes) — Where We
   Work also has a wp:columns block, but its own margin-bottom is
   legitimate breathing room before the photo strip that follows it,
   not an unwanted addition before the section's padding, so this is
   scoped to .uvu-who only, not fixed sitewide on .wp-block-columns. */
.uvu-who .wp-block-columns {
    margin-bottom: 0;
}

/* Three parts carousel */
/* Grid, not flex: the nav column's width is content-driven (no fixed
   width to peg a margin to), so a grid with a single "content" column
   is what lets the controls row (progress bar + arrows) share that
   column's exact left/right edges with the stage above it — flex plus a
   wrapped 100%-width controls row put it back at the wrap's own left
   edge, under the nav, not under the card. */
.uvu-three-parts__wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 32px;
    row-gap: 16px;
}

.uvu-three-parts__nav {
    grid-column: 1;
    grid-row: 1;
    /* Centers vertically against the stage's height (same grid row)
       rather than sticking to the top of it. */
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 120px;
}

.uvu-three-parts__tab {
    background: none;
    border: none;
    text-align: left;
    /* A <button> does not inherit the page font on its own (GP leaves it on
       the system stack), so these three labels were drawn in Segoe UI /
       San Francisco while everything around them is Montserrat. */
    font-family: inherit;
    font-size: 19px;
    padding: 4px 0;
    padding-left: 12px;
    border-left: 3px solid transparent;
    color: var(--uvu-navy);
    cursor: pointer;
    transition: color 0.3s ease;
}

/* GP's global `button:hover, button:focus` rule (background-color:
   #3f4047) beats a plain `.uvu-three-parts__tab{background:none}` on
   specificity alone (element+pseudo ties a single class, then wins on
   pseudo-class count) — without this it painted a dark block behind the
   tab whenever it was hovered OR simply clicked (GP's rule uses a plain
   :focus, which matches on every click, not just keyboard). Background
   is cleared for plain :focus too, not just :focus-visible, so this
   can't come back regardless of how the button gained focus; the coral
   text colour stays tied to :hover/:focus-visible only, and carousel.js
   blurs the tab on click so that doesn't linger after a mouse click
   either. */
.uvu-three-parts__tab:hover,
.uvu-three-parts__tab:focus,
.uvu-three-parts__tab:focus-visible {
    background: none;
}

.uvu-three-parts__tab:hover,
.uvu-three-parts__tab:focus-visible {
    color: var(--uvu-coral);
}

.uvu-three-parts__tab.is-active {
    color: var(--uvu-coral);
    border-left-color: var(--uvu-coral);
    font-weight: 700;
}

/* Stage for the 3 absolutely-positioned cards so they can cross-fade in
   place instead of the row reflowing between slides. Height is tied to
   width via aspect-ratio (not a fixed min-height) on purpose: the photo
   files have a transparent rounded-corner cutout baked into their own
   pixels (confirmed by sampling the alpha channel), sized for the site's
   own 1108:496 box (not Figma's raw 1274:496 node — the delivered image
   assets were composited for THIS implementation's narrower content
   frame). With a fixed 496px height, a narrower viewport shrinks the
   stage's width but not its height, so background-size:cover stops
   cropping the image vertically — which exposes that transparent corner
   band as a visible gap at the top/bottom of the card. Keeping height
   tied to width via aspect-ratio (rather than a fixed px height) avoids
   that specific failure.
   "Remove a bit of padding inside here so the cards can be narrower in
   height" — made the ratio itself shorter (1108:430, was 1108:496) to
   actually shrink the card, not just rearrange text inside a
   same-size box. This is safe in THIS direction only: making the box
   proportionally WIDER/shorter than the image's own 1108:496 shape
   means cover's crop math now trims MORE off the top/bottom (never
   less), so it can only cut further into the transparent band, never
   re-expose it — the failure mode above only happens when the box goes
   the other way (relatively narrower/taller than 1108:496). Verified
   with screenshots after the change that no card crops into a
   subject's face at the new ratio. */
.uvu-three-parts__stage {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    aspect-ratio: 1108 / 430;
}

/* Each real photo is a pre-composited asset — the navy gradient, duotone
   treatment and UVU watermark are already baked into the image file
   itself, so the card just sets it as its own background; no gradient/
   filter of ours is layered on top. Cards cross-fade via opacity rather
   than the old display:none swap; visibility is delayed on the way out
   so the outgoing card stays interactive-hidden (pointer-events:none)
   through the fade instead of disappearing instantly underneath it.
   CORRECTION 2026-09-17: this briefly became a split white/navy card
   with a stat panel, sourced from Figma nodes that turned out to be
   unused draft variants, not the instance actually placed on the real
   homepage (791:288/790:175) — that real instance is exactly this
   single-photo-card design, confirmed via a full screenshot. Reverted;
   the one thing that genuinely changed is the description's font-size
   (18px, confirmed against that real instance — was 16px before). */
.uvu-three-parts__card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    background-color: var(--uvu-navy);
    background-size: cover;
    background-position: center;
    color: var(--uvu-white);
    border-radius: var(--uvu-r-40);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.uvu-three-parts__card.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

.uvu-three-parts__text {
    position: relative;
    z-index: 1;
    max-width: 452px;
    padding: 56px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Below ~1020px the stage's aspect-ratio (see .uvu-three-parts__stage)
   makes the card shorter than the fixed 88px padding leaves room for,
   which clips the text stack against the card's bottom edge. Trim the
   padding so the same content keeps fitting as the card keeps shrinking. */
@media (max-width: 1020px) {
    .uvu-three-parts__text {
        padding: 32px;
    }
}

.uvu-three-parts__text h3 {
    font-size: 42px;
    font-weight: 700;
    color: var(--uvu-white);
    margin: 4px 0 12px;
}

.uvu-three-parts__text p {
    font-size: 16px;
    line-height: 1.4;
}

.uvu-three-parts__text .uvu-eyebrow {
    color: var(--uvu-coral);
}

.uvu-three-parts__link {
    color: var(--uvu-coral);
    text-decoration: underline;
    font-size: 18px;
    font-weight: 600;
    margin-top: 12px;
    display: inline-block;
    transition: color 0.3s ease;
}

.uvu-three-parts__link:hover,
.uvu-three-parts__link:focus-visible {
    color: var(--uvu-white);
}

/* Same row as the design reference (cara-people/sectors/places.png):
   progress line on the left, arrows on the right, bottom-aligned — the
   line sits right at the bottom edge of the arrow circles there, not
   centered against them. */
.uvu-three-parts__controls {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.uvu-three-parts__progress {
    flex: 1;
    height: 3px;
    background: var(--uvu-light-grey);
}

.uvu-three-parts__progress-bar {
    display: block;
    height: 100%;
    background: var(--uvu-coral);
}

.uvu-carousel-arrows {
    display: flex;
    gap: 8px;
}

/* The ring is a real CSS border now, not part of the icon — the supplied
   SVG combined the ring and the arrow into one shape, which meant the
   hover fill (a solid circle the full size of the button) always sat
   slightly OUTSIDE the ring baked into the icon, so the icon read as a
   smaller circle nested inside a bigger one on hover. Splitting them
   means the border defines the one true boundary in every state, and
   the fill (background-clip defaults to padding-box, i.e. inside the
   border) never extends past it. */
.uvu-arrow {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid var(--uvu-navy);
    border-radius: 50%;
    box-sizing: border-box;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

/* Same GP `button:hover, button:focus` specificity issue as the tabs
   above — without covering plain `:focus` too (not just :focus-visible),
   GP's own dark grey (#3f4047, not our navy) could still win right after
   a real click, since a mouse click matches GP's plain :focus but isn't
   guaranteed to match our :focus-visible. carousel.js also blurs the
   button on click so none of this lingers once focus is gone — belt and
   braces, since Safari's :focus-visible heuristic for <button> isn't as
   reliable as Chrome's. */
.uvu-arrow:hover,
.uvu-arrow:active,
.uvu-arrow:focus,
.uvu-arrow:focus-visible {
    background-color: var(--uvu-navy);
}

/* Recoloured via mask-image (a `background-color` on a mask-shaped
   element) instead of swapping image files, so navy/white can transition
   smoothly with CSS alone. This is the arrow glyph ONLY — see the border
   above for the ring — navy stays the resting colour because every
   instance of this button sits on a white/off-white section background,
   never on top of a dark photo. */
.uvu-arrow__icon {
    display: block;
    width: 42%;
    height: 42%;
    background-color: var(--uvu-navy);
    -webkit-mask-image: url('../images/arrow-left.svg');
    mask-image: url('../images/arrow-left.svg');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color 0.3s ease;
}

.uvu-arrow:hover .uvu-arrow__icon,
.uvu-arrow:active .uvu-arrow__icon,
.uvu-arrow:focus .uvu-arrow__icon,
.uvu-arrow:focus-visible .uvu-arrow__icon {
    background-color: var(--uvu-white);
}

.uvu-arrow--next .uvu-arrow__icon {
    transform: scaleX(-1);
}

/* Where we work — thumbnails are tall/portrait in the real design (a
   ~0.74 width:height ratio). Sized at 80% of the real Figma pixel
   values (203x274 / 426x557 featured, from 254x343 / 533x696) rather
   than 1:1 — this is a deliberate exception to this build's usual
   "never scale Figma sizes down" rule: at full size, showing the
   thumb before the spotlight at its real width left no room for
   .uvu-where__side beside the spotlight, and cropping that thumb down
   to a thin "peek" (an earlier attempt at this) turned out to not
   match the design at all — Figma shows it as a full, uncropped
   regular thumbnail like every other one. Scaling every thumb down
   80% instead means that thumb can show completely AND still leave
   room for the caption, with no cropping anywhere. Row is top-aligned
   (not stretched to a single height) specifically so the featured
   Kigali thumbnail can run taller than the rest, matching the source
   file's own proportions.
   The strip itself is full-bleed — it starts at the same left edge as
   the heading above it (matching .uvu-content's own left inset) but
   runs to the browser's right edge, unlike the rest of the section's
   text which stays inside .uvu-content. The right-edge fade below reads
   correctly against the true page edge because of this.
   min-height accounts for .uvu-where__side (the caption + arrows,
   positioned absolutely below): it runs lower than the spotlight photo
   itself, and since it's taken out of flow the wrap's own height
   wouldn't otherwise reserve room for it. 615px = .uvu-where__side's
   top offset (363px, 454px scaled 80%) + its actual rendered height
   (252px — text/font sizes aren't scaled, only the photos are, so this
   figure is unchanged from the full-size measurement). */
/* CORRECTION 2026-09-17: briefly had an explicit `width` added here on
   the theory that it was the cause of a page-wide horizontal overflow
   bug — it wasn't (isolated by hiding sections one at a time; Case
   Studies' row was the real cause, fixed separately) — and it was a
   real regression: an explicit width based on viewport math made this
   wrap WIDER than its actual content (this strip's real thumbnails
   don't fill the whole content column), leaving empty space between
   the last thumbnail and the wrap's own right edge. Since
   .uvu-where__strip-wrap::after (the right-edge fade, below) is
   positioned flush to THIS wrap's right edge, it ended up fading over
   that empty background gap instead of over the last thumbnail —
   invisible, which is what read as "the overlay is gone." Reverted to
   plain auto-width, which hugs the real content exactly like it did
   before, so the fade sits right where it should again. */
.uvu-where__strip-wrap {
    position: relative;
    margin: 40px 0 24px;
    min-height: 615px;
    margin-left: max(20px, calc((100% - 1400px) / 2 + 20px));
}

/* Scroll position is never touched by our own code any more — the
   spotlight always sits in a fixed slot and the images rotate through
   it (carousel.js reorders the real DOM nodes and animates the move
   with FLIP), so overflow only needs to clip whatever continues past
   the viewport on the right, not scroll to reveal it. */
.uvu-where__strip {
    display: flex;
    align-items: flex-start;
    gap: 19px;
    overflow: hidden;
}

/* 32px (40px scaled 80%, see the thumb-sizing comment above). Confirmed
   against Figma's own generated code for both a regular thumb (node
   561:42) and the spotlight instance (node 667:158) at full size —
   both explicitly render `rounded-[40px]`; scaled here along with
   everything else so the corners stay proportional to the smaller
   card rather than reading as over-rounded. */
.uvu-where__thumb {
    flex: 0 0 203px;
    height: 274px;
    border-radius: var(--uvu-r-32);
    background-size: cover;
    background-position: center;
}

/* Fades the last visible thumbnail into the section background rather
   than cutting it off with a hard edge — a static overlay on the
   non-scrolling wrapper (not the scrolling strip itself) so it always
   reads as "more to scroll" regardless of scroll position, matching the
   source file's own right-edge fade rectangle. */
.uvu-where__strip-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(90deg, rgba(247, 247, 248, 0), var(--uvu-off-white));
    pointer-events: none;
}

/* Spotlight — exactly one thumb is enlarged at a time (426x557 vs the
   203x274 default, both 80% of Figma's real 533x696/254x343 — see the
   thumb-sizing comment above); carousel.js moves the .is-spotlight
   class to the next/previous thumb on click rather than one thumb
   being permanently large. The resize itself is instant (no transition
   here on purpose) — carousel.js's FLIP animation is what makes "next"
   read as a smooth grow/shrink; animating flex-basis/height directly
   here would double up with that and fight it. */
.uvu-where__thumb.is-spotlight {
    flex-basis: 426px;
    height: 557px;
}

/* Every location gets the map hover reveal (used to be Kigali-only,
   gated on a flattened per-city image — see the project record for
   2026-09-16: that's exactly what caused the corner/asset consistency
   bugs across this whole section, so it's now built from a per-country
   highlighted map graphic plus per-location text data instead of a
   bespoke flattened image per city). */
/* Developer, 2026-09-22: "a tiny bit of blue leaking in the top left
   and right corner" of the location cards — a DIFFERENT defect from
   the 2026-09-21 "blue leak" below (that one was on the back/hover map
   reveal; this is on the front photo), and NOT fixed by that one's
   remedy. Root cause, confirmed by directly measuring rendered pixels
   against the untouched source photo: the corner pixel was a ~20-25%
   blend of navy(29,41,81) with the photo's own colour, a blend that
   doesn't exist anywhere in the source image — introduced by the
   browser. Isolated it by testing every combination: removing the
   corner rounding entirely made the artifact disappear completely
   (proving it's specifically about the rounded clip, not the photo or
   the image file); restoring the rounding brought back the IDENTICAL
   blend regardless of border-radius vs. clip-path, forced GPU layers,
   or giving the photo its own oversized/matching-radius bleed — ruling
   out "which element owns the clip" and "geometric coverage" as the
   cause. Confirmed what WAS actually contributing by swapping the navy
   for an obviously different colour (lime) with everything else
   unchanged: the artifact's colour changed to match it exactly. That
   pinned it down precisely — `.uvu-where__thumb-photo` (the photo,
   z-index 2) and the navy fill are two SIBLING layers stacked under
   ONE shared rounded clip; each gets its OWN antialiased edge from
   that shared clip, and the two get composited on top of each other
   in sequence — the top layer's own partial-coverage antialiasing at
   the ring doesn't just "clip" — it also lets a fraction of whatever's
   already composited underneath (the navy, also only partially
   covered by the SAME clip at that ring) show through, compounding
   into something darker than a single clip would ever produce.
   This only happens because there ARE two stacked layers here at all
   (needed for the photo to fade out and reveal the navy as a
   "loading" tint) — a single clipped layer never has this problem.
   Fixed by clipping with `mask-image` instead of the parent's own
   `border-radius`/`overflow:hidden` (kept below as a graceful
   fallback for non-supporting browsers — a square-cornered card, never
   a broken one). A CSS mask composites the WHOLE element — every
   child, at every z-index — into one buffer FIRST, then applies the
   rounded-rect alpha mask to that single composited result ONCE,
   instead of once per stacked layer, which is exactly what eliminates
   the compounding. The mask SVG's own viewBox is sized to match each
   state's real fixed pixel dimensions (203x274 / 426x557) with an
   absolute rx of 32 in that same coordinate space, so the corner
   radius stays a true 32px instead of stretching with the box the way
   a plain 0-100% mask-size would. */
.uvu-where__thumb--hover {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 203 274'%3E%3Crect width='203' height='274' rx='32' ry='32' fill='%23fff'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 203 274'%3E%3Crect width='203' height='274' rx='32' ry='32' fill='%23fff'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    background-color: var(--uvu-navy);
}

.uvu-where__thumb--hover.is-spotlight {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 426 557'%3E%3Crect width='426' height='557' rx='32' ry='32' fill='%23fff'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 426 557'%3E%3Crect width='426' height='557' rx='32' ry='32' fill='%23fff'/%3E%3C/svg%3E");
}

.uvu-where__thumb-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* This is also the FADE-IN speed for the next-location swap below —
       kept slower/deliberate on purpose ("slowly fades in") so the new
       photo settles in rather than snapping into place; the fade-OUT
       for that same swap uses its own quicker 0.3s (see .is-loading),
       since a fast disappear + slow reveal reads as "loading" far
       better than a symmetric fade would. */
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Developer, 2026-09-23: "the active card should just show the back
   (the map side). So all active cards to show the back side only" —
   removes the hover-gating entirely. Until this change the spotlight
   showed its photo by default and only revealed the back while the
   mouse was actively over it (hovering it at the small 254px size
   never did anything — see the history below for why); on a device
   with no hover at all (phone, or a tablet at any width) it instead
   showed the photo for a fixed 2s then permanently auto-flipped to
   the back, since there was no hover to trigger it otherwise (see
   .is-auto-flipped in carousel.js's git history). Both of those
   existed only to work around the back being conditionally hidden —
   now that the spotlight always shows its back unconditionally, on
   every device, neither is needed: this same rule already covers
   hover-capable and hover-incapable devices alike, so the old
   `@media (hover: none)` + `.is-auto-flipped` timer (CSS and its
   carousel.js counterpart) were removed rather than left dormant. */
.uvu-where__thumb--hover.is-spotlight .uvu-where__thumb-photo {
    opacity: 0;
}

.uvu-where__thumb-back {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease 0.15s;
}

.uvu-where__thumb--hover.is-spotlight .uvu-where__thumb-back {
    opacity: 1;
}

/* REWORKED 2026-09-21 — developer: the whole carousel used to fade to
   nothing and back on every next/prev click ("everything disappears
   and reappears"); this replaces that with a per-box swap instead. Each
   box (.uvu-where__thumb--hover) already carries its own navy fill
   (the ::before above) sitting BEHIND this photo layer at all times —
   so fading just the photo (or, since 2026-09-23, the back — see
   below) to 0 automatically reveals that navy underneath with no
   extra overlay element needed, reading as a brief "loading" tint in
   the site's own blue rather than the whole card vanishing. carousel.js
   adds this class to every box at once, swaps each box's photo/caption
   (or back-map/heading/stat/description) data while they're all
   hidden, then removes it so every box fades back in together — the
   boxes themselves (position, size) never move or resize during any
   of this. */


/* Added 2026-09-23 alongside the back becoming the spotlight's
   permanent, unconditional state (see above): previously this never
   needed to exist, since the back's content was silently swapped
   while it sat hidden behind :hover — nobody could see the map/
   heading/stat/description change mid-rotation because you'd have to
   stop hovering to trigger a rotate in the first place. Now that the
   back is visible the whole time, its own content swap needs the same
   fade-to-navy-and-back treatment the photo above already has, or the
   map/text would visibly jump-cut on every next/prev instead of
   cross-fading like every other swap on this row. */


/* The map box matches the real Figma component's own proportions
   (node 667:139: map graphic at x=71,y=38,w=391,h=378 inside a 533x696
   card, i.e. 13.3% / 5.5% / 73.4% / 54.3%). background-image itself is
   set inline per-location by where-we-work.php (one of
   assets/images/africa-map-{south-africa,rwanda}.webp — the shared base
   map flood-filled per country, not a marker dot on a single shared
   map), since which country lights up is per-location data. */
/* ------------------------------------------------------------
   Where We Work: the row moves as one (2026-11-17, replaces the old
   fade-everything-to-navy swap). On next/prev every card slides one
   place along together, like a film strip, so the photos stay whole
   and no card ever shows an empty edge. carousel.js does the move:
   each card starts where its new content was a moment ago (and at
   that card's size) and glides into place. The card leaving the row
   is a temporary copy that slides out and is removed.
   - The small card growing into the big one fades its photo away to
     reveal the map; the big one shrinking back fades its photo in.
   - On the big card the heading, figures and description then rise in
     one after another.
   - The caption beside it slides the same way as the row.
   ------------------------------------------------------------ */
.uvu-where__strip {
    position: relative;
}

.uvu-where__strip.is-moving {
    overflow: hidden;
}

.uvu-where__thumb {
    transform-origin: 0 0;
}

.uvu-where__thumb.is-moving {
    transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.uvu-where__thumb.is-ghost {
    position: absolute;
    margin: 0;
    pointer-events: none;
    transition:
        transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.6s ease;
}

.uvu-where__thumb--hover .uvu-where__thumb-photo {
    transition: opacity 0.55s ease 0.1s;
}

/* Starting faces while the cards are on the move. */
.uvu-where__thumb--hover.is-from-photo .uvu-where__thumb-photo { opacity: 1; }
.uvu-where__thumb--hover.is-from-back .uvu-where__thumb-photo { opacity: 0; }
.uvu-where__thumb--hover.is-from-back .uvu-where__thumb-back { opacity: 1; }

.uvu-where__thumb--hover .uvu-where__back-text > * {
    transition:
        opacity 0.45s ease,
        transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.uvu-where__thumb--hover .uvu-where__back-text > :nth-child(1) { transition-delay: 0.2s; }
.uvu-where__thumb--hover .uvu-where__back-text > :nth-child(2) { transition-delay: 0.27s; }
.uvu-where__thumb--hover .uvu-where__back-text > :nth-child(3) { transition-delay: 0.34s; }

.uvu-where__thumb--hover.is-from-photo .uvu-where__back-text > * {
    opacity: 0;
    transform: translateY(14px);
}

.uvu-where__caption {
    transition:
        opacity 0.45s ease 0.2s,
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s;
}

.uvu-where__caption.is-enter-next { opacity: 0; transform: translateX(16px); }
.uvu-where__caption.is-enter-prev { opacity: 0; transform: translateX(-16px); }

/* Photos sit from the top, so when a card changes height the picture
   stays put and simply shows more or less of itself below. */
.uvu-where__thumb-photo {
    background-position: center top;
}

/* While the big card changes size, carousel.js cuts it to shape with a
   rounded clip instead of the fixed-size corner mask (which would stretch). */
.uvu-where__thumb--hover.is-shaping {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: visible;
    background-color: transparent;
}

/* The copy sliding out can be any in-between size when visitors click
   fast, so it is cut with a rounded clip rather than the fixed-size mask. */
.uvu-where__thumb--hover.is-ghost {
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: inset(0 round var(--uvu-r-32, 32px));
}

/* The card's own navy is only as big as its final box, so while it changes
   size the map layer carries the navy instead and is sized with the clip. */
.uvu-where__thumb--hover.is-shaping .uvu-where__thumb-back {
    background-color: var(--uvu-navy);
}

/* The big card closing: photo back quickly, before it changes shape. */
.uvu-where__thumb--hover.is-closing .uvu-where__thumb-photo,
.uvu-where__thumb--hover.is-closing .uvu-where__thumb-back {
    transition: opacity 0.15s ease;
}

/* The instant jump to the starting position: no transitions anywhere. */
.uvu-where__thumb.is-snap,
.uvu-where__thumb.is-snap *,
.uvu-where__caption.is-snap {
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .uvu-where__thumb,
    .uvu-where__thumb--hover .uvu-where__back-text > *,
    .uvu-where__caption {
        transform: none !important;
        transition: none !important;
    }
}

.uvu-where__back-map {
    transition:
        opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s,
        transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s;
}

.uvu-where__thumb--hover .uvu-where__back-text > * {
    transition:
        opacity 0.5s ease,
        transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.uvu-where__thumb--hover .uvu-where__back-text > :nth-child(1) { transition-delay: 0.2s; }
.uvu-where__thumb--hover .uvu-where__back-text > :nth-child(2) { transition-delay: 0.27s; }
.uvu-where__thumb--hover .uvu-where__back-text > :nth-child(3) { transition-delay: 0.34s; }

.uvu-where__thumb--hover.is-exit-next .uvu-where__back-map,
.uvu-where__thumb--hover.is-exit-prev .uvu-where__back-map,
.uvu-where__thumb--hover.is-exit-next .uvu-where__back-text > *,
.uvu-where__thumb--hover.is-exit-prev .uvu-where__back-text > * {
    opacity: 0;
    transition-duration: 0.22s;
    transition-delay: 0s;
    transition-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
}

.uvu-where__thumb--hover.is-exit-next .uvu-where__back-map { transform: translateX(-24px) scale(0.97); }
.uvu-where__thumb--hover.is-exit-prev .uvu-where__back-map { transform: translateX(24px) scale(0.97); }
.uvu-where__thumb--hover.is-enter-next .uvu-where__back-map { opacity: 0; transform: translateX(24px) scale(1.04); }
.uvu-where__thumb--hover.is-enter-prev .uvu-where__back-map { opacity: 0; transform: translateX(-24px) scale(1.04); }

.uvu-where__thumb--hover.is-exit-next .uvu-where__back-text > *,
.uvu-where__thumb--hover.is-exit-prev .uvu-where__back-text > * {
    transform: translateY(-8px);
}

.uvu-where__thumb--hover.is-enter-next .uvu-where__back-text > *,
.uvu-where__thumb--hover.is-enter-prev .uvu-where__back-text > * {
    opacity: 0;
    transform: translateY(14px);
}

.uvu-where__caption {
    transition:
        opacity 0.45s ease 0.15s,
        transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) 0.15s;
}

.uvu-where__caption.is-exit-next,
.uvu-where__caption.is-exit-prev {
    opacity: 0;
    transition-duration: 0.22s;
    transition-delay: 0s;
}

.uvu-where__caption.is-exit-next,
.uvu-where__caption.is-enter-prev { transform: translateX(-16px); }
.uvu-where__caption.is-exit-prev,
.uvu-where__caption.is-enter-next { transform: translateX(16px); }
.uvu-where__caption.is-enter-next,
.uvu-where__caption.is-enter-prev { opacity: 0; }

/* The instant jump to the entry position: no transitions anywhere. */
.uvu-where__thumb.is-snap *,
.uvu-where__caption.is-snap {
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .uvu-where__thumb--hover .uvu-where__thumb-photo,
    .uvu-where__thumb--hover .uvu-where__back-map,
    .uvu-where__thumb--hover .uvu-where__back-text > *,
    .uvu-where__caption {
        transform: none !important;
    }
}

.uvu-where__back-map {
    position: absolute;
    left: 13.3%;
    top: 5.5%;
    width: 73.4%;
    height: 54.3%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.uvu-where__back-text {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 64%;
    color: var(--uvu-white);
}

.uvu-where__back-text h4 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px;
}

/* Matches the real Figma component (node 667:139, "Group 32"): two
   icon+text pairs either side of a small dot, not plain text — a
   building icon for the facility stat, a calendar icon for the date
   (assets/images/icon-building.svg / icon-calendar.svg, both real
   flattened exports of that component's own icons, already white so
   they need no recolouring against this navy background). */
.uvu-where__back-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    opacity: 0.8;
    margin: 0 0 14px;
}

.uvu-where__back-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.uvu-where__back-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.uvu-where__back-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.uvu-where__back-text p:last-child {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Positioned to sit beside the spotlight rather than below the whole
   strip, per the design: the left offset is the same fixed-width chain
   as the thumbs themselves (first thumb + gap + spotlight + gap), which
   works because the spotlight's slot and width never change, only which
   photo is in it does. All four numbers here are the same 80%-scaled
   values used for the thumbs themselves (203/19/426/19, and top/width
   are 454px/420px scaled 80% too) — see the thumb-sizing comment on
   .uvu-where__strip-wrap. */
/* 2026-11-17: moved 40px further right of the big card on request, so
   the location name and text are not tight against it. */
.uvu-where__side {
    position: absolute;
    left: calc(203px + 19px + 426px + 19px + 40px);
    /* 2026-11-17: the column runs from 40px below the small photos (274px
       tall) to the bottom of the big card (557px tall). Everything sits at
       the bottom: the arrows line up with the card's bottom edge and the
       text sits 32px above them, so a longer description moves the heading
       up instead of pushing the arrows down. */
    top: calc(274px + 40px);
    height: calc(557px - 274px - 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 336px;
    z-index: 2;
}


/* REWORKED 2026-09-21: the carousel's cross-fade now happens per-photo
   (see .is-loading below and carousel.js), not as one opacity toggle on
   the whole strip — this caption fades in lockstep with that same
   rotate(), on its own transition, rather than inheriting the strip's. */
.uvu-where__caption {
    transition: opacity 0.35s ease;
}



/* Font-size split off the shared h2/h3 rule (was 46px, sized for a full
   section heading, not a ~336px-wide caption column) — see the
   .uvu-where__caption p comment below for why this needed to shrink.
   Text colour corrected 2026-09-23: checked the real Figma text node
   (555:245, "Kigali") directly — it's navy (#1D2951), not coral. Only
   the underline beneath it is coral (confirmed separately via its own
   node, 572:256, a Salmon/#FA8072 line) — that border-bottom was
   already correct and is untouched. */
.uvu-where__caption h3 {
    display: inline-block;
    font-size: 24px;
    font-weight: 700;
    color: var(--uvu-navy);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--uvu-coral);
}

/* Developer: shrink the heading/caption text so the arrows underneath
   stay "constantly in line" with the card row — the real problem
   wasn't the font size on its own, it was that each location's actual
   caption copy is a wildly different length, and with no height
   constraint here .uvu-where__arrows (which simply flows below this
   paragraph via margin-top) landed at a different Y position for every
   location.
   CORRECTED 2026-09-21: this used to also carry `-webkit-line-clamp: 2`
   — developer: "you cutting the descriptions, use exactly the copy on
   the design." That was truncating every real caption longer than 2
   lines (Cape Town's real copy needs 3) with an ellipsis, silently
   cutting actual client copy to protect the arrows' alignment — the
   wrong trade to make. Removed the clamp entirely so every caption
   always shows in FULL, no matter how long. min-height alone is now
   sized for 3 lines — measured against all 6 real captions directly
   (not guessed): Cape Town's is the longest at exactly 3 lines here,
   every other real caption is 1-2, so this height is tall enough to
   fit all of them without cutting anything, while still keeping the
   shorter ones from shrinking the box (and moving the arrows) further
   than that. If a future caption ever needs a 4th line, it will still
   display in full — this min-height would just stop guaranteeing
   identical arrow alignment for that one case, which is the correct
   trade-off (never re-introduce truncation to protect alignment). */
.uvu-where__caption p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    min-height: calc(15px * 1.5 * 3);
}

/* Bottom of the column, level with the bottom of the big card. */
.uvu-where__side .uvu-where__arrows {
    margin-top: 32px;
}

.uvu-where__arrows {
    margin-top: 32px;
}

/* Where We Work's wave divider — confirmed against Figma directly
   (node 555:65, this section's own grey background rectangle, and node
   1068:339, the wave group): both end at the exact same y-coordinate,
   so the grey background genuinely extends behind/through the wave,
   flush with its bottom edge. It's not a separate section sitting in
   the page's ordinary white inter-section gap — two earlier attempts
   at that (colour-matching a separate section, then pulling it up with
   a guessed negative margin) could only ever approximate the real
   layout instead of matching it exactly.
   padding-bottom is tuned (not just .uvu-section's inherited 80px) so
   the space between the arrows and the wave comes out to 80px too —
   matching .uvu-section's own top padding deliberately, on the
   developer's request, rather than Figma's own tighter 30px gap there
   (555:65/1068:339 put it at exactly 30px, which read as too cramped
   in practice) — so 88px here, not 80px, since
   .uvu-where__strip-wrap's own 24px bottom margin and ~8px of
   inter-block spacing are already part of that visible gap and would
   otherwise double up with this padding. The wave is absolutely
   positioned at the very bottom of the section regardless of this
   value — it only controls how much room is left above it, not
   whether it stays flush with the section's own bottom edge. */
.uvu-where {
    position: relative;
    padding-bottom: 88px;
}

/* background-size: contain (the earlier value here) scales a tile to
   fit BOTH the box's width AND height, so on a box much narrower than
   the source image's native 1920px width (this strip's own natural
   size, confirmed via naturalWidth/naturalHeight — it's already
   exactly 62px tall) it shrinks the tile's height right along with
   its width to preserve aspect ratio. On desktop the full-bleed box is
   nearly as wide as the image itself, so that shrinkage is invisible;
   on a 390px mobile viewport it shrank the 62px-tall wave down to
   ~12px, leaving ~50px of plain background below it looking like the
   pattern wasn't reaching the section's bottom edge — confirmed by
   reading the actual rendered alpha channel, not assumed. `auto 100%`
   locks the tile to the box's own height (its native size) regardless
   of viewport width, letting repeat-x tile it horizontally as many
   times as needed instead of scaling it down. */
.uvu-where__divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62px;
    background-repeat: repeat-x;
    background-size: auto 100%;
}

/* Case studies — "Our Work In Practice". Each card sits in its own
   permanent slot (see carousel.js — no FLIP/reordering here, unlike
   Where We Work); next/prev only moves which slot is "is-featured".
   Figma's own real pixel values (node 675:612 for the featured card,
   555:732/748 for a regular one) totalled 1040 + 298 + 298 + 2x12px
   gap = 1660px, deliberately wider than this site's 1400px content
   column — Figma showed it centered the same way a wide hero image
   would be, independent of the page's own reading-width column.
   CHANGED 2026-09-23 (developer): "make the cards fit in the content
   width... still scared that for smaller screen sizes the third active
   card will be cut off" — despite the row genuinely never clipping at
   any desktop width (re-verified repeatedly, incl. with the 3rd card
   active specifically), a row wider than the site's own content column
   was the actual, reasonable discomfort — every other section lines up
   with the 1400px column the nav/logo also uses, and this one alone
   ran wider "just because Figma measured it that way" on a design that
   was never checked against this site's own established content width
   in the first place. Rescaled the whole row (and every fixed value
   inside a card — fonts, padding, the stats block's position — see
   below) by 1400/1660 = ~0.843 to fit exactly inside 1400px, instead
   of the "single-card fallback below ~1860px" approach used until now.
   That fallback's own trigger point moves down to match (see the
   dedicated media query below) — it still exists for genuinely narrow
   screens, there's just far less range where it's needed now that the
   row's own ceiling is closer to it. */
.uvu-case-studies__wrap {
    position: relative;
    /* min() so this never exceeds the viewport either — mirrors the
       exact same reasoning as before this rescale, just with smaller
       numbers throughout: this row's real total width is now 1400px
       (878 + 251 + 251 + 2x10px gap), and the margin below still has to
       clear .uvu-case-studies__arrows (now at left:-74px/right:-74px)
       on top of the row itself, not just the row alone. */
    max-width: min(1400px, calc(100% - 169px));
    margin: 40px auto 0;
}

/* Developer, 2026-09-23: "small desktop screens" (a Mac laptop, ~1280-
   1440px wide) were falling into the single-big-card fallback below,
   which is meant for tablets only — the fallback's own trigger point
   (1569px) was far more conservative than the rest of the site's own
   desktop/tablet line (901px, see the nav breakpoint). Root cause: the
   row's own max-width (.uvu-case-studies__wrap, above) already shrinks
   fluidly with the viewport at any width, but everything INSIDE it
   (flex-basis, gap, height, the photo's own reference box) was still a
   fixed px number totalling exactly 1400px — so below ~1569px there
   wasn't room for that fixed total and the row would've overflowed.
   Converted every one of those to a fraction of the row's own (already
   fluid) width instead of a fixed px number, so the whole row now
   scales down continuously with the wrap rather than needing a second
   fixed-size tier or a hard cutoff: flex-basis and gap are percentages
   (of this flex container), and height comes from `aspect-ratio`
   (1400/530, this row's own real proportions) rather than a fixed
   530px — a percentage height would need a defined-height ancestor we
   don't have, aspect-ratio gets the same result from the width alone.
   Because the row's OWN total width doesn't change when a card becomes
   featured (only how that same total is split between the 3 slots
   does), this aspect-ratio is constant through that transition too, so
   the row's height still never moves during a next/prev click — same
   behavior as the old fixed 530px, just fluid across viewports now.
   `container-type` names this element so .uvu-case-card__photo below
   can size itself off THIS box's width via `cqw` units — not the
   individual slot's own width, which is what's animating 251px<->878px
   on next/prev and is exactly the box the "zoom" bug fix further down
   deliberately decoupled the photo from. */
.uvu-case-studies__strip {
    display: flex;
    align-items: flex-start;
    gap: 0.7143%;
    aspect-ratio: 1400 / 530;
    container-type: inline-size;
    position: relative;
    /* Safe to clip again now that hover no longer grows a card past its
       own slot (see the "breaking through the card" fix) — nothing
       inside this row ever needs to render past the row's own edge any
       more, so this is what makes the max-width above actually clip
       instead of just being a number nothing enforces. */
    overflow: hidden;
}

/* Arrows flank the row outside its edges rather than sitting centered
   underneath it (Figma's own node 578:331/578:328 measured -88px at the
   row's original 1660px scale — rescaled to -74px along with everything
   else in the 2026-09-23 "fit the content width" pass below). The
   container spans the full wrap width so each button can be pushed out
   past its own edge; pointer-events are re-enabled only on the buttons
   so the empty space between them doesn't block clicks on the cards
   underneath. */
.uvu-case-studies__arrows {
    position: absolute;
    top: 50%;
    left: -74px;
    right: -74px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    margin: 0;
    pointer-events: none;
    z-index: 3;
}

.uvu-case-studies__arrows .uvu-arrow {
    pointer-events: auto;
}

/* Each card lives in a fixed-size flex slot that never itself resizes
   (so rotating never pushes sibling slots around) — the visible card
   inside is what grows, absolutely positioned so it can extend past its
   own slot's right edge on hover without disturbing the flex layout. */
/* z-index:0 (not the default auto) is deliberate: it makes every slot
   its own stacking context, so a non-featured slot's z-index:2 text
   (tag/heading/etc.) stays contained inside its own slot instead of
   escaping to compare against the featured slot at the strip level —
   without this, that escaped text was winning ties on DOM order and
   painting on top of the expanded featured card's stats panel. */
.uvu-case-card-slot {
    position: relative;
    z-index: 0;
    flex: 0 0 17.9286%;
    height: 100%;
    transition: flex-basis 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.uvu-case-card-slot.is-featured {
    flex-basis: 62.7143%;
    z-index: 2;
}

/* Developer, 2026-09-23: "make the images also click as navigation...
   Arrows and click" — a collapsed card is now a real click/keyboard
   target (see carousel.js's goToSlot()), so it needs its own
   affordance: pointer cursor plus a subtle hover/focus brightness lift
   on the photo itself (not the slot, so it stays inside the existing
   rounded-corner clip). Scoped to :not(.is-featured) since the
   featured card isn't a navigation target — clicking it does nothing
   (see goToSlot's own early return), and it already has its own real
   interactive child (.uvu-case-card__link). */
.uvu-case-card-slot:not(.is-featured) {
    cursor: pointer;
}

.uvu-case-card-slot:not(.is-featured):hover .uvu-case-card__photo,
.uvu-case-card-slot:not(.is-featured):focus-visible .uvu-case-card__photo {
    filter: brightness(1.1);
}

.uvu-case-card-slot:not(.is-featured):focus-visible {
    outline: 2px solid var(--uvu-white);
    outline-offset: -4px;
}

.uvu-case-card {
    position: absolute;
    inset: 0;
    border-radius: var(--uvu-r-17);
    overflow: hidden;
    background-color: var(--uvu-navy);
    transition: border-radius 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease, transform 0.35s ease;
}

.uvu-case-card-slot.is-featured .uvu-case-card {
    border-radius: var(--uvu-r-34);
}

/* Only engages once there are more than 3 case studies (see
   carousel.js's slideWindow) — the 3 slots' own size/position never
   change here, only which case study's photo/copy each one is showing.
   Developer, 2026-09-22: "make the animations better so you can know
   there is a 4th case study" — a plain fade read too similar to the
   in-place enlarge/shrink cycle that already happens with only 3, so
   there was no visible cue that the underlying content had actually
   changed rather than just resized. Added a directional slide (a small
   translateX alongside the existing fade-to-navy) so a window-shift
   reads as the row genuinely paging through more content: on "next"
   every visible card fades out while nudging left (as if continuing
   to travel in that direction), the new content is swapped in while
   still invisible, snapped instantly to the opposite edge
   (.is-snap suspends the transition for that one frame — same forced-
   reflow technique as Where We Work's fade), then released to slide+
   fade back to center from the right — "prev" mirrors it from the
   left. All 3 slots move together like a filmstrip, not just fade,
   so the eye reads the whole row as advancing to different cards. */
.uvu-case-card-slot.is-swapping .uvu-case-card {
    opacity: 0;
}

.uvu-case-card-slot.is-swapping.is-exit-next .uvu-case-card {
    transform: translateX(-24px);
}

.uvu-case-card-slot.is-swapping.is-exit-prev .uvu-case-card {
    transform: translateX(24px);
}

.uvu-case-card-slot.is-enter-next .uvu-case-card {
    transform: translateX(24px);
}

.uvu-case-card-slot.is-enter-prev .uvu-case-card {
    transform: translateX(-24px);
}

.uvu-case-card-slot.is-snap .uvu-case-card {
    transition: none;
}

/* Wraps meta/heading/description/link (see case-studies.php). Desktop
   keeps each of those independently absolutely positioned exactly as
   before — this wrapper is removed from layout entirely so it can't
   affect that. Overridden to a real flex column at mobile, where the
   stack needs to size itself off actual content instead of guessed
   percentages. */
.uvu-case-card__text {
    display: contents;
}

/* Developer, 2026-09-22: "remove the zoom in on the images as it goes
   to active." Root cause: this used to be `width: 298px` transitioning
   to `1040px` on .is-featured — with background-size:cover recalculated
   against a CONTINUOUSLY CHANGING box width (height stays a constant
   628px throughout), the image's own effective magnification changes
   mid-transition rather than staying fixed, which reads as the photo
   zooming rather than the card simply revealing more of it. Most
   visible on a portrait-oriented source photo (confirmed with the
   Sectors/Cape Town case studies' own images, 600x800): cover picks
   whichever scale covers both dimensions, and that binding dimension
   flips from height (at 298px wide) to width (at 1040px wide),
   nearly doubling the effective zoom level between states.
   Fixed by giving the photo a CONSTANT box (the featured size — never
   animates) instead of tying its size to the slot's own animating
   width, and centering it with left:50%/translateX(-50%) so it stays
   centered as its parent (`.uvu-case-card`, which already has
   overflow:hidden) grows/shrinks around it. background-size:cover now
   resolves against that one fixed box, so the image's zoom level never
   changes — only how much of it is clipped by the shrinking parent,
   which is a plain reveal/pan, not a zoom. Rescaled to 878x530 along
   with the rest of the row in the 2026-09-23 "fit the content width"
   pass — was 1040x628. */
.uvu-case-card__photo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 62.7143cqw;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter 0.25s ease;
}

/* Blur + darken confirmed against Figma directly (node 675:538/675:540,
   page 2 — the "Default"/"Variant2"=hover states of the real featured
   card component). Only the featured card carries this now — developer,
   2026-09-23, after sharing a reference GIF of a similar photo-strip
   carousel: "how the inactive cards should look, use the design of the
   GIF... just the front image" (no overlay, no text, no icon on the
   collapsed cards; the featured card's own design stays exactly as
   Figma specifies). Previously this scrim + the heading below it were
   unconditionally on for every card (regular cards used it at 51.9%
   height so their own heading label stayed legible); both are now
   display:none by default and only switched back on for .is-featured. */
.uvu-case-card__scrim {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 251px;
    height: 51.9%;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: linear-gradient(180deg, rgba(29, 41, 81, 0) 0%, rgba(29, 41, 81, 0.45) 100%);
    /* backdrop-filter has a hard on/off edge — unlike the gradient
       background (which already fades smoothly), the blur itself
       switches on instantly at the scrim's top edge, reading as a
       sharp seam across the photo that Figma's own static blur effect
       doesn't show. Masking the whole scrim (blur + gradient together)
       from transparent to opaque over its own top 25% fades that seam
       in gradually instead of snapping it on. Percentages here are
       relative to the scrim's own height, so this one rule covers the
       regular/featured/hover height variants below without repeating
       it per state. */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%);
    mask-image: linear-gradient(180deg, transparent 0%, black 25%);
    transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1), height 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.uvu-case-card-slot.is-featured .uvu-case-card__scrim {
    display: block;
    width: 62.7143cqw;
    height: 44.1%;
}

.uvu-case-card-slot.is-featured .uvu-case-card:hover .uvu-case-card__scrim {
    height: 100%;
}

/* Font sizes below are clamp(floor, Ncqw, design-size) rather than a
   flat px number — `cqw` resolves against .uvu-case-studies__strip
   (see its own comment), so text now shrinks together with the row on
   a narrower viewport instead of staying at its 1400px-design size.
   Needed once the row itself became fluid (2026-09-23 small-desktop
   fix): a 32px heading fixed while its own card shrank to ~527px wide
   started wrapping mid-word into the "Read Case Study" link below it.
   Each Ncqw is (design px / 1400) so it reproduces the exact original
   size once the row's back to its full 1400px width; the floor keeps
   labels like the stat/tag text from shrinking past a legible size at
   this row's own narrowest supported width (901px viewport). */
.uvu-case-card__tag {
    display: none;
    position: absolute;
    top: 10.5%;
    left: 4.4%;
    z-index: 2;
    background: var(--uvu-coral);
    color: var(--uvu-white);
    font-size: clamp(12px, 1.0714cqw, 15px);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 4px;
}

.uvu-case-card-slot.is-featured .uvu-case-card__tag {
    display: inline-block;
}

.uvu-case-card__meta {
    display: none;
    position: absolute;
    left: 4.4%;
    top: 60.35%;
    z-index: 2;
    color: var(--uvu-coral);
    font-size: clamp(11px, 0.9286cqw, 13px);
    margin: 0;
    transition: top 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.uvu-case-card-slot.is-featured .uvu-case-card__meta {
    display: block;
}

/* On hover the featured card's meta/heading shift up (see the real
   Figma hover state, node 675:540) to make room for the description
   paragraph that fades in between them and the "Read Case Study" link
   — nothing changes width, only these two elements' vertical position. */
.uvu-case-card-slot.is-featured .uvu-case-card:hover .uvu-case-card__meta {
    top: 39.97%;
}

.uvu-case-card__heading {
    display: none;
    position: absolute;
    left: 4.4%;
    right: 5%;
    bottom: 8%;
    z-index: 2;
    color: var(--uvu-white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.uvu-case-card-slot.is-featured .uvu-case-card__heading {
    top: 64.5%;
    bottom: auto;
    right: 31%;
    font-size: clamp(18px, 2.2857cqw, 32px);
    transition: top 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    /* Card 1's real Figma heading fits 2 lines at this size; a longer
       heading (e.g. card 3's) would otherwise wrap to 3 and run into
       the "Read Case Study" link below it — clamp so any heading stays
       inside the space Figma allotted instead of overflowing. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uvu-case-card-slot.is-featured .uvu-case-card:hover .uvu-case-card__heading {
    top: 45.7%;
}

.uvu-case-card__link {
    display: none;
    position: absolute;
    left: 4.4%;
    top: 85.35%;
    z-index: 2;
    color: var(--uvu-coral);
    font-size: clamp(12px, 1.0714cqw, 15px);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.uvu-case-card-slot.is-featured .uvu-case-card__link {
    display: inline-block;
}

.uvu-case-card__link:hover,
.uvu-case-card__link:focus-visible {
    color: var(--uvu-white);
}

/* Only visible on the featured card's hover (node 675:540) — fades in
   between the (now higher) heading and the link, entirely inside the
   card's own 1040px width, never changing the card's size. */
.uvu-case-card__description {
    display: none;
    position: absolute;
    left: 4.42%;
    width: 63.94%;
    top: 73.57%;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--uvu-white);
    font-size: clamp(12px, 1.0714cqw, 15px);
    line-height: 1.5;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uvu-case-card-slot.is-featured .uvu-case-card__description {
    display: block;
}

.uvu-case-card-slot.is-featured .uvu-case-card:hover .uvu-case-card__description {
    opacity: 1;
}

/* Stats sit INSIDE the card's own real width (Figma's own measured
   position, node 675:540, was left:817px/width:185px against the
   original 1040px-wide card) — the card never resizes on hover, only
   these fade in over the photo, which is why the scrim above grows to
   full height on hover: it's what keeps this legible. Expressed as
   percentages (78.56% / 17.79%, the same 817/1040 and 185/1040 ratios)
   rather than a re-scaled fixed px pair, so this keeps working
   correctly regardless of the featured card's own width — it no longer
   needs updating if that width is ever tuned again. */
.uvu-case-card__stats {
    display: none;
    position: absolute;
    left: 78.56%;
    top: 0;
    width: 17.79%;
    height: 100%;
    box-sizing: border-box;
    padding: 56px 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uvu-case-card-slot.is-featured .uvu-case-card__stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.uvu-case-card-slot.is-featured .uvu-case-card:hover .uvu-case-card__stats {
    opacity: 1;
}

.uvu-case-card__stat-value {
    display: block;
    color: var(--uvu-white);
    font-size: clamp(20px, 2.5cqw, 35px);
    font-weight: 700;
    line-height: 1.1;
}

.uvu-case-card__stat-label {
    display: block;
    color: var(--uvu-white);
    font-size: clamp(10px, 0.9286cqw, 13px);
    margin-top: 6px;
    line-height: 1.3;
}

/* HISTORY: "the third slide gets cut off on smaller screens... make
   that section fit into the content width" (2026-09-22) was fixed here
   first — the row's slots never shrank (flex: 0 0 Npx) and totalled a
   fixed 1660px, while the wrap's own max-width correctly capped below
   that on narrower screens, so the STRIP (still 1660px, non-shrinking)
   silently got clipped by its own overflow:hidden with no scroll
   affordance to reach the third card. That was fixed by widening this
   single-big-card fallback to cover the whole range where the 3-up row
   couldn't fit at its real (1660px) size, switching over at exactly
   1860px — the precise viewport width where the wrap's own margin
   formula stopped being able to fit 1660px.
   CHANGED 2026-09-23 (developer): "make the cards fit in the content
   width... still scared... the third active card will be cut off" —
   re-verified repeatedly that it in fact never did clip, but rather
   than leave a genuinely wide-feeling row that only barely avoided it,
   rescaled the row itself down to 1400px (this site's own content
   width) instead of 1660px — see .uvu-case-studies__wrap above for the
   full reasoning. That moved this breakpoint from 1860px to 1569px.
   CHANGED AGAIN the same day: "small desktop screens... only for
   tablet it should [go single-card]... that is someone working on a
   Mac" — a real Mac laptop (~1280-1440px) was still landing in this
   fallback, which the developer considers desktop, not tablet; the
   site's own nav already treats 901px+ as desktop (see
   `@media (max-width: 900px)` above). Root cause this time: everything
   INSIDE the row was still a fixed px total (1400px) even though the
   row's own wrap already shrinks fluidly below that — so the row had
   nowhere to go but this fallback the moment the wrap couldn't fit
   1400px. Fixed at the source instead of moving the breakpoint down
   again: .uvu-case-card-slot/__strip/__photo above now size themselves
   as fractions of the row's own width (flex-basis/gap in %, height via
   `aspect-ratio`, the photo's reference box via `cqw`) instead of fixed
   px, so the 3-up row itself now keeps shrinking continuously all the
   way down instead of hitting a wall — which is also why the two
   collapsed cards no longer carry any text (2026-09-23, "just the
   front image" — see .uvu-case-card__heading/__scrim above): a plain
   photo strip has no legibility floor to defend, so there's nothing
   stopping the row from working all the way down to this site's own
   real tablet line. Moved this breakpoint to 900px to match it —
   still its own dedicated query rather than folded into the sitewide
   block, since the two are conceptually unrelated (one's the nav
   collapsing, this one's "is there still room for a 3-up photo row"),
   they just happen to land on the same number now. */
@media (max-width: 900px) {
    .uvu-case-studies__wrap {
        max-width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        margin-top: 24px;
    }

    .uvu-case-studies__strip {
        overflow: visible;
    }

    .uvu-case-card-slot:not(.is-featured) {
        display: none;
    }

    .uvu-case-card-slot.is-featured {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        /* Developer: the card must be the SAME SIZE whether tapped or
           not — exactly how desktop's own hover works (the card never
           resizes there either, only what's shown/faded inside its
           existing box changes). So this is one fixed height for both
           states; see .uvu-case-card__meta/__heading/__description/
           __stats below for how the "hover" content fits inside it
           without the box changing. */
        height: 480px;
        transition: none;
    }

    /* Arrows: same treatment as Three Parts/Where We Work — the wide
       (>900px) layout flanks them at left:-74px/right:-74px either
       side of the row; here they move into normal flow below the (now
       single) card, centered. */
    .uvu-case-studies__arrows {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        justify-content: center;
        margin-top: 20px;
    }

    .uvu-case-card-slot.is-featured .uvu-case-card__photo {
        width: 100%;
        transition: none;
    }

    /* Developer, 2026-09-18: the tap-to-reveal "hover" mimicry (fade/
       shift content in on tap, matching the wide layout's :hover
       pixel-for-pixel — see the git history for how much tuning that
       took) read as too harsh on a touch device: the scrim's
       backdrop-blur(15px) growing to 90% of the card height on tap
       blurred out almost the whole photo just to reveal text. Replaced
       entirely at this width with a simpler model: every piece of
       content (tag, meta, heading, description, stats, link) is shown
       at once, no tap or hover needed, and the separate
       .uvu-case-card__scrim div is retired in favour of a plain
       gradient painted directly on .uvu-case-card__text below. That
       box only ever grows to its own real content height (flex
       column, no fixed percentage) — so the gradient always exactly
       matches the visible text block, on every card regardless of
       copy length, instead of needing a guessed fixed percentage
       tuned to the worst case. */
    .uvu-case-card-slot.is-featured .uvu-case-card__scrim {
        display: none;
    }

    /* Tag stays independently absolutely positioned near the top
       (unchanged concept from the wide layout, just smaller) — it was
       never part of the text stack below. */
    .uvu-case-card__tag,
    .uvu-case-card-slot.is-featured .uvu-case-card__tag {
        display: inline-block;
        font-size: 13px;
        padding: 8px 16px;
    }

    /* .uvu-case-card__text goes back to being a real flex column here
       (its wide-layout value is display:contents — see the base rule
       above) so meta/heading/description/stats/link stack naturally
       from the bottom instead of each being independently absolutely
       positioned at a percentage tuned for one specific state. The
       gradient lives here instead of on a separate scrim div so it's
       always exactly as tall as the real content, never a guessed
       percentage that could run short on a longer card (or leave a
       gap on a shorter one). */
    .uvu-case-card__text,
    .uvu-case-card-slot.is-featured .uvu-case-card__text {
        display: flex;
        flex-direction: column;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        gap: 8px;
        padding: 48px 5% 24px;
        box-sizing: border-box;
        background: linear-gradient(180deg, rgba(29, 41, 81, 0) 0%, rgba(29, 41, 81, 0.55) 35%, rgba(29, 41, 81, 0.88) 100%);
    }

    .uvu-case-card__meta,
    .uvu-case-card-slot.is-featured .uvu-case-card__meta {
        display: block;
        position: static;
        font-size: 13px;
    }

    .uvu-case-card__heading,
    .uvu-case-card-slot.is-featured .uvu-case-card__heading {
        position: static;
        font-size: 21px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Always visible now (the wide layout's resting opacity:0 no
       longer applies at this width) — display must stay -webkit-box,
       not block, for -webkit-line-clamp to actually engage. */
    .uvu-case-card__description,
    .uvu-case-card-slot.is-featured .uvu-case-card__description {
        display: -webkit-box;
        position: static;
        width: auto;
        transform: none;
        opacity: 1;
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .uvu-case-card__stats,
    .uvu-case-card-slot.is-featured .uvu-case-card__stats {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        opacity: 1;
        gap: 12px;
    }

    .uvu-case-card__stat {
        flex: 1;
        min-width: 0;
    }

    .uvu-case-card__stat-value {
        font-size: 20px;
    }

    .uvu-case-card__stat-label {
        font-size: 11px;
        margin-top: 4px;
    }

    .uvu-case-card__link,
    .uvu-case-card-slot.is-featured .uvu-case-card__link {
        display: inline-block;
        position: static;
    }

    .uvu-case-card-slot.is-featured .uvu-case-card {
        cursor: default;
    }
}


/* Partners + CTA */
/* Infinite marquee — same technique as LynnWood Wealth's
   `.lww-marquee` (patterns/partnership-section.php there): the track
   holds the SAME set of logos twice back to back, then animates from
   translateX(0) to translateX(-50%) — exactly one group-width — so the
   loop is seamless. Confirmed against Figma directly (node 597:250):
   the real design repeats these same 12 logos twice in one row at a
   consistent 142px gap, in full colour (not greyscale/dimmed — an
   earlier version of this here was wrong on both counts), running the
   full page width edge to edge rather than sitting inside the 1400px
   content column. */
.uvu-partners__logos {
    /* Lives outside .uvu-content in the markup (same convention as the
       Where We Work / Case Studies full-bleed strips) so it can run
       edge to edge instead of being capped at the 1400px column. */
    overflow: hidden;
    margin-top: 32px;
    /* Client revision 2026-09-28: was 32px, which left the block under
       the logos "lost / too close". 72px + the 1rem padding below gives
       ~88px of clear space before the "Get Involved" title. */
    margin-bottom: 72px;
    padding: 1rem 0;
}

.uvu-partners__cta-heading {
    margin: 0 0 16px;
}

.uvu-partners__track {
    display: flex;
    width: max-content;
    gap: 142px;
    animation: uvu-partners-scroll 24s linear infinite;
}

@media (hover: hover) {
    .uvu-partners__logos:hover .uvu-partners__track {
        animation-play-state: paused;
    }
}

.uvu-partners__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 142px;
}

/* Each logo is sized to its own design box (partners-cta.php passes the
   width in --w and the shape in width/height). --logo-scale shrinks them
   together on narrower screens, replacing the old per-breakpoint max-height
   caps (36px / 28px), which made every logo the same height. */
.uvu-partners__logos {
    --logo-scale: 1;
}

.uvu-partner-logo {
    display: block;
    width: calc(var(--w, 120) * var(--logo-scale) * 1px);
    height: auto;
    max-width: none;
}

@keyframes uvu-partners-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .uvu-partners__track {
        animation: none;
    }
}

.uvu-partners__lede {
    max-width: 560px;
    /* Was 40px (105px paragraph-to-cards with the band's own 65px top
       padding); client asked to close it a bit -> 73px. Kept off the
       band's padding so the grey/white overlap on the cards is untouched. */
    margin: 0 auto 8px;
    color: var(--uvu-navy);
}

/* CORRECTION 2026-09-17 (fourth pass): developer sent a real
   screenshot of the live render this time, showing 2 concrete issues
   with pass 3 — measured both directly via getBoundingClientRect
   before touching CSS, rather than guess at pixel amounts again:
   (1) The grey/white transition landed EXACTLY at the cards' own top
   edge (both tied to the same 65px value — a mistake: 65px was meant
   to be "how far past the cards' top the grey extends", not "where
   the cards start"), so the cards got zero grey overlap at their top
   — developer wants grey to visibly cover roughly the top 50px of the
   card, matching Figma's own real relationship (node 555:64 ends 65px
   BEFORE the cards begin, i.e. grey legitimately extends past the
   cards' own top edge, into the first part of their height). Kept
   the cards' own position (padding-top: 65px, unchanged) but pushed
   the grey/white transition further down (115px) so it actually
   overlaps the card by 50px instead of stopping flush at its edge.
   (2) "You added another grey section under the white" — real, and
   NOT from anything in this rule: measured it directly and found
   `.uvu-section`'s own sitewide 80px bottom padding plus GP's 40px
   inner-container bottom padding (neutralized only on left/right,
   never top/bottom) sitting between this band and the footer — 120px
   of grey that exists on every section by convention. Developer
   explicitly wants this section to be the exception (white all the
   way to the footer), so it's overridden below, scoped to only this
   section rather than touched sitewide. */
.uvu-cta-band {
    position: relative;
    overflow: hidden;
    /* Bottom value matches the sitewide .uvu-section padding (80px)
       so the cards get the same breathing room before the footer as
       every other section on the page — the white/pattern background
       still reaches the footer with no grey gap, since it's the CARDS
       that need clearance here, not the background. */
    padding: 65px 0 80px;
    background: linear-gradient(
        to bottom,
        var(--uvu-off-white) 0,
        var(--uvu-off-white) 115px,
        var(--uvu-white) 115px,
        var(--uvu-white) 100%
    );
}

/* CORRECTED against the real Figma instance (node 584:596, "Group 40"):
   the pattern is NOT a small tile repeated full-width. It's one big,
   non-repeating placement of the watermark in each corner only (left
   and mirrored right), sized ~584x465 at the design's 1920px
   reference width, opacity 0.2, with the middle of the section left
   empty. Earlier full-width/tiled/opacity-0.35 version was built on a
   guess, not a check against this node — this replaces it with two
   pseudo-elements instead of one. */
.uvu-cta-band::before,
.uvu-cta-band::after {
    content: '';
    position: absolute;
    top: 115px;
    bottom: 0;
    width: 584px;
    max-width: 42%;
    background-color: var(--uvu-light-grey);
    -webkit-mask-image: url('../images/uvu-pattern-watermark.png');
    mask-image: url('../images/uvu-pattern-watermark.png');
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 584px 465px;
    mask-size: 584px 465px;
    -webkit-mask-position: left top;
    mask-position: left top;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.uvu-cta-band::before {
    left: 0;
}

.uvu-cta-band::after {
    right: 0;
    /* Mirrors the left placement — the design's right-side instance is
       the same artwork flipped horizontally, not a different crop. */
    transform: scaleX(-1);
}

/* This section only: no trailing grey before the footer. Overrides
   the sitewide .uvu-section 80px bottom padding, which sits AFTER
   .uvu-cta-band and was rendering as a second grey strip below the
   white band. (GP's own inner-container bottom padding no longer
   needs a separate override here — it's zeroed sitewide for every
   .uvu-section now, see that rule above.) */
.uvu-section.uvu-partners {
    padding-bottom: 0;
}

/* Home page only: even with the section's own bottom padding zeroed
   above, GeneratePress's theme-default wrappers OUTSIDE the section
   still added 60px of blank space before the footer (.inside-article
   padding-bottom:40px + .site-main margin-bottom:20px) — confirmed via
   getBoundingClientRect on both wrappers. That gap broke the pattern's
   flush run into the footer, so it's zeroed specifically on the home
   page (page-id-4), not sitewide, since other pages may still want
   GP's default spacing before the footer. */
.page-id-4 .inside-article {
    padding-bottom: 0;
}

.page-id-4 .site-main {
    margin-bottom: 0;
}

/* 1627px / 119px gap are Figma's own real numbers (node 815:1606 /
   896:773 / 896:863: three 463px cards, 119px apart, row spanning
   143px-1770px in the 1920px frame) — not this site's usual 1400px
   content column, which was never actually measured against this
   specific row and left cards narrower than the design at most
   viewport widths. */
.uvu-cta-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 119px;
    max-width: 1627px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Confirmed against Figma page 2 (node 815:1571/815:1573,
   896:696/896:707, 896:791/896:807 — the Fund Us / Partner With Us /
   Join The Ecosystem default+hover pairs, all 3 sharing identical
   geometry). Card itself never resizes on hover — only the pattern
   watermark inside it zooms + brightens, the heading slides up, and a
   description fades in — so overflow:hidden here is what clips the
   zoomed pattern to the card's own rounded corners instead of letting
   it spill past them. */
.uvu-cta-card {
    position: relative;
    overflow: hidden;
    background-color: var(--uvu-navy);
    color: var(--uvu-white);
    border-radius: 10px;
    height: 400px;
    display: block;
    text-decoration: none;
}

/* Position/size are Figma's own real pixel values expressed as % of
   the 463x400 card so they scale with the grid column. transform-origin
   top right + scale(1.253) on hover reproduces Figma's hover box
   (446.6x380.3, shifted left to 77.3px) almost exactly, since that
   hover box is just this resting box scaled 1.253x from its own
   top-right corner — cleaner than hand-tuning separate left/top/width/
   height values for both states. */
.uvu-cta-card__pattern {
    position: absolute;
    left: 36.22%;
    top: 0;
    width: 76.97%;
    height: 75.86%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.3;
    transform-origin: top right;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
    pointer-events: none;
}

.uvu-cta-card:hover .uvu-cta-card__pattern {
    transform: scale(1.253);
    opacity: 0.1;
}

.uvu-cta-card__heading {
    position: absolute;
    left: 9.07%;
    top: 244px;
    z-index: 1;
    color: var(--uvu-white);
    font-size: 26px;
    font-weight: 700;
    line-height: 36px;
    white-space: nowrap;
    margin: 0;
    transition: top 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.uvu-cta-card:hover .uvu-cta-card__heading {
    top: 136px;
}

.uvu-cta-card__description {
    position: absolute;
    left: 9.07%;
    right: 19.22%;
    top: 213px;
    /* 98px = the real gap Figma leaves between the description's own
       top and the (fixed-position) link below it. The card grid is
       responsive — at narrower widths than Figma's 463px canvas this
       text wraps to more lines than the design shows — so this caps it
       rather than letting a 4th+ line run into the link underneath. */
    max-height: 98px;
    overflow: hidden;
    z-index: 1;
    color: var(--uvu-white);
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uvu-cta-card:hover .uvu-cta-card__description {
    opacity: 1;
}

.uvu-cta-card__link {
    position: absolute;
    left: 9.07%;
    right: -5.18%;
    bottom: 16.25%;
    z-index: 1;
    color: var(--uvu-white);
    text-decoration: underline;
    font-size: 18px;
    font-weight: 600;
}

/* Footer */
.uvu-footer {
    background: var(--uvu-navy);
    color: var(--uvu-white);
    padding: 60px 0;
}

/* Column ratio (12:5:8:8) is Figma's own real numbers (node 569:94):
   column starts sit at x=149/696/944/1323 in the 1920px frame, which —
   solved against this 32px gap — works out to that track-width ratio,
   not this site's generic 1.4:1:1:1 used before. That earlier ratio
   rendered inconsistently between reloads at near-identical viewport
   widths (screenshotted twice, ~10px apart, producing two visibly
   different-looking layouts) — root cause was the "Connect with us"
   column's un-wrapped content (phone/email were nowrap, the address
   had no width cap) occasionally forcing that 1fr track wider than its
   equal share, shoving the last column sideways by a different amount
   each time depending on exact text measurement. Both the corrected
   ratio (which gives that column more real room) and the explicit
   address width cap below fix this.

   CORRECTED 2026-09-17: the row's own box now matches .uvu-content
   exactly (same max-width, 20px side padding, centered) instead of
   the wider ~1525px box Figma's raw column measurements above implied.
   The 1525px version put the row's right edge well past the navbar's
   Contact Us button; the developer asked explicitly for the footer to
   start at the logo's left edge and end at the Contact Us button's
   right edge — those two points are exactly .uvu-content's inner width
   apart (box max-width minus 20px padding each side, so 1260px when
   the shared frame was 1300px; now 1360px since it moved to 1400px —
   see the CHANGED 2026-09-18 note on .uvu-content above). Sitewide
   alignment with the header wins here the same way it did for the main
   content width itself (see .uvu-content above) — the 12:5:8:8 column
   ratio still applies, just squeezed into this narrower, correctly-
   aligned row instead of Figma's own wider one. */
.uvu-footer__columns {
    display: grid;
    grid-template-columns: 12fr 5fr 8fr 8fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.uvu-footer__logo {
    margin-bottom: 16px;
}

.uvu-footer__wordmark {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.uvu-footer__col--brand p:not(.uvu-footer__wordmark) {
    opacity: 0.8;
    max-width: 320px;
}

/* Vertical rhythm confirmed against Figma directly (comparing text-node
   y-positions column by column): header-to-first-item is 26px in both
   "Opportunities" and "Connect with us" (a shared constant, not a
   guess), plain list items sit 13px apart (Careers->Proposals,
   phone->email both measure exactly 13px), and the address gets 12px
   more than that (25px total) since it starts a visually distinct
   block rather than continuing the tight phone/email pair. */
.uvu-footer__columns h4 {
    color: var(--uvu-white);
    margin: 0 0 26px;
    font-size: 19px;
    font-weight: 700;
}

.uvu-footer__columns li {
    margin-bottom: 13px;
}

.uvu-footer__columns li:last-child {
    margin-bottom: 0;
}

.uvu-footer__address {
    display: block;
    max-width: 226px;
    margin-top: 12px;
}

.uvu-footer p,
.uvu-footer__columns a,
.uvu-footer__columns li {
    font-size: 15px;
}

.uvu-footer__columns ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.uvu-footer__columns a {
    color: var(--uvu-white);
    opacity: 0.85;
    text-decoration: none;
    transition: color 0.3s ease;
}

.uvu-footer__columns a:hover,
.uvu-footer__columns a:focus-visible {
    color: var(--uvu-coral);
    opacity: 1;
}

/* White pill with a coral pill BUTTON inset almost flush inside it —
   confirmed against Figma directly (node 569:92 "Email Signup
   Container"): white background 351x55, rounded-40 (a stadium shape at
   this height), with the "BUTTON" child (163x53) sitting only 1px
   inset from the container's own top/bottom/right edges. This replaced
   an earlier version that was two small square-cornered boxes joined
   at the middle, which doesn't match the design at all. */
.uvu-footer__signup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 351px;
    height: 55px;
    background: var(--uvu-white);
    border-radius: 999px;
    padding: 1px;
    margin-top: 12px;
    box-sizing: border-box;
}

.uvu-footer__signup input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    outline: none;
    padding: 0 0 0 24px;
    color: var(--uvu-navy);
    /* Form controls do not inherit the page font by default: this field
       and the SIGN UP button were drawn in the system font. The design has
       both in Montserrat (nodes 555:297 / 555:296). */
    font-family: inherit;
    font-size: 16px;
}

/* The design's "Your email" is solid navy (node 555:297); a placeholder at
   full strength reads as typed text, so it is navy at 70% instead of the
   browser's default grey. */
.uvu-footer__signup input::placeholder {
    color: var(--uvu-navy);
    opacity: 0.7;
}

/* The input drops its own outline (it sits inside the white pill), so
   without this keyboard focus in the field showed nothing at all. The pill
   gets the ring instead: coral, because it sits on navy where the browser's
   dark default ring disappears. */
.uvu-footer__signup:focus-within {
    box-shadow: 0 0 0 3px var(--uvu-coral);
}

.uvu-footer__signup button {
    flex-shrink: 0;
    background: var(--uvu-coral);
    color: var(--uvu-navy);
    border: none;
    border-radius: 999px;
    padding: 14px 21px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Same coral-to-navy hover treatment as the nav's Contact Us pill and
   the hero buttons, for consistency across the site's pill buttons. */
.uvu-footer__signup button:hover {
    background: var(--uvu-navy);
    color: var(--uvu-white);
}

/* Real icons (node 569:93's 5 "Group" children, matched by opening
   each exported SVG rather than guessing from name/position alone) —
   each file is already a complete white circle + navy glyph, so no
   extra circle/background styling is needed here. Sits under the
   "Connect with us" address (not next to the newsletter form, where an
   earlier version of this had it): node 569:93's own x (944) matches
   this column's x exactly, and its y sits 45px below the address
   text's bottom edge — confirmed via Figma metadata directly rather
   than the visual proximity a screenshot crop suggested. Icon-to-icon
   gap (13px) is also Figma's own real spacing: 227px total width for 5
   35px icons leaves 52px across 4 gaps. */
.uvu-footer__social {
    display: flex;
    gap: 13px;
    margin-top: 45px;
}

.uvu-footer__social img {
    display: block;
    width: 35px;
    height: 35px;
}

/* The light band under the navy footer (2026-11-19, option 2 chosen by
   Chad from a local preview): the ISPA take-down notice laid out as on
   the live footer, then a hairline inside the content width, then the
   copyright and legal links. One off-white band for both. */
.uvu-footer__legal {
    background: var(--uvu-off-white);
    color: var(--uvu-navy);
}

/* Same 1400px frame and 12:5:8:8 grid as the footer columns above, so the
   ISPA address lines up with "Opportunities". */
.uvu-footer__ispa {
    display: grid;
    grid-template-columns: 12fr 5fr 8fr 8fr;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 32px;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.6;
    color: #4a5272;
}

.uvu-footer__ispa p {
    max-width: 400px;
    margin: 0;
}

.uvu-footer__ispa p + p {
    grid-column: 2 / 4;
}

.uvu-footer__ispa a {
    color: var(--uvu-coral);
    text-decoration: none;
}

.uvu-footer__ispa a[href^="mailto:"] {
    color: inherit;
}

.uvu-footer__ispa a:hover,
.uvu-footer__ispa a:focus-visible {
    text-decoration: underline;
}

/* The hairline sits inside the content width, not edge to edge. */
.uvu-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 24px;
    box-sizing: border-box;
    font-size: 15px;
    color: var(--uvu-navy);
}

.uvu-footer__bottom::before {
    content: '';
    flex: 0 0 100%;
    margin-bottom: 12px;
    border-top: 1px solid var(--uvu-light-grey);
}

.uvu-footer__links {
    display: flex;
    flex-wrap: wrap;
}

.uvu-footer__links a {
    padding: 0 12px;
    border-left: 1px solid var(--uvu-light-grey);
    color: var(--uvu-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

.uvu-footer__links a:first-child {
    padding-left: 0;
    border-left: 0;
}

.uvu-footer__links a:last-child {
    padding-right: 0;
}

.uvu-footer__links a:hover,
.uvu-footer__links a:focus-visible {
    color: var(--uvu-coral);
}

.uvu-placeholder-note {
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   PARTNER PAGE — Figma fileKey JgMEocULwXhHtPmBvJGXQa ("UVU Africa -
   Redesign 2026", a different file from the Home page's), page node
   896:242 + the 5 "Property 1" tab variants at 840:617.
   REBUILT 2026-09-25 from the real nodes (see the docblocks in
   hero-partner.php / partner-tabs.php for exactly what changed).

   HOW THE SIZING WORKS (same rules as Home, see Case Studies):
   the design's tab bar / photo panels / card row all span a 1660px
   frame (x=130..1790). The site's shared content frame is 1400px with
   20px padding (so it lines up with the logo), i.e. 1360px of content.
   Rather than re-guess each number, everything that spans that frame is
   a SCALE MODEL of the 1660px design: .uvu-partner-tabs is a size
   container and `--u` is "one design pixel" = 100cqw / 1660. So
   `calc(58 * var(--u))` is the design's 58px, at 1360px of content and
   at any width. Text blocks that already fit inside the frame at their
   design size (headings, paragraphs, links) are NOT scaled — that
   would only make copy smaller for no reason. Below 900px `--u` drops
   to a flat 0.5px so paddings stay sensible on phones.

   Background (verified by pixel-sampling the Figma render, not by
   eye): the Donors panel is on plain WHITE (255,255,255); the other
   four tabs sit on a #F7F7F8 card (247,247,248) with 40px rounded
   bottom corners. An isolated get_screenshot of the tab component
   renders "no fill" as flat #5c5c5c — that is Figma's placeholder, not
   a design colour (see feedback_figma_isolated_screenshot_grey_
   placeholder). ============================================================ */

/* ---- Hero ---- */
/* The base colour is the design's navy at 98% over white (Figma node
   896:300: #1D2951 @ 98% = rgb(34,45,84)); the photo sits above it in
   hard-light blend at 50% opacity (node 896:301). The first build
   approximated that with a navy gradient laid OVER the photo, which
   flattened it (sampled: photo highlights read ~55,66,96 there versus
   the design's ~66,81,113, and the reds on the right were 39,54,85
   versus the design's 79,27,56). mix-blend-mode is what the design
   actually specifies, so it is used directly. isolation keeps the blend
   scoped to this hero's own background. Min-height 616 is the design's
   real number (Home's hero is 100svh). */
.uvu-partner-hero {
    min-height: 616px;
    justify-content: space-between;
    text-align: center;
    isolation: isolate;
    background-color: #222d54;
}

/* background-position 39.54% vertical reproduces the design's crop
   exactly at 1920px wide (photo 1920x960 shown 136px up inside a 616px
   banner, node 896:301: top -22.12%, height 155.93%) and keeps the same
   framing at other widths, since `cover` re-scales it. */
.uvu-partner-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 50% 39.54%;
    opacity: 0.5;
    mix-blend-mode: hard-light;
}

/* Figma's own watermark mask group (896:304): white at 10% through a
   1602x1242 raster placed at x=1236.58/-5 and 800.63px wide (41.7% of
   1920), with its left 10.15% and bottom 1.48% cut off by the mask
   group's box. The right edge runs past the banner and is clipped by
   .uvu-hero's overflow:hidden, exactly like the design. */
.uvu-partner-hero__watermark {
    position: absolute;
    z-index: 1;
    left: 64.405%;
    top: -5px;
    width: 41.699%;
    aspect-ratio: 1602 / 1242;
    background: var(--uvu-white);
    opacity: 0.1;
    -webkit-mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    clip-path: inset(0 0 1.48% 10.15%);
    pointer-events: none;
}

/* GeneratePress wraps a wp:group's children in a legacy inner-container
   with its own top/bottom padding — same thing already neutralised for
   .uvu-hero__content and .uvu-section. Without this the eyebrow/title
   sat ~40px lower than the design's y=234 / y=286. */
.uvu-partner-hero__content > .wp-block-group__inner-container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Eyebrow line box starts at y=234 (20px/38px line, centre y=253) and
   the title at y=286 with a 64px line height — measured from Figma
   nodes 896:332 / 896:331. */
.uvu-partner-hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 234px 20px 0;
    box-sizing: border-box;
    color: var(--uvu-white);
}

.uvu-partner-hero__content .uvu-eyebrow {
    text-align: center;
    line-height: 38px;
    margin: 0 0 14px;
}

.uvu-partner-hero__title {
    font-size: 52px;
    font-weight: 700;
    line-height: 64px;
    margin: 0;
}

/* Sibling of .uvu-partner-hero__content (same DOM shape as Home's
   content + stats), pinned to the bottom of the banner by the parent's
   space-between. The facts are a centred cluster — fact boxes 189 / 146
   / 224px wide with a 1px divider (white @ 50%, 52px tall) and 48px
   either side of it (Figma x=585..1336 of 1920, dividers at x=824 and
   x=1066, y=522..574, i.e. 42px above the banner's bottom edge). The
   third fact is left-aligned on two lines; the first two are centred on
   one. Widths are border-box and include the divider + padding. */
.uvu-partner-hero__facts {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 42px;
    box-sizing: border-box;
}

.uvu-partner-hero__fact {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--uvu-off-white);
    text-align: center;
    white-space: nowrap;
}

.uvu-partner-hero__fact:nth-child(1) {
    width: 237px;
    padding-right: 48px;
}

.uvu-partner-hero__fact:nth-child(2) {
    width: 243px;
    padding: 0 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

.uvu-partner-hero__fact:nth-child(3) {
    width: 273px;
    padding-left: 48px;
    justify-content: flex-start;
    text-align: left;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

/* ---- Intro lede ---- */
/* Same 80px top/bottom rhythm as every other section on Home (the
   design's own gap is ~100px each side; Home settled on 80 after the
   "padding is too big" feedback, so this follows Home). Lede size 18px
   matches Home's lede (Figma says 20px; Home's was brought to 18px on
   request and this is the same kind of element). */
.uvu-partner-intro {
    padding: 80px 0;
}

/* Design breaks after "...more businesses for" (its 918px box holds 20px
   text). At 18px that first line measures 789px and adding "more" would
   make it 913px, so an 830px box reproduces the same break. */
.uvu-partner-intro__text {
    max-width: 830px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.5;
    color: var(--uvu-navy);
}

/* ---- Tabs ---- */
/* The intro section above already supplies the 80px gap down to the
   tab bar, so this one only adds its own bottom padding. */
.uvu-partner-tabs-section {
    padding: 0 0 80px;
}

.uvu-partner-tabs {
    --u: calc(100cqw / 1660);
    container-type: inline-size;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Tab bar = 9 tracks in the design's own proportions: 5 tab cells
   (162 / 361 / 287 / 300 / 252 wide) with the gaps between them
   (69 / 62 / 73 / 91), from Figma's cell rectangles 896:428..432.
   fr units keep those proportions at any width, so every label stays
   centred in its own cell and can never wrap (the first build's equal-
   width columns wrapped "Private Sector Employers" onto two lines).
   The 1px navy rule under the row is the design's line at y=70. */
.uvu-partner-tabs__nav {
    position: relative;
    display: grid;
    grid-template-columns: 162fr 69fr 361fr 62fr 287fr 73fr 300fr 91fr 252fr;
    height: calc(71 * var(--u));
    margin: 0;
    padding: 0;
    list-style: none;
}

.uvu-partner-tabs__nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--uvu-navy);
}

.uvu-partner-tabs__nav-item:nth-child(1) { grid-column: 1; }
.uvu-partner-tabs__nav-item:nth-child(2) { grid-column: 3; }
.uvu-partner-tabs__nav-item:nth-child(3) { grid-column: 5; }
.uvu-partner-tabs__nav-item:nth-child(4) { grid-column: 7; }
.uvu-partner-tabs__nav-item:nth-child(5) { grid-column: 9; }

/* appearance:none is load-bearing — this is a real <button>, and
   without it some browsers paint their own default hover/active button
   chrome (a dark box) on top of the background set below. Label is
   Montserrat Bold 21px in the design at the full 1660px frame; the
   1.265cqw term is exactly that 21px at 1660 and shrinks with the
   frame. */
.uvu-partner-tabs__nav-item {
    position: relative;
    z-index: 1;
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(12px, 1.265cqw, 21px);
    line-height: 1;
    white-space: nowrap;
    color: var(--uvu-coral);
    border-radius: calc(10 * var(--u)) calc(10 * var(--u)) 0 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Hover fills the tab with navy from the bottom edge up (the final shape
   is unchanged: the button's own rounded top corners clip the fill).
   Hover is deliberately the SAME declaration block as active (one rule,
   so the two can never drift apart again).

   One element, two background layers moved by the same background-
   position, so the fill edge and the label colour change at exactly the
   same line as it rises (white below the edge, coral above it):
   layer 1 is text-clipped (coral over white), layer 2 is the navy fill.
   Each image is twice the tab's height; sliding it from 0% to 100%
   moves the colour edge from the bottom of the tab to the top. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .uvu-partner-tabs__nav-item {
        color: transparent;
        -webkit-text-fill-color: transparent;
        background-color: transparent;
        background-image:
            linear-gradient(to bottom, var(--uvu-coral) 50%, var(--uvu-white) 50%),
            linear-gradient(to bottom, transparent 50%, var(--uvu-navy) 50%);
        background-size: 100% 200%;
        background-repeat: no-repeat;
        background-position: 0 0%;
        -webkit-background-clip: text, border-box;
        background-clip: text, border-box;
        transition: background-position 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* GeneratePress paints every <button> :hover/:focus/:active with its
       own dark grey background-color; that would show through above the
       rising fill, so keep the colour transparent in all of those states
       (only the two gradient layers may paint). */
    .uvu-partner-tabs__nav-item:hover,
    .uvu-partner-tabs__nav-item:focus,
    .uvu-partner-tabs__nav-item:active {
        background-color: transparent;
    }

    .uvu-partner-tabs__nav-item.is-active,
    .uvu-partner-tabs__nav-item:not(.is-active):hover {
        background-position: 0 100%;
    }

    @media (forced-colors: active) {
        .uvu-partner-tabs__nav-item {
            color: ButtonText;
            -webkit-text-fill-color: ButtonText;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .uvu-partner-tabs__nav-item {
            transition: none;
        }
    }
}

/* Browsers without background-clip:text keep the plain colour swap. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .uvu-partner-tabs__nav-item.is-active,
    .uvu-partner-tabs__nav-item:not(.is-active):hover {
        background: var(--uvu-navy);
        color: var(--uvu-white);
    }
}

/* Keyboard focus only. Navy, not coral: coral on white is ~2.5:1, under
   the 3:1 minimum for a focus indicator. */
.uvu-partner-tabs__nav-item:focus-visible {
    outline: 3px solid var(--uvu-navy);
    outline-offset: 2px;
}

.uvu-partner-tabs__panels {
    position: relative;
}

.uvu-partner-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.uvu-partner-panel.is-active {
    display: block;
    opacity: 1;
}

/* Eyebrow: same .uvu-eyebrow as everywhere on the site (18px / 1.6px
   tracking — Figma's 20px, brought to the site's own eyebrow size like
   Home's). Its 38px line box starts 58 design-px under the tab bar. */
.uvu-partner-panel__eyebrow {
    margin: 0;
    line-height: calc(38 * var(--u));
}

.uvu-partner-panel__heading {
    color: var(--uvu-navy);
    font-weight: 700;
    margin: calc(6 * var(--u)) 0 calc(43 * var(--u));
}

/* Desktop only: below 901px the sitewide `.uvu-section h2` phone/tablet
   sizes apply. The design's heading is 52px and runs on one line
   (1278px box); at the site's 1360px frame it still fits on one line at
   the site's H2 size (46px, same as Three Parts / Where We Work), and
   the 3.4cqw term keeps it on one line as the frame narrows. Stays
   smaller than the 52px hero H1. Selector is two classes so it beats
   `.uvu-section h2`. */
@media (min-width: 901px) {
    .uvu-partner-tabs .uvu-partner-panel__heading {
        font-size: clamp(30px, 3.4cqw, 46px);
        line-height: 1.25;
    }

    /* Donors: single-line heading in the design's 64px line box and
       2 body lines in its 38px line box, so the eyebrow > heading >
       paragraph > cards rhythm lands on the design's y-positions (173.5
       / 280.5 / card tops 402..417) instead of drifting ~13 design-px
       down from looser line heights. Measured, not eyeballed. */
    .uvu-partner-tabs .uvu-partner-panel--donors .uvu-partner-panel__heading {
        line-height: calc(64 * var(--u));
    }

    .uvu-partner-tabs .uvu-partner-panel__text {
        line-height: calc(38 * var(--u));
    }
}

/* Body copy: Figma 20px/38px; brought to 18px like Home's lede/body
   sizes. The line height is 1.9 (the design's 38/20) below 901px; on
   desktop it is the design's 38 design-px (rule above). */
.uvu-partner-panel__text {
    font-size: 18px;
    line-height: 1.9;
    color: var(--uvu-navy);
    max-width: calc(918 * var(--u));
    margin: 0;
}

/* Donors paragraph: the design's 918px box holds 20px text and breaks
   after "...where it's needed". The text here is 18px, so the same
   characters per line need a box of 918 x 18/20 = 826px — not scaled
   with the frame, since the text isn't either. */
.uvu-partner-panel--donors .uvu-partner-panel__text {
    max-width: 826px;
}

/* No :hover rule here would let GeneratePress's own generic a:hover
   fallback take over (a dark, near-black grey) instead of this site's
   established coral-on-light-background convention — the same
   coral-to-navy swap already used for the hero/Contact Us/Sign Up
   buttons and the footer bottom links. */
.uvu-partner-panel__link {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.24;
    color: var(--uvu-coral);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.uvu-partner-panel__link:hover,
.uvu-partner-panel__link:focus-visible {
    color: var(--uvu-navy);
}

/* ---- Donors panel ---- */
.uvu-partner-panel--donors {
    padding-top: calc(58 * var(--u));
}

/* ---- The four other tabs: grey card + photo fading in from the right ----
   Each photo has its own crop, box and fade in the design (mask groups
   899:1160 Private Sector Employers, 899:1174 Local Government,
   899:1179 Innovation Start-Ups, 899:1185 Ecosystem Players). The fade
   is the design's own alpha gradient (mask SVGs downloaded and read:
   transparent up to 48.19% of the mask box for Private Sector
   Employers and 29.33% for the other three, fully opaque from 84.46%).
   .__fade is that mask box, .__photo the photo's box inside it and
   .__img the image (raw Figma assets, which already have exactly the
   aspect ratios the crops below assume). The card's min-height is the
   design's (522 for Private Sector Employers, 446 for the rest); it can
   grow if the copy needs it, and the photo layers follow the card's
   height with `cover`. --pw is the design's paragraph width. */
.uvu-partner-panel--simple.is-active {
    display: block;
}

.uvu-partner-panel--employers { --pw: 876; }
.uvu-partner-panel--government { --pw: 780; }
.uvu-partner-panel--startups { --pw: 691; }
.uvu-partner-panel--ecosystem { --pw: 578; }

.uvu-partner-panel__card {
    position: relative;
    overflow: hidden;
    background: var(--uvu-off-white);
    border-radius: 0 0 calc(40 * var(--u)) calc(40 * var(--u));
    min-height: calc(446 * var(--u));
}

.uvu-partner-panel--employers .uvu-partner-panel__card {
    min-height: calc(522 * var(--u));
}

.uvu-partner-panel__body {
    position: relative;
    z-index: 2;
    padding: calc(58 * var(--u)) calc(52 * var(--u)) calc(64 * var(--u));
}

/* Heading gets a wider box than the paragraph (800 design-px for all
   four): it is the big line, and at 46px the shortest column (Ecosystem
   Players, 578) broke "Collaborate to strengthen the ecosystem." into
   three lines. Where it runs past the paragraph's edge it is over the
   first, faintest part of the photo fade. */
.uvu-partner-panel--simple .uvu-partner-panel__heading {
    margin-bottom: calc(28 * var(--u));
    max-width: calc(800 * var(--u));
}

.uvu-partner-panel--simple .uvu-partner-panel__text {
    max-width: calc(var(--pw) * var(--u));
}

/* Private Sector Employers only (node 840:639): a bold 16px/30px line
   under the paragraph. */
.uvu-partner-panel__note {
    margin: calc(49.5 * var(--u)) 0 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    color: var(--uvu-navy);
}

.uvu-partner-panel--simple .uvu-partner-panel__link {
    margin-top: calc(70 * var(--u));
}

.uvu-partner-panel__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.uvu-partner-panel__photo {
    position: absolute;
    overflow: hidden;
}

.uvu-partner-panel__img {
    position: absolute;
    background-size: cover;
    background-position: center;
}

/* Private Sector Employers: mask box = the whole card; photo box
   x=789..1660; image 109.08% x 109.4% at -1.96% / -4.8% inside it. */
.uvu-partner-panel--employers .uvu-partner-panel__fade {
    left: 0;
    right: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 48.1928%, #000 84.4578%);
    mask-image: linear-gradient(90deg, transparent 48.1928%, #000 84.4578%);
}

.uvu-partner-panel--employers .uvu-partner-panel__photo {
    left: 47.5301%;
    right: 0;
    top: 0;
    bottom: 0;
}

.uvu-partner-panel--employers .uvu-partner-panel__img {
    left: -1.96%;
    top: -4.8%;
    width: 109.08%;
    height: 109.4%;
}

/* Local Government / Innovation Start-Ups / Ecosystem Players: mask box
   starts at x=242 and runs to the right edge (1418.31 wide). */
.uvu-partner-panel--government .uvu-partner-panel__fade,
.uvu-partner-panel--startups .uvu-partner-panel__fade,
.uvu-partner-panel--ecosystem .uvu-partner-panel__fade {
    left: 14.5783%;
    right: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 29.3306%, #000 84.4578%);
    mask-image: linear-gradient(90deg, transparent 29.3306%, #000 84.4578%);
}

/* Local Government: photo 1303x869 at x=350 / y=-46 inside the mask
   box, mirrored horizontally (node 899:1178: scale-y -100% + rotate
   180deg). */
.uvu-partner-panel--government .uvu-partner-panel__photo {
    left: 24.6768%;
    width: 91.8687%;
    top: calc(-46 * var(--u));
    height: calc(869 * var(--u));
    transform: scaleX(-1);
}

.uvu-partner-panel--government .uvu-partner-panel__img {
    inset: 0;
}

/* Innovation Start-Ups: photo 980x447 at x=438 / y=-1; image 100% x
   112.3% (node 899:1183). */
.uvu-partner-panel--startups .uvu-partner-panel__photo {
    left: 30.8817%;
    width: 69.0936%;
    top: calc(-1 * var(--u));
    bottom: 0;
}

.uvu-partner-panel--startups .uvu-partner-panel__img {
    left: 0;
    top: 0;
    width: 100.01%;
    height: 112.3%;
}

/* Ecosystem Players: photo 1077x718 at x=350 / y=-119 (node 899:1189). */
.uvu-partner-panel--ecosystem .uvu-partner-panel__photo {
    left: 24.6768%;
    width: 75.9346%;
    top: calc(-119 * var(--u));
    height: calc(718 * var(--u));
}

.uvu-partner-panel--ecosystem .uvu-partner-panel__img {
    inset: 0;
}

/* ---- Donors tab: priority cards ---- */
/* Design: three 463x567 cards at x=0 / 598 / 1197 of the 1660 frame
   (27.8916% wide each, the rest is the gaps) and staggered — tops 417 /
   409 / 402, so card 1 sits 15 design-px lower than card 3 and card 2
   7 lower. The row starts at card 3's top: 45.5 design-px under the
   paragraph. */
.uvu-priority-cards {
    display: grid;
    grid-template-columns: repeat(3, 27.8916%);
    justify-content: space-between;
    align-items: start;
    margin-top: calc(45.5 * var(--u));
}

.uvu-priority-card:nth-child(1) { margin-top: calc(15 * var(--u)); }
.uvu-priority-card:nth-child(2) { margin-top: calc(7 * var(--u)); }

/* Front / hover, confirmed against Figma directly (each card component
   has a "Default" AND a "Variant2" state — 899:932/945 People, 840:361/
   374 Places, 840:391/404 Sectors): the FRONT is solid opaque navy (the
   tint has no opacity at all = 1) with the photo fully hidden behind it,
   the UVU watermark, and eyebrow / heading / divider / stat / link. On
   HOVER the tint drops to 0.85, the watermark disappears, eyebrow /
   heading / divider move up, the stat is replaced by a description and
   a "What this involves:" bullet list. Focus-within triggers the same
   reveal for keyboard users (the link is the only focusable part).

   --k is "one design pixel" for THIS card: the card is its own size
   container, so `calc(30 * var(--k))` is the design's 30px heading on a
   463px-wide card and scales with the card. Every position and size
   below is the design's own number (front: eyebrow centre y=184,
   heading top 211, divider 301, stat 319/354.5, link top 501; hover:
   eyebrow 55, heading 82, divider 172, description 199..271, label
   323, bullets from 350). z-index:0 (not just position:relative) is
   load-bearing: it makes the card its own stacking context so the
   static-layout fix's z-index:-1 photo/tint stays scoped to this card. */
.uvu-priority-card {
    --k: calc(100cqw / 463);
    container-type: inline-size;
    position: relative;
    z-index: 0;
    aspect-ratio: 463 / 567;
    border-radius: calc(10 * var(--u));
    overflow: hidden;
    background-color: var(--uvu-navy);
}

.uvu-priority-card--people { --head-w: 353; --desc-w: 351; --bul-w: 385; }
.uvu-priority-card--places { --head-w: 372; --desc-w: 351; --bul-w: 385; }
.uvu-priority-card--sectors { --head-w: 353; --desc-w: 343; --bul-w: 365; }

.uvu-priority-card__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* Each photo's own crop inside the card (Figma 899:1132 / 899:1138 /
   899:1144). */
.uvu-priority-card--people .uvu-priority-card__photo {
    inset: auto;
    left: -15.52%;
    top: 0.01%;
    width: 131.29%;
    height: 99.98%;
    background-size: 100% 100%;
}

.uvu-priority-card--places .uvu-priority-card__photo {
    background-position: center bottom;
}

.uvu-priority-card--sectors .uvu-priority-card__photo {
    inset: auto;
    left: -34.99%;
    top: -0.21%;
    width: 184.45%;
    height: 100.42%;
    background-size: 100% 100%;
}

.uvu-priority-card__tint {
    position: absolute;
    inset: 0;
    background: var(--uvu-navy);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.uvu-priority-card:hover .uvu-priority-card__tint,
.uvu-priority-card:focus-within .uvu-priority-card__tint {
    opacity: 0.85;
}

/* The design's watermark (node 840:364 etc.): white @ 10%, the same
   1602x1242 raster as the hero's, 397px wide at x=127 / y=-2.44 on the
   463px card, flipped vertically, with its left 10.15% and bottom 1.48%
   cut off. Flipping is done on the element, so the clip below is
   written in the element's own (pre-flip) orientation: top 1.48% there
   is the bottom after the flip. */
.uvu-priority-card__pattern {
    position: absolute;
    left: 27.4298%;
    top: -0.4304%;
    width: 85.7559%;
    aspect-ratio: 1602 / 1242;
    background: var(--uvu-white);
    opacity: 0.1;
    -webkit-mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    transform: scaleY(-1);
    clip-path: inset(1.48% 0 0 10.15%);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.uvu-priority-card:hover .uvu-priority-card__pattern,
.uvu-priority-card:focus-within .uvu-priority-card__pattern {
    opacity: 0;
}

.uvu-priority-card__eyebrow {
    position: absolute;
    left: calc(42 * var(--k));
    top: calc(165 * var(--k));
    margin: 0;
    font-size: calc(16 * var(--k));
    line-height: calc(38 * var(--k));
    font-weight: 700;
    letter-spacing: calc(1.28 * var(--k));
    text-transform: uppercase;
    color: var(--uvu-white);
    transition: top 0.35s ease;
}

.uvu-priority-card:hover .uvu-priority-card__eyebrow,
.uvu-priority-card:focus-within .uvu-priority-card__eyebrow {
    top: calc(36 * var(--k));
}

.uvu-priority-card__heading {
    position: absolute;
    left: calc(42 * var(--k));
    top: calc(211 * var(--k));
    width: calc(var(--head-w) * var(--k));
    margin: 0;
    font-size: calc(30 * var(--k));
    line-height: calc(36 * var(--k));
    font-weight: 700;
    color: var(--uvu-white);
    transition: top 0.35s ease;
}

.uvu-priority-card:hover .uvu-priority-card__heading,
.uvu-priority-card:focus-within .uvu-priority-card__heading {
    top: calc(82 * var(--k));
}

/* Design divider: Figma "Vector 1", a 353px-wide 1px stroke, solid
   white (stroke="white", no opacity). */
.uvu-priority-card__divider {
    position: absolute;
    left: calc(42 * var(--k));
    top: calc(301 * var(--k));
    width: calc(353 * var(--k));
    height: 0;
    border: none;
    border-top: 1px solid var(--uvu-white);
    margin: 0;
    transition: top 0.35s ease;
}

.uvu-priority-card:hover .uvu-priority-card__divider,
.uvu-priority-card:focus-within .uvu-priority-card__divider {
    top: calc(172 * var(--k));
}

/* Front-only: fades out on hover, replaced by the description + bullet
   list below. */
.uvu-priority-card__stat {
    position: absolute;
    left: calc(42 * var(--k));
    top: calc(319 * var(--k));
    opacity: 1;
    transition: opacity 0.25s ease;
}

.uvu-priority-card:hover .uvu-priority-card__stat,
.uvu-priority-card:focus-within .uvu-priority-card__stat {
    opacity: 0;
    pointer-events: none;
}

.uvu-priority-card__stat-value {
    display: block;
    font-size: calc(20 * var(--k));
    line-height: calc(24 * var(--k));
    font-weight: 700;
    color: var(--uvu-off-white);
}

.uvu-priority-card__stat-label {
    display: block;
    margin-top: var(--k);
    font-size: calc(16 * var(--k));
    line-height: 1.3;
    color: var(--uvu-off-white);
}

/* Hover-only: hidden at rest, fades in with the tint. The description
   is a fixed 72px box (3 lines of 24px) with its text vertically
   centred in it, exactly like the design's flex box (node 899:951). */
.uvu-priority-card__description {
    position: absolute;
    left: calc(42 * var(--k));
    top: calc(199 * var(--k));
    width: calc(var(--desc-w) * var(--k));
    height: calc(72 * var(--k));
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    font-size: calc(18 * var(--k));
    line-height: calc(24 * var(--k));
    color: var(--uvu-white);
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.uvu-priority-card__involves-label {
    position: absolute;
    left: calc(42 * var(--k));
    top: calc(304 * var(--k));
    margin: 0;
    font-size: calc(16 * var(--k));
    line-height: calc(38 * var(--k));
    font-weight: 700;
    letter-spacing: calc(1.28 * var(--k));
    color: var(--uvu-white);
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.uvu-priority-card__bullets {
    position: absolute;
    left: calc(42 * var(--k));
    top: calc(350 * var(--k));
    width: calc(var(--bul-w) * var(--k));
    margin: 0;
    padding: 0;
    list-style: disc;
    font-size: calc(18 * var(--k));
    color: var(--uvu-white);
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.uvu-priority-card__bullets li {
    margin: 0 0 0 calc(27 * var(--k));
    line-height: calc(30 * var(--k));
}

/* The design's bullet dots are small (about a quarter of the 18px
   text), the browser default disc is roughly double that. */
.uvu-priority-card__bullets li::marker {
    font-size: 0.5em;
}

.uvu-priority-card:hover .uvu-priority-card__description,
.uvu-priority-card:hover .uvu-priority-card__involves-label,
.uvu-priority-card:hover .uvu-priority-card__bullets,
.uvu-priority-card:focus-within .uvu-priority-card__description,
.uvu-priority-card:focus-within .uvu-priority-card__involves-label,
.uvu-priority-card:focus-within .uvu-priority-card__bullets {
    opacity: 1;
}

/* Same coral<->white swap convention as .uvu-case-card__link (Home's
   case-study cards) — white at rest on a dark card, swaps to coral on
   hover, instead of falling through to GeneratePress's generic
   near-black a:hover default. Design: Montserrat SemiBold 20px,
   underlined at 9.5% thickness, box top 501 on the 567px card. */
.uvu-priority-card__link {
    position: absolute;
    left: calc(42 * var(--k));
    top: calc(501 * var(--k));
    z-index: 1;
    font-size: calc(20 * var(--k));
    line-height: 1.24;
    font-weight: 600;
    color: var(--uvu-white);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.uvu-priority-card__link:hover,
.uvu-priority-card__link:focus-visible {
    color: var(--uvu-coral);
}

/* Design: link box at y=1062 of the Donors frame = 78 design-px under
   card 1's bottom (984). Same coral-to-navy convention as
   .uvu-partner-panel__link above. */
.uvu-partner-donors__more-link {
    display: inline-block;
    margin-top: calc(78 * var(--u));
    font-size: 20px;
    font-weight: 600;
    line-height: 1.24;
    color: var(--uvu-coral);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.uvu-partner-donors__more-link:hover,
.uvu-partner-donors__more-link:focus-visible {
    color: var(--uvu-navy);
}

/* The design's underlined links ("Support Us →", "Let's talk about hiring
   pipelines →", "Partner on this priority →" ... all one Figma component,
   SemiBold, 9.5% thickness): the line sits BELOW the descenders, clear of
   the g/p/y tails. The browser default (offset auto) draws it through them.
   Measured on the Employers link at 20px: design underline centre is
   11.73px below the text's ink centre; Chrome's default gave 7.91px;
   0.25em gives 11.77px. In em so it scales with each link's font size.
   Must stay BELOW every rule that sets `text-decoration: underline` —
   that shorthand resets text-decoration-thickness to auto. */
.uvu-three-parts__link,
.uvu-case-card__link,
.uvu-cta-card__link,
.uvu-partner-panel__link,
.uvu-priority-card__link,
.uvu-partner-donors__more-link {
    text-decoration-thickness: 0.095em;
    text-underline-offset: 0.25em;
}

/* Design: paragraph 730px wide (16px / 30px) starting 56 design-px under
   the link; the badge is 180x90, right-aligned to the frame and 30px
   ABOVE the paragraph's top (badge y=1112, paragraph y=1142). The first
   build let the text run under the badge across the full row. */
.uvu-partner-ngosource {
    position: relative;
    margin-top: calc(80 * var(--u) - 25px);
}

.uvu-partner-ngosource__text {
    max-width: 730px;
    font-size: 16px;
    line-height: 30px;
    color: var(--uvu-navy);
    margin: 0;
}

.uvu-partner-ngosource__badge {
    position: absolute;
    right: 0;
    top: calc(-30 * var(--u));
    width: calc(180 * var(--u));
    height: auto;
    display: block;
}

/* ---- Partner page: tablet / small desktop ---- */
/* Below ~1200px the cards' scaled-down text (description ~12px and
   shrinking) stops being comfortable, so the cards switch to the
   expanded layout from here down: no hover needed, the description and
   bullet list are simply visible, and the text keeps its own px sizes.
   Same fix, same reason, as Case Studies / Where We Work on Home (a
   :hover-gated reveal is unreachable on touch anyway — see
   feedback_hover_only_reveals_on_touch). Negative z-index on the photo/
   tint is load-bearing: they stay position:absolute while the text
   goes static, and static in-flow content otherwise paints BEFORE
   positioned descendants regardless of DOM order (the photo would
   cover the text). The card is its own stacking context (z-index:0
   above) so that z-index:-1 stays scoped to it. */
@media (max-width: 1200px) {
    .uvu-priority-cards {
        grid-template-columns: repeat(3, 1fr);
        justify-content: stretch;
        gap: 24px;
        margin-top: 32px;
    }

    .uvu-priority-card:nth-child(n) {
        margin-top: 0;
    }

    .uvu-priority-card {
        --k: 1px;
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 28px 24px 24px;
        box-sizing: border-box;
        border-radius: 10px;
    }

    .uvu-priority-card__tint {
        opacity: 0.85;
    }

    .uvu-priority-card__photo,
    .uvu-priority-card__tint {
        z-index: -1;
    }

    .uvu-priority-card__pattern,
    .uvu-priority-card__stat {
        display: none;
    }

    .uvu-priority-card__eyebrow,
    .uvu-priority-card__heading,
    .uvu-priority-card__divider,
    .uvu-priority-card__description,
    .uvu-priority-card__involves-label,
    .uvu-priority-card__bullets,
    .uvu-priority-card__link {
        position: static;
        width: auto;
        height: auto;
        opacity: 1;
        margin: 0;
    }

    .uvu-priority-card__eyebrow {
        font-size: 13px;
        line-height: 1.4;
        letter-spacing: 1.28px;
    }

    .uvu-priority-card__heading {
        font-size: 22px;
        line-height: 1.25;
    }

    .uvu-priority-card__divider {
        border-top-color: rgba(255, 255, 255, 0.5);
    }

    .uvu-priority-card__description {
        display: block;
        font-size: 15px;
        line-height: 1.45;
    }

    .uvu-priority-card__involves-label {
        font-size: 14px;
        line-height: 1.4;
        letter-spacing: 1px;
    }

    .uvu-priority-card__bullets {
        list-style: disc;
        padding-left: 20px;
        font-size: 14px;
    }

    .uvu-priority-card__bullets li {
        margin: 0;
        line-height: 1.45;
    }

    .uvu-priority-card__link {
        margin-top: auto;
        padding-top: 8px;
        font-size: 16px;
    }
}

/* ---- Partner page: tablet / phone ---- */
@media (max-width: 900px) {
    .uvu-partner-tabs {
        --u: 0.5px;
    }

    /* The base .uvu-hero rule makes the banner calc(100svh - 112px) at
       this width; the design's banner is a fixed strip, so it is
       overridden here (two classes beat the single-class base rule). */
    .uvu-hero.uvu-partner-hero {
        min-height: 480px;
    }

    .uvu-partner-hero__content {
        max-width: 100%;
        padding: 56px 20px 0;
    }

    .uvu-partner-hero__title {
        font-size: 40px;
        line-height: 1.2;
    }

    .uvu-partner-hero__facts {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 32px 20px 36px;
    }

    .uvu-partner-hero__fact:nth-child(n) {
        width: auto;
        min-height: 0;
        padding: 0;
        justify-content: center;
        text-align: center;
        border-left: none;
    }

    .uvu-partner-hero__fact:nth-child(n + 2) {
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
    }

    .uvu-partner-intro__text {
        font-size: 17px;
    }

    /* No-JS fallback only. With JS (partner-tabs.js) this width gets the
       accordion instead (see "Partner tabs: accordion mode" below): the 5
       labels can't fit a narrow screen at a legible size, and a sideways-
       scrolling strip hides "Innovation Start-Ups" and "Ecosystem Players"
       completely on a phone. */
    .uvu-partner-tabs__nav {
        display: flex;
        height: 56px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .uvu-partner-tabs__nav::-webkit-scrollbar {
        display: none;
    }

    .uvu-partner-tabs__nav-item {
        flex: 0 0 auto;
        padding: 0 20px;
        font-size: 17px;
        border-radius: 10px 10px 0 0;
    }

    .uvu-partner-panel__text,
    .uvu-partner-panel--simple .uvu-partner-panel__text,
    .uvu-partner-panel--simple .uvu-partner-panel__heading {
        max-width: none;
    }

    .uvu-partner-panel__text {
        font-size: 17px;
    }

    .uvu-partner-panel__heading {
        margin: 6px 0 16px;
    }

    .uvu-priority-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .uvu-partner-donors__more-link {
        margin-top: 32px;
    }

    .uvu-partner-ngosource {
        display: flex;
        flex-direction: column-reverse;
        gap: 20px;
        margin-top: 32px;
    }

    .uvu-partner-ngosource__badge {
        position: static;
        width: 140px;
    }

    /* Simple tabs stack: copy on the grey card, the photo underneath it
       (still fading in from the card, top to bottom) instead of beside. */
    .uvu-partner-panel__card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-radius: 0 0 var(--uvu-r-24) var(--uvu-r-24);
    }

    .uvu-partner-panel--employers .uvu-partner-panel__card {
        min-height: 0;
    }

    .uvu-partner-panel__body {
        padding: 32px 24px 20px;
    }

    .uvu-partner-panel__note {
        margin-top: 20px;
    }

    .uvu-partner-panel--simple .uvu-partner-panel__link {
        margin-top: 24px;
    }

    .uvu-partner-panel__fade,
    .uvu-partner-panel--employers .uvu-partner-panel__fade,
    .uvu-partner-panel--government .uvu-partner-panel__fade,
    .uvu-partner-panel--startups .uvu-partner-panel__fade,
    .uvu-partner-panel--ecosystem .uvu-partner-panel__fade {
        order: 2;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        height: 260px;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 35%);
    }

    .uvu-partner-panel--employers .uvu-partner-panel__photo,
    .uvu-partner-panel--government .uvu-partner-panel__photo,
    .uvu-partner-panel--startups .uvu-partner-panel__photo,
    .uvu-partner-panel--ecosystem .uvu-partner-panel__photo {
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        transform: none;
    }

    .uvu-partner-panel--employers .uvu-partner-panel__img,
    .uvu-partner-panel--government .uvu-partner-panel__img,
    .uvu-partner-panel--startups .uvu-partner-panel__img,
    .uvu-partner-panel--ecosystem .uvu-partner-panel__img {
        inset: 0;
        width: auto;
        height: auto;
    }
}

/* ---- Partner tabs: accordion mode (<= 900px) ----
   partner-tabs.js adds .is-accordion to .uvu-partner-tabs at this width,
   wraps each tab button in an <h2>, moves it in front of its own panel and
   hides the tab bar, so the five audiences are five full-width rows and
   the tapped one opens directly underneath it. Keep the 900px in sync with
   COMPACT_QUERY in partner-tabs.js. Nothing here applies without
   .is-accordion, and .is-accordion is never set above 900px, so the
   desktop tab bar is untouched.

   Spacing lives on the headings (8px above each, none below) rather than
   on the open/closed state, so nothing moves when a row changes state; the
   open panel's own 16px bottom margin wins over the next heading's 8px
   (adjacent margins collapse). */
@media (max-width: 900px) {
    .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav {
        display: none;
    }

    .uvu-partner-tabs.is-accordion .uvu-partner-tabs__acc-heading {
        margin: 8px 0 0;
        padding: 0;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
    }

    .uvu-partner-tabs.is-accordion .uvu-partner-tabs__panels > .uvu-partner-tabs__acc-heading:first-child {
        margin-top: 0;
    }

    /* Closed row: off-white button with a hairline border and a navy
       label + chevron (coral on white is ~2.5:1, too weak for the only
       thing that says what each row is). The label colour and the fill
       come from the same two-layer background as the desktop hover, so
       tapping a row still fills it navy from the bottom up. */
    .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        flex: none;
        width: 100%;
        height: auto;
        min-height: 56px;
        padding: 12px 20px;
        border: 1px solid rgba(29, 41, 81, 0.28);
        border-radius: 10px;
        background-color: var(--uvu-off-white);
        text-align: left;
        white-space: normal;
        font-size: 17px;
        line-height: 1.3;
        scroll-margin-top: 16px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item.is-active {
        border-color: var(--uvu-navy);
        border-radius: 10px 10px 0 0;
    }

    /* Chevron drawn as a mask so it never becomes part of the button's
       accessible name. It turns white 0.18s in, when the rising fill
       reaches the middle of the row, in both directions. */
    .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item::after {
        content: '';
        flex: none;
        width: 14px;
        height: 14px;
        background-color: var(--uvu-navy);
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 5.5l6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 5.5l6 6 6-6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        transition: transform 0.25s ease, background-color 0s linear 0.18s;
    }

    .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item.is-active::after {
        background-color: var(--uvu-white);
        transform: rotate(180deg);
    }

    @supports ((-webkit-background-clip: text) or (background-clip: text)) {
        .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item {
            background-image:
                linear-gradient(to bottom, var(--uvu-navy) 50%, var(--uvu-white) 50%),
                linear-gradient(to bottom, transparent 50%, var(--uvu-navy) 50%);
        }

        /* Touch keeps :hover on the last tapped row, so a row that has just
           closed would stay navy. Hover fill is for mouse users only here. */
        @media (hover: none) {
            .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item:not(.is-active):hover {
                background-position: 0 0%;
            }
        }
    }

    @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
        .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item {
            color: var(--uvu-navy);
        }

        .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item.is-active {
            background-color: var(--uvu-navy);
            color: var(--uvu-white);
        }
    }

    /* The row's name is already the header above, so the panel's own
       eyebrow (which repeats it) is dropped. */
    .uvu-partner-tabs.is-accordion .uvu-partner-panel__eyebrow {
        display: none;
    }

    .uvu-partner-tabs.is-accordion .uvu-partner-panel.is-active {
        margin-bottom: 16px;
    }

    /* The four simple panels already have a grey rounded card; Donors is
       plain white on desktop, so give it the same card here so the open
       header and its panel read as one shape. */
    .uvu-partner-tabs.is-accordion .uvu-partner-panel--donors {
        padding: 24px 20px 28px;
        background: var(--uvu-off-white);
        border-radius: 0 0 var(--uvu-r-24) var(--uvu-r-24);
    }

    @media (forced-colors: active) {
        .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item {
            border-color: ButtonText;
        }

        .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item.is-active {
            border-width: 3px;
        }

        .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item::after {
            forced-color-adjust: none;
            background-color: ButtonText;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item::after {
            transition: none;
        }
    }
}

/* Tablets in portrait: same accordion, slightly larger rows. */
@media (min-width: 601px) and (max-width: 900px) {
    .uvu-partner-tabs.is-accordion .uvu-partner-tabs__nav-item {
        min-height: 60px;
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .uvu-section.uvu-partner-tabs-section {
        padding: 0 0 56px;
    }

    .uvu-partner-hero__content {
        padding-top: 40px;
    }

    .uvu-partner-hero__title {
        font-size: 32px;
    }

    .uvu-partner-hero__watermark {
        display: none;
    }
}

/* ============================================================
   TABLET & MOBILE
   The old version of this block (max-width:782px) was mostly dead
   code: `.uvu-three-parts__wrap`/`.uvu-three-parts__nav` are a CSS
   GRID, not flex, so `flex-direction` did nothing, and
   `.uvu-case-studies__track` doesn't exist as a class (it's
   `.uvu-case-studies__strip`) — so neither the carousel nor the case
   studies row ever actually got a mobile layout; only the CTA cards
   and footer columns rules (correct class names) were doing anything.
   Rebuilt properly below, in two passes: ≤900px (shared with the nav
   breakpoint above, since tablet already can't fit several of these
   desktop-fixed-pixel layouts either) and ≤600px (phone-specific
   tightening on top of that). ============================================================ */

@media (max-width: 900px) {
    /* The base rule makes .uvu-hero exactly 100svh so it fills the whole
       first screen — correct on desktop, where the nav is `position:
       absolute` and overlays the hero with zero flow height. At this
       width the nav is genuinely in-flow instead (~112px tall — see the
       nav breakpoint above), so nav + a FULL 100svh hero together would
       always be taller than one screen by exactly the nav's height,
       pushing the stats row that same amount below the fold every time
       — confirmed via the same 14-viewport test that caught the
       original cutoff. Subtracting the nav's real, measured height (not
       guessed) makes nav + hero together exactly one screen again. */
    .uvu-hero {
        min-height: calc(100svh - var(--uvu-header-h, 72px));
    }

    /* Nav compacts to ~64px tall (not ~112px) once max-height:620px also
       matches — see the nav-compaction rule above. Placed AFTER the
       plain ≤900px rule above on purpose: two `.uvu-hero` rules of equal
       specificity are decided by source order, and this one needs to
       win whenever both conditions are true, or the -112px version
       would over-subtract by 48px and leave a gap before the next
       section instead of the stats landing exactly on the fold. */
    @media (max-height: 620px) {
        .uvu-hero {
            min-height: calc(100svh - var(--uvu-header-h, 60px));
        }
    }

    /* Hero: font/spacing sizing is handled everywhere by the svh-clamped
       rules above (they respond to viewport HEIGHT, not width, and this
       hero's line breaks are hard-coded rather than reflowing at this
       width — see hero-home.php). ONE exception: padding-top. The base
       rule's 14svh/130px-ceiling value was sized to also clear the
       DESKTOP nav, which is `position:absolute` and overlays the hero
       with zero flow height of its own. At this width #masthead becomes
       `position:relative` (see the nav breakpoint above — genuinely in
       flow now, its own bug fixed alongside this) and pushes the hero
       down for real, so reusing the desktop clearance value here would
       double-pay for nav clearance the nav is already reserving on its
       own — this is just breathing room under that solid navy bar. */
    .uvu-hero__content {
        padding-top: clamp(12px, 3svh, 32px);
    }

    /* Headings/body copy sitewide — the desktop sizes are real Figma
       values meant for a ~1920px canvas; at tablet widths they were
       overpowering the narrower column they're wrapping into. */
    .uvu-section h2 {
        font-size: 32px;
    }

    .uvu-three-parts h2,
    .uvu-where h2 {
        font-size: 30px;
    }

    .uvu-section__lede {
        font-size: 18px;
    }

    .uvu-eyebrow {
        font-size: 14px !important;
    }

    .uvu-where .wp-block-column p,
    .uvu-who .wp-block-column p {
        font-size: 17px;
    }

    /* Who We Are and Where We Work are the only two section intros
       still left-aligned at this width — Three Parts, Case Studies and
       Our Partners are all centered (`textAlign:center` in their own
       pattern markup). Both of these use the same eyebrow+h2+lede
       wp:columns layout, just without that attribute, so it's applied
       here instead of editing the two pattern files (which would also
       change the desktop two-column layout, not just mobile). Scoped
       to the columns row itself, not the whole section, so it doesn't
       touch the thumbnail strip/card content below it — those stay
       left-aligned same as Three Parts' own in-card text, which this
       is deliberately NOT matching (a card's own body copy and a
       section's intro heading are different things). */
    .uvu-who .wp-block-columns,
    .uvu-where .wp-block-columns {
        text-align: center;
    }

    /* Arrow pairs — Three Parts' controls row is already centered (see
       above); Where We Work's were left at the default flex-start.
       Case Studies' are hidden entirely at this width (swipe replaces
       them), so these two are the only ones that need to agree. */
    .uvu-where__arrows {
        justify-content: center;
    }

    /* Hero stats — already had a working 2x2 grid at ≤1100px; just
       scaling the type down further here. */
    .uvu-stat__value {
        font-size: 26px;
    }

    .uvu-stat__label {
        font-size: 14px;
    }

    /* Three parts carousel — the nav column (grid-template-columns:
       auto 1fr) has no room to sit beside the stage at this width.
       Stack: tabs in a wrapping row above, stage below, controls
       (progress bar + arrows) last. */
    .uvu-three-parts__wrap {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }

    .uvu-three-parts__nav {
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 28px;
        /* Grid items default to min-width:auto, meaning they won't
           shrink below their own content's size — and a wrapping flex
           container's reported max-content width is its FULL unwrapped
           width (all 3 tabs on one line), not the wrapped size. Without
           this the 1fr track grew to fit that unwrapped width (measured
           580px) instead of the actual ~350px available, dragging the
           whole grid — and the stage row below it — past the real
           viewport. This is what min-width:0 exists to fix. */
        min-width: 0;
    }

    /* The stage's aspect-ratio (1108/496, see the desktop rule) makes
       it genuinely too short for its own text once the column gets
       this narrow — at a 350px-wide card that ratio computes to
       ~156px tall, and the heading/description/link stack needs
       closer to 220-250px, so it was overflowing the card's own
       overflow:hidden and getting clipped top AND bottom (confirmed:
       textScrollHeight 177px vs a 157px box at 390px viewport).
       min-height wins over aspect-ratio when the two conflict (that's
       how the CSS spec resolves it), so this only kicks in once
       aspect-ratio would otherwise make the box too short — it
       doesn't touch tablet widths where aspect-ratio alone already
       gives enough room. */
    .uvu-three-parts__stage {
        grid-column: 1;
        grid-row: 2;
        min-height: 260px;
        /* The culprit behind the whole row overflowing (measured: the
           grid's 1fr track sizing to 580px in a 350px-wide column):
           with no explicit width, the browser worked out what width
           this element would "want" to satisfy BOTH aspect-ratio and
           min-height together (580.8px = 260 × 2.234, the ratio) and
           fed that in as this grid item's size contribution — dragging
           the whole track (and everything else sharing it: nav,
           controls) out to match. min-width:0 fixed the TRACK's own
           size (confirmed via getComputedStyle: back to 350px), but an
           aspect-ratio element still renders at its own preferred size
           inside that track rather than stretching to fill it, even
           under the default justify-items:stretch — width:100% is
           what actually forces it back to the track's real width, and
           aspect-ratio/min-height then resolve normally against that. */
        min-width: 0;
        width: 100%;
    }

    .uvu-three-parts__controls {
        grid-column: 1;
        grid-row: 3;
        min-width: 0;
        /* Developer: put the arrows at the bottom of the bar too, not
           beside it — progress bar full width on its own row, arrows
           centered underneath. */
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    /* .uvu-three-parts__progress is `flex: 1 1 0%` on desktop, which
       means "grow to fill remaining WIDTH" in that row-direction
       container. Flipping the container to flex-direction:column for
       this stacked mobile layout flips which axis "flex" governs too —
       the same flex-basis:0% now set its HEIGHT to 0 instead (measured:
       a real 0px-tall bar, confirmed via getBoundingClientRect), with
       no free vertical space in an auto-height container for
       flex-grow:1 to expand into. Reset it to a fixed height and full
       width instead of relying on flex-grow for either dimension here. */
    .uvu-three-parts__controls .uvu-three-parts__progress {
        flex: none;
        width: 100%;
        height: 3px;
    }

    .uvu-three-parts__controls .uvu-carousel-arrows {
        justify-content: center;
    }

    /* The tabs are a row here, not the desktop's vertical list, so the
       active marker is a line under the label (the desktop one is a bar
       down its left side, which reads as stray beside a row). Same coral;
       the colour moves to the tapped tab with the transition. */
    .uvu-three-parts__tab {
        font-size: 16px;
        padding: 4px 0 6px;
        border-left: 0;
        border-bottom: 3px solid transparent;
        transition: color 0.3s ease, border-color 0.3s ease;
    }

    .uvu-three-parts__tab.is-active {
        border-bottom-color: var(--uvu-coral);
    }

    .uvu-three-parts__text {
        padding: 24px 28px;
    }

    .uvu-three-parts__text h3 {
        font-size: 24px;
        margin: 2px 0 8px;
    }

    .uvu-three-parts__text p {
        font-size: 15px;
    }

    .uvu-three-parts__link {
        font-size: 15px;
        margin-top: 8px;
    }

    /* Where we work — developer: show just the ONE spotlight card with
       arrows underneath, rather than a scrollable filmstrip, for a
       simpler mobile-friendly pattern. The other thumbs stay in the
       DOM (carousel.js's rotate() still reorders/relabels them on
       next/prev — it doesn't care whether they're visible), just
       hidden; whichever one carries .is-spotlight after a rotation is
       the one that becomes visible. .uvu-where__side also comes out of
       its desktop absolute position — that's a fixed px offset
       assuming a spotlight photo at a specific desktop-only x, which
       would render off-screen at this width — and goes back into
       normal flow below the card instead. */
    .uvu-where__strip-wrap {
        min-height: auto;
        /* Desktop leaves the right side full-bleed on purpose — the
           strip scrolls off past the edge there. With only one static
           card showing now, that same full-bleed reads as the photo
           being flush/cramped against the screen's right edge instead;
           give it the same inset as the left side. */
        margin-right: 20px;
    }

    .uvu-where__strip {
        overflow: visible;
    }

    .uvu-where__thumb:not(.is-spotlight) {
        display: none;
    }

    /* Developer, 2026-09-18 (revised same day — see below): the
       map/details reveal only ever showed on :hover, and tablets (and
       phones) have no hover — so this content was unreachable below
       ~900px, not just awkward to trigger. The first fix split the
       card into a static two-column row (photo left, content right,
       always both visible). The developer then asked for a different
       approach instead: keep the original full-bleed front/back card
       (matching desktop's own structure) but auto-cycle between them
       on a timer, no interaction required. SUPERSEDED 2026-09-23: "the
       active card should just show the back... show the back side
       only" — the spotlight's back is now unconditionally visible at
       every width (see .uvu-where__thumb--hover.is-spotlight in the
       desktop rules above), so there's no longer a timer to run below
       900px either; this card was already going to show its back
       either way, the auto-cycle just isn't needed to get there
       anymore. Kept the plain full-size card here regardless — that
       part was never about the timer. */
    /* 480px, not the original 320px: the back content (map + heading +
       stat row + description) needs to fit on mobile now that it's
       actually reachable there — at 320px its description text
       overflowed the card's own bottom edge and was silently clipped
       by overflow:hidden. Checked against every real location's actual
       copy (not just one, cycling the carousel and measuring each
       description's real bottom against the card's own) —
       Kigali/Johannesburg/Cape Town were the worst case, still clipped
       by ~7.5px at 450px; 480px clears all 6 with room to spare. */
    .uvu-where__thumb.is-spotlight {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 480px;
    }

    /* THE reason the text was cut off on phones and tablets: the rounded-
       corner mask (see .uvu-where__thumb--hover above) is an SVG with a
       426x557 viewBox, sized `100% 100%`, and an SVG image keeps its aspect
       ratio inside the box it is given - so on any card that is not 426:557
       the mask shrinks to fit and sits centred, clipping the rest. At 390px
       wide it trimmed ~11px off the top and bottom of the card (the last line
       of the text); at 820px it cut the card to a ~367px-wide strip in the
       middle, so the heading and description were chopped on both sides. The
       mask exists to stop the photo layer's corners picking up navy from the
       fill behind it; the spotlight's photo is never shown below 900px (the
       back is always the face, see .is-spotlight .uvu-where__thumb-photo), so
       the plain rounded corners the card already has are enough here and
       stay a true 32px at any size. */
    .uvu-where__thumb--hover.is-spotlight {
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* The card was a fixed 480px with the map and the text each pinned at
       a % of it, so any copy that wraps to more lines than 480px has room
       for ran past the bottom edge and was clipped. That depends on the
       phone's width (and on its text-size setting), not just the copy:
       measured at 320px wide, Kigali / Durban / Johannesburg / Cape Town
       were cut by 15-34px, and at 360-390px five of the six locations sat
       3px from the edge. The back is now laid out in flow - map, then the
       text with 28px under it - inside a card that is at least the old
       480px. Nothing moves for copy that already fit (the map box and the
       text start are the same px as 5.5% / 54.3% / 64% of 480), and a long
       description makes the card taller instead of being cut. carousel.js
       sets --uvu-where-back-min to the tallest of the six locations at the
       current width, so the card (and the caption and arrows under it)
       keeps one height as you step through them. */
    .uvu-where__thumb-back {
        position: relative;
        inset: auto;
        min-height: max(480px, var(--uvu-where-back-min, 0px));
        display: flex;
        flex-direction: column;
    }

    .uvu-where__back-map {
        position: relative;
        left: auto;
        top: auto;
        flex: none;
        width: 73.4%;
        height: 261px;
        margin: 26px auto 0;
    }

    .uvu-where__back-text {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        margin: 20px 10% 0;
        padding-bottom: 28px;
    }

    .uvu-where__strip-wrap::after {
        /* The fade implies "more content, keep scrolling" — with only
           one card visible and nothing to scroll, it has nothing to
           point at any more. */
        display: none;
    }

    /* Developer: on reflection, the caption text should stay flush
       left — in line with the logo and everywhere else content
       starts — while the arrows underneath it should be centered
       across the full row regardless. Since .uvu-where__caption and
       .uvu-where__arrows are siblings inside this box, giving the box
       itself a max-width (as before) would cap the arrows' own row at
       that same narrow width too, so centering-within-the-box and
       "centered across the full card" stop being the same thing. Left
       the max-width off .uvu-where__side itself (full width, flush
       left) and put it on .uvu-where__caption instead, so only the
       TEXT wraps at a readable column width while .uvu-where__arrows
       (below) is free to span the full row and center within that. */
    .uvu-where__side {
        position: static;
        left: auto;
        top: auto;
        height: auto;
        width: 100%;
        margin: 20px 0 0;
    }

    .uvu-where__caption {
        max-width: 420px;
    }

    .uvu-where__arrows {
        width: 100%;
    }

    /* Partner logos marquee — the 142px gap is a real Figma value
       (node 597:250) but it was never given a mobile equivalent, so a
       390px-wide phone was showing barely one logo at a time with a
       huge blank gap on either side of it — easy to mistake for
       broken/missing logos rather than an unadapted desktop gap.
       Shrinking both the gap and the logo size lets several logos sit
       in view at once, the way the marquee actually reads as a
       "wall of logos" rather than one item drifting past. */
    .uvu-partners__track,
    .uvu-partners__group {
        gap: 56px;
    }

    .uvu-partners__logos {
        --logo-scale: 0.75;
    }

    /* CTA cards (Fund Us / Partner / Join) — the description only
       shows on hover, which doesn't exist on touch; without this it
       would simply never be readable on a phone or tablet.
       CORRECTED 2026-09-18: the first fix reused desktop's fixed-pixel
       hover layout (heading pinned to top:136px, description capped at
       max-height:98px, link pinned to bottom:16.25%) — those numbers
       were tuned for Figma's exact 463x400 hover box and don't leave
       reliable room once the description is ALWAYS on screen instead
       of a transient hover state: at narrow widths the shared
       description wraps to 4 lines, landing right at the 98px cap, and
       the independently-pinned link below it ended up only ~24px away
       from that cap — read as crowded/almost touching, not clearly
       spaced, on a real phone width. Replaced with a real flex column
       (each element back to normal flow, `gap` between them) so the
       spacing between heading/description/link is always the same
       fixed amount regardless of how many lines the description wraps
       to, and the card grows (`min-height` as a floor, not a fixed
       height) rather than clipping if a future longer description
       needs more room. */
    .uvu-cta-cards {
        grid-template-columns: 1fr;
    }

    .uvu-cta-card {
        height: auto;
        min-height: 400px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 32px 9.07%;
        box-sizing: border-box;
        gap: 14px;
    }

    .uvu-cta-card__heading,
    .uvu-cta-card__description,
    .uvu-cta-card__link {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }

    .uvu-cta-card__heading {
        font-size: 22px;
    }

    .uvu-cta-card__description {
        max-height: none;
        opacity: 1;
    }

    /* Desktop stops this at 75.86% of the card on purpose (Figma's own
       real box) — with the description now permanently visible below
       it on mobile instead of only on hover, that leaves a bare navy
       strip between the pattern and the card's bottom edge that reads
       as unfinished rather than intentional. Stretched to the full
       card height here only. */
    .uvu-cta-card__pattern {
        height: 100%;
        opacity: 0.1;
    }

    /* Footer — the 12:5:8:8fr column ratio is tuned for a 1400px row;
       collapsed to a single stacked column rather than trying to force
       those proportions into a much narrower one. */
    .uvu-footer__columns {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .uvu-footer__col--brand p:not(.uvu-footer__wordmark),
    .uvu-footer__address,
    .uvu-footer__signup {
        max-width: 100%;
    }

    .uvu-footer__columns h4 {
        font-size: 17px;
    }

    /* Phone and tablet: everything stacks and centres. */
    .uvu-footer__ispa {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding-top: 32px;
        padding-bottom: 24px;
        text-align: center;
    }

    .uvu-footer__ispa p,
    .uvu-footer__ispa p + p {
        grid-column: auto;
        max-width: none;
    }

    .uvu-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .uvu-footer__bottom::before {
        align-self: stretch;
    }

    .uvu-footer__links {
        justify-content: center;
        gap: 6px 20px;
    }

    /* Wrapped rows would start with a divider, so phones use spacing. */
    .uvu-footer__links a,
    .uvu-footer__links a:first-child,
    .uvu-footer__links a:last-child {
        padding: 0;
        border-left: 0;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    /* One more pass of the same sizes for phones specifically — the
       ≤900px pass above is tuned for tablet; phones need to go smaller
       again on top of that, not stop at the tablet size. */
    .uvu-section {
        padding: 56px 0;
    }

    .uvu-partners__track,
    .uvu-partners__group {
        gap: 36px;
    }

    .uvu-partners__logos {
        --logo-scale: 0.58;
    }

    /* Hero heading/desc font sizes here ALSO need a width term, not just
       the svh one from the base rule — measured directly (not guessed):
       at a ~350px text column (390px phone), "city is already full"
       stops fitting on one line above ~38px, "Automatically Include
       Everyone." above ~20px, and the description wraps to 3 lines
       (instead of the intended 2) above ~14px. Those extra wrapped
       lines add real height on top of whatever the svh term already
       budgeted, which is exactly what was blowing the stats back below
       the fold on phones despite the height-based shrink working
       correctly. min(Xsvh, Yvw) takes whichever constraint is tighter,
       so a phone that's narrow AND short satisfies both at once. */
    .uvu-hero__title {
        font-size: clamp(18px, min(4.6svh, 8.5vw), 36px);
    }

    .uvu-hero__subhead {
        font-size: clamp(13px, min(3svh, 4.4vw), 18px);
    }

    .uvu-hero__desc {
        font-size: clamp(10px, min(2svh, 3.2vw), 14px);
    }

    /* At the full 32px side padding, "Partner with us" + "See our
       impact" measure ~184px each (min-width:158px is not actually the
       binding constraint — the text + padding is) — 2×184px+gap doesn't
       fit a ~335px mobile column, so the buttons silently wrapped to a
       second row and added ~45px of otherwise-unbudgeted height. Tighter
       side padding + a smaller min-width + a slightly smaller font (both
       still comfortably tappable/legible) bring each button down enough
       to fit one row even on a 320px-wide phone. */
    .uvu-hero .wp-block-button__link {
        padding-left: 14px;
        padding-right: 14px;
        min-width: 0;
        font-size: 13px;
    }

    /* Decorative squiggle watermark behind the hero text — at this
       width the text column takes up nearly the full viewport, so this
       would sit directly under/behind the words instead of beside them. */
    .uvu-hero__pattern {
        display: none;
    }

    /* Stats no longer fit even the 2-column grid (≤1100px rule above)
       without the value or label wrapping awkwardly against a divider
       — single column, divider moves from the left side to underneath.
       row-gap/item padding are svh-clamped too (not a fixed px) since a
       4-row stack adds real height on a narrow+short phone — without
       that this layout switch alone could push the last stat below the
       fold even after the font-size clamps above did their job. */
    .uvu-hero__stats {
        display: grid;
        grid-template-columns: 1fr;
        row-gap: clamp(4px, 1.3svh, 16px);
        padding: clamp(6px, 2svh, 24px) 20px;
    }

    .uvu-hero__stats .uvu-stat {
        padding: 0 0 clamp(4px, 1.2svh, 16px);
        border-left: none;
        border-bottom: 1px solid rgba(247, 247, 248, 0.35);
        justify-content: flex-start;
    }

    .uvu-hero__stats .uvu-stat:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .uvu-section h2 {
        font-size: 26px;
    }

    .uvu-three-parts h2,
    .uvu-where h2 {
        font-size: 24px;
    }

    .uvu-three-parts__text h3 {
        font-size: 22px;
    }
}


/* ============================================================
   OUR STORY PAGE (Figma "About" frame 925:411, 1920px wide)
   Built with the Home / Partner rules: design measurements read from
   the real nodes, content frame shared with the header, container-query
   "scale model" where a design is positioned in px, hover-only reveals
   replaced by an always-on look on touch / narrow screens.

   Type: the site's established scale, NOT Figma's literal sizes ("Figma
   tends to look bigger" — developer, 2026-10-05): H2 48 -> 42, 52 -> 46,
   40 -> 36, 30 -> 27, body 20 -> 18, 18 -> 16, 26 -> 24, kickers 24 -> 22
   / 20 -> 18. Hero text keeps the design's own sizes (hero headings were
   asked for "bigger", never smaller).
   ============================================================ */

/* ---- Page-level hooks (body.uvu-page-our-story, see theme-setup.php) ---- */
/* The closing banner runs straight into the footer: no GP article/main
   bottom spacing (same as the Home page). */
body.uvu-page-our-story .inside-article {
    padding-bottom: 0;
}

body.uvu-page-our-story .site-main {
    margin-bottom: 0;
}

/* Current page in the nav is coral on every page. Only the Our Story Figma
   frame draws it (Partner's leaves its own item white), but the client
   flagged Home not showing a current state like the others, so it is now a
   sitewide current-item rule (Mahmud, 2026-11-03). */
body #primary-menu .menu > li.current-menu-item > a {
    color: var(--uvu-coral);
}

/* ---- Shared small type ---- */
.uvu-story-kicker {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 38px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-align: center;
}

.uvu-section h2.uvu-story-h2--lg {
    font-size: 46px;
    line-height: 1.3;
}

.uvu-section h2.uvu-story-h2--md {
    font-size: 36px;
    line-height: 51px;
}

.uvu-story-timeline h2,
.uvu-story-leadership h2,
.uvu-story-board h2 {
    margin: 0 0 16px;
}

.uvu-story-leadership h2 {
    margin-bottom: 21px;
}

/* Headings: no one-word last lines (supported browsers only). */
.uvu-story-timeline h2,
.uvu-story-leadership h2,
.uvu-story-board h2,
.uvu-story-belief h2,
.uvu-story-cta__title,
.uvu-story-hero__title {
    text-wrap: balance;
}

.uvu-story-sub {
    max-width: 939px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.45;
    text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.uvu-hero.uvu-story-hero {
    min-height: 616px;
    justify-content: flex-start;
    isolation: isolate;
    background-color: var(--uvu-navy);
}

/* Same layering as the Partner hero: flat navy underneath, photo in
   hard-light at 50%. The design shows the photo at 1921x717.5 with 16.76px
   cut off the top of a 616px banner, i.e. 16.76 / (717.5 - 616) = 16.5%. */
.uvu-story-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 50% 16.5%;
    opacity: 0.5;
    mix-blend-mode: hard-light;
}

/* Figma mask group 925:476: the Partner hero's artwork (same alpha, scaled
   0.892) at x=1546 / y=62, 714.25px wide (37.2% of 1920), left 10.15% and
   bottom 1.48% cut off by its box, white at 10%. Runs past the right edge
   and is clipped by .uvu-hero's overflow, like the design. */
.uvu-story-hero__watermark {
    position: absolute;
    z-index: 1;
    left: 80.521%;
    top: 62px;
    width: 37.2%;
    aspect-ratio: 1602 / 1242;
    background: var(--uvu-white);
    opacity: 0.1;
    -webkit-mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    clip-path: inset(0 0 1.48% 10.15%);
    pointer-events: none;
}

.uvu-story-hero__content > .wp-block-group__inner-container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Headline top at y=261 and 52px lines, subline top at y=434 (17px under
   the headline's 156px). Same 1400px/20px frame as the logo. */
.uvu-story-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 261px 20px 0;
    box-sizing: border-box;
    color: var(--uvu-white);
}

.uvu-story-hero__title {
    max-width: 1084px;
    margin: 0 0 17px;
    font-size: 48px;
    font-weight: 700;
    line-height: 52px;
    text-transform: capitalize;
}

.uvu-story-hero__sub {
    max-width: 789px;
    margin: 0;
    font-size: 28px;
    line-height: 46px;
}

/* ============================================================
   FACTS + "BEGAN IN CAPE TOWN IN 1999"
   ============================================================ */
.uvu-story-intro {
    padding: 44px 0 62px;
}

.uvu-story-facts {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 64px;
    padding: 0 20px;
    box-sizing: border-box;
}

.uvu-story-fact {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--uvu-navy);
    text-align: center;
    white-space: nowrap;
}

.uvu-story-fact:nth-child(1) {
    width: 237px;
    padding-right: 48px;
}

.uvu-story-fact:nth-child(2) {
    width: 243px;
    padding: 0 48px;
    border-left: 1px solid rgba(29, 41, 81, 0.5);
}

.uvu-story-fact:nth-child(3) {
    width: 273px;
    padding-left: 48px;
    justify-content: flex-start;
    text-align: left;
    border-left: 1px solid rgba(29, 41, 81, 0.5);
}

/* Photo flush to the viewport's left edge: 955 of 1920 (49.74%), copy at
   x=984 (29px later), the pair vertically centred on each other. */
.uvu-story-origin {
    display: grid;
    grid-template-columns: 49.74% minmax(0, 1fr);
    column-gap: 1.5%;
    align-items: center;
}

.uvu-story-origin__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 955 / 362;
    height: auto;
    object-fit: fill;
    mix-blend-mode: multiply;
}

.uvu-story-origin__text {
    max-width: 725px;
    padding-right: 20px;
    box-sizing: border-box;
}

.uvu-story-origin__lead {
    margin: 0 0 26px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--uvu-navy);
}

.uvu-story-origin__body {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--uvu-navy);
}

/* ============================================================
   TIMELINE — "Eight moments, one story."
   The component is 1377 x 662 in the design. --tu is one design pixel
   of it, so positions and the photo/graphics scale together and the
   composition holds at any container width; text keeps real sizes where
   it fits (floors below). Stacked layout from 900px down (see the end).
   ============================================================ */
.uvu-story-timeline {
    padding: 67px 0 117px;
}

.uvu-story-timeline .uvu-story-sub {
    margin-bottom: 90px;
}

/* Figma sets this heading to "capitalize" (typed "Eight moments, one story.",
   drawn "Eight Moments, One Story."); the stored text stays as typed. */
.uvu-story-timeline h2 {
    text-transform: capitalize;
}

.uvu-timeline {
    --tu: calc(100cqw / 1377);
    container-type: inline-size;
    position: relative;
    width: min(1377px, calc(100% - 40px));
    margin: 0 auto;
}

.uvu-timeline__stage {
    position: relative;
    height: calc(500 * var(--tu));
    /* Vertical scrolling stays native; horizontal swipes belong to the
       timeline (story-timeline.js), not the browser's back gesture. */
    touch-action: pan-y;
}

/* ---- Text column: year numerals, heading, description (one per
   milestone, stacked in the same spot; the active one is shown) ---- */
.uvu-timeline__slides {
    position: absolute;
    left: 0;
    top: 0;
    width: calc(600 * var(--tu));
    height: calc(420 * var(--tu));
}

.uvu-timeline__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(14 * var(--tu)));
    transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.55s;
}

.uvu-timeline__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s ease 0.15s, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.15s, visibility 0s;
}

.uvu-timeline__slide.is-past {
    transform: translateY(calc(-14 * var(--tu)));
}

.uvu-timeline__year {
    position: absolute;
    left: 0;
    top: calc(18 * var(--tu));
    display: block;
    width: auto;
    height: calc(136 * var(--tu));
    max-width: none;
}

.uvu-timeline__heading {
    position: absolute;
    left: 0;
    top: calc(186 * var(--tu));
    width: calc(500 * var(--tu));
    margin: 0;
    font-size: max(22px, calc(36 * var(--tu)));
    font-weight: 700;
    line-height: 1.15;
    color: var(--uvu-navy);
}

.uvu-timeline__desc {
    position: absolute;
    left: 0;
    top: calc(295 * var(--tu));
    width: calc(526 * var(--tu));
    margin: 0;
    font-size: max(14px, calc(18 * var(--tu)));
    line-height: 1.45;
    color: var(--uvu-navy);
}

/* The design's two-line headings start ~187px down, the one-liners ~202px
   (each variant's own text-top, read from the nodes). */
.uvu-timeline__slide:nth-child(1) .uvu-timeline__heading { top: calc(186 * var(--tu)); }
.uvu-timeline__slide:nth-child(2) .uvu-timeline__heading { top: calc(187 * var(--tu)); }
.uvu-timeline__slide:nth-child(3) .uvu-timeline__heading { top: calc(188 * var(--tu)); }
.uvu-timeline__slide:nth-child(4) .uvu-timeline__heading { top: calc(202 * var(--tu)); }
.uvu-timeline__slide:nth-child(5) .uvu-timeline__heading { top: calc(202 * var(--tu)); }
.uvu-timeline__slide:nth-child(6) .uvu-timeline__heading { top: calc(201 * var(--tu)); }
.uvu-timeline__slide:nth-child(7) .uvu-timeline__heading { top: calc(203 * var(--tu)); }
.uvu-timeline__slide:nth-child(8) .uvu-timeline__heading { top: calc(201 * var(--tu)); }

/* Description and heading boxes: the design sizes each one for its own text
   at 20px / 40px; ours is 18px / 36px, so every box is 0.9x to keep the
   designed line breaks. Single-line headings never wrap. */
.uvu-timeline__slide:nth-child(1) .uvu-timeline__desc { width: calc(473.4 * var(--tu)); }
.uvu-timeline__slide:nth-child(2) .uvu-timeline__desc { width: calc(470.7 * var(--tu)); }
.uvu-timeline__slide:nth-child(3) .uvu-timeline__desc { width: calc(469.8 * var(--tu)); }
.uvu-timeline__slide:nth-child(4) .uvu-timeline__desc { width: calc(456.3 * var(--tu)); }
.uvu-timeline__slide:nth-child(5) .uvu-timeline__desc { width: calc(469.8 * var(--tu)); }
.uvu-timeline__slide:nth-child(6) .uvu-timeline__desc { width: calc(379.8 * var(--tu)); }
.uvu-timeline__slide:nth-child(7) .uvu-timeline__desc { width: calc(435.6 * var(--tu)); }
.uvu-timeline__slide:nth-child(8) .uvu-timeline__desc { width: calc(469.8 * var(--tu)); }

.uvu-timeline__slide:nth-child(1) .uvu-timeline__heading { width: calc(413 * var(--tu)); }
.uvu-timeline__slide:nth-child(2) .uvu-timeline__heading { width: calc(429 * var(--tu)); }
.uvu-timeline__slide:nth-child(3) .uvu-timeline__heading { width: calc(440 * var(--tu)); }
.uvu-timeline__slide:nth-child(n + 4) .uvu-timeline__heading { width: auto; white-space: nowrap; }

/* ---- Arrows: the design's 60px navy ring (arrow points right in the
   file; the previous button is the same artwork turned 180deg), 10px
   apart, disabled at either end at 50%. Hover swaps to the design's
   filled-disc variant (arrow knocked out). ---- */
.uvu-timeline__arrows {
    position: absolute;
    left: calc(1 * var(--tu));
    top: calc(428 * var(--tu));
    display: flex;
    gap: calc(10 * var(--tu));
}

.uvu-timeline__arrow {
    flex: none;
    width: max(44px, calc(60 * var(--tu)));
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: url('../images/story-arrow.svg') center / 100% 100% no-repeat;
    cursor: pointer;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.uvu-timeline__arrow--prev {
    transform: rotate(180deg);
}

/* The hover artwork is a navy disc with the arrow cut out, so whatever sits
   behind it shows through the arrow. GeneratePress paints every button grey
   on :hover / :focus / :active (a clicked button keeps :focus), which showed
   as a grey disc behind the ring after a click - keep the button itself
   transparent in every state. */
.uvu-timeline__arrow:hover,
.uvu-timeline__arrow:focus,
.uvu-timeline__arrow:active {
    background-color: transparent;
}

/* Pressed, and keyboard focus, always show the filled disc. */
.uvu-timeline__arrow:active,
.uvu-timeline__arrow:focus-visible {
    background-image: url('../images/story-arrow-hover.svg');
}

/* Hover only where there is a real pointer: on a touch screen :hover sticks
   after a tap and the disc would stay filled. */
@media (hover: hover) {
    .uvu-timeline__arrow:hover {
        background-image: url('../images/story-arrow-hover.svg');
    }
}

.uvu-timeline__arrow:focus-visible {
    outline: 3px solid var(--uvu-navy);
    outline-offset: 3px;
}

.uvu-timeline__arrow.is-disabled {
    opacity: 0.5;
    cursor: default;
}

.uvu-timeline__arrow.is-disabled:hover,
.uvu-timeline__arrow.is-disabled:active {
    background-image: url('../images/story-arrow.svg');
}

/* ---- Photos: the polaroid (17px white border OUTSIDE the 694x448 image
   = 728x482, M3 elevation-1 shadow). The active one always sits at
   x=640..1368. These base rules are the stacked (<=900px) layout: a track
   that slides one slot per step inside its own window. The desktop strip
   (min-width 901px, below) replaces them. */
.uvu-timeline__photos {
    position: absolute;
    left: calc(600 * var(--tu));
    top: 0;
    width: calc(777 * var(--tu));
    height: calc(500 * var(--tu));
    overflow: hidden;
}

.uvu-timeline__track {
    display: flex;
    gap: calc(118 * var(--tu));
    margin: 0;
    padding: calc(6 * var(--tu)) 0 0 calc(40 * var(--tu));
    list-style: none;
    transform: translateX(calc(var(--uvu-tl-index, 0) * -846 * var(--tu)));
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.uvu-timeline__photo {
    flex: none;
    width: calc(728 * var(--tu));
    margin: 0;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.uvu-timeline__photo.is-active {
    opacity: 1;
}

/* Desktop: the photo strip as the prototype has it. Figma's "Frame 44" spans
   the whole component and is the top layer, so a photo that leaves sweeps
   across everything (year, text, arrows) to the left edge while the next one
   comes in from the right. Each photo has three resting slots (design px,
   outer polaroid edge): the active one at x=640, the next one 846 to the
   right (off the component), the previous one 1503 to the left (off the
   component) - the previous slot is further away than the next one, so on a
   forward step the outgoing photo travels 1503 and the incoming one 846
   (Smart Animate moves each element between its two positions). Every other
   photo is parked in the nearest slot, so a jump over several milestones
   still looks like one ordinary step. --k is the photo's own index
   (inline), --uvu-tl-index the active one. */
@media (min-width: 901px) {
    .uvu-timeline__photos {
        left: 0;
        width: 100%;
        z-index: 3;
        pointer-events: none;
    }

    .uvu-timeline__track {
        position: absolute;
        inset: 0;
        display: block;
        padding: 0;
        transform: none;
        transition: none;
    }

    .uvu-timeline__photo {
        --d: clamp(-1, calc(var(--k, 0) - var(--uvu-tl-index, 0)), 1);
        position: absolute;
        left: 0;
        top: calc(6 * var(--tu));
        opacity: 1;
        transform: translateX(calc((846 * var(--d) - 17 + 657 * clamp(0, var(--d) + 1, 1)) * var(--tu)));
        transition: none;
    }

    /* story-timeline.js marks the photo leaving and the photo arriving. */
    .uvu-timeline__photo.is-moving {
        transition: transform 1s cubic-bezier(0.65, 0, 0.25, 1);
        will-change: transform;
    }

    /* The new text arrives once the outgoing photo has swept off it. */
    .uvu-timeline__slide.is-active {
        transition: opacity 0.5s ease 0.4s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, visibility 0s;
    }
}

.uvu-timeline__frame {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 728 / 482;
    border: calc(17 * var(--tu)) solid var(--uvu-white);
    background: var(--uvu-white);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.uvu-timeline__frame.is-tilted {
    transform: rotate(-0.16deg);
}

.uvu-timeline__img {
    position: absolute;
    display: block;
    max-width: none;
}

.uvu-timeline__img--cover {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- Scrubber: 8 labels, 8 dots, 7 segments. Everything up to and
   including the active year is navy; the rest is 30% (dots/lines) / 40%
   (labels). One ring (34px, white, 2px navy) slides to the active dot.
   Dots sit 188.29px apart starting at x=27. ---- */
.uvu-timeline__scrubber {
    position: relative;
    height: calc(64 * var(--tu));
    margin: calc(98 * var(--tu)) 0 0;
    padding: 0;
    list-style: none;
}

.uvu-timeline__scrubber::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: calc(44.5 * var(--tu));
    left: calc((27 + 188.2857 * var(--uvu-tl-index, 0)) * var(--tu));
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    border: 2px solid var(--uvu-navy);
    border-radius: 50%;
    background: var(--uvu-white);
    transform: translate(-50%, -50%);
    transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.uvu-timeline__stop {
    position: absolute;
    top: 0;
    z-index: 2;
    width: calc(60 * var(--tu));
    margin: 0 0 0 calc(-30 * var(--tu));
    height: 100%;
}

.uvu-timeline__stop:nth-child(1) { left: calc(27 * var(--tu)); }
.uvu-timeline__stop:nth-child(2) { left: calc(215.2857 * var(--tu)); }
.uvu-timeline__stop:nth-child(3) { left: calc(403.5714 * var(--tu)); }
.uvu-timeline__stop:nth-child(4) { left: calc(591.8571 * var(--tu)); }
.uvu-timeline__stop:nth-child(5) { left: calc(780.1428 * var(--tu)); }
.uvu-timeline__stop:nth-child(6) { left: calc(968.4285 * var(--tu)); }
.uvu-timeline__stop:nth-child(7) { left: calc(1156.7142 * var(--tu)); }
.uvu-timeline__stop:nth-child(8) { left: calc(1345 * var(--tu)); }

/* Segment of line leading INTO this stop, from 9px after the previous dot
   to 9px before this one; solid once this stop has been reached. */
.uvu-timeline__stop:nth-child(n + 2)::before {
    content: '';
    position: absolute;
    left: calc(30 * var(--tu) - 179.2857 * var(--tu));
    top: calc(43.5 * var(--tu));
    width: calc(170.2857 * var(--tu));
    height: 2px;
    background: var(--uvu-navy);
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.uvu-timeline__stop.is-reached:nth-child(n + 2)::before {
    opacity: 1;
}

.uvu-timeline__stop button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    color: var(--uvu-navy);
    -webkit-tap-highlight-color: transparent;
}

.uvu-timeline__stop button:focus-visible {
    outline: 3px solid var(--uvu-navy);
    outline-offset: 2px;
    border-radius: 6px;
}

.uvu-timeline__stop-year {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    font-size: max(10px, calc(15 * var(--tu)));
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0.07em;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.uvu-timeline__stop.is-reached .uvu-timeline__stop-year {
    opacity: 1;
}

.uvu-timeline__dot {
    position: absolute;
    left: 50%;
    top: calc(44.5 * var(--tu));
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--uvu-navy);
    opacity: 0.3;
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease;
}

.uvu-timeline__stop.is-reached .uvu-timeline__dot {
    opacity: 1;
}

/* ============================================================
   "SAME BELIEF." — navy band + People / Sectors / Places cards
   ============================================================ */
.uvu-story-belief {
    padding: 80px 0 81px;
}

.uvu-story-belief__kicker {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 49px;
    text-align: center;
}

.uvu-story-belief h2 {
    margin: 12px 0 12px;
}

.uvu-story-belief__lede {
    max-width: 820px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

/* Row 1658 wide in the design (x 133-1791), 73px between cards. */
.uvu-belief {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3.8vw, 73px);
    max-width: 1698px;
    margin: 72px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Each card is its own container: --k is one design px of its 504x407. */
.uvu-belief-card {
    --k: calc(100cqw / 504);
    position: relative;
    container-type: inline-size;
    aspect-ratio: 504 / 407;
    border-radius: var(--uvu-r-20);
    overflow: hidden;
    isolation: isolate;
    background: var(--uvu-navy);
    color: var(--uvu-white);
}

/* soft-light photo at 40% over the navy */
.uvu-belief-card__photo {
    position: absolute;
    inset: -1px;
    overflow: hidden;
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.uvu-belief-card__img {
    position: absolute;
    display: block;
    max-width: none;
}

.uvu-belief-card__img--fill {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/* UVU pattern at 4% white: Figma element 567.5 x 405 at (238, -158.26),
   mask 568.35 x 483 drawn 46.74px up inside it. */
.uvu-belief-card__pattern {
    position: absolute;
    left: calc(238 * var(--k));
    top: calc(-158.26 * var(--k));
    width: calc(567.529 * var(--k));
    height: calc(405.028 * var(--k));
    background: var(--uvu-white);
    opacity: 0;
    -webkit-mask: url('../images/story-belief-watermark.webp') 0 calc(-46.744 * var(--k)) / calc(568.346 * var(--k)) calc(483 * var(--k)) no-repeat;
    mask: url('../images/story-belief-watermark.webp') 0 calc(-46.744 * var(--k)) / calc(568.346 * var(--k)) calc(483 * var(--k)) no-repeat;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* white line-art icon, 110x84 at (34, 57), mask 109x82 offset 1px */
.uvu-belief-card__icon {
    position: absolute;
    left: calc(34 * var(--k));
    top: calc(57 * var(--k));
    width: calc(110 * var(--k));
    height: calc(84 * var(--k));
    background: var(--uvu-white);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.uvu-belief-card--people .uvu-belief-card__icon {
    -webkit-mask: url('../images/story-icon-people.webp') calc(1 * var(--k)) 0 / calc(109 * var(--k)) calc(82 * var(--k)) no-repeat;
    mask: url('../images/story-icon-people.webp') calc(1 * var(--k)) 0 / calc(109 * var(--k)) calc(82 * var(--k)) no-repeat;
}

.uvu-belief-card--sectors .uvu-belief-card__icon {
    -webkit-mask: url('../images/story-icon-sectors.webp') calc(1 * var(--k)) 0 / calc(109 * var(--k)) calc(82 * var(--k)) no-repeat;
    mask: url('../images/story-icon-sectors.webp') calc(1 * var(--k)) 0 / calc(109 * var(--k)) calc(82 * var(--k)) no-repeat;
}

.uvu-belief-card--places .uvu-belief-card__icon {
    -webkit-mask: url('../images/story-icon-places.webp') calc(1 * var(--k)) 0 / calc(109 * var(--k)) calc(82 * var(--k)) no-repeat;
    mask: url('../images/story-icon-places.webp') calc(1 * var(--k)) 0 / calc(109 * var(--k)) calc(82 * var(--k)) no-repeat;
}

/* 1px white border (hover state) */
.uvu-belief-card__frame {
    position: absolute;
    inset: 0;
    border: 1px solid var(--uvu-white);
    border-radius: var(--uvu-r-20);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

/* Text block: eyebrow line top 110, title 171, paragraph 226 at rest; the
   whole block sits 51px lower when the icon is showing. */
.uvu-belief-card__body {
    position: absolute;
    left: calc(35 * var(--k));
    right: calc(35 * var(--k));
    top: calc(110 * var(--k));
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.uvu-belief-card__eyebrow {
    margin: 0 0 calc(23 * var(--k));
    font-size: max(12px, calc(18 * var(--k)));
    font-weight: 700;
    line-height: calc(38 * var(--k));
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--uvu-coral);
}

.uvu-belief-card__title {
    margin: 0 0 calc(19 * var(--k));
    font-size: max(24px, calc(36 * var(--k)));
    font-weight: 700;
    line-height: 1;
    color: var(--uvu-white);
}

.uvu-belief-card__text {
    max-width: calc(385 * var(--k));
    margin: 0;
    font-size: max(13px, calc(16 * var(--k)));
    line-height: 1.5;
    color: var(--uvu-white);
}

.uvu-belief-card--places .uvu-belief-card__text {
    max-width: calc(356 * var(--k));
}

@media (hover: hover) and (min-width: 901px) {
    .uvu-belief-card:hover .uvu-belief-card__photo {
        opacity: 0.4;
    }

    .uvu-belief-card:hover .uvu-belief-card__pattern {
        opacity: 0.04;
    }

    .uvu-belief-card:hover .uvu-belief-card__icon,
    .uvu-belief-card:hover .uvu-belief-card__frame {
        opacity: 1;
    }

    .uvu-belief-card:hover .uvu-belief-card__body {
        transform: translateY(calc(51 * var(--k)));
    }
}

/* No hover on touch screens (and the cards stack below 901px): the
   expanded look is simply the permanent one, nothing is hidden. */
@media (hover: none), (max-width: 900px) {
    .uvu-belief-card .uvu-belief-card__photo {
        opacity: 0.4;
    }

    .uvu-belief-card .uvu-belief-card__pattern {
        opacity: 0.04;
    }

    .uvu-belief-card .uvu-belief-card__icon,
    .uvu-belief-card .uvu-belief-card__frame {
        opacity: 1;
    }

    .uvu-belief-card .uvu-belief-card__body {
        transform: translateY(calc(51 * var(--k)));
    }
}

/* ============================================================
   LEADERSHIP + THE BOARD
   ============================================================ */
.uvu-story-leadership {
    padding: 80px 0;
}

.uvu-story-board {
    padding: 68px 0 96px;
}

/* 4 columns of 396 x 395 cards, ~29px / 37px apart (x 130-1794). */
.uvu-people {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 37px 29px;
    max-width: 1704px;
    margin: 70px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.uvu-story-board .uvu-people {
    margin-top: 67px;
}

.uvu-person {
    position: relative;
    container-type: inline-size;
    aspect-ratio: 396 / 395;
    border-radius: var(--uvu-r-20);
    overflow: hidden;
    isolation: isolate;
    background-color: #e9e9e9;
}

/* The two photo states live in one wrapper so the board crossfade (below) can
   blend inside an isolated group, separate from the card's background colour. */
.uvu-person__photos {
    position: absolute;
    inset: 0;
    isolation: isolate;
    border-radius: var(--uvu-r-20);
}

/* A layer is one photo state (rest / hover), crossfaded with the other. The
   photos are ordinary portraits from the Media Library, centred and cropped
   to the card; the upload is expected to keep the face in the upper half. */
.uvu-person__layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--uvu-r-20);
    transition: opacity 0.45s ease;
}

.uvu-person__layer--hover {
    opacity: 0;
}

.uvu-person__img {
    position: absolute;
    display: block;
    max-width: none;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
}

/* No separate greyscale photo was uploaded: grey the colour one. */
.uvu-person__img--grey {
    filter: grayscale(1);
}

/* Caption: a gradient (transparent from 31.9% to navy @ 50%) over a
   background blur, both on the bottom 35.7%; name 26 -> 24px, title
   16 -> 15px, LinkedIn mark 35px at the bottom right. Percentages are the
   design's. Figma blurs only where its fill is not transparent and its
   "17.5" blur is about 8.75px in CSS (fitted against Figma's own render), so
   the shade carries the blur alone, masked to start where the gradient
   starts (the mask sits on the shade, not the tint, or the tint's alpha
   would be applied twice), and the tint is a separate layer on top.

   The caption is the blur's box and is as tall as its text needs: the
   design's 35.7% of the card is its minimum, and a long name or role (they
   are free text) makes it taller, so the blur and tint grow with the text
   instead of the text climbing out of a fixed strip (a 3-line role did, and
   its name sat on the bare photo). The padding is the design's text inset
   plus the 15.17cqw of blur above the text's first line that the design has
   (35.7% minus the one-line name + role + bottom inset), so a one-line card
   comes out exactly as designed. The gradient and mask stops are therefore
   lengths from the top of the blur (11.365cqw = 31.915% of the design's
   strip, 14.244cqw = 40%), not percentages of a height that now varies. */
.uvu-person__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 35.7%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15.17cqw 19cqw 4.668cqw 9.34cqw;
    border-radius: 0 0 var(--uvu-r-20) var(--uvu-r-20);
    pointer-events: none;
}

.uvu-person__shade {
    position: absolute;
    inset: 0;
    border-radius: 0 0 var(--uvu-r-20) var(--uvu-r-20);
    -webkit-backdrop-filter: blur(8.75px);
    backdrop-filter: blur(8.75px);
    -webkit-mask-image: linear-gradient(180deg, transparent 11.365cqw, #000 14.244cqw);
    mask-image: linear-gradient(180deg, transparent 11.365cqw, #000 14.244cqw);
}

.uvu-person__caption::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0 0 var(--uvu-r-20) var(--uvu-r-20);
    background: linear-gradient(180deg, rgba(29, 41, 81, 0) 11.365cqw, rgba(29, 41, 81, 0.5) 100%);
    pointer-events: none;
}

/* Name over role at the bottom of the caption. For a one-line name and role
   this lands where the design puts them: name box at 79.49%, role box at
   89.62%, 4.68% of the card above its bottom edge. */
.uvu-person__text {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1cqw;
    overflow-wrap: anywhere;
    color: var(--uvu-white);
    z-index: 1;
}

.uvu-person__name {
    font-size: clamp(17px, 6.06cqw, 24px);
    font-weight: 700;
    line-height: 1.5;
}

.uvu-person__title {
    font-size: clamp(12px, 3.79cqw, 15px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.uvu-person__in {
    position: absolute;
    right: 8.59%;
    bottom: 8.329cqw; /* 8.35% of the card's height; the caption is no longer card-sized */
    width: 8.83%;
    aspect-ratio: 1;
    background: url('../images/story-linkedin.svg') center / contain no-repeat;
    pointer-events: auto;
    z-index: 1;
}

/* Leadership: names stay hidden until hover; board: always visible.
   The fade sits on the caption's children, never on .uvu-person__caption
   itself: an ancestor with opacity < 1 becomes the blur's "backdrop root",
   so the backdrop-filter sampled nothing until the fade finished and the
   blur popped in at the very end of the animation. */
.uvu-person__shade,
.uvu-person__caption::after,
.uvu-person__text,
.uvu-person__in {
    transition: opacity 0.45s ease;
}

.uvu-person--lead .uvu-person__shade,
.uvu-person--lead .uvu-person__caption::after,
.uvu-person--lead .uvu-person__text,
.uvu-person--lead .uvu-person__in {
    opacity: 0;
}

.uvu-person:hover .uvu-person__layer--hover,
.uvu-person:focus-within .uvu-person__layer--hover {
    opacity: 1;
}

/* Board photos are cut-outs (soft, partly transparent edges, and the grey and
   colour outlines differ slightly), so the two states have to crossfade; a
   plain opacity crossfade dips to ~75% coverage mid-way and the light card
   colour shows through the figure, a flash. plus-lighter adds the two layers
   instead (rest x (1 - t) + hover x t), so the figure stays fully covered
   throughout; it sits inside .uvu-person__photos' isolated group so it never
   adds to the card colour. A browser without plus-lighter ignores the line and
   falls back to the plain crossfade. Leadership photos are opaque: the
   greyscale one stays put underneath and only the colour one fades in over it
   (below), so they must NOT be blended additively. */
.uvu-person--board .uvu-person__layer {
    mix-blend-mode: plus-lighter;
}

.uvu-person--board:hover .uvu-person__layer--rest,
.uvu-person--board:focus-within .uvu-person__layer--rest {
    opacity: 0;
}

.uvu-person--lead .uvu-person__layer--rest {
    transition: none;
}

.uvu-person--lead:hover .uvu-person__shade,
.uvu-person--lead:hover .uvu-person__caption::after,
.uvu-person--lead:hover .uvu-person__text,
.uvu-person--lead:hover .uvu-person__in,
.uvu-person--lead:focus-within .uvu-person__shade,
.uvu-person--lead:focus-within .uvu-person__caption::after,
.uvu-person--lead:focus-within .uvu-person__text,
.uvu-person--lead:focus-within .uvu-person__in {
    opacity: 1;
}

/* Touch screens can't hover: leadership names are simply on (over the
   greyscale photo, the same look the board cards rest in). */
@media (hover: none) {
    .uvu-person--lead .uvu-person__shade,
    .uvu-person--lead .uvu-person__caption::after,
    .uvu-person--lead .uvu-person__text,
    .uvu-person--lead .uvu-person__in {
        opacity: 1;
    }
}

/* ============================================================
   CLOSING BANNER
   ============================================================ */
.uvu-story-cta {
    position: relative;
    min-height: 559px;
    overflow: hidden;
    isolation: isolate;
    background: var(--uvu-navy);
    color: var(--uvu-white);
    text-align: center;
}

.uvu-story-cta__bg {
    position: absolute;
    inset: 0;
    isolation: isolate;
}

/* The 2026-11-19 replacement is a real photograph: shown as it is, never
   stretched or mirrored (the design's original was both). It is drawn
   145% of the band's height and anchored to the bottom, so the sun (44%
   down the photo) sits above the heading, as in the design. */
.uvu-story-cta__bg {
    overflow: hidden;
}

.uvu-story-cta__bg img {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 100%;
    height: 145%;
    object-fit: cover;
    object-position: center bottom;
}

.uvu-story-cta__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 41, 81, 0.53);
    mix-blend-mode: multiply;
}

.uvu-story-cta > .wp-block-group__inner-container,
.uvu-story-cta__content > .wp-block-group__inner-container {
    padding-top: 0;
    padding-bottom: 0;
}

.uvu-story-cta__content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 184px 20px 80px;
    box-sizing: border-box;
}

.uvu-story-cta__title {
    max-width: 830px;
    margin: 0 auto 10px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
}

.uvu-story-cta__line {
    margin: 0 0 26px;
    font-size: 22px;
    font-weight: 500;
    line-height: 50px;
}

.uvu-story-cta .wp-block-buttons {
    justify-content: center;
}

.uvu-story-cta .wp-block-button__link {
    min-width: 200px;
    height: 53px;
    padding: 14px 21px;
    box-sizing: border-box;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--uvu-white);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Same hover as every other button on the site (Home hero, header "Contact
   Us"): coral to navy, white text. Figma's button component only has a
   Default variant, so the site's own convention applies. (A white hover was
   tried first because navy was expected to disappear on this navy-tinted
   photo; measured on the real banner it stays clearly visible.)
   !important: WP core's has-coral-background-color is !important. */
.uvu-story-cta .wp-block-button__link:hover,
.uvu-story-cta .wp-block-button__link:focus-visible {
    background-color: var(--uvu-navy) !important;
    color: var(--uvu-white) !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .uvu-people {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .uvu-story-hero__content {
        padding-top: 200px;
    }
}

@media (max-width: 900px) {
    .uvu-hero.uvu-story-hero {
        min-height: 480px;
    }

    .uvu-story-hero__content {
        padding: 56px 20px 48px;
    }

    .uvu-story-hero__title {
        font-size: 36px;
        line-height: 1.2;
    }

    .uvu-story-hero__title br {
        display: none;
    }

    /* The photo's subject is at its right (~78%); a narrow banner crops by
       height, so lean the crop right to keep her in frame. */
    .uvu-story-hero__bg {
        background-position: 88% 16.5%;
    }

    .uvu-story-hero__sub {
        font-size: 22px;
        line-height: 1.4;
    }

    /* facts: stacked, thin rules between (same as the Partner hero) */
    .uvu-story-intro {
        padding: 36px 0 48px;
    }

    .uvu-story-facts {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 40px;
    }

    .uvu-story-fact:nth-child(n) {
        width: auto;
        min-height: 0;
        padding: 0;
        justify-content: center;
        text-align: center;
        border-left: none;
    }

    .uvu-story-fact:nth-child(n + 2) {
        padding-top: 14px;
        border-top: 1px solid rgba(29, 41, 81, 0.3);
    }

    .uvu-story-origin {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 28px;
    }

    .uvu-story-origin__text {
        max-width: none;
        padding: 0 20px;
    }

    .uvu-story-origin__lead {
        font-size: 22px;
    }

    .uvu-story-origin__lead br {
        display: none;
    }

    .uvu-section h2.uvu-story-h2--lg {
        font-size: 34px;
    }

    .uvu-section h2.uvu-story-h2--md {
        font-size: 28px;
        line-height: 1.25;
    }

    .uvu-story-belief__kicker {
        font-size: 28px;
        line-height: 1.25;
    }

    .uvu-story-timeline .uvu-story-sub {
        margin-bottom: 40px;
    }

    /* ---- timeline: stacked. Text, then the photo, then the arrows and
       the scrubber; every slide shares one grid cell so the block never
       changes height between milestones. ---- */
    .uvu-timeline__stage {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 24px;
    }

    .uvu-timeline__slides {
        position: relative;
        order: 1;
        display: grid;
        width: 100%;
        height: auto;
    }

    .uvu-timeline__slide {
        position: static;
        grid-area: 1 / 1;
        display: flex;
        flex-direction: column;
        gap: 14px;
        transform: translateY(12px);
    }

    .uvu-timeline__slide.is-past {
        transform: translateY(-12px);
    }

    .uvu-timeline__year {
        position: static;
        height: clamp(56px, 18vw, 110px);
        width: auto;
        align-self: flex-start;
    }

    .uvu-timeline__heading,
    .uvu-timeline__slide:nth-child(n) .uvu-timeline__heading {
        position: static;
        width: auto;
        white-space: normal;
        font-size: clamp(24px, 5.4vw, 32px);
    }

    .uvu-timeline__desc,
    .uvu-timeline__slide:nth-child(n) .uvu-timeline__desc {
        position: static;
        width: auto;
        max-width: 560px;
        font-size: 17px;
    }

    .uvu-timeline__photos {
        position: relative;
        order: 2;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        padding: 4px 0 8px;
        box-sizing: border-box;
    }

    .uvu-timeline__track {
        width: 800%;
        gap: 0;
        padding: 0;
        transform: translateX(calc(var(--uvu-tl-index, 0) * -12.5%));
    }

    .uvu-timeline__photo {
        width: 12.5%;
        padding: 0 4px;
        box-sizing: border-box;
    }

    .uvu-timeline__frame {
        border-width: clamp(6px, 2.3vw, 14px);
    }

    .uvu-timeline__arrows {
        position: static;
        order: 3;
        gap: 12px;
    }

    .uvu-timeline__arrow {
        width: 52px;
    }

    /* scrubber: 8 equal columns; the segment into a stop spans the gap
       between the two dot centres (minus 9px each side). */
    .uvu-timeline__scrubber {
        display: flex;
        height: 64px;
        margin-top: 28px;
    }

    .uvu-timeline__scrubber::before {
        left: calc((var(--uvu-tl-index, 0) + 0.5) * 12.5%);
        top: 44.5px;
    }

    .uvu-timeline__stop,
    .uvu-timeline__stop:nth-child(n) {
        position: relative;
        left: auto;
        flex: 1 1 0;
        width: auto;
        margin: 0;
        min-width: 0;
    }

    .uvu-timeline__stop:nth-child(n + 2)::before {
        left: calc(-50% + 9px);
        top: 43.5px;
        width: calc(100% - 18px);
    }

    .uvu-timeline__stop-year {
        font-size: clamp(10px, 2.7vw, 14px);
        letter-spacing: 0.02em;
    }

    .uvu-timeline__dot {
        top: 44.5px;
    }

    .uvu-belief {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        gap: 20px;
    }

    .uvu-people {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        margin-top: 44px;
    }

    .uvu-story-leadership,
    .uvu-story-board {
        padding: 56px 0;
    }

    .uvu-story-timeline,
    .uvu-story-belief {
        padding: 56px 0;
    }

    .uvu-story-cta {
        min-height: 420px;
    }

    .uvu-story-cta__content {
        padding: 96px 20px 64px;
    }

    .uvu-story-cta__title {
        font-size: 28px;
    }

    .uvu-story-cta__line {
        font-size: 18px;
        line-height: 1.5;
    }
}

@media (max-width: 600px) {
    .uvu-story-hero__watermark {
        display: none;
    }

    .uvu-story-hero__title {
        font-size: 30px;
    }

    .uvu-story-hero__sub {
        font-size: 19px;
    }

    .uvu-story-kicker {
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .uvu-people {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uvu-timeline__slide,
    .uvu-timeline__slide.is-active,
    .uvu-timeline__track,
    .uvu-timeline__photo,
    .uvu-timeline__photo.is-moving,
    .uvu-timeline__scrubber::before,
    .uvu-timeline__stop::before,
    .uvu-timeline__stop-year,
    .uvu-timeline__dot,
    .uvu-timeline__arrow,
    .uvu-belief-card__photo,
    .uvu-belief-card__pattern,
    .uvu-belief-card__icon,
    .uvu-belief-card__frame,
    .uvu-belief-card__body,
    .uvu-person__layer,
    .uvu-person__shade,
    .uvu-person__caption::after,
    .uvu-person__text,
    .uvu-person__in {
        transition: none;
    }
}

/* ============================================================
   INNER-PAGE HEROES ON A PHONE: the photo, then the words under it
   (Our Story and Partner; Home's hero stays a full-bleed photo with its
   text over it, on purpose).

   Laid over a photo, a headline on a ~350px-wide screen has to fight the
   picture for contrast, and the picture is cropped to a sliver behind
   the words. Same idea as the Nexeva site's mobile pages: the photo gets
   its own rounded card and the content its own card directly under it, so
   nothing is written over a face. The cards are UVU's navy with the coral
   accent (a short coral bar above the headline, coral subline / eyebrow)
   and the same corner token as every other card (--uvu-r-32, 20px at
   390px), 12px apart, in the page's 20px gutters.

   Below 768px only; tablets keep the full banner, which has the room.
   It is CSS only (these pages' markup is unchanged), so it sits last in
   the file to win over the older <=900px / <=600px hero rules, and the
   desktop and tablet banners are untouched. A new inner page with the same
   parts (a __bg photo layer + a __content block) can join by adding its
   hero class to the selectors below.
   ============================================================ */
@media (max-width: 767px) {
    .uvu-hero.uvu-story-hero,
    .uvu-hero.uvu-partner-hero {
        min-height: 0;
        padding: 16px 20px 28px;
        box-sizing: border-box;
        background: none;
    }

    .uvu-hero.uvu-story-hero > .wp-block-group__inner-container,
    .uvu-hero.uvu-partner-hero > .wp-block-group__inner-container {
        justify-content: flex-start;
    }

    /* The photo card. It was an absolutely positioned layer under the
       text, in a 50% hard-light blend over navy; as a card it shows the
       photograph as it is. */
    .uvu-story-hero__bg,
    .uvu-partner-hero__bg {
        position: relative;
        inset: auto;
        flex: none;
        width: 100%;
        height: clamp(210px, 62vw, 300px);
        border-radius: var(--uvu-r-32);
        overflow: hidden;
        opacity: 1;
        mix-blend-mode: normal;
    }

    /* Our Story: the subject stands at the photo's right (~78%); a card is
       far less wide than the banner, so crop towards her. Partner: the
       people sit centre-left of the table scene. */
    .uvu-story-hero__bg {
        background-position: 100% 30%;
    }

    .uvu-partner-hero__bg {
        background-position: 42% 39.54%;
    }

    /* The UVU watermark keeps its place in the top right of the photo (as
       on the banner, white at ~12%, running off the edge); the banner's own
       layer is positioned against the whole hero, so it is redrawn here as
       part of the photo card. */
    .uvu-story-hero__watermark,
    .uvu-partner-hero__watermark {
        display: none;
    }

    .uvu-story-hero__bg::after,
    .uvu-partner-hero__bg::after {
        content: '';
        position: absolute;
        top: -22px;
        right: -46%;
        width: 78%;
        aspect-ratio: 1602 / 1242;
        background: var(--uvu-white);
        opacity: 0.1;
        -webkit-mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
        mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
        clip-path: inset(0 0 1.48% 10.15%);
        pointer-events: none;
    }

    /* The content card: navy, a short coral bar above the headline. */
    .uvu-story-hero__content,
    .uvu-partner-hero__content {
        position: relative;
        z-index: 2;
        width: auto;
        max-width: none;
        margin: 12px 0 0;
        padding: 26px 24px 30px;
        background: var(--uvu-navy);
        border-radius: var(--uvu-r-32);
    }

    .uvu-story-hero__content::before,
    .uvu-partner-hero__content::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        margin: 0 0 18px;
        border-radius: 2px;
        background: var(--uvu-coral);
    }

    .uvu-story-hero__title {
        margin: 0 0 14px;
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.2;
    }

    /* WordPress's palette class (.has-white-color) puts !important on the
       white and its stylesheet loads after this one, so the subline needs
       the extra class to win; it is the coral accent here (white on the
       banner). */
    .uvu-story-hero .uvu-story-hero__sub {
        color: var(--uvu-coral) !important;
        font-size: 18px;
        line-height: 1.45;
    }

    /* Partner: the eyebrow + headline are the top of the card and the
       three facts its bottom, one navy block. Left-aligned like the Our
       Story card (the banner centres this page's text, but in a phone card
       both cards read the same way: bar, label, headline and facts all
       start on one left edge, 24px in). The 'has-text-align-center' classes
       in the page content and the banner's own centring need the extra
       class to lose. */
    .uvu-partner-hero__content {
        padding: 26px 24px 4px;
        border-radius: var(--uvu-r-32) var(--uvu-r-32) 0 0;
        text-align: left;
    }

    .uvu-partner-hero__content::before {
        margin: 0 0 18px;
    }

    .uvu-partner-hero__content .uvu-eyebrow {
        margin: 0 0 8px;
        line-height: 1.4;
        text-align: left;
    }

    .uvu-partner-hero__content .uvu-partner-hero__title {
        font-size: clamp(28px, 8.2vw, 34px);
        line-height: 1.15;
        text-align: left;
    }

    /* The three facts stay centred, each with its short rule only as wide
       as its own text: the same look as the identical three facts under the
       Our Story hero (.uvu-story-fact), which the full-width left-aligned
       version made look like a different component. */
    .uvu-partner-hero__facts {
        align-items: center;
        gap: 14px;
        padding: 24px 24px 30px;
        background: var(--uvu-navy);
        border-radius: 0 0 var(--uvu-r-32) var(--uvu-r-32);
        text-align: center;
    }

    .uvu-partner-hero__fact:nth-child(n) {
        justify-content: center;
        text-align: center;
    }
}

/* ============================================================
   PHONE SIDE GUTTERS
   Everything on a phone keeps the page's 20px left and right gutter. Two
   places didn't (found by measuring every text run, image and card against
   the screen edges at 320-767px, not by eye):

   1. A heading or paragraph placed straight in a full-width section has no
      gutter of its own (the sections are edge-to-edge bands and the 20px
      comes from the .uvu-content wrapper or the grid inside them). On
      Our Story that was the timeline heading and its line, the belief
      heading and paragraph and the leadership intro: centred text wrapped
      3-13px from the screen edges. Only DIRECT children of the section's
      inner container are padded, so anything already inside .uvu-content or
      a grid isn't padded twice.
   2. The footer's single column was `1fr`, which cannot shrink below its
      widest content, and the email sign-up field + SIGN UP button (about
      290px wide on their own) pushed the whole column 54px past a 320px
      screen: text and the button ran off the right edge. `minmax(0, 1fr)`
      lets the column be the screen's width; the field already shrinks.
   ============================================================ */
@media (max-width: 767px) {
    .uvu-section > .wp-block-group__inner-container > h1,
    .uvu-section > .wp-block-group__inner-container > h2,
    .uvu-section > .wp-block-group__inner-container > h3,
    .uvu-section > .wp-block-group__inner-container > p {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 900px) {
    .uvu-footer__columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .uvu-footer__col {
        min-width: 0;
    }
}

/* ------------------------------------------------------------
   Where We Work on phones and tablets (2026-11-17): arrows on the
   card beside the map, a row of dots under it, and the old arrows
   under the caption removed. carousel.js adds the arrows and dots and
   lines the arrows up with the map. Desktop is unchanged.
   ------------------------------------------------------------ */
.uvu-where__card-nav,
.uvu-where__dots {
    display: none;
}

@media (max-width: 900px) {
    .uvu-where__arrows {
        display: none;
    }

    .uvu-where__card-nav {
        display: block;
        position: absolute;
        height: 0;
        z-index: 5;
        pointer-events: none;
    }

    .uvu-where__card-arrow {
        position: absolute;
        top: 0;
        left: 12px;
        width: 44px;
        height: 44px;
        border: 0;
        background-color: var(--uvu-white);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
        transform: translateY(-50%);
        pointer-events: auto;
    }

    .uvu-where__card-arrow--next {
        left: auto;
        right: 12px;
    }

    .uvu-where__card-arrow:hover,
    .uvu-where__card-arrow:active,
    .uvu-where__card-arrow:focus,
    .uvu-where__card-arrow:focus-visible {
        background-color: var(--uvu-white);
    }

    .uvu-where__card-arrow:hover .uvu-arrow__icon,
    .uvu-where__card-arrow:active .uvu-arrow__icon,
    .uvu-where__card-arrow:focus .uvu-arrow__icon,
    .uvu-where__card-arrow:focus-visible .uvu-arrow__icon {
        background-color: var(--uvu-navy);
    }

    .uvu-where__dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 16px 0 0;
    }

    .uvu-where__dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--uvu-navy);
        opacity: 0.25;
        transition: opacity 0.3s ease, width 0.3s ease;
    }

    .uvu-where__dots span.is-active {
        width: 22px;
        border-radius: 4px;
        opacity: 1;
    }
}

/* ============================================================
   FORMS (inc/forms.php)
   The Contact and Report forms had no design. They are built from the
   pieces the design already has: Montserrat, navy text, off-white
   fields with a light-grey hairline, the 16px card radius, and the
   coral pill button with the site's coral-to-navy hover.
   ============================================================ */
.uvu-form {
    max-width: 760px;
    color: var(--uvu-navy);
}

.uvu-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.uvu-form__field {
    margin: 0;
}

.uvu-form__field--wide {
    grid-column: 1 / -1;
}

.uvu-form__field label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.uvu-form__required {
    color: var(--uvu-coral);
}

.uvu-form__field input,
.uvu-form__field select,
.uvu-form__field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 53px;
    padding: 14px 18px;
    border: 1px solid var(--uvu-light-grey);
    border-radius: var(--uvu-r-16);
    background-color: var(--uvu-off-white);
    color: var(--uvu-navy);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.uvu-form__field textarea {
    min-height: 160px;
    resize: vertical;
}

.uvu-form__field input:focus,
.uvu-form__field select:focus,
.uvu-form__field textarea:focus {
    outline: none;
    border-color: var(--uvu-navy);
    box-shadow: 0 0 0 3px var(--uvu-coral);
    background-color: var(--uvu-white);
}

.uvu-form__actions {
    margin: 28px 0 0;
}

/* The footer's SIGN UP and the header's Contact Us, at the hero button's
   height. A link (the report's Download) and a <button> look the same. */
.uvu-form__button,
a.uvu-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 53px;
    padding: 14px 28px;
    box-sizing: border-box;
    border: none;
    border-radius: 50px;
    background: var(--uvu-coral);
    color: var(--uvu-navy);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* !important: GeneratePress paints every button grey on :hover / :focus. */
.uvu-form__button:hover,
.uvu-form__button:focus-visible {
    background: var(--uvu-navy) !important;
    color: var(--uvu-white) !important;
}

.uvu-form__error {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: var(--uvu-r-16);
    background: rgba(250, 128, 114, 0.16);
    font-weight: 600;
}

.uvu-form--sent h3 {
    margin: 0 0 12px;
    color: var(--uvu-navy);
}

.uvu-form--sent p {
    margin: 0 0 12px;
}

/* The field no person fills in. Off the screen rather than display:none,
   because simple robots skip anything switched off. */
.uvu-form__trap {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.uvu-footer__signup {
    position: relative;
}

.uvu-footer__signup-done {
    margin: 12px 0 0;
    font-weight: 600;
}

.uvu-footer__signup-error {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--uvu-coral);
}

@media (max-width: 640px) {
    .uvu-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ============================================================
   INNER PAGES (inc/inner-pages.php and the templates in the theme root)
   No design exists for these. Built from the Partner banner, the case
   study cards' tag and link, the Get Involved navy cards, and the
   site's one corner rule (32 / 24 / 16 tokens, pills for buttons).
   ============================================================ */

/* Banner: the Partner hero's navy and watermark, shorter, left aligned
   to the 1400 frame like every other section's heading. */
.uvu-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #222d54;
    color: var(--uvu-white);
    padding: 200px 0 88px;
}

.uvu-banner__watermark {
    position: absolute;
    z-index: 0;
    right: -6%;
    top: -5px;
    width: 41.7%;
    aspect-ratio: 1602 / 1242;
    background: var(--uvu-white);
    opacity: 0.1;
    -webkit-mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
    pointer-events: none;
}

.uvu-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.uvu-banner__eyebrow {
    color: var(--uvu-coral);
    margin: 0 0 14px;
}

.uvu-banner__title {
    max-width: 900px;
    margin: 0;
    color: var(--uvu-white);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.uvu-banner--long .uvu-banner__title {
    font-size: 40px;
}

.uvu-banner__lede {
    max-width: 680px;
    margin: 20px 0 0;
    font-size: 20px;
    line-height: 1.5;
}

/* The content frame under the banner. GeneratePress's own article box
   and paddings are taken off; sections set their own rhythm. */
.uvu-inner .site-content {
    display: block;
    padding: 0;
}

.uvu-inner .content-area,
.uvu-inner .site-main,
.uvu-inner .inside-article,
.uvu-inner .site-main > article {
    margin: 0 !important;
    padding: 0 !important;
    background: none;
}

.uvu-inner .uvu-inner-area,
.uvu-inner .site-main > article > .inside-article > .entry-content {
    max-width: 1400px;
    margin: 0 auto !important;
    padding: 80px 20px 96px !important;
    box-sizing: border-box;
}

.uvu-inner .entry-content {
    margin-top: 0;
}

/* Reading text: legal pages, articles, the not found page. */
.uvu-prose {
    max-width: 780px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--uvu-navy);
}

.uvu-prose h2 {
    margin: 48px 0 16px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.uvu-prose h3,
.uvu-prose h4 {
    margin: 36px 0 12px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.uvu-prose > :first-child {
    margin-top: 0;
}

.uvu-prose p,
.uvu-prose ul,
.uvu-prose ol {
    margin: 0 0 20px;
}

.uvu-prose a {
    color: var(--uvu-navy);
    text-decoration: underline;
    text-decoration-color: var(--uvu-coral);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.uvu-prose a:hover {
    color: var(--uvu-coral);
}

.uvu-prose img {
    height: auto;
    border-radius: var(--uvu-r-16);
}

.uvu-prose blockquote {
    margin: 32px 0;
    padding: 28px 32px;
    border: 0;
    border-radius: var(--uvu-r-24);
    background: var(--uvu-off-white);
    font-style: normal;
}

.uvu-prose table {
    width: 100%;
    margin: 0 0 28px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.5;
}

.uvu-prose th,
.uvu-prose td {
    padding: 12px 14px;
    border: 1px solid var(--uvu-light-grey);
    text-align: left;
    vertical-align: top;
}

.uvu-prose th {
    background: var(--uvu-off-white);
}

.uvu-prose iframe {
    max-width: 100%;
}

.uvu-prose .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.uvu-prose .gallery-item {
    width: auto !important;
    margin: 0 !important;
}

.uvu-prose .gallery br {
    display: none;
}

.uvu-prose .gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 0 !important;
}

.uvu-prose .wp-caption {
    max-width: 100%;
}

.uvu-prose .wp-caption-text {
    font-size: 14px;
    opacity: 0.8;
}

.uvu-lead {
    font-size: 22px;
    line-height: 1.55;
}

/* Listing filters: pills, the current one filled navy. */
.uvu-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
}

.uvu-filters a {
    padding: 10px 22px;
    border: 1px solid var(--uvu-navy);
    border-radius: 50px;
    color: var(--uvu-navy);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.uvu-filters a:hover,
.uvu-filters a.is-current {
    background: var(--uvu-navy);
    color: var(--uvu-white);
}

/* Cards: a real photograph with the case study tag on it, the words
   below on white. No box, no shadow. */
.uvu-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 32px;
}

.uvu-card {
    display: flex;
    flex-direction: column;
}

.uvu-card__photo {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--uvu-r-24);
    background: var(--uvu-navy);
}

.uvu-card__photo img,
.uvu-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.uvu-card__placeholder {
    background: var(--uvu-white);
    -webkit-mask: url('../images/partner-hero-watermark.webp') 120% 30% / 70% auto no-repeat;
    mask: url('../images/partner-hero-watermark.webp') 120% 30% / 70% auto no-repeat;
    opacity: 0.12;
}

.uvu-card:hover .uvu-card__photo img {
    transform: scale(1.04);
}

.uvu-card__tag {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 7px 16px;
    border-radius: 4px;
    background: var(--uvu-coral);
    color: var(--uvu-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* A white play mark on story cards: the card is a video. */
.uvu-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(29, 41, 81, 0.75);
}

.uvu-card__play::after {
    content: '';
    position: absolute;
    left: 26px;
    top: 21px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--uvu-white);
}

.uvu-card__text {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 22px;
}

.uvu-card__date {
    margin: 0 0 8px;
    color: var(--uvu-coral);
    font-size: 14px;
    font-weight: 600;
}

.uvu-card__title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
}

.uvu-card__title a {
    color: var(--uvu-navy);
    text-decoration: none;
}

.uvu-card__title a:hover {
    color: var(--uvu-coral);
}

.uvu-card__excerpt {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
}

.uvu-card__link {
    margin-top: auto;
    align-self: flex-start;
    color: var(--uvu-navy);
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--uvu-coral);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.uvu-card__link:hover {
    color: var(--uvu-coral);
}

.uvu-listing__empty {
    font-size: 18px;
}

/* Page numbers: navy circles, current one coral. */
.uvu-listing .nav-links {
    margin-top: 64px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.uvu-listing .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 50px;
    color: var(--uvu-navy);
    font-weight: 600;
    text-decoration: none;
}

.uvu-listing a.page-numbers:hover {
    background: var(--uvu-off-white);
}

.uvu-listing .page-numbers.current {
    background: var(--uvu-coral);
    color: var(--uvu-navy);
}

.uvu-listing .screen-reader-text {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* An article or a story. */
.uvu-article__photo {
    max-width: 1000px;
    margin: 0 0 48px;
}

.uvu-article__photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
    border-radius: var(--uvu-r-32);
}

.uvu-article__back {
    margin: 48px 0 0;
}

.uvu-story__video {
    position: relative;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    margin: 0 0 48px;
    overflow: hidden;
    border-radius: var(--uvu-r-32);
    background: var(--uvu-navy);
}

.uvu-story__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Three more, on the off-white band, run to the edges of the screen. */
.uvu-related {
    margin-top: 96px;
    padding: 80px 0 16px;
    background: var(--uvu-off-white);
    box-shadow: 0 0 0 100vmax var(--uvu-off-white);
    clip-path: inset(0 -100vmax);
}

.uvu-related__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.uvu-related__head h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
}

.uvu-related__head .uvu-card__link {
    flex-shrink: 0;
    white-space: nowrap;
}

.uvu-inner .uvu-inner-area:has(.uvu-related) {
    padding-bottom: 80px !important;
}

/* When the grey band is the last thing on the page it runs straight into
   the footer: its wrapper drops its bottom spacing and the band carries it
   inside, so no white strip shows between the band and the footer. */
.uvu-inner .uvu-inner-area:has(> .site-main > .uvu-related:last-child),
.uvu-inner .site-main > article > .inside-article > .entry-content:has(> .uvu-related:last-child) {
    padding-bottom: 0 !important;
}

.uvu-related:last-child {
    padding-bottom: 96px;
}

/* Not found. */
.uvu-notfound__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.uvu-notfound__links a {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--uvu-navy);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.uvu-notfound__links a:hover {
    background: var(--uvu-navy);
    color: var(--uvu-white);
}

/* ---- Sections used inside page content (Contact, Report, coming soon) */

/* A band of off-white that runs to the edges of the screen. */
.uvu-band {
    margin: 80px 0;
    padding: 80px 0;
    background: var(--uvu-off-white);
    box-shadow: 0 0 0 100vmax var(--uvu-off-white);
    clip-path: inset(0 -100vmax);
}

.uvu-band:last-child {
    margin-bottom: -96px;
    padding-bottom: 96px;
}

.uvu-band > :first-child {
    margin-top: 0;
}

.uvu-section-title {
    margin: 0 0 32px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
}

/* Contact: ways to reach UVU, then the form, then the offices. */
.uvu-contact-form {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
}

.uvu-contact-form__intro p {
    font-size: 20px;
    line-height: 1.55;
}

.uvu-contact-form__card {
    padding: 48px;
    border-radius: var(--uvu-r-32);
    background: var(--uvu-white);
}

.uvu-offices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.uvu-office {
    padding: 28px;
    border-radius: var(--uvu-r-24);
    background: var(--uvu-off-white);
}

.uvu-office h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.uvu-office__group {
    margin: 0 0 12px;
    color: var(--uvu-coral);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.uvu-office p {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.55;
}

.uvu-office a {
    color: var(--uvu-navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--uvu-coral);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* Report page. */
.uvu-report-intro {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: start;
}

.uvu-report-intro p {
    font-size: 18px;
    line-height: 1.7;
}

.uvu-report-intro .uvu-lead {
    font-size: 22px;
}

.uvu-report-for {
    padding: 40px;
    border-radius: var(--uvu-r-32);
    background: var(--uvu-navy);
    color: var(--uvu-white);
}

.uvu-report-for h2 {
    margin: 0 0 16px;
    color: var(--uvu-white);
    font-size: 26px;
    font-weight: 700;
}

.uvu-report-for p {
    font-size: 17px;
}

.uvu-report-for a {
    color: var(--uvu-white);
    text-decoration-color: var(--uvu-coral);
}

.uvu-glance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.uvu-glance__item {
    padding: 32px 28px;
    border-radius: var(--uvu-r-24);
    background: var(--uvu-white);
}

.uvu-glance__value {
    display: block;
    margin: 0 0 8px;
    color: var(--uvu-navy);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
}

.uvu-glance__label {
    display: block;
    font-size: 16px;
    line-height: 1.45;
}

.uvu-quote {
    max-width: 980px;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--uvu-navy);
}

.uvu-quote p {
    margin: 0 0 16px;
}

.uvu-report-download {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
}

.uvu-report-download .uvu-contact-form__card {
    background: var(--uvu-white);
}

/* Coming soon. */
.uvu-soon {
    max-width: 780px;
}

.uvu-soon .uvu-lead {
    margin-bottom: 32px;
}

/* ---- Smaller screens */
@media (max-width: 1100px) {
    .uvu-glance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uvu-offices,
    .uvu-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uvu-contact-form,
    .uvu-report-intro,
    .uvu-report-download {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .uvu-banner {
        padding: 150px 0 56px;
    }

    .uvu-banner__inner,
    .uvu-inner .uvu-inner-area,
    .uvu-inner .site-main > article > .inside-article > .entry-content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .uvu-inner .uvu-inner-area,
    .uvu-inner .site-main > article > .inside-article > .entry-content {
        padding-top: 56px !important;
        padding-bottom: 64px !important;
    }

    .uvu-related:last-child {
        padding-bottom: 64px;
    }

    /* Taller band on small screens: draw the photo taller so the sun
       stays above the heading. */
    .uvu-story-cta__bg img {
        height: 170%;
    }

    .uvu-banner__title,
    .uvu-banner--long .uvu-banner__title {
        font-size: clamp(28px, 8.2vw, 36px);
    }

    .uvu-banner__watermark {
        width: 80%;
        right: -30%;
    }

    .uvu-section-title,
    .uvu-related__head h2 {
        font-size: 28px;
    }

    .uvu-band {
        margin: 56px 0;
        padding: 56px 0;
    }

    .uvu-band:last-child {
        margin-bottom: -64px;
        padding-bottom: 64px;
    }



    .uvu-contact-form__card {
        padding: 28px 20px;
    }

    .uvu-quote {
        font-size: 22px;
    }

    .uvu-prose {
        font-size: 17px;
    }
}

@media (max-width: 640px) {
    .uvu-glance,
    .uvu-offices,
    .uvu-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .uvu-cards {
        gap: 40px;
    }

    .uvu-glance__value {
        font-size: 36px;
    }

    .uvu-prose table {
        display: block;
        overflow-x: auto;
    }
}

/* WordPress wraps a group's blocks in an extra box on this theme, which
   would make every grid above see one child. Take the box out of the
   layout for the inner page sections only. */
:is(.uvu-offices, .uvu-office, .uvu-contact-form, .uvu-contact-form__intro, .uvu-contact-form__card, .uvu-band, .uvu-report-intro, .uvu-report-intro__text, .uvu-report-for, .uvu-glance, .uvu-glance__item, .uvu-report-download, .uvu-report-download__intro, .uvu-soon, .uvu-prose) > .wp-block-group__inner-container {
    display: contents;
}

.uvu-soon a:not(.uvu-form__button) {
    color: var(--uvu-navy);
    text-decoration: underline;
    text-decoration-color: var(--uvu-coral);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* ============================================================
   INNER PAGES LIFT (approved 2026-11-18)
   No new photographs. Only the design's own treatments: content
   overlapping the title band, the Get Involved card pattern, the
   Home hero stats row, the Our Story closing banner, corner
   watermarks, a lead item in listings.
   ============================================================ */

/* ---- Pattern at the sides of a grey band. Used as Naomi uses it on
   the heroes: large, and cut only by the page edge and the band's own
   top and bottom (the band clips vertically), never mid-band. */
.uvu-corners {
    position: relative;
    isolation: isolate;
}

.uvu-corners::before,
.uvu-corners::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    width: min(560px, 38vw);
    background-color: var(--uvu-light-grey);
    -webkit-mask: url('../images/uvu-pattern-full.png') no-repeat;
    mask: url('../images/uvu-pattern-full.png') no-repeat;
    -webkit-mask-size: 900px auto;
    mask-size: 900px auto;
    opacity: 0.35;
    pointer-events: none;
}

.uvu-corners::before {
    left: calc(50% - 50vw);
    -webkit-mask-position: right top 40px;
    mask-position: right top 40px;
}

.uvu-corners::after {
    right: calc(50% - 50vw);
    -webkit-mask-position: left top 40px;
    mask-position: left top 40px;
}

@media (max-width: 900px) {
    .uvu-corners::before,
    .uvu-corners::after {
        width: 45vw;
        -webkit-mask-size: 520px auto;
        mask-size: 520px auto;
    }
}

/* ---- Navy cards with the UVU pattern (Home's Get Involved cards) */
.uvu-report-for,
.uvu-office--main {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 10px;
}

.uvu-report-for::after,
.uvu-office--main::after {
    content: '';
    position: absolute;
    z-index: -1;
    right: -18%;
    top: 0;
    width: 70%;
    height: 75%;
    background: url('../images/uvu-pattern-solid.svg') center / cover no-repeat;
    opacity: 0.22;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
    transform-origin: top right;
    pointer-events: none;
}

/* ---- Contact */
.uvu-offices-group {
    margin: 0 0 12px;
    color: var(--uvu-coral);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.uvu-office {
    background: var(--uvu-white);
    border: 1px solid var(--uvu-light-grey);
    border-radius: 10px;
}

.uvu-office--main {
    grid-column: span 2;
    background: var(--uvu-navy);
    border-color: var(--uvu-navy);
    color: var(--uvu-white);
    padding: 40px;
}

.uvu-office--main h3,
.uvu-office--main p,
.uvu-office--main a {
    color: var(--uvu-white);
}

.uvu-office--main h3 {
    font-size: 26px;
}

.uvu-office--main .uvu-office__group {
    color: var(--uvu-coral);
}

/* Centred section heads with the coral eyebrow, as on Home. */
.uvu-head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.uvu-head .uvu-eyebrow {
    margin: 0 0 10px;
    color: var(--uvu-coral);
}

.uvu-head .uvu-section-title {
    margin: 0;
}

.uvu-head p {
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.6;
}

/* ---- Report: figures in the Home hero's stats style, on navy */
.uvu-band.uvu-band--navy {
    background: #222d54;
    box-shadow: 0 0 0 100vmax #222d54;
    color: var(--uvu-white);
}

.uvu-band--navy .uvu-section-title {
    color: var(--uvu-white);
}

.uvu-band--navy .uvu-glance {
    gap: 0;
}

.uvu-band--navy .uvu-glance__item {
    display: block;
    padding: 8px 28px;
    border-radius: 0;
    background: none;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.uvu-band--navy .uvu-glance__item:first-child {
    padding-left: 0;
    border-left: 0;
}

.uvu-band--navy .uvu-glance__value {
    margin: 0 0 10px;
    color: var(--uvu-white);
    font-size: 40px;
    white-space: nowrap;
}

.uvu-band--navy .uvu-glance__label {
    color: var(--uvu-white);
    font-size: 15px;
    line-height: 1.35;
}

/* The quote as a centred statement with a large coral mark. */
.uvu-quote {
    position: relative;
    max-width: 980px;
    margin: 96px auto;
    padding-top: 72px;
    text-align: center;
    font-size: 30px;
    font-style: normal;
}

.uvu-quote p {
    font-style: normal;
}

.uvu-quote::before {
    content: '“';
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%);
    color: var(--uvu-coral);
    font-size: 160px;
    font-weight: 700;
    line-height: 1;
}

/* ---- Listings: the newest item leads */
.uvu-card--lead {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: stretch;
    overflow: hidden;
    border-radius: var(--uvu-r-32);
    background: var(--uvu-navy);
}

.uvu-card--lead .uvu-card__photo {
    aspect-ratio: auto;
    min-height: 440px;
    border-radius: 0;
}

.uvu-card--lead .uvu-card__text {
    justify-content: center;
    padding: 56px;
}

.uvu-card--lead .uvu-card__title {
    font-size: 34px;
    line-height: 1.25;
}

.uvu-card--lead .uvu-card__title a,
.uvu-card--lead .uvu-card__excerpt,
.uvu-card--lead .uvu-card__link {
    color: var(--uvu-white);
}

.uvu-card--lead .uvu-card__excerpt {
    font-size: 18px;
}

.uvu-card--lead .uvu-card__link {
    margin-top: 16px;
}

.uvu-card--lead .uvu-card__title a:hover,
.uvu-card--lead .uvu-card__link:hover {
    color: var(--uvu-coral);
}


/* ---- Coming soon and not found: the latest news underneath */
.uvu-latest {
    margin-top: 96px;
}

.uvu-latest .uvu-related__head {
    margin-bottom: 40px;
}

.uvu-latest .uvu-related__head h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
}

/* ---- Our Story's closing banner, reused before the footer */
.uvu-inner .uvu-story-cta {
    margin: 0;
}

/* ---- Smaller screens */
@media (max-width: 1100px) {
    .uvu-card--lead {
        grid-template-columns: minmax(0, 1fr);
    }

    .uvu-card--lead .uvu-card__photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .uvu-band--navy .uvu-glance {
        gap: 24px 0;
    }

    .uvu-band--navy .uvu-glance__item:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .uvu-office--main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {


    .uvu-banner__title {
        font-size: clamp(30px, 8.6vw, 38px);
    }


    .uvu-card--lead .uvu-card__text {
        padding: 32px 24px;
    }

    .uvu-card--lead .uvu-card__title {
        font-size: 26px;
    }

    .uvu-quote {
        font-size: 22px;
        margin: 64px auto;
    }

    .uvu-quote::before {
        font-size: 110px;
    }
}

@media (max-width: 640px) {
    .uvu-band--navy .uvu-glance__item {
        padding-left: 0;
        border-left: 0;
    }

}

/* ---- Contact: the ways to reach UVU, beside the form.
   One card, one row per contact, hairlines between, links in navy
   without underlines (Chad, 2026-11-18). */
.uvu-reach {
    margin-top: 32px;
    padding: 8px 32px;
    border-radius: 10px;
    background: var(--uvu-white);
}

.uvu-reach__row {
    padding: 22px 0;
    border-top: 1px solid var(--uvu-light-grey);
}

.uvu-reach__row:first-child {
    border-top: 0;
}

.uvu-reach__row h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.uvu-reach__row p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.uvu-reach a {
    color: var(--uvu-navy);
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.uvu-reach a:hover {
    color: var(--uvu-coral);
}

/* Phone numbers never break across lines. */
.uvu-reach a[href^="tel:"] {
    white-space: nowrap;
}

:is(.uvu-reach, .uvu-reach__row, .uvu-head) > .wp-block-group__inner-container {
    display: contents;
}

@media (max-width: 900px) {
    .uvu-reach {
        padding: 4px 22px;
    }
}

/* A page that opens with a grey band starts it right under the title
   band, with no white strip between. */
.uvu-inner .entry-content > .uvu-band:first-child {
    margin-top: -80px;
}

@media (max-width: 900px) {
    .uvu-inner .entry-content > .uvu-band:first-child {
        margin-top: -56px;
    }
}


/* ============================================================
   PHONE AND TABLET HEADER (2026-11-19, Chad: the header was too big on
   tablet and phone, and the menu could be better; modelled on the Nexeva
   build's small-screen menu).
   - Smaller logo, so the bar is 72px tall instead of 112px.
   - The menu button is a solid rounded square with weight of its own,
     the same in every state.
   - The menu opens as a white card hanging under the button, held to a
     sensible width and pinned to the right, not a full-width navy sheet.
     Links are navy with hairlines between them, the current page coral,
     and Contact Us is a full-width button at the bottom.
   - Opening it never moves the page underneath.
   ============================================================ */
@media (max-width: 900px) {
    :root {
        --uvu-header-h: 72px;
    }

    #masthead .inside-header.grid-container {
        padding: 14px 20px !important;
        min-height: var(--uvu-header-h);
        box-sizing: border-box;
        align-items: center;
    }

    #masthead .site-logo img {
        max-height: 44px;
    }

    /* The nav keeps no height of its own in the row, so opening the card
       cannot push anything down. */
    #masthead #site-navigation {
        flex: 0 0 100%;
        height: 0;
        margin: 0;
        padding: 0;
    }

    #mobile-menu-control-wrapper .menu-toggle,
    #mobile-menu-control-wrapper .menu-toggle:hover,
    #mobile-menu-control-wrapper .menu-toggle:focus,
    #mobile-menu-control-wrapper .menu-toggle:active {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
        color: var(--uvu-white);
    }

    #masthead.is-open #mobile-menu-control-wrapper .menu-toggle {
        background: var(--uvu-coral);
        border-color: var(--uvu-coral);
    }

    #mobile-menu-control-wrapper .gp-icon svg {
        width: 20px;
        height: 20px;
    }

    #primary-menu.main-nav {
        top: calc(100% + 8px);
        left: auto;
        right: 20px;
        width: min(320px, calc(100vw - 40px));
        padding: 8px 24px 24px;
        background: var(--uvu-white);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(16, 24, 52, 0.28);
        z-index: 60;
    }

    #primary-menu .menu {
        align-items: stretch;
        gap: 0;
    }

    #primary-menu .menu > li {
        border-bottom: 1px solid var(--uvu-light-grey);
    }

    /* The parent theme gives menu links a 60px line height; held off here. */
    #masthead #primary-menu .menu > li > a {
        display: block;
        padding: 13px 0;
        line-height: 1.4;
        color: var(--uvu-navy);
        font-size: 17px;
    }

    #primary-menu .menu > li:not(.uvu-nav-contact) > a::after {
        content: none;
    }

    #primary-menu .menu > li:not(.uvu-nav-contact) > a:hover,
    #primary-menu .menu > li:not(.uvu-nav-contact) > a:focus-visible {
        color: var(--uvu-coral);
    }

    #masthead #primary-menu .menu > li.current-menu-item > a {
        color: var(--uvu-coral);
    }

    #primary-menu .menu > li.uvu-nav-contact {
        border-bottom: 0;
        margin-top: 20px;
    }

    #masthead #primary-menu .uvu-nav-contact a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        height: 50px;
        padding: 0 20px;
        line-height: 1;
        text-align: center;
        color: var(--uvu-white) !important;
    }
}

@media (max-width: 900px) and (max-height: 620px) {
    :root {
        --uvu-header-h: 60px;
    }

    #masthead .inside-header.grid-container {
        padding: 8px 20px !important;
    }

    #masthead .site-logo img {
        max-height: 40px;
    }
}

/* ============================================================
   ONE SPACING SCALE ON TABLET AND PHONE (2026-11-19, Chad: gaps on phone
   were giant, e.g. 119px between the Get Involved cards; spacing must be
   consistent and make sense at every size).
   Between sections: 72px tablet, 56px phone. Between cards: 24px tablet,
   20px phone. Heading to its text: about 20px. Desktop is unchanged.
   ============================================================ */
@media (max-width: 900px) {
    /* Get Involved: the desktop 119px gap and 400px card floor were kept on
       small screens. */
    .uvu-cta-cards {
        gap: 24px;
    }

    .uvu-cta-card {
        min-height: 300px;
    }

    .uvu-cta-band {
        padding-top: 48px;
    }

    /* Inner title bands: the 150px top was room for the header laid over
       the band on desktop; here the header sits above the band. */
    .uvu-banner {
        padding: 56px 0;
    }

    .uvu-cards {
        row-gap: 40px;
    }

    .uvu-related {
        margin-top: 72px;
    }
}

/* Where columns stack, the heading's own 20px margin is the gap to its
   text; the columns' gap would add another 34px. */
@media (max-width: 781px) {
    .uvu-who .wp-block-columns,
    .uvu-where .wp-block-columns {
        row-gap: 0;
    }
}

@media (max-width: 600px) {
    .uvu-cta-cards {
        gap: 20px;
    }

    .uvu-cta-card {
        min-height: 260px;
    }

    .uvu-cta-band {
        padding-top: 40px;
        padding-bottom: 56px;
    }

    .uvu-partners__logos {
        margin-bottom: 40px;
    }

    .uvu-banner {
        padding: 40px 0 44px;
    }

    .uvu-cards {
        row-gap: 32px;
    }

    .uvu-related {
        margin-top: 56px;
        padding-top: 56px;
    }

    .uvu-section__lede {
        margin-bottom: 32px;
    }

    .uvu-head {
        margin-bottom: 32px;
    }

    .uvu-belief,
    .uvu-people.uvu-people--board,
    .uvu-story .uvu-people.uvu-people--board {
        margin-top: 48px !important;
    }

    .uvu-quote {
        margin: 48px auto;
    }
}

/* ============================================================
   TABLET AND PHONE POLISH (2026-11-19, Chad's second review of the
   small-screen header and layout).
   - The menu card lines up with the button's right edge on tablet, and
     runs the full content width on phone so it sits centred.
   - The burger and the cross sit dead centre in the button.
   - Which icon shows follows our own open state only. The parent theme's
     menu script keeps a separate state of its own, and when the two
     disagreed (after a tap outside the menu) both icons were hidden.
   - Title areas over a photo are left aligned on tablet and phone, with
     the wording held to the left half so it never covers the subject.
   - The footer on tablet uses two columns and keeps its text to a
     readable width instead of running edge to edge.
   ============================================================ */
@media (max-width: 900px) {
    #primary-menu.main-nav {
        right: 0;
    }

    #mobile-menu-control-wrapper .menu-toggle .gp-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        line-height: 0;
    }

    #mobile-menu-control-wrapper .menu-toggle .gp-icon svg {
        position: static;
        top: 0;
        margin: 0;
    }

    #masthead:not(.is-open) #mobile-menu-control-wrapper .gp-icon svg:first-child,
    #masthead.is-open #mobile-menu-control-wrapper .gp-icon svg:last-child {
        display: block !important;
    }

    #masthead:not(.is-open) #mobile-menu-control-wrapper .gp-icon svg:last-child,
    #masthead.is-open #mobile-menu-control-wrapper .gp-icon svg:first-child {
        display: none !important;
    }

    /* Partner title area: left aligned like every other title area. */
    .uvu-partner-hero,
    .uvu-partner-hero__content .uvu-eyebrow,
    .uvu-partner-hero__content .uvu-partner-hero__title.has-text-align-center {
        text-align: left;
    }

    .uvu-partner-hero__facts {
        align-items: flex-start;
    }

    .uvu-partner-hero__fact:nth-child(n) {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 600px) {
    #primary-menu.main-nav {
        left: 0;
        right: 0;
        width: auto;
    }
}

/* Tablet only: the photo banners keep their wording on the left half and
   the photo leans so its subject sits on the right half. */
@media (min-width: 768px) and (max-width: 900px) {
    .uvu-hero__title,
    .uvu-hero__subhead,
    .uvu-hero__desc {
        max-width: 420px;
    }

    .uvu-hero__title {
        max-width: 480px;
        font-size: 48px;
    }

    .uvu-story-hero__title,
    .uvu-story-hero__sub,
    .uvu-partner-hero__title {
        max-width: 440px;
    }

    .uvu-partner-hero__content,
    .uvu-partner-hero__facts {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 20px;
    }

    /* Lean each photo so its subject sits on the right half, clear of the
       wording. */
    .uvu-hero__slide {
        background-position: 30% center;
    }

    .uvu-story-hero__bg {
        background-position: 62% 16.5%;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .uvu-footer__columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
        row-gap: 40px;
    }

    .uvu-footer__col--brand,
    .uvu-footer__columns > .uvu-footer__col:last-child {
        grid-column: 1 / -1;
        max-width: 560px;
    }
}

/* ============================================================
   INNER BANNER WITH A PHOTO (2026-11-19, the designers' banner photos
   for News & Insights and Contact).
   A page whose featured image is set gets it as its banner photo, in the
   same treatment as the Our Story and Partner banners: the photo blended
   into the navy at 50% on desktop and tablet, the wording on the left
   with the people on the right; on phone a photo card above a navy card.
   Pages with no featured image keep the plain navy banner.
   ============================================================ */
.uvu-banner--photo {
    display: flex;
    align-items: center;
    min-height: 616px;
    padding: 200px 0 64px;
    box-sizing: border-box;
}

.uvu-banner--photo .uvu-banner__inner {
    width: 100%;
}

.uvu-banner--photo .uvu-banner__watermark {
    right: -18%;
    width: 37.2%;
}

.uvu-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
    mix-blend-mode: hard-light;
}

.uvu-banner__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.uvu-banner--photo .uvu-banner__title,
.uvu-banner--photo .uvu-banner__lede {
    max-width: 620px;
}

@media (min-width: 768px) and (max-width: 900px) {
    .uvu-banner--photo {
        min-height: 420px;
        padding: 56px 0;
    }

    .uvu-banner--photo .uvu-banner__title,
    .uvu-banner--photo .uvu-banner__lede {
        max-width: 400px;
    }

    /* Show more of the photo's left so the people sit right of the wording. */
    .uvu-banner--photo .uvu-banner__photo {
        object-position: 76% center;
    }
}

@media (max-width: 767px) {
    .uvu-banner.uvu-banner--photo {
        display: block;
        min-height: 0;
        padding: 16px 20px 28px;
        background: none;
    }

    .uvu-banner--photo .uvu-banner__bg {
        position: relative;
        inset: auto;
        height: clamp(210px, 62vw, 300px);
        border-radius: var(--uvu-r-32);
        overflow: hidden;
        opacity: 1;
        mix-blend-mode: normal;
        background: var(--uvu-navy);
    }

    .uvu-banner--photo .uvu-banner__photo {
        object-position: 88% center;
    }

    .uvu-banner--photo .uvu-banner__watermark {
        display: none;
    }

    .uvu-banner--photo .uvu-banner__bg::after {
        content: '';
        position: absolute;
        top: -22px;
        right: -46%;
        width: 78%;
        aspect-ratio: 1602 / 1242;
        background: var(--uvu-white);
        opacity: 0.1;
        -webkit-mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
        mask: url('../images/partner-hero-watermark.webp') center / 100% 100% no-repeat;
        clip-path: inset(0 0 1.48% 10.15%);
        pointer-events: none;
    }

    .uvu-banner--photo .uvu-banner__inner {
        margin-top: 12px;
        padding: 26px 24px 30px !important;
        background: var(--uvu-navy);
        border-radius: var(--uvu-r-32);
    }

    .uvu-banner--photo .uvu-banner__inner::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        margin: 0 0 18px;
        border-radius: 2px;
        background: var(--uvu-coral);
    }
}
