/* ============================================
   Change Frontiers Africa — Design System v2
   Deep teal + warm orange + gold on warm cream.
   Fraunces (display) + Plus Jakarta Sans (body).
   ============================================ */

:root {
    --teal-950: #041f23;
    --teal-900: #062f34;
    --teal-800: #0a4a50;
    --teal-700: #0d5c63;
    --teal-600: #0f6b73;
    --teal-500: #2a9d8f;
    --orange: #e07a3d;
    --orange-d: #c9652a;
    --orange-text: #a94a17;
    --gold: #d4a017;
    --coral: #e76f51;
    --cream: #faf6ef;
    --sand: #f2ebdd;
    --paper: #fffdf9;
    --ink: #10262a;
    --muted: #526468;
    --line: #e4dccb;
    --line-d: rgba(255, 255, 255, .14);

    --display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --max: 1180px;
    --header-h: 76px;
    --r: 18px;
    --r-sm: 12px;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --shadow: 0 1px 2px rgba(6, 47, 52, .05), 0 8px 28px rgba(6, 47, 52, .08);
    --shadow-lg: 0 2px 4px rgba(6, 47, 52, .06), 0 22px 50px rgba(6, 47, 52, .16);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 56px);
}

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--orange);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 8px;
    z-index: 2000;
    font-weight: 700;
}

.skip:focus {
    left: 8px;
}

.i {
    width: 1.35em;
    height: 1.35em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.12;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange-text);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.eyebrow.light {
    color: #ffc48f;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--teal-900);
    margin-bottom: 1rem;
}

.section-title.sm {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.section-intro {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 640px;
}

.body-lg {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
    max-width: 62ch;
}

.body-lg.first::first-letter {
    font-family: var(--display);
    font-size: 3.6em;
    float: left;
    line-height: .85;
    padding: .08em .12em 0 0;
    color: var(--teal-700);
    font-weight: 600;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.center {
    text-align: center;
}

.section-header.center .section-intro {
    margin-inline: auto;
}

.section-header.center .eyebrow::after {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: -.005em;
    transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s;
}

.btn .i {
    transition: transform .25s var(--ease);
    width: 1.15em;
    height: 1.15em;
}

.btn:hover .i {
    transform: translateX(4px);
}

.btn-lg {
    padding: 1rem 1.9rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--teal-700);
    color: #fff;
}

.btn-primary:hover {
    background: var(--teal-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(6, 47, 52, .25);
}

.btn-accent {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 8px 22px rgba(224, 122, 61, .32);
}

.btn-accent:hover {
    background: var(--orange-d);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(224, 122, 61, .42);
}

.btn-outline {
    border-color: var(--teal-700);
    color: var(--teal-700);
}

.btn-outline:hover {
    background: var(--teal-700);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--teal-900);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn.full {
    width: 100%;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.logo b {
    font-weight: 600;
    color: var(--orange);
}

.logo-mark {
    display: block;
    height: 40px;
    width: auto;
    transition: transform .35s var(--ease);
}

.logo:hover .logo-mark {
    transform: scale(1.06);
}

/* Dual logos: light logo on dark header, dark logo on scrolled (light) header */
.logo .logo-for-light {
    display: none;
}

.logo .logo-for-dark {
    display: block;
}

.header.scrolled .logo .logo-for-dark {
    display: none;
}

.header.scrolled .logo .logo-for-light {
    display: block;
}

/* Mobile menu is always dark-themed */
.header.menu-open .logo .logo-for-dark {
    display: block;
}

.header.menu-open .logo .logo-for-light {
    display: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: .15rem;
}

.nav a:not(.btn) {
    position: relative;
    padding: .55rem .85rem;
    font-size: .92rem;
    font-weight: 600;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.nav a[aria-current="page"]:not(.btn)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 3px;
    margin-left: -9px;
    background: var(--orange);
    border-radius: 3px;
}

.nav-cta {
    margin-left: .6rem;
    padding: .65rem 1.3rem !important;
    font-size: .9rem !important;
}

.header.on-dark {
    color: #fff;
}

.header.on-dark .nav a:not(.btn):hover {
    background: rgba(255, 255, 255, .12);
}

.header.scrolled {
    background: rgba(250, 246, 239, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(6, 47, 52, .07);
    color: var(--teal-900);
}

.header.scrolled .nav a:not(.btn):hover {
    background: var(--sand);
}

.header.scrolled .logo b {
    color: var(--orange-d);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    padding: .6rem;
    border-radius: 10px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Dark backgrounds / hero ---------- */
.on-dark-bg {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60% 70% at 88% 8%, rgba(224, 122, 61, .22), transparent 60%),
        radial-gradient(50% 60% at 4% 100%, rgba(42, 157, 143, .28), transparent 60%),
        linear-gradient(160deg, var(--teal-950) 0%, var(--teal-900) 45%, var(--teal-800) 100%);
}

.on-dark-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.4px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    right: -140px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, .18), transparent 65%);
    pointer-events: none;
}

.hero {
    min-height: min(900px, 100svh);
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 3rem) 0 5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .5rem 1.05rem;
    border: 1px solid var(--line-d);
    background: rgba(255, 255, 255, .07);
    border-radius: 999px;
    margin-bottom: 1.6rem;
    color: #ffd9a6;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--orange);
    background: linear-gradient(100deg, #ffb877, var(--orange) 60%, #f0a23a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-family: var(--display);
    font-size: 1.5rem;
    font-style: italic;
    color: #f5e3c9;
    margin-bottom: 1.1rem;
}

.hero .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .78);
    max-width: 52ch;
    margin-bottom: 2.2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-art {
    width: 100%;
    max-width: 470px;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35));
    transform: rotate(-3deg);
    transition: transform .8s var(--ease);
}

