/* CSS Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@500;600;700;800;900&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #111111;
    --bg-darker: #0a0a0a;
    --primary-color: #7BB03B;
    /* Brand green, used as a sparing accent, not a flood */
    --accent-deep: #5e7e2f;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --white: #ffffff;

    /* Flat neutral light palette, clean white, no cream */
    --ink: #141414;
    --bone: #ffffff;
    --bone-2: #f4f4f4;
    --stone: #e4e4e4;
    --ink-soft: #4d4d4d;
    --radius: 3px;

    --font-display: 'Big Shoulders Display', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --container-width: 1400px;
    /* Wider for cinematic feel */
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 8rem;

    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
    /* We might add custom cursor later */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.018em;
    line-height: 1.06;
    color: var(--white);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    line-height: 1.04;
    margin-bottom: var(--spacing-md);
    text-align: left;
    position: relative;
    padding-left: 1.1rem;
    border-left: 3px solid var(--primary-color);

    /* Animation base, blur-in reveal on scroll */
    opacity: 0;
    transform: translateY(26px);
    filter: blur(12px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Editorial section label, "01 / Capabilities" */
.section-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.1rem;
}

.section--light .section-eyebrow {
    color: var(--accent-deep);
}

.section-title.in-view {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.05rem 2.2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: var(--bg-dark);
    transition: transform 0.6s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

.btn-outline {
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header, floats transparent over the hero, solidifies on scroll */
.site-header {
    background: linear-gradient(to bottom, rgba(8, 9, 11, 0.55) 0%, rgba(8, 9, 11, 0) 100%);
    padding: 1.35rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: none;
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-display);
    letter-spacing: -1px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    display: inline-block;
    /* Basic shape to mimic logo */
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text .constructions {
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-list a {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    font-size: 0.8rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: color 0.25s ease;
}

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

.nav-cta {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    margin-left: 1.25rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.72rem;
}

.nav-cta:hover {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--white);
    margin: 6px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section, Split Panel */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    color: var(--white);
    overflow: hidden;
}

/* Left: dark text panel */
.hero-panel--text {
    position: relative;
    z-index: 2;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    /* extra top padding clears the fixed header so the eyebrow never tucks under it */
    padding: 9rem clamp(2rem, 5vw, 6rem) 5rem clamp(1.5rem, 8vw, 10rem);
}

/* Right: photographic panel */
.hero-panel--image {
    position: relative;
    background-image: url('https://80648f23d1b436c9680a76f256663212.cdn.bubble.io/f1736818649923x724363352529686100/group%20pic%20.jpg');
    background-size: cover;
    background-position: center;
    background-color: #2a2d33;
    /* fallback while image loads */
}

/* The seam: dark left panel melts into the photo */
.hero-panel--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--bg-dark) 0%, rgba(20, 22, 27, 0.55) 22%, rgba(20, 22, 27, 0) 55%),
        linear-gradient(to top, rgba(20, 22, 27, 0.35) 0%, rgba(20, 22, 27, 0) 45%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    text-align: left;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1.75rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.8s ease-out;
}

.hero.in-view .hero-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

.kinetic-text {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.95;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
}

.kinetic-text .line {
    overflow: hidden;
    display: block;
}

.kinetic-text .word {
    display: inline-block;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease-out;
}

.hero.in-view .kinetic-text .word {
    transform: translateY(0);
    opacity: 1;
}

.hero.in-view .kinetic-text .line:nth-child(1) .word {
    transition-delay: 0.2s;
}

.hero.in-view .kinetic-text .line:nth-child(2) .word {
    transition-delay: 0.4s;
}

.accent {
    color: var(--primary-color);
}

.hero-subheadline {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.hero.in-view .hero-subheadline {
    opacity: 0.9;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* Magnetic Buttons & New Styles */
.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.hero.in-view .hero-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

/* Animations Keyframes */
/* Animations Keyframes if needed elsewhere */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indication */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: clamp(1.5rem, 8vw, 10rem);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--white), transparent);
}

/* Commitment / About - Dark Mode */
.commitment {
    background-color: #1a1a1a;
    text-align: center;
    position: relative;
    z-index: 2;
}

.commitment h2 {
    color: var(--white);
    font-size: 3rem;
}

