﻿/* ==========================================================
   CSS Variables
   ========================================================== */

:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #0f172a;
    --secondary-light: #334155;
    --accent: #06b6d4;
    --accent-light: #ecfeff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    /* Neutral Colors */
    --white: #ffffff;
    --light: #f8fafc;
    --lighter: #f1f5f9;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-light: #475569;
    --text-muted: #64748b;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --gradient-light: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    /* Typography */
    --font-family: "Inter", sans-serif;
    --font-display: "Manrope", "Inter", sans-serif;
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
    --shadow: 0 8px 25px rgba(15, 23, 42, .08);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, .12);
    --shadow-xl: 0 25px 60px rgba(15, 23, 42, .18);
    /* Animation */
    --transition: .30s ease;
    --transition-slow: .45s ease;
    /* Layout */
    --container-width: 100%;
    --header-height: 100px;
    /* Compact top edge; comfortable space after each section's content. */
    --section-padding-top: 28px;
    --section-padding: 56px;
    --page-padding: clamp(24px, 4vw, 60px); /* Header & Footer */
    /*--content-padding: clamp(100px, 9vw, 260px);*/ /* Main Content */
    --content-padding: clamp(140px, 11vw, 330px); /* Main Content */
}

#hero,
#trusted,
#about,
#capabilities,
#projects,
#why-birch,
#consultant,
#contact {
    scroll-margin-top: var(--header-height);
}

#contact {
    display: flex;
    align-items: center;
}

/* ==========================================================
   Card Themes
   ========================================================== */

.theme-sky {
    --theme: #2563eb;
    --theme-light: #dbeafe;
    --theme-bg: linear-gradient(180deg, #ffffff 0%, #f8fcff 45%, #f0f8ff 100%);
}

.theme-emerald {
    --theme: #059669;
    --theme-light: #d1fae5;
    --theme-bg: linear-gradient(180deg, #f8fffb 0%, #ecfdf5 100%);
}

.theme-violet {
    --theme: #7c3aed;
    --theme-light: #ede9fe;
    --theme-bg: linear-gradient(180deg, #fcfbff 0%, #f3f0ff 100%);
}

.theme-amber {
    --theme: #d97706;
    --theme-light: #fef3c7;
    --theme-bg: linear-gradient(180deg, #fffdf7 0%, #fff7e6 100%);
}

.theme-teal {
    --theme: #0891b2;
    --theme-light: #cffafe;
    --theme-bg: linear-gradient(180deg, #f8ffff 0%, #ecfeff 100%);
}

.theme-rose {
    --theme: #e11d48;
    --theme-light: #ffe4e6;
    --theme-bg: linear-gradient(180deg, #fffafb 0%, #fff1f3 100%);
}

/* ==========================================================
   Reset & Base Styles
   ========================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

/* Progressive enhancement supplied by script.js */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

header.is-scrolled {
    background: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.60) 100%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}

.nav-menu a[aria-current="page"] {
    color: var(--primary);
    background: rgba(255,255,255,.52);
    border-color: rgba(124,58,237,.12);
}

.nav-menu a[aria-current="page"]::after {
    width: auto;
    transform: scaleX(1);
}

.nav-toggle[aria-expanded="true"] {
    background: rgba(37, 99, 235, .08);
    color: var(--primary);
}

.js .reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.2, .75, .25, 1), transform .8s cubic-bezier(.2, .75, .25, 1);
}

.js .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1600;
    width: 100%;
    height: 4px;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, #7c3aed 0%, #06b6d4 55%, #f59e0b 100%);
    box-shadow: 0 4px 14px rgba(124,58,237,.18);
    pointer-events: none;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #eef2f7;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124,58,237,.55), rgba(99,102,241,.55));
    border-radius: 999px;
    border: 3px solid #eef2f7;
}

body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(124,58,237,.72), rgba(99,102,241,.72));
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal-on-scroll,
    .js .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
    }

    .scroll-progress {
        display: none;
    }
}

body {
    font-family: var(--font-family);
    color: var(--text);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}



/* ==========================================================
   Typography
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

h4 {
    font-size: 1.125rem;
}

p {
    color: var(--text-light);
    letter-spacing: -.01em;
}



/* ==========================================================
   Layout
   ========================================================== */

.container {
    width: min(var(--container-width), calc(100% - (var(--page-padding) * 2)));
    margin-inline: auto;
}


section {
    padding: var(--section-padding-top) 0 var(--section-padding-top);
    position: relative;
    overflow: hidden;
}

/* ==========================================================
   Utility Classes
   ========================================================== */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.bg-light {
    background: var(--light);
}

.d-none {
    display: none;
}


/* ==========================================================
   Buttons
   ========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

    .btn i {
        font-size: .95rem;
        transition: var(--transition);
    }

    .btn:hover i {
        transform: translateX(4px);
    }

.btn-primary {
    color: var(--white);
    background: var(--gradient-primary);
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg);
    }

.btn-secondary {
    color: var(--primary);
    background: var(--white);
    border-color: var(--primary);
}

    .btn-secondary:hover {
        color: var(--white);
        background: var(--primary);
        transform: translateY(-3px);
    }


/* ==========================================================
   Common Components
   ========================================================== */

/* Section */

.section-content {
    margin-top: 45px;
}


/* Section Header */

.section-header {
    max-width: 1000px;    
    margin: 0 auto;
    text-align: center;
}

    .section-header h2 {
        margin: 14px 0 16px;
    }

    .section-header p {
        font-size: 1.05rem;
        color: var(--text-muted);
    }