.hero-art:hover {
    transform: rotate(0deg) scale(1.02);
}

.js .tile {
    opacity: 0;
    animation: tileIn .7s var(--ease) forwards;
    animation-delay: calc(var(--d) + 150ms);
    transform-box: fill-box;
}

@keyframes tileIn {
    from {
        opacity: 0;
        transform: translate(var(--tx, 0), 14px) scale(.85);
    }

    to {
        opacity: 1;
    }
}

.js .hero-art .tile {
    animation-name: tileInSvg;
}

@keyframes tileInSvg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    width: 24px;
    height: 40px;
    margin-left: -12px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
}

.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: cue 1.8s infinite;
}

@keyframes cue {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(14px);
    }
}

.page-hero {
    padding: calc(var(--header-h) + 3.5rem) 0 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
    padding-bottom: 4.5rem;
}

.page-hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    font-weight: 500;
    letter-spacing: -.03em;
    margin-bottom: 1.1rem;
}

.page-hero .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .8);
    max-width: 62ch;
}

.crumbs {
    font-size: .85rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 1.4rem;
    display: flex;
    gap: .5rem;
}

.crumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.strip {
    width: 100%;
    height: 44px;
    opacity: .9;
    position: relative;
    z-index: 1;
}

.strip .tile {
    animation: none !important;
    opacity: 1 !important;
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.tint {
    background: var(--sand);
}

.section.dark {
    color: #fff;
}

.section.dark .section-title {
    color: #fff;
}

.section.dark .section-intro {
    color: rgba(255, 255, 255, .75);
}

/* Stats */
.stats {
    background: var(--paper);
    border-block: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 2.2rem 1.5rem;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

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

.stat b {
    font-family: var(--display);
    font-size: 3rem;
    line-height: 1;
    font-weight: 500;
    color: var(--teal-700);
    letter-spacing: -.03em;
}

.stat b.txt {
    font-size: 1.45rem;
    line-height: 1.25;
    padding-top: .55rem;
}

.stat span {
    font-size: .9rem;
    color: var(--muted);
    font-weight: 600;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 4.5rem;
    align-items: center;
}

.quote {
    position: relative;
    background: var(--teal-800);
    color: #fff;
    padding: 2.6rem 2.4rem 2.2rem;
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.quote::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--orange);
    opacity: .9;
}

.quote-mark {
    width: 44px;
    color: var(--gold);
    margin-bottom: 1rem;
}

.quote blockquote {
    font-family: var(--display);
    font-size: 1.55rem;
    line-height: 1.3;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.quote figcaption {
    margin-top: 1.4rem;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    color: #ffd9a6;
    position: relative;
    z-index: 1;
}

.duo {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.6rem;
    box-shadow: var(--shadow);
}

.duo svg {
    width: 100%;
    height: auto;
    font-family: var(--body);
    margin-bottom: 1rem;
}

.duo p {
    color: var(--muted);
    font-size: 1rem;
}

.duo strong {
    color: var(--teal-900);
}

/* Icon chips */
.pi {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1.2rem;
    transition: transform .35s var(--ease);
}

.pi .i {
    width: 26px;
    height: 26px;
}

.pi.lg {
    width: 68px;
    height: 68px;
    margin: 0;
    border-radius: 18px;
}

.pi.lg .i {
    width: 32px;
    height: 32px;
}

.pi.c0 {
    background: #d8eeee;
    color: var(--teal-700);
}

.pi.c1 {
    background: #fbe3d1;
    color: var(--orange-text);
}

.pi.c2 {
    background: #d5efe9;
    color: #1c7d71;
}

.pi.c3 {
    background: #f6e8bd;
    color: #866100;
}

/* Pillar cards */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.7rem 1.5rem 1.4rem;
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

.pillar-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal-500), var(--orange), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.pillar-card:hover::after {
    transform: scaleX(1);
}

.pillar-card:hover .pi {
    transform: rotate(-6deg) scale(1.08);
}

.pillar-card h3 {
    font-size: 1.22rem;
    color: var(--teal-900);
    margin-bottom: .55rem;
}

.pillar-card p {
    font-size: .95rem;
    color: var(--muted);
    flex: 1;
}

.more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.1rem;
    font-size: .88rem;
    font-weight: 700;
    color: var(--orange-text);
}

