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

/* Inter — self-hosted variable font, 400-700 in one file.
   Pins the wordmark and body type so they render identically on every device
   instead of falling back to each OS's own UI font. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/inter-latin-ext-var.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --forest-green: #1b5e4d;
    --carbon-brown: #8b6f47;
    --carbon-brown-text: #6f5735; /* AA contrast for small brown text on light backgrounds */
    --dark-forest: #2d4a3e;
    --light-green: #e8f3f0;
    --light-brown: #f4efe8;
    --light-gray: #f5f5f5;
    --medium-gray: #e8e8e8;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

/* Sized to the wordmark SVG's box height so the header bar doesn't grow. */
.logo-icon {
    display: block;
    height: 52px;
    width: auto;
    flex-shrink: 0;
}

.logo-mark {
    display: block;
    height: 52px;
    width: auto;
    overflow: visible;
}

.logo-line-1,
.logo-line-2 {
    fill: var(--forest-green);
    font-family: inherit;
}

.logo-line-1 {
    font-size: 40px;
    font-weight: 700;
}

.logo-line-2 {
    font-size: 21px;
    font-weight: 600;
    fill: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--carbon-brown-text);
}

.nav-menu .btn-contact {
    background: var(--carbon-brown);
    color: var(--white);
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
}

.nav-menu .btn-contact:hover {
    background: var(--forest-green);
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 8rem;
    background: url('../media/hero-forest.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-content {
    max-width: min(100%, 1180px);
    padding: 0 2rem 0 clamp(14rem, 20vw, 20rem);
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.1vw, 4.9rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.hero p {
    font-size: clamp(1.35rem, 1.9vw, 1.75rem);
    opacity: 0.95;
    line-height: 1.5;
    max-width: 24em;
    text-wrap: balance;
}

/* Main Content Sections */
section {
    padding: 5rem 3rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-intro {
    max-width: 1000px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-intro h2 {
    font-size: 2.5rem;
    color: var(--forest-green);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.section-intro p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* About Section - Reduced bottom padding */
#about {
    padding-bottom: 2rem;
}

/* Why Invest Section - Scroll Animations */
.why-invest-section {
    background: var(--white);
    position: relative;
    --header-h: 90px;
}

.why-invest-intro {
    padding: 5rem 3rem 2rem;
    text-align: center;
}

.why-invest-intro h2 {
    font-size: 3rem;
    color: var(--forest-green);
    font-weight: 700;
    line-height: 1.2;
}

.why-invest-intro p {
    margin-top: 0.75rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

.scroll-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.sticky-wrapper {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 5rem;
    align-items: flex-start;
}

.sticky-wrapper > * {
    min-width: 0;
}

.visual-container {
    position: -webkit-sticky;
    position: sticky;
    top: calc(50vh - 260px);
    height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.master-visual {
    width: 460px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

.visual-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.visual-svg text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    user-select: none;
}

.visual-svg .metric-big {
    font-size: 44px;
    font-weight: 700;
    fill: var(--forest-green);
    text-anchor: middle;
    letter-spacing: -0.02em;
}

.visual-svg .metric-sub {
    font-size: 12px;
    font-weight: 600;
    fill: var(--text-light);
    text-anchor: middle;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.visual-svg .tag {
    font-size: 11px;
    font-weight: 600;
    fill: var(--text-dark);
    letter-spacing: 0.02em;
}

.visual-svg .tag-pill {
    fill: var(--white);
    stroke: var(--medium-gray);
    stroke-width: 1;
}

.visual-svg .halo {
    fill: var(--white);
    opacity: 0.9;
}

.visual-svg .ring {
    fill: none;
    stroke: var(--forest-green);
    stroke-width: 3;
}

.visual-svg .ring-tenure {
    fill: none;
    stroke: var(--carbon-brown);
    stroke-width: 3;
    stroke-dasharray: 5 9;
    stroke-linecap: round;
    animation: pcrDash 14s linear infinite;
}

.visual-svg .layer {
    will-change: opacity;
}

/* State 0: scarcity gauge */
.visual-svg .gauge-track { fill: none; stroke: var(--medium-gray); stroke-width: 10; }
.visual-svg .gauge-global { fill: none; stroke: #a8d5a8; stroke-width: 10; stroke-linecap: round; }
.visual-svg .gauge-pk { fill: none; stroke: var(--forest-green); stroke-width: 10; stroke-linecap: round; }
.visual-svg .dot { fill: #d9d9d9; }
.visual-svg .dot.forest { fill: var(--forest-green); }

/* State 1: land parcels */
.visual-svg .parcel { stroke: var(--white); stroke-width: 2; }
.visual-svg .parcel-a { fill: var(--light-green); }
.visual-svg .parcel-b { fill: var(--light-brown); }
.visual-svg .parcel-c { fill: #d4e8d4; }
.visual-svg .parcel-check { fill: none; stroke: var(--forest-green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* State 2: trees and carbon */
.visual-svg .soil { fill: var(--light-brown); }
.visual-svg .ground { stroke: var(--carbon-brown); stroke-width: 2; }
.visual-svg .trunk { fill: var(--carbon-brown); }
.visual-svg .canopy { fill: var(--forest-green); }
.visual-svg .canopy.deep { fill: var(--dark-forest); }
.visual-svg .canopy.far { fill: #4f8a76; }
.visual-svg .co2 {
    fill: var(--forest-green);
    font-size: 9px;
    font-weight: 700;
    text-anchor: middle;
    animation: pcrFall 5s linear infinite;
}
.visual-svg circle.co2 { animation: pcrFall 4.2s linear infinite; }

/* State 3: ecological zones */
.visual-svg .range-back { fill: #4f8a76; }
.visual-svg .range-front { fill: var(--dark-forest); }
.visual-svg .plains { fill: #d4e8d4; }
.visual-svg .grass { stroke: var(--forest-green); stroke-width: 1.4; fill: none; stroke-linecap: round; opacity: 0.7; }
.visual-svg .arid { fill: #efe4cf; }
.visual-svg .dune { stroke: var(--carbon-brown); stroke-width: 2; fill: none; opacity: 0.5; }

/* State 4: globe and finance */
.visual-svg .ocean { fill: var(--light-green); opacity: 0.55; }
.visual-svg .graticule { fill: none; stroke: var(--forest-green); stroke-width: 0.6; opacity: 0.18; }
.visual-svg .land { fill: #b9d3c6; stroke: var(--white); stroke-width: 0.6; stroke-linejoin: round; }
.visual-svg .pak { fill: var(--forest-green); stroke: var(--white); stroke-width: 0.8; }
.visual-svg .coin-shape { fill: var(--carbon-brown); stroke: var(--white); stroke-width: 1.2; }
.visual-svg .coin-text { fill: var(--white); font-size: 9px; font-weight: 700; text-anchor: middle; }
.visual-svg .flow { fill: none; stroke: var(--carbon-brown); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 4 5; opacity: 0.8; }
.visual-svg .marker-pulse { fill: none; stroke: var(--forest-green); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pcrPulse 2.4s ease-out infinite; }

@keyframes pcrDash {
    to { stroke-dashoffset: -140; }
}

@keyframes pcrFall {
    0%   { transform: translateY(0); opacity: 0; }
    15%  { opacity: 0.9; }
    85%  { opacity: 0.6; }
    100% { transform: translateY(135px); opacity: 0; }
}

@keyframes pcrPulse {
    0%   { transform: scale(0.5); opacity: 0.9; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* Step indicator beneath the visual */
.visual-steps {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 460px;
    min-width: 0;
}

.visual-steps .step-caption {
    min-width: 0;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-container {
    position: relative;
}

.invest-point {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.25;
    transform: translateY(40px);
    will-change: opacity, transform;
}

.invest-point:first-child {
    padding-top: 15vh;
}

.invest-point:last-child {
    padding-bottom: 40vh;
}

.invest-point p {
    font-size: 2.35rem;
    color: var(--forest-green);
    line-height: 1.25;
    font-weight: 700;
    max-width: 780px;
}

@media (prefers-reduced-motion: reduce) {
    .visual-svg * {
        animation: none !important;
        transition: none !important;
    }
}

/* Process section */
.process-section {
    background: var(--light-gray);
}

.process-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.process-step {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
}

.step-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--carbon-brown-text);
    margin-bottom: 1rem;
}

.step-icon, .integrity-item svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--forest-green);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.25rem;
    color: var(--forest-green);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.97rem;
}

.integrity {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--medium-gray);
}

.integrity h3 {
    font-size: 1.6rem;
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.integrity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.integrity-item svg {
    width: 30px;
    height: 30px;
    stroke: var(--carbon-brown);
    margin-bottom: 0.75rem;
}

.integrity-item h3,
.integrity-item h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.integrity-item p {
    color: var(--text-light);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    background: var(--forest-green);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Carbon math */
.math-section {
    background: var(--white);
}

.math-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.math-lead h2 {
    font-size: 2.5rem;
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.math-lead p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

.math-lead .math-note {
    font-size: 0.92rem;
    line-height: 1.7;
    padding-left: 1rem;
    border-left: 3px solid var(--carbon-brown);
}

.math-card {
    background: var(--light-green);
    border-radius: 4px;
    padding: 1rem 2rem;
}

.math-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(27, 94, 77, 0.15);
}

.math-row:last-child {
    border-bottom: none;
}

.math-row span {
    color: var(--text-dark);
    line-height: 1.5;
}

.math-row strong {
    color: var(--forest-green);
    font-size: 1.35rem;
    white-space: nowrap;
}

.math-row.total {
    border-top: 2px solid var(--forest-green);
    margin-top: 0.5rem;
    padding-top: 1.4rem;
}

.math-row.total strong {
    font-size: 1.6rem;
}

/* Partners */
.partners-section {
    background: var(--light-green);
}

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

.partner-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.partner-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--carbon-brown-text);
    margin-bottom: 0.75rem;
}

.partner-card h3 {
    font-size: 1.4rem;
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.partner-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.partner-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.partner-card li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
    line-height: 1.55;
    font-size: 0.97rem;
}

.partner-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--forest-green);
}

.partner-cta {
    align-self: flex-start;
    background: var(--forest-green);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.partner-cta:hover {
    background: var(--dark-forest);
}

/* Timeline Section */
.timeline-section {
    background: var(--light-brown);
}

.timeline-callout {
    max-width: 900px;
    margin: -1.5rem auto 3.5rem;
    background: var(--white);
    border-left: 4px solid var(--carbon-brown);
    padding: 1.5rem 2rem;
    border-radius: 0 4px 4px 0;
    line-height: 1.7;
}

.timeline-callout strong {
    display: block;
    color: var(--forest-green);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.timeline-callout span {
    color: var(--text-light);
}

.timeline-list {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--medium-gray);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--carbon-brown-text);
    white-space: nowrap;
    line-height: 1.1;
}

.timeline-content h3,
.timeline-content h4 {
    font-size: 1.35rem;
    color: var(--forest-green);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

.timeline-gate {
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    background: rgba(139, 111, 71, 0.1);
    border-radius: 4px;
    font-size: 0.95rem;
}

.timeline-gate strong {
    color: var(--carbon-brown-text);
}

/* Standards badges */
.standards-section {
    background: var(--white);
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.badge {
    display: block;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s;
}

a.badge:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.badge-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--light-brown);
    color: var(--carbon-brown-text);
    margin-bottom: 1rem;
}

.badge-status.done {
    background: var(--light-green);
    color: var(--forest-green);
}

.badge h3 {
    font-size: 1.15rem;
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.badge p {
    color: var(--text-light);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Team Section */
.team-section {
    background: var(--white);
}

.team-member {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 3rem;
    background: var(--light-green);
    border-radius: 4px;
}

.team-photo {
    width: 200px;
    height: 200px;
    background: var(--forest-green);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    font-weight: 700;
}

.team-info h3 {
    font-size: 1.75rem;
    color: var(--forest-green);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-role {
    color: var(--carbon-brown-text);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.team-bio {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.team-bio strong {
    color: var(--text-dark);
}

.advisors {
    max-width: 900px;
    margin: 3rem auto 0;
}

.advisors h3 {
    font-size: 1.5rem;
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.advisors > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.advisor-role {
    border: 1px dashed var(--carbon-brown);
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
}

.advisor-role h3,
.advisor-role h4 {
    color: var(--carbon-brown-text);
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.advisor-role p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* FAQ */
.faq-section {
    background: var(--light-gray);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-list details {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    padding: 0 1.5rem;
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 2.5rem 1.25rem 0;
    font-weight: 700;
    color: var(--forest-green);
    font-size: 1.08rem;
    position: relative;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--carbon-brown-text);
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: '\2212';
}

.faq-list details p {
    color: var(--text-light);
    line-height: 1.75;
    padding: 0 0 1.5rem;
}

.hp-field { display: none; }

.form-status {
    margin-top: 1rem;
    min-height: 1.5em;
    font-size: 0.95rem;
    color: var(--white);
}

/* Contact Section */
.contact-section {
    background: var(--forest-green);
    color: var(--white);
}

.contact-section .section-intro h2,
.contact-section .section-intro p {
    color: var(--white);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 4px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    background: rgba(255,255,255,0.95);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
}

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

.submit-btn {
    background: var(--carbon-brown);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--dark-forest);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.8);
    padding: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-brand p {
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 0.9rem;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .hero-content {
        padding-left: 6rem;
    }

    .sticky-wrapper {
        grid-template-columns: 340px 1fr;
        gap: 3rem;
    }

    .master-visual {
        width: 340px;
    }

    .visual-container {
        top: calc(50vh - 210px);
        height: 420px;
    }

    .invest-point p {
        font-size: 1.9rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 1rem 1.5rem;
    }

    .logo-mark {
        height: 42px;
    }

    .logo-icon {
        height: 42px;
    }

    .nav-menu {
        display: none;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 70vh;
        padding: 6rem 1.5rem 4rem;
        background-position: center;
    }

    .hero-content {
        padding: 0;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.4rem;
        margin-bottom: 1rem;
        white-space: normal;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Section Spacing */
    section {
        padding: 3rem 1.5rem;
    }

    .section-intro {
        margin-bottom: 2.5rem;
    }

    .section-intro h2 {
        font-size: 1.75rem;
        white-space: normal;
    }

    .section-intro p {
        font-size: 1rem;
    }

    /* About Section */
    #about {
        padding-bottom: 2rem;
    }

    /* Why Pakistan Scroll Section */
    .why-invest-intro {
        padding: 3rem 1.5rem 1.5rem;
    }

    .why-invest-intro h2 {
        font-size: 2rem;
    }

    .why-invest-intro p {
        font-size: 0.95rem;
    }

    .scroll-container {
        padding: 0 1.5rem;
    }

    .sticky-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .visual-container {
        position: -webkit-sticky;
        position: sticky;
        top: var(--header-h, 80px);
        height: auto;
        padding: 0.75rem 0 0.5rem;
        background: var(--white);
        z-index: 5;
        border-bottom: 1px solid var(--medium-gray);
    }

    .master-visual {
        width: min(230px, 58vw);
    }

    .visual-steps {
        margin-top: 0.6rem;
        justify-content: center;
    }

    .visual-steps .step-caption {
        font-size: 0.66rem;
        letter-spacing: 0.08em;
        white-space: normal;
        line-height: 1.3;
    }

    .text-container {
        order: 1;
    }

    .invest-point {
        min-height: 55vh;
        padding: 0 0.5rem;
    }

    .invest-point:first-child {
        padding-top: 1rem;
    }

    .invest-point:last-child {
        padding-bottom: 20vh;
    }

    .invest-point p {
        font-size: 1.35rem;
        line-height: 1.4;
        max-width: 100%;
    }







    /* Stats */
    .stats-grid {
        gap: 2rem;
    }

    .stat-item .stat-number {
        font-size: 2.5rem;
    }

    .stat-item p {
        font-size: 1rem;
    }





    /* Timeline */
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }

    .timeline-year {
        font-size: 2rem;
    }

    .timeline-content h3,
.timeline-content h4 {
        font-size: 1.2rem;
    }

    /* Team */
    .team-member {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .team-photo {
        margin: 0 auto;
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }

    .team-info h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .team-role {
        text-align: center;
    }

    /* Contact Form */
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 2rem 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

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

    .invest-point p {
        font-size: 1.2rem;
    }

    .why-invest-intro h2 {
        font-size: 1.75rem;
    }

    nav {
        padding: 1rem;
    }

    section {
        padding: 2.5rem 1rem;
    }

    .scroll-container {
        padding: 0 1rem;
    }

    .invest-point {
        padding: 0 0.5rem;
    }
}

/* Responsive rules for rebuilt sections */
@media (max-width: 1024px) {
    .process-grid, .integrity-grid, .badge-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: 1fr; }
    .math-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .section-intro h2 { white-space: normal; }
    .process-grid, .integrity-grid, .badge-grid, .advisor-grid { grid-template-columns: 1fr; }
    .process-step, .partner-card, .badge { padding: 1.75rem; }
    .math-lead h2 { font-size: 1.9rem; }
    .math-lead p { font-size: 1rem; }
    .math-card { padding: 0.5rem 1.25rem; }
    .math-row { flex-direction: column; gap: 0.2rem; }
    .math-row strong { font-size: 1.2rem; }
    .timeline-callout { margin-top: 0; padding: 1.25rem; }
    .timeline-item { grid-template-columns: 1fr; gap: 0.75rem; }
    .timeline-year { font-size: 1.75rem; }
    .team-member { grid-template-columns: 1fr; padding: 1.75rem; }
    .team-photo { width: 120px; height: 120px; font-size: 2.5rem; }
    .stat-item .stat-number { font-size: 2.5rem; }
}

/* ==========================================================
   Shared navigation: dropdown + mobile toggle
   ========================================================== */
nav { position: relative; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text-dark);
    margin: 6px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-item { position: relative; }

.nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-item > a::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.75rem;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    min-width: 230px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    display: block;
    padding: 0.6rem 1.25rem;
    white-space: nowrap;
}

.nav-menu a.active {
    color: var(--forest-green);
    font-weight: 600;
}

/* Collapse to the hamburger before the desktop menu overflows */
@media (max-width: 1160px) {
    .nav-toggle { display: block; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.25rem;
        border-top: 1px solid var(--medium-gray);
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    }

    .nav-menu.open { display: flex; }
    .nav-menu > li { border-bottom: 1px solid var(--light-gray); }
    .nav-menu > li:last-child { border-bottom: 0; }
    .nav-menu a { display: block; padding: 0.9rem 0; }
    .nav-item > a::after { display: none; }

    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        padding: 0 0 0.5rem 1rem;
        min-width: 0;
        margin: 0;
    }

    .dropdown a {
        padding: 0.45rem 0;
        font-size: 0.9rem;
        color: var(--text-light);
    }

    .nav-menu .btn-contact {
        display: inline-block;
        margin-top: 0.75rem;
        text-align: center;
    }
}

/* ==========================================================
   Inner pages
   ========================================================== */
.page-hero {
    background: var(--light-green);
    padding: 5rem 3rem 3.5rem;
}

.page-hero .container { max-width: 1100px; }

.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--carbon-brown-text);
    margin-bottom: 1rem;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--forest-green);
    font-weight: 700;
    line-height: 1.15;
}

.page-hero p {
    max-width: 720px;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-top: 1.25rem;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.about-grid h2, .founder h2, .protocol-intro h2, .advisors-page h2 {
    font-size: 2rem;
    color: var(--forest-green);
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-grid h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 2rem 0 0.5rem;
    font-weight: 700;
}

.about-grid p, .founder p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.facts-box {
    background: var(--light-brown);
    border-radius: 4px;
    padding: 2rem;
}

.facts-box h2,
.facts-box h3 {
    font-size: 1.1rem;
    color: var(--forest-green);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.facts-box dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.25rem;
}

.facts-box dt {
    font-weight: 700;
    color: var(--carbon-brown-text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 0.15rem;
}

.facts-box dd {
    color: var(--text-dark);
    line-height: 1.5;
}

.facts-box a {
    color: var(--forest-green);
    font-weight: 600;
}

.founder {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.founder-photo {
    width: 260px;
    aspect-ratio: 1;
    background: var(--forest-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 700;
    border-radius: 4px;
}

.founder .team-role { margin-bottom: 1.25rem; }

.founder p strong { color: var(--text-dark); }

.link-out {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--carbon-brown-text);
    font-weight: 600;
    text-decoration: none;
}

.link-out:hover { text-decoration: underline; }

.protocol-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.protocol-intro p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
}

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

.protocol-item {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    padding: 2rem;
}

.protocol-item h3 {
    font-size: 1.15rem;
    color: var(--forest-green);
    margin: 0.5rem 0 0.6rem;
    font-weight: 700;
}

.protocol-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.97rem;
}

.advisors-page { max-width: 1100px; margin: 0 auto; }
.advisors-page > p { color: var(--text-light); line-height: 1.7; margin-bottom: 1.5rem; max-width: 720px; }

.cta-band {
    background: var(--forest-green);
    color: var(--white);
    text-align: center;
}

.cta-band h2 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-band p {
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    background: var(--carbon-brown);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover { background: var(--dark-forest); }

.page-meta {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0 3rem 3rem;
}

@media (max-width: 900px) {
    .about-grid, .founder { grid-template-columns: 1fr; gap: 2.5rem; }
    .founder-photo { width: 160px; font-size: 3rem; }
    .protocol-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 3.5rem 1.5rem 2.5rem; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero p { font-size: 1rem; }
    .about-grid h2, .founder h2, .protocol-intro h2, .advisors-page h2, .cta-band h2 { font-size: 1.6rem; }
    .facts-box dl { grid-template-columns: 1fr; gap: 0.2rem 0; }
    .facts-box dd { margin-bottom: 0.75rem; }
}

@media (max-width: 768px) {
    .founder .team-role, .founder h2 { text-align: left; }
}

/* ==========================================================
   Inner page components (projects, partners, news, legal)
   ========================================================== */
.container.narrow { max-width: 860px; }
.container.narrow h2 { font-size: 1.8rem; color: var(--forest-green); font-weight: 700; margin: 2.5rem 0 1rem; }
.container.narrow h2:first-child { margin-top: 0; }
.container.narrow p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.container.narrow p strong { color: var(--text-dark); }
.container.narrow a:not(.btn-primary):not(.link-out) { color: var(--forest-green); font-weight: 600; }

.check-list { list-style: none; margin: 0.5rem 0 1rem; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--text-light); line-height: 1.7; }
.check-list li strong { color: var(--text-dark); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--forest-green); }
.check-list.muted li::before { background: var(--medium-gray); }

.numbered-steps { counter-reset: n; list-style: none; margin: 0.5rem 0 1rem; }
.numbered-steps li { counter-increment: n; position: relative; padding-left: 2.8rem; margin-bottom: 1rem; color: var(--text-light); line-height: 1.7; }
.numbered-steps li strong { color: var(--text-dark); }
.numbered-steps li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.1em; font-weight: 700; color: var(--carbon-brown-text); letter-spacing: 0.08em; font-size: 0.85rem; }

.project-card { max-width: 1000px; margin: 0 auto; background: var(--white); border: 1px solid var(--medium-gray); border-radius: 4px; }
.project-card-body { padding: 2.5rem; }
.project-card h3 { font-size: 1.75rem; color: var(--forest-green); font-weight: 700; margin: 0.75rem 0 1rem; }
.project-card > .project-card-body > p { color: var(--text-light); line-height: 1.8; margin-bottom: 1.5rem; }

.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem 2rem; margin-bottom: 2rem; }
.glance div { border-top: 2px solid var(--light-green); padding-top: 0.6rem; }
.glance dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--carbon-brown-text); margin-bottom: 0.25rem; }
.glance dd { color: var(--text-dark); line-height: 1.5; font-size: 0.97rem; }
.glance.stacked { grid-template-columns: 1fr; gap: 0.9rem; }
.glance.stacked div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; border-top: 1px solid var(--medium-gray); padding-top: 0.75rem; }
.glance.stacked dt { margin: 0; padding-top: 0.2rem; }

.pipeline-grid, .risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pipeline-item, .risk-item { background: var(--white); border: 1px solid var(--medium-gray); border-radius: 4px; padding: 2rem; }
.pipeline-item h3, .risk-item h3 { font-size: 1.2rem; color: var(--forest-green); font-weight: 700; margin: 0.5rem 0 0.6rem; }
.pipeline-item p, .risk-item p { color: var(--text-light); line-height: 1.7; font-size: 0.97rem; }
.risk-item h3 { margin-top: 0; }

.faq-group { font-size: 1.4rem; color: var(--forest-green); font-weight: 700; margin: 2.5rem 0 1rem; }
.faq-group:first-child { margin-top: 0; }

.news-card { background: var(--white); border: 1px solid var(--medium-gray); border-radius: 4px; padding: 2.5rem; margin-bottom: 1.5rem; }
.news-date { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--carbon-brown-text); margin-bottom: 0.75rem; }
.news-card h2 { font-size: 1.6rem; margin: 0 0 1rem; }
.news-card h2 a { color: var(--forest-green); text-decoration: none; }
.news-card h2 a:hover { text-decoration: underline; }
.news-card p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.news-upcoming { color: var(--text-light); line-height: 1.7; font-size: 0.95rem; margin-top: 2rem; }
.news-upcoming strong { color: var(--text-dark); }

.article h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal-note { font-size: 0.9rem; padding: 1rem 1.25rem; background: var(--light-brown); border-radius: 4px; margin-top: 2.5rem; }

.contact-form.on-light { background: var(--light-green); padding: 2.5rem; max-width: none; margin: 0; }
.contact-form.on-light .form-group label { color: var(--text-dark); }
.contact-form.on-light .form-status { color: var(--text-dark); }
.contact-form.on-light .form-group input, .contact-form.on-light .form-group textarea, .contact-form.on-light .form-group select { background: var(--white); border-color: var(--medium-gray); }

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

@media (max-width: 768px) {
    .pipeline-grid, .risk-grid, .glance { grid-template-columns: 1fr; }
    .glance.stacked div { grid-template-columns: 1fr; gap: 0.2rem; }
    .project-card-body, .news-card, .contact-form.on-light { padding: 1.5rem; }
    .container.narrow h2 { font-size: 1.5rem; }
    .project-card h3 { font-size: 1.4rem; }
}

.about-grid p a, .check-list a, .facts-box dd a { color: var(--forest-green); font-weight: 600; }
@media (max-width: 900px) { .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-content { grid-template-columns: 1fr; } }

/* ==========================================================
   Accessibility
   ========================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.6rem 1rem;
    background: var(--forest-green);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--forest-green);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--white);
}

.footer-brand .footer-email a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