/* Section Tag */

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--section-tag-color, var(--primary)) 14%, white);
    color: var(--section-tag-color, var(--primary));
    border: 1px solid color-mix(in srgb, var(--section-tag-color, var(--primary)) 18%, white);
    box-shadow: 0 4px 10px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.38);
    font-family: var(--font-display);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#trusted {
    --section-tag-color: #2563eb;
}

#about {
    --section-tag-color: #7c3aed;
}

#capabilities {
    --section-tag-color: #059669;
}

#projects {
    --section-tag-color: #0891b2;
}

#why-birch {
    --section-tag-color: #d97706;
}

#consultant {
    --section-tag-color: #7c3aed;
}

#contact {
    --section-tag-color: #0891b2;
}

/* Card */

.card {
    height: 100%;
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .card:hover {
        transform: translateY(-8px);
        border-color: rgba(37,99,235,.20);
        box-shadow: var(--shadow-lg);
    }

/* Card Body */

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Icon Box */

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 25px;
    border-radius: 20px;
    color: var(--primary);
    background: var(--primary-light);
    font-size: 1.8rem;
    transition: var(--transition);
}

.card:hover .icon-box {
    color: var(--white);
    background: var(--gradient-primary);
    transform: rotate(-8deg) scale(1.08);
}

/* Badge */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--lighter);
    color: var(--text);
    font-size: .80rem;
    font-weight: 600;
}


/* ==========================================================
   Header
   ========================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: linear-gradient(180deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.52) 100%);
    backdrop-filter: blur(26px) saturate(1.28);
    -webkit-backdrop-filter: blur(26px) saturate(1.28);
    border-bottom: 1px solid rgba(255,255,255,.42);
    box-shadow: 0 10px 30px rgba(15,23,42,.04);
    transition: var(--transition);
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(124,58,237,.09) 0%, transparent 35%),
        linear-gradient(180deg, rgba(255,255,255,.16), transparent 42%);
}



/* ==========================================================
   Navigation
   ========================================================== */

.navbar {
    height: 100%;
}

    .navbar .container {
        position: relative;
        z-index: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 26px;
        padding-block: 12px;
    }


/* ==========================================================
   Logo
   ========================================================== */

.logo {
    display: inline-flex;
    align-items: center;
    width: clamp(138px, 16vw, 220px);
    text-decoration: none;
    transition: var(--transition);
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.38);
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}

    .logo img {
        width: 100%;
        height: auto;
        display: block;
        transition: var(--transition);
    }

    .logo:hover {
        opacity: .9;
    }

        .logo:hover img {
            transform: scale(1.02);
        }


/* Navigation Menu */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

    .nav-menu a {
        position: relative;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text);
        padding: 11px 16px;
        border-radius: 999px;
        background: rgba(255,255,255,.02);
        border: 1px solid transparent;
        transition: var(--transition);
    }

        .nav-menu a:hover {
            color: var(--primary);
            background: rgba(255,255,255,.5);
            border-color: rgba(124,58,237,.12);
            box-shadow: 0 10px 22px rgba(15,23,42,.05);
        }

        .nav-menu a::after {
            content: "";
            position: absolute;
            left: 16px;
            right: 16px;
            bottom: 7px;
            width: auto;
            height: 2px;
            border-radius: 2px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transform-origin: center;
            transition: var(--transition);
        }

        .nav-menu a:hover::after {
            transform: scaleX(1);
        }



/* Navigation Button */

.navbar .btn {
    padding: 13px 22px;
    border: 1px solid rgba(255,255,255,.26);
    background: linear-gradient(135deg, rgba(124,58,237,.98), rgba(99,102,241,.95));
    box-shadow: 0 14px 32px rgba(99,102,241,.24), inset 0 1px 0 rgba(255,255,255,.24);
}

.navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(99,102,241,.28), inset 0 1px 0 rgba(255,255,255,.24);
}

/* ==========================================================
   Navigation Toggle
   ========================================================== */

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

    .nav-toggle i {
        font-size: 1.75rem;
        line-height: 1;
    }

    .nav-toggle:hover {
        background: rgba(37, 99, 235, .08);
        color: var(--primary);
        box-shadow: 0 10px 24px rgba(15,23,42,.05);
    }



/* Offset for Fixed Header */

main {
    --page-padding: var(--content-padding);
    padding-top: var(--header-height);
}

/* ==========================================================
   Hero Section
   ========================================================== */

#hero {
    display: flex;
    align-items: flex-start;
    /*min-height: calc(100vh - var(--header-height));*/
    background: var(--gradient-light);
}

    /* Hero Background */

    #hero::before {
        content: "";
        position: absolute;
        top: -220px;
        right: -180px;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: rgba(37, 99, 235, .08);
        filter: blur(80px);
    }

    #hero::after {
        content: "";
        position: absolute;
        bottom: -200px;
        left: -150px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(6, 182, 212, .08);
        filter: blur(70px);
    }



/* Hero Layout */

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Hero Content */

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(6,182,212,.12));
    border: 1px solid rgba(124,58,237,.16);
    box-shadow: 0 12px 28px rgba(15,23,42,.06), inset 0 1px 0 rgba(255,255,255,.42);
    color: var(--secondary);
    font-family: var(--font-display);
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

    .hero-content p {
        max-width: 980px;
        margin: 0 auto 20px;
        text-align: center;
    }

    .hero-content h1 {
        margin: 28px 0;
        font-size: 4rem;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -1px;
        text-align: center;
    }


/* Hero Buttons */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

/* Hero Visual */

.hero-visual {
    width: min(1500px,100%);
    display: grid;
    grid-template-columns: repeat(3,1fr);    
    gap: 24px;
}

/* Hero Cards */

