/* =================================================================
   PANEOTECH v6 — Site stylesheet
   Five mega menus. Country search. Logos in project panel.
   Smaller solutions. Bigger insight cards.
================================================================= */

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--ff-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--ink); color: #fff; }

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
    /* ─── Backgrounds (warm beige system, premium consulting) ──── */
    --bg:           #FFFFFF;        /* main canvas (still white) */
    --bg-soft:      #F5F1EB;        /* sand/beige, replaces grey */
    --bg-deep:      #EBE5DB;        /* deeper beige for emphasis */
    --bg-cream:     #FAF7F2;        /* lighter cream tint */

    /* ─── Ink (text) ────────────────────────────────────────── */
    --ink:          #101218;
    --ink-soft:     #2E3340;
    --ink-muted:    #5C6273;
    --ink-faint:    #8A8F9C;

    /* ─── Lines and borders ─────────────────────────────────── */
    --line:         rgba(16, 18, 24, 0.10);
    --line-soft:    rgba(16, 18, 24, 0.06);
    --line-strong:  rgba(16, 18, 24, 0.20);

    /* ─── Brand: deep navy from PANEOTECH logo ──────────────── */
    --brand:        #122E5F;        /* the logo blue, exact */
    --brand-2:      #1A3F7E;        /* slightly lighter for hover */
    --brand-deep:   #0B1F40;        /* darker accent / text on cream */
    --brand-soft:   rgba(18, 46, 95, 0.08);
    --brand-tint:   #E8EDF5;        /* very pale brand wash */

    /* Aliases (kept for back-compat with existing CSS) */
    --accent:       #122E5F;
    --accent-deep:  #0B1F40;
    --accent-soft:  rgba(18, 46, 95, 0.08);

    /* ─── Status colors ─────────────────────────────────────── */
    --status-live:        #1FA86A;
    --status-live-bg:     #E5F4ED;
    --status-progress:    #C28A1F;
    --status-progress-bg: #FBF1DE;
    --status-beta:        #5B3FBE;
    --status-beta-bg:     #EDE7FB;
    --success:      #1FA86A;
    --warning:      #D9A24A;
    --terracotta:   #C8542A;

    --ff-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ff-serif:   'Instrument Serif', 'Times New Roman', serif;

    --header-h:   80px;
    --container:  1240px;
    --gutter:     32px;
    --section-y:  64px;

    --radius:     18px;
    --radius-sm:  10px;
    --radius-pill: 100px;
}

/* ─── Layout primitives ──────────────────────────────────────── */
.wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ─── Type system ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 400; color: var(--ink); }
.display {
    font-family: var(--ff-serif);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--accent); }
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.eyebrow.centered { display: block; text-align: center; color: var(--ink-faint); margin-bottom: 24px; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-family: var(--ff-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid var(--ink);
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    transition: all .25s ease;
    white-space: nowrap;
    cursor: pointer;
}
.btn i { font-size: 14px; transition: transform .25s ease; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:hover i { transform: translateX(3px); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* =================================================================
   HEADER
================================================================= */
#sp-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--gutter);
    transition: background .3s ease, box-shadow .3s ease;
}
.header-bar {
    width: 100%;
    max-width: 1240px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background .3s ease, border-color .3s ease;
}
#sp-header.is-scrolled,
body:not(.has-hero-video) #sp-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
#sp-header.is-scrolled .header-bar,
body:not(.has-hero-video) #sp-header .header-bar {
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.logo { display: inline-flex; align-items: center; flex-shrink: 0; height: 100%; }
.logo-image {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter .3s ease;
}
.is-scrolled .logo-image,
body:not(.has-hero-video) .logo-image { filter: none; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-pill);
    transition: all .25s ease;
    white-space: nowrap;
}
.nav-link i:first-child { font-size: 15px; }
.nav-link .caret { font-size: 11px; opacity: 0.7; transition: transform .25s ease; }
.nav-item.has-mega:hover .caret { transform: rotate(180deg); }

.is-scrolled .nav-link,
body:not(.has-hero-video) .nav-link { color: var(--ink-soft); }
.nav-link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.is-scrolled .nav-link:hover,
body:not(.has-hero-video) .nav-link:hover { background: var(--bg-soft); color: var(--ink); }
.nav-item.is-active .nav-link { background: #fff; color: var(--ink); }
.is-scrolled .nav-item.is-active .nav-link { background: var(--ink); color: #fff; }

.burger { display: none; flex-direction: column; gap: 4px; padding: 6px; cursor: pointer; }
.burger span {
    display: block; width: 22px; height: 1.5px;
    background: #fff;
    transition: transform .3s ease, opacity .25s ease, background .3s ease;
    transform-origin: center;
}
.is-scrolled .burger span,
body:not(.has-hero-video) .burger span { background: var(--ink); }

/* Burger → X when drawer is open */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* =================================================================
   MEGA MENU — universal styles (used by all 5 panels)
================================================================= */
.mega-panel {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 24px 48px -16px rgba(16, 18, 24, 0.10);
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    margin-top: 0;          /* was 12px — gap removed */
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
}
.mega-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

/* Shared "intro column" used in every mega panel */
.mega-intro-col {
    grid-column: 1;
    padding: 40px 32px 40px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-right: 1px solid var(--line);
    align-self: stretch;
}
.mega-intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 20px;
    margin-bottom: 4px;
}
.mega-intro-col h3 {
    font-family: var(--ff-serif);
    font-size: 30px;
    line-height: 1.05;
}
.mega-desc {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.55;
}
.mega-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 500;
    font-size: 14px;
    margin-top: auto;
    transition: gap .3s ease, color .3s ease;
}
.mega-link i { font-size: 13px; transition: transform .3s ease; }
.mega-link:hover { color: var(--accent); gap: 12px; }
.mega-link:hover i { transform: translateX(3px); }

/* ─── MEGA: INSIGHTS ─────────────────────────────────────────── */
.mega-insights {
    display: grid;
    grid-template-columns: 240px 1fr 1fr;
    gap: 32px;
    padding: 0 0 40px;
}
.mega-feature {
    display: block;
    padding: 16px;
    background: var(--brand-tint);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mega-feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(18, 46, 95, 0.20);
    border-color: var(--brand-soft);
}
.mega-feature-img {
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    background: var(--bg-deep);
}
.mega-feature-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.mega-feature:hover .mega-feature-img img { transform: scale(1.04); }
.mega-cat-pill {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 10px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink);
}
.mega-feature-meta {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    margin-bottom: 6px;
}
.mega-feature h4 {
    font-family: var(--ff-serif);
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 8px;
    transition: color .25s ease;
}
.mega-feature:hover h4 { color: var(--accent); }
.mega-feature-excerpt {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.5;
}

.mega-mini-list {
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mega-mini-list li {
    background: var(--brand-tint);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mega-mini-list li:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -10px rgba(18, 46, 95, 0.20);
    border-color: var(--brand-soft);
}
.mega-mini {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    transition: padding-left .25s ease;
}
.mega-mini:hover { padding-left: 4px; }
.mega-mini-thumb {
    width: 72px; height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-deep);
}
.mega-mini-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.mega-mini:hover .mega-mini-thumb img { transform: scale(1.06); }
.mega-mini-meta {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    margin-bottom: 4px;
}
.mega-mini-cat { color: var(--accent); }
.mega-mini h5 {
    font-family: var(--ff-serif);
    font-size: 15px;
    line-height: 1.2;
    color: var(--ink);
    transition: color .25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mega-mini:hover h5 { color: var(--accent); }

/* ─── MEGA: EXPERTISE ────────────────────────────────────────── */
.mega-expertise {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 0 0 40px;
}
.mega-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 16px 0;
}
.mega-pillar {
    background: var(--brand-tint);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 18px 16px;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.mega-pillar:hover {
    box-shadow: 0 12px 24px -14px rgba(18, 46, 95, 0.18);
    border-color: var(--brand-soft);
}
.mega-pillar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.mega-pillar ul li { margin-bottom: 4px; }
.mega-service {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .2s ease;
    font-size: 13px;
    color: var(--ink-soft);
}
.mega-service:hover {
    background: #fff;
    color: var(--accent);
}
.mega-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 6px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 14px;
    flex-shrink: 0;
    transition: all .25s ease;
}
.mega-service:hover .mega-service-icon {
    background: var(--accent);
    color: #fff;
}
.mega-service-label { line-height: 1.3; }

/* ─── MEGA: SOLUTIONS ────────────────────────────────────────── */
.mega-solutions {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 0 0 40px;
}
.mega-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 20px 0;
}
.mega-product {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: var(--brand-tint);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mega-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(18, 46, 95, 0.20);
    border-color: var(--brand-soft);
}
.mega-product-img {
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ink);
    width: 100%;
}
.mega-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.mega-product:hover .mega-product-img img { transform: scale(1.04); }
.mega-product-body {
    padding: 4px 4px 0;
}
.mega-product-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ff-serif);
    font-size: 16px;
    line-height: 1.15;
    color: var(--ink);
    transition: color .2s ease;
    margin-bottom: 4px;
}
.mega-product-name i {
    font-size: 11px;
    color: var(--accent);
    width: 18px; height: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
    border-radius: 5px;
    flex-shrink: 0;
}
.mega-product:hover .mega-product-name { color: var(--accent); }
.mega-product-tag {
    font-size: 11.5px;
    color: var(--ink-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── MEGA: PROJECTS ─────────────────────────────────────────── */
.mega-projects {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 0 0 40px;
}
.mega-projects-col { padding: 32px 0; }
.mega-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 12px;
}
.mega-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.mega-client-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 12px 0 0;
    border-top: 1px solid var(--line-soft);
    margin-top: 18px;
}
.mega-client {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 8px;
    border-radius: 8px;
    transition: background .2s ease;
}
.mega-client:hover { background: var(--brand-tint); }
.mega-client img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.65);
    transition: filter .25s ease;
}
.mega-client:hover img { filter: grayscale(0) opacity(1); }
.mega-project {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: var(--brand-tint);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mega-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -12px rgba(18, 46, 95, 0.20);
    border-color: var(--brand-soft);
}
.mega-project-img {
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ink);
    position: relative;
}
.mega-project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.mega-project:hover .mega-project-img img { transform: scale(1.04); }
.mega-cat-pill[data-status] { /* color matches project status */ }
.mega-cat-pill[data-status="Live"] { color: var(--success); }
.mega-cat-pill[data-status="In Delivery"] { color: var(--accent); }
.mega-cat-pill[data-status="Beta"] { color: #A07320; }

.mega-project-meta {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}
.mega-project-meta i { font-size: 12px; }
.mega-project-title {
    font-family: var(--ff-serif);
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--ink);
    transition: color .25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mega-project:hover .mega-project-title { color: var(--accent); }
.mega-project-client {
    font-size: 11px;
    color: var(--ink-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── MEGA: ABOUT ────────────────────────────────────────────── */
.mega-about {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 32px 0 40px;
}
.mega-about-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    background: var(--ink);
    color: #fff;
    border-radius: 14px;
    transition: background .3s ease;
}
.mega-about-brand:hover { background: var(--accent); }
.mega-about-logo {
    height: 28px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
    display: block;
}
.mega-about-tagline {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.1;
    color: #fff;
}
.mega-about-blurb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
}
.mega-about-brand .mega-link {
    color: #fff;
    margin-top: 8px;
}
.mega-about-brand .mega-link:hover { color: rgba(255,255,255,0.85); }

.mega-about-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    align-content: start;
}
.mega-about-link {
    display: grid;
    grid-template-columns: 44px 1fr 16px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: background .2s ease;
}
.mega-about-link:hover { background: var(--brand-tint); }
.mega-about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--ink-soft);
    font-size: 18px;
    transition: all .25s ease;
}
.mega-about-link:hover .mega-about-icon {
    background: var(--accent);
    color: #fff;
}
.mega-about-text { display: flex; flex-direction: column; gap: 3px; }
.mega-about-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: color .25s ease;
}
.mega-about-link:hover .mega-about-label { color: var(--accent); }
.mega-about-desc {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.4;
}
.mega-about-arrow {
    color: var(--ink-faint);
    font-size: 14px;
    transition: color .25s ease, transform .25s ease;
}
.mega-about-link:hover .mega-about-arrow {
    color: var(--accent);
    transform: translate(2px, -2px);
}

/* ─── Mobile menu ────────────────────────────────────────────── */
.mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff;
    z-index: 99;
    padding: 32px var(--gutter);
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu ul li { border-bottom: 1px solid var(--line); }
.mobile-menu ul a { display: flex; gap: 12px; align-items: center; padding: 18px 0; font-size: 18px; color: var(--ink); }
.mobile-menu ul a i { font-size: 18px; color: var(--accent); }

/* =================================================================
   HERO
================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: var(--ink);
    overflow: hidden;
}
.hero-video { position: absolute; inset: 0; }
.hero-video video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg,
            rgba(16,18,24,0.10) 0%,
            rgba(16,18,24,0.0) 40%,
            rgba(16,18,24,0.0) 60%,
            rgba(16,18,24,0.45) 100%);
    pointer-events: none;
}

/* =================================================================
   ABOUT PANEOTECH
================================================================= */
.about {
    background: var(--bg);
    padding: 72px 0 var(--section-y);
}
.about-top {
    max-width: 880px;
    margin: 0 auto 48px;
    text-align: center;
}
.about-top h2 {
    font-size: clamp(40px, 5vw, 68px);
    margin-bottom: 24px;
}
.about-long {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-muted);
    margin-bottom: 18px;
}
.about-mission {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-faint);
    font-style: italic;
    margin-bottom: 28px;
    padding: 0 8%;
}
.about-divisions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}
.division {
    display: grid;
    grid-template-columns: 64px 1fr;
    padding: 32px 32px 32px 24px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all .35s ease;
}
.division:hover {
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 16px 32px -16px rgba(16, 18, 24, 0.10);
    transform: translateY(-2px);
}
.division-num {
    font-family: var(--ff-serif);
    font-size: 48px;
    line-height: 1;
    color: var(--ink-faint);
    font-style: italic;
    transition: color .35s ease;
}
.division:hover .division-num { color: var(--accent); }
.division-body { display: flex; flex-direction: column; gap: 12px; }
.division-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: background .35s ease;
}
.division:hover .division-icon { background: var(--accent); }
.division-icon i { font-size: 18px; }
.division h3 { font-family: var(--ff-serif); font-size: 28px; line-height: 1.05; }
.division p { font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.division-cta {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent);
    font-weight: 500;
    font-size: 13px;
    margin-top: 4px;
    transition: gap .3s ease;
}
.division:hover .division-cta { gap: 12px; }

