﻿/* =============================================
   NAVIGATION â€” Glassmorphism floating bar
   ============================================= */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 233, 231, 0.6);
    transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

.nav-container:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    max-width: 2400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    height: 150px;
    transition: height 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 120px;
    /* Slightly reduced constant for better padding */
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.nav-container.is-scrolled .nav-inner {
    height: 90px;
}

.nav-container.is-scrolled .logo img {
    height: 65px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 1.05rem;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    padding: 0;
    background: var(--color-primary);
    overflow: hidden;
    height: 100vh;
    z-index: 2;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Cleaner gradient: Solid dark blue on the left for text legibility, fading smoothly to completely transparent on the right to let the photo pop */
    background: linear-gradient(90deg, rgba(2, 18, 34, 0.8) 0%, rgba(3, 17, 32, 0.7) 45%, rgba(5, 17, 29, 0.1) 85%, transparent 100%);
    z-index: 1;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
    transform: scale(1.1);
    transition: transform 8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-slide.is-active img {
    transform: scale(1);
}

/* Animations for text inside slides */
.hero-slide .hero-badge,
.hero-slide .hero-title,
.hero-slide .hero-subtitle,
.hero-slide .hero-actions {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 800ms ease;
}

.hero-slide.is-active .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 200ms;
}

.hero-slide.is-active .hero-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 400ms;
}

.hero-slide.is-active .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 600ms;
}

.hero-slide.is-active .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 800ms;
}

.hero-inner {
    position: absolute;
    /* Re-positioned to be relative to the slide */
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    padding-bottom: 4rem;
    pointer-events: none;
}

.hero-text {
    pointer-events: auto;
}

.hero-text {
    flex: 0 0 auto;
    max-width: 800px;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.65rem;
    background: var(--color-accent-soft);
    border: 1px solid rgba(79, 171, 72, 0.25);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.75rem;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    max-width: 800px;
    margin-bottom: 1.5rem;
    line-height: 1.08;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 650px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    font-weight: 400;
}

/* Hero action buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 14px rgba(79, 171, 72, 0.25);
}

.btn-hero:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 171, 72, 0.35);
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

/* Hero edge arrows â€” large, positioned on extreme left/right */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 0;
}

.hero-arrow.hero-prev {
    left: 2rem;
}

.hero-arrow.hero-next {
    right: 2rem;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-arrow svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

/* =============================================
   WHAT WE DO SECTION (rt-feature-v1 Layout)
   ============================================= */
.what-we-do-section {
    padding: var(--spacing-xl) 0;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.wwd-header {
    max-width: 100%;
    margin-bottom: 3.5rem;
}

.wwd-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-top: 1rem;
}

.rt-feature-v1-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    align-items: stretch;
}