.hero-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--theme-bg);
    border: 1px solid color-mix(in srgb, var(--theme) 25%, white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

    .hero-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 60px color-mix(in srgb, var(--theme) 15%, rgba(15,23,42,.18));
    }

    .hero-card .card-icon {
        margin-bottom: 14px;
        background: var(--theme-light);
        color: var(--theme);
    }

    .hero-card:hover .card-icon {
        background: color-mix(in srgb, var(--theme) 30%, white);
        color: var(--theme);
        transform: rotate(-8deg) scale(1.08);
    }

    .hero-card h3 {
        margin: 0 0 10px;
        font-size: 1.05rem;
        line-height: 1.35;
    }

    .hero-card p {
        margin: 0;
        font-size: .90rem;
        line-height: 1.65;
        color: var(--text-muted);
    }

/* ==========================================================
   Trusted Expertise
   ========================================================== */

#trusted {
    background: var(--white);
}

/* Grid */

.trusted-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 45px;
}

/* Card */

.trusted-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background: linear-gradient( 180deg, #ffffff 0%, #fcfdff 45%, #f8fbff 100% );
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: 0 6px 20px rgba(15,23,42,.04), 0 18px 45px rgba(15,23,42,.06);
    border-radius: var(--radius-lg);    
    transition: var(--transition);
}

    .trusted-card:hover {
        transform: translateY(-10px);
        border-color: color-mix(in srgb, var(--theme) 22%, white);
        box-shadow: 0 18px 45px color-mix(in srgb, var(--theme) 12%, rgba(15,23,42,.14));
    }

/* Icon */

.trusted-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    border-radius: 20px;
    background: var(--theme-light);
    color: var(--theme);
    font-size: 1.8rem;
    transition: var(--transition);
}

.trusted-card:hover .trusted-icon {
    background: color-mix(in srgb, var(--theme) 30%, white);
    color: var(--theme);
    transform: rotate(-8deg) scale(1.08);
}

/* Heading */

.trusted-card h3 {
    margin-bottom: 18px;
    font-size: 1.4rem;
    line-height: 1.35;
}

/* Text */

.trusted-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==========================================================
   Selected Work
   ========================================================== */

#projects {
    background: var(--light);
}

/* Grid */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 45px;
}

/* ==========================================================
   Project Card
   ========================================================== */

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px;
    background: linear-gradient( 180deg, #ffffff 0%, #fcfdff 45%, #f7fbff 100% );
    border: 1px solid rgba(226,232,240,.85);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(15,23,42,.03), 0 10px 30px rgba(15,23,42,.05), 0 20px 50px rgba(15,23,42,.04);
    transition: var(--transition);
}

    .project-card:hover {
        transform: translateY(-10px);
        border-color: color-mix( in srgb, var(--theme) 22%, white );
        box-shadow: 0 8px 24px rgba(15,23,42,.05), 0 20px 50px color-mix( in srgb, var(--theme) 12%, rgba(15,23,42,.10) );
    }

/* ==========================================================
   Featured Project
   ========================================================== */

.project-card-featured {
    position: relative;
    border-color: color-mix( in srgb, var(--theme) 18%, white );
}

/* ==========================================================
   Header
   ========================================================== */

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

/* ==========================================================
   Badge
   ========================================================== */

.project-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background: var(--theme-light);
    color: var(--theme);
    border-radius: var(--radius-pill);
    font-size: .80rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================================
   Title
   ========================================================== */

.project-card h3 {
    margin-bottom: 18px;
    font-size: 1.4rem;
    line-height: 1.35;
}

/* ==========================================================
   Description
   ========================================================== */

.project-card p {
    margin-bottom: 28px;
    color: var(--text-muted);
    line-height: 1.8;
}

.project-bottom {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

/* ==========================================================
   Features
   ========================================================== */

.project-features {
    display: flex;
    flex-direction: column;
    gap: 14px;    
}

    .project-features li {
        display: flex;
        align-items: center;
        gap: 12px;
        color: var(--text);
        font-weight: 500;
    }

    .project-features i {
        color: var(--theme);
        font-size: .95rem;
        flex-shrink: 0;
    }

/* ==========================================================
   Bottom Highlight
   ========================================================== */

.project-highlight {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 42px;
    background: linear-gradient( 135deg, #0f172a 0%, #1e293b 100% );
    color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 55px rgba(15,23,42,.22);
}

    .project-highlight h3 {
        margin-bottom: 12px;
        color: inherit;
    }

    .project-highlight p {
        margin: 0;
        max-width: 760px;
        color: rgba(255,255,255,.82);
    }

    .project-highlight .btn {
        flex-shrink: 0;
    }

/* ==========================================================
   Project Image
   ========================================================== */

.project-image {
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 5 / 4;
    border: 1px solid rgba(226,232,240,.85);
    box-shadow: 0 2px 8px rgba(15,23,42,.03), 0 10px 30px rgba(15,23,42,.05);
    transition: var(--transition);
}

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition-slow);
    }

.project-card:hover .project-image img {
    transform: scale(1.05);
}



/* ==========================================================
   Why Birch Services
   ========================================================== */

#why-birch {
    background: var(--white);
}

/* ==========================================================
   Grid
   ========================================================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 45px;
}

/* ==========================================================
   Card
   ========================================================== */

.why-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 36px 32px;
    background: linear-gradient( 180deg, #ffffff 0%, #fcfdff 45%, #f7fbff 100% );
    border: 1px solid rgba(226,232,240,.85);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(15,23,42,.03), 0 10px 30px rgba(15,23,42,.05), 0 20px 50px rgba(15,23,42,.04);
    transition: var(--transition);
}

    .why-card:hover {
        transform: translateY(-10px);
        border-color: color-mix( in srgb, var(--theme) 22%, white );
        box-shadow: 0 8px 24px rgba(15,23,42,.05), 0 20px 50px color-mix( in srgb, var(--theme) 12%, rgba(15,23,42,.10) );
    }

