/* =========================================================
   SHAHIDI WA MAJI — site UI
   Loaded after Bootstrap + style.css
   Colour roles:
     deep   (#1A4795) identity  — brand blocks, badges, strips, panels
     action (#06aef7) action    — CTAs, kicker rules, accents, small icons
     teal / slate               — tertiary, only inside multi-colour sets
     ink                        — dark surfaces (top bar, footer, overlays)
   ========================================================= */
:root {
    --c-deep: #1A4795;
    --c-deep-2: #143a7c;
    --c-action: #06aef7;
    --c-teal: #0F9BA8;
    --c-slate: #5B6B80;
    --c-ink: #0e2340;
    --c-ink-2: #0A1A31;
    --c-text: #5f6b7a;
    --c-tint: #EEF6FB;
    --c-line: #e3eaf1;

    --ff-head: 'Merriweather', Georgia, 'Times New Roman', serif;
    --ff-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --shadow-soft: 0 10px 60px rgba(14, 35, 64, .08);
    --shadow-card: 0 24px 50px -22px rgba(10, 26, 49, .35);
    --brand-w: 230px;

    /* legacy aliases (contact page) */
    --brand-deep: var(--c-deep);
    --brand-accent: var(--c-action);
    --brand-soft: var(--c-tint);
    --ink: var(--c-ink);
    --radius-lg: 10px;
    --radius-md: 8px;
}

/* ---------- Base typography ---------- */
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-family: var(--ff-body);
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--c-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-head);
    font-weight: 700;
    color: var(--c-ink);
    line-height: 1.3;
}

.tone-teal   { --tone: var(--c-teal);   --tone-ink: #fff; }
.tone-action { --tone: var(--c-action); --tone-ink: var(--c-ink); }
.tone-deep   { --tone: var(--c-deep);   --tone-ink: #fff; }
.tone-slate  { --tone: var(--c-slate);  --tone-ink: #fff; }

.text-deep { color: var(--c-deep); font-weight: 700; }
.small-text { font-size: 14.5px; line-height: 1.75; }

/* ---------- Buttons ---------- */
.btn-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 54px;
    padding: 0 2rem;
    border: 0;
    border-radius: 5px;
    font-family: var(--ff-body);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.btn-theme:hover { transform: translateY(-2px); }
.btn-theme:focus-visible { outline: 3px solid rgba(6, 174, 247, .55); outline-offset: 2px; }

.btn-action { background: var(--c-action); color: var(--c-ink); }
.btn-action:hover { background: var(--c-deep); color: #fff; }

.btn-deep { background: var(--c-deep); color: #fff; }
.btn-deep:hover { background: var(--c-action); color: var(--c-ink); }

.btn-soft { background: #eef2f6; color: var(--c-ink); }
.btn-soft:hover { background: var(--c-deep); color: #fff; }

/* ---------- Section furniture ---------- */
.sec { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }

.kicker {
    position: relative;
    display: block;
    padding-top: 16px;
    margin-bottom: .6rem;
    font-size: 15px;
    line-height: 1.4;
    color: var(--c-text);
}

.kicker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--c-action);
}

.kicker-center::before { left: 50%; transform: translateX(-50%); }
.kicker-light { color: rgba(255, 255, 255, .75); }

.sec-title {
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--c-ink);
}

.card-title-serif {
    font-family: var(--ff-head);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: .75rem;
}

.card-title-serif a { color: var(--c-ink); text-decoration: none; transition: color .2s ease; }
.card-title-serif a:hover { color: var(--c-deep); }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1rem;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--c-text);
}

.meta i { color: var(--c-action); margin-right: .4rem; }

/* Halftone dot texture */
.dots {
    position: absolute;
    width: 380px;
    height: 380px;
    pointer-events: none;
    background-image: radial-gradient(rgba(26, 71, 149, .2) 1.3px, transparent 1.6px);
    background-size: 12px 12px;
}

.dots-right {
    top: 0;
    right: 0;
    -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 70%);
    mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 70%);
}

.dots-left {
    bottom: 0;
    left: 0;
    -webkit-mask-image: radial-gradient(circle at 0 100%, #000 0, transparent 70%);
    mask-image: radial-gradient(circle at 0 100%, #000 0, transparent 70%);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 1100;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--c-deep), var(--c-action));
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--c-ink-2);
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
    line-height: 1.4;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-left: clamp(16px, 2.5vw, 40px);
}

.topbar-info {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 12px 0;
    min-width: 0;
}

.topbar-info li { white-space: nowrap; }

@media (max-width: 1199.98px) {
    .topbar-info li.topbar-email { display: none; }
}

.topbar-info i { color: var(--c-action); margin-right: .5rem; }

.topbar a { color: inherit; text-decoration: none; transition: color .2s ease; }
.topbar a:hover { color: #fff; }

.topbar-end { display: flex; align-items: stretch; }

.topbar-social {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 0 1.75rem;
    background: #07111f;
}

.topbar-social a { color: #fff; font-size: 13px; }
.topbar-social a:hover { color: var(--c-action); }

.topbar-link { display: flex; align-items: center; padding: 0 1.75rem; white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 0 rgba(14, 35, 64, .06);
    transition: box-shadow .3s ease;
}

.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(14, 35, 64, .1); }

.site-header .navbar {
    min-height: 96px;
    align-items: stretch;
}

.brand-block {
    position: relative;
    z-index: 2;
    flex: 0 0 var(--brand-w);
    width: var(--brand-w);
    height: 122px;
    margin-bottom: -26px;
    padding: 8px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-deep);
    transition: height .3s ease, margin .3s ease;
}

.brand-block img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-header.is-scrolled .brand-block {
    height: 96px;
    margin-bottom: 0;
}

.site-header .navbar-toggler {
    border: 0;
    margin-right: 12px;
    padding: 4px 8px;
    font-size: 30px;
    line-height: 1;
    color: var(--c-ink);
    align-self: center;
}

.site-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(6, 174, 247, .35); }

.site-header .main-nav > li {
    padding: 0;
    font-size: inherit;
}

.site-header .main-nav .nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 clamp(9px, 1vw, 17px);
    font-family: var(--ff-body);
    font-size: 15.5px;
    font-weight: 500;
    color: var(--c-ink);
    white-space: nowrap;
    transition: color .2s ease;
}

.site-header .main-nav .nav-link:hover,
.site-header .main-nav .nav-link.active,
.site-header .main-nav .nav-item.show > .nav-link {
    color: var(--c-deep);
}

.site-header .main-nav .nav-link.active { font-weight: 700; }

.site-header .dropdown-toggle::after {
    content: "\F282";
    font-family: 'bootstrap-icons';
    border: 0;
    margin-left: .4rem;
    font-size: 10px;
    vertical-align: 0;
}

