/* ============================================================
   VERDANT ENERGY — ENTERPRISE DESIGN SYSTEM
   style.css — Global Foundation
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
    /* Core Colors */
    --clr-bg: #f5f6f3;
    --clr-surface: #ffffff;
    --clr-surface-2: #eef0eb;
    --clr-border: #dde0d8;

    /* Brand */
    --clr-forest: #1a3a2a;
    --clr-forest-mid: #234d38;
    --clr-forest-light: #2f6647;
    --clr-eco: #3d9b5f;
    --clr-eco-bright: #4db876;
    --clr-eco-pale: #c8e6d2;

    /* Accent */
    --clr-teal: #2a7d8c;
    --clr-teal-light: #3a9aad;
    --clr-navy: #0e1f2b;
    --clr-navy-mid: #162b3a;
    --clr-charcoal: #2c3330;

    /* Text */
    --clr-text-primary: #1a2420;
    --clr-text-secondary: #4a5a54;
    --clr-text-muted: #7a8c84;
    --clr-text-inverse: #f0f4f2;
    --clr-text-light: rgba(255, 255, 255, 0.85);

    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;

    /* Type Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --container-narrow: 860px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);

    /* Grid */
    --grid-cols: 12;
    --grid-gap: 1.5rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(26, 58, 42, 0.06), 0 1px 2px rgba(26, 58, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 58, 42, 0.08), 0 2px 6px rgba(26, 58, 42, 0.05);
    --shadow-lg: 0 16px 40px rgba(26, 58, 42, 0.10), 0 6px 16px rgba(26, 58, 42, 0.06);
    --shadow-xl: 0 32px 64px rgba(26, 58, 42, 0.14), 0 12px 28px rgba(26, 58, 42, 0.08);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
    --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 700ms;

    /* Z-index */
    --z-base: 0;
    --z-raised: 10;
    --z-overlay: 100;
    --z-modal: 200;
    --z-nav: 500;
    --z-toast: 1000;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* overflow-x on html, NOT body — body overflow:hidden breaks position:fixed */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--clr-text-primary);
    background: var(--clr-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* No overflow-x here — it would create a new stacking context
     and break position:fixed children like the navbar */
}

img,
video {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--clr-text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, var(--text-7xl));
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 3.5vw, var(--text-5xl));
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, var(--text-3xl));
    font-weight: 600;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--text-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--text-base);
    font-weight: 600;
}

p {
    line-height: 1.75;
    color: var(--clr-text-secondary);
}

.text-display {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.text-hero {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.text-section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-eco);
}

.text-lead {
    font-size: var(--text-lg);
    line-height: 1.75;
    color: var(--clr-text-secondary);
    font-weight: 400;
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols), 1fr);
    gap: var(--grid-gap);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.flex {
    display: flex;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-12 {
    gap: var(--space-12);
}

/* ── Section Spacing ── */
.section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.section--sm {
    padding-block: clamp(3rem, 5vw, 4.5rem);
}

.section--lg {
    padding-block: clamp(5rem, 10vw, 9rem);
}

.section-header {
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.section-header--center {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    height: 72px;
    display: flex;
    align-items: center;
    /* Always start transparent — JS adds .scrolled on scroll */
    background: transparent;
    transition:
        background 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        backdrop-filter 0.5s var(--ease-out);
}

/* Subtle dark gradient so white text stays readable on any page hero */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 20, 15, 0.45) 0%, transparent 100%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s var(--ease-out);
    z-index: 0;
}

.navbar.scrolled::before {
    opacity: 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--clr-border);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 1;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    /* Always white — transitions to forest green when scrolled */
    color: var(--clr-surface);
    transition: color 0.45s var(--ease-out);
    z-index: 2;
}

.navbar.scrolled .navbar__logo {
    color: var(--clr-forest);
}

.navbar__logo-icon {
    width: 36px;
    height: 36px;
    background: var(--clr-eco);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar__logo-icon svg {
    width: 20px;
    height: 20px;
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.navbar__link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    /* Always white/near-white — transitions to dark when scrolled */
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.01em;
    transition: color 0.45s var(--ease-out);
    position: relative;
}

.navbar.scrolled .navbar__link {
    color: var(--clr-text-secondary);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--clr-eco);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-base) var(--ease-out);
}

.navbar__link:hover {
    color: var(--clr-eco-bright);
}

.navbar__link.active {
    color: white;
}

.navbar.scrolled .navbar__link:hover,
.navbar.scrolled .navbar__link.active {
    color: var(--clr-eco);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    transform: scaleX(1);
}