.more .i {
    width: 1em;
    height: 1em;
    transition: transform .25s var(--ease);
}

a:hover>.more .i {
    transform: translateX(5px);
}

/* Principles */
.principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.principle {
    position: relative;
    padding: 1.8rem 1.5rem;
    border-top: 3px solid var(--teal-700);
    background: var(--paper);
    border-radius: 0 0 var(--r) var(--r);
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease);
}

.principle:nth-child(2) {
    border-color: var(--orange);
}

.principle:nth-child(3) {
    border-color: var(--teal-500);
}

.principle:nth-child(4) {
    border-color: var(--gold);
}

.principle:hover {
    transform: translateY(-5px);
}

.pnum {
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--sand);
    line-height: 1;
}

.pic {
    width: 30px;
    height: 30px;
    color: var(--teal-700);
    margin-bottom: 1.1rem;
}

.principle h3 {
    font-size: 1.25rem;
    color: var(--teal-900);
    margin-bottom: .5rem;
}

.principle p {
    font-size: .95rem;
    color: var(--muted);
}

/* Process tabs */
.tabs {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.tab-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.tab-list button {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-d);
    border-radius: 14px;
    padding: .95rem 1.1rem;
    transition: background .25s, border-color .25s, transform .25s var(--ease);
    font-weight: 600;
}

.tab-list button:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateX(4px);
}

.tab-list button[aria-selected="true"] {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .35);
    transform: translateX(8px);
}

.tn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .12);
    font-weight: 800;
    font-size: .9rem;
    transition: background .25s;
}

.tab-list button[aria-selected="true"] .tn {
    background: var(--orange);
}