.rt-feature-v1-left-wrapper {
    flex: 0 0 calc(55% - 24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rt-position-relative {
    position: relative;
}

/* Feature Rows Grid */
.rt-feature-v1-row-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.rt-feature-v1-row-wrapper.rt-feature-row-top-padding {
    padding-top: 45px;
    margin-top: 45px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rt-feature-v1-content-wrapper {
    padding-right: 40px;
    position: relative;
    transition: transform 0.3s ease;
}

.rt-feature-v1-row-wrapper>.rt-feature-v1-content-wrapper:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding-right: 30px;
}

.rt-feature-v1-row-wrapper>.rt-feature-v1-content-wrapper:last-child {
    padding-left: 30px;
    padding-right: 0;
}

/* Icon & Text */
.rt-feature-icon-box {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.rt-feature-icon-box svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rt-feature-v1-content-wrapper:hover .rt-feature-icon-box {
    background: rgba(0, 186, 97, 0.15);
    transform: scale(1.05);
}

.rt-feature-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.rt-feature-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

.rt-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.3s ease;
}

.rt-feature-link:hover {
    color: var(--color-accent);
}

.rt-feature-link .arrow {
    transition: transform 0.3s ease;
}

.rt-feature-link:hover .arrow {
    transform: translateX(4px);
}

/* Right side Image */
.rt-feature-v1-right-wrapper {
    flex: 0 0 calc(45% - 24px);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.rt-image-effect {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 600px;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rt-feature-v1-right-wrapper:hover .rt-image-effect {
    transform: scale(1.04);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .rt-feature-v1-wrapper {
        flex-direction: column;
    }

    .rt-feature-v1-left-wrapper,
    .rt-feature-v1-right-wrapper {
        flex: 1;
    }

    .rt-image-effect {
        min-height: 480px;
    }

    .hero-arrow {
        width: 48px;
        height: 48px;
    }

    .hero-arrow.hero-prev {
        left: 1rem;
    }

    .hero-arrow.hero-next {
        right: 1rem;
    }

    .hero-arrow svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .rt-feature-v1-row-wrapper {
        grid-template-columns: 1fr;
    }

    .rt-feature-v1-row-wrapper>.rt-feature-v1-content-wrapper:first-child {
        border-right: none;
        padding-right: 0;
        padding-bottom: 40px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        margin-bottom: 40px;
    }

    .rt-feature-v1-row-wrapper>.rt-feature-v1-content-wrapper:last-child {
        padding-left: 0;
    }

    .rt-feature-v1-row-wrapper.rt-feature-row-top-padding {
        padding-top: 40px;
        margin-top: 40px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .hero-arrow.hero-prev {
        left: 0.75rem;
    }

    .hero-arrow.hero-next {
        right: 0.75rem;
    }

    .hero-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* =============================================
   POSITIONING SECTION
   ============================================= */
.positioning-section {
    background: #fff;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.positioning-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 6rem;
    align-items: center;
}

.positioning-image-wrap {
    position: relative;
    border-radius: 12px;
    height: 100%;
    min-height: 500px;
}

.positioning-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.positioning-decoration {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    background: var(--color-surface);
    border-radius: 16px;
    z-index: 1;
}

.positioning-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.positioning-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--color-primary);
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.positioning-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

.positioning-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    list-style: none;
}

.positioning-stats li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.positioning-stats strong {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-primary);
    line-height: 1;
}

.positioning-stats span {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .positioning-layout {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .positioning-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .positioning-image-wrap {
        min-height: 400px;
        order: -1;
    }

    .positioning-decoration {
        bottom: -15px;
        right: -15px;
        left: auto;
    }

    .positioning-stats {
        gap: 1rem;
    }
}

/* =============================================
   STAT OPENER
   ============================================= */
.stat-opener {
    background: #e5ebf2;
    padding: 52px;
    position: relative;
    overflow: hidden;
    padding-top: calc(52px + 5vh);
    z-index: 1;
}

.stat-opener::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(2, 43, 84, .1);
    border-radius: 50%;
}

.stat-opener::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(2, 43, 84, .08);
    border-radius: 50%;
}

.stat-opener-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    z-index: 1;
}

.stat-headline {
    border-right: 1px solid rgba(2, 43, 84, .15);
    padding-right: 52px;
}

.stat-headline-tag {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--color-primary);
    opacity: .6;
    font-weight: 500;
    margin-bottom: 14px;
}

.stat-headline h2 {
    font-family: var(--font-serif);
    font-size: 44px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -.3px;
}

.stat-big-num {
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-big-label {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.stat-right {
    padding-left: 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(2, 43, 84, .12);
}

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

.stat-row-n {
    font-family: var(--font-serif);
    font-size: 56px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    width: 120px;
}

.stat-row-n sup {
    font-size: 24px;
    font-weight: 400;
    vertical-align: super;
}

.stat-row-info {
    flex: 1;
}

.stat-row-info strong {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 3px;
}

.stat-row-info span {
    font-size: 15px;
    color: var(--color-text-secondary);
    font-weight: 400;
}

@media (max-width: 900px) {
    .stat-opener-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-headline {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(2, 43, 84, .15);
        padding-bottom: 40px;
    }

    .stat-right {
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .stat-opener {
        padding: 32px 20px;
    }

    .stat-headline h2 {
        font-size: 32px;
    }

    .stat-big-num {
        font-size: 72px;
    }

    .stat-row-n {
        font-size: 40px;
        width: 90px;
    }

    .stat-row-n sup {
        font-size: 18px;
    }
}

/* =============================================
   PARTNER STRIP
   ============================================= */
.partner-strip-section {
    padding: 3.5rem 0;
    background: #F8FAF9;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

#partners .container {
    width: 100%;
    max-width: none;
    padding: 0 5em;
}

.partner-strip-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
}

.partner-marquee {
    width: 100%;
    overflow: hidden;
    --partner-items-per-batch: 3;
    --partner-item-width: 240px;
}

.partner-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: max-content;
}

.partner-marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--partner-item-width, 240px);
    height: 140px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.partner-marquee-item:hover {
    opacity: 1;
}