/* =================================================================
   CLIENTS
================================================================= */
.clients {
    background: var(--bg);
    padding: 32px 0 40px;
    border-top: 1px solid var(--line-soft);
}
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.marquee-track {
    display: flex;
    width: max-content;
    gap: 28px;
    animation: marquee 50s linear infinite;
    align-items: center;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-25%); }
}
.client-logo {
    flex-shrink: 0;
    width: 120px; height: 60px;
    display: flex; align-items: center; justify-content: center;
}
.client-logo img {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.65);
    transition: filter .3s ease;
}
.client-logo:hover img { filter: grayscale(0) opacity(1); }

/* =================================================================
   PROJECTS MAP — with country search + project/client logos
================================================================= */
.projects-map {
    background: var(--bg-soft);
    padding: var(--section-y) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.map-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 28px;
}
.map-head h2 {
    font-size: clamp(40px, 5vw, 68px);
    margin-bottom: 14px;
}
.map-head .lede {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* Country search */
.map-search {
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 5;
}
.map-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.map-search-inner:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.map-search-inner > i { color: var(--ink-faint); font-size: 16px; }
.map-search-inner input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--ff-sans);
    font-size: 14px;
    color: var(--ink);
    padding: 4px 0;
}
.map-search-inner input::placeholder { color: var(--ink-faint); }
.map-search-clear {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-soft);
    transition: background .2s ease;
}
.map-search-clear:hover { background: var(--bg-deep); }
.map-search-clear i { font-size: 12px; }

.map-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px -12px rgba(16, 18, 24, 0.18);
    max-height: 300px;
    overflow-y: auto;
}
.map-search-results li { border-bottom: 1px solid var(--line-soft); }
.map-search-results li:last-child { border-bottom: 0; }
.map-search-result {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    width: 100%;
    text-align: left;
    transition: background .15s ease;
    cursor: pointer;
}
.map-search-result:hover,
.map-search-result.is-active { background: var(--accent-soft); }
.map-search-result .flag-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.map-search-result .country-name {
    flex: 1;
    font-size: 14px;
    color: var(--ink);
}
.map-search-result .country-status {
    font-size: 11px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.map-search-empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-muted);
}

/* Map layout — LEFT column FIXED so map never resizes,
   regardless of how many projects (3, 30, 1000) the right card holds */
.map-layout {
    display: grid;
    grid-template-columns: 580px minmax(0, 1fr); /* fixed left, flexible right */
    gap: 32px;
    align-items: start;
}
.map-side {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    width: 580px;
    min-width: 580px;
    max-width: 580px;
}
.map-frame {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 12px -4px rgba(16, 18, 24, 0.04);
    width: 580px;
    height: 660px; /* fixed, not min */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.africa-map {
    width: 100%;
    height: 100%;
    max-width: 532px;
    max-height: 612px;
    display: block;
}
.africa-map .country {
    fill: #E8E6E0;
    stroke: #FFFFFF;
    stroke-width: 0.8;
    transition: fill .25s ease;
}
.africa-map .country.has-project {
    fill: #B5C5FF;
    cursor: pointer;
}
.africa-map .country.has-project:hover,
.africa-map .country.has-project:focus,
.africa-map .country.has-project.is-selected {
    fill: var(--accent);
    outline: none;
}
.africa-map .pin { cursor: pointer; outline: none; }
.africa-map .pin-pulse {
    fill: var(--accent);
    fill-opacity: 0.25;
    animation: pinPulse 2.4s ease-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
.africa-map .pin-dot {
    fill: var(--accent);
    stroke: #fff;
    stroke-width: 2;
    transition: fill .25s ease, transform .25s ease;
    transform-origin: center;
    transform-box: fill-box;
}
.africa-map .pin:hover .pin-dot,
.africa-map .pin:focus .pin-dot,
.africa-map .pin.is-selected .pin-dot {
    fill: var(--terracotta);
    transform: scale(1.3);
}
.africa-map .pin.is-selected .pin-pulse {
    fill: var(--terracotta);
    fill-opacity: 0.30;
}
@keyframes pinPulse {
    0%   { transform: scale(0.6); opacity: 0.6; }
    70%  { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Project panel — with logos at top */
.project-panel {
    min-width: 0; /* allow grid to constrain */
    width: 100%;
}
.project-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 32px -16px rgba(16, 18, 24, 0.10);
    transition: opacity .3s ease;
    min-height: 660px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}
.project-body {
    flex: 1;
}

/* Top bar: project + client logos on left, status on right */
.project-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}
.project-logos {
    display: flex;
    align-items: center;
    gap: 6px;
}
.project-logo-tile {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.project-logo-tile img {
    max-width: 100%;
    max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
}
.project-logo-tile--client img {
    filter: grayscale(40%);
}

.project-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    background: rgba(31, 168, 106, 0.12);
    color: var(--success);
}
.project-status::before {
    content: '';
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--success);
}
.project-status[data-status="In Delivery"] {
    background: rgba(18, 46, 95, 0.12);
    color: var(--accent);
}
.project-status[data-status="In Delivery"]::before { background: var(--accent); }
.project-status[data-status="Beta"] {
    background: rgba(217, 162, 74, 0.16);
    color: #A07320;
}
.project-status[data-status="Beta"]::before { background: var(--warning); }

.project-image {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--ink);
}
.project-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(0.16,1,0.3,1);
}

.project-body { padding: 22px 24px 24px; }
.project-title {
    font-family: var(--ff-serif);
    font-size: 26px;
    line-height: 1.1;
    margin-bottom: 16px;
}
.project-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}
.project-meta div { display: flex; flex-direction: column; gap: 2px; }
.project-meta .project-meta-wide { grid-column: 1 / -1; }
.project-meta dt {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
}
.project-meta dd { font-size: 13px; color: var(--ink); line-height: 1.4; }
.project-meta-wide dd {
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: -0.01em;
}
.project-summary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.project-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.project-actions .btn { font-size: 12px; padding: 10px 18px; }

/* =================================================================
   SOLUTIONS — SMALLER CARDS, aspect ratio preserved
================================================================= */
.solutions {
    background: var(--bg);
    padding: var(--section-y) 0;
}
.solutions-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 36px;
}
.solutions-head h2 { font-size: clamp(36px, 4.5vw, 56px); }
.solutions-head-right {
    display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.solutions-head-right p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; }

/* SMALLER GRID: tighter, wrapping at smaller card size */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    /* cap maximum card size so they don't bloat */
    max-width: 1080px;
    margin: 0 auto;
}
.sol-card {
    display: flex;
    flex-direction: column;
    background: var(--ink);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
    color: #fff;
}
.sol-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -16px rgba(16, 18, 24, 0.18);
}
.sol-image {
    width: 100%;
    aspect-ratio: 295 / 166;
    overflow: hidden;
    background: var(--ink);
    display: block;
    position: relative;
}
.sol-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .3s ease;
}
.sol-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
}
.sol-image-placeholder i {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.85);
}
.sol-card:hover .sol-image img {
    transform: scale(1.04);
}
.sol-body {
    padding: 14px 18px 18px;
    background: var(--ink);
}
.sol-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ff-serif);
    font-size: 19px;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #fff;
    transition: gap .3s ease;
}
.sol-name i { font-size: 12px; transition: transform .3s ease; }
.sol-card:hover .sol-name { gap: 12px; }
.sol-card:hover .sol-name i { transform: translate(2px, -2px); }
.sol-tagline {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =================================================================
   TECH STACK — kept identical (perfect per user)
================================================================= */
.tech {
    background: var(--bg-soft);
    padding: var(--section-y) 0;
}
.tech-head {
    text-align: center;
    margin-bottom: 36px;
}
.tech-head h2 { font-size: clamp(36px, 4.5vw, 56px); }

.tech-rows { display: flex; flex-direction: column; gap: 14px; }
.tech-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.tech-track {
    display: flex; width: max-content; gap: 14px; align-items: center;
}
.tech-marquee--left .tech-track { animation: techMarqueeLeft 35s linear infinite; }
.tech-marquee--right .tech-track { animation: techMarqueeRight 35s linear infinite; }
.tech-track:hover { animation-play-state: paused; }
@keyframes techMarqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-33.333%); }
}
@keyframes techMarqueeRight {
    from { transform: translateX(-33.333%); }
    to   { transform: translateX(0); }
}
.tech-cell {
    flex-shrink: 0;
    width: 180px; height: 96px;
    display: flex; align-items: center; justify-content: center;
    padding: 16px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: border-color .25s ease, transform .25s ease;
}
.tech-cell:hover { border-color: var(--brand); transform: translateY(-2px); }
.tech-cell img,
.tech-cell .tech-cell-logo {
    max-width: 100%; max-height: 100%;
    width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.65);
    transition: filter .25s ease;
}
.tech-cell:hover img,
.tech-cell:hover .tech-cell-logo { filter: grayscale(0) opacity(1); }
.tech-cell .tech-pill-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: ui-monospace, monospace;
    filter: grayscale(60%) opacity(0.85);
    transition: filter .25s ease;
}
.tech-cell:hover .tech-pill-icon { filter: grayscale(0) opacity(1); }

/* =================================================================
   INSIGHTS — BIGGER images, uniform 3-column grid
================================================================= */
.insights {
    background: var(--bg);
    padding: var(--section-y) 0 48px;
}
.insights-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.insights-head h2 { font-size: clamp(36px, 4.5vw, 56px); }

/* Uniform 3-col grid, all cards equally sized with BIG images */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article {
    display: flex;
    flex-direction: column;
}
.article-image {
    aspect-ratio: 16 / 11;       /* bigger than 16:10 */
    overflow: hidden;
    background: var(--bg-deep);
    border-radius: var(--radius);
    margin-bottom: 16px;
    position: relative;
}
.article-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(0.16,1,0.3,1);
}
.article:hover .article-image img { transform: scale(1.04); }
.article-cat {
    position: absolute;
    top: 14px; left: 14px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink);
}
.article-body { display: flex; flex-direction: column; gap: 8px; }
.article-meta-row {
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.article-title {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 4px;
    transition: color .3s ease;
}
.article:hover .article-title { color: var(--accent); }
.article-excerpt {
    font-size: 13px;
    color: var(--ink-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
    transition: gap .3s ease, color .3s ease;
}
.article:hover .article-readmore { gap: 12px; color: var(--accent); }

/* Featured (first card) spans 2 cols + has bigger image */
.article--feat { grid-column: span 2; }
.article--feat .article-image { aspect-ratio: 16/8; }
.article--feat .article-title { font-size: 30px; }
.article--feat .article-excerpt { -webkit-line-clamp: 3; }

/* =================================================================
   LINE BAND
================================================================= */
.line-band {
    width: 100%;
    overflow: hidden;
    background: var(--bg);
    line-height: 0;
    margin-bottom: -2px; /* sit flush against footer */
}
.line-band img {
    width: 100%;
    height: 56px; /* reduced from 80 to tighten spacing */
    object-fit: cover;
    object-position: top;
    display: block;
}

/* =================================================================
   FOOTER
================================================================= */
#sp-footer {
    background: var(--brand-deep);
    color: rgba(255, 255, 255, 0.78);
}
.footer-main { padding: 40px 0 28px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: stretch; /* all columns stretch to tallest */
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; }
.footer-col { display: flex; flex-direction: column; }
.footer-col ul { flex: 1; }
.footer-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 18px;
    align-self: flex-start;
}
.footer-tagline-headline {
    font-family: var(--ff-serif);
    font-size: 18px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 10px;
}
.footer-tagline-body {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 22px;
}
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}
.footer-contacts li i {
    color: rgba(255, 255, 255, 0.50);
    font-size: 14px;
    width: 14px;
    flex-shrink: 0;
    margin-top: 3px;
}
.footer-contacts li a {
    color: rgba(255, 255, 255, 0.85);
    transition: color .15s ease;
    border-bottom: 1px solid transparent;
}
.footer-contacts li a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}
.footer-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    padding: 2px 7px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 4px;
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