/* ==========================================================
   Number
   ========================================================== */

.why-number {
    margin-bottom: 22px;
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--theme);
    letter-spacing: -2px;
}

/* ==========================================================
   Icon
   ========================================================== */

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--theme-light);
    color: var(--theme);
    font-size: 1.5rem;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: color-mix( in srgb, var(--theme) 30%, white );
    color: var(--theme);
    transform: rotate(-8deg) scale(1.08);
}

/* ==========================================================
   Heading
   ========================================================== */

.why-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    line-height: 1.35;
}

/* ==========================================================
   Text
   ========================================================== */

.why-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==========================================================
   Meet the Consultant
   ========================================================== */

#consultant {
    background: var(--light);
}

/* ==========================================================
   Layout
   ========================================================== */

.consultant-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    align-items: center;
    gap: 65px;
}

/* ==========================================================
   Photo
   ========================================================== */

.consultant-image {
    display: flex;
    justify-content: center;
}

.consultant-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient( 180deg, #ffffff 0%, #f7fbff 100% );
    border: 1px solid rgba(226,232,240,.9);    
    box-shadow: 0 20px 50px rgba(15,23,42,.08), 0 0 0 1px rgba(5,150,105,.08);
    transition: transform .45s ease;
}

    .consultant-photo:hover img {
        transform: scale(1.03);
    }

/* ==========================================================
   Image Motion & Light Effects
   ========================================================== */

.capability-image,
.project-image,
.consultant-photo {
    position: relative;
    isolation: isolate;
    background: transparent;
}

.capability-image::after,
.project-image::after,
.consultant-photo::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.32) 48%, transparent 70%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateX(-120%);
    transition: opacity .25s ease, transform .8s ease;
}

.capability-image::before,
.project-image::before,
.consultant-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.1) 0%, transparent 48%),
        radial-gradient(100% 90% at 50% 100%, color-mix(in srgb, var(--theme, #64748b) 6%, transparent) 0%, transparent 56%);
    box-shadow:
        inset 0 -12px 22px rgba(15,23,42,.09),
        inset 0 0 18px rgba(15,23,42,.04);
}

.capability-image img,
.project-image img,
.consultant-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    filter: saturate(1.02) contrast(1.01);
    transition: transform .75s cubic-bezier(.2, .75, .25, 1), filter .55s ease;
}

.capability-image {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.02),
        0 8px 24px rgba(15,23,42,.04),
        0 18px 40px rgba(15,23,42,.05);
}

.project-image {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.02),
        0 10px 26px rgba(15,23,42,.04),
        0 18px 44px rgba(15,23,42,.05);
}

.consultant-photo {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.025),
        0 18px 42px rgba(15,23,42,.07),
        0 28px 56px rgba(15,23,42,.07),
        0 0 0 1px rgba(5,150,105,.08);
}

@media (prefers-reduced-motion: no-preference) {
    .capability-card:hover .capability-image img {
        filter: saturate(1.08) contrast(1.02);
        transform: scale(1.08) translateX(-1.5%);
    }

    .project-card:hover .project-image img {
        filter: saturate(1.06) contrast(1.03);
        transform: scale(1.08) translateY(-1.5%);
    }

    .consultant-photo:hover img {
        filter: saturate(1.05) contrast(1.02);
        transform: scale(1.06);
    }

    .capability-card:hover .capability-image::after,
    .project-card:hover .project-image::after,
    .consultant-photo:hover::after {
        opacity: 1;
        transform: translateX(120%);
    }
}

/* Shared card interaction. */
.trusted-card,
.highlight-card,
.capability-card,
.project-card,
.why-card,
.contact-card,
.project-highlight {
    transition: transform .35s cubic-bezier(.2, .75, .25, 1), box-shadow .35s ease, border-color .35s ease;
}

.trusted-card:hover,
.highlight-card:hover,
.capability-card:hover,
.project-card:hover,
.why-card:hover,
.contact-card:hover {
    border-color: color-mix(in srgb, var(--theme) 30%, white);
    box-shadow: 0 16px 34px rgba(15,23,42,.08), 0 22px 46px color-mix(in srgb, var(--theme) 12%, transparent);
    transform: translateY(-6px);
}

.project-highlight:hover {
    box-shadow: 0 18px 42px rgba(15,23,42,.18);
    transform: translateY(-5px);
}

/* Keep the lift effect above the scroll-reveal transform. */
.js :is(.trusted-card, .highlight-card, .capability-card, .project-card, .why-card, .contact-card).reveal-on-scroll.is-visible:hover {
    transform: translateY(-6px);
}

.js .project-highlight.reveal-on-scroll.is-visible:hover {
    transform: translateY(-5px);
}

/* ==========================================================
   Content
   ========================================================== */

.consultant-content h2 {
    margin: 18px 0 12px;
}

.consultant-content h4 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    color: var(--theme);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 28px;
}

.designation-text {
    display: block;
}

.designation-divider {
    width: 74px;
    height: 2px;
    background: var(--theme);
    border-radius: 999px;
}

.consultant-content p {
    margin-bottom: 22px;
    color: var(--text-muted);
    line-height: 1.9;
}

    .consultant-content p:last-of-type {
        margin-bottom: 30px;
    }

/* ==========================================================
   Highlights
   ========================================================== */

.consultant-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ==========================================================
   Chip
   ========================================================== */