.site-header .dropdown-menu {
    min-width: 240px;
    margin-top: 0;
    padding: .6rem 0;
    border: 0;
    border-top: 3px solid var(--c-action);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 20px 40px rgba(14, 35, 64, .14);
}

.site-header .dropdown-item {
    padding: .55rem 1.4rem;
    font-size: 14.5px;
    color: var(--c-ink);
    white-space: normal;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    background: var(--c-tint);
    color: var(--c-deep);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

/* Full nav from 1200px up; hamburger below that so items never wrap or overflow */
@media (min-width: 1200px) {
    .site-header .navbar-collapse {
        align-self: stretch;
        padding: 0 clamp(16px, 2.5vw, 40px);
    }

    .site-header .main-nav {
        align-self: stretch;
        margin-left: clamp(0px, 1vw, 16px);
    }

    .site-header .dropdownBtn:hover > .dropdown-menu {
        display: block;
        top: 100%;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    :root { --brand-w: 200px; }
    .site-header .main-nav .nav-link { font-size: 15px; padding: 0 clamp(8px, .85vw, 14px); }
}

@media (max-width: 1199.98px) {
    .site-header .navbar { min-height: 72px; }

    .brand-block,
    .site-header.is-scrolled .brand-block {
        flex-basis: 160px;
        width: 160px;
        height: 72px;
        margin-bottom: 0;
        padding: 6px 16px;
    }

    .site-header .navbar-collapse {
        flex-basis: 100%;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: .5rem 1rem 1.25rem;
        border-top: 1px solid var(--c-line);
    }

    .site-header .main-nav .nav-link { padding: .7rem 0; }

    .site-header .dropdown-menu {
        border-top: 0;
        box-shadow: none;
        padding: 0 0 .5rem .75rem;
    }

    .header-actions { margin: .75rem 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; }

.hero-slide {
    position: relative;
    height: clamp(520px, 82vh, 820px);
    overflow: hidden;
}

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(10, 26, 49, .86) 0%, rgba(10, 26, 49, .6) 42%, rgba(10, 26, 49, .12) 82%);
}

.hero-copy {
    max-width: 700px;
    padding-left: clamp(0px, 6vw, 90px);
    color: #fff;
}

.hero-title {
    font-family: var(--ff-body);
    font-weight: 800;
    font-size: clamp(2.5rem, 5.6vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -.035em;
    color: #fff;
    margin-bottom: 1.4rem;
}

.hero-title .accent { color: var(--c-action); }

.hero-body {
    max-width: 540px;
    margin-bottom: 2.2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .9);
}

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


.hero .splide__arrow {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, .16);
    opacity: 1;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background-color .25s ease;
}

.hero .splide__arrow--prev { left: 2.5rem; }
.hero .splide__arrow--next { right: 2.5rem; }

.hero .splide__arrow svg { fill: #fff; width: 16px; height: 16px; }
.hero .splide__arrow:hover:not(:disabled) { background: var(--c-action); }
.hero .splide__arrow:hover:not(:disabled) svg { fill: var(--c-ink); }

@media (max-width: 991.98px) {
    .hero .splide__arrows { display: none; }
}

@media (max-width: 767.98px) {
    .hero-overlay {
        align-items: flex-end;
        padding-bottom: 3.5rem;
        background: linear-gradient(180deg, rgba(10, 26, 49, .35) 0%, rgba(10, 26, 49, .88) 100%);
    }
}

/* ---------- 2. Approach pillars ---------- */
.pillars { padding: clamp(4.5rem, 8vw, 7rem) 0 clamp(4.5rem, 7vw, 6rem); scroll-margin-top: 90px; }
.pillars .container { max-width: 1200px; }

.pillar {
    position: relative;
    height: calc(100% - 70px);
    margin-top: 70px;
    padding: 8px 8px 0;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--tone) 0%, var(--tone) 30%, transparent 85%);
}

.pillar-photo {
    position: absolute;
    top: -66px;
    left: 50%;
    z-index: 2;
    width: 132px;
    height: 132px;
    transform: translateX(-50%);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(14, 35, 64, .2);
}

.pillar-card {
    position: relative;
    height: 100%;
    padding: 86px 2rem 3.6rem;
    border-radius: 6px;
    background: #fff;
    text-align: center;
    box-shadow: 0 30px 60px -24px rgba(14, 35, 64, .16);
}

.pillar-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: .9rem;
}

.pillar-text { font-size: 15px; margin: 0; }

.pillar-arrow {
    position: absolute;
    bottom: -26px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #eef2f6;
    color: var(--c-ink);
    text-decoration: none;
    box-shadow: 0 0 0 6px #fff;
    transition: background-color .25s ease, color .25s ease;
}

.pillar-arrow:hover { background: var(--tone); color: var(--tone-ink); }

/* ---------- 3. About ---------- */
.about { position: relative; overflow: hidden; }

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 3rem;
    width: 44%;
    background: var(--c-tint);
    border-top-right-radius: 320px;
}

.about-visual {
    position: relative;
    max-width: 540px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.about-photo-lg {
    position: absolute;
    top: 0;
    right: 0;
    width: 86%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.about-ring {
    position: absolute;
    top: 9%;
    left: 0;
    z-index: 2;
    width: 78%;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--c-action);
    border-radius: 50%;
    pointer-events: none;
}

.about-photo-sm {
    position: absolute;
    bottom: 0;
    left: 4%;
    z-index: 3;
    width: 40%;
    aspect-ratio: 1 / 1;
    border: 8px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 40px rgba(14, 35, 64, .18);
}

.about-badge {
    position: absolute;
    top: 22%;
    left: 5%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 8px;
    background: var(--c-deep);
    color: #fff;
    font-size: 34px;
    box-shadow: 0 16px 34px rgba(26, 71, 149, .35);
}

.about-badge::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 18px;
    border-top: 16px solid var(--c-deep);
    border-right: 16px solid transparent;
}

.callout {
    padding: 1.1rem 1.5rem;
    border-left: 4px solid var(--c-action);
    border-radius: 0 6px 6px 0;
    background: var(--c-tint);
    color: var(--c-ink);
    font-weight: 500;
    line-height: 1.65;
}

.check-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 17px;
    margin-bottom: .5rem;
}

.check-title i { color: var(--c-deep); font-size: 18px; }

@media (max-width: 991.98px) {
    .about::before { width: 100%; bottom: auto; height: 46%; border-top-right-radius: 180px; }
}

/* ---------- 4. Impact ---------- */
.impact { position: relative; overflow: hidden; isolation: isolate; }

.impact-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
}

.impact-counters {
    padding: clamp(4.5rem, 7vw, 6rem) 0 clamp(4rem, 6vw, 5rem);
    background: rgba(255, 255, 255, .9);
}