/* Stay in touch (now inside brand column, after contacts) */
.footer-stay-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 18px;
    margin-bottom: 12px;
    font-weight: 600;
}
.footer-socials {
    display: flex;
    gap: 8px;
}
.footer-socials li { margin: 0; }
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    transition: all .18s ease;
}
.footer-socials a:hover {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Link columns */
.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    transition: color .15s ease, padding-left .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-col ul a:hover {
    color: #fff;
    padding-left: 3px;
}
.footer-link-strong {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 500 !important;
    margin-top: 6px;
    display: inline-flex !important;
    gap: 6px !important;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-link-strong i { font-size: 11px; opacity: 0.7; }

/* CTA in 4th column */
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    transition: all .18s ease;
    margin-top: 22px;
    align-self: flex-start;
}
.footer-cta:hover {
    background: #fff;
    color: var(--brand-deep);
    border-color: #fff;
}
.footer-cta i { font-size: 14px; }

/* Footer base */
.footer-base {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.50);
}
.footer-legal {
    display: flex;
    gap: 22px;
    list-style: none;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.50);
    transition: color .15s ease;
}
.footer-legal a:hover { color: #fff; }

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}
@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-connect {
        grid-column: auto;
        border-top: 0;
        padding-top: 0;
    }
    .footer-base {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =================================================================
   RESPONSIVE
================================================================= */
@media (max-width: 1180px) {
    .mega-insights        { grid-template-columns: 220px 1fr 1fr; }
    .mega-pillars         { grid-template-columns: repeat(2, 1fr); }
    .mega-products        { grid-template-columns: repeat(3, 1fr); }
    .mega-projects-grid   { grid-template-columns: repeat(2, 1fr); }
    .mega-about-links     { grid-template-columns: 1fr; }
    .nav-link span        { display: none; }
    .nav-link i:first-child { font-size: 17px; }
    .nav-link              { padding: 10px 12px; }
}

@media (max-width: 1100px) {
    .map-layout         { grid-template-columns: 1fr; gap: 32px; }
    .map-side           { position: static; width: 100%; min-width: 0; max-width: 100%; }
    .map-frame          { width: 100%; height: auto; min-height: 0; aspect-ratio: 1 / 1.1; }
    .africa-map         { max-width: 100%; max-height: 100%; }
    .solutions-head     { grid-template-columns: 1fr; gap: 24px; }
    .insights-grid      { grid-template-columns: 1fr 1fr; }
    .article--feat      { grid-column: span 2; }
    .footer-grid        { grid-template-columns: 1fr 1fr; gap: 40px; }
    .about-divisions    { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .primary-nav        { display: none; }
    .burger             { display: flex; }
    .header-bar         { padding: 0 18px; }
    .mega-panel         { display: none; }
    .mega-insights, .mega-expertise, .mega-solutions,
    .mega-projects, .mega-about { grid-template-columns: 1fr; }
    .mega-intro-col     { border-right: 0; padding: 24px 0; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; --gutter: 20px; --section-y: 56px; }
    .division           { grid-template-columns: 44px 1fr; padding: 24px 20px 24px 16px; }
    .division-num       { font-size: 36px; }
    .division h3        { font-size: 24px; }
    .about-mission      { padding: 0; }
    .solutions-grid     { grid-template-columns: repeat(2, 1fr); }
    .insights-grid      { grid-template-columns: 1fr; }
    .article--feat      { grid-column: span 1; }
    .article--feat .article-title { font-size: 22px; }
    .footer-grid        { grid-template-columns: 1fr; }
    .project-meta       { grid-template-columns: 1fr 1fr; }
    .insights-head      { flex-direction: column; align-items: flex-start; }
    .footer-base        { flex-direction: column; align-items: flex-start; }
    .client-logo        { width: 96px; height: 52px; }
    .marquee-track      { gap: 22px; }
    .line-band img      { height: 56px; }
    .tech-cell          { width: 140px; height: 80px; padding: 12px 18px; }
}

@media (max-width: 480px) {
    .solutions-grid     { grid-template-columns: 1fr; }
    .project-meta       { grid-template-columns: 1fr; }
    .project-actions .btn { flex: 1; justify-content: center; }
}

/* =================================================================
   PAGE TEMPLATES — common patterns for inner pages
================================================================= */

/* Inner page hero (light) */
.page-hero {
    background: var(--bg-soft);
    padding: calc(var(--header-h) + 56px) 0 56px;
    border-bottom: 1px solid var(--line);
}
.page-hero .wrap { max-width: 960px; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 {
    font-family: var(--ff-serif);
    font-size: clamp(40px, 5.5vw, 72px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-muted);
    max-width: 70ch;
}
.page-hero .breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-faint);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.page-hero .breadcrumb a { color: var(--ink-muted); }
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb i { font-size: 11px; opacity: 0.6; }

/* Generic page section */
.page-section { padding: 64px 0; }
.page-section + .page-section { border-top: 1px solid var(--line-soft); }
.page-section--tight { padding: 40px 0; }
.page-section h2 {
    font-family: var(--ff-serif);
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 28px;
}
.page-section h2 em { font-style: italic; color: var(--accent); }
.page-section .prose { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 70ch; }
.page-section .prose p + p { margin-top: 14px; }

/* Two-col layout: aside + content */
.page-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    gap: 56px;
    max-width: 1080px;
    margin: 0 auto;
}
.page-grid .aside-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    margin-bottom: 14px;
}

/* Cards grid for collections (insights index, projects index, etc.) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.team-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 0;
    width: 100%;
    padding: 0;
    color: inherit;
    font: inherit;
}
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -16px rgba(11, 31, 64, 0.20);
}
.team-photo {
    aspect-ratio: 4/5;
    background: var(--brand-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 48px;
    overflow: hidden;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-serif);
    font-size: 32px;
    font-style: italic;
}
.team-body { padding: 18px 22px 22px; }
.team-name {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 4px;
    color: var(--ink);
}
.team-title {
    font-size: 13px;
    color: var(--ink-muted);
    margin-bottom: 14px;
}
.team-card-cta {
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s ease;
}
.team-card:hover .team-card-cta {
    gap: 8px;
}

/* Team modal */
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.team-modal[hidden] { display: none; }
.team-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 31, 64, 0.55);
    backdrop-filter: blur(4px);
}
.team-modal-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(11, 31, 64, 0.40);
    max-width: 920px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    animation: team-modal-pop .25s ease;
}
@keyframes team-modal-pop {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.team-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    z-index: 2;
    transition: background .15s ease;
}
.team-modal-close:hover {
    background: var(--ink);
    color: #fff;
}
.team-modal-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-height: 85vh;
}
.team-modal-photo {
    background: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.team-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-modal-photo .team-photo-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 48px;
}
.team-modal-body {
    padding: 36px 40px 40px;
    overflow-y: auto;
}
.team-modal-body h2 {
    font-family: var(--ff-serif);
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 6px;
    color: var(--ink);
}
.team-modal-title {
    font-size: 14px;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 20px;
}
.team-modal-bio {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 26px;
}
.team-modal-bio p { margin-bottom: 14px; }
.team-modal-bio p:last-child { margin-bottom: 0; }
.team-modal-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.team-modal-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--bg-soft);
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    transition: all .15s ease;
}
.team-modal-social:hover {
    background: var(--brand);
    color: #fff;
}
.team-modal-social i { font-size: 14px; }

@media (max-width: 720px) {
    .team-modal-grid {
        grid-template-columns: 1fr;
    }
    .team-modal-photo {
        aspect-ratio: 4/3;
    }
    .team-modal-body { padding: 28px 24px 32px; }
    .team-modal-body h2 { font-size: 26px; }
}

/* Pillar tabs (expertise overview) */
.pillar-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 56px;
}
.pillar-tab {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all .25s ease;
}
.pillar-tab:hover {
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 8px 24px -16px rgba(16, 18, 24, 0.12);
    transform: translateY(-2px);
}
.pillar-tab .pillar-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
    font-size: 19px;
    margin-bottom: 6px;
}
.pillar-tab h3 { font-family: var(--ff-serif); font-size: 22px; line-height: 1.1; }
.pillar-tab p { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }
.pillar-tab .pillar-count {
    margin-top: auto;
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Service list (rows) */
.service-rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.service-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 22px;
    background: var(--bg-soft);
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all .25s ease;
}
.service-row:hover {
    background: #fff;
    border-color: var(--line);
    transform: translateX(4px);
}
.service-row .service-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 16px;
    color: var(--ink-soft);
    transition: all .25s ease;
}
.service-row:hover .service-icon { background: var(--accent); border-color: var(--accent); color: #fff; }
.service-row .service-text h4 { font-family: var(--ff-serif); font-size: 19px; line-height: 1.1; margin-bottom: 4px; }
.service-row .service-text p { font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.service-row .service-arrow {
    color: var(--ink-faint);
    font-size: 16px;
    transition: all .25s ease;
}
.service-row:hover .service-arrow { color: var(--accent); transform: translate(2px, -2px); }

/* Project list / detail breadcrumb chip */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}
.tag-chip:hover { background: var(--accent); color: #fff; }

/* Pretty status pill */
.status-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 500;
    background: rgba(31, 168, 106, 0.12);
    color: var(--success);
}
.status-chip::before {
    content: ''; width: 5px; height: 5px;
    border-radius: 50%; background: currentColor;
}
.status-chip[data-status="in-delivery"], .status-chip[data-status="In Delivery"] { background: rgba(18,46,95,0.12); color: var(--accent); }
.status-chip[data-status="beta"], .status-chip[data-status="Beta"] { background: rgba(217,162,74,0.16); color: #A07320; }

/* Article body (insight/page detail) */
.article-prose {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-soft);
    max-width: 72ch;
}
.article-prose p { margin-bottom: 18px; }
.article-prose h2 {
    font-family: var(--ff-serif);
    font-size: 30px;
    line-height: 1.1;
    margin: 36px 0 16px;
}
.article-prose h3 { font-family: var(--ff-serif); font-size: 22px; margin: 28px 0 12px; }
.article-prose ul, .article-prose ol { margin: 16px 0 16px 24px; }
.article-prose li { margin-bottom: 6px; }
.article-prose a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.article-prose blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 18px;
    margin: 24px 0;
    font-style: italic;
    color: var(--ink);
}

/* Detail page sidebar info card */
.detail-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.detail-sidebar dl { display: grid; gap: 14px; }
.detail-sidebar dt {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    margin-bottom: 4px;
}
.detail-sidebar dd { font-size: 14px; color: var(--ink); }

@media (max-width: 1100px) {
    .page-grid { grid-template-columns: 1fr; gap: 32px; }
    .cards-grid, .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar-tabs { grid-template-columns: repeat(2, 1fr); }
    .service-rows { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
}
@media (max-width: 640px) {
    .cards-grid, .cards-grid--2, .cards-grid--4 { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .pillar-tabs { grid-template-columns: 1fr; }
}

/* =================================================================
   v8 ADDITIONS
================================================================= */

/* Multi-project tabs — labeled pill tabs that don't resize the map */
.project-tabs {
    display: block;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    color: #fff;
}
.project-tabs-headline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-bottom: 10px;
}
.project-tabs-headline i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}
.project-pill-tabs-row {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    /* hide scrollbar but allow scroll */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.project-pill-tabs-row::-webkit-scrollbar {
    height: 4px;
}
.project-pill-tabs-row::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
.project-pill-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 9px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
    flex-shrink: 0;
}
.project-pill-tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 10.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}
.project-pill-tab:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.30);
    color: #fff;
}
.project-pill-tab.is-active {
    background: #fff;
    color: var(--brand-deep);
    border-color: #fff;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}
.project-pill-tab.is-active .project-pill-tab-num {
    background: var(--brand);
    color: #fff;
}

/* Multi-project pin count badge */
.africa-map .pin-count {
    fill: #fff;
    font-family: var(--ff-sans);
    font-size: 7px;
    font-weight: 600;
    pointer-events: none;
}

/* Map redesign — softer, more polished */
.africa-map .country {
    fill: #ECEDF0;
    stroke: #FFFFFF;
    stroke-width: 0.6;
    transition: fill .25s ease;
}
.africa-map .country.has-project {
    fill: #C5D2FF;
    cursor: pointer;
}
.africa-map .country.has-project:hover,
.africa-map .country.has-project:focus,
.africa-map .country.has-project.is-selected {
    fill: var(--accent);
}
.africa-map .country:not(.has-project) {
    cursor: pointer;
}
.africa-map .country:not(.has-project):hover {
    fill: #DDDFE5;
}

/* Footer line band — image strip that bleeds into the navy footer */
.line-band {
    background: var(--brand-deep);
    line-height: 0;
    padding: 0;
    width: 100%;
    overflow: hidden;
}
.line-band .line-band-img {
    width: 100%;
    height: 56px;
    overflow: hidden;
    background: var(--brand-deep);
    position: relative;
}
.line-band .line-band-img::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 8px;
    background: linear-gradient(to bottom, transparent, var(--brand-deep));
    pointer-events: none;
}
.line-band img {
    width: 100%;
    min-width: 100%;
    height: 56px;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0.95;
}

/* =================================================================
   LOGIN REDESIGN — branded, with PANEOTECH logo + decorative blobs
================================================================= */
.admin-login-page {
    background: linear-gradient(135deg, #0a0d12 0%, #14181f 100%);
    position: relative;
    overflow: hidden;
}
.login-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.login-bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}
.login-bg-blob--1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #122E5F 0%, transparent 70%);
    top: -150px; left: -150px;
    animation: blobFloat 24s ease-in-out infinite;
}
.login-bg-blob--2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #C8542A 0%, transparent 70%);
    bottom: -200px; right: -200px;
    animation: blobFloat 32s ease-in-out infinite reverse;
}
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, -60px); }
}
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 32px 64px -24px rgba(0,0,0,0.6);
}
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #F0F0F0;
}
.login-brand img {
    height: 36px;
    width: auto;
}
.login-brand p {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.login-brand strong {
    font-size: 18px;
    font-weight: 700;
    color: #101218;
    letter-spacing: 0.02em;
}
.login-brand small {
    font-size: 11px;
    color: #8A8F9C;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}
.login-heading {
    font-family: var(--ff-serif), serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 18px;
    text-align: center;
    color: #2E3340;
}
.login-tfa-intro {
    text-align: center;
    margin-bottom: 28px;
}
.login-tfa-intro > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: #E8EDF5;
    color: #122E5F;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 14px;
}
.login-tfa-intro h2 {
    font-family: var(--ff-serif), serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
}
.login-tfa-intro p {
    font-size: 13px;
    color: #5C6273;
    line-height: 1.6;
    max-width: 32ch;
    margin: 0 auto;
}
.login-cancel {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #8A8F9C;
}
.login-cancel:hover { color: #122E5F; }


/* ============================================
   v8.5 — New layouts and refined components
============================================ */

/* Beige page-hero variant — replaces the cold grey */
.page-hero--beige {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line-soft);
}

/* Page section soft (beige) */
.page-section--soft {
    background: var(--bg-soft);
}

/* Section heading utilities */
.section-h2 {
    font-family: var(--ff-serif);
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.05;
    margin-bottom: 12px;
    color: var(--ink);
    font-weight: 400;
}
.section-h2 em { color: var(--brand); font-style: italic; }
.section-lede {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 60ch;
    margin-bottom: 32px;
}
.section-head { margin-bottom: 32px; }

/* Breadcrumb light variant for over-image heroes */
.breadcrumb--light {
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumb--light a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb--light a:hover { color: #fff; }
.breadcrumb--light span { color: #fff; }

/* ============================================
   INSIGHT DETAIL — Rich article layout
============================================ */
.insight-hero {
    position: relative;
    background: var(--brand-deep);
    color: #fff;
    overflow: hidden;
    /* No fixed min-height; size to actual content */
}
.insight-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.insight-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.insight-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 31, 64, 0.55) 0%, rgba(11, 31, 64, 0.92) 100%);
}
.insight-hero-content {
    position: relative;
    z-index: 1;
    padding: calc(var(--header-h) + 32px) 0 56px;
    /* No max-width — title and content use full container width like other pages */
}
.insight-hero .breadcrumb {
    margin-bottom: 24px;
}
.insight-hero-excerpt {
    max-width: 720px; /* keep prose readable, but title goes full width */
}
.insight-hero-cat {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 22px;
    color: #fff;
}
.insight-hero-title {
    font-family: var(--ff-serif);
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 22px;
    font-weight: 400;
    /* No max-width; title uses full container width */
}
.insight-hero-excerpt {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 720px;
}
.insight-hero-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.insight-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.insight-meta-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 18px;
}
.insight-meta-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.insight-meta-author-label,
.insight-meta-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 2px;
}
.insight-meta-author-name,
.insight-meta-detail-value {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}
.insight-meta-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
}