.consultant-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient( 180deg, #ffffff 0%, #fbfdff 100% );
    border: 1px solid rgba(226,232,240,.85);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15,23,42,.03);
    font-weight: 600;
    transition: var(--transition);
}

    .consultant-chip:hover {
        transform: translateY(-4px);
        border-color: color-mix( in srgb, var(--theme) 22%, white );
        box-shadow: 0 10px 30px color-mix( in srgb, var(--theme) 10%, rgba(15,23,42,.08) );
    }

    .consultant-chip i {
        color: var(--theme);
        font-size: .95rem;
    }


/* ==========================================================
   Highlights
   ========================================================== */

.consultant-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.consultant-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    transition: var(--transition);
}

    .consultant-chip:hover {
        transform: translateY(-4px);
        border-color: var(--primary-light);
        box-shadow: var(--shadow-md);
    }

    .consultant-chip i {
        color: var(--success);
        font-size: .95rem;
    }

/* ==========================================================
   Call To Action
   ========================================================== */

#cta {
    background: var(--white);
}

.cta-box {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
    padding: 118px 55px 65px;
    text-align: center;
    background: radial-gradient(480px circle at var(--glow-x, 50%) var(--glow-y, 0%), color-mix(in srgb, var(--theme) 18%, transparent), transparent 58%), linear-gradient(135deg, color-mix(in srgb, var(--theme) 10%, white) 0%, color-mix(in srgb, var(--theme) 4%, white) 45%, #ffffff 100%);
    border: 1px solid color-mix(in srgb, var(--theme) 20%, white);
    border-radius: var(--radius-xl);
    box-shadow: 0 12px 30px rgba(15,23,42,.05), 0 24px 60px color-mix(in srgb, var(--theme) 12%, rgba(15,23,42,.12));
    transition: var(--transition);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

    .cta-box::before {
        content: "";
        position: absolute;
        width: 380px;
        height: 380px;
        top: -180px;
        right: -120px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--theme) 18%, transparent);
        filter: blur(70px);
        pointer-events: none;
        animation: ctaGlow 8s ease-in-out infinite alternate;
    }

@keyframes ctaGlow {

    from {
        transform: translate(0,0);
    }

    to {
        transform: translate(-30px,20px);
    }
}

    .cta-box::after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        left: -90px;
        bottom: -130px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--theme) 10%, transparent);
        filter: blur(60px);
        pointer-events: none;
    }

    .cta-box:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 45px rgba(15,23,42,.06), 0 28px 70px color-mix(in srgb, var(--theme) 18%, rgba(15,23,42,.16));
    }

.cta-ribbon {
    position: absolute;
    top: 26px;
    left: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid color-mix(in srgb, var(--theme) 32%, white);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--theme) 13%, white);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--theme) 14%, transparent);
    color: var(--theme);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.cta-ribbon::before,
.cta-ribbon::after {
    position: absolute;
    top: calc(100% - 2px);
    width: 14px;
    height: 15px;
    background: color-mix(in srgb, var(--theme) 13%, white);
    content: "";
}

.cta-ribbon::before {
    left: 15px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.cta-ribbon::after {
    right: 15px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.cta-ribbon i {
    font-size: 1rem;
}

    .cta-box h2 {
        margin-bottom: 24px;
        color: var(--secondary);
    }

    .cta-box p {
        max-width: 680px;
        margin: 0 auto 40px;
        color: var(--text-muted);
        line-height: 1.85;
    }



/* ==========================================================
   CTA Buttons
   ========================================================== */

.cta-buttons .btn-primary {
    background: linear-gradient( 135deg, color-mix(in srgb, var(--theme) 85%, white), var(--theme) );
}

    .cta-buttons .btn-primary:hover {
        box-shadow: 0 18px 45px color-mix(in srgb,var(--theme) 18%, rgba(15,23,42,.15));
    }

.cta-buttons .btn-secondary {
    color: var(--theme);
    border-color: var(--theme);
    background: transparent;
}

    .cta-buttons .btn-secondary:hover {
        background: var(--theme);
        color: white;
    }

/* ==========================================================
   Contact
   ========================================================== */

#contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    column-gap: 15px;
    row-gap: 28px;
    margin-top: 30px;
}

.contact-form-wrap {
    grid-column: 1 / -1;
    padding: 42px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme) 8%, white), #ffffff 68%);
    border: 1px solid color-mix(in srgb, var(--theme) 20%, white);
    border-radius: var(--radius-xl);
    box-shadow: 0 14px 38px rgba(15,23,42,.07);
}

.contact-form-intro {
    margin-bottom: 20px;
    text-align: center;
}

.contact-form-intro .section-tag {
    margin-bottom: 12px;
    background: var(--theme-light);
    color: var(--theme);
}

.contact-form-intro h3 {
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
}

.contact-form-intro p,
.form-status {
    color: var(--text-muted);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-field label {
    color: var(--secondary);
    font-size: .92rem;
    font-weight: 700;
}

.form-field label span {
    color: var(--theme);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    background: rgba(255,255,255,.85);
    color: var(--text);
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field textarea {
    min-height: 118px;
    resize: vertical;
}

.form-captcha-field {
    justify-items: center;
}

.form-captcha-field .cf-turnstile {
    width: 100%;
    display: flex;
    justify-content: center;
    transform-origin: center top;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--theme);
    background: var(--white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme) 14%, transparent);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding-top: 2px;
}

.form-actions .btn {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme) 86%, white), var(--theme));
}

.form-submit-btn {
    position: relative;
    min-width: 185px;
}

.form-submit-btn[disabled] {
    cursor: wait;
    opacity: .88;
}