.counter-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin-bottom: 1.6rem;
    border-radius: 50%;
    background: var(--tone);
    color: var(--tone-ink);
    font-size: 44px;
}

.counter-drop {
    position: absolute;
    top: -6px;
    left: -4px;
    font-size: 30px;
    line-height: 1;
    color: var(--tone);
    transform: rotate(-18deg);
    filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff);
}

.counter-figure {
    margin-bottom: .6rem;
    font-family: var(--ff-head);
    font-weight: 900;
    font-size: clamp(2.3rem, 4vw, 3.25rem);
    line-height: 1;
    color: var(--c-ink);
}

.counter-label {
    max-width: 230px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
}

.impact-cta {
    padding: clamp(4.5rem, 8vw, 6.5rem) 0;
    background: rgba(10, 26, 49, .82);
}

.scribble { position: relative; display: inline-block; }

.scribble::after {
    content: '';
    position: absolute;
    inset: -22% -16%;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 80' preserveAspectRatio='none'%3E%3Cpath d='M24 46C18 18 176 8 188 36c10 26-120 44-166 18C6 44 40 20 92 15' fill='none' stroke='%2306aef7' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- 5. Challenge ---------- */
.challenge { position: relative; overflow: hidden; }


.challenge-panel {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 240'%3E%3Cg fill='white' fill-opacity='.08'%3E%3Cpath d='M50 0C50 0 12 46 12 70a38 38 0 0 0 76 0C88 46 50 0 50 0z' transform='translate(-10 80) scale(1.7)'/%3E%3Cpath d='M50 0C50 0 12 46 12 70a38 38 0 0 0 76 0C88 46 50 0 50 0z' transform='translate(150 128) scale(1.2)'/%3E%3Cpath d='M50 0C50 0 12 46 12 70a38 38 0 0 0 76 0C88 46 50 0 50 0z' transform='translate(270 50) scale(2.1)'/%3E%3Cpath d='M50 0C50 0 12 46 12 70a38 38 0 0 0 76 0C88 46 50 0 50 0z' transform='translate(470 118) scale(1.4)'/%3E%3Cpath d='M50 0C50 0 12 46 12 70a38 38 0 0 0 76 0C88 46 50 0 50 0z' transform='translate(120 40) scale(.55)'/%3E%3Cpath d='M50 0C50 0 12 46 12 70a38 38 0 0 0 76 0C88 46 50 0 50 0z' transform='translate(430 40) scale(.6)'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: right bottom;
    background-size: 600px auto;
}

.challenge-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 62%;
    background-color: var(--c-deep);
    border-bottom-left-radius: 12px;
}

.statement { display: flex; align-items: center; gap: 1.1rem; }

.statement-icon {
    position: relative;
    z-index: 0;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-size: 40px;
    color: var(--c-deep);
}

.statement-icon::before {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -4px;
    z-index: -1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(6, 174, 247, .16);
}

.statement-text {
    margin: 0;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.45;
    color: var(--c-ink);
}

.chal-card {
    display: grid;
    grid-template-columns: 52px 150px 1fr;
    min-height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.chal-card + .chal-card { margin-top: 1.6rem; }

.chal-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    background: var(--c-deep);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.chal-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tone);
}

.chal-media img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.chal-media.tone-action img { filter: brightness(0) opacity(.8); }

.chal-body { padding: 1.35rem 1.75rem; }

.chal-figure {
    margin: .3rem 0 .35rem;
    font-size: 24px;
    line-height: 1.25;
}

.chal-body p { font-size: 15px; line-height: 1.65; }

@media (max-width: 991.98px) {
    .challenge-panel { display: none; }

    .challenge-list {
        padding: 1.5rem 1rem;
        border-radius: 12px;
        background-color: var(--c-ink);
    }
}

@media (max-width: 575.98px) {
    .chal-card { grid-template-columns: 40px 84px 1fr; }
    .chal-media img { width: 52px; height: 52px; }
    .chal-body { padding: 1rem 1.1rem; }
    .chal-figure { font-size: 20px; }
}

/* ---------- 6. Projects ---------- */
.projects { padding-top: clamp(4rem, 7vw, 6rem); }

.proj-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.proj-media {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
}

.proj-media img,
.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.proj-media:hover img,
.news-media:hover img { transform: scale(1.05); }

.proj-media::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 12px solid #fff;
}

.pill {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--c-action);
    color: var(--c-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.proj-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.6rem 1.75rem 1.9rem;
    text-align: center;
}

.proj-body .btn-theme { margin-top: auto; min-height: 50px; }

/* ---------- Partner band ---------- */
.partner-band {
    position: relative;
    padding: 2.4rem 0;
    overflow: hidden;
    background: linear-gradient(90deg, var(--c-deep) 0%, #1170c4 55%, var(--c-action) 100%);
}

.partner-marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.partner-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: partner-scroll 50s linear infinite;
}

.partner-marquee:hover .partner-track { animation-play-state: paused; }

@keyframes partner-scroll {
    to { transform: translateX(calc(-50% - 11px)); }
}

.partner-chip {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 84px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #fff;
}

.partner-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
    .partner-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; padding: 0 1rem; }
    .partner-chip[aria-hidden="true"] { display: none; }
}

/* ---------- 7. News ---------- */
.news { position: relative; overflow: hidden; }

/* pale brand shape, mirroring the About section */
.news::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    background: var(--c-tint);
    border-top-left-radius: 320px;
}

.news .container { position: relative; }

@media (max-width: 991.98px) {
    .news::before { width: 100%; border-top-left-radius: 180px; }
}

.news-card { height: 100%; display: flex; flex-direction: column; }

.news-media {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

.date-badge {
    position: absolute;
    right: 16px;
    bottom: 52px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 54px;
    padding: 8px 0 7px;
    border-radius: 6px;
    background: var(--c-deep);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
}

.date-badge strong { font-family: var(--ff-head); font-size: 20px; font-weight: 900; }

.news-body {
    position: relative;
    z-index: 3;
    flex: 1;
    margin: -40px 18px 0;
    padding: 1.4rem 1.6rem 1.1rem;
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.news-body .meta { margin-bottom: .6rem; }

.news-body .card-title-serif {
    padding-bottom: 1.1rem;
    margin-bottom: .9rem;
    border-bottom: 1px solid var(--c-line);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-ink);
    text-decoration: none;
}

.read-more i { font-size: 10px; color: var(--c-deep); }
.read-more:hover { color: var(--c-deep); }

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem;
    background: var(--c-ink);
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
}

/* faint landscape silhouette texture */
.site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 34vw;
    max-height: 560px;
    background: url('../img/footer-silhouette-brand.png') center bottom / 100% auto no-repeat;
    opacity: .28;
    pointer-events: none;
}