/* Article body with sticky share rail */
.insight-article {
    padding: 48px 0 32px;
}
.insight-article-grid {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 40px;
    max-width: 880px;
    margin: 0 auto;
}
.insight-share {
    position: sticky;
    top: calc(var(--header-h, 80px) + 24px);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.insight-share-label {
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 8px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.insight-share a,
.insight-share button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    border: 0;
    cursor: pointer;
    font-size: 14px;
}
.insight-share a:hover,
.insight-share button:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

.insight-article-body {
    min-width: 0;
}

/* Tags */
.insight-tags {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.insight-tags-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    margin-bottom: 12px;
}
.insight-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.insight-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--brand-tint);
    color: var(--brand);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

/* Author card after article */
.insight-author-card {
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    align-items: start;
}
.insight-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-serif);
    font-style: italic;
    font-size: 32px;
}
.insight-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.insight-author-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    margin-bottom: 4px;
}
.insight-author-name {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.1;
    margin-bottom: 4px;
    color: var(--ink);
}
.insight-author-title {
    font-size: 13px;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-bottom: 12px;
}
.insight-author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 14px;
}
.insight-author-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.insight-author-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-muted);
    transition: color .15s ease;
}
.insight-author-links a:hover { color: var(--brand); }
.insight-author-links i { font-size: 14px; }

/* ============================================
   PROJECT DETAIL — Rich layout
============================================ */
.project-hero {
    position: relative;
    background: var(--brand-deep);
    color: #fff;
    overflow: hidden;
    /* No fixed min-height; size to content */
}
.project-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 31, 64, 0.85) 0%, rgba(11, 31, 64, 0.65) 50%, rgba(11, 31, 64, 0.92) 100%);
}
.project-hero-content {
    position: relative;
    z-index: 1;
    padding: calc(var(--header-h) + 32px) 0 56px;
}
.project-hero .breadcrumb {
    margin-bottom: 24px;
}
.project-hero-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    align-items: center;
}
.project-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.project-hero-title {
    font-family: var(--ff-serif);
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.05;
    color: #fff;
    margin-bottom: 22px;
    font-weight: 400;
    /* No max-width; title uses full container width */
}
.project-hero-summary {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
    max-width: 720px;
}
.project-hero-cta {
    margin-right: 12px;
}
.btn--ghost-light {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn--ghost-light:hover {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

/* Project body grid */
.project-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
}
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.project-meta-card,
.project-map-card,
.project-client-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.project-meta-h {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 6px;
}
.project-meta dl > div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 8px 0;
    align-items: start;
    border-bottom: 1px solid var(--line-soft);
}
.project-meta dl > div:last-child { border-bottom: 0; }
.project-meta dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.project-meta dd {
    font-size: 13px;
    color: var(--ink);
    word-break: break-word;
}
.project-meta-tech {
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 11.5px !important;
    line-height: 1.5;
}
.project-meta-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}
.btn--block { width: 100%; justify-content: center; }

.project-map {
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--brand-tint);
    margin-bottom: 10px;
}
.project-map iframe { width: 100%; height: 100%; }
.project-map-caption {
    font-size: 12px;
    color: var(--ink-faint);
    text-align: center;
}

.project-client-logo {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    aspect-ratio: 16/7;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.1);
}
.project-client-name {
    font-family: var(--ff-serif);
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 4px;
    color: var(--ink);
}
.project-client-sector {
    font-size: 12px;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-bottom: 12px;
}
.project-client-blurb {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink-muted);
    margin-bottom: 14px;
}
.project-client-link {
    font-size: 12px;
    font-weight: 500;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s ease;
}
.project-client-link:hover { gap: 8px; }

.project-body { min-width: 0; }
.project-quote {
    margin: 40px 0;
    padding: 32px 36px;
    background: var(--brand-tint);
    border-radius: var(--radius);
    position: relative;
}
.project-quote-mark {
    position: absolute;
    top: -8px;
    left: 24px;
    font-size: 64px;
    color: var(--brand);
    line-height: 1;
}
.project-quote p {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.4;
    color: var(--ink);
    font-style: italic;
    margin-bottom: 14px;
    padding-top: 16px;
}
.project-quote cite {
    font-size: 13px;
    color: var(--ink-muted);
    font-style: normal;
}

.project-section-h {
    font-family: var(--ff-serif);
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--ink);
}
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.project-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
}
.project-gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.project-gallery-item figcaption {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--ink-muted);
    background: var(--bg-soft);
}

/* Status chip refresh */
.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
}
.status-chip--lg { padding: 6px 14px; font-size: 12px; }
.status-chip[data-status="live"]        { background: var(--status-live-bg); color: var(--status-live); }
.status-chip[data-status="in-delivery"] { background: var(--status-progress-bg); color: var(--status-progress); }
.status-chip[data-status="In Delivery"] { background: var(--status-progress-bg); color: var(--status-progress); }
.status-chip[data-status="beta"]        { background: var(--status-beta-bg); color: var(--status-beta); }
.status-chip[data-status="archived"]    { background: var(--bg-deep); color: var(--ink-muted); }

/* ============================================
   CLIENT INDEX & DETAIL
============================================ */
.client-hero-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 24px;
}
.client-hero-logo {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -10px rgba(11, 31, 64, 0.15);
}
.client-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.client-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    list-style: none;
}
.client-hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border-radius: 999px;
    font-size: 13px;
    color: var(--ink);
    border: 1px solid var(--line);
}
.client-hero-meta li i {
    color: var(--brand);
    font-size: 14px;
}
.client-hero-meta li a {
    color: var(--brand);
    border-bottom: 1px solid currentColor;
}

.client-country-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.client-country-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}
.client-country-pill i { color: var(--brand); }
.client-country-count {
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    font-weight: 600;
}

/* Clients grid */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.client-card-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s ease;
}
.client-card-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -16px rgba(11, 31, 64, 0.18);
    border-color: var(--brand);
}
.client-card-tile-logo {
    aspect-ratio: 16/9;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.client-card-tile-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.15);
}
.client-card-tile-logo span {
    font-family: var(--ff-serif);
    font-size: 36px;
    color: var(--brand);
}
.client-card-tile-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.client-card-tile-body h3 {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 6px;
    color: var(--ink);
}
.client-card-tile-sector {
    font-size: 12px;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-bottom: 16px;
    flex: 1;
}
.client-card-tile-count {
    font-size: 13px;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    transition: color .15s ease;
}
.client-card-tile:hover .client-card-tile-count {
    color: var(--brand);
}
.client-card-tile-count i { transition: transform .15s ease; }
.client-card-tile:hover .client-card-tile-count i { transform: translateX(4px); }

/* ============================================
   TECH STACK — logo or Simple Icons fallback
============================================ */
.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    background: var(--bg-soft);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--ink);
    font-weight: 500;
    transition: all .15s ease;
}
.tech-pill:hover {
    background: #fff;
    box-shadow: 0 4px 14px -4px rgba(11, 31, 64, 0.15);
}
.tech-pill-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}
.tech-pill-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: ui-monospace, monospace;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 980px) {
    .insight-article-grid { grid-template-columns: 1fr; }
    .insight-share {
        position: static;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 24px;
    }
    .insight-share-label {
        writing-mode: horizontal-tb;
        transform: none;
        margin: 0;
        align-self: center;
        margin-right: 6px;
    }
    .project-grid { grid-template-columns: 1fr; }
    .project-sidebar { order: 2; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
    .client-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .client-hero-logo { max-width: 200px; }
}
@media (max-width: 640px) {
    .insight-hero-meta { flex-direction: column; align-items: flex-start; gap: 18px; }
    .insight-meta-divider { display: none; }
    .insight-author-card { grid-template-columns: 1fr; text-align: left; }
    .insight-author-avatar { margin-bottom: 8px; }
    .project-hero-tags { flex-wrap: wrap; }
    .project-gallery-grid { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: 1fr; }
}

/* ============================================
   v8.5 BATCH 2 — Real content layouts
============================================ */

/* About page stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.about-stat {
    padding: 28px 16px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.about-stat-num {
    font-family: var(--ff-serif);
    font-size: 56px;
    line-height: 1;
    color: var(--brand);
    font-weight: 400;
}
.about-stat-label {
    font-size: 13px;
    color: var(--ink-muted);
    font-weight: 500;
}

/* About divisions */
.about-divisions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.about-division {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all .2s ease;
}
.about-division:hover {
    border-color: var(--brand);
    box-shadow: 0 16px 40px -16px rgba(11, 31, 64, 0.18);
    transform: translateY(-3px);
}
.about-division-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
}
.about-division-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--brand);
    font-weight: 600;
}
.about-division-h {
    font-family: var(--ff-serif);
    font-size: 26px;
    line-height: 1.15;
    color: var(--ink);
    margin: 4px 0 8px;
}
.about-division p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.about-division-cta {
    margin-top: 16px;
    color: var(--brand);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .15s ease;
    font-size: 14px;
}
.about-division:hover .about-division-cta { gap: 10px; }

/* Why grid (used on about + careers) */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.why-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all .2s ease;
}
.why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -14px rgba(11, 31, 64, 0.16);
    border-color: var(--brand-tint);
}
.why-icon {
    font-size: 28px;
    color: var(--brand);
    margin-bottom: 14px;
    display: block;
}
.why-card h4 {
    font-family: var(--ff-serif);
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 500;
}
.why-card p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* Industries */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.industry-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all .15s ease;
    cursor: default;
}
.industry-tile:hover {
    border-color: var(--brand);
    background: var(--brand-tint);
    transform: translateY(-2px);
}
.industry-tile i {
    font-size: 24px;
    color: var(--brand);
}
.industry-tile span {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}