.navbar__cta {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-full);
    background: var(--clr-eco);
    color: var(--clr-surface);
    transition:
        background 0.3s var(--ease-out),
        transform 0.2s var(--ease-out),
        box-shadow 0.3s var(--ease-out);
}

.navbar__cta:hover {
    background: var(--clr-eco-bright);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(61, 155, 95, 0.4);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    cursor: pointer;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    /* Always white, transitions dark when scrolled */
    background: white;
    border-radius: 2px;
    transition:
        transform var(--duration-base) var(--ease-out),
        opacity var(--duration-base) var(--ease-out),
        background 0.45s var(--ease-out);
}

.navbar.scrolled .navbar__toggle span {
    background: var(--clr-forest);
}

.navbar__toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.navbar__mobile {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--space-6) var(--gutter);
    flex-direction: column;
    gap: var(--space-4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration-slow) var(--ease-out),
        opacity var(--duration-slow) var(--ease-out);
    z-index: calc(var(--z-nav) - 1);
}

.navbar__mobile.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.navbar__mobile .navbar__link {
    font-size: var(--text-base);
    color: var(--clr-text-secondary);
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--clr-border);
}

.navbar__mobile .navbar__link:hover {
    color: var(--clr-eco);
}

.navbar__mobile .navbar__link::after {
    display: none;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--clr-eco);
    color: var(--clr-surface);
    box-shadow: 0 2px 12px rgba(61, 155, 95, 0.35);
}

.btn--primary:hover {
    background: var(--clr-eco-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 155, 95, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--clr-surface);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--clr-eco);
    border: 1.5px solid var(--clr-eco);
}

.btn--outline:hover {
    background: var(--clr-eco);
    color: var(--clr-surface);
    transform: translateY(-2px);
}

.btn--dark {
    background: var(--clr-forest);
    color: var(--clr-surface);
}

.btn--dark:hover {
    background: var(--clr-forest-mid);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--lg {
    font-size: var(--text-base);
    padding: 1rem 2.25rem;
}

.btn--sm {
    font-size: var(--text-xs);
    padding: 0.5rem 1.25rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* ── Cards ── */
.card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    transition: transform var(--duration-slow) var(--ease-out),
        box-shadow var(--duration-slow) var(--ease-out),
        border-color var(--duration-slow) var(--ease-out);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-eco-pale);
}

.card__image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.card__body {
    padding: var(--space-6);
}

.card__tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-eco);
    margin-bottom: var(--space-3);
}

.card__title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.card__text {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--clr-text-muted);
}

/* Solution Card */
.solution-card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    border: 1px solid var(--clr-border);
    transition: all var(--duration-slow) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-eco), var(--clr-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-slow) var(--ease-out);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-eco-pale);
}

.solution-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--clr-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    transition: background var(--duration-base) var(--ease-out);
}

.solution-card:hover .solution-card__icon {
    background: var(--clr-eco-pale);
}

.solution-card__icon svg {
    width: 26px;
    height: 26px;
    color: var(--clr-eco);
}

.solution-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--clr-text-primary);
}

.solution-card__text {
    font-size: var(--text-sm);
    line-height: 1.75;
    color: var(--clr-text-muted);
    margin-bottom: var(--space-5);
}

.solution-card__link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--clr-eco);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: gap var(--duration-fast) var(--ease-out);
}

.solution-card:hover .solution-card__link {
    gap: var(--space-3);
}

/* Project Card */
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--clr-navy);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slower) var(--ease-out),
        opacity var(--duration-slower) var(--ease-out);
}

.project-card:hover .project-card__img {
    transform: scale(1.06);
    opacity: 0.6;
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 31, 43, 0.92) 0%, rgba(14, 31, 43, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
}

.project-card__tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clr-eco-bright);
    margin-bottom: var(--space-2);
}

.project-card__title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--clr-surface);
    line-height: 1.25;
    margin-bottom: var(--space-3);
}

.project-card__meta {
    display: flex;
    gap: var(--space-5);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.65);
}

.project-card__meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.project-card__detail {
    position: absolute;
    inset: 0;
    background: rgba(26, 58, 42, 0.92);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-8);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
}

.project-card:hover .project-card__detail {
    opacity: 1;
}

/* Stat Card */
.stat-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
}

.stat-card__number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--clr-eco-bright);
    margin-bottom: var(--space-2);
    display: block;
}

.stat-card__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.03em;
}

.stat-card__unit {
    font-size: 0.5em;
    font-weight: 600;
    opacity: 0.7;
    vertical-align: super;
}