.form-submit-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: formSpin .7s linear infinite;
}

.form-submit-btn.is-loading .form-submit-spinner {
    display: inline-block;
}

.form-submit-btn.is-loading .form-submit-icon {
    display: none;
}

.form-status {
    font-size: .9rem;
}

@keyframes formSpin {
    to {
        transform: rotate(360deg);
    }
}

.contact-map {
    grid-column: 1 / -1;
    overflow: hidden;
    background: var(--theme-bg);
    border: 1px solid color-mix(in srgb, var(--theme) 18%, white);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(15,23,42,.04), 0 18px 45px rgba(15,23,42,.06);
    transition: var(--transition);
}

    .contact-map:hover {
        transform: translateY(-6px);
        border-color: color-mix(in srgb, var(--theme) 22%, white);
        box-shadow: 0 18px 45px color-mix(in srgb, var(--theme) 12%, rgba(15,23,42,.14));
    }

    .contact-map iframe {
        display: block;
        width: 100%;
        height: 410px;
        border: 0;
        transition: transform .45s ease;
    }

.contact-map:hover iframe {
    transform: scale(1.015);
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-modal::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 16px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.96) 0 11%, #a855f7 28%, rgba(139,92,246,.55) 50%, transparent 72%);
    box-shadow: 0 0 34px rgba(139,92,246,.72);
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
}

.contact-modal.is-open .contact-modal__backdrop {
    animation: contact-backdrop-in .42s ease-out both;
}

.contact-modal.is-open .contact-modal__dialog {
    animation: contact-modal-burst-in .66s cubic-bezier(.16, 1, .3, 1) both;
}

.contact-modal.is-closing {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition: none;
}

.contact-modal.is-closing .contact-modal__backdrop {
    animation: contact-backdrop-out .78s ease-in both;
}

.contact-modal.is-closing .contact-modal__dialog {
    animation: contact-modal-collapse .78s cubic-bezier(.22, .61, .36, 1) both;
}

.contact-modal.is-closing::after {
    display: none;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(860px, 100%);
    max-height: min(92vh, 860px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--theme) 22%, white);
    border-radius: calc(var(--radius-xl) + 4px);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,252,255,.96));
    box-shadow: 0 28px 80px rgba(15,23,42,.22);
    backface-visibility: hidden;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}

@keyframes contact-backdrop-in {
    from {
        background-color: rgba(15,23,42,0);
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
    to {
        background-color: rgba(15,23,42,.58);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@keyframes contact-backdrop-out {
    from {
        background-color: rgba(15,23,42,.58);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    to {
        background-color: rgba(15,23,42,0);
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
}

@keyframes contact-modal-burst-in {
    0% {
        clip-path: circle(4% at 50% 50%);
        filter: blur(16px);
        opacity: 0;
        transform: translateY(46px) scale(.18) rotate(-4deg);
    }
    58% {
        clip-path: circle(84% at 50% 50%);
        filter: blur(0);
        opacity: 1;
        transform: translateY(-4px) scale(1.02) rotate(.4deg);
    }
    100% {
        clip-path: circle(100% at 50% 50%);
        filter: blur(0);
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
}

@keyframes contact-modal-collapse {
    0% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0);
    }
    48% {
        filter: blur(1px);
        opacity: .72;
        transform: translateY(8px) scale(.97);
    }
    78% {
        filter: blur(5px);
        opacity: .24;
        transform: translateY(18px) scale(.94);
    }
    100% {
        filter: blur(12px);
        opacity: 0;
        transform: translateY(28px) scale(.9);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-modal,
    .contact-modal.is-open,
    .contact-modal.is-closing {
        transition: opacity .01ms linear, visibility .01ms linear;
    }

    .contact-modal.is-open .contact-modal__backdrop,
    .contact-modal.is-open .contact-modal__dialog,
    .contact-modal.is-closing .contact-modal__backdrop,
    .contact-modal.is-closing .contact-modal__dialog {
        animation: none;
    }

    .contact-modal.is-closing {
        opacity: 0;
        visibility: hidden;
    }
}

.contact-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix(in srgb, var(--theme) 18%, white);
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: var(--secondary);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.contact-modal__close:hover {
    background: var(--theme-light);
    color: var(--theme);
    transform: rotate(90deg);
}

.contact-form-wrap-modal {
    margin: 0;
    padding: 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.form-field input.is-invalid,
.form-field textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 16%, transparent);
}

.form-status.is-error {
    color: var(--danger);
}

.form-status.is-success {
    color: var(--success);
}

/* Contact Card */

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 32px;
    background: var(--theme-bg);
    border: 1px solid color-mix(in srgb,var(--theme) 18%, white);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 20px rgba(15,23,42,.04), 0 18px 45px rgba(15,23,42,.06);
    transition: var(--transition);
}

    .contact-card:hover {
        transform: translateY(-10px);
        border-color: color-mix(in srgb,var(--theme) 22%, white);
        box-shadow: 0 18px 45px color-mix(in srgb,var(--theme) 12%, rgba(15,23,42,.14));
    }


/* Icon */

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    border-radius: 20px;
    background: var(--theme-light);
    color: var(--theme);
    font-size: 1.8rem;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background: color-mix(in srgb,var(--theme) 30%, white);
    transform: rotate(-8deg) scale(1.08);
}



/* Heading */

.contact-card h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

/* Contact Details */

.contact-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.3;
    word-break: break-word;
}

/* Links */

.contact-card a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

    .contact-card a:hover {
        color: var(--theme);
    }

/* ==========================================================
   Footer
   ========================================================== */

footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(168, 85, 247, .28) 0%, transparent 42%),
        radial-gradient(110% 120% at 100% 100%, rgba(236, 72, 153, .18) 0%, transparent 38%),
        radial-gradient(85% 90% at 50% 100%, rgba(245, 158, 11, .10) 0%, transparent 48%),
        linear-gradient(135deg, #120b26 0%, #1b1240 38%, #2d1236 72%, #160f22 100%);
    color: rgba(255, 255, 255, .85);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.04), transparent 24%);
}