.tab-panels {
    position: relative;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line-d);
    border-radius: var(--r);
    padding: 2.6rem 2.4rem;
    min-height: 340px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tab-panels>div {
    flex: 1;
    animation: fadeUp .5s var(--ease);
}

.tab-panels>div[hidden] {
    display: none;
}

.tab-panels h3 {
    font-size: 1.9rem;
    margin-bottom: 1rem;
    position: relative;
}

.tab-panels p {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, .82);
    max-width: 46ch;
    position: relative;
}

.tab-panels .btn {
    margin-top: 2rem;
    position: relative;
}

.big-num {
    position: absolute;
    right: 1rem;
    top: -1rem;
    font-family: var(--display);
    font-size: 11rem;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, .06);
    pointer-events: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    counter-reset: step;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(var(--teal-500), var(--orange), var(--gold));
    opacity: .5;
}

.timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
}

.t-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #fff;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 0 0 6px var(--sand), 0 8px 18px rgba(224, 122, 61, .35);
    position: relative;
    z-index: 1;
}

.t-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.5rem 1.7rem;
    box-shadow: var(--shadow);
    transition: transform .3s var(--ease);
}

.timeline li:hover .t-card {
    transform: translateX(6px);
}

.t-card h3 {
    font-size: 1.3rem;
    color: var(--teal-900);
    margin-bottom: .45rem;
}

.t-card p {
    color: var(--muted);
}

/* Impact */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.impact-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s, opacity .3s;
}

.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.impact-card[hidden] {
    display: none;
}

.impact-head {
    position: relative;
    color: #fff;
    padding: 1.5rem 1.6rem 1.6rem;
    overflow: hidden;
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.impact-head .big {
    position: absolute;
    right: -14px;
    top: -14px;
    width: 112px;
    height: 112px;
    opacity: .16;
    stroke-width: 1.2;
}

.impact-head .tag {
    align-self: flex-start;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .18);
    padding: .3rem .75rem;
    border-radius: 999px;
    margin-bottom: .9rem;
}

.impact-head h3 {
    font-size: 1.3rem;
    line-height: 1.22;
    position: relative;
}

.h0 {
    background: linear-gradient(145deg, var(--teal-900), var(--teal-700));
}