/* ── Badges / Tags ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.badge--green {
    background: var(--clr-eco-pale);
    color: var(--clr-forest-mid);
}

.badge--navy {
    background: rgba(14, 31, 43, 0.08);
    color: var(--clr-navy-mid);
}

.badge--teal {
    background: rgba(42, 125, 140, 0.12);
    color: var(--clr-teal);
}

/* ── Divider ── */
.divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--clr-eco), var(--clr-teal));
    border-radius: 2px;
    margin-bottom: var(--space-5);
}

.divider--center {
    margin-inline: auto;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--clr-navy);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(14, 31, 43, 0.92) 0%,
            rgba(26, 58, 42, 0.75) 50%,
            rgba(14, 31, 43, 0.85) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-eco-bright);
    margin-bottom: var(--space-6);
}

.hero__eyebrow::before {
    content: '';
    width: 32px;
    height: 1.5px;
    background: var(--clr-eco);
}

.hero__title {
    color: var(--clr-surface);
    margin-bottom: var(--space-6);
    max-width: 720px;
}

.hero__text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: var(--space-10);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    z-index: 1;
    animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35));
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ── Impact Counter Section ── */
.impact-section {
    background: var(--clr-navy);
    color: var(--clr-surface);
    position: relative;
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(61, 155, 95, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.impact-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(42, 125, 140, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.impact-grid .stat-card {
    position: relative;
}

.impact-grid .stat-card+.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: var(--space-12);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--clr-eco), var(--clr-teal), var(--clr-eco-pale));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-12);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity var(--duration-slower) var(--ease-out),
        transform var(--duration-slower) var(--ease-out);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-3rem - 7px);
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--clr-eco);
    border: 3px solid var(--clr-bg);
    box-shadow: 0 0 0 2px var(--clr-eco);
}

.timeline-item__year {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--clr-eco);
    margin-bottom: var(--space-2);
}

.timeline-item__title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--clr-text-primary);
}

.timeline-item__text {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.7;
}

/* ── Energy Flow Diagram ── */
.energy-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    padding: var(--space-8) 0;
}

.energy-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-6);
    text-align: center;
    min-width: 120px;
}

.energy-node__icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    background: var(--clr-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--clr-border);
    transition: all var(--duration-slow) var(--ease-out);
    position: relative;
}

.energy-node:hover .energy-node__icon {
    background: var(--clr-eco-pale);
    border-color: var(--clr-eco);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.energy-node__icon svg {
    width: 32px;
    height: 32px;
    color: var(--clr-eco);
}

.energy-node__label {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--clr-text-primary);
}

.energy-connector {
    display: flex;
    align-items: center;
    padding: 0 var(--space-2);
    color: var(--clr-eco);
    flex-shrink: 0;
}

.energy-connector svg {
    width: 28px;
    height: 28px;
    animation: flowPulse 2s ease-in-out infinite;
}

@keyframes flowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

/* ── Map Section ── */
.map-section {
    background: var(--clr-navy);
    color: var(--clr-surface);
}

.map-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--clr-navy-mid);
    min-height: 480px;
}

.map-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Footer ── */
.footer {
    background: var(--clr-forest);
    color: var(--clr-text-inverse);
    padding-top: var(--space-20);
    padding-bottom: var(--space-8);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--clr-surface);
}

.footer__tagline {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    max-width: 300px;
}

.footer__socials {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.footer__social {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--duration-base) var(--ease-out);
}

.footer__social:hover {
    background: var(--clr-eco);
    color: var(--clr-surface);
    transform: translateY(-2px);
}

.footer__social svg {
    width: 16px;
    height: 16px;
}

.footer__col-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--clr-surface);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-5);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
    color: var(--clr-eco-bright);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__copy {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
}

.footer__cert {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer__cert-badge {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* ── Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slower) var(--ease-out),
        transform var(--duration-slower) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 100ms;
}

.reveal-delay-2 {
    transition-delay: 200ms;
}

.reveal-delay-3 {
    transition-delay: 300ms;
}

.reveal-delay-4 {
    transition-delay: 400ms;
}

.reveal-delay-5 {
    transition-delay: 500ms;
}