/* ============================================
   CONTACT PAGE
============================================ */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.office-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 28px;
    transition: all .2s ease;
}
.office-card:hover {
    border-color: var(--brand);
    box-shadow: 0 12px 32px -12px rgba(11, 31, 64, 0.18);
    transform: translateY(-2px);
}
.office-card--hq {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.office-card--hq .office-tag,
.office-card--hq .office-role,
.office-card--hq .office-address,
.office-card--hq .office-line { color: rgba(255, 255, 255, 0.85); }
.office-card--hq .office-line a,
.office-card--hq .office-address a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); }
.office-card--hq .office-line i,
.office-card--hq .office-address i { color: rgba(255, 255, 255, 0.7); }
.office-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.office-flag {
    font-size: 32px;
    line-height: 1;
}
.office-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    font-weight: 600;
    background: var(--brand-tint);
    padding: 5px 10px;
    border-radius: 999px;
}
.office-card--hq .office-tag {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.office-city {
    font-family: var(--ff-serif);
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 4px;
    color: inherit;
}
.office-role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    margin-bottom: 18px;
}
.office-address {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.office-address i {
    color: var(--brand);
    margin-top: 3px;
    flex-shrink: 0;
}
.office-line {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.office-line i {
    color: var(--brand);
    width: 14px;
}

/* Contact form layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}
.contact-info p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 16px 0 28px;
}
.contact-direct {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-direct li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-direct-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    border: 1px solid var(--line);
}
.contact-direct-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    font-weight: 500;
    margin-bottom: 2px;
}
.contact-direct li a {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    transition: color .15s ease;
}
.contact-direct li a:hover { color: var(--brand); }

/* Form */
.contact-form-wrap {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.contact-form label span {
    font-size: 12px;
    color: var(--ink-soft);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form input[type="file"] {
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(18, 46, 95, 0.12);
}
.contact-form textarea {
    resize: vertical;
    font-family: var(--ff-sans);
}
.form-row { display: grid; gap: 16px; }
.form-row--two { grid-template-columns: 1fr 1fr; }
.form-file input[type="file"] {
    padding: 8px;
    cursor: pointer;
    background: var(--bg-soft);
}
.form-error {
    background: #fde8e8;
    color: #9e2222;
    border: 1px solid #f5b7b7;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-footnote {
    font-size: 12px;
    color: var(--ink-faint);
    line-height: 1.5;
    margin-top: 6px;
}
.contact-success {
    background: #e5f4ed;
    color: #1FA86A;
    border: 1px solid #b3dac8;
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.contact-success i { font-size: 48px; margin-bottom: 12px; display: block; }
.contact-success h3 {
    font-family: var(--ff-serif);
    font-size: 24px;
    color: var(--ink);
    margin-bottom: 8px;
}
.contact-success p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* Careers */
.careers-notice {
    background: var(--brand-tint);
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    padding: 24px 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.careers-notice i {
    font-size: 24px;
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
}
.careers-notice h3 {
    font-family: var(--ff-serif);
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 8px;
}
.careers-notice p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 980px) {
    .about-stats        { grid-template-columns: repeat(2, 1fr); }
    .about-divisions    { grid-template-columns: 1fr; }
    .why-grid           { grid-template-columns: repeat(2, 1fr); }
    .industries-grid    { grid-template-columns: repeat(3, 1fr); }
    .offices-grid       { grid-template-columns: 1fr; }
    .contact-grid       { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .about-stats        { grid-template-columns: 1fr 1fr; }
    .why-grid           { grid-template-columns: 1fr; }
    .industries-grid    { grid-template-columns: repeat(2, 1fr); }
    .form-row--two      { grid-template-columns: 1fr; }
    .about-stat-num     { font-size: 44px; }
}

/* ============================================
   v8.5 BATCH 3 — Final polish
============================================ */

/* About division — image header */
.about-division-image {
    margin: -36px -32px 18px -32px;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.about-division-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.about-division:hover .about-division-image img {
    transform: scale(1.04);
}
.about-division { padding-top: 0 !important; overflow: hidden; }

/* Client hero — navy variant for inside .insight-hero */
.client-hero-grid--navy {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 24px;
}
.client-hero-grid--navy .client-hero-logo {
    background: #fff;
    border-radius: 14px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    box-shadow: 0 8px 32px -10px rgba(0,0,0,0.3);
}
.client-hero-grid--navy .client-hero-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.client-hero-meta--navy {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 0;
}
.client-hero-meta--navy li {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.client-hero-meta--navy li i { color: rgba(255, 255, 255, 0.6); }
.client-hero-meta--navy li a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
    text-underline-offset: 3px;
}
.client-hero-meta--navy li a:hover {
    text-decoration-color: #fff;
}

/* Contact hero — direct contact info inline */
.contact-hero-direct {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.contact-hero-direct a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s ease;
    text-decoration: none;
}
.contact-hero-direct a:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}
.contact-hero-direct a i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* btn--block */
.btn--block { display: flex; width: 100%; justify-content: center; }

/* Client logo container in detail page should ensure it fills */
.client-hero-grid--navy .client-hero-logo img[src*=".svg"],
.client-hero-grid--navy .client-hero-logo img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
}

/* Make sure responsive on the new grid */
@media (max-width: 980px) {
    .client-hero-grid--navy {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .client-hero-grid--navy .client-hero-logo {
        max-width: 200px;
    }
    .about-division-image { margin: -28px -28px 14px; }
}

/* ============================================
   v9 BATCH 4 — Project sidebar redesign
============================================ */

/* Side cards */
.project-side-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px;
    margin-bottom: 18px;
}
.project-side-card .project-meta-h {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.project-side-card .project-meta-h i { font-size: 13px; }

/* Clients list */
.project-clients-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.project-client-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.project-client-row-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
}
.project-client-row-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.project-client-row-logo--placeholder i {
    color: var(--ink-muted);
    font-size: 18px;
}
.project-client-row-text { flex: 1; min-width: 0; }
.project-client-row-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
}
.project-client-row-name a {
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease;
}
.project-client-row-name a:hover { border-bottom-color: var(--brand); color: var(--brand); }
.project-client-row-role {
    font-size: 11px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Expertise pills */
.project-expertise-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.project-expertise-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--brand-tint);
    color: var(--brand);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    transition: all .15s ease;
    border: 1px solid transparent;
}
.project-expertise-pill:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
}
.project-expertise-pill i { font-size: 13px; }

/* Tech pills (small chips) */
.project-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.project-tech-pill {
    display: inline-block;
    padding: 5px 10px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--ink-soft);
    font-family: var(--ff-mono, ui-monospace, 'SF Mono', Monaco, monospace);
}

/* Country-shape SVG card */
.project-country-shape {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 18px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.country-shape-svg {
    width: 100%;
    height: 100%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(18, 46, 95, 0.18));
}
.project-map-caption {
    margin-top: 12px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.project-map-caption i { color: var(--brand); }

/* Hero secondary CTA (lighter) */
.btn--ghost-light {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #fff;
}
.btn--ghost-light:hover {
    background: #fff;
    color: var(--brand-deep);
    border-color: #fff;
}

/* Hero actions row */
.project-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* Status chip in hero */
.status-chip--hero {
    background: rgba(255, 255, 255, 0.92);
}

/* Body column */
.project-body-col {
    min-width: 0; /* prevent overflow in grid */
}

/* Solution cards in Explore-other-solutions — smaller image */
.article--solution .article-image--logo {
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    aspect-ratio: 16/9;
}
.article--solution .article-image--logo img {
    max-width: 50%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .3s ease;
}
.article--solution:hover .article-image--logo img {
    transform: scale(1.05);
}

/* Offices strip on About page */
.offices-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.offices-strip-card {
    padding: 28px 24px 24px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: all .2s ease;
}
.offices-strip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -16px rgba(16, 18, 24, 0.12);
}
.offices-strip-card--hq {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}
.offices-strip-card--hq h3 { color: #fff; }
.offices-strip-card--hq .offices-tag,
.offices-strip-card--hq .offices-region {
    color: rgba(255, 255, 255, 0.85);
}
.offices-flag {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}
.offices-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    font-weight: 600;
    margin-bottom: 6px;
}
.offices-strip-card h3 {
    font-family: var(--ff-serif);
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 4px;
}
.offices-region {
    font-size: 13px;
    color: var(--ink-muted);
}
@media (max-width: 900px) {
    .offices-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .offices-strip { grid-template-columns: 1fr; }
}

/* Our Approach steps */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.approach-step {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--line);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.approach-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -16px rgba(16, 18, 24, 0.10);
}
.approach-step-num {
    display: block;
    font-family: var(--ff-serif);
    font-size: 36px;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 14px;
    font-weight: 400;
}
.approach-step h4 {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--ink);
}
.approach-step p {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-soft);
}
@media (max-width: 800px) {
    .approach-steps { grid-template-columns: 1fr; }
}

/* Partner cards */
.partner-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s ease;
    text-decoration: none;
    color: inherit;
}
.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -16px rgba(11, 31, 64, 0.18);
    border-color: var(--brand);
}
.partner-card-logo {
    aspect-ratio: 16/9;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.partner-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.15);
}
.partner-card-logo i {
    font-size: 56px;
    color: var(--brand);
    opacity: 0.5;
}
.partner-card-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.partner-card-body h3 {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 6px;
    color: var(--ink);
}
.partner-card-meta {
    font-size: 12px;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.partner-card-blurb {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 14px;
}
.partner-card-link {
    font-size: 13px;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    transition: color .15s ease;
}
.partner-card:hover .partner-card-link {
    color: var(--brand);
}
.partner-card-link i { font-size: 11px; }

/* ============================================
   HEADER RESPONSIVENESS — fit nav at intermediate widths
============================================ */
@media (max-width: 1280px) {
    .nav-link { padding: 8px 12px; font-size: 13px; gap: 6px; }
    .nav-link i:first-child { font-size: 14px; }
    .nav-list { gap: 2px; }
}
@media (max-width: 1180px) {
    .nav-link { padding: 7px 10px; font-size: 12.5px; }
    .nav-link i:first-child { display: none; } /* hide icon on tight nav */
}

/* Inline client logo in map panel meta row */
.pc-client-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pc-client-logo-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--line);
    flex-shrink: 0;
    padding: 2px;
}
.pc-client-logo-inline img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ============================================
   WHERE MODULE — single / multi-country / continental
============================================ */
.project-where-module {
    width: 100%;
}
.where-continental {
    margin-bottom: 16px;
}
.where-africa-map {
    width: 100%;
    height: auto;
    max-height: 280px;
    display: block;
    margin-bottom: 12px;
}
.where-country {
    fill: #E8E6E0;
    stroke: #fff;
    stroke-width: 0.6;
}
.where-country--active {
    fill: var(--brand-deep);
}
.where-country-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.where-country-grid--multi {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    margin-top: 0;
}
.where-country-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: transform .15s ease, border-color .15s ease;
}
.where-country-card:hover {
    transform: translateY(-1px);
    border-color: var(--brand);
}
.where-country-svg {
    width: 100%;
    max-height: 70px;
    display: block;
    margin: 0 auto 8px;
}
.where-country-svg--big {
    max-height: 180px;
    margin-bottom: 14px;
}
.where-country-label {
    font-size: 12px;
    color: var(--ink);
    font-weight: 500;
    margin: 0;
}
.where-single {
    text-align: center;
}
.where-caption {
    font-size: 13px;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}
.where-caption i {
    color: var(--brand);
}

/* Continental fill: entire Africa painted navy */
.where-country--continental {
    fill: var(--brand-deep);
    stroke: rgba(255,255,255,0.5);
    stroke-width: 0.6;
}
.where-host-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin: 16px 0 10px;
}


/* =================================================================
   RESPONSIVE FOUNDATION — added v10
   Breakpoints: 1200 / 900 / 600 / 400
   This block sits AFTER all earlier rules so it wins on equal specificity.
   It establishes a baseline for the whole site so every page (existing
   and future) reflows on tablet, mobile, and small mobile.
================================================================= */

/* ─── Fluid tokens at each breakpoint ────────────────────────────
   By scaling --gutter and --section-y at the :root level, every rule
   that uses these variables (containers, paddings, etc.) reflows
   automatically — no need to override individual selectors.
*/
@media (max-width: 1200px) {
    :root {
        --container: 100%;
        --gutter:    28px;
        --section-y: 56px;
    }
}
@media (max-width: 900px) {
    :root {
        --gutter:    24px;
        --section-y: 48px;
        --header-h:  72px;
    }
    body { font-size: 15.5px; }
}
@media (max-width: 600px) {
    :root {
        --gutter:    18px;
        --section-y: 40px;
        --header-h:  64px;
        --radius:    14px;
    }
    body { font-size: 15px; }
}
@media (max-width: 400px) {
    :root {
        --gutter:    14px;
        --section-y: 32px;
    }
}

/* ─── Header chrome ──────────────────────────────────────────────
   Below 900px: hide desktop nav, show burger, allow header bar
   to stretch full width without the pill curvature feeling cramped.
*/
@media (max-width: 900px) {
    .header-bar {
        height: 56px;
        padding: 0 18px;
        border-radius: var(--radius-pill);
    }
    .primary-nav { display: none; }
    .burger { display: inline-flex; align-items: center; justify-content: center; }
    .logo-image { height: 22px; }
}
@media (max-width: 600px) {
    #sp-header { padding: 0 14px; }
    .header-bar { padding: 0 14px; height: 52px; }
    .logo-image { height: 20px; }
}

/* Mobile drawer is already styled, but ensure it sits below header
   correctly when --header-h shrinks. Body scroll lock is handled by
   site.js (sets body.style.overflow on burger toggle). */
.mobile-menu { inset: var(--header-h) 0 0 0; }
@media (min-width: 901px) {
    .mobile-menu { display: none; }
}

/* ─── Wrap / container ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .wrap { padding: 0 var(--gutter); }
}

/* ─── Page heroes ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .page-hero { padding: calc(var(--header-h) + 40px) 0 40px; }
    .page-hero h1 { font-size: clamp(34px, 7vw, 54px); }
    .page-hero .lede { font-size: 16px; }
}
@media (max-width: 600px) {
    .page-hero { padding: calc(var(--header-h) + 32px) 0 32px; }
    .page-hero h1 { font-size: clamp(30px, 9vw, 40px); margin-bottom: 14px; }
    .page-hero .lede { font-size: 15px; }
    .page-hero .breadcrumb { font-size: 11px; margin-bottom: 18px; flex-wrap: wrap; }
}

/* Hero (homepage video hero) */
@media (max-width: 900px) {
    .hero { min-height: 560px; height: auto; padding: 100px 0 60px; }
}
@media (max-width: 600px) {
    .hero { min-height: 480px; padding: 90px 0 50px; }
}

/* ─── Section headings ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .section-h2 { font-size: clamp(28px, 5vw, 44px); }
}
@media (max-width: 600px) {
    .section-h2 { font-size: clamp(26px, 7vw, 34px); }
    .section-lede { font-size: 15px; }
    .section-head { margin-bottom: 24px; }
}

/* ─── Generic page section padding ─────────────────────────────── */
@media (max-width: 900px) {
    .page-section { padding: 48px 0; }
}
@media (max-width: 600px) {
    .page-section { padding: 36px 0; }
}

/* ─── Grid stacking (universal escape-hatch system) ───────────────
   At <= 900px: any grid with 3+ columns drops to 2 columns.
   At <= 600px: any grid drops to 1 column unless it has .no-stack.
   This catches the dozens of grids used across the site without
   needing per-page rules. Specific layouts can opt out with .no-stack
   or be tuned with their own rules below this block.
*/
@media (max-width: 900px) {
    /* 3+ col grids → 2 col */
    .grid-3, .grid-4, .grid-5, .grid-6,
    .clients-grid, .partners-grid, .team-grid,
    .insight-grid, .insights-grid, .projects-grid,
    .solutions-grid, .expertise-grid, .services-grid,
    .tech-grid, .stats-grid, .pillars-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* footer 4 col → 2 col */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 600px) {
    /* Everything stacks unless explicitly opted out */
    .grid-2, .grid-3, .grid-4, .grid-5, .grid-6,
    .clients-grid, .partners-grid, .team-grid,
    .insight-grid, .insights-grid, .projects-grid,
    .solutions-grid, .expertise-grid, .services-grid,
    .pillars-grid, .stats-grid, .footer-grid,
    .two-col, .three-col, .split-grid {
        grid-template-columns: 1fr !important;
    }
    /* tech/logo grids stay multi-col but tighter */
    .tech-grid, .clients-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
    }
}
@media (max-width: 400px) {
    .tech-grid, .clients-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ─── Two-column splits (text + image / sidebar layouts) ───────── */
@media (max-width: 900px) {
    .split,
    .two-col-split,
    .text-image,
    .image-text,
    .detail-layout,
    .article-layout {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }
    /* sidebar after content on mobile */
    .detail-sidebar, .article-sidebar { order: 2; }
}

/* ─── Footer ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .footer-main { padding: 32px 0 20px; }
    .footer-tagline-headline { font-size: 22px; }
    .footer-base {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
    }
    .footer-social { justify-content: center; }
}

/* ─── Forms (contact, start-a-project, careers) ─────────────────── */
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr !important; gap: 14px; }
    input, textarea, select { font-size: 16px; } /* prevents iOS auto-zoom */
    .btn { padding: 12px 20px; font-size: 14px; }
    .btn--block { width: 100%; }
}