.h1 {
    background: linear-gradient(145deg, #a94a17, var(--orange));
}

.h2 {
    background: linear-gradient(145deg, #175e56, var(--teal-500));
}

.h3 {
    background: linear-gradient(145deg, #7a5a0a, var(--gold));
}

.h4 {
    background: linear-gradient(145deg, var(--teal-950), var(--teal-600));
}

.h5 {
    background: linear-gradient(145deg, #8f3f16, var(--coral));
}

.impact-body {
    padding: 1.4rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
}

.impact-body p {
    font-size: .95rem;
    color: var(--muted);
    flex: 1;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.chips span {
    background: var(--sand);
    color: var(--teal-800);
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .8rem;
    border-radius: 999px;
}

.center-cta {
    text-align: center;
    margin-top: 3rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.2rem;
}

.chip-btn {
    border: 1.5px solid var(--line);
    background: var(--paper);
    padding: .5rem 1.1rem;
    border-radius: 999px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--muted);
    transition: all .2s;
}

.chip-btn:hover {
    border-color: var(--teal-700);
    color: var(--teal-700);
}

.chip-btn.active {
    background: var(--teal-800);
    border-color: var(--teal-800);
    color: #fff;
}

/* Values / services */
.values-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

.value-card {
    grid-column: span 2;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 2rem 1.7rem;
    transition: transform .35s var(--ease), box-shadow .35s;
}

.value-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.value-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-card h3 {
    font-size: 1.4rem;
    color: var(--teal-900);
    margin-bottom: .5rem;
}

.value-card p {
    color: var(--muted);
    font-size: .96rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.7rem 1.6rem;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

a.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

a.service-card:hover .pi {
    transform: rotate(-6deg) scale(1.08);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--teal-900);
    flex: 1;
}

.scale {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.scale>div {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.8rem;
}

.scale h3 {
    font-size: 1.25rem;
    color: var(--teal-900);
    margin-bottom: .4rem;
}

.scale p {
    color: var(--muted);
    font-size: .96rem;
}

/* Focus areas page */
.jump {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    background: rgba(250, 246, 239, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.jump-inner {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding-block: .75rem;
    scrollbar-width: none;
}

.jump-inner::-webkit-scrollbar {
    display: none;
}

.jump a {
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 700;
    padding: .45rem .95rem;
    border-radius: 999px;
    color: var(--muted);
    transition: all .2s;
}

.jump a:hover,
.jump a.on {
    background: var(--teal-800);
    color: #fff;
}

.pillar-rows {
    display: flex;
    flex-direction: column;
}

.pillar-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    padding: 2.8rem 0;
    border-top: 1px solid var(--line);
}

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

.pr-side {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.pr-num {
    font-family: var(--display);
    font-size: 4.2rem;
    line-height: .9;
    color: var(--line);
    font-weight: 500;
    letter-spacing: -.04em;
}

.pr-main h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--teal-900);
    margin-bottom: .8rem;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.team-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    position: relative;
    aspect-ratio: 1 / .85;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.avatar-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform .6s var(--ease);
}

.team-card:hover .avatar-art {
    transform: scale(1.08) rotate(2deg);
}

.team-photo span {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(6, 47, 52, .82);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, .55);
    color: #fff;
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 500;
}

.team-info {
    padding: 1.3rem 1.4rem 1.5rem;
}

.team-info h3 {
    font-size: 1.2rem;
    color: var(--teal-900);
    margin-bottom: .3rem;
}

.team-role {
    color: var(--orange-text);
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: .6rem;
}

.team-group {
    display: inline-block;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted);
    background: var(--sand);
    padding: .25rem .7rem;
    border-radius: 999px;
}

.note {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-top: 2.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--orange);
    border-radius: var(--r-sm);
    padding: 1.5rem 1.7rem;
    color: var(--muted);
}

.note strong {
    color: var(--teal-900);
}

.note-i {
    width: 28px;
    height: 28px;
    color: var(--orange-d);
    margin-top: .1rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    display: grid;
    gap: .9rem;
    margin: 1.8rem 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: .9rem;
    font-weight: 600;
}

.contact-details .i {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 12px;
    background: var(--teal-700);
    color: #fff;
}

.contact-details a:hover {
    color: var(--orange-text);
    text-decoration: underline;
}

.confidential {
    display: flex;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    background: var(--teal-900);
    color: rgba(255, 255, 255, .85);
    border-radius: var(--r-sm);
    font-size: .95rem;
}

.confidential strong {
    color: #fff;
}

.confidential .i {
    color: var(--gold);
    width: 24px;
    height: 24px;
    margin-top: .15rem;
}

.contact-form {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 2.4rem;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--teal-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    font: inherit;
    font-size: .98rem;
    padding: .85rem 1rem;
    background: var(--cream);
    color: var(--ink);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal-700);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 92, 99, .12);
}

.form-group .err {
    border-color: #c0392b;
}

.hp {
    position: absolute;
    left: -9999px;
}

.form-status {
    margin-top: 1rem;
    font-size: .92rem;
    font-weight: 600;
    min-height: 1.4em;
}

.form-status.ok {
    color: #1c7d71;
}

.form-status.bad {
    color: #b3321f;
}

/* CTA + footer */
.cta-band {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--teal-950), var(--teal-800));
    color: #fff;
    padding: 0 0 5rem;
    text-align: center;
}

.cta-band .strip {
    margin-bottom: 4.5rem;
}

.cta-inner h2 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 500;
    margin-bottom: 1rem;
    max-width: 20ch;
    margin-inline: auto;
}