.footer-logo { width: 190px; height: auto; margin-bottom: 1.25rem; }

.footer-blurb {
    max-width: 320px;
    margin-bottom: 1.6rem;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 16.5px;
    line-height: 1.6;
    color: #fff;
}

.footer-heading {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.5rem;
    font-size: 18px;
    color: #fff;
}

.footer-heading::after {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--c-action);
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li { margin-bottom: .55rem; }

.site-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .8rem;
    line-height: 1.6;
}

.footer-contact i { margin-top: .2rem; color: var(--c-action); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: clamp(3rem, 5vw, 4.5rem);
    padding: 1.2rem 1.75rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, .28);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal li { white-space: nowrap; }

.footer-vision {
    font-size: 14.5px;
    color: var(--c-action);
}

.footer-legal li + li::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 1.1rem;
    border-radius: 50%;
    background: var(--c-action);
    vertical-align: middle;
}

.footer-social { display: flex; gap: .5rem; }

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 14px;
    transition: background-color .2s ease, color .2s ease;
}

.site-footer .footer-social a:hover { background: var(--c-action); color: var(--c-ink); }

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: var(--c-ink);
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(10, 26, 49, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s, background-color .2s ease;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--c-action); color: var(--c-ink); }

@media (prefers-reduced-motion: reduce) {
    .btn-theme:hover { transform: none; }
    .proj-media:hover img,
    .news-media:hover img { transform: none; }
}


/* =========================================================
   INNER PAGES
   ========================================================= */

/* ---------- Page banner ---------- */
.page-banner {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(280px, 34vw, 420px);
    padding: 4rem 0;
    background-color: var(--c-ink);
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 26, 49, .88) 0%, rgba(10, 26, 49, .62) 45%, rgba(10, 26, 49, .3) 100%);
}

.page-banner .container { padding-left: clamp(12px, 4vw, 60px); }

.page-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    margin: 0 0 .75rem;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, .8);
}

.page-crumbs li + li::before { content: '/'; margin: 0 .45rem; color: rgba(255, 255, 255, .55); }
.page-crumbs a { color: #fff; text-decoration: none; }
.page-crumbs a:hover { color: var(--c-action); }
.page-crumbs [aria-current] {
    max-width: 40ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-banner-title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    color: #fff;
}

/* ---------- Shared inner-page pieces ---------- */
.lead-intro {
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.6;
    color: var(--c-ink);
}

.empty-state {
    margin: 0;
    padding: 2.5rem 1rem;
    border-radius: 8px;
    background: var(--c-tint);
    color: var(--c-ink);
    text-align: center;
    font-weight: 500;
}

/* Photo with an accent bar down its left edge */
.framed-photo {
    position: relative;
    margin-left: 14px;
}

.framed-photo::before {
    content: '';
    position: absolute;
    top: 6%;
    bottom: 6%;
    left: -14px;
    width: 14px;
    border-radius: 8px 0 0 8px;
    background: var(--tone, var(--c-action));
}

.framed-photo img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 7 / 8;
    object-fit: cover;
    border-radius: 8px;
}

.framed-photo-portrait img { aspect-ratio: 4 / 5; object-position: top; }

.check-list { list-style: none; margin: 0; padding: 0; }

.check-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: .7rem;
    line-height: 1.7;
}

.check-list li::before {
    content: "\F26A";
    position: absolute;
    top: .1rem;
    left: 0;
    font-family: 'bootstrap-icons';
    color: var(--tone, var(--c-deep));
}

/* ---------- Dark statement band (about: vision) ---------- */
.statement-band {
    position: relative;
    isolation: isolate;
    padding: clamp(4.5rem, 8vw, 6.5rem) 0;
    background: var(--c-ink);
}

.statement-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--band-img) center / cover no-repeat;
    filter: grayscale(1);
}

.statement-band::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(10, 26, 49, .82);
}

.statement-band-text {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .82);
}

/* ---------- Split section: full-bleed photo + tinted text side ---------- */
.split-tint {
    position: relative;
    background: var(--c-tint);
}

.split-tint-media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
}

.split-tint-media::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 10px;
    background: var(--c-action);
}

.split-tint-media img { width: 100%; height: 100%; object-fit: cover; }

.split-tint-body { padding: clamp(4.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 4rem); }

@media (max-width: 991.98px) {
    .split-tint-media { position: relative; width: 100%; height: 320px; }
    .split-tint-media::after { top: auto; left: 0; width: auto; height: 8px; }
    .split-tint-body { padding-left: 0; }
}

/* Values accordion */
.values-accordion .accordion-item {
    margin-bottom: .75rem;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(14, 35, 64, .06);
}

.values-accordion .accordion-button {
    gap: .9rem;
    padding: .9rem 1.25rem;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 17px;
    color: var(--c-ink);
    background: #fff;
    box-shadow: none;
}

.values-accordion .accordion-button:not(.collapsed) { color: var(--c-deep); }
.values-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(6, 174, 247, .3); }

.values-accordion .accordion-body {
    padding: 0 1.25rem 1.25rem calc(1.25rem + 46px + .9rem);
    font-size: 15px;
    line-height: 1.75;
}

.values-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 8px;
    object-fit: cover;
}

/* ---------- Alternating feature rows (approach, impact) ---------- */
.feature-row {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.feature-row + .feature-row { margin-top: clamp(4rem, 8vw, 6.5rem); }

.feature-row.is-reversed { grid-template-columns: 7fr 5fr; }
.feature-row.is-reversed .feature-media { order: 2; }

.feature-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.1rem;
    border-radius: 8px;
    background: var(--tone);
    color: var(--tone-ink);
    font-family: var(--ff-head);
    font-weight: 900;
    font-size: 20px;
}

.feature-title {
    margin-bottom: 1rem;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .feature-row,
    .feature-row.is-reversed { grid-template-columns: 1fr; }
    .feature-row.is-reversed .feature-media { order: 0; }
    .feature-row .framed-photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Contact ---------- */
.info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
    padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.75rem);
    border-radius: 8px;
    background: var(--c-action);
    color: var(--c-ink);
    font-weight: 500;
    line-height: 1.6;
}

.info-item { display: flex; align-items: center; gap: 1rem; }
.info-item a { color: inherit; text-decoration: none; }
.info-item a:hover { text-decoration: underline; }

.info-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: var(--c-ink);
    font-size: 19px;
}

@media (max-width: 991.98px) {
    .info-strip { grid-template-columns: 1fr; }
}

.theme-form input,
.theme-form textarea {
    width: 100%;
    padding: 1rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--c-tint);
    color: var(--c-ink);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.theme-form textarea { resize: vertical; min-height: 170px; }

.theme-form input::placeholder,
.theme-form textarea::placeholder { color: #6b7785; }

.theme-form input:focus,
.theme-form textarea:focus {
    outline: none;
    border-color: var(--c-action);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 174, 247, .18);
}

