/* =========================================================
   MEA RESEARCH & CONSULTING
   ========================================================= */

/* NOTE: for best performance, load fonts with <link> tags in your HTML <head>
   instead of @import (this is only a fallback). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* -------------------------
    01. BRAND SYSTEM
    ------------------------- */
:root {
    --cream: #F5EBDD;
    --cream-dark: #EDE1D0;
    --white: #FFFFFF;

    --cocoa: #2E1A10;
    --umber: #5A3521;
    --brown: #3B2922;
    --brown-soft: #5A4035;
    --brown-light: #76594A;

    --clay: #B8553A;
    --clay-dark: #9B452A;
    --ochre: #D0A03A;
    --terracotta: #A12910;

    --border: rgba(46, 26, 16, 0.15);
    --shadow: 0 20px 50px rgba(46, 26, 16, 0.12);

    --serif: "DM Serif Display", Georgia, serif;
    --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

    --radius-small: 8px;
    --radius-medium: 14px;
    --radius-large: 24px;

    --max-width: 1240px;
    --header-height: 68px;
    --gutter: 24px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* -------------------------
    02. RESET & BASE
    ------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--brown);
    line-height: 1.65;
    overflow-x: hidden;
    overflow-x: clip; /* keeps position: sticky working */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--ochre);
    color: var(--brown);
}

/* Visible keyboard focus */
:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 4px;
    border-radius: 2px;
}

#services :focus-visible,
#contact :focus-visible,
footer :focus-visible,
.project-header :focus-visible {
    outline-color: var(--yellow);
}

/* -------------------------
    03. GLOBAL TYPOGRAPHY
    ------------------------- */
h1,
h2,
h3,
h4 {
    color: var(--brown);
    line-height: 1.1;
    font-weight: 600;
    text-wrap: balance;
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 400;
}

h3,
h4 {
    font-family: var(--sans);
    font-weight: 700;
}

p {
    color: var(--brown-soft);
    text-wrap: pretty;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--clay);
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--ochre);
    flex-shrink: 0;
}

/* -------------------------
    04. HEADER
    ------------------------- */

/* Top utility bar */
.site-utility {
    background: var(--cocoa);
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
}

.site-utility .utility-inner {
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto;
    padding: 8px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-utility a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.site-utility a:hover {
    color: var(--ochre);
}

/* Main header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;

    height: var(--header-height);

    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(46, 26, 16, 0.08);
}

nav {
    width: min(100% - 48px, var(--max-width));
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link img {
    display: block;
    width: 128px;
    height: auto;
}

/* Desktop menu */
nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    white-space: nowrap;

    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cocoa);

    transition: color 0.2s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--ochre);

    transition: width 0.25s ease;
}

nav ul li a:hover,
nav ul li a[aria-current="page"],
nav ul li a.active {
    color: var(--clay);
}

nav ul li a:hover::after,
nav ul li a[aria-current="page"]::after,
nav ul li a.active::after {
    width: 100%;
}

/* CTA button in nav */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 0 24px;

    background: var(--clay);
    color: #fff;

    font-family: var(--sans);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;

    border: none;
    border-radius: 6px;
    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

.nav-cta:hover {
    background: var(--clay-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 85, 58, 0.3);
}

.nav-cta:active {
    transform: translateY(0);
}

/* Mobile menu button — hidden on desktop */
.menu-toggle {
    display: none;
}

@media (max-width: 760px) {

    :root {
        --header-height: 62px;
    }

    nav {
        position: relative;
        width: min(100% - 32px, var(--max-width));
    }

    .logo-link img {
        width: 105px;
    }

    /* Hamburger button */

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;

    width: 42px;
    height: 42px;
    padding: 8px 2px;

    border: none;
    background: transparent;

    color: var(--brown);
    font-size: 0;
    cursor: pointer;
    z-index: 1002;
}


/* Three menu lines */

.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;

    height: 2px;

    background: var(--brown);
    border-radius: 2px;

    transition: all 0.25s ease;
}

.menu-toggle::before {
    width: 30px;
    box-shadow: 0 7px 0 var(--brown);
}

.menu-toggle::after {
    width: 22px;
}


/* Menu open — turn into X */

nav.menu-open .menu-toggle::before {
    width: 28px;
    transform: translateY(7px) rotate(45deg);
    box-shadow: none;
}

nav.menu-open .menu-toggle::after {
    width: 28px;
    transform: rotate(-45deg);
}
    /* Mobile menu */
    nav ul {
        display: none;

        position: absolute;
        top: 100%;
        left: -16px;
        right: -16px;

        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 10px 24px 18px;
        margin: 0;

        background: var(--cream);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 25px rgba(59, 41, 34, 0.12);

        z-index: 1001;
    }

    nav.menu-open ul {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;

        padding: 14px 0;

        font-size: 0.85rem;
        color: var(--brown);

        border-bottom: 1px solid rgba(59, 41, 34, 0.12);
    }

    nav ul li:last-child a {
        border-bottom: none;
    }

}

/* -------------------------
    05. HERO
    ------------------------- */
#home {
    position: relative;
    isolation: isolate;
    min-height: calc(100svh - var(--header-height));
    min-height: calc(100vh - var(--header-height));

    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 100px var(--gutter) 80px;

    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.85fr);
    align-items: center;
    gap: 72px;
}

/* Decorative olive ring motif */
#home::before {
    content: "";
    position: absolute;

    width: 440px;
    height: 440px;

    right: -120px;
    top: 100px;

    border: 1px solid rgba(133, 149, 67, 0.35);
    border-radius: 50%;

    pointer-events: none;
}

/* Terracotta accent bar under headline */
#home::after {
    content: "";
    position: absolute;
    left: var(--gutter);
    bottom: 38%;

    width: 120px;
    height: 6px;

    background: var(--terracotta);
}