.partner-logo {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    background: none;
    box-sizing: border-box;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.partner-marquee-item:hover .partner-logo {
    filter: grayscale(0%);
}

.bg-primary .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* --- Inline-style replacements --- */

.stat-big-num-wrap {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-big-label {
    margin-top: 18px;
}

.problem-subtitle {
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;
}

.tooltip-stat-label {
    color: var(--color-text-secondary);
}

.climate-context-text {
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    font-size: 1.5rem;
}

.cta-subtitle {
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.insights-heading {
    margin-bottom: 0;
    color: var(--color-primary);
}

.timeline-header {
    padding: 0 3rem;
    text-align: center;
}

/* =============================================
   TREEMAP
   ============================================= */
.treemap-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: var(--spacing-md);
}

.treemap-row {
    display: flex;
    gap: 6px;
}

.treemap-cell {
    position: relative;
    padding: var(--spacing-md);
    color: white;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    border-radius: 6px;
}

.treemap-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.treemap-cell:hover::before {
    opacity: 1;
}

.treemap-cell:hover {
    transform: scale(1.02);
    filter: brightness(1.08);
    z-index: 10;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.treemap-cell>* {
    position: relative;
    z-index: 1;
}

.treemap-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    z-index: 0 !important;
    pointer-events: none;
}

.treemap-value {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.treemap-label {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.treemap-capital {
    font-size: 0.75rem;
    opacity: 0.7;
}

.treemap-tooltip {
    position: fixed;
    pointer-events: none;
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 2000;
    min-width: 200px;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.treemap-tooltip.is-visible {
    display: block;
}

.tooltip-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.tooltip-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--color-surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: var(--spacing-md);
    border-radius: 12px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card.card-glass {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card.card-glass h3 {
    color: white;
    margin-bottom: 1rem;
}

.card.card-glass p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(2, 43, 84, 0.06);
}

.card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

/* =============================================
   IMAGE PLACEHOLDER
   ============================================= */
.image-placeholder {
    background: linear-gradient(135deg, #f0f2f0, #e8ece9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* =============================================
   HORIZONTAL ACCORDION (Pillars)
   ============================================= */
.pillars-section {
    background: linear-gradient(135deg, #F4F2E8, #EDF0E6);
    overflow: hidden;
}

.pillars-container {
    display: flex;
    width: 100%;
    gap: 12px;
    margin-top: 3.5rem;
    align-items: stretch;
}

.pillar-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
    display: flex;
    min-width: 90px;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 10px 40px rgba(0, 0, 0, 0.08);
}

.pillar-item:not(.is-active):hover {
    flex: 1.25;
    filter: brightness(1.1);
}

.pillar-item.is-active {
    flex: 6;
    cursor: default;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Overlay gradient for legibility inside cards */
.pillar-item::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.pillar-collapsed-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    transition: opacity 0.4s ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0.4) 100%);
    color: #ffffff !important;
}

.pillar-item.is-active .pillar-collapsed-label {
    opacity: 0;
    pointer-events: none;
}

.pillar-number-collapsed {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pillar-title-collapsed {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #ffffff !important;
}

.pillar-content {
    flex: 1;
    width: 700px;
    min-width: 700px;
    height: 100%;
    padding: 30px 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
    color: white;
    z-index: 2;
}

.pillar-item.is-active .pillar-content {
    opacity: 1;
    transform: translateX(0);
}

.pillar-id {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 16px;
    border-radius: 100px;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.15em;
}

.pillar-title-large {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.pillar-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #dadada;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pillar-description {
    font-size: 1.15rem;
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Glassmorphism Elements */
.pillar-audience-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    max-width: 550px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, background 0.3s ease;
}

.pillar-audience-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.pillar-audience-label {
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   TESTIMONIALS (Modern Side Layout)
   ============================================= */
.testimonials-section {
    background: #FDFDFB;
    padding: 120px 0;
    overflow: hidden;
    position: relative;
}

.testimonial-layout {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 80px;
    align-items: center;
}

/* Side Navigation */
.testimonial-nav-side {
    display: flex;
    justify-content: center;
}

.nav-side-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-avatar-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: #f0f2f0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-avatar-inner {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
    z-index: 2;
    transition: color 0.4s ease;
}

.nav-avatar-blob {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-avatar-btn:hover {
    transform: scale(1.1);
}

.nav-avatar-btn.is-active {
    background: var(--color-primary);
    transform: scale(1.1);
}

.nav-avatar-btn.is-active .nav-avatar-inner {
    color: white;
}

.nav-avatar-btn.is-active .nav-avatar-blob {
    opacity: 1;
    transform: scale(1);
}

/* Content Area */
.testimonial-main {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.testimonial-display {
    width: 100%;
    position: relative;
}

.testimonial-slide {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.testimonial-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* Quote Typography */
.quote-icon-large {
    font-family: var(--font-serif);
    font-size: 8rem;
    color: var(--color-accent);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: -60px;
    margin-left: -20px;
}

.testimonial-quote-modern {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.35;
    color: var(--color-primary);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
    position: relative;
}

/* Meta Data */
.testimonial-meta-modern {
    border-left: 3px solid var(--color-accent);
    padding-left: 24px;
}

.meta-name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.meta-detail {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.meta-company {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
}

.affiliation-pill {
    display: inline-block;
    background: rgba(79, 171, 72, 0.1);
    color: var(--color-accent);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
}

@media (max-width: 1024px) {
    .testimonial-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonial-nav-side {
        order: 2;
    }

    .nav-side-track {
        flex-direction: row;
        justify-content: center;
    }

    .testimonial-main {
        order: 1;
        min-height: 450px;
    }

    .testimonial-quote-modern {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .testimonial-quote-modern {
        font-size: 1.5rem;
    }

    .testimonial-main {
        min-height: 500px;
    }
}

/* =============================================
   TIMELINE (Horizontal, no scroll-capture)
   ============================================= */
.timeline-section {
    position: relative;
    overflow-x: hidden;
    padding: var(--spacing-xl) 0;
    background: #0b508a;
}

/* Background image with opacity */
.timeline-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../kranich17-grass-7612456.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: 0;
}

.timeline-section>* {
    position: relative;
    z-index: 1;
}

.timeline-header {
    text-align: center;
    padding: 0 20px 0;
    /* Reduced top/bottom padding to let section padding handle it */
    margin-bottom: 2rem;
}

.timeline-header h2 {
    color: white;
}

.timeline-scroll-x {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1rem 5em 2rem;
    /* Reduced padding from 40px/100px */
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}


.timeline-horizontal {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 90px 0 90px;
    width: 100%;
    justify-content: space-between;
}

/* horizontal line */
.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ddd;
}

.timeline-item {
    position: relative;
    width: auto;
    transition: opacity 300ms ease, transform 300ms ease;
    flex: 1 1 220px;
    min-width: 240px;
    /* Allows items to squeeze closer together on mid-res, but triggers scroll before becoming 'long and thin' */
    scroll-snap-align: start;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background: #01162b;
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s ease;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    margin-left: 0;
}

.timeline-content {
    width: 85%;
    max-width: 340px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-left: 0;
    margin-right: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-row: 3;
    align-self: start;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-row: 1;
    align-self: end;
}

.timeline-image {
    margin-top: 12px;
    height: 140px;
    background: #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease-out;
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.05);
}

/* hover */
.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    font-weight: bold;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-primary);
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    font-family: var(--font-sans);
}

@media (max-width: 1024px) {
    .timeline-content {
        width: 95%;
        padding: 16px;
    }

    .timeline-image {
        height: 120px;
    }

    .timeline-item {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .timeline-scroll-x {
        padding-left: 1em;
        padding-right: 1em;
    }

    .timeline-content {
        width: 100%;
        padding: 12px;
    }

    .timeline-image {
        height: 100px;
        margin-top: 8px;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-item {
        min-width: 180px;
    }
}

/* =============================================
   CAROUSEL NAV (Testimonials) - Legacy Cleanup
   ============================================= */

/* =============================================
   MODEL (Our Theory of Change)
   ============================================= */
.model-section {
    background: #FDFDFB;
    padding: 120px 0;
    border-bottom: 1px solid var(--color-border);
}

.section-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.section-h {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

.model-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 40px;
}

.mstep {
    background: #F8F7F2;
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    border: 1px solid var(--color-border);
    margin-left: -1px;
}

.mstep:hover {
    background: white;
}

.mstep:first-child {
    border-top: 4px solid #aef453;
}

.mstep:nth-child(2) {
    border-top: 4px solid #42bc4b;
}

.mstep:nth-child(3) {
    border-top: 4px solid #0b508a;
}

.mstep:last-child {
    border-top: 4px solid var(--color-primary);
}

.mstep-num {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    margin-bottom: 1.5rem;
    display: block;
}

.mstep-verb {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

.mstep h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mstep p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-weight: 400;
}


/* =============================================
   AUDIENCE (Who We Work With)
   ============================================= */
.audience-section {
    background: var(--color-primary);
    padding: 120px 0;
    color: white;
}

.audience-h {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3.5rem;
    letter-spacing: -0.01em;
}

.aud-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.aud-cell {
    background: var(--color-primary);
    padding: 48px 32px;
    border-top: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.aud-cell:hover {
    background: #033a70;
    transform: translateY(-4px);
}

.aud-cell:nth-child(1) {
    border-top-color: #aef453;
}

.aud-cell:nth-child(2) {
    border-top-color: #4fab48;
}

.aud-cell:nth-child(3) {
    border-top-color: #8ce13e;
}

.aud-cell:nth-child(4) {
    border-top-color: #3ea2d8;
}

.aud-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.aud-icon svg {
    width: 100%;
    height: 100%;
    stroke: #aef453;
    fill: none;
    stroke-width: 1.5;
}

.aud-cell h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.aud-cell p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 300;
}

.aud-footer-cta {
    margin-top: 0px;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    text-align: center;
}

.aud-cta-wrap {
    max-width: 700px;
}

.cta-kicker {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #aef453;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
}

.cta-h {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    line-height: 1.25;
    color: white;
    margin-bottom: 1.25rem;
}

.aud-cta-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.aud-main-link {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    color: #aef453;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-arrow {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.aud-main-link:hover {
    color: white;
}

.aud-main-link:hover .cta-arrow {
    transform: translateX(12px);
    stroke: #aef453;
}

@media (max-width: 1024px) {
    .cta-h {
        font-size: 1.75rem;
    }
}

@media (max-width: 1024px) {

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

}

@media (max-width: 650px) {

    .model-steps,
    .aud-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   INSIGHTS
   ============================================= */
.insights-section {
    padding: 120px 0;
    background: #fdfdfb;
}

.insights-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.ins-see-all {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.ins-see-all:hover {
    color: var(--color-accent);
    padding-right: 8px;
}

.ins-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ins-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.ins-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.ins-image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    width: 100%;
    background: #f0f2f0;
    overflow: hidden;
}

.ins-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ins-card:hover .ins-img {
    transform: scale(1.05);
}

.ins-image-wrap .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.8rem;
}

.ins-type {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ins-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ins-card h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.35;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.ins-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.ins-meta {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .ins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .insights-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}


/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section {
    background: var(--color-surface);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid var(--color-border);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
}

.contact-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.contact-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.contact-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.contact-details li svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent);
    flex-shrink: 0;
}

.contact-map {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(2, 43, 84, 0.08);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

.contact-form-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 40px rgba(2, 43, 84, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.01em;
}

.form-group .req {
    color: var(--color-accent);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background: #f8f9f8;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    width: 100%;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5550' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0bbb5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 171, 72, 0.12);
}

.contact-submit {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-sans);
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(2, 43, 84, 0.2);
}

.contact-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.contact-submit:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(2, 43, 84, 0.28);
}

.contact-submit:hover svg {
    transform: translateX(3px) translateY(-3px);
}

.contact-notice {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    text-align: center;
    margin-top: 0.25rem;
}

.contact-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 1rem;
}

.contact-success svg {
    width: 56px;
    height: 56px;
    stroke: var(--color-accent);
}

.contact-success h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    color: var(--color-primary);
}

.contact-success p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 380px;
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-desc {
        max-width: none;
    }
}

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

    .contact-form-wrap {
        padding: 1.5rem;
    }
}

/* ============================================= */

.site-footer {
    background: #01162b;
    color: rgba(255, 255, 255, 0.65);
    padding: 0;
    position: relative;
}

.footer-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-accent));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    padding: 4rem 0 3rem;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.footer-brand p {
    max-width: 380px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-links-wrap {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s ease;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.75rem 0;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0 2rem;
    }
}