/* ─── Buttons that should expand on tiny screens ────────────────── */
@media (max-width: 400px) {
    .btn-row, .cta-row, .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-row .btn, .cta-row .btn, .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Tables (admin or content tables) ──────────────────────────── */
@media (max-width: 600px) {
    table { font-size: 14px; }
    .table-wrap, .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ─── Horizontal scrollers (on small screens, let pill-rows scroll) */
@media (max-width: 600px) {
    .pill-row, .filter-pills, .tag-row, .breadcrumb {
        flex-wrap: wrap;
    }
}

/* ─── Africa map (homepage and project pages) ──────────────────── */
@media (max-width: 900px) {
    .where-map-wrapper, .africa-map-wrap {
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .where-host-label { font-size: 10px; }
}

/* ─── Mega-menu fallback ────────────────────────────────────────── */
@media (max-width: 900px) {
    .mega-menu { display: none !important; } /* desktop-only */
}

/* ─── Project / insight / client detail pages ──────────────────── */
@media (max-width: 900px) {
    .project-hero-title, .insight-hero-title {
        font-size: clamp(30px, 6vw, 52px);
    }
}
@media (max-width: 600px) {
    .project-hero-title, .insight-hero-title {
        font-size: clamp(26px, 8vw, 36px);
    }
    .project-hero-content, .insight-hero-content {
        padding: calc(var(--header-h) + 32px) 0 32px;
    }
}

/* ─── Image safety net ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .hero-image, .hero-img,
    .lab-image, .consulting-image,
    .about-image {
        max-height: 320px;
        object-fit: cover;
    }
}

/* ─── Typography utility scaling ────────────────────────────────── */
@media (max-width: 600px) {
    h1 { font-size: clamp(28px, 8vw, 38px); }
    h2 { font-size: clamp(22px, 5.5vw, 30px); }
    h3 { font-size: clamp(18px, 4.5vw, 22px); }
    p { font-size: 15px; }
    .lede { font-size: 16px; }
}

/* End responsive foundation */

/* =================================================================
   IMAGE SAFETY NET — graceful handling of missing/broken images
   Note: we deliberately do NOT apply a global background to <img>.
   That would tint transparent logos (clients, partners, tech).
   Only the placeholders themselves get a soft fill so they look intentional.
================================================================= */
img[src$="placeholder.svg"],
img[src$="placeholder-logo.svg"],
img[src$="placeholder-person.svg"] {
    background: var(--bg-soft);
    opacity: 0.85;
}

img:not([src]),
img[src=""] {
    visibility: hidden;
}
/* End image safety net */
/* =====================================================================
   PROJECT BODY SECTIONS - RICH CONTENT COMPONENTS
   Append to assets/css/site.css
   These classes are used inside the .project-body-col / .article-prose
   to break long bodies into rich, sectioned content that fills the column
   width without leaving large white space next to the sidebar.
   ===================================================================== */

/* Override article-prose max-width INSIDE the project body so rich
   sections can use the full column width, while plain prose stays
   readable thanks to the .pb-prose helper below. */
.project-body-col .article-prose {
    max-width: none;
}

/* Reading-width wrapper for long-form paragraphs inside the project body.
   Apply this to <div> blocks that contain only paragraphs. */
.pb-prose {
    max-width: 72ch;
}

/* Section header used between rich blocks inside a project body */
.pb-section-head {
    margin: 48px 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.pb-section-head:first-child { margin-top: 0; }
.pb-section-head .pb-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}
.pb-section-head h2 {
    font-family: var(--ff-serif);
    font-size: 30px;
    line-height: 1.15;
    margin: 0;
    color: var(--ink);
    font-weight: 400;
}
.pb-section-head h2 em {
    font-style: italic;
    color: var(--accent);
}

/* Callout / pull-quote (used for key facts, programme context, etc.) */
.pb-callout {
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    margin: 24px 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
}
.pb-callout p { margin: 0; }
.pb-callout p + p { margin-top: 12px; }
.pb-callout strong { color: var(--ink); }

/* Feature grid (2 columns) for "what we built" capabilities */
.pb-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 24px 0;
}
.pb-feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pb-feature:hover {
    border-color: var(--brand-tint);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -14px rgba(11, 31, 64, 0.16);
}
.pb-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.pb-feature h4 {
    font-family: var(--ff-serif);
    font-size: 19px;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 8px;
    font-weight: 500;
}
.pb-feature p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-muted);
    margin: 0;
}

/* Numbered step list (architecture / workflow) */
.pb-steps {
    counter-reset: pb-step;
    display: grid;
    gap: 14px;
    margin: 24px 0;
}
.pb-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: start;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.pb-step::before {
    counter-increment: pb-step;
    content: counter(pb-step, decimal-leading-zero);
    font-family: var(--ff-serif);
    font-size: 28px;
    color: var(--brand);
    line-height: 1;
    padding-top: 2px;
}
.pb-step-body h4 {
    font-family: var(--ff-serif);
    font-size: 18px;
    line-height: 1.2;
    margin: 0 0 6px;
    color: var(--ink);
    font-weight: 500;
}
.pb-step-body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
}

/* Stat strip (numbers / KPIs) */
.pb-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0;
    padding: 24px;
    background: var(--bg-soft);
    border-radius: var(--radius);
}
.pb-stat { text-align: center; }
.pb-stat-num {
    display: block;
    font-family: var(--ff-serif);
    font-size: 38px;
    line-height: 1;
    color: var(--brand);
    font-weight: 400;
    margin-bottom: 4px;
}
.pb-stat-label {
    font-size: 12px;
    color: var(--ink-muted);
    line-height: 1.4;
}

/* Channel / capability chips (richer than tech-pill, with icon) */
.pb-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}
.pb-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--ink-soft);
}
.pb-chip i { color: var(--brand); }

/* Inline CTA at the foot of an insight body */
.pb-cta {
    margin: 36px 0 8px;
    padding: 28px 28px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius);
}
.pb-cta h4 {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 500;
}
.pb-cta p {
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.85);
    margin: 0 0 14px;
}
.pb-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pb-cta-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s ease;
}
.pb-cta-links a:hover {
    background: rgba(255,255,255,0.22);
}

/* Responsive */
@media (max-width: 900px) {
    .pb-feature-grid { grid-template-columns: 1fr; }
    .pb-stats        { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .pb-step         { grid-template-columns: 40px 1fr; gap: 12px; }
    .pb-step::before { font-size: 22px; }
    .pb-stats        { grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
    .pb-stat-num     { font-size: 30px; }
    .pb-section-head h2 { font-size: 24px; }
}
/* =====================================================================
   INSIGHT PAGE - RELATED PROJECT & CLIENT DISPLAY
   Append to assets/css/site.css
   Two components added on the insight detail page:
     1. .insight-context-strip  (top of body, lightweight context line)
     2. .insight-projects-block (after tags, rich linked card to project)
   ===================================================================== */

/* --- Top context strip ------------------------------------------------ */
.insight-context-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 14px 18px;
    margin-bottom: 28px;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
}
.insight-context-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.insight-context-sep {
    color: var(--ink-faint);
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    opacity: 0.7;
}
.insight-context-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
}
.insight-context-item i {
    color: var(--accent);
    font-size: 13px;
}
.insight-context-item a {
    color: var(--ink);
    border-bottom: 1px solid transparent;
    transition: border-color .15s ease, color .15s ease;
    font-weight: 500;
}
.insight-context-item a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- Featured related-project block (after tags) --------------------- */
.insight-projects-block {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.insight-projects-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    margin-bottom: 16px;
}
.insight-project-cards {
    display: grid;
    gap: 18px;
}
.insight-project-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.insight-project-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-tint);
    box-shadow: 0 16px 36px -16px rgba(11, 31, 64, 0.18);
}
.insight-project-card-img {
    overflow: hidden;
    background: var(--bg-soft);
    aspect-ratio: 4 / 3;
}
.insight-project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.insight-project-card:hover .insight-project-card-img img {
    transform: scale(1.04);
}
.insight-project-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
.insight-project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12px;
    color: var(--ink-muted);
    margin-bottom: 4px;
}
.insight-project-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.insight-project-card-meta i {
    color: var(--brand);
    font-size: 12px;
}
.insight-project-card-title {
    font-family: var(--ff-serif);
    font-size: 22px;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
    font-weight: 500;
    transition: color .15s ease;
}
.insight-project-card:hover .insight-project-card-title {
    color: var(--accent);
}
.insight-project-card-excerpt {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.insight-project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
}
.insight-project-card-link i {
    transition: transform .2s ease;
}
.insight-project-card:hover .insight-project-card-link i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 700px) {
    .insight-project-card {
        grid-template-columns: 1fr;
    }
    .insight-project-card-img {
        aspect-ratio: 16 / 9;
    }
    .insight-context-strip {
        padding: 12px 14px;
        font-size: 12.5px;
    }
}
/* =====================================================================
   PB-TABS COMPONENT
   Append to assets/css/web_addendum.css.
   Used inside the project body for compact, tabbed presentations of
   research components, methodology phases, and other parallel content
   that does not need to be displayed all at once.
   ===================================================================== */

.pb-tabs {
    margin: 32px 0 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}

.pb-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.pb-tab-btn {
    flex: 1 1 0;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--line);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.3;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pb-tab-btn:last-child {
    border-right: none;
}
.pb-tab-btn:hover {
    background: rgba(11, 31, 64, 0.03);
    color: var(--ink);
}
.pb-tab-btn.is-active {
    background: #fff;
    color: var(--ink);
    border-bottom-color: var(--accent);
}

.pb-tab-num {
    font-family: var(--ff-serif, Georgia, serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--accent);
    flex-shrink: 0;
    min-width: 28px;
}
.pb-tab-btn.is-active .pb-tab-num {
    color: var(--accent);
}

.pb-tab-label {
    font-weight: 500;
    flex: 1;
}

.pb-tabs-panels {
    padding: 0;
    background: #fff;
}

.pb-tab-panel {
    display: none;
    padding: 28px 30px;
    animation: pbTabFade .25s ease;
}
.pb-tab-panel.is-active {
    display: block;
}

.pb-tab-panel h4 {
    font-family: var(--ff-serif, Georgia, serif);
    font-size: 22px;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 12px;
    font-weight: 500;
}

.pb-tab-panel p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 14px;
}
.pb-tab-panel p:last-child {
    margin-bottom: 0;
}

@keyframes pbTabFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive: stack the tab buttons on narrow viewports */
@media (max-width: 760px) {
    .pb-tabs-nav {
        flex-direction: column;
    }
    .pb-tab-btn {
        flex: 1 1 auto;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid var(--line);
        border-left: 3px solid transparent;
    }
    .pb-tab-btn:last-child {
        border-bottom: none;
    }
    .pb-tab-btn.is-active {
        border-bottom-color: var(--line);
        border-left-color: var(--accent);
    }
    .pb-tab-panel {
        padding: 22px 18px;
    }
}
/* =====================================================================
   HOMEPAGE MAP MODULE — v2 redesign (client up top, prev/next switcher)
   Append-only. Does NOT modify any earlier rules.
   Scope: .projects-map (homepage map) — only.
   The legacy .project-pill-tabs-row rules are LEFT INTACT for any
   page that still uses them. The new switcher uses .project-switcher.
   ===================================================================== */