.commitment p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Solutions Section Grid */
.solutions {
    background-color: var(--bg-dark);
    /* Ensure dark bg */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.solution-card {
    background: rgba(20, 20, 20, 0.6);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease, border-color 0.6s ease, opacity 0.8s ease;

    /* Animation base */
    opacity: 0;
    transform: translateY(30px);
}

.solution-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.solution-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.8);
    border-color: var(--primary-color);
}

.solution-card h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more:hover {
    gap: 0.8rem;
}

/* Projects Section */
.projects {
    background-color: var(--bg-darker);
    padding-bottom: var(--spacing-lg);
}

.project-card {
    border-radius: 4px;
    height: 450px;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);

    /* Animation base */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    background: linear-gradient(to top, #000 0%, transparent 100%);
    padding: 2.5rem;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -1px;
}

.view-all {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 400;
}

.view-all:hover {
    color: var(--primary-color);
    text-decoration: none;
}


/* Footer Section */
.site-footer {
    background-color: #1a1a1a;
    /* Darker footer */
    color: #ccc;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.footer-links a {
    color: #aaa;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--white);
    font-weight: 600;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.footer-credits-link {
    margin-left: 0.75rem;
    color: #888;
    text-decoration: underline;
}

.footer-credits-link:hover {
    color: var(--primary-color);
}

/* Image credits page */
.credits-list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-width: 64ch;
}

.credits-list li {
    line-height: 1.6;
    color: var(--text-muted);
}

.credits-list strong {
    color: var(--white);
}

.credits-list a {
    color: var(--primary-color);
    text-decoration: underline;
}

.credits-foot {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Page Hero (Inner Pages) */
.page-hero {
    background-color: var(--bg-dark);
    padding: 180px 0 80px;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-family: var(--font-display);
    text-transform: uppercase;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Team Section */
.team {
    background-color: var(--bg-dark);
    padding-bottom: var(--spacing-lg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Animation base */
    opacity: 0;
    transform: translateY(30px);
}

.team-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #333;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    border: 2px solid var(--primary-color);
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-family: var(--font-display);
}

.team-card h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Hero responsive: collapse split panel into a single image-backed panel */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-panel--text {
        grid-row: 1;
        grid-column: 1;
        background-color: transparent;
        padding: 8rem 1.5rem 6rem;
    }

    .hero-panel--image {
        grid-row: 1;
        grid-column: 1;
        z-index: 0;
    }

    /* Darken the photo behind the text for readability when stacked */
    .hero-panel--image::before {
        background:
            linear-gradient(to right, var(--bg-dark) 0%, rgba(20, 22, 27, 0.7) 60%, rgba(20, 22, 27, 0.45) 100%),
            linear-gradient(to top, rgba(20, 22, 27, 0.5) 0%, rgba(20, 22, 27, 0.2) 60%);
    }

    .hero-content {
        max-width: 600px;
    }
}

/* Responsive */
/* Collapse the full nav into a mobile panel before the items crowd */
@media (max-width: 1024px) {
    .mobile-nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-darker);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.5rem clamp(1.5rem, 5vw, 3rem) 1.5rem;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .site-header.nav-open .main-nav {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav-list a {
        display: block;
        padding: 1.1rem 0;
        font-size: 0.95rem;
    }

    .nav-cta {
        display: block;
        width: 100%;
        margin: 1.25rem 0 0;
        text-align: center;
        padding: 0.9rem 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Header copy: headlines a touch larger, sub-headlines a touch smaller on phones */
    .hero h1,
    .hero-title {
        font-size: 2.75rem;
    }

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

    /* Stronger, more even scrim so the stacked headline stays legible over sky */
    .hero--full::after {
        background:
            linear-gradient(to top, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.72) 45%, rgba(8, 9, 11, 0.5) 100%);
    }

    /* Header CTAs stack and stretch to full width */
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

    .hero-actions .btn {
        width: 100%;
        margin: 0;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
    }
}

/* =====================================================================
   Replicated-site components, black + white alternating sections
   ===================================================================== */

/* Light sections, warm architectural stone, not cold SaaS grey */
.section--light {
    background-color: var(--bone);
    color: var(--ink-soft);
}

.section--light .section-title {
    color: var(--ink);
}

.section--light .section-lead,
.section--light .priority-text p,
.section--light .story-text p,
.section--light .intro-block p,
.section--light .contact-lead {
    color: #4a4f57;
}

.section-lead {
    max-width: 700px;
    margin: -2.5rem 0 3rem;
    font-size: 1.15rem;
    color: #4a4f57;
}

.container.narrow {
    max-width: 840px;
}

.eyebrow {
    display: inline-block;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Image page heroes */
.page-hero--image {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    text-align: left;
    padding: 170px 1.5rem 5rem;
    /* left edge aligns with the site content container */
    padding-left: max(1.5rem, calc((100% - var(--container-width)) / 2 + 1.5rem));
}

.page-hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(12, 13, 16, 0.94) 0%, rgba(12, 13, 16, 0.7) 45%, rgba(12, 13, 16, 0.4) 100%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    max-width: 880px;
}

.page-hero--image h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.8rem);
    line-height: 1;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.page-hero--image p {
    color: rgba(255, 255, 255, 0.85);
    /* Match the index hero sub-headline (.hero-subheadline) so every hero is consistent */
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0;
}