/* Eyebrow label above headline */
#home .eyebrow {
    color: var(--terracotta);
    margin-bottom: 28px;
}

#home h2 {
    max-width: 16ch;
    margin: 0 0 28px;

    font-family: var(--serif);
    font-size: clamp(3.2rem, 7.5vw, 8.5rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.94;

    color: var(--brown);
}

#home h2 span {
    display: block;
    color: var(--terracotta);
    font-style: italic;
}

#home p {
    max-width: 52ch;
    margin: 0 0 40px;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--brown-soft);
}

/* Hero actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Hero image area */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 4 / 5;
}

/* Terracotta offset block */
.hero-image-wrap::before {
    content: "";
    position: absolute;
    inset: 26px 26px -26px -26px;
    background: var(--terracotta);
    z-index: 0;
}

/* Olive offset circle */
.hero-image-wrap::after {
    content: "";
    position: absolute;

    width: 110px;
    height: 110px;

    right: -40px;
    bottom: -35px;

    background: var(--olive);
    border-radius: 50%;

    z-index: 3;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    border: 12px solid var(--brown);
    box-shadow: 0 30px 60px rgba(59, 41, 34, 0.18);
    transition:
        transform 0.6s var(--ease),
        filter 0.6s ease;
}

.hero-image-wrap:hover .hero-image {
    transform: translate(-10px, -10px) scale(1.015);
    filter: saturate(1.06);
}

/* Buttons */
.hero-button,
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 52px;
    padding: 0 28px;

    border-radius: 999px;

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    text-align: center;

    cursor: pointer;

    transition:
        transform 0.3s var(--ease),
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.hero-button,
.primary-button {
    background: var(--terracotta);
    color: var(--white);
    border: 2px solid var(--terracotta);
}

.hero-button:hover,
.primary-button:hover {
    background: var(--brown);
    border-color: var(--brown);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(59, 41, 34, 0.18);
}

.secondary-button {
    background: transparent;
    color: var(--brown);
    border: 2px solid var(--brown);
}

.secondary-button:hover {
    background: var(--ochre);
    border-color: var(--ochre);
    transform: translateY(-4px);
}

.hero-button:active,
.primary-button:active,
.secondary-button:active {
    transform: translateY(-1px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* Hero image area */
.hero-visual {
    position: relative;
    min-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrap {
    position: relative;

    width: min(100%, 500px);
    aspect-ratio: 4 / 5;
}

/* Terracotta offset block */
.hero-image-wrap::before {
    content: "";
    position: absolute;
    inset: 22px 22px -22px -22px;
    background: var(--terracotta);
    z-index: 0;
}

/* Green offset circle */
.hero-image-wrap::after {
    content: "";
    position: absolute;

    width: 95px;
    height: 95px;

    right: -35px;
    bottom: -30px;

    background: var(--green);
    border-radius: 50%;

    z-index: 3;
}

.hero-image,
.hero-image-placeholder {
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 2;

    background: var(--cream-dark);
    border: 10px solid var(--brown);

    transition:
        transform 0.6s var(--ease),
        filter 0.6s ease;
}

.hero-image-wrap:hover .hero-image {
    transform: translate(-8px, -8px) scale(1.02);
    filter: saturate(1.08);
}

/* Placeholder until a real image is added */
.hero-image-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;

    padding: 28px;

    background:
        linear-gradient(
            135deg,
            var(--cream-dark) 0%,
            var(--cream) 50%,
            var(--ochre) 50%,
            var(--ochre) 53%,
            var(--cream) 53%
        );
}

.hero-image-placeholder span {
    padding: 8px 13px;

    background: var(--brown);
    color: var(--white);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

/* Decorative stamp */
.hero-stamp {
    position: absolute;

    left: -55px;
    bottom: 80px;

    z-index: 5;

    width: 125px;
    height: 125px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: var(--ochre);
    color: var(--brown);

    border-radius: 50%;

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.5;

    transform: rotate(-10deg);
    box-shadow: 0 12px 30px rgba(59, 41, 34, 0.15);

    animation: gentleFloat 5s ease-in-out infinite;
}

.hero-accent-yellow {
    position: absolute;
    width: 35px;
    height: 35px;
    top: 40px;
    right: 20px;
    background: var(--yellow);
    transform: rotate(45deg);
    z-index: 4;
}

.hero-accent-green {
    position: absolute;
    width: 20px;
    height: 100px;
    left: -50px;
    top: 120px;
    background: var(--green);
    z-index: 4;
}

/* Hero ticker (repeat the items twice in your HTML so the -50% loop is seamless) */
.hero-ticker {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 100vw;
    transform: translateX(-50%);

    overflow: hidden;

    background: var(--brown);
    color: var(--cream);

    padding: 14px 0;

    white-space: nowrap;
}

.hero-ticker-track {
    display: inline-flex;
    gap: 45px;
    padding-left: 45px;
    will-change: transform;

    animation: ticker 28s linear infinite;
}

.hero-ticker:hover .hero-ticker-track {
    animation-play-state: paused;
}

.hero-ticker span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.hero-ticker span:nth-child(3n) {
    color: var(--ochre);
}

.hero-ticker span:nth-child(4n) {
    color: #A9BB64; /* lighter green so it reads on dark brown */
}

/* -------------------------
    06. SHARED SECTIONS
------------------------- */
section:not(#home) {
    padding: 110px var(--gutter);
}

.section-heading {
    width: min(100%, var(--max-width));
    margin: 0 auto 65px;
}

.section-heading h2 {
    max-width: 850px;
    margin-top: 18px;

    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 6rem);
    font-weight: 400;
    letter-spacing: -0.04em;
}

.section-heading > p:not(.eyebrow) {
    max-width: 650px;
    margin-top: 25px;
    font-size: 1.02rem;
}

/* -------------------------
    07. SERVICES
    ------------------------- */
#services {
    background: var(--cream);
    color: var(--brown);
}

#services h2,
#services p {
    color: var(--brown);
}