@media (max-width: 600px) {
    .footer-links-wrap {
        flex-direction: column;
        gap: 2rem;
    }
}



/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .treemap-row {
        flex-direction: column;
    }

    .treemap-cell {
        width: 100% !important;
        min-height: 120px;
    }

    .nav-links {
        display: none;
    }

    .pillars-container {
        height: auto;
        flex-direction: column;
        border-radius: 8px;
    }

    .pillar-item {
        min-height: 80px;
        flex-direction: column;
        width: 100%;
    }

    .pillar-item.is-active {
        flex: 1;
    }

    .pillar-collapsed-label {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 1.5rem;
        justify-content: space-between;
    }

    .pillar-title-collapsed {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 1.25rem;
    }

    .pillar-content {
        padding: 2rem;
    }

    .pillar-title-large {
        font-size: 2.5rem;
    }

    .testimonial-quote {
        font-size: 1.5rem;
    }

    /* Timeline responsive behavior is handled in the Timeline section styles. */

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    #partners .container {
        padding: 0 2em;
    }
}

@media (max-width: 600px) {
    #partners .container {
        padding: 0 1em;
    }

    .hero-inner {
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero-badge {
        font-size: 0.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .partner-marquee-item {
        height: 100px;
    }
}

.text-highlight-accent {
    color: var(--color-accent);
    font-weight: 700;
    font-style: italic;
}

/* =============================================
   ACTIVE PROGRAMMES
   ============================================= */
.active-programmes {
    padding: 100px 0;
    background-color: #f8f7f3;
}

.active-programmes .section-header {
    margin-bottom: 50px;
}

.active-programmes .section-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #22c55e;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.active-programmes .section-title {
    font-size: 3rem;
    color: var(--color-background);
}

.programmes-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.programme-card {
    padding: 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.programme-card.feature-card {
    background-color: var(--color-primary);
    color: #ffffff;
}

.programme-card.feature-card h3.card-title {
    color: #ffffff;
}

.programme-card.mini-card {
    background-color: #ffffff;
    color: var(--color-background);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.status-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mini-status {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
    display: block;
}

.programme-card .card-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.mini-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.programme-card .card-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.mini-card .card-desc {
    font-size: 1rem;
    margin-bottom: 24px;
    opacity: 0.8;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.card-tags .tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.btn-lime {
    background-color: #bef227;
    color: #000;
    border: none;
    font-weight: 800;
    padding: 16px 28px;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    width: fit-content;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 4px;
    margin-top: auto;
}

.btn-lime:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(190, 242, 39, 0.4);
}

.card-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-background);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-link:hover .arrow {
    transform: translateX(4px);
}

.card-link .arrow {
    transition: transform 0.2s ease;
}

.programmes-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

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