.form-error {
    display: block;
    margin-top: .35rem;
    color: #c0392b;
    font-size: 13.5px;
}

.map-full { line-height: 0; }

.map-full iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 38vw, 480px);
    border: 0;
    filter: grayscale(.25);
}

/* ---------- Team ---------- */
.team-card {
    display: block;
    text-align: center;
    text-decoration: none;
}

.team-photo {
    position: relative;
    display: block;
    width: min(260px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto 1.4rem;
    padding: 16px;
    border-radius: 50%;
    background: var(--c-tint);
}

.team-photo::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px dashed rgba(26, 71, 149, .28);
    border-radius: 50%;
    transition: transform .8s ease, border-color .3s ease;
}

.team-photo img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
}

.team-card:hover .team-photo::before { transform: rotate(60deg); border-color: var(--c-action); }

.team-name {
    margin-bottom: .25rem;
    font-size: 20px;
    color: var(--c-ink);
    transition: color .2s ease;
}

.team-card:hover .team-name { color: var(--c-deep); }
.team-role { font-size: 14.5px; color: var(--c-text); }

/* ---------- Partner logo grid ---------- */
.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 1.1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}

.logo-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14, 35, 64, .14); }
.logo-tile img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- Resources ---------- */
.theme-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 3rem;
}

.theme-tabs .nav-link {
    padding: .7rem 1.4rem;
    border-radius: 5px;
    background: #eef2f6;
    color: var(--c-ink);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

.theme-tabs .nav-link:hover { background: var(--c-tint); color: var(--c-deep); }
.theme-tabs .nav-link.active { background: var(--c-deep); color: #fff; }

.res-card {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.res-media {
    position: relative;
    display: block;
    height: 240px;
    overflow: hidden;
}

.res-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.res-media:hover img { transform: scale(1.05); }
.res-body { padding: 1.5rem 1.6rem 1.4rem; }

.doc-viewer {
    padding: clamp(.75rem, 2vw, 1.25rem);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

/* ---------- Opportunities / careers / tenders ---------- */
.doc-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--c-tint);
    color: var(--c-deep);
    font-size: 22px;
}

.doc-card {
    height: 100%;
    padding: 1.75rem 1.6rem;
    border-top: 3px solid var(--c-action);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.doc-card .doc-icon { margin-bottom: 1.1rem; }

.doc-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.4rem;
    margin-bottom: .9rem;
    border-left: 4px solid var(--c-deep);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    color: var(--c-ink);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.doc-row:hover { transform: translateX(4px); box-shadow: 0 14px 36px rgba(14, 35, 64, .12); color: var(--c-ink); }

.doc-row-body { display: flex; flex: 1; flex-direction: column; gap: .2rem; min-width: 0; }

.doc-row-title {
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.4;
}

.doc-row-arrow { color: var(--c-deep); font-size: 18px; }

/* ---------- Article body (posts, projects, bios) ---------- */
.article-meta {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--c-line);
}

.prose { font-size: 16px; line-height: 1.85; }
.prose > *:last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 2rem 0 1rem; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose a { color: var(--c-deep); }
.prose ul, .prose ol { padding-left: 1.25rem; }

.prose blockquote {
    margin: 1.75rem 0;
    padding: 1.1rem 1.5rem;
    border-left: 4px solid var(--c-action);
    border-radius: 0 6px 6px 0;
    background: var(--c-tint);
    color: var(--c-ink);
}

/* ---------- Pagination ---------- */
.theme-pagination { display: flex; justify-content: center; margin-top: 3.5rem; }
.theme-pagination .pagination { gap: .4rem; margin: 0; }

.theme-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border: 0;
    border-radius: 6px !important;
    background: #eef2f6;
    color: var(--c-ink);
    font-weight: 700;
}

.theme-pagination .page-link:hover { background: var(--c-tint); color: var(--c-deep); }
.theme-pagination .active > .page-link { background: var(--c-deep); color: #fff; }
.theme-pagination .disabled > .page-link { opacity: .5; }

@media (prefers-reduced-motion: reduce) {
    .team-photo::before,
    .res-media img,
    .doc-row,
    .logo-tile { transition: none; }
}

/* =========================================================
   Revamp components (resources/views/components/frontend)
   ========================================================= */

/* ---------- <x-frontend.stats> ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    .stats-grid { grid-template-columns: repeat(var(--stats-n), minmax(0, 1fr)); }
}

.stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 .5rem;
    text-align: center;
}

.stat + .stat::before {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: -.75rem;
    width: 1px;
    background: var(--c-line);
}

@media (max-width: 991.98px) {
    .stat + .stat::before { display: none; }
}

.stat-figure {
    font-family: var(--ff-head);
    font-weight: 900;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    color: var(--c-deep);
}

.stat-label {
    max-width: 240px;
    margin-top: .6rem;
    font-size: 15px;
    line-height: 1.55;
    color: var(--c-ink);
}

.stat-note { position: relative; margin-top: .5rem; font-size: 13.5px; line-height: 1.55; }
.stat-note > i { display: none; color: var(--c-action); cursor: help; }

/* Small screens: the definition shows as text. Large: a note on hover/focus. */
@media (min-width: 992px) {
    .stat-note > i { display: inline-block; }

    .stat-note-text {
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        z-index: 5;
        width: 260px;
        padding: .75rem 1rem;
        border-radius: 6px;
        background: var(--c-ink);
        color: #fff;
        box-shadow: var(--shadow-card);
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 6px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .stat-note:hover .stat-note-text,
    .stat-note:focus .stat-note-text {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}

.stat-note:focus-visible { outline: 2px solid var(--c-action); outline-offset: 2px; border-radius: 50%; }

.stats-dark .stat-figure { color: var(--c-action); }
.stats-dark .stat-label { color: #fff; }
.stats-dark .stat-note { color: rgba(255, 255, 255, .72); }
.stats-dark .stat + .stat::before { background: rgba(255, 255, 255, .18); }

/* ---------- <x-frontend.flow> ---------- */
.flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: flow;
}

.flow-step {
    position: relative;
    display: flex;
    flex: 1 1 150px;
    flex-direction: column;
    justify-content: center;
    max-width: 220px;
    min-height: 92px;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    background: var(--c-tint);
    border-top: 3px solid var(--c-action);
    text-align: center;
}

.flow-step:not(.flow-step-end)::after {
    content: "\F138";
    position: absolute;
    top: 50%;
    right: -1.85rem;
    font-family: 'bootstrap-icons';
    font-size: 18px;
    line-height: 1;
    color: var(--c-action);
    transform: translateY(-50%);
}

.flow-step-end { background: var(--c-deep); border-top-color: var(--c-deep); }
.flow-step-end .flow-title { color: #fff; }
.flow-step-end .flow-text { color: rgba(255, 255, 255, .8); }

.flow-title { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--c-ink); }
.flow-text { margin-top: .35rem; font-size: 13.5px; line-height: 1.5; }

@media (max-width: 767.98px) {
    .flow { flex-direction: column; align-items: center; gap: 2.25rem; }
    .flow-step { width: 100%; max-width: 360px; min-height: 0; flex-basis: auto; }
    .flow-step:not(.flow-step-end)::after {
        content: "\F128";
        top: auto;
        right: auto;
        bottom: -1.85rem;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ---------- <x-frontend.cycle> ---------- */
.cycle { position: relative; }

.cycle-steps { list-style: none; margin: 0; padding: 0; counter-reset: cycle; }

.cycle-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-deep);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.cycle-title { font-weight: 700; color: var(--c-ink); line-height: 1.35; }
.cycle-text { font-size: 13.5px; line-height: 1.5; }

.cycle-centre {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--c-deep);
}

.cycle-centre i { font-size: 1.4rem; color: var(--c-action); }

/* Small screens: numbered list, the centre label below as the loop-back. */
@media (max-width: 767.98px) {
    .cycle { display: flex; flex-direction: column-reverse; }
    .cycle-ring { display: none; }
    .cycle-step {
        display: grid;
        grid-template-columns: 36px 1fr;
        column-gap: .9rem;
        padding-bottom: 1.1rem;
    }
    .cycle-step .cycle-num { grid-row: span 2; }
    .cycle-centre { margin: .25rem 0 0; }
}

/* From 768px: steps placed around a ring (positions set inline). */
@media (min-width: 768px) {
    .cycle {
        width: min(100%, 640px);
        aspect-ratio: 1;
        margin: 0 auto;
    }

    .cycle-ring {
        position: absolute;
        inset: 8%;
        border: 2px dashed rgba(26, 71, 149, .35);
        border-radius: 50%;
    }

    .cycle-centre {
        position: absolute;
        top: 50%;
        left: 50%;
        flex-direction: column;
        width: 34%;
        margin: 0;
        text-align: center;
        transform: translate(-50%, -50%);
    }

    .cycle-centre i { font-size: 2rem; }

    .cycle-step {
        position: absolute;
        top: var(--y);
        left: var(--x);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 170px;
        padding: .75rem .8rem .85rem;
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow-soft);
        text-align: center;
        transform: translate(-50%, -50%);
    }

    .cycle-step .cycle-num { margin: -1.75rem 0 .4rem; box-shadow: 0 0 0 4px #fff; }
}

/* ---------- <x-frontend.icon-row> ---------- */
.icon-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.75rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.icon-row-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: .85rem;
    border-radius: 50%;
    background: var(--c-tint);
    color: var(--c-deep);
    font-size: 28px;
}

.icon-row-label { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--c-ink); }
.icon-row-text { margin-top: .3rem; font-size: 13.5px; line-height: 1.5; }

@media (min-width: 992px) {
    .icon-row-chain { display: flex; justify-content: center; gap: 0; }
    .icon-row-chain .icon-row-item { flex: 1 1 0; max-width: 190px; padding: 0 1.25rem; }
    .icon-row-chain .icon-row-item:not(:last-child)::after {
        content: "\F138";
        position: absolute;
        top: 34px;
        right: -.55rem;
        font-family: 'bootstrap-icons';
        font-size: 18px;
        line-height: 1;
        color: var(--c-action);
        transform: translateY(-50%);
    }
    .icon-row-chain .icon-row-item:last-child .icon-row-icon { background: var(--c-deep); color: #fff; }
}

/* ---------- <x-frontend.at-a-glance> ---------- */
.glance {
    padding: 1.75rem 1.9rem;
    border-radius: 8px;
    border-top: 4px solid var(--c-action);
    background: var(--c-tint);
}

.glance-title { margin-bottom: 1.1rem; font-size: 1.25rem; }

.glance-list { margin: 0; }

.glance-row {
    display: grid;
    grid-template-columns: minmax(110px, 34%) 1fr;
    gap: .25rem 1.25rem;
    padding: .8rem 0;
    border-top: 1px solid rgba(26, 71, 149, .12);
}

.glance-row:first-child { border-top: 0; padding-top: 0; }

.glance-row dt { font-weight: 700; font-size: 14px; color: var(--c-ink); }
.glance-row dd { margin: 0; font-size: 14.5px; line-height: 1.6; }

@media (max-width: 575.98px) {
    .glance-row { grid-template-columns: 1fr; }
}

/* ---------- <x-frontend.cta-band> ---------- */
.cta-band:not([style]) { background: linear-gradient(120deg, var(--c-deep), var(--c-ink)); }
.cta-band:not([style])::before,
.cta-band:not([style])::after { display: none; }

/* ---------- <x-frontend.pull-quote> ---------- */
.pull-quote {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 2.25rem 0 0 0;
    text-align: center;
}

.pull-quote::before {
    content: "\F6B0";
    position: absolute;
    top: 0;
    left: 50%;
    font-family: 'bootstrap-icons';
    font-size: 2.6rem;
    line-height: 1;
    color: var(--c-action);
    transform: translate(-50%, -30%);
}

.pull-quote blockquote { margin: 0; }

.pull-quote blockquote p {
    margin: 0;
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.55;
    color: var(--c-ink);
}

.pull-quote figcaption { margin-top: 1rem; font-size: 14.5px; color: var(--c-text); }

/* ---------- <x-frontend.area-card> ---------- */
.area-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease;
}

.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.area-num {
    margin-bottom: 1rem;
    font-family: var(--ff-head);
    font-weight: 900;
    font-size: 2.1rem;
    line-height: 1;
    color: var(--c-action);
}

.area-title { margin-bottom: .75rem; font-size: 1.2rem; line-height: 1.35; }
.area-title a { color: inherit; text-decoration: none; }
.area-text { margin-bottom: 1.25rem; font-size: 14.5px; line-height: 1.7; }

.area-more {
    margin-top: auto;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-deep);
}

.area-card:hover .area-more i { transform: translateX(4px); }
.area-more i { display: inline-block; transition: transform .25s ease; }

/* ---------- Project card v2 ---------- */
.area-tag {
    display: inline-block;
    align-self: center;
    margin-bottom: .75rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--c-tint);
    color: var(--c-deep);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pill-muted { background: #e6ebf1; color: var(--c-ink); }

.proj-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .3rem 1rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.proj-facts i { margin-right: .35rem; color: var(--c-action); }

.proj-result {
    display: flex;
    gap: .6rem;
    margin-bottom: 1.25rem;
    padding: .75rem .9rem;
    border-radius: 6px;
    background: var(--c-tint);
    color: var(--c-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.proj-result i { color: var(--c-deep); }

/* ---------- Resource card v2 ---------- */
.res-media-empty { background: linear-gradient(135deg, var(--c-deep), var(--c-ink)); }

.res-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(6, 174, 247, .92);
    color: var(--c-ink);
    font-size: 30px;
    transform: translate(-50%, -50%);
}

/* =========================================================
   Revamp pages (Phase 5)
   ========================================================= */
.bg-tint { background: var(--c-tint); }

/* Anchored sections clear the sticky header. */
.scroll-offset { scroll-margin-top: 110px; }

.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--c-ink); }

/* Icon rows in other layouts */
.icon-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icon-row-3 .icon-row-icon { background: #fff; box-shadow: var(--shadow-soft); }
@media (max-width: 575.98px) { .icon-row-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.icon-row-wide { max-width: 960px; margin: 0 auto; }
.icon-row-wide .icon-row-text { max-width: 260px; }

.icon-row-light .icon-row-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.icon-row-light .icon-row-label { color: #fff; font-size: 13.5px; }
.icon-row-light.icon-row-chain .icon-row-item:last-child .icon-row-icon { background: var(--c-action); color: var(--c-ink); }
@media (min-width: 992px) {
    .icon-row-light.icon-row-chain .icon-row-item { padding: 0 .55rem; }
    .icon-row-light.icon-row-chain .icon-row-item:not(:last-child)::after { right: -.5rem; font-size: 14px; }
    .icon-row-light .icon-row-icon { width: 54px; height: 54px; font-size: 22px; }
    .icon-row-light.icon-row-chain .icon-row-item:not(:last-child)::after { top: 27px; }
}
@media (max-width: 991.98px) {
    .icon-row-light { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
}

/* Water security is national security */
.security-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.25rem);
    border-radius: 10px;
    background: var(--c-ink);
    color: rgba(255, 255, 255, .82);
}

.security-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--band-img) center / cover no-repeat;
    filter: grayscale(1);
}

.security-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(10, 26, 49, .95) 0%, rgba(26, 71, 149, .86) 100%);
}