#services .eyebrow {
    color: var(--clay);
}

.services-grid {
    width: min(100%, var(--max-width));
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* 4-column layout on large screens */
@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    position: relative;

    min-height: 320px;
    padding: 36px 32px 32px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    transition:
        transform 0.35s var(--ease),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(46, 26, 16, 0.1);
    border-color: var(--clay);
}

/* Step number */
.service-number {
    position: absolute;
    top: 18px;
    right: 22px;

    font-family: var(--serif);
    font-size: 2.4rem;
    line-height: 1;

    color: rgba(46, 26, 16, 0.08);
    pointer-events: none;
}

/* Service category label */
.service-label {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--clay);
    margin-bottom: 14px;
}

.service-card h3 {
    margin-bottom: 12px;

    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 400;
    line-height: 1.15;

    color: var(--cocoa);
}

.service-card p {
    margin-bottom: 22px;

    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--umber);
}

.service-link {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;

    color: var(--clay);
    transition: color 0.2s ease, gap 0.2s ease;
}

.service-link:hover {
    color: var(--ochre);
}

/* Varied earthy card backgrounds */
.service-card--investigate {
    background: var(--cream);
    border-left: 4px solid var(--clay);
}

.service-card--interpret {
    background: var(--white);
    border-left: 4px solid var(--ochre);
}

.service-card--evaluate {
    background: var(--cream);
    border-left: 4px solid var(--clay);
}

.service-card--communicate {
    background: var(--white);
    border-left: 4px solid var(--ochre);
}

/* Responsive */
@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 30px 26px 28px;
    }
}

/* -------------------------
   08. AREAS
------------------------- */

#areas {
    padding: 110px 0;
    background: var(--cream);
}

/* -------------------------
   AREAS — FULL WIDTH INTRO
------------------------- */

#areas .section-heading {
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto 65px;

    display: block;
}

#areas .section-heading .eyebrow {
    display: block;
    margin-bottom: 20px;
}

#areas .section-heading h2 {
    max-width: 1050px;
    margin: 0 0 24px;

    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;

    color: var(--brown);
}

#areas .section-heading > p:last-child {
    max-width: 720px;
    margin: 0;

    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--brown-soft);
}


/* -------------------------
   AREA CARDS
------------------------- */

#areas .areas-grid {
    width: min(100% - 48px, var(--max-width));
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

#areas .area-item {
    position: relative;

    padding: 40px 64px 36px 92px;

    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: stretch;
    gap: 32px;

    background: var(--cream);
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition:
        background 0.3s var(--ease),
        border-color 0.3s var(--ease);
}

#areas .area-item::before {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 3px;

    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.35s var(--ease);
}

#areas .area-item:hover,
#areas .area-item:focus-visible {
    background: var(--white);
    border-left-color: var(--terracotta);
    border-right-color: var(--border);
}

#areas .area-item:hover::before,
#areas .area-item:focus-visible::before {
    transform: scaleX(1);
}

#areas .area-num {
    grid-column: 1;

    align-self: center;

    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1;

    color: var(--ochre);
    opacity: 0.45;

    transition: color 0.3s ease, opacity 0.3s ease;
}

#areas .area-item:hover .area-num,
#areas .area-item:focus-visible .area-num {
    color: var(--terracotta);
    opacity: 1;
}

#areas .area-content {
    grid-column: 2;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;

    min-width: 0;
    padding-right: 36px;
}

#areas .area-tag {
    align-self: flex-start;

    margin-bottom: 0;
    padding: 4px 10px;

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--brown-soft);
    background: rgba(161, 41, 16, 0.08);
    border-radius: 2px;
}

#areas .area-item.health .area-tag { color: var(--terracotta); background: rgba(161, 41, 16, 0.12); }
#areas .area-item.people .area-tag { color: var(--brown-soft); background: rgba(90, 53, 33, 0.1); }
#areas .area-item.society .area-tag { color: #6B4226; background: rgba(133, 149, 67, 0.14); }
#areas .area-item.environment .area-tag { color: #2D8888; background: rgba(45, 136, 136, 0.12); }
#areas .area-item.systems .area-tag { color: var(--brown); background: rgba(46, 26, 16, 0.08); }
#areas .area-item.livelihoods .area-tag { color: var(--ochre); background: rgba(227, 150, 47, 0.14); }

#areas .area-item h3 {
    margin: 0 0 12px;

    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 400;
    line-height: 1.15;

    color: var(--brown);
}

#areas .area-item p {
    margin: 0;

    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--brown-soft);
}

#areas .area-arrow {
    position: absolute;
    right: 36px;
    bottom: 34px;

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid var(--brown-light);
    border-radius: 50%;

    opacity: 0;
    transform: translate(-4px, 4px) scale(0.6);

    transition:
        opacity 0.3s var(--ease),
        transform 0.3s var(--ease),
        border-color 0.3s ease;
}

#areas .area-arrow::after {
    content: "";

    width: 8px;
    height: 8px;

    border-right: 1.5px solid var(--brown);
    border-bottom: 1.5px solid var(--brown);

    transform: rotate(-45deg);
}

#areas .area-item:hover .area-arrow,
#areas .area-item:focus-visible .area-arrow {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    border-color: var(--terracotta);
}


/* -------------------------
   AREAS — TABLET
   ------------------------- */