/* --- Section padding tightened on this module only -------------------- */
.projects-map {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* --- Compact head: title row + inline search ------------------------- */
.map-head--compact {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    text-align: left;
    max-width: none;
    margin: 0 auto 24px;
}
.map-head--compact .map-head-text { min-width: 0; }
.map-head--compact .eyebrow { margin-bottom: 6px; }
.map-head--compact h2 {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.05;
    margin: 0;
}
.map-head--compact .map-search {
    margin: 0;
    max-width: 360px;
    width: 360px;
    flex-shrink: 0;
}
.map-head--compact .map-search-inner {
    padding: 8px 14px;
}
.map-head--compact .map-search-inner input {
    font-size: 14px;
}

/* --- Map frame & layout: smaller, matches card height --------------- */
.projects-map .map-frame {
    height: 560px;
    padding: 16px;
    box-shadow: 0 2px 8px -3px rgba(16, 18, 24, 0.04);
}
.projects-map .africa-map {
    max-width: 520px;
    max-height: 520px;
}
.projects-map .map-side {
    width: 580px;
    min-width: 580px;
    max-width: 580px;
}
.projects-map .map-layout {
    grid-template-columns: 580px minmax(0, 1fr);
    align-items: stretch;
}

/* --- Project card: imageless layout --------------------------------- */
.project-card.project-card--imageless {
    min-height: 0;
    height: 560px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hero strip — TOP: client (logo + name) — RIGHT: country / year / status */
.project-card--imageless .project-card-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
/* Project logo tile sits column 1, spanning both rows */
.project-card--imageless .project-card-hero .project-logos {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
}
.project-card--imageless .project-card-hero .project-logo-tile {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    padding: 6px;
}
/* Row 1, column 2: client logo + client name (the client row, now upper) */
.project-card--imageless .project-card-hero-client {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.project-card--imageless .project-card-hero-client .pc-client-logo-inline {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.project-card--imageless .project-card-hero-client .pc-client-logo-inline img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.project-card--imageless .project-card-hero-client .pc-client-name {
    font-size: 13px;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
/* Row 2, column 2: country · year · status */
.project-card--imageless .project-card-hero-meta {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.project-card--imageless .project-card-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.project-card--imageless .project-card-loc i {
    color: var(--accent);
    font-size: 12px;
}
.project-card--imageless .project-card-loc-sep {
    color: var(--ink-faint);
    margin: 0 2px;
}
.project-card--imageless .project-card-hero-meta .project-status {
    margin-left: auto;
}

/* Body: title, summary, meta (sector + technology only), actions */
.project-card--imageless .project-body {
    padding: 22px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.project-card--imageless .project-title {
    font-family: var(--ff-serif);
    font-size: 26px;
    line-height: 1.12;
    color: var(--ink);
    margin: 0;
    font-weight: 400;
}
.project-card--imageless .project-summary {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta — sector first, technology last. No bottom border, no leftover space. */
.project-card--imageless .project-meta--rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    margin: 0;
}
.project-card--imageless .project-meta-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.project-card--imageless .project-meta-row dt {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    margin: 0;
}
.project-card--imageless .project-meta-row dt i {
    color: var(--accent);
    font-size: 10px;
}
.project-card--imageless .project-meta-row dd {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.4;
    margin: 0;
}
.project-card--imageless .project-meta-row--tech dd {
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 11.5px;
    color: var(--ink-soft);
    letter-spacing: -0.01em;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Actions — sit tight against the meta block, no wasted vertical space */
.project-card--imageless .project-actions {
    margin-top: 4px;
    padding-top: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.project-card--imageless .project-actions .btn {
    font-size: 12px;
    padding: 10px 16px;
}

/* --- New country switcher: prev/next + counter ----------------------- */
/* Replaces the horizontal scroll pill row with a clean prev/next bar.   */
.project-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    flex-shrink: 0;
}
.project-switcher-headline {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    flex: 1;
    min-width: 0;
}
.project-switcher-headline i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}
.project-switcher-headline-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-switcher-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.project-switcher-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.project-switcher-btn i { font-size: 12px; }
.project-switcher-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}
.project-switcher-btn:active:not(:disabled) {
    transform: scale(0.94);
}
.project-switcher-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.project-switcher-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    min-width: 56px;
    justify-content: center;
}
.project-switcher-counter-current {
    color: #fff;
}
.project-switcher-counter-sep {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}
.project-switcher-counter-total {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* --- Responsive ------------------------------------------------------- */
@media (max-width: 1100px) {
    .map-head--compact { grid-template-columns: 1fr; }
    .map-head--compact .map-search { width: 100%; max-width: 480px; }
    .projects-map .map-layout { grid-template-columns: 1fr; }
    .projects-map .map-side { width: 100%; min-width: 0; max-width: 100%; position: static; }
    .projects-map .map-frame { width: 100%; height: 480px; }
    .projects-map .africa-map { max-width: 440px; max-height: 440px; }
    .project-card.project-card--imageless { height: auto; min-height: 0; }
    .project-card--imageless .project-body { overflow-y: visible; }
}
@media (max-width: 700px) {
    .project-card--imageless .project-body { padding: 20px 18px 18px; }
    .project-card--imageless .project-title { font-size: 22px; }
    .project-card--imageless .project-card-hero {
        grid-template-columns: auto 1fr;
        column-gap: 12px;
    }
    .project-card--imageless .project-card-hero-meta {
        gap: 8px;
    }
    .project-card--imageless .project-card-hero-meta .project-status {
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    .projects-map .map-frame { height: 380px; padding: 12px; }
    .projects-map .africa-map { max-width: 340px; max-height: 340px; }
    .map-head--compact h2 { font-size: 26px; }
    .project-card--imageless .project-card-hero { padding: 12px 14px; }
    .project-switcher { padding: 8px 12px; }
    .project-switcher-headline { font-size: 10.5px; }
    .project-switcher-btn { width: 26px; height: 26px; }
}

/* =====================================================================
   HOMEPAGE MAP MODULE — v3 hero (big client logo on left)
   Append-only. Overrides specific v2 hero rules without removing them.
   Layout:
     - LEFT: big client logo tile (76x76), the visual anchor.
     - RIGHT TOP: full client name (wrappable, not truncated).
     - RIGHT BOTTOM: country dot year dot status pill.
     - Tiny project logo badge sits as a sub-badge in the bottom-right
       corner of the big tile, so the project identity is still present.
   ===================================================================== */

/* Hero grid: ONE big tile on the left, content stack on the right. */
.project-card--imageless .project-card-hero {
    grid-template-columns: 76px 1fr;
    column-gap: 16px;
    row-gap: 6px;
    padding: 16px 18px;
    align-items: center;
}

/* Project-logos wrapper now holds ONE big tile (the client logo by default,
   project logo as fallback). It spans both rows and is the anchor. */
.project-card--imageless .project-card-hero .project-logos {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: relative;
    width: 76px;
    height: 76px;
}

/* The big tile itself */
.project-card--imageless .project-card-hero .project-logo-tile {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px -3px rgba(16, 18, 24, 0.06);
}
.project-card--imageless .project-card-hero .project-logo-tile img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Tiny project logo badge: sub-badge in the bottom-right corner of the tile.
   Visible ONLY when the big tile is showing the client logo. */
.project-card--imageless .project-logo-badge {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px -2px rgba(16, 18, 24, 0.18);
    z-index: 2;
}
.project-card--imageless .project-logo-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.project-card--imageless .project-logo-badge[hidden] {
    display: none;
}

/* RIGHT TOP: client name now gets full width and may wrap to 2 lines. */
.project-card--imageless .project-card-hero-client {
    grid-column: 2;
    grid-row: 1;
    display: block;
    min-width: 0;
}
.project-card--imageless .project-card-hero-client .pc-client-logo-inline {
    display: none; /* the big logo on the left replaces this */
}
.project-card--imageless .project-card-hero-client .pc-client-name {
    display: block;
    font-size: 15px;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 600;
    font-family: var(--ff-serif);
    white-space: normal;            /* allow wrap */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* cap at 2 lines */
    -webkit-box-orient: vertical;
    word-break: break-word;
}

/* RIGHT BOTTOM: country dot year + status pill */
.project-card--imageless .project-card-hero-meta {
    grid-column: 2;
    grid-row: 2;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

/* When the big tile has no client logo (project logo fallback), hide the badge */
.project-card--imageless .project-logos.no-client-logo .project-logo-badge {
    display: none;
}

/* Responsive tweaks for the new hero */
@media (max-width: 700px) {
    .project-card--imageless .project-card-hero {
        grid-template-columns: 64px 1fr;
        column-gap: 12px;
        padding: 14px 14px;
    }
    .project-card--imageless .project-card-hero .project-logos,
    .project-card--imageless .project-card-hero .project-logo-tile {
        width: 64px;
        height: 64px;
    }
    .project-card--imageless .project-logo-badge {
        width: 22px;
        height: 22px;
        bottom: -5px;
        right: -5px;
    }
    .project-card--imageless .project-card-hero-client .pc-client-name {
        font-size: 14px;
    }
}

/* =====================================================================
   HOMEPAGE MAP MODULE — v4: description back, tech out, scroll on summary
   Append-only. Overrides specific v2/v3 body rules without removing them.

   Layout rules:
     - Hero, switcher, title, sector, actions are FIXED (do not scroll).
     - The DESCRIPTION (.project-summary) is the only scrollable region.
     - Tech stack row is hidden.
     - Client name is now a link (.pc-client-link) to /clients/{slug}.
   ===================================================================== */

/* Body becomes a non-scrolling flex column. Internal scroll moves to summary. */
.project-card--imageless .project-body {
    overflow-y: visible;        /* was: auto */
    padding: 22px 24px 22px;
    gap: 12px;
}

/* Title fixed */
.project-card--imageless .project-title {
    flex-shrink: 0;
}

/* SECTOR stays as a single fixed row above the description */
.project-card--imageless .project-meta--rows {
    flex-shrink: 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    order: 2;                   /* sector sits above description */
}

/* Hide the technology row entirely on the map card */
.project-card--imageless .project-meta-row--tech {
    display: none;
}

/* DESCRIPTION: this is the scrollable region, takes remaining vertical space */
.project-card--imageless .project-summary {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;          /* breathing room for the scrollbar */
    order: 3;                    /* description below sector */
    /* override the previous 4-line clamp so full text is reachable */
    -webkit-line-clamp: unset;
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Subtle scrollbar styling for the summary */
.project-card--imageless .project-summary::-webkit-scrollbar {
    width: 6px;
}
.project-card--imageless .project-summary::-webkit-scrollbar-track {
    background: transparent;
}
.project-card--imageless .project-summary::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 3px;
}
.project-card--imageless .project-summary::-webkit-scrollbar-thumb:hover {
    background: var(--ink-faint);
}
.project-card--imageless .project-summary {
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

/* Actions fixed at the bottom */
.project-card--imageless .project-actions {
    flex-shrink: 0;
    margin-top: 4px;
    order: 4;
}

/* Title order */
.project-card--imageless .project-title {
    order: 1;
}

/* Client name as a link */
.project-card--imageless .pc-client-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.project-card--imageless .pc-client-link:hover,
.project-card--imageless .pc-client-link:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
    outline: none;
}

/* =====================================================================
   HOMEPAGE MAP MODULE — v4 fix: encoding-safe separators
   The middle-dot (·) between country and year was rendering as a missing
   glyph on some setups due to charset mismatches. We now render the
   separator with CSS (a 3px circular dot) instead of a Unicode character,
   and HIDE the literal text dot so it cannot fail to render.
   ===================================================================== */

/* Hide the literal dot from the HTML — CSS draws a clean dot instead */
.project-card--imageless .project-card-loc-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 6px;
    border-radius: 50%;
    background: var(--ink-faint);
    vertical-align: middle;
    font-size: 0;          /* nukes any text content inside */
    color: transparent;    /* extra belt-and-braces for the missing glyph */
    line-height: 0;
}
.project-card--imageless .project-card-loc-sep * {
    display: none;         /* in case anything is nested inside */
}

/* =====================================================================
   HOMEPAGE MAP MODULE — v5: text-only card, taller (640px)
   Append-only. Strips all logo visuals from the card. The hero becomes
   a pure text block: client name (linked) on top, country/year/status
   pill on the bottom. The card grows to 640px so the description has
   room to breathe.
   ===================================================================== */

/* Card grows taller than the 560px map. Map alignment uses align-items:start
   on the layout so the map sits at the top while the card fills more height. */
.project-card.project-card--imageless {
    height: 640px;
}

/* Hide every logo element on the map card, defensively */
.project-card--imageless #pcLogosWrap,
.project-card--imageless .project-logos,
.project-card--imageless .project-logo-tile,
.project-card--imageless .project-logo-badge,
.project-card--imageless .pc-client-logo-inline {
    display: none !important;
}

/* Hero: now a 1-column text block (client name on top, country/year/status row) */
.project-card--imageless .project-card-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 22px 16px;
}

/* Client name row (top) — full width, larger */
.project-card--imageless .project-card-hero-client {
    grid-column: auto;
    grid-row: auto;
    display: block;
    width: 100%;
}
.project-card--imageless .pc-client-link {
    display: inline-block;
    max-width: 100%;
}
.project-card--imageless .pc-client-name {
    font-size: 16px;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 600;
    font-family: var(--ff-serif);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Meta row (bottom) — country/year/status */
.project-card--imageless .project-card-hero-meta {
    grid-column: auto;
    grid-row: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}
.project-card--imageless .project-card-hero-meta .project-status {
    margin-left: auto;
}

/* Body gets more breathing room now that we have 80px more height */
.project-card--imageless .project-body {
    padding: 24px 24px 22px;
}
.project-card--imageless .project-title {
    font-size: 28px;
    line-height: 1.14;
}
.project-card--imageless .project-summary {
    font-size: 14.5px;
    line-height: 1.65;
}

/* Layout: keep the map at its 560px height but let the card extend below it */
.projects-map .map-layout {
    align-items: start;
}

/* Responsive: drop the height back to auto on narrow viewports */
@media (max-width: 1100px) {
    .project-card.project-card--imageless {
        height: auto;
    }
}
@media (max-width: 700px) {
    .project-card--imageless .project-card-hero {
        padding: 16px 16px 14px;
    }
    .project-card--imageless .pc-client-name {
        font-size: 15px;
    }
    .project-card--imageless .project-title {
        font-size: 24px;
    }
}

/* =====================================================================
   HOMEPAGE MAP MODULE — v6: equal height for map and card
   Both the map frame and the project card share the same height (640px)
   so they sit perfectly aligned, no leftover space below either side.
   ===================================================================== */

.projects-map .map-frame {
    height: 640px;
}
.projects-map .africa-map {
    max-width: 600px;
    max-height: 600px;
}

/* Layout returns to stretch so both sides fill the same height */
.projects-map .map-layout {
    align-items: stretch;
}

/* Responsive: scale both down together */
@media (max-width: 1100px) {
    .projects-map .map-frame { height: 520px; }
    .projects-map .africa-map { max-width: 480px; max-height: 480px; }
}
@media (max-width: 480px) {
    .projects-map .map-frame { height: 400px; }
    .projects-map .africa-map { max-width: 360px; max-height: 360px; }
}

/* =====================================================================
   HOMEPAGE MAP MODULE — v7: kill the switcher
   The prev/next switcher bar is removed entirely. CSS hides it defensively
   even if older markup leaves the node behind.
   ===================================================================== */
.project-card--imageless .project-switcher,
.project-card--imageless #projectSwitcher {
    display: none !important;
}   SOLUTION DETAIL PAGE
   All selectors prefixed `.solution-page-` to avoid any global collisions.
   Body content rendered inside .solution-page-content uses the existing
   .pb-section-head, .pb-stats, .pb-feature-grid, .pb-cta rules above —
   this block only styles the page shell (hero, TOC, sidebar, layout).
   ===================================================================== */

/* ---------- Hero ---------- */
.solution-page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
    color: #fff;
    overflow: hidden;
    padding: calc(var(--header-h) + 32px) 0 64px;
}
.solution-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 14%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 12% 88%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.solution-page-hero-content { position: relative; z-index: 1; }

.solution-page-hero-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-top: 8px;
}
.solution-page-hero-imagecol {
    display: flex;
    align-items: center;
    justify-content: center;
}
.solution-page-hero-imagetile {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 295 / 166;
    background: var(--ink);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 56px -16px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
}
.solution-page-hero-imagetile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.solution-page-hero-imagetile-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-deep) 100%);
}
.solution-page-hero-imagetile-fallback i {
    font-size: 84px;
    color: rgba(255,255,255,0.85);
}

.solution-page-hero-textcol { min-width: 0; }
.solution-page-hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.solution-page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
}
.solution-page-hero-tag i { font-size: 11px; }
.solution-page-hero-title {
    font-family: var(--ff-serif);
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.05;
    margin: 6px 0 18px;
    color: #fff;
    font-weight: 400;
}
.solution-page-hero-summary {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    margin: 0 0 28px;
    max-width: 720px;
}
.solution-page-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---------- Body grid: TOC | content | sidebar ---------- */
.solution-page-body { padding: 56px 0 64px; background: #fff; }
.solution-page-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 280px;
    gap: 48px;
    align-items: start;
}
.solution-page-toc-spacer { display: block; }