/* Partner strip link */
.partner-band-link { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.partner-band-link:hover { color: var(--c-ink); }

/* Impact: policy table */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.policy-table thead th {
    padding: .9rem 1.25rem;
    background: var(--c-deep);
    color: #fff;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.policy-table thead th:first-child { border-radius: 6px 0 0 0; }
.policy-table thead th:last-child { border-radius: 0 6px 0 0; }

.policy-table tbody th,
.policy-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--c-line);
    vertical-align: top;
    line-height: 1.6;
}

.policy-table tbody th { width: 42%; color: var(--c-ink); font-weight: 700; }
.policy-table tbody tr:nth-child(even) { background: #f7fafc; }

@media (max-width: 767.98px) {
    .policy-table thead { display: none; }
    .policy-table tbody th, .policy-table tbody td { display: block; width: auto; border: 0; padding: .25rem 0; }
    .policy-table tbody tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--c-line); background: none !important; }
}

/* Impact: stories */
.story-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.9rem 1.75rem;
    border-radius: 8px;
    border-top: 4px solid var(--c-action);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.story-title { margin-bottom: .9rem; font-size: 1.15rem; line-height: 1.4; }

/* Partner With Us: ways to partner */
.way-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 1.75rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    color: inherit;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease;
}

.way-card:hover,
.way-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-card); color: inherit; }
.way-card:target { outline: 3px solid var(--c-action); outline-offset: 3px; }