/* Stats band */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat.in-view {
    opacity: 1;
    transform: none;
}

.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 0.75rem;
    font-size: 1rem;
    color: #4a4f57;
    letter-spacing: 0.3px;
}

/* Solution cards, image + body, white card on any background */
.solution-card {
    background: #fff;
    padding: 0;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, opacity 0.8s ease;
}

.solution-card:hover {
    transform: translateY(-6px);
    background: #fff;
    border-color: var(--ink);
}

.solution-media {
    display: block;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.solution-body {
    padding: 2rem;
}

.solution-card h3 {
    color: #14161a;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.solution-card p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

/* Project cards, full-bleed image with caption */
.project-card {
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    height: 420px;
}

.project-info {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 70%, transparent 100%);
}

.project-info h3 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.project-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team cards, photo + meta */
.team-card {
    background: #fff;
    border: 1px solid var(--stone);
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
    box-shadow: none;
}

.team-card:hover {
    background: #fff;
    transform: translateY(-6px);
    border-color: var(--ink);
}

.team-photo {
    height: 320px;
    background-size: cover;
    background-position: center top;
    background-color: #e7e9ec;
}

.team-meta {
    padding: 1.5rem 1.5rem 2rem;
}

.team-card h3 {
    color: #14161a;
    margin-bottom: 0.25rem;
}

.team-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.team-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Job openings */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.job-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--stone);
    border-radius: var(--radius);
    padding: 1.5rem 1.75rem;
}

.job-card h3 {
    color: #14161a;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.job-meta {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.job-status {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-sm {
    padding: 0.65rem 1.3rem;
    font-size: 0.72rem;
}

.job-card .btn-outline {
    color: #14161a;
    border-color: rgba(0, 0, 0, 0.25);
}

.job-card .btn-outline:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Two-column media + text blocks */
.priority-grid,
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.priority-media,
.story-media {
    min-height: 400px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.priority-text p,
.story-text p,
.intro-block p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.vision .section-title,
.intro-block .section-title {
    text-align: left;
}

/* CTA band */
.cta-band {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
    background: #0a0a0a url('https://80648f23d1b436c9680a76f256663212.cdn.bubble.io/f1733271548822x184563264952521950/blacCTAbackground.png') center / cover no-repeat;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 13, 0.66);
}

.cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-eyebrow {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cta-band h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    max-width: 780px;
    margin: 0 auto;
}

.cta-band .btn {
    margin-top: 1rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 580px;
}

.field-row {
    display: flex;
    gap: 1rem;
}

.field-row>* {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: #222;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: #eceef0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #555;
    white-space: nowrap;
}

.contact-form .btn {
    align-self: flex-start;
}

/* Honeypot, visually hidden but reachable by bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-status {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 1.2em;
}

.form-status--ok {
    color: var(--accent-deep);
    font-weight: 500;
}

.form-status--err {
    color: #c0392b;
}

.contact-details h3 {
    color: #14161a;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.detail-label {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 1rem;
}

.contact-details address {
    font-style: normal;
    color: #4a4f57;
    line-height: 1.8;
    margin: 0.5rem 0 1.5rem;
}

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    height: 320px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

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

/* Footer additions */
.footer-tagline {
    color: #8a8f96;
    margin: 0.35rem 0 1rem;
    font-size: 0.95rem;
}

.footer-address {
    font-style: normal;
    color: #9aa0a6;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Responsive, replicated components */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .priority-grid,
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .priority-media,
    .story-media {
        min-height: 300px;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =====================================================================
   Premium pass, editorial hero, credential strip, credibility band
   ===================================================================== */

/* Sentence/title-case headlines everywhere (kill the all-caps shout) */
.page-hero--image h1,
.page-hero h1 {
    text-transform: none;
}

/* Eyebrows on static page heroes are always visible (no .hero.in-view gate) */
.page-hero .hero-eyebrow {
    opacity: 1;
    transform: none;
}

/* Credential strip variant for inner page heroes */
.page-hero .hero-credentials {
    opacity: 1;
    transform: none;
    transition: none;
    max-width: 640px;
}

/* Editorial hero headline, calm fade-up, no kinetic slam */
.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 5.8vw, 6rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--white);
    max-width: 24ch;
    margin-bottom: 1.6rem;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.15s;
}

.hero.in-view .hero-title {
    opacity: 1;
    transform: none;
}

.hero-subheadline {
    font-family: var(--font-body);
    line-height: 1.6;
}

/* Credential strip under the hero copy */
.hero-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: 2.75rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.8s ease-out;
    transition-delay: 1s;
}