.reveal-delay-6 {
    transition-delay: 600ms;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity var(--duration-slower) var(--ease-out),
        transform var(--duration-slower) var(--ease-out);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity var(--duration-slower) var(--ease-out),
        transform var(--duration-slower) var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Utility ── */
.text-eco {
    color: var(--clr-eco);
}

.text-teal {
    color: var(--clr-teal);
}

.text-forest {
    color: var(--clr-forest);
}

.text-muted {
    color: var(--clr-text-muted);
}

.text-inverse {
    color: var(--clr-text-inverse);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.bg-surface {
    background: var(--clr-surface);
}

.bg-surface-2 {
    background: var(--clr-surface-2);
}

.bg-navy {
    background: var(--clr-navy);
}

.bg-forest {
    background: var(--clr-forest);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-5 {
    margin-bottom: var(--space-5);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mb-16 {
    margin-bottom: var(--space-16);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

.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;
}

/* ── Page Hero (Interior Pages) ── */
.page-hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--clr-navy);
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 42, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-eco-bright);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.page-hero__eyebrow::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: var(--clr-eco);
}

.page-hero__title {
    color: var(--clr-surface);
    max-width: 600px;
    margin-bottom: var(--space-5);
}

.page-hero__text {
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    font-size: var(--text-lg);
    line-height: 1.7;
}

/* ── Team Member Card ── */
.team-card {
    text-align: center;
}

.team-card__img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    filter: grayscale(20%);
    transition: filter var(--duration-slow) var(--ease-out);
}

.team-card:hover .team-card__img {
    filter: grayscale(0%);
}

.team-card__name {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.team-card__role {
    font-size: var(--text-sm);
    color: var(--clr-eco);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ── Insight / News Cards ── */
.insight-card {
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    overflow: hidden;
    transition: all var(--duration-slow) var(--ease-out);
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--clr-eco-pale);
}

.insight-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.insight-card__body {
    padding: var(--space-6);
}

.insight-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.insight-card__date {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
}

.insight-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: var(--space-3);
    color: var(--clr-text-primary);
}

.insight-card__excerpt {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.insight-card__link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--clr-eco);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* ── Job Listing ── */
.job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: var(--clr-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    gap: var(--space-4);
    transition: all var(--duration-base) var(--ease-out);
}

.job-item:hover {
    border-color: var(--clr-eco);
    box-shadow: var(--shadow-md);
}

.job-item__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--clr-text-primary);
    margin-bottom: var(--space-1);
}

.job-item__meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
    font-family: var(--font-mono);
}

/* ── Form ── */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--clr-text-primary);
    margin-bottom: var(--space-2);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--clr-text-primary);
    background: var(--clr-surface);
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
}

.form-control:focus {
    border-color: var(--clr-eco);
    box-shadow: 0 0 0 3px rgba(61, 155, 95, 0.12);
}

.form-control::placeholder {
    color: var(--clr-text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

select.form-control {
    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='%237a8c84' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--clr-forest) 0%, var(--clr-navy) 100%);
    text-align: center;
    color: var(--clr-surface);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(61, 155, 95, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section__title {
    color: var(--clr-surface);
    margin-bottom: var(--space-5);
}

.cta-section__text {
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin-inline: auto;
    font-size: var(--text-lg);
    margin-bottom: var(--space-10);
}

/* ── Metrics Bar ── */
.metrics-bar {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-5) var(--space-6);
    background: var(--clr-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    flex-wrap: wrap;
}

.metrics-bar__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex: 1;
    min-width: 120px;
}

.metrics-bar__value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--clr-text-primary);
    letter-spacing: -0.02em;
}

.metrics-bar__label {
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
}

.metrics-bar__divider {
    width: 1px;
    height: 40px;
    background: var(--clr-border);
    flex-shrink: 0;
}

/* ── Progress Bars ── */
.progress-item {
    margin-bottom: var(--space-5);
}

.progress-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.progress-item__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--clr-text-primary);
}

.progress-item__value {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--clr-eco);
}

.progress-track {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--clr-surface-2);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--clr-eco), var(--clr-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease-out);
}

.progress-fill.animated {
    transform: scaleX(1);
}

/* ── Tab System ── */
.tab-nav {
    display: flex;
    gap: var(--space-2);
    border-bottom: 2px solid var(--clr-border);
    margin-bottom: var(--space-8);
    overflow-x: auto;
}

.tab-btn {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--clr-text-muted);
    padding: var(--space-3) var(--space-5);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all var(--duration-base) var(--ease-out);
}

.tab-btn:hover {
    color: var(--clr-text-primary);
}