/* ---------- TOC ---------- */
.solution-page-toc {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.solution-page-toc-h {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-faint);
    margin: 0 0 14px;
}
.solution-page-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--line);
}
.solution-page-toc-list li { margin: 0; padding: 0; }
.solution-page-toc-list a {
    display: block;
    padding: 10px 0 10px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: 13px;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
    line-height: 1.35;
}
.solution-page-toc-list a:hover {
    color: var(--ink);
    background: var(--bg-soft);
}
.solution-page-toc-list a.is-active {
    color: var(--accent);
    font-weight: 600;
    border-left-color: var(--accent);
    background: var(--brand-soft);
}

/* ---------- Content (centre) ---------- */
.solution-page-content { min-width: 0; }
.solution-page-summary-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--ink);
    margin: 0 0 36px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line);
    font-family: var(--ff-serif);
    font-weight: 400;
}
.solution-page-section {
    padding: 12px 0 36px;
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.solution-page-section + .solution-page-section {
    border-top: 1px solid var(--line);
    padding-top: 36px;
}
.solution-page-section--cta { padding-bottom: 0; }
.solution-page-section--cta + .solution-page-section { border-top: 0; }

/* ---------- Sidebar ---------- */
.solution-page-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.solution-page-meta-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 22px 20px;
}
.solution-page-meta-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.solution-page-meta-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.solution-page-meta-image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.solution-page-meta-image-fallback i {
    font-size: 72px;
    color: var(--brand);
    opacity: 0.65;
}
.solution-page-meta-h {
    font-family: var(--ff-serif);
    font-size: 18px;
    margin: 0 0 16px;
    font-weight: 400;
}
.solution-page-meta {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
    padding: 0;
}
.solution-page-meta dt {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 5px;
}
.solution-page-meta dt i { color: var(--accent); font-size: 11px; }
.solution-page-meta dd { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.4; }
.solution-page-meta-link {
    color: var(--brand);
    text-decoration: none;
    word-break: break-all;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.solution-page-meta-link:hover { text-decoration: underline; }
.solution-page-meta-link i { font-size: 9px; flex-shrink: 0; }

.solution-page-btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ---------- Card image fallback (for "Other solutions" cards) ---------- */
.solution-page-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
}
.solution-page-card-fallback i {
    font-size: 56px;
    color: rgba(255,255,255,0.85);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .solution-page-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
    .solution-page-toc { display: none; }
    .solution-page-toc-spacer { display: none; }
}
@media (max-width: 900px) {
    .solution-page-hero-layout { grid-template-columns: 1fr; gap: 32px; }
    .solution-page-hero-imagecol { order: 2; }
    .solution-page-hero-imagetile { max-width: 280px; }
    .solution-page-grid { grid-template-columns: 1fr; gap: 28px; }
    .solution-page-sidebar { position: static; }
}
@media (max-width: 700px) {
    .solution-page-hero { padding: calc(var(--header-h) + 22px) 0 48px; }
    .solution-page-meta-card { padding: 18px; }
    .solution-page-summary-lead { font-size: 17px; }
}


/* =====================================================================
   PROJECT DETAIL PAGE — two-column layout
   Sidebar (left) + content (right). No TOC. Sidebar is sticky but
   scrolls with the page (no internal overflow scroll).
   .project-page-* classes are NEW — they don't collide with .project-grid
   or .project-sidebar from the older project page version.
   ===================================================================== */

/* Hero meta row tweak: client name under the title */
.project-hero-client {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Two-column body grid */
.project-page-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

/* Sidebar (left) — flows naturally with the page. Not sticky because
   the technology / expertise lists can be very tall and would overflow
   the viewport, making the bottom unreachable. */
.project-page-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Compact tweaks inside the sidebar so it takes less vertical room */
.project-page-sidebar .project-meta-card,
.project-page-sidebar .project-side-card {
    padding: 18px 20px;
}
.project-page-sidebar .project-meta-h {
    font-size: 10.5px;
    margin-bottom: 12px;
    padding-bottom: 10px;
}
.project-page-sidebar .project-meta dl,
.project-page-sidebar .project-meta {
    gap: 10px;
}
.project-page-sidebar .project-meta dl > div,
.project-page-sidebar .project-meta > div {
    gap: 4px;
}
.project-page-sidebar .project-meta dt {
    font-size: 10px;
    margin-bottom: 3px;
}
.project-page-sidebar .project-meta dd {
    font-size: 13.5px;
    line-height: 1.4;
}

/* Client rows: smaller logos, less padding */
.project-page-sidebar .project-client-row,
.project-page-sidebar .project-client-row--linked .project-client-row-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: inherit;
}
.project-page-sidebar .project-client-row--linked .project-client-row-link:hover {
    background: var(--brand-tint);
    border-radius: 8px;
}
.project-page-sidebar .project-client-row--linked .project-client-row-link:hover .project-client-row-arrow {
    color: var(--brand);
    transform: translateX(2px);
}
.project-page-sidebar .project-client-row-logo {
    width: 36px;
    height: 36px;
}
.project-page-sidebar .project-client-row-name {
    font-size: 13px;
    line-height: 1.3;
}
.project-page-sidebar .project-client-row-role {
    font-size: 10.5px;
}

/* Expertise pills: tighter, wrap nicely */
.project-page-sidebar .project-expertise-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.project-page-sidebar .project-expertise-pill {
    padding: 5px 10px;
    font-size: 11px;
    gap: 4px;
}
.project-page-sidebar .project-expertise-pill i {
    font-size: 11px;
}

/* Tech pills: smaller, denser */
.project-page-sidebar .project-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.project-page-sidebar .project-tech-pill {
    padding: 3px 8px;
    font-size: 10.5px;
    line-height: 1.4;
}

/* Content column (right) */
.project-page-content { min-width: 0; }
.project-page-section {
    padding: 12px 0 36px;
    scroll-margin-top: calc(var(--header-h) + 24px);
}
.project-page-section + .project-page-section {
    border-top: 1px solid var(--line);
    padding-top: 36px;
}
.project-page-section--cta { padding-bottom: 0; }

/* Responsive */
@media (max-width: 1100px) {
    .project-page-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 900px) {
    .project-page-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================================
   SERVICE / EXPERTISE DETAIL PAGE  (/expertise/<slug>)
   Path B — body stays short, the page wraps it in a strong visual frame.
   All selectors are namespaced .service-page-* so they cannot collide
   with anything else on the site.
   ===================================================================== */

/* ---------- Hero ---------- */
.service-page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
    color: #fff;
    overflow: hidden;
}
.service-page-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.service-page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 31, 64, 0.92) 0%, rgba(11, 31, 64, 0.78) 50%, rgba(18, 46, 95, 0.94) 100%);
}
.service-page-hero-content {
    position: relative;
    z-index: 1;
    padding: calc(var(--header-h) + 40px) 0 64px;
}
.service-page-hero-content .breadcrumb {
    margin-bottom: 24px;
}

.service-page-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}
.service-page-hero-pill i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.service-page-hero-title {
    font-family: var(--ff-serif);
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 1.05;
    color: #fff;
    margin: 0 0 18px;
    font-weight: 400;
    max-width: 880px;
}
.service-page-hero-tagline {
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0;
}

/* ---------- Body grid ---------- */
.service-page-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

/* ---------- Sidebar (left, sticky) ---------- */
.service-page-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.service-page-sidecard {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
}
.service-page-sidecard-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 20px;
    margin-bottom: 14px;
}
.service-page-sidecard-h {
    font-family: var(--ff-serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
    margin: 0 0 14px;
}
.service-page-meta {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
}
.service-page-meta dt {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    margin: 0 0 4px;
}
.service-page-meta dd {
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink);
    margin: 0;
}
.service-page-meta-link {
    color: var(--brand);
    text-decoration: none;
    transition: color .2s ease;
}
.service-page-meta-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.service-page-sidecard-btn {
    margin-top: 4px;
}

/* "More in this pillar" sublist */
.service-page-pillar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.service-page-pillar-link {
    display: grid;
    grid-template-columns: 18px 1fr 14px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.service-page-pillar-link i:first-child {
    color: var(--brand);
    font-size: 14px;
}
.service-page-pillar-link span {
    line-height: 1.3;
    font-weight: 500;
}
.service-page-pillar-arrow {
    color: var(--ink-faint);
    font-size: 12px;
    transition: transform .2s ease, color .2s ease;
}
.service-page-pillar-link:hover {
    background: #fff;
    color: var(--brand);
}
.service-page-pillar-link:hover .service-page-pillar-arrow {
    color: var(--brand);
    transform: translateX(2px);
}

/* ---------- Content (right) ---------- */
.service-page-content { min-width: 0; }
.service-page-summary-lead {
    font-family: var(--ff-serif);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 32px;
    padding: 0 0 32px;
    border-bottom: 1px solid var(--line);
    font-weight: 400;
    letter-spacing: -0.005em;
}
.service-page-body { color: var(--ink-soft); }
.service-page-body > p,
.service-page-body .pb-prose p {
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 18px;
    color: var(--ink-soft);
}
.service-page-body > p:last-child { margin-bottom: 0; }
.service-page-body strong { color: var(--ink); font-weight: 600; }
.service-page-body > a,
.service-page-body .pb-prose a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--brand-soft);
    transition: text-decoration-color .2s ease;
}
.service-page-body > a:hover,
.service-page-body .pb-prose a:hover { text-decoration-color: var(--brand); }

/* When pb_normalise_body produces rich blocks, the existing pb-* CSS
   styles them. Headers are slightly tighter on this page: */
.service-page-body .pb-section-head { margin-top: 32px; }
.service-page-body .pb-section-head:first-child { margin-top: 0; }

/* CTA aside inside the body keeps its own white text — don't let our
   service-page-body rules above bleed in. */
.service-page-body .pb-cta { color: #fff; }
.service-page-body .pb-cta h4 { color: #fff; }
.service-page-body .pb-cta p { color: rgba(255, 255, 255, 0.85); margin: 0 0 18px; }
.service-page-body .pb-cta strong { color: #fff; }
.service-page-body .pb-cta a {
    color: #fff;
    text-decoration: none;
}
.service-page-body .pb-cta a:hover { color: #fff; }

/* Auto-generated stats panel below the body — uses related-projects data */
.service-page-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin: 36px 0 0;
}
.service-page-stat {
    background: var(--bg-soft);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.service-page-stat-num {
    font-family: var(--ff-serif);
    font-size: 44px;
    line-height: 1;
    color: var(--brand);
    font-weight: 400;
}
.service-page-stat-label {
    font-size: 12px;
    line-height: 1.4;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}
@media (max-width: 760px) {
    .service-page-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- CTA section ---------- */
.service-page-cta-section {
    padding: 64px 0 80px;
    background: #fff;
}
.service-page-cta {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
    color: #fff;
    border-radius: 22px;
    padding: 52px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.service-page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 92% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 8% 100%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}
.service-page-cta-text { position: relative; z-index: 1; }
.eyebrow--light {
    color: rgba(255, 255, 255, 0.65);
}
.service-page-cta-h {
    font-family: var(--ff-serif);
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.08;
    color: #fff;
    margin: 8px 0 14px;
    font-weight: 400;
}
.service-page-cta-h em { color: #fff; font-style: italic; }
.service-page-cta-lede {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    margin: 0;
    max-width: 560px;
}
.service-page-cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .service-page-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .service-page-sidebar { position: static; }
    .service-page-cta { grid-template-columns: 1fr; gap: 24px; padding: 36px 32px; }
    .service-page-cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 700px) {
    .service-page-hero-content { padding: calc(var(--header-h) + 28px) 0 48px; }
    .service-page-cta { padding: 32px 24px; border-radius: 16px; }
    .service-page-summary-lead { font-size: 20px; }
}

/* =====================================================================
   HOMEPAGE MAP MODULE — v8 (breathing room when client name wraps)
   When the client text "FAO Zambia (with the European Union, Ministry of
   Agriculture, and CIMMYT)" wraps to 2 lines, the row immediately below
   was sitting flush with no spacing. Bump the row-gap and add an explicit
   margin-bottom on the client row.
   ===================================================================== */
.project-card--imageless .project-card-hero {
    row-gap: 14px;
}
.project-card--imageless .project-card-hero-client {
    margin-bottom: 0;
}
.project-card--imageless .project-card-hero-client + .project-card-hero-meta {
    margin-top: 4px;
}