.cta-inner p {
    color: rgba(255, 255, 255, .78);
    max-width: 52ch;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.footer {
    background: var(--teal-950);
    color: rgba(255, 255, 255, .75);
    padding: 4.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.footer .logo {
    color: #fff;
    margin-bottom: 1.2rem;
}

.footer-brand p {
    max-width: 34ch;
    font-size: .95rem;
    margin-bottom: 1.2rem;
}

.footer-mail {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    color: #ffd9a6;
    font-weight: 700;
    font-size: .95rem;
}

.footer-mail:hover {
    color: #fff;
}

.footer h4 {
    font-family: var(--body);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.footer li {
    margin-bottom: .6rem;
}

.footer li a {
    font-size: .95rem;
    transition: color .2s, padding .2s;
}

.footer li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--line-d);
    padding-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

.to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: var(--orange);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(224, 122, 61, .45);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
    z-index: 900;
}

.to-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.wa-float {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
    z-index: 900;
    transition: transform .25s var(--ease), box-shadow .25s;
}

.wa-float .i {
    width: 26px;
    height: 26px;
}

.wa-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(37, 211, 102, .55);
}

.wa-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
    animation: waPulse 2.6s ease-out infinite;
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .45);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 640px) {
    .wa-float {
        width: 46px;
        height: 46px;
        left: .9rem;
        right: auto;
        bottom: .9rem;
    }

    .to-top {
        width: 46px;
        height: 46px;
        right: .9rem;
        left: auto;
        bottom: .9rem;
    }
}

/* ---------- Reveal ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {

    .pillars-grid,
    .principles,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        padding: 1rem 1.5rem 1.6rem;
        background: var(--teal-950);
        color: #fff;
        display: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    }

    .nav a:not(.btn) {
        padding: .85rem 1rem;
        border-radius: 12px;
        font-size: 1rem;
    }

    .nav a:not(.btn):hover {
        background: rgba(255, 255, 255, .1);
    }

    .nav a[aria-current="page"]:not(.btn)::after {
      left: 1rem;
      right: 1rem;
      margin: 0;
      bottom: 6px;
      transform: none;
      width: 3.5em;
      height: 3px;
    }

    .nav-cta {
        margin: .6rem 0 0;
    }

    .menu-open .nav {
        display: flex;
        animation: fadeUp .3s var(--ease);
    }

    .header.menu-open {
        background: var(--teal-950);
        color: #fff;
        backdrop-filter: none;
    }

    .header.menu-open .logo b {
        color: var(--orange);
    }

    .hero-inner,
    .about-grid,
    .contact-grid,
    .tabs {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero {
        padding-bottom: 4.5rem;
    }

    .hero-visual {
        display: none;
    }

    .scroll-cue {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
    }

    .stat:nth-child(-n+2) {
        border-top: 0;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-card,
    .value-card:nth-child(4),
    .value-card:nth-child(5) {
        grid-column: auto;
    }

    .value-card:nth-child(5) {
        grid-column: 1 / -1;
    }

    .scale {
        grid-template-columns: 1fr;
    }

    .pillar-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pr-side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .pr-num {
        font-size: 3rem;
    }

    .big-num {
        font-size: 8rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.15rem;
    }

    .pillars-grid,
    .principles,
    .team-grid,
    .impact-grid,
    .services-grid,
    .values-grid,
    .form-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .value-card:nth-child(5) {
        grid-column: auto;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .stat b {
        font-size: 2.4rem;
    }

    .stat b.txt {
        font-size: 1.15rem;
    }

    .tab-panels {
        padding: 2rem 1.5rem;
    }

    .timeline::before {
        left: 21px;
    }

    .timeline li {
        grid-template-columns: 44px 1fr;
        gap: 1rem;
    }

    .t-dot {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 1.6rem;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .quote blockquote {
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .js .reveal,
    .js .tile {
        opacity: 1;
        transform: none;
    }

    .wa-float::after {
        animation: none;
    }
}