@media (max-width: 900px) {

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

    #areas .area-item {
        padding: 34px 28px 30px 76px;
        gap: 22px;
    }

    #areas .area-num {
        font-size: clamp(1.5rem, 2.6vw, 2rem);
    }

    #areas .area-content {
        gap: 10px;
        padding-right: 28px;
    }

    #areas .area-arrow {
        right: 24px;
        bottom: 24px;
    }
}


/* -------------------------
   AREAS — MOBILE
   ------------------------- */

@media (max-width: 600px) {

    #areas {
        padding: 80px 0;
    }

    #areas .section-heading,
    #areas .areas-grid {
        width: min(100% - 32px, var(--max-width));
    }

    #areas .section-heading {
        margin-bottom: 45px;
    }

    #areas .section-heading h2 {
        font-size: clamp(2.6rem, 11vw, 3.8rem);
    }

    #areas .section-heading > p:last-child {
        font-size: 0.98rem;
    }

    #areas .areas-grid {
        grid-template-columns: 1fr;
    }

    #areas .area-item {
        padding: 30px 26px 28px 72px;
        gap: 16px;
    }

    #areas .area-num {
        font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    }

    #areas .area-content {
        gap: 8px;
        padding-right: 26px;
    }

    #areas .area-arrow {
        right: 24px;
        bottom: 24px;
    }
}

/* -------------------------
   09. ABOUT
------------------------- */
#about {
    background: var(--white);
}

.about-container {
    width: min(100%, var(--max-width));
    margin: auto;

    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 90px;
    align-items: start;
}

.about-text h2 {
    margin-bottom: 30px;

    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;
}

.about-text p {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-highlight {
    position: sticky;
    top: calc(var(--header-height) + 38px);

    padding: 42px;

    background: var(--green-dark); /* darker green = white text passes contrast */
    color: var(--white);

    transform: rotate(2deg);
}

.about-highlight::before {
    content: "MEA";

    display: block;
    margin-bottom: 35px;

    font-family: var(--serif);
    font-size: 5rem;
    line-height: 1;

    color: rgba(255, 255, 255, 0.22);
}

.about-highlight p {
    color: var(--white);

    font-family: var(--serif);
    font-size: 1.7rem;
    line-height: 1.25;
}

/* -------------------------
   10. APPROACH
------------------------- */
.approach-grid {
    width: min(100%, var(--max-width));
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    counter-reset: approach;
}

.approach-item {
    counter-increment: approach; /* was missing, so numbers never showed */

    padding: 38px 25px;
    border-right: 1px solid var(--border);

    transition: background 0.3s ease;
}

.approach-item:last-child {
    border-right: none;
}

.approach-item:hover {
    background: var(--cream-dark);
}

.approach-item::before {
    content: "0" counter(approach);

    display: block;
    margin-bottom: 22px;

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;

    color: var(--terracotta);
}

.approach-item h3 {
    margin-bottom: 15px;

    font-family: var(--serif);
    font-size: 1.8rem;
}

/* -------------------------
   11. RESEARCH / INSIGHTS
   ------------------------- */
#insights {
    background: var(--cream-dark);
}

#insights .section-heading {
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto 60px;
}

#insights .section-heading h2 {
    max-width: 900px;
    margin: 14px 0 22px;

    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;

    color: var(--brown);
}

#insights .section-heading > p:last-child {
    max-width: 720px;

    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--brown-soft);
}

/* Layout: featured research + side entries */
.insights-layout {
    width: min(100% - 48px, var(--max-width));
    margin: auto;

    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 0;
}

/* Featured research item */
.insight-feature {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    min-height: 480px;
    padding: 56px 56px 52px;

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    background: var(--brown);
    color: var(--cream);

    transition:
        background 0.35s var(--ease);
}

.insight-feature__media {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 34px;

    background:
        radial-gradient(circle at 30% 20%, rgba(227, 150, 47, 0.18), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(133, 149, 67, 0.14), transparent 50%),
        var(--brown);
}

.insight-feature__stamp {
    position: relative;
    z-index: 2;

    padding: 10px 18px;

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: var(--cream);
    background: rgba(161, 41, 16, 0.55);
    border: 1px solid rgba(247, 241, 231, 0.25);
}

.insight-feature__body {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 100%;
    max-width: 760px;

    margin-top: auto;
}

.insight-feature__body .insight-type {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--ochre);
}

.insight-feature h3 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;

    color: var(--cream);
}

.insight-feature p {
    margin: 0;
    max-width: 72ch;

    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(247, 241, 231, 0.9);
}

.insight-feature__body .insight-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 6px;

    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;

    color: var(--ochre);

    transition: color 0.25s ease, gap 0.25s ease;
}

.insight-feature:hover .insight-link,
.insight-feature:focus-visible .insight-link {
    color: var(--cream);
    gap: 12px;
}

.insight-feature:hover,
.insight-feature:focus-visible {
    background: var(--cocoa);
}

/* Side entries */
.insights-side {
    display: flex;
    flex-direction: column;
}

.insight-entry {
    position: relative;

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

    padding: 40px 44px 38px;

    background: var(--cream);
    border-left: 1px solid var(--border);

    transition: background 0.3s var(--ease);
}

.insight-entry:first-child {
    border-bottom: 1px solid var(--border);
}

.insight-entry:hover,
.insight-entry:focus-within {
    background: var(--white);
}

.insight-type {
    align-self: flex-start;

    margin-bottom: 24px;
    padding: 5px 12px;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: var(--brown);
    background: rgba(46, 26, 16, 0.07);
}

.insight-type--review {
    color: var(--brown-soft);
    background: rgba(90, 53, 33, 0.1);
}

.insight-type--proposal {
    color: #6B4226;
    background: rgba(133, 149, 67, 0.14);
}