footer::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    top: -190px;
    right: -120px;
    border-radius: 50%;
    background: rgba(168, 85, 247, .20);
    filter: blur(90px);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding: 55px 0 30px;
}



/* ==========================================================
   Brand
   ========================================================== */

.footer-brand {
    max-width: 460px;
}

    .footer-brand h3 {
        margin-bottom: 18px;
        color: var(--white);
        font-size: 1.75rem;
        letter-spacing: -.02em;
    }

    .footer-brand p {
        margin: 0;
        line-height: 1.8;
        color: rgba(255,255,255,.72);
    }



/* ==========================================================
   Navigation
   ========================================================== */

.footer-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 24px;
}

    .footer-links a {
        color: rgba(255,255,255,.78);
        font-weight: 600;
        text-decoration: none;
        transition: var(--transition);
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,.04);
        border: 1px solid rgba(255,255,255,.06);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

        .footer-links a:hover {
            color: var(--white);
            background: rgba(124, 58, 237, .18);
            border-color: rgba(124, 58, 237, .24);
        }



/* ==========================================================
   Bottom Bar
   ========================================================== */

.footer-bottom {
    position: relative;
    z-index: 1;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
}

    .footer-bottom p {
        margin: 0;
        font-size: .95rem;
        color: rgba(255,255,255,.60);
    }

/* ==========================================================
   Scroll To Top
   ========================================================== */

.scroll-top-btn {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(124,58,237,.96), rgba(99,102,241,.94));
    box-shadow: 0 18px 38px rgba(99,102,241,.26), inset 0 1px 0 rgba(255,255,255,.24);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(.92);
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease, box-shadow .28s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-top-btn i {
    font-size: 2.35rem;
    line-height: 1;
}

.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 24px 44px rgba(99,102,241,.3), inset 0 1px 0 rgba(255,255,255,.24);
}

@media (hover: none), (pointer: coarse) {
    .scroll-top-btn {
        display: none !important;
    }
}

/* ==========================================================
   Animations
   ========================================================== */

/* Section-specific icon motion: subtle enough to support the content. */
@media (prefers-reduced-motion: no-preference) {
    .hero-card .card-icon i,
    .trusted-icon i,
    .highlight-icon i,
    .capability-icon i,
    .project-icon i,
    .why-icon i,
    .contact-icon i,
    .consultant-chip i,
    .cta-ribbon i {
        display: inline-block;
        will-change: transform;
    }

    .hero-card .card-icon i {
        animation: heroIconOrbit 5.5s ease-in-out infinite;
    }

    .hero-card:nth-child(even) .card-icon i {
        animation-delay: -2.2s;
    }

    .trusted-icon i {
        animation: trustedIconTilt 6s ease-in-out infinite;
    }

    .highlight-icon i {
        animation: highlightIconTurn 7s ease-in-out infinite;
    }

    .capability-icon i {
        animation: capabilityIconSpin 8s cubic-bezier(.45, .05, .55, .95) infinite;
    }

    .project-icon i {
        animation: projectIconFlip 6.5s ease-in-out infinite;
    }

    .why-icon i {
        animation: whyIconSway 5.8s ease-in-out infinite;
    }

    .contact-icon i {
        animation: contactIconPulse 4.8s ease-in-out infinite;
    }

    .consultant-chip i {
        animation: chipIconCheck 4s ease-in-out infinite;
    }

    .cta-ribbon i {
        animation: ribbonSparkle 3.6s ease-in-out infinite;
    }
}

@keyframes heroIconOrbit {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(12deg); }
}

@keyframes trustedIconTilt {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(7deg); }
    60% { transform: rotate(-4deg); }
}

@keyframes highlightIconTurn {
    0%, 82%, 100% { transform: rotate(0deg); }
    91% { transform: rotate(18deg) scale(1.08); }
}

@keyframes capabilityIconSpin {
    0%, 84%, 100% { transform: rotate(0deg); }
    92% { transform: rotate(180deg); }
}

@keyframes projectIconFlip {
    0%, 78%, 100% { transform: perspective(180px) rotateY(0deg); }
    89% { transform: perspective(180px) rotateY(180deg); }
}

@keyframes whyIconSway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    33% { transform: translateX(3px) rotate(7deg); }
    66% { transform: translateX(-3px) rotate(-7deg); }
}

@keyframes contactIconPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.13) rotate(-8deg); }
}

@keyframes chipIconCheck {
    0%, 75%, 100% { transform: scale(1); }
    87% { transform: scale(1.28) rotate(12deg); }
}

@keyframes ribbonSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.25) rotate(18deg); opacity: .7; }
}

/* Smooth Scrolling */

html {
    scroll-behavior: smooth;
}



/* Fade Up */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Fade In */

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



/* Floating */

@keyframes floating {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}



/* Pulse */

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}



/* Hero */

.hero-content {
    animation: fadeUp .8s ease forwards;
}

.hero-image {
    animation: fadeIn 1s ease forwards;
}

/* CTA */

.cta-box {
    animation: fadeUp .8s ease forwards;
}



/* Respect Reduced Motion */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ==========================================================
   Responsive - Large Desktop
   ========================================================== */

@media (max-width: 1400px) {

    :root {
        --container-width: 1140px;
    }
}