.way-title { margin-bottom: .4rem; font-family: var(--ff-head); font-weight: 700; font-size: 1.1rem; color: var(--c-ink); }
.way-text { font-size: 14.5px; line-height: 1.6; }

.form-panel {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.theme-select {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--c-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%230e2340' d='M1.6 4.6 8 11l6.4-6.4' stroke='%230e2340' stroke-width='1.6' fill-opacity='0'/%3E%3C/svg%3E") right 1.2rem center no-repeat;
    color: var(--c-ink);
    font-size: 15px;
    appearance: none;
}

.theme-select:focus { outline: none; border-color: var(--c-action); background-color: #fff; box-shadow: 0 0 0 3px rgba(6, 174, 247, .18); }

/* Tools */
.tool-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.6rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--c-tint);
    color: var(--c-deep);
    font-size: 20px;
}

.tool-title { margin-bottom: .6rem; font-size: 1.08rem; line-height: 1.4; }
.tool-title a { color: inherit; text-decoration: none; }
.tool-title a:hover { color: var(--c-deep); }
.tool-text { font-size: 14.5px; line-height: 1.65; }

.tool-used { margin-bottom: 1rem; font-size: 13.5px; line-height: 1.6; }
.tool-used span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); }
.tool-used a { color: var(--c-deep); font-weight: 500; }
.form-panel h2 { color: var(--c-ink); }

/* =========================================================
   Projects (Phase 6)
   ========================================================= */
.page-banner-subtitle {
    max-width: 760px;
    margin: 1rem 0 0;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
}