.insight-entry h3 {
    margin: 0 0 12px;

    font-family: var(--serif);
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    font-weight: 400;
    line-height: 1.15;

    color: var(--brown);
}

.insight-entry p {
    margin: 0 0 22px;

    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--brown-soft);
}

.insight-link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;

    color: var(--terracotta);

    transition: color 0.25s ease, gap 0.25s ease;
}

.insight-entry:hover .insight-link,
.insight-entry:focus-visible .insight-link {
    color: var(--ochre);
}

/* -------------------------
   INSIGHTS — RESPONSIVE
   ------------------------- */
@media (max-width: 1000px) {

    .insights-layout {
        grid-template-columns: 1fr;
    }

    .insight-feature {
        min-height: auto;
        padding: 48px 36px 40px;
    }

    .insight-feature__body {
        max-width: 100%;
    }

    .insight-feature h3 {
        font-size: clamp(1.7rem, 4vw, 2.4rem);
    }

    .insights-side {
        flex-direction: column;
    }

    .insight-entry {
        padding: 36px 32px 34px;
    }
}

@media (max-width: 760px) {

    #insights .section-heading {
        margin-bottom: 45px;
    }

    #insights .section-heading h2 {
        font-size: clamp(2.6rem, 11vw, 4rem);
    }

    .insight-feature {
        min-height: auto;
        padding: 36px 28px 32px;
    }

    .insight-feature h3 {
        font-size: clamp(1.5rem, 5vw, 2.1rem);
    }

    .insight-feature p {
        font-size: 0.96rem;
    }

    .insight-entry {
        padding: 30px 26px 28px;
    }

    .insight-entry h3 {
        font-size: clamp(1.4rem, 3.6vw, 1.8rem);
    }
}

.insights-note {
    width: min(100% - 48px, var(--max-width));
    margin: 50px auto 0;
    padding: 30px;

    background: var(--brown);
    color: var(--cream);

    border-left: 10px solid var(--ochre);
}

.insights-note p {
    color: var(--cream);
}

/* -------------------------
   12. FOUNDER
------------------------- */
#founder {
    background: var(--white);
}

.founder-container {
    width: min(100%, var(--max-width));
    margin: auto;

    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.founder-image {
    position: relative;
}

.founder-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.image-placeholder {
    min-height: 500px;

    background:
        linear-gradient(
            145deg,
            var(--terracotta) 0 50%,
            var(--ochre) 50% 75%,
            var(--green) 75%
        );

    display: flex;
    align-items: flex-end;

    padding: 30px;
}

.image-placeholder::after {
    content: "PEOPLE • RESEARCH • AFRICA";

    padding: 10px 14px;

    background: var(--brown);
    color: var(--cream);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.founder-content h2 {
    margin: 18px 0 25px;

    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;
}

.founder-content p {
    margin-bottom: 20px;
}

.founder-link {
    display: inline-flex;
    margin-top: 15px;

    font-weight: 700;
    color: var(--terracotta);

    border-bottom: 2px solid var(--ochre);

    transition: color 0.3s ease, border-color 0.3s ease;
}

.founder-link:hover {
    color: var(--green-dark);
    border-color: var(--green-dark);
}

/* -------------------------
   13. CONTACT
------------------------- */

#contact {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background: var(--cream);
    color: var(--brown);
}

/* soft filled circle, top right */
#contact::before {
    content: "";
    position: absolute;
    z-index: -1;

    width: 520px;
    height: 520px;

    right: -180px;
    top: -220px;

    border-radius: 50%;
    background: rgba(133, 149, 67, 0.10);

    pointer-events: none;
}

/* outlined ring, bottom left */
#contact::after {
    content: "";
    position: absolute;
    z-index: -1;

    width: 380px;
    height: 380px;

    left: -180px;
    bottom: -180px;

    border-radius: 50%;
    border: 1px solid rgba(161, 41, 16, 0.16);

    pointer-events: none;
}

#contact h2 {
    color: var(--brown);
}

#contact .eyebrow {
    color: var(--ochre);
}

#contact .eyebrow::before {
    background: var(--ochre);
}

.contact-container {
    width: min(100%, var(--max-width));
    margin: auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 90px;
    align-items: center;
}


/* INTRO */

.contact-intro {
    max-width: 560px;
}

.contact-intro h2 {
    margin: 26px 0 28px;

    font-family: var(--serif);
    font-size: clamp(2.4rem, 5.2vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;

    color: var(--brown);
}

/* optional: <h2>Let's build <span>evidence</span> together</h2> */
.contact-intro h2 span {
    font-style: italic;
    color: var(--terracotta);
}

#contact .contact-intro > p:not(.eyebrow) {
    max-width: 560px;

    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--brown-soft);
}


/* CONTACT DETAILS */

.contact-details {
    max-width: 470px;
    margin-top: 42px;
}

#contact .contact-details > div {
    padding: 18px 0;
    border-top: 1px solid rgba(59, 41, 34, 0.14);
}

#contact .contact-details > div:last-child {
    border-bottom: 1px solid rgba(59, 41, 34, 0.14);
}

#contact .contact-details > div > p:not(.contact-locationscope) {
    font-size: 1.02rem;
    line-height: 1.5;
    color: var(--brown);
}

#contact .contact-locationscope {
    margin-top: 6px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--ochre);
}

/* optional label above each detail: <strong>Email</strong> */
.contact-details strong {
    display: block;
    margin-bottom: 4px;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--ochre);
}

.contact-details a {
    color: var(--brown);
    overflow-wrap: anywhere;

    border-bottom: 2px solid rgba(59, 41, 34, 0.4);

    transition:
        border-color 0.3s ease,
        color 0.3s ease;
}