.tab-btn.active {
    color: var(--clr-eco);
    border-bottom-color: var(--clr-eco);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ── Filter Chips ── */
.filter-bar {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.filter-chip {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1.5px solid var(--clr-border);
    color: var(--clr-text-muted);
    background: var(--clr-surface);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.filter-chip:hover {
    border-color: var(--clr-eco);
    color: var(--clr-eco);
}

.filter-chip.active {
    background: var(--clr-eco);
    border-color: var(--clr-eco);
    color: var(--clr-surface);
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    margin-bottom: var(--space-5);
}

.breadcrumb__sep {
    opacity: 0.4;
}

.breadcrumb__item:last-child {
    color: var(--clr-eco-bright);
}

/* ── Responsive ── */
/* ================================================================
   RESPONSIVE — TABLET  ≤ 1024px
   ================================================================ */
@media (max-width: 1024px) {
    :root {
        --grid-gap: 1.25rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .impact-grid .stat-card:nth-child(odd)::before,
    .impact-grid .stat-card:nth-child(2)::before {
        display: none;
    }

    /* Inline 2-col grids → stack */
    .contact-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================================
   RESPONSIVE — MOBILE  ≤ 768px
   ================================================================ */
@media (max-width: 768px) {

    /* ── Navbar ── */
    .navbar__nav,
    .navbar__cta {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }

    /* ── Grid utility classes ── */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* ── Footer ── */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    /* ── Form fields — tighter spacing on mobile ── */
    .form-group {
        margin-bottom: var(--space-3);
    }

    .form-label {
        margin-bottom: var(--space-1);
        font-size: var(--text-xs);
    }

    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: var(--text-sm);
    }

    /* Country + Project Scale 2-col row → stack to 1-col on mobile */
    #contact-form [style*="grid-template-columns:1fr 1fr"],
    #contact-form [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* ── Floating cards on overview section (index.html) ── */
    /* On mobile, pull absolute elements back into normal flow */
    .overview-metric-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        min-width: auto !important;
        width: 100% !important;
        margin-top: 1rem;
        box-shadow: var(--shadow-md) !important;
    }

    /* ISO badge — hide on mobile, info already in trust badges below hero */
    .overview-iso-badge {
        display: none !important;
    }

    /* ── Hero ── */
    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    /* Extra bottom padding so trust badges clear the scroll indicator zone */
    .hero__content {
        padding-bottom: 5rem;
    }

    .hero__scroll {
        display: none;
    }

    /* ── Page hero ── */
    .page-hero {
        padding-top: 110px;
        padding-bottom: 3rem;
    }

    .page-hero__title {
        font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
    }

    /* ── Section spacing ── */
    .section {
        padding-block: clamp(3rem, 6vw, 5rem);
    }

    /* ── ALL INLINE 2-col → 1-col ──
     Covers every display:grid;grid-template-columns:1fr 1fr in HTML */
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* ── ALL INLINE repeat(3,1fr) / repeat(4,1fr) → 1-col ── */
    [style*="grid-template-columns:repeat(3"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns:repeat(4"],
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    /* ── Split layouts with large gap — reduce gap on stack ── */
    [style*="gap:5rem"],
    [style*="gap: 5rem"],
    [style*="gap:4rem"],
    [style*="gap: 4rem"] {
        gap: 2rem !important;
    }

    /* ── Sticky positioned elements — unset on mobile ── */
    [style*="position:sticky"],
    [style*="position: sticky"] {
        position: relative !important;
        top: auto !important;
    }

    /* ── Timeline ── */
    .timeline {
        padding-left: var(--space-8);
    }

    .timeline-item::before {
        left: calc(-2rem - 7px);
    }

    /* ── Energy flow ── */
    .energy-flow {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .energy-connector {
        padding: 0;
    }

    .energy-connector svg {
        width: 20px;
        height: 20px;
    }

    /* ── Metrics bar ── */
    .metrics-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: var(--space-4);
    }

    .metrics-bar__item {
        padding: var(--space-4) var(--space-4);
        min-width: auto;
        flex: none;
        border-bottom: 1px solid var(--clr-border);
    }

    /* Every even item gets a left border to create visual column separator */
    .metrics-bar__item:nth-child(odd) {
        border-right: 1px solid var(--clr-border);
    }

    /* Last row items — no bottom border */
    .metrics-bar__item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .metrics-bar__divider {
        display: none;
    }

    /* ── Job items ── */
    .job-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-row {
        grid-template-columns: 1fr !important;
        gap: var(--space-3);
    }

    /* ── Map container ── */
    .map-container,
    .map-placeholder {
        min-height: 280px !important;
        height: 280px !important;
    }

    /* ── Case study / featured article ── */
    .case-study,
    .featured-article {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
    }

    .case-study__visual,
    .featured-article__visual {
        min-height: 220px;
        order: 0 !important;
    }

    .case-study__visual::after {
        background: linear-gradient(to bottom, transparent 50%, var(--clr-navy)) !important;
    }

    .featured-article__visual::after {
        background: linear-gradient(to bottom, transparent 50%, var(--clr-navy)) !important;
    }

    .case-study__stats {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ── Service blocks (solutions page) ── */
    .service-block {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .service-block--reverse .service-block__visual {
        order: 0 !important;
    }

    /* ── Milestone grid (about page) ── */
    .milestone-grid {
        grid-template-columns: 1fr !important;
    }

    .milestone-item {
        border-right: none !important;
        border-bottom: 1px solid var(--clr-border) !important;
    }

    .milestone-item:last-child {
        border-bottom: none !important;
    }

    /* ── About page: presence items ── */
    .presence-item {
        flex-wrap: wrap;
    }

    .presence-item__region {
        min-width: auto !important;
    }

    /* ── Offices grid (contact page) ── */
    .offices-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Inquiry tabs grid (contact page) ── */
    #inquiry-types {
        grid-template-columns: 1fr !important;
    }

    /* ── Form name row (contact page) ── */
    #contact-form [style*="grid-template-columns:1fr 1fr"],
    #contact-form [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* ── Insight layout (sidebar stacks below) ── */
    .insights-layout {
        grid-template-columns: 1fr !important;
    }

    /* ── Roadmap (sustainability) ── */
    .roadmap-row {
        grid-template-columns: 64px 1fr !important;
        gap: var(--space-4) !important;
    }

    .roadmap-row__year {
        font-size: var(--text-xl);
    }

    /* ── ESG secondary stats (sustainability) ── */
    [style*="grid-template-columns:repeat(4,1fr)"][style*="border-top"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* ── Stat banner (careers) ── */
    .stat-banner {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-banner__item {
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .stat-banner__item:nth-child(even) {
        border-right: none !important;
    }

    /* ── Culture photo grid (careers) ── */
    .careers-culture-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Partner CTA in contact sidebar ── */
    .partner-cta {
        padding: 2rem 1.5rem;
    }

    /* ── Newsletter form ── */
    .newsletter-form {
        flex-direction: column;
    }

    /* ── Filter bar wrapping ── */
    .filter-bar {
        gap: 0.5rem;
    }

    .filter-chip,
    .topic-pill {
        font-size: 0.65rem;
        padding: 0.35rem 0.875rem;
    }

    /* ── Process steps ── */
    .process-step {
        flex-direction: column;
        gap: var(--space-3);
    }

    /* ── Team cards grid → 2 col on mobile ── */
    .team-card {
        text-align: center;
    }

    /* ── CTA section buttons ── */
    .cta-section [style*="display:flex"] {
        flex-direction: column;
        align-items: center;
    }

    .cta-section .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   RESPONSIVE — SMALL MOBILE  ≤ 480px
   ================================================================ */
@media (max-width: 480px) {
    :root {
        --gutter: 1rem;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .stat-card::before {
        display: none !important;
    }

    .stat-banner {
        grid-template-columns: 1fr !important;
    }

    .stat-banner__item {
        border-right: none !important;
    }

    /* ── Energy flow — vertical on tiny screens ── */
    .energy-flow {
        flex-direction: column;
        align-items: center;
    }

    .energy-node {
        min-width: 80px;
        padding: var(--space-3) var(--space-2);
    }

    .energy-node__icon {
        width: 54px;
        height: 54px;
    }

    .energy-node__icon svg {
        width: 24px;
        height: 24px;
    }

    .energy-connector {
        transform: rotate(90deg);
        margin: -0.25rem 0;
    }

    /* ── Hero title size on tiny screens ── */
    .text-hero,
    .text-display {
        font-size: clamp(1.75rem, 9vw, 2.5rem) !important;
    }

    /* ── Case study stats ── */
    .case-study__stats {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    /* ── Project grid → 1 col ── */
    .project-grid {
        grid-template-columns: 1fr !important;
    }

    .article-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Floating metric card on about page — pull inside on mobile ── */
    [style*="position:absolute"][style*="bottom:-2rem"] {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1.5rem;
    }

    /* ── Floating ISO badge on about page ── */
    [style*="position:absolute"][style*="top:1.5rem"][style*="right:-1rem"] {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        display: inline-flex;
        margin-top: 1rem;
    }

    /* ── Roadmap ── */
    .roadmap-row {
        grid-template-columns: 1fr !important;
    }

    .roadmap-row__year {
        font-size: var(--text-lg);
        margin-bottom: 0.5rem;
    }

    /* ── Milestone grid ── */
    .milestone-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Offices grid ── */
    .offices-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── SDG badges ── */
    .sdg-badge {
        width: 58px;
        height: 58px;
        font-size: 0.9rem;
    }

    /* ── Cert cards ── */
    .cert-card {
        padding: var(--space-4);
    }

    /* ── Process circles ── */
    .process-circle {
        width: 38px;
        height: 38px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    /* ── Tab nav scroll ── */
    .tab-nav {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    /* ── Search input full width ── */
    input[type="search"] {
        width: 100% !important;
    }

    /* ── Btn full width in hero ── */
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Page Transition ──
   IMPORTANT: Never use transform on body — it creates a new stacking
   context that breaks position:fixed (navbar disappears on scroll).
   Opacity only is safe. */
.page-fade {
    animation: pageFadeIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-eco);
}

/* ── Selection ── */
::selection {
    background: var(--clr-eco-pale);
    color: var(--clr-forest);
}


/* ================================================================
   RESPONSIVE UTILITY CLASSES
   Applied to inline grids via JS sed replacement for mobile support
   ================================================================ */

/* 2-column split layout (text | image) — used on all pages */
.rsp-split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

/* 3-column grid */
.rsp-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 2-column small (stats) */
.rsp-grid-2-sm {
    grid-template-columns: 1fr 1fr;
}

/* Process grid (2 col) */
.rsp-process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 5rem;
}

/* Project featured grid */
.rsp-project-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* Sustainability secondary stats row */
.rsp-stat-row {
    grid-template-columns: repeat(4, 1fr);
}

/* Insights layout with sidebar */
.rsp-insights-grid {
    grid-template-columns: 1fr 320px;
}

/* Careers culture photo grid */
.rsp-culture-grid {
    grid-template-columns: 1fr 1fr;
}

/* ── Mobile overrides for utility classes ── */
@media (max-width: 768px) {
    .rsp-split-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .rsp-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .rsp-grid-2-sm {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .rsp-process-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .rsp-project-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .rsp-stat-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .rsp-insights-grid {
        grid-template-columns: 1fr !important;
    }

    .rsp-culture-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.875rem !important;
    }

    /* Reverse order fix — image should come first on mobile */
    .rsp-split-grid .reveal-right,
    .rsp-split-grid .reveal-left {
        order: 0 !important;
    }

    /* Sticky panels — unset on mobile */
    .rsp-split-grid [style*="position:sticky"],
    .rsp-split-grid [style*="position: sticky"] {
        position: relative !important;
        top: auto !important;
    }

    /* Project featured grid — large card no longer spans rows */
    .rsp-project-grid>*:first-child {
        grid-row: auto !important;
    }

    /* Insight sidebar goes below article grid */
    .rsp-insights-grid>div:last-child {
        order: 1;
    }

    /* careers: about page global stats — keep 2 col */
    .rsp-grid-2-sm {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    .rsp-grid-2-sm {
        grid-template-columns: 1fr !important;
    }

    .rsp-stat-row {
        grid-template-columns: 1fr 1fr !important;
    }

    .rsp-culture-grid {
        grid-template-columns: 1fr !important;
    }

    .rsp-project-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================================
   SVG WORLD MAP
   ================================================================ */
.world-map-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

/* Land masses */
.map-land {
    fill: #1e3a4a;
    stroke: #2a5568;
    stroke-width: 0.8;
    transition: fill 0.2s ease;
}

/* Continent labels */
.map-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    fill: rgba(255, 255, 255, 0.14);
    pointer-events: none;
    text-anchor: middle;
}

/* Pin labels */
.pin-label {
    font-family: 'DM Mono', monospace;
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    fill: rgba(255, 255, 255, 0.65);
    pointer-events: none;
    text-anchor: middle;
}

/* Pin pulse rings */
.pin-ring {
    animation: svgPinPulse 2.8s ease-in-out infinite;
}

.pin-ring--teal {
    animation: svgPinPulseTeal 2.8s ease-in-out infinite;
    animation-delay: 0.4s;
}

.pin-ring--orange {
    animation: svgPinPulseOrange 2.8s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes svgPinPulse {

    0%,
    100% {
        r: 10;
        opacity: 0.25;
    }

    50% {
        r: 16;
        opacity: 0.08;
    }
}

@keyframes svgPinPulseTeal {

    0%,
    100% {
        r: 10;
        opacity: 0.25;
    }

    50% {
        r: 16;
        opacity: 0.08;
    }
}

@keyframes svgPinPulseOrange {

    0%,
    100% {
        r: 10;
        opacity: 0.25;
    }

    50% {
        r: 16;
        opacity: 0.08;
    }
}

/* Pin dot hover */
.map-project-pin {
    cursor: pointer;
}

.map-project-pin:hover .pin-dot {
    r: 8;
    filter: url(#pinGlow) brightness(1.3);
}

.map-project-pin:hover .pin-label {
    fill: rgba(255, 255, 255, 0.95);
}

/* Tooltip */
.svg-map-tooltip {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 14px 16px;
    min-width: 210px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    z-index: 100;
    top: 0;
    left: 0;
}

.svg-map-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.svg-map-tooltip__tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d9b5f;
    margin-bottom: 5px;
}

.svg-map-tooltip__name {
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a2420;
    line-height: 1.3;
    margin-bottom: 10px;
}

.svg-map-tooltip__stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.svg-map-tooltip__stat {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #7a8c84;
}

.svg-map-tooltip__stat strong {
    color: #1a2420;
    font-weight: 600;
}

/* Legend */
.map-legend {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    background: rgba(10, 21, 28, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.map-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.map-legend__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .map-legend {
        gap: 0.75rem;
        padding: 0.625rem 0.875rem;
    }

    .map-legend__item {
        font-size: 0.58rem;
    }

    .pin-label {
        font-size: 7px;
    }
}

/* ================================================================
   LEAFLET MAP STYLES — Verdant Energy
   ================================================================ */

/* Map container */
.leaflet-map-wrap {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

#verdant-map {
    width: 100%;
    height: 520px;
    border-radius: var(--radius-xl);
    z-index: 1;
}

@media (max-width: 768px) {
    #verdant-map {
        height: 380px;
    }
}

@media (max-width: 480px) {
    #verdant-map {
        height: 300px;
    }
}

/* Override Leaflet default tile border */
.leaflet-container {
    background: #060f18;
    font-family: var(--font-body);
}

/* ── Custom Marker ── */
.vmap-marker {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmap-marker__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--mc);
    opacity: 0.18;
    animation: vmapPulse 2.6s ease-in-out infinite;
}

.vmap-marker__dot {
    position: relative;
    z-index: 2;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mc);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 12px var(--mc);
    transition: transform 0.15s ease-out;
}

.vmap-marker:hover .vmap-marker__dot {
    transform: scale(1.3);
}

@keyframes vmapPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.18;
    }

    50% {
        transform: scale(1.8);
        opacity: 0.06;
    }
}

/* ── Popup wrapper ── */
.vmap-popup-wrap .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    border: none;
}

.vmap-popup-wrap .leaflet-popup-content {
    margin: 0;
    width: auto !important;
}

.vmap-popup-wrap .leaflet-popup-tip-container {
    margin-top: -1px;
}

.vmap-popup-wrap .leaflet-popup-tip {
    background: white;
    box-shadow: none;
}

.vmap-popup-wrap .leaflet-popup-close-button {
    color: #7a8c84;
    font-size: 18px;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    transition: color 0.15s;
}

.vmap-popup-wrap .leaflet-popup-close-button:hover {
    color: var(--clr-text-primary, #1a2420);
    background: none;
}

/* ── Popup content ── */
.vmap-popup {
    padding: 18px 20px 16px;
    min-width: 220px;
}

.vmap-popup__tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3d9b5f;
    margin-bottom: 6px;
}

.vmap-popup__name {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a2420;
    line-height: 1.3;
    margin-bottom: 6px;
}

.vmap-popup__location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #7a8c84;
    margin-bottom: 12px;
    font-family: 'DM Mono', monospace;
    letter-spacing: 0.04em;
}

.vmap-popup__location svg {
    flex-shrink: 0;
    color: #3d9b5f;
}

.vmap-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid #eef0eb;
}

.vmap-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #7a8c84;
}

.vmap-stat strong {
    color: #1a2420;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
}

/* ── Legend (reuse existing .map-legend from before) ── */
.leaflet-map-wrap .map-legend {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 500;
    background: rgba(6, 15, 24, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Attribution tweak */
.leaflet-control-attribution {
    font-size: 9px !important;
    background: rgba(6, 15, 24, 0.75) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    border-radius: 6px 0 0 0 !important;
    padding: 3px 6px !important;
}

.leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Zoom control styling */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background: rgba(30, 60, 50, 0.92) !important;
    color: white !important;
    border: none !important;
    font-size: 18px !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    transition: background 0.2s !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background: #3d9b5f !important;
    color: white !important;
}

/* Contact page map */
#contact-map {
    width: 100%;
    height: 460px;
    border-radius: var(--radius-xl);
    z-index: 1;
    background: #0d1f2d;
    /* Always visible even before Leaflet loads */
    display: block;
    position: relative;
}

/* Critical Leaflet container styles — inline so they work offline too */
.leaflet-map-wrap .leaflet-container {
    background: #060f18 !important;
    border-radius: var(--radius-xl);
    height: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    #contact-map {
        height: 340px;
    }
}

@media (max-width: 480px) {
    #contact-map {
        height: 280px;
    }
}