/* Filter chips (links, so filtered lists can be shared and indexed) */
.filter-bar { display: flex; flex-direction: column; align-items: center; gap: .75rem; }

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .45rem 1.1rem;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: #fff;
    color: var(--c-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.chip:hover { border-color: var(--c-deep); color: var(--c-deep); }
.chip.is-active { border-color: var(--c-deep); background: var(--c-deep); color: #fff; }
.chip-soft { min-height: 34px; padding: .35rem .95rem; font-size: 13px; }
.chip-soft.is-active { border-color: var(--c-action); background: var(--c-action); color: var(--c-ink); }
.chip:focus-visible { outline: 3px solid rgba(6, 174, 247, .55); outline-offset: 2px; }

/* Project page */
.proj-block + .proj-block { margin-top: 2.5rem; }
.proj-block p { font-size: 16px; }
.proj-result-lg { margin-bottom: 2.25rem; padding: 1rem 1.25rem; font-size: 16px; }
.proj-aside { top: 110px; z-index: 1; }

.step-list { counter-reset: step; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.step-list li {
    position: relative;
    padding: .85rem 0 .85rem 3.25rem;
    border-top: 1px solid var(--c-line);
    line-height: 1.6;
}
.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: .8rem;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c-deep);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.step-list strong { display: block; color: var(--c-ink); }
.step-list span { font-size: 14.5px; }

.lesson-card {
    padding: 1.4rem 1.35rem;
    border-radius: 8px;
    border-left: 4px solid var(--c-action);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.lesson-title { margin-bottom: .45rem; font-size: 1rem; line-height: 1.4; }

/* =========================================================
   Knowledge Hub (Phase 7)
   ========================================================= */
.hub-search {
    display: flex;
    gap: .5rem;
    max-width: 640px;
    margin: 0 auto;
}

.hub-search input {
    flex: 1;
    min-width: 0;
    padding: .9rem 1.25rem;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    background: #fff;
    color: var(--c-ink);
    font-size: 15px;
}

.hub-search input:focus { outline: none; border-color: var(--c-action); box-shadow: 0 0 0 3px rgba(6, 174, 247, .18); }
.hub-search .btn-theme { min-height: 0; padding: 0 1.4rem; }

@media (max-width: 575.98px) {
    .hub-search .visually-hidden-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.hub-count { margin-bottom: 1.5rem; font-size: 14.5px; text-align: center; }

.res-card-v2 { display: flex; flex-direction: column; }
.res-card-v2 .res-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; }
.res-project a { color: var(--c-deep); font-weight: 500; }
.res-actions { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: auto; }

/* Featured study */
.study {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.study-head {
    padding: 2rem 1.9rem;
    background: linear-gradient(150deg, var(--c-deep), var(--c-ink));
    color: rgba(255, 255, 255, .8);
}

.study-title { margin: 0 0 .75rem; font-size: 1.3rem; line-height: 1.4; }
.study-title a { color: #fff; text-decoration: none; }
.study-title a:hover { color: var(--c-action); }

.study-list { margin: 0; padding: 1.5rem 1.9rem; }
.study-row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--c-line); }
.study-row:first-child { border-top: 0; }
.study-row dt { font-weight: 700; font-size: 14px; color: var(--c-ink); }
.study-row dd { margin: 0; font-size: 15px; line-height: 1.6; }

@media (max-width: 767.98px) {
    .study { grid-template-columns: 1fr; }
    .study-row { grid-template-columns: 1fr; gap: .15rem; }
}
.res-card-v2 .area-tag { align-self: flex-start; }

/* ---------- Team & board cards (Phase 8) ---------- */
.team-card { display: flex; flex-direction: column; align-items: center; height: 100%; }
.team-card-link { display: block; text-decoration: none; }
.team-card-link:hover .team-photo::before { transform: rotate(60deg); border-color: var(--c-action); }
.team-card-link:hover .team-name { color: var(--c-deep); }
.team-card-link:focus-visible { outline: 3px solid rgba(6, 174, 247, .55); outline-offset: 4px; border-radius: 8px; }

.team-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.team-tags .area-tag { margin: 0; }
.team-tags-start { justify-content: flex-start; }
a.area-tag { text-decoration: none; }
a.area-tag:hover { background: var(--c-deep); color: #fff; }

.team-focus { max-width: 34ch; margin: .8rem auto 0; font-size: 15px; line-height: 1.55; color: var(--c-text); }
.team-focus-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.team-linkedin {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-top: .9rem;
    border-radius: 50%; background: var(--c-tint); color: var(--c-deep);
    text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.team-linkedin:hover { background: var(--c-deep); color: #fff; }
.team-linkedin:focus-visible { outline: 3px solid rgba(6, 174, 247, .55); outline-offset: 2px; }

/* ---------- Partners by group (Phase 8) ---------- */
.partner-group + .partner-group { margin-top: clamp(3rem, 5vw, 4.5rem); }
.partner-group-title {
    margin-bottom: 1.5rem; padding-bottom: .75rem;
    border-bottom: 1px solid rgba(14, 35, 64, .12);
    font-size: clamp(20px, 2vw, 24px); color: var(--c-ink);
}
.partner-names { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.partner-names li {
    padding: .55rem 1rem; border-radius: 6px;
    background: #fff; box-shadow: var(--shadow-soft);
    font-size: 15px; font-weight: 600; color: var(--c-ink);
}
.partner-names a { color: inherit; text-decoration: none; }
.partner-names a:hover { color: var(--c-deep); text-decoration: underline; }

.spotlight-card {
    display: flex; flex-direction: column; height: 100%; margin: 0;
    padding: 2rem; border-top: 4px solid var(--c-action); border-radius: 8px;
    background: #fff; box-shadow: var(--shadow-soft);
}
.spotlight-logo { max-width: 140px; max-height: 56px; margin-bottom: 1.25rem; object-fit: contain; }
.spotlight-text { flex: 1; margin: 0 0 1.25rem; font-size: 17px; line-height: 1.6; color: var(--c-ink); }
.spotlight-name { font-weight: 700; color: var(--c-deep); }
.spotlight-name span { display: block; font-size: 13px; font-weight: 500; color: var(--c-text); }

@media (prefers-reduced-motion: reduce) {
    .team-linkedin { transition: none; }
}

/* ---------- Home: buttons under the hero text, call-to-action line ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.impact-cta-text { max-width: 560px; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, .85); }

/* Challenge statement: a short line under "Water security is national security". */
.statement-note { margin-top: .35rem; font-size: 14.5px; line-height: 1.6; color: var(--c-text); }

/* At-a-glance counters: the definition is a hover/focus note on large screens only. */
.counter-note { display: none; margin: 0 0 0 .3rem; }
@media (min-width: 992px) { .counter-note { display: inline-block; } }

/* Challenge cards can carry an icon-font glyph instead of an image. */
.chal-media .bi { font-size: 56px; line-height: 1; color: #fff; }
.chal-media.tone-action .bi { color: rgba(0, 0, 0, .8); }
@media (max-width: 991.98px) { .chal-media .bi { font-size: 40px; } }

/* ---------- Where We Work: landscape panels ---------- */
.landscape-card {
    height: 100%;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border-top: 4px solid var(--tone);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.landscape-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }

.landscape-icon {
    display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--tone); color: var(--tone-ink); font-size: 26px;
}

.landscape-title { margin: 0; font-size: clamp(20px, 1.9vw, 24px); color: var(--c-ink); }

.landscape-facts { margin: 0; }
.landscape-facts > div + div { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--c-line); }
.landscape-facts dt {
    display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-deep);
}
.landscape-facts dd { margin: 0; font-size: 15.5px; line-height: 1.65; }

.landscape-work { margin: 0; padding: 0; list-style: none; }
.landscape-work li { position: relative; padding-left: 1.1rem; }
.landscape-work li + li { margin-top: .3rem; }
.landscape-work li::before {
    content: ''; position: absolute; top: .65em; left: 0;
    width: 6px; height: 6px; border-radius: 50%; background: var(--c-action);
}
.landscape-work a { font-weight: 700; color: var(--c-deep); text-decoration: none; }
.landscape-work a:hover { text-decoration: underline; }
.landscape-work strong { color: var(--c-ink); }
.landscape-note { margin-left: .3rem; color: var(--c-text); }

/* Closing band carrying a quotation instead of a title. */
.cta-band-quote .statement-band-text {
    max-width: 760px;
    font-family: var(--ff-head);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}