.contact-details a:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}


/* FORM CARD */
#contact-form {
    position: relative;

    padding: 54px 50px 46px;

    background: var(--brown);
    color: var(--cream);

    border: 1px solid rgba(247, 241, 231, 0.12);
}

/* subtle ochre accent bar at the top */
#contact-form::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 4px;

    background: var(--terracotta);
}

#contact #contact-form p {
    margin-bottom: 26px;
    color: rgba(247, 241, 231, 0.82);

    font-size: 0.98rem;
    line-height: 1.65;
}

.contact-form__intro p:first-child {
    font-family: var(--serif);
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--cream);
    margin-bottom: 10px;
}

.contact-form__intro p:last-child {
    color: rgba(247, 241, 231, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* two fields side by side: wrap two .form-group in <div class="form-row"> */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.form-group {
    margin-bottom: 20px;
}

#contact-form .form-group label {
    display: block;
    margin-bottom: 8px;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: var(--ochre);
}


/* INPUTS: soft filled fields */
#contact-form .form-group input,
#contact-form .form-group textarea,
#contact-form .form-group select {
    width: 100%;
    padding: 14px 16px;

    background: var(--cream);

    border: 1px solid rgba(59, 41, 34, 0.25);
    border-radius: 4px;

    font-family: var(--sans);
    font-size: 1rem; /* 16px stops iPhones zooming on focus */
    color: var(--brown);

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

#contact-form .form-group input::placeholder,
#contact-form .form-group textarea::placeholder {
    color: var(--brown-light);
    opacity: 0.6;
}

#contact-form .form-group input:hover,
#contact-form .form-group textarea:hover,
#contact-form .form-group select:hover {
    border-color: rgba(59, 41, 34, 0.45);
}

#contact-form .form-group input:focus,
#contact-form .form-group textarea:focus,
#contact-form .form-group select:focus {
    border-color: var(--ochre);
    box-shadow: 0 0 0 4px rgba(227, 150, 47, 0.18);
}

/* browser autofill */
#contact-form .form-group input:-webkit-autofill {
    -webkit-text-fill-color: var(--brown);
    box-shadow: 0 0 0 100px var(--cream) inset;
}

/* select arrow */
.form-group select {
    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
    padding-right: 42px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%233B2922' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

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


/* SUBMIT BUTTON (give it class="primary-button") */

#contact-form button {
    width: 100%;
    margin-top: 8px;
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 0 28px;

    font-family: var(--sans);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;

    background: var(--terracotta);
    border: 2px solid var(--terracotta);
    color: var(--cream);

    border-radius: 4px;
    cursor: pointer;

    transition:
        background 0.25s var(--ease),
        border-color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

#contact-form button:hover {
    background: var(--cocoa);
    border-color: var(--cocoa);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(161, 41, 16, 0.28);
}

#contact-form button:active {
    transform: translateY(0);
}
#contact-form button,
#contact input[type="submit"],
#contact .primary-button {
    color: var(--cream);
    -webkit-text-fill-color: var(--cream);
}

/* focus rings: ochre on the dark contact background, terracotta on cream cards */
#contact :focus-visible {
    outline-color: var(--ochre);
}

#contact-form :focus-visible {
    outline-color: var(--ochre);
}

/* optional status message: <p class="form-status"> or <p class="form-status error"> */
#contact #contact-form .form-status {
    margin: 18px 0 0;

    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ochre);
}

#contact #contact-form .form-status.error {
    color: var(--terracotta);
}


/* CONTACT: TABLET & MOBILE */

@media (max-width: 1000px) {

    .contact-container {
        grid-template-columns: 1fr;
        gap: 70px;
    }

    #contact .contact-intro > p:not(.eyebrow),
    .contact-details {
        max-width: 640px;
    }

    #contact-form {
        max-width: 640px;
    }
}

@media (max-width: 760px) {

    .contact-container {
        gap: 60px;
    }

    .contact-intro h2 {
        font-size: clamp(2rem, 8vw, 3.2rem);
    }

    #contact-form {
        padding: 36px 26px 32px;
    }

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

/* -------------------------
   14. PROJECT PAGES
------------------------- */
.project-page {
    background: var(--cream);
}

.project-header {
    padding: 100px var(--gutter) 60px;

    background: var(--brown);
    color: var(--cream);
}

.project-header h1 {
    width: min(100%, var(--max-width));
    margin: auto;

    font-family: var(--serif);
    font-size: clamp(2.8rem, 7vw, 7rem);
    font-weight: 400;

    color: var(--cream);
}

.project-attribution {
    width: min(100%, var(--max-width));
    margin: 30px auto 0;

    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(247, 241, 231, 0.8);
}

.project-attribution strong {
    color: var(--ochre);
}

/* side gutters added so text never touches the screen edge on mobile */
.project-intro,
.project-details {
    width: min(100% - (var(--gutter) * 2), var(--max-width));
    margin: auto;
}

.project-intro {
    padding: 70px 0;
}

.project-intro p {
    max-width: 800px;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.project-details {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 70px;
    padding-bottom: 100px;
}

.project-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-self: start;

    padding: 30px;

    background: var(--green-dark);
    color: var(--white);
}

.project-info {
    margin-bottom: 25px;
}

.project-info:last-child {
    margin-bottom: 0;
}

.project-info h4 {
    margin-bottom: 5px;

    color: var(--yellow);

    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.project-info p {
    color: var(--white);
}

.project-content h2 {
    margin-bottom: 20px;

    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.project-content p {
    margin-bottom: 20px;
    max-width: 70ch;
}

.project-content ul.bullet-list {
    margin: 0 0 25px 25px;
}

.project-content ul.bullet-list li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--brown-soft);
}