.hero.in-view .hero-credentials {
    opacity: 1;
    transform: none;
}

.hero-credentials li {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.hero-credentials li::before {
    content: ', ';
    color: var(--primary-color);
    margin-right: 0.6rem;
}

/* Credibility band, stat ribbon right after the hero */
.cred-band {
    background: var(--bone);
    border-bottom: 1px solid var(--stone);
}

.cred-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.cred-stat {
    padding: 3.5rem 2rem;
    border-right: 1px solid var(--stone);
}

.cred-stat:last-child {
    border-right: none;
}

.cred-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.9rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.cred-label {
    display: block;
    margin-top: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
}

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

    .cred-stat:nth-child(2) {
        border-right: none;
    }

    .cred-stat:nth-child(1),
    .cred-stat:nth-child(2) {
        border-bottom: 1px solid var(--stone);
    }
}

/* =====================================================================
   Polish pass, fixed grids, card interactions, motion choreography
   ===================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

/* Comfortable reading measure on long-form copy */
.section-lead,
.intro-block p,
.priority-text p,
.story-text p,
.vision p {
    max-width: 64ch;
}

/* Header condenses on scroll */
.site-header {
    transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.scrolled {
    padding: 0.65rem 0;
    background: rgba(12, 13, 16, 0.8);
    backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

/* Section header (title + link row) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: var(--spacing-md);
}

.section-header .section-title {
    margin-bottom: 0;
}

.view-all {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ---- Solutions cards: equal height, tight summary, hover zoom ---- */
.solutions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.solution-card {
    box-shadow: none;
}

.solution-media {
    position: relative;
    height: 190px;
    overflow: hidden;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .solution-media {
    transform: scale(1.05);
}

.solution-index {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

.solution-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.75rem;
}

.solution-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.solution-card p {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

.solution-card .learn-more {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Service (capability) product page ---- */
.service-intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.service-copy .section-title {
    margin-bottom: 1.5rem;
}

.service-copy p {
    max-width: 60ch;
    margin-bottom: 2.25rem;
}

.service-figure {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    min-height: 460px;
    height: 100%;
}

.other-services {
    background-color: var(--bg-darker);
}

/* On tablet/phone the hero already shows the service image, so drop the
   duplicate figure and let the overview run as a single clean column.
   Declared after the base rules so it wins the cascade. */
@media (max-width: 900px) {
    .service-intro {
        display: block;
    }

    .service-figure {
        display: none;
    }
}

/* ---- Project cards: media layer, gradient, hover zoom + reveal ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 360px;
    gap: 1.5rem;
}

.projects-grid--featured {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 215px;
    gap: 1.25rem;
}

.projects-grid--featured .project-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #0e0e0e;
    border: none;
}

.project-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media {
    transform: scale(1.06);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

.project-info {
    position: relative;
    z-index: 2;
    margin-top: auto;
    width: 100%;
    padding: 1.75rem;
    background: none;
}

.project-loc {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.project-info h3 {
    margin: 0.45rem 0 0;
    color: var(--white);
    font-size: 1.5rem;
}

.project-cta {
    display: inline-block;
    margin-top: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card:hover .project-cta {
    opacity: 1;
    transform: none;
}

.projects-grid--featured .project-card:first-child .project-info h3 {
    font-size: 2.1rem;
}

/* Head contractor / client credit on a project card */
.project-client {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

/* Status pill, top-right of the card */
.project-status {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 3;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.status--delivering {
    color: #cfeeaa;
    background: rgba(123, 176, 59, 0.32);
    border: 1px solid rgba(123, 176, 59, 0.6);
}

.status--delivered {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---- Partners / trusted-by band ---- */
.partners-band {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 3rem 0;
    text-align: center;
}

.partners-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.6rem;
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 2.5rem;
    margin: 0 auto;
    max-width: 1000px;
}

.partner-logos li {
    display: flex;
    align-items: center;
}

/* Wordmark fallback when a partner has no logo file yet */
.partner-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1;
}

/* Real logo image, normalised to a mono strip with a subtle hover lift */
.partner-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.partners-note {
    margin-top: 1.8rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ---- Currently tendering list ---- */
.tender-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tender-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.4rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tender-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.tender-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: right;
}

.tender-client {
    color: var(--primary-color);
}

/* =====================================================================
   Decorative orbit rings behind dark sections, half off-screen
   ===================================================================== */
.projects:not(.section--light),
.tendering,
.other-services {
    position: relative;
    overflow: hidden;
}

/* Real content rides above the rings */
.projects:not(.section--light) > .container,
.tendering > .container,
.other-services > .container {
    position: relative;
    z-index: 1;
}

.projects:not(.section--light)::before,
.projects:not(.section--light)::after,
.tendering::before,
.tendering::after,
.other-services::before,
.other-services::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Outer ring, centred just off the top-right corner so the arc sweeps the
   header space the card grid leaves empty */
.projects:not(.section--light)::before,
.tendering::before,
.other-services::before {
    width: 86vw;
    height: 86vw;
    top: -43vw;
    right: -34vw;
    border: 1.5px solid rgba(255, 255, 255, 0.11);
}

/* Inner concentric ring with a faint brand tint */
.projects:not(.section--light)::after,
.tendering::after,
.other-services::after {
    width: 56vw;
    height: 56vw;
    top: -28vw;
    right: -19vw;
    border: 1.5px solid rgba(123, 176, 59, 0.15);
}

/* Alternate the tendering rings to the bottom-left for rhythm */
.tendering::before {
    top: auto;
    right: auto;
    bottom: -43vw;
    left: -34vw;
}

.tendering::after {
    top: auto;
    right: auto;
    bottom: -28vw;
    left: -19vw;
}

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

    .projects-grid--featured {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }

    .projects-grid--featured .project-card:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 560px) {

    .solutions-grid,
    .projects-grid,
    .projects-grid--featured {
        grid-template-columns: 1fr;
    }

    .projects-grid--featured .project-card:first-child {
        grid-column: span 1;
    }

    /* Once stacked one-per-row, every project title is the same size */
    .projects-grid--featured .project-card:first-child .project-info h3 {
        font-size: 1.5rem;
    }
}

/* Brand logo lockup */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo-img {
    height: 34px;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--primary-color);
    color: #000;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Visible focus state for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Trust / accreditation band */
.trust-band {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.75rem 0;
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.trust-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.accred-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
}

.accred-badge .badge-mark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--primary-color);
}

.accred-badge .badge-text {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.accred-badge.is-placeholder {
    border-style: dashed;
    opacity: 0.5;
}

/* Approach / why-us band */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: var(--spacing-md);
}

.approach-item {
    border-top: 2px solid var(--primary-color);
    padding-top: 1.5rem;
}

.approach-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--ink-soft);
}

.approach-item h3 {
    color: var(--ink);
    font-size: 1.5rem;
    margin: 0.75rem 0 0.75rem;
}

.approach-item p {
    color: var(--ink-soft);
    font-size: 1rem;
}

@media (max-width: 760px) {
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-scroll],
    .section-title,
    .solution-card,
    .project-card,
    .team-card,
    .stat,
    .hero-title,
    .hero-eyebrow,
    .hero-subheadline,
    .hero-actions,
    .hero-credentials {
        opacity: 1 !important;
        transform: none !important;
    }
}
/* =====================================================================
   Full-bleed hero variant (preview, candidate replacement for split)
   ===================================================================== */