/* ==========================================================
   Responsive - Desktop
   ========================================================== */

@media (max-width: 1200px) {

    :root {
        --container-width: 960px;
    }

    .hero-container,    
    .consultant-grid {
        gap: 28px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .logo {
        width: 160px;
    }
}

/* ==========================================================
   Responsive - Navigation
   ========================================================== */

@media (max-width: 1024px) {

    .navbar .btn {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}


/* ==========================================================
   Responsive - Tablet
   ========================================================== */

@media (max-width: 992px) {

    :root {
        --container-width: 720px;
        --section-padding: 56px;
        --page-padding: 32px;
        --content-padding: 48px;
    }

    /* More compact card interiors on tablets. */
    .trusted-card,
    .highlight-card,
    .capability-card,
    .project-card,
    .why-card,
    .contact-card,
    .hero-card {
        padding: 22px 24px;
    }

    .project-highlight {
        padding: 28px;
    }

    .cta-box {
        padding: 104px 32px 48px;
    }

    /* ==========================
       Hero
       ========================== */

    .hero-container,    
    .consultant-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-content {
        text-align: center;
    }

        .hero-content p {
            margin-inline: auto;
        }

    .hero-buttons {
        justify-content: center;
        gap: 22px;        
    }

    .hero-visual {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .hero-card {
        position: static;
        width: 100%;
    }

    /* ==========================
       Grids
       ========================== */

    .trusted-grid,    
    .projects-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-highlight {
        flex-direction: column;
        text-align: center;
    }

    /* ==========================
       Consultant
       ========================== */

    .consultant-content {
        text-align: center;
    }

    .consultant-highlights {
        justify-content: center;
    }

    /* ==========================
       Footer
       ========================== */

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .project-bottom {
        grid-template-columns: 1fr;
    }

    .project-image {
        max-width: 380px;
        margin: 0 auto;
    }

    .capability-bottom {
        grid-template-columns: 1fr;
    }

    .capability-image {
        max-width: 400px;
        margin: 0 auto;
    }

}

/* ==========================================================
   Responsive - Mobile
   ========================================================== */

@media (max-width: 768px) {

    :root {
        --container-width: 100%;
        --section-padding-top: 24px;
        --section-padding: 56px;
        --page-padding: 30px;
        --content-padding: 32px;
    }

    .trusted-card,
    .highlight-card,
    .capability-card,
    .project-card,
    .why-card,
    .contact-card,
    .hero-card {
        padding: 20px 22px;
    }

    /* ==========================
       Typography
       ========================== */

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 2.9rem;
    }

    /* Navigation */

    .navbar .btn {
        display: none;
    }

    /* Navigation */

    .nav-menu {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition: var(--transition);
    }

        .nav-menu.active {
            display: flex;
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
        }

    .nav-toggle {
        display: inline-flex;
    }

    /* Single-column cards read best with one shared visual centre. */
    .hero-card,
    .trusted-card,
    .highlight-card,
    .capability-card,
    .project-card,
    .why-card,
    .contact-card,
    .capability-content {
        text-align: center;
    }

    .hero-card,
    .trusted-card,
    .capability-card,
    .project-card,
    .why-card {
        align-items: center;
    }

    .capability-link {
        align-self: center;
    }

    .capability-card-wide .capability-icon {
        margin-inline: auto;
    }

    /* Keep each project card's status row anchored to its card edges. */
    .project-card .project-header {
        width: 100%;
        align-self: stretch;
    }

    /* ==========================
       Hero
       ========================== */

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-buttons .btn {
            width: 100%;
        }

    .hero-visual {
        grid-template-columns: 1fr;
    }

    .hero-card:last-child {
        grid-column: auto;
    }

    /* ==========================
       Section Grids
       ========================== */

    .trusted-grid,
    .projects-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .capability-card-wide {
        grid-column: auto;        
    }    

        .capability-card-wide .capability-content p {
            flex: 0;
        }

    .project-highlight {
        padding: 24px;
    }

    /* ==========================
       CTA
       ========================== */

    .cta-box {
        padding: 36px 24px;
    }

    .cta-ribbon {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 24px;
        transform: none;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 22px;
    }

        .cta-buttons .btn {
            width: 100%;
        }
    .contact-form-wrap,
    .contact-form-wrap-modal {
        padding: 30px 24px;
    }

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

    .contact-form .form-field {
        grid-column: 1;
    }

    .contact-modal {
        padding: 18px;
    }
}

/* ==========================================================
   Responsive - Small Mobile
   ========================================================== */

@media (max-width: 576px) {

    .contact-modal__dialog {
        padding: 18px;
    }

    .contact-form-wrap-modal {
        padding: 16px;
    }

    :root {
        --section-padding-top: 20px;
        --section-padding: 48px;
        --page-padding: 24px;
    }

    /* ==========================
       Typography
       ========================== */

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* ==========================
       Container
       ========================== */

    :root {
        --page-padding: 24px;
        --content-padding: 24px;
    }

    /* ==========================
       Cards
       ========================== */

    .trusted-card,
    .highlight-card,
    .capability-card,
    .project-card,
    .why-card,
    .contact-card,
    .hero-card {
        padding: 18px 20px;
    }

    /* ==========================
       Icons
       ========================== */

    .icon-box {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    /* ==========================
       CTA
       ========================== */

    .cta-box {
        padding: 30px 20px;
    }

    /* ==========================
       Consultant
       ========================== */

    .consultant-chip {
        width: 100%;
        justify-content: center;
    }

    /* ==========================
       Footer
       ========================== */

    .footer-content {
        padding: 50px 0 30px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