.project-image {
    margin: 45px 0;
}

.project-image img {
    width: 100%;
}

.image-caption {
    margin-top: 10px;

    font-size: 0.75rem;
    color: var(--brown-light);
}

.academic-context {
    margin-top: 60px;
    padding: 35px;

    background: var(--cream-dark);
    border-left: 8px solid var(--ochre);
}

.academic-context-text {
    margin-bottom: 25px;
}

.university-logo img {
    max-width: 150px;
    height: auto;
}

.project-team {
    margin-top: 60px;
}

.team-list,
.supervisor-list {
    display: grid;
    gap: 15px;
}

.team-person,
.supervisor-person {
    padding: 20px;

    background: var(--white);
    border-left: 4px solid var(--terracotta);
}

/* -------------------------
    15. FOOTER
    ------------------------- */
.container {
    width: min(100% - 48px, var(--max-width));
    margin: 0 auto;
}

/* Buttons used on about.html */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 52px;
    padding: 0 28px;

    border-radius: 999px;

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    text-align: center;

    cursor: pointer;

    transition:
        transform 0.3s var(--ease),
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border: 2px solid var(--terracotta);
}

.btn-primary:hover {
    background: var(--brown);
    border-color: var(--brown);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(59, 41, 34, 0.18);
}

footer {
    padding: 65px var(--gutter);

    background: var(--brown);
    color: var(--cream);
}

footer > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

footer p {
    color: rgba(247, 241, 231, 0.7);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--ochre);
}

/* -------------------------
   16. ANIMATIONS
------------------------- */
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes gentleFloat {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50%      { transform: rotate(-7deg) translateY(-10px); }
}

/* -------------------------
   17. SCROLL REVEAL
   Uses the separate `translate` property so it doesn't
   override the `transform` used by hover effects.
------------------------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        translate: 0 25px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.service-card,
.area-item,
.insight-feature,
.insight-entry,
.approach-item,
.about-container,
.founder-container {
    animation: fadeUp 0.8s var(--ease) both;
}

/* Where supported, reveal as each element scrolls into view */
@supports (animation-timeline: view()) {
    .service-card,
    .area-item,
    .insight-feature,
    .insight-entry,
    .approach-item,
    .about-container,
    .founder-container {
        animation: fadeUp linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}

/* -------------------------
   18. RESPONSIVE
------------------------- */
@media (max-width: 1100px) {
    nav ul {
        gap: 22px;
    }
}

@media (max-width: 1000px) {
    #home {
        grid-template-columns: 1fr;
        gap: 56px;
        padding: 80px var(--gutter) 60px;
    }

    #home::before {
        display: none;
    }

    #home::after {
        display: none;
    }

    #home h2 {
        max-width: 16ch;
        font-size: clamp(2.8rem, 8vw, 5.5rem);
    }

    .hero-visual {
        padding-inline: 0;
    }

    .hero-image-wrap {
        max-width: 520px;
    }

    .about-container,
    .founder-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-highlight {
        position: static;
    }

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

    .approach-item:nth-child(2n) {
        border-right: none;
    }

    .approach-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

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

    .project-details {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .project-sidebar {
        position: static;
    }

    /* nav: scrolls sideways instead of overflowing */
    nav {
        gap: 20px;
    }

    nav ul {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    nav ul::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 70px;
        --gutter: 18px;
    }

    nav {
        width: min(100% - 30px, var(--max-width));
    }

    nav ul {
        gap: 18px;
    }

    nav ul li a {
        font-size: 0.75rem;
    }

    #home {
        width: min(100%, var(--max-width));
        padding: 70px var(--gutter) 50px;
    }

    #home h2 {
        font-size: clamp(2.6rem, 13vw, 5rem);
    }

    .hero-visual {
        padding-inline: 0;
    }

    .hero-image-wrap {
        max-width: 100%;
    }

    section:not(#home) {
        padding: 80px var(--gutter);
    }

    .section-heading {
        margin-bottom: 45px;
    }

    .services-grid,
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 240px;
        padding-right: 80px;
    }

    .contact-container {
        gap: 40px;
    }

    #contact-form {
        padding: 36px 26px 32px;
    }

    .about-highlight {
        transform: rotate(1deg);
        padding: 32px;
    }
}

@media (max-width: 500px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 0 10px;
    }

    nav ul {
        width: 100%;
        padding-bottom: 5px;
    }

    #home {
        padding-top: 45px;
    }

    #home p {
        font-size: 0.98rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-button,
    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-visual {
        padding-inline: 0;
    }

    .hero-image-wrap {
        max-width: 100%;
    }

    .hero-image {
        border-width: 8px;
    }

    .service-card {
        padding: 30px 70px 30px 25px;
    }

    .area-item {
        padding: 28px;
    }

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

    .approach-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .founder-image .image-placeholder {
        min-height: 380px;
    }

    .project-header {
        padding-top: 70px;
    }
}

/* -------------------------
   19. REDUCED MOTION
------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }
}

/* -------------------------
   20. PRINT
------------------------- */
@media print {
    header,
    .hero-ticker,
    .hero-stamp,
    #contact-form {
        display: none !important;
    }

    body {
        background: #fff;
    }
}

/* =========================================================
    ABOUT — HERO
    ========================================================= */

.page-hero {
    position: relative;
    min-height: 620px;
    padding: 120px 0 100px;

    display: flex;
    align-items: center;

    background: var(--cream);
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    right: -120px;
    top: 50%;
    transform: translateY(-50%);

    border-radius: 50%;

    background: var(--yellow);
}

/* Smaller green accent */
.page-hero::after {
    content: "";

    position: absolute;

    width: 115px;
    height: 115px;

    right: 245px;
    top: 95px;

    border-radius: 50%;

    background: var(--green);
}