.hero--full {
    display: block;
    min-height: 100vh;
    position: relative;
    align-items: stretch;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero--full .hero-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    animation: heroReveal 9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroReveal {
    to {
        transform: scale(1);
    }
}

.hero--full::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.55) 38%, rgba(8, 9, 11, 0.2) 70%, rgba(8, 9, 11, 0.35) 100%),
        linear-gradient(to right, rgba(8, 9, 11, 0.75) 0%, rgba(8, 9, 11, 0.1) 55%, transparent 100%);
}

.hero--full .hero-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 1.5rem 5rem;
    /* left edge aligns with the site content container, not inset toward centre */
    padding-left: max(1.5rem, calc((100% - var(--container-width)) / 2 + 1.5rem));
}

.hero--full .hero-content {
    max-width: min(960px, 90vw);
    text-align: left;
}

.hero--full .hero-title {
    max-width: none;
    opacity: 1;
    transform: none;
}

.hero--full .hero-eyebrow {
    opacity: 1;
    transform: none;
}

.hero--full .hero-credentials {
    opacity: 1;
    transform: none;
}

.hero--full .scroll-indicator {
    left: clamp(1.5rem, 8vw, 10rem);
}

/* =====================================================================
   Dropdown navigation + Capabilities mega-panel + bolder CTA
   ===================================================================== */
.nav-parent {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.caret {
    display: inline-block;
    width: 0.42em;
    height: 0.42em;
    margin-left: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.3s ease;
    opacity: 0.75;
}

.has-dropdown { position: relative; }

.dropdown {
    position: absolute;
    top: 100%;
    left: -0.75rem;
    min-width: 220px;
    margin-top: 0.65rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    background: rgba(12, 13, 16, 0.97);
    backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* invisible hover bridge across the gap */
.dropdown::before {
    content: '';
    position: absolute;
    top: -0.9rem;
    left: 0;
    right: 0;
    height: 0.9rem;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.has-dropdown:hover > .nav-parent .caret,
.has-dropdown.open > .nav-parent .caret {
    transform: rotate(225deg) translateY(-2px);
}

.dropdown a {
    display: block;
    padding: 0.7rem 0.9rem;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-color);
}

/* Capabilities mega-panel */
.dropdown.mega {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 0.15rem 0.75rem;
    min-width: 520px;
    left: -1rem;
    padding: 0.85rem;
}

.mega a {
    padding: 0.7rem 0.85rem;
}

.mega .svc-name {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.mega a:hover .svc-name {
    color: var(--primary-color);
}

.mega .svc-desc {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.3px;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.mega .mega-all {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
}

/* Bolder header CTA, solid, confident */
.nav-cta {
    background-color: var(--primary-color);
    color: #000;
    border: 1px solid var(--primary-color);
    margin-left: 1.5rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(123, 176, 59, 0.3);
}

.nav-cta::before {
    display: none;
}

.nav-cta:hover {
    background-color: var(--white);
    color: #000;
    border-color: var(--white);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Mobile: dropdowns become inline accordions */
@media (max-width: 1024px) {
    .dropdown {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        margin: 0;
        /* Keep the left indent constant in both states so items don't shift
           horizontally on collapse; only the vertical padding/height animate */
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .dropdown::before { display: none; }

    .has-dropdown.open > .dropdown {
        max-height: 640px;
        padding: 0.25rem 0 0.6rem 1rem;
    }

    .dropdown.mega {
        grid-template-columns: 1fr;
        min-width: 0;
        /* Match the regular dropdown: left indent kept, vertical padding zeroed
           when collapsed so the mega fully closes with no horizontal jump */
        padding: 0 0 0 1rem;
    }

    .has-dropdown:hover > .dropdown,
    .has-dropdown:focus-within > .dropdown {
        max-height: 0;
    }

    .has-dropdown.open > .dropdown {
        max-height: 640px;
    }

    .nav-parent {
        justify-content: space-between;
        width: 100%;
        padding: 1.1rem 0;
    }

    .nav-cta {
        margin: 1.25rem 0 0;
        text-align: center;
    }
}

/* =====================================================================
   Layered text reveal, lines fall into place, blur → sharp
   ===================================================================== */
.reveal {
    display: flex;
    flex-direction: column;
}

.reveal-line {
    display: block;
    opacity: 0;
    filter: blur(14px);
    transform: translateY(-26px);
    animation: lineReveal 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, filter, transform;
}

.reveal-line:nth-child(1) { animation-delay: 0.15s; }
.reveal-line:nth-child(2) { animation-delay: 0.32s; }
.reveal-line:nth-child(3) { animation-delay: 0.49s; }
.reveal-line:nth-child(4) { animation-delay: 0.66s; }

@keyframes lineReveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-line {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        animation: none !important;
    }
}

/* =====================================================================
   Page-hero title reveal (on load) + page transitions + smooth scroll
   ===================================================================== */
@keyframes blurReveal {
    from {
        opacity: 0;
        transform: translateY(26px);
        filter: blur(12px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

.page-hero--image h1 {
    animation: blurReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.12s;
}

/* Cross-document page transitions, old page minimises, new page maximises */
@view-transition {
    navigation: auto;
}

::view-transition-group(root) {
    animation-duration: 0.95s;
}

::view-transition-old(root) {
    animation: vtMinimise 0.8s cubic-bezier(0.6, 0, 0.25, 1) both;
    transform-origin: center 42%;
}

::view-transition-new(root) {
    animation: vtMaximise 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: center 42%;
}

@keyframes vtMinimise {
    to {
        transform: scale(0.82);
        opacity: 0;
        filter: blur(8px);
    }
}

@keyframes vtMaximise {
    0% {
        transform: scale(0.9);
        opacity: 0;
        filter: blur(12px);
    }
    55% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0);
    }
}

/* On phones the scale-down + blur feathers a glowing ring at the edges.
   Swap to a tight fade (no blur, barely any scale) so the edges stay clean. */
@media (max-width: 768px) {
    ::view-transition-group(root) {
        animation-duration: 0.5s;
    }

    ::view-transition-old(root) {
        animation: vtFadeOut 0.4s ease both;
        transform-origin: center center;
    }

    ::view-transition-new(root) {
        animation: vtFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
        transform-origin: center center;
    }

    @keyframes vtFadeOut {
        to {
            opacity: 0;
            transform: scale(0.99);
        }
    }

    @keyframes vtFadeIn {
        from {
            opacity: 0;
            transform: scale(1.008);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

@media (prefers-reduced-motion: reduce) {

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none !important; opacity: 1 !important; }
    .page-fade { display: none !important; }
    .page-hero--image h1 { animation: none !important; }

    .section-title {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* Mobile: solid header bar while the menu panel is open */
.site-header.nav-open {
    background: var(--bg-darker);
    backdrop-filter: blur(18px);
}

/* Map link under the location embed */
.map-link {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.map-link:hover {
    color: var(--primary-color);
}

/* =====================================================================
   Masonry gallery + lightbox
   ===================================================================== */
.gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-item {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius);
    break-inside: avoid;
    line-height: 0;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.08);
}

@media (max-width: 900px) {
    .gallery-masonry { column-count: 2; }
}

@media (max-width: 560px) {
    .gallery-masonry { column-count: 1; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: rgba(8, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lb-stage {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lb-img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lb-caption {
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    padding: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    opacity: 1;
    color: var(--primary-color);
}

.lb-close {
    top: 1.25rem;
    right: 1.75rem;
    font-size: 2.4rem;
}

.lb-prev,
.lb-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-prev:hover { transform: translateY(-50%) translateX(-4px); }
.lb-next:hover { transform: translateY(-50%) translateX(4px); }

@media (max-width: 600px) {
    .lightbox { padding: 1.5rem; }
    .lb-prev, .lb-next { font-size: 2.2rem; padding: 0.5rem; }
}

/* =====================================================================
   Phone layout clean-up: tighter heroes, stacked rows
   ===================================================================== */
@media (max-width: 600px) {
    /* Trim the empty top space on image page-heroes */
    .page-hero--image {
        min-height: 74vh;
        padding-top: 120px;
        padding-bottom: 3.5rem;
    }

    /* Title and "view all" link sit one above the other, left aligned */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Footer columns stack into a clean single column */
    .footer-content {
        flex-direction: column;
        gap: 2.25rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.85rem;
    }

    /* Tendering rows stack name above meta */
    .tender-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .tender-meta {
        text-align: left;
    }

    .partner-logos {
        gap: 0.85rem 1.75rem;
    }

    .partner-logos li {
        font-size: 1.1rem;
    }
}

/* Inner-page hero type on phones, kept in step with the index hero.
   Declared after the base .page-hero--image rules so it wins the cascade. */
@media (max-width: 768px) {
    .page-hero--image h1 {
        font-size: 2.75rem;
        line-height: 1.05;
    }

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