.page-hero .container {
    position: relative;
    z-index: 2;

    width: min(100% - 48px, var(--max-width));
}


/* Small label */
.page-hero .eyebrow {
    color: var(--terracotta);
}


/* Main heading */
.page-hero h1 {
    max-width: 850px;

    margin: 20px 0 28px;

    font-family: var(--serif);
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 0.88;
    letter-spacing: -0.055em;

    color: var(--brown);
}

.page-hero h1 span {
    display: block;
    color: var(--terracotta);
}


/* Intro */
.page-hero p {
    max-width: 620px;

    margin: 0;

    font-size: 1.08rem;
    line-height: 1.85;

    color: var(--brown-soft);
}


/* About section */
.about-page-section {
    padding: 120px 0;
    background: var(--white);
}

.about-page-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 100px;
    align-items: start;
}

.section-intro h2 {
    margin-top: 18px;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--brown);
}

.about-page-copy {
    max-width: 680px;
}

.about-page-copy p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--brown-soft);
}


/* Founder */
.founder-page-section {
    padding: 120px 0;
    background: var(--cream-dark);
}

.founder-page-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
    align-items: center;
}

.founder-image {
    position: relative;
}

.founder-image::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--yellow);
    left: -25px;
    top: -25px;
    z-index: 0;
}

.founder-image::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--green);
    right: -25px;
    bottom: -25px;
    z-index: 0;
}

.founder-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.founder-content h2 {
    max-width: 600px;
    margin: 18px 0 30px;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--brown);
}

.founder-content h2 span {
    color: var(--terracotta);
}

.founder-content h3 {
    margin-bottom: 5px;
    font-size: 1.35rem;
    color: var(--brown);
}

.founder-role {
    margin-bottom: 28px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--green-dark);
}

.founder-content p:not(.founder-role) {
    max-width: 650px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--brown-soft);
}


/* About CTA */
.about-page-cta {
    position: relative;
    padding: 110px 0;
    background: var(--terracotta);
    color: var(--white);
    overflow: hidden;
}

.about-page-cta::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    right: -100px;
    bottom: -120px;
}

.about-page-cta .container {
    position: relative;
    z-index: 2;
}

.about-page-cta .eyebrow {
    color: var(--yellow);
}

.about-page-cta h2 {
    max-width: 750px;
    margin: 18px 0;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.about-page-cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}


/* Active navigation */
.main-nav a.active {
    color: var(--terracotta);
}


/* =========================================================
   ABOUT PAGE — MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .page-hero {
        padding: 110px 0 80px;
    }

    .page-hero h1 {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .about-page-section,
    .founder-page-section {
        padding: 80px 0;
    }

    .about-page-grid,
    .founder-page-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-intro h2 {
        font-size: 3rem;
    }

    .founder-image {
        max-width: 430px;
        margin: 0 auto;
    }

    .founder-content h2 {
        font-size: 3.2rem;
    }

.about-page-cta {
        padding: 80px 0;
    }

}

/* =========================================
   MEA HERO — LAYOUT AND SPACING FIX
   ========================================= */

#home {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);

    width: 100%;
    max-width: none;
    box-sizing: border-box;

    margin: 0;
    padding: clamp(64px, 8vw, 110px) clamp(24px, 6vw, 96px);

    background: #F7F1E7;
    overflow: hidden;
}

#home > .eyebrow,
#home > h2,
#home > p,
#home > .hero-actions {
    grid-column: 1;
    justify-self: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

#home > .eyebrow {
    margin: 0 0 22px;
    color: #A12910;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#home > h2 {
    margin: 0 0 24px;
    color: #3B2922;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(3rem, 5.5vw, 6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-align: left;
    overflow-wrap: normal;
}

#home > h2 span {
    display: block;
    color: #A12910;
    font-style: italic;
}

#home > p {
    margin: 0 0 32px;
    max-width: 540px;
    color: #59483F;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.8;
}

#home > .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0;
}

#home > .hero-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    justify-self: end;

    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    min-width: 0;
    margin: 0;
}

#home .hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    overflow: visible;
    box-sizing: border-box;
    border: 8px solid #3B2922;
    background: #E3962F;
}

#home .hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 18px 45px rgb(59 41 34 / 12%);
}

#home::before {
    content: "";
    position: absolute;
    width: clamp(260px, 35vw, 480px);
    aspect-ratio: 1;
    border: 2px solid #859543;
    border-radius: 50%;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

#home::after {
    content: none;
}

@media (max-width: 900px) {
    #home {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
        gap: 32px;
        padding: 64px 32px;
    }

    #home > h2 {
        font-size: clamp(2.8rem, 6vw, 4.5rem);
    }

    #home > .hero-visual {
        max-width: 420px;
    }
}

@media (max-width: 680px) {
    #home {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 56px 24px 64px;
    }

    #home > .eyebrow,
    #home > h2,
    #home > p,
    #home > .hero-actions,
    #home > .hero-visual {
        grid-column: 1;
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
    }

    #home > h2 {
        font-size: clamp(2.8rem, 11vw, 4.2rem);
        margin-bottom: 20px;
    }

    #home > p {
        max-width: 100%;
        margin-bottom: 26px;
    }

    #home > .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 36px;
    }

    #home > .hero-actions a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    #home > .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    #home .hero-image-wrap {
        border-width: 6px;
    }

    #home::before {
        width: 260px;
        right: -140px;
        top: auto;
        bottom: 30px;
        transform: none;
    }
}

@media (max-width: 380px) {
    #home {
        padding-right: 18px;
        padding-left: 18px;
    }

    #home > h2 {
        font-size: 2.6rem;
    }
}