
/* ============================================================
   NEXUS INNOVATION — HOMEPAGE STYLES
   Existing brand design preserved.
   Corrected section 07 alignment and responsive layouts.
   Portfolio and clickable Architectural Projects integration.
   ============================================================ */


/* ============================================================
   12. DESIGN VARIABLES
   ============================================================ */

:root {
    --black: #0b0c0d;
    --dark: #111315;
    --dark-soft: #151718;
    --white: #f7f7f5;
    --muted: #9a9d9f;
    --line: rgba(255,255,255,.12);
    --accent: #F25D24;
}


/* ============================================================
   13. GLOBAL RESET AND BASE STYLES
   ============================================================ */

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
}


/* ============================================================
   14. MAIN NAVIGATION
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6vw;
    background: rgba(11,12,13,.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: height .3s ease, background .3s ease;
}

    .nav.scrolled {
        height: 82px;
        background: rgba(11,12,13,.96);
    }

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

.nexus-logo {
    display: block;
    width: 180px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 52px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .2px;
    color: #d0d1d2;
}

    .nav-links a {
        position: relative;
        padding: 10px 0;
        transition: color .25s ease;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 2px;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width .25s ease;
        }

        .nav-links a:hover {
            color: white;
        }

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

.nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: var(--accent);
    color: #111;
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    transition: transform .25s ease, background .25s ease;
}

    .nav-contact:hover {
        background: #ff7040;
        border-color: #ff7040;
        color: #111;
        transform: translateY(-2px);
    }


/* ============================================================
   15. MOBILE NAVIGATION
   ============================================================ */

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

    .mobile-menu-button span {
        width: 17px;
        height: 1px;
        background: white;
        display: block;
        transition: transform .25s ease, opacity .25s ease;
    }

    .mobile-menu-button.active span:first-child {
        transform: translateY(5px) rotate(45deg);
    }

    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active span:last-child {
        transform: translateY(-5px) rotate(-45deg);
    }

.mobile-menu {
    display: none;
    position: fixed;
    z-index: 999;
    top: 82px;
    left: 0;
    right: 0;
    padding: 25px 6vw 30px;
    background: rgba(11,12,13,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    .mobile-menu.active {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        color: #d5d7d8;
        font-size: 15px;
        font-weight: 500;
        transition: color .2s ease;
    }

        .mobile-menu a:hover {
            color: var(--accent);
        }


/* ============================================================
   16. HERO SECTION
   ============================================================ */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 150px 5vw 75px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,6,7,.93) 0%, rgba(5,6,7,.68) 42%, rgba(5,6,7,.15) 100%), linear-gradient(0deg, rgba(5,6,7,.9) 0%, transparent 55%), url("/Images/FRONT_IMAGE.png") center / cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

    .eyebrow::before {
        content: "";
        width: 35px;
        height: 1px;
        background: var(--accent);
    }

.hero h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(58px, 9vw, 145px);
    line-height: .87;
    letter-spacing: -7px;
    font-weight: 700;
    max-width: 1050px;
}

    .hero h1 span {
        color: transparent;
        -webkit-text-stroke: 1px rgba(255,255,255,.7);
    }

.hero-bottom {
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    max-width: 1000px;
}

.hero-description {
    max-width: 410px;
    margin: 0;
    color: #b8bbbd;
    font-size: 15px;
    line-height: 1.7;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 17px 22px;
    background: var(--accent);
    color: #111;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    transition: transform .25s ease;
}

    .hero-button:hover {
        color: #111;
        transform: translateY(-4px);
    }

    .hero-button span {
        font-size: 17px;
    }

.hero-scroll {
    position: absolute;
    right: 5vw;
    bottom: 55px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.55);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

    .hero-scroll i {
        width: 1px;
        height: 50px;
        background: var(--accent);
    }


/* ============================================================
   17. ABOUT / INTRODUCTION
   ============================================================ */

.intro {
    padding: 150px 5vw;
    background: var(--white);
    color: var(--black);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.intro h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -3px;
    font-weight: 600;
}

    .intro h2 span {
        display: block;
        color: #888;
    }

.intro-text {
    margin-top: 30px;
    max-width: 650px;
    color: #56585a;
    font-size: 18px;
    line-height: 1.75;
}


/* ============================================================
   18. SERVICES
   ============================================================ */

.services {
    padding: 140px 5vw;
    background: var(--black);
    color: var(--white);
}

/* Shared section label */

.section-number {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Shared header layout */

.services-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 80px;
    margin-bottom: 80px;
}

    /* Shared section heading */

    .services-header .approach-heading {
        margin: 0;
        font-family: "Manrope", sans-serif;
        font-size: clamp(45px, 6vw, 85px);
        line-height: .9;
        letter-spacing: -5px;
    }

.services-intro {
    max-width: 520px;
    margin: 30px 0 0;
    color: #888;
    font-size: 14px;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.service {
    min-height: 360px;
    padding: 35px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: background .3s ease;
}

    .service:last-child {
        border-right: 0;
    }

    .service:hover {
        background: #1d2021;
    }

    .service h3 {
        position: absolute;
        left: 35px;
        bottom: 45px;
        margin: 0;
        font-family: "Manrope", sans-serif;
        font-size: 31px;
        letter-spacing: -1px;
    }

    .service p {
        position: absolute;
        left: 35px;
        bottom: 92px;
        max-width: 250px;
        margin: 0;
        color: #8e9294;
        font-size: 13px;
        line-height: 1.6;
    }

.service-arrow {
    position: absolute;
    right: 35px;
    top: 35px;
    font-size: 25px;
    color: var(--accent);
}


/* ============================================================
   19. PROJECTS / HOMEPAGE FINEST SELECTION
   ============================================================ */

.projects {
    padding: 150px 5vw;
    background: var(--white);
    color: var(--black);
}

.projects-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 70px;
}

    .projects-top h2 {
        margin: 0;
        font-family: "Manrope", sans-serif;
        font-size: clamp(48px, 7vw, 95px);
        line-height: .9;
        letter-spacing: -5px;
    }

    .projects-top p {
        max-width: 310px;
        margin: 0;
        color: #666;
        font-size: 14px;
        line-height: 1.7;
    }

.project {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    min-height: 540px;
    margin-bottom: 28px;
    overflow: hidden;
    background: #ddd;
}

.project-reverse {
    grid-template-columns: 1fr 1.6fr;
}

.project-image {
    min-height: 540px;
    background-size: cover;
    background-position: center;
}

.project-image-one {
    background-image: url("/Images/SELECTED_WORK_01.png");
    min-height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.project-image-two {
    background-image: url("/Images/SELECTED_WORK_02.png");
    min-height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 80% 20%;
}

.project-image-three {
    background-image: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=1600&q=85");
    min-height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.project-info {
    padding: 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-category {
    color: #777;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-info h3 {
    margin: 30px 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(30px, 4vw, 55px);
    letter-spacing: -3px;
    line-height: .95;
}

.project-info p {
    max-width: 350px;
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    font-size: 12px;
    font-weight: 700;
}

    .project-link span {
        transition: transform .2s ease;
    }

    .project-link:hover span {
        transform: translateX(5px);
    }


/* ============================================================
   19A. TEAM
   ============================================================ */

.team {
    padding: 150px 5vw;
    background: var(--black);
    color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 80px;
    gap: 12px;
}

.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 360px;
    padding: 20px 15px;
    background: transparent;
    border: none;
    transition: background .3s ease;
}

    .team-card:hover {
        background: #1d2021;
    }

.team-card-number {
    margin-bottom: 25px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
}

.team-image {
    width: 100%;
    height: 190px;
    margin-bottom: 25px;
    overflow: hidden;
    background: var(--dark-soft);
}

    .team-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.team-card:hover .team-image img {
    transform: scale(1.04);
}

.team-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .team-info h3 {
        margin: 0 0 10px;
        color: var(--white);
        font-family: "Manrope", sans-serif;
        font-size: 19px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -.8px;
    }

.team-position {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.team-biography {
    max-width: 420px;
    margin: 0;
    color: #888;
    font-size: 12px;
    line-height: 1.8;
}

.team-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 25px;
}

    .team-links a {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: var(--white);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 1px;
        text-decoration: none;
        text-transform: uppercase;
        transition: color .3s ease;
    }

        .team-links a span {
            color: var(--accent);
            transition: transform .3s ease;
        }

        .team-links a:hover {
            color: var(--accent);
        }

            .team-links a:hover span {
                transform: translate(3px, -3px);
            }


/* ============================================================
   20. APPROACH
   ============================================================ */

.approach {
    padding: 150px 5vw;
    background: var(--black);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.approach-heading {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(45px, 6vw, 85px);
    line-height: .9;
    letter-spacing: -5px;
}

    .approach-heading span {
        display: block;
        color: var(--accent);
    }

.approach-items {
    margin-top: 80px;
    border-top: 1px solid var(--line);
}

.approach-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

    .approach-item > span {
        color: var(--accent);
        font-size: 11px;
        letter-spacing: 2px;
    }

    .approach-item h3 {
        margin: 0 0 10px;
        font-family: "Manrope", sans-serif;
        font-size: 25px;
    }

    .approach-item p {
        max-width: 520px;
        margin: 0;
        color: #888;
        font-size: 14px;
        line-height: 1.7;
    }


/* ============================================================
   21. STATISTICS
   ============================================================ */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    padding: 110px 5vw;
    background: var(--white);
    color: var(--black);
    gap: 0;
    overflow: hidden;
}

.stats-section-label {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 25px;
}

    .stats-section-label .section-number {
        color: var(--accent);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

.stat {
    min-width: 0;
    padding: 0 35px;
    text-align: center;
    border-right: 1px solid rgba(0,0,0,.14);
}

    .stat:first-child {
        padding-left: 0;
    }

    .stat:last-child {
        padding-right: 0;
        border-right: 0;
    }

    .stat strong {
        display: block;
        font-family: "Manrope", sans-serif;
        font-size: clamp(4rem, 8vw, 9rem);
        line-height: .82;
        color: var(--accent);
        font-weight: 700;
        letter-spacing: -.075em;
        white-space: nowrap;
        transition: transform .3s ease;
    }

    .stat:hover strong {
        transform: translateY(-5px);
    }

    .stat span {
        display: block;
        margin-top: 25px;
        color: #000;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
    }


/* ============================================================
   22. CONTACT — SECTION 07 / LET'S DESIGN
   ============================================================ */

.contact {
    padding: 150px 5vw;
    background: var(--black);
    color: var(--white);
}

    .contact .approach-grid.services-header {
        display: grid;
        grid-template-columns: 1fr 2fr;
        align-items: start;
        gap: 80px;
        margin-bottom: 0;
    }

/* Right-hand content */

.contact-content {
    width: 100%;
    min-width: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
    gap: 55px;
    width: 100%;
}

.contact-main {
    min-width: 0;
}

    .contact-main .approach-heading {
        margin: 0;
        font-family: "Manrope", sans-serif;
        font-size: clamp(45px, 6vw, 85px);
        line-height: .9;
        letter-spacing: -5px;
    }

        .contact-main .approach-heading span {
            display: block;
            color: var(--accent);
        }

    .contact-main .services-intro {
        max-width: 520px;
        margin: 30px 0 0;
        color: #888;
        font-size: 14px;
        line-height: 1.7;
    }

/* Contact links */

.contact-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid var(--line);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    transition: padding-left .3s ease;
}

    .contact-detail:hover {
        padding-left: 8px;
    }

.contact-detail-label {
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-detail-value {
    color: var(--white);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    transition: color .3s ease;
}

.contact-detail:hover .contact-detail-value {
    color: var(--accent);
}


/* ============================================================
   23. FOOTER
   ============================================================ */

footer {
    padding: 120px 5vw 40px;
    background: #090a0b;
}

.footer-heading {
    max-width: 1100px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(50px, 8vw, 120px);
    line-height: .86;
    letter-spacing: -6px;
}

    .footer-heading span {
        color: var(--accent);
    }

.footer-bottom {
    margin-top: 110px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 25px;
    color: #777;
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

    .footer-links a {
        transition: color .2s ease;
    }

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


/* ============================================================
   24. LANGUAGE SELECTOR
   ============================================================ */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 4px;
    white-space: nowrap;
}

    .language-switcher a,
    .mobile-language-switcher a {
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .08em;
        transition: color .2s ease;
    }

        .language-switcher a:hover,
        .language-switcher a.active,
        .mobile-language-switcher a:hover,
        .mobile-language-switcher a.active {
            color: var(--accent);
        }

.mobile-language-switcher {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
}

.section-label {
    color: var(--accent) !important;
    opacity: 1 !important;
}


/* ============================================================
   25. RESPONSIVE DESIGN — TABLETS
   ============================================================ */

@media (max-width: 1200px) {

    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {

    .stat {
        padding: 0 20px;
    }

        .stat strong {
            font-size: clamp(3.5rem, 8vw, 7rem);
        }
}

@media (max-width: 900px) {

    /* Navigation */

    .nav-links,
    .nav-contact,
    .language-switcher {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    /* Hero */

    .hero {
        padding-bottom: 55px;
    }

        .hero h1 {
            letter-spacing: -4px;
        }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-scroll {
        display: none;
    }

    /* About, approach and contact outer layouts */

    .intro-grid,
    .approach-grid,
    .contact .approach-grid.services-header {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Services header */

    .services-header {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    /* Contact inner layout */

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    /* Projects header */

    .projects-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }

    /* Services */

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service {
        border-right: 0;
    }

    /* Projects */

    .project,
    .project-reverse {
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 400px;
    }

    /* Team */

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Statistics */

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 70px;
        padding: 90px 5vw;
    }

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

    .stat:nth-child(3) {
        border-right: 1px solid rgba(0,0,0,.14);
    }

    .stat:nth-child(4) {
        border-right: 0;
    }

    .stat:first-child,
    .stat:nth-child(3) {
        padding-left: 0;
    }

    .stat:nth-child(2),
    .stat:last-child {
        padding-right: 0;
    }
}


/* ============================================================
   26. RESPONSIVE DESIGN — MOBILE
   ============================================================ */

@media (max-width: 600px) {

    /* Navigation */

    .nav {
        height: 70px;
        padding: 0 6vw;
    }

        .nav.scrolled {
            height: 64px;
        }

    .mobile-menu {
        top: 70px;
    }

    /* Hero */

    .hero {
        padding: 125px 6vw 50px;
    }

        .hero h1 {
            font-size: 60px;
            letter-spacing: -3px;
        }

    .hero-bottom {
        margin-top: 35px;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }

    /* Main sections */

    .intro,
    .services,
    .projects,
    .approach,
    .team,
    .contact {
        padding: 90px 6vw;
    }

    /* Projects */

    .project-info {
        padding: 35px;
    }

    .project-image {
        min-height: 330px;
    }

    /* Approach */

    .approach-items {
        margin-top: 55px;
    }

    .approach-item {
        grid-template-columns: 45px 1fr;
        gap: 15px;
    }

    /* Team */

    .team-grid {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }

    .team-card {
        min-height: auto;
        padding: 25px 0;
    }

    .team-image {
        height: 260px;
    }

    .team-info h3 {
        font-size: 23px;
    }

    /* Statistics */

    .stats {
        grid-template-columns: 1fr;
        padding: 70px 6vw;
        row-gap: 0;
    }

    .stat,
    .stat:nth-child(3) {
        padding: 35px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(0,0,0,.14);
    }

        .stat:first-child {
            padding-top: 0;
        }

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

        .stat strong {
            font-size: clamp(4.5rem, 22vw, 7rem);
        }

        .stat span {
            margin-top: 18px;
        }

    /* Contact */

    .contact-layout {
        gap: 35px;
    }

    .contact-main .approach-heading {
        font-size: 60px;
        letter-spacing: -4px;
    }

    .contact-detail {
        padding: 17px 0;
    }

    /* Footer */

    footer {
        padding: 90px 6vw 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        margin-top: 80px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}


/* ============================================================
   27. TEAM — SMALL SCREENS
   ============================================================ */

@media (max-width: 520px) {

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-image {
        height: 260px;
    }
}


/* ============================================================
   28. ACCESSIBILITY — REDUCED MOTION
   ============================================================ */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* ============================================================
   NEXUS TEAM PROFILE POPUP
   Fixed dimensions for consistent popup appearance.
   ============================================================ */

.team-card-clickable {
    cursor: pointer;
    transition: transform .3s ease, opacity .3s ease;
}

    .team-card-clickable:hover {
        transform: translateY(-5px);
    }

    .team-card-clickable:focus-visible {
        outline: 2px solid currentColor;
        outline-offset: 5px;
    }

.team-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(8, 10, 12, .82);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

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

.team-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 650px;
    max-height: calc(100vh - 60px);
    overflow: hidden;
    background: #f7f7f5;
    color: #111315;
    transform: translateY(20px);
    transition: transform .3s ease;
}

.team-modal.is-open .team-modal-content {
    transform: translateY(0);
}

.team-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #111315;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-modal-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.team-modal-image-wrapper {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #e5e5e1;
}

    .team-modal-image-wrapper[hidden] {
        display: none;
    }

.team-modal-layout:has(.team-modal-image-wrapper[hidden]) {
    grid-template-columns: 1fr;
}

.team-modal-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.team-modal-information {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 65px 55px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
}

.team-modal-eyebrow {
    margin-bottom: 25px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}

.team-modal-information h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 500;
}

.team-modal-position {
    margin: 12px 0 25px;
    color: #777;
    font-size: 14px;
}

    .team-modal-position[hidden],
    .team-modal-biography[hidden] {
        display: none;
    }

.team-modal-biography {
    font-size: 14px;
    line-height: 1.8;
    color: #50545a;
    white-space: pre-line;
}

.team-modal-quote {
    margin-top: 30px;
    padding-left: 18px;
    border-left: 2px solid #a6a69f;
}

    .team-modal-quote[hidden] {
        display: none;
    }

.team-modal-quote-label {
    display: block;
    margin-bottom: 10px;
    color: #777;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.team-modal-quote blockquote {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
}

.team-modal-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-top: 35px;
}

.team-modal-contact-item {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #111315;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #deded9;
    padding-bottom: 10px;
}

    .team-modal-contact-item:hover {
        opacity: .6;
    }

body.team-modal-open {
    overflow: hidden;
}


/* ============================================================
   RESPONSIVE TEAM POPUP — TABLETS AND MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .team-modal {
        padding: 12px;
    }

    .team-modal-content {
        width: 100%;
        height: 94vh;
        max-height: 94vh;
        overflow: hidden;
    }

    .team-modal-layout {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .team-modal-image-wrapper {
        flex: 0 0 280px;
        height: 280px;
        min-height: 280px;
        max-height: 280px;
    }

        .team-modal-image-wrapper img {
            width: 100%;
            height: 100%;
            min-height: 0;
            max-height: none;
            object-fit: cover;
        }

    .team-modal-information {
        flex: 1;
        min-height: 0;
        height: auto;
        padding: 30px 25px;
        overflow-y: auto;
    }

    .team-modal-close {
        top: 12px;
        right: 12px;
    }

    .team-modal-eyebrow {
        margin-bottom: 18px;
    }

    .team-modal-layout:has(.team-modal-image-wrapper[hidden]) {
        display: flex;
    }

        .team-modal-layout:has(.team-modal-image-wrapper[hidden]) .team-modal-information {
            flex: 1;
            width: 100%;
        }
}


/* ============================================================
   NEXUS INNOVATION — ARCHITECTURAL PORTFOLIO
   Independent portfolio page.
   Existing homepage styling remains unchanged.
   ============================================================ */

.portfolio-page {
    min-height: 100vh;
    padding-top: 100px;
    background: var(--white);
    color: var(--black);
}


/* ------------------------------------------------------------
   PORTFOLIO HERO
   ------------------------------------------------------------ */

.portfolio-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    padding: 100px 7vw 75px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(11,12,13,.94), rgba(11,12,13,.55)), linear-gradient(0deg, rgba(11,12,13,.55), transparent);
    color: var(--white);
}

.portfolio-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
}

.portfolio-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

    .portfolio-eyebrow::before {
        content: "";
        width: 35px;
        height: 1px;
        background: var(--accent);
    }

.portfolio-hero h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(65px, 10vw, 145px);
    line-height: .88;
    letter-spacing: -7px;
    font-weight: 700;
}

    .portfolio-hero h1 span {
        color: var(--accent);
    }

.portfolio-hero p {
    max-width: 540px;
    margin: 35px 0 0;
    color: #b8bbbd;
    font-size: 15px;
    line-height: 1.8;
}

.portfolio-hero-bottom {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 55px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.2);
    color: #aaa;
    font-size: 10px;
    letter-spacing: 2px;
}

    .portfolio-hero-bottom span:first-child {
        color: var(--accent);
        font-family: "Manrope", sans-serif;
        font-size: 25px;
        font-weight: 700;
    }


/* ------------------------------------------------------------
   PORTFOLIO CONTENT
   ------------------------------------------------------------ */

.portfolio-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 100px 7vw 130px;
}

.portfolio-toolbar {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 55px;
}

.portfolio-toolbar-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .portfolio-toolbar-heading > span {
        color: var(--accent);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 2px;
    }

    .portfolio-toolbar-heading h2 {
        margin: 0;
        font-family: "Manrope", sans-serif;
        font-size: clamp(25px, 3vw, 38px);
        letter-spacing: -1.5px;
    }


/* ------------------------------------------------------------
   CATEGORY FILTERS
   ------------------------------------------------------------ */

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,.15);
}

.portfolio-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 20px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 999px;
    background: transparent;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: color .25s ease, background .25s ease, border-color .25s ease, transform .25s ease;
}

    .portfolio-filter:hover {
        border-color: var(--accent);
        color: var(--accent);
        transform: translateY(-2px);
    }

    .portfolio-filter.active {
        border-color: var(--black);
        background: var(--black);
        color: white;
    }


/* ------------------------------------------------------------
   PROJECT GRID
   ------------------------------------------------------------ */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 65px 25px;
}

.portfolio-card {
    min-width: 0;
    animation: portfolioCardEnter .45s ease both;
}

    .portfolio-card[hidden] {
        display: none !important;
    }

@keyframes portfolioCardEnter {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.portfolio-card-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .portfolio-card-button:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 6px;
    }

.portfolio-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1.38 / 1;
    overflow: hidden;
    background: #deded9;
}

    .portfolio-card-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .8s cubic-bezier(.2,.7,.2,1);
    }

.portfolio-card-button:hover .portfolio-card-image img {
    transform: scale(1.055);
}

.portfolio-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #deded9;
    color: #999;
    font-family: "Manrope", sans-serif;
    font-size: 35px;
    font-weight: 700;
    letter-spacing: 5px;
}

.portfolio-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--black);
    font-size: 22px;
    transition: transform .3s ease;
}

.portfolio-card-button:hover .portfolio-card-arrow {
    transform: rotate(45deg);
}

.portfolio-card-index {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.portfolio-card-information {
    padding: 25px 2px 0;
}

.portfolio-card-category {
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-card-information h3 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(24px, 3vw, 37px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.portfolio-card-information > p {
    max-width: 500px;
    margin: 15px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

.portfolio-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid rgba(0,0,0,.14);
    color: #777;
    font-size: 10px;
    letter-spacing: .5px;
}

    .portfolio-card-footer span:last-child {
        color: var(--black);
        font-weight: 700;
        white-space: nowrap;
        transition: color .25s ease;
    }

.portfolio-card-button:hover .portfolio-card-footer span:last-child {
    color: var(--accent);
}

.portfolio-empty {
    padding: 80px 20px;
    text-align: center;
    color: #777;
    font-size: 15px;
}

    .portfolio-empty[hidden] {
        display: none;
    }


/* ------------------------------------------------------------
   PROJECT DETAIL MODAL
   ------------------------------------------------------------ */

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

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

.portfolio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,6,7,.88);
    backdrop-filter: blur(10px);
}

.portfolio-modal-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1150px;
    height: 680px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: var(--white);
    color: var(--black);
    transform: translateY(20px);
    transition: transform .35s ease;
}

.portfolio-modal.is-open .portfolio-modal-content {
    transform: translateY(0);
}

.portfolio-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--black);
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

    .portfolio-modal-close:hover {
        background: var(--accent);
        color: var(--black);
        transform: rotate(90deg);
    }

.portfolio-modal-layout {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    width: 100%;
    min-height: 100%;
}

    .portfolio-modal-layout:has(.portfolio-modal-image[hidden]) {
        grid-template-columns: 1fr;
    }

.portfolio-modal-image {
    min-width: 0;
    min-height: 500px;
    overflow: hidden;
    background: #deded9;
}

    .portfolio-modal-image[hidden] {
        display: none;
    }

    .portfolio-modal-image img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 500px;
        object-fit: cover;
    }

.portfolio-modal-information {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 75px 55px 50px;
}

.portfolio-modal-eyebrow {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-modal-information h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -2px;
}

.portfolio-modal-short-description {
    margin: 22px 0 0;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.portfolio-modal-description {
    margin-top: 20px;
    color: #777;
    font-size: 13px;
    line-height: 1.9;
    white-space: pre-line;
}

.portfolio-modal-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: auto;
    padding-top: 40px;
}

    .portfolio-modal-details > div {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 14px;
        border-top: 1px solid rgba(0,0,0,.15);
    }

    .portfolio-modal-details span {
        color: #888;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
    }

    .portfolio-modal-details strong {
        color: var(--black);
        font-size: 13px;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

        .portfolio-modal-details strong[hidden],
        .portfolio-modal-short-description[hidden],
        .portfolio-modal-description[hidden] {
            display: none;
        }

body.portfolio-modal-open {
    overflow: hidden;
}


/* ------------------------------------------------------------
   RESPONSIVE PORTFOLIO — TABLETS
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    .portfolio-hero {
        min-height: 430px;
        padding: 90px 6vw 60px;
    }

    .portfolio-content {
        padding: 80px 6vw 100px;
    }

    .portfolio-grid {
        gap: 50px 20px;
    }

    .portfolio-modal-content {
        height: 90vh;
    }

    .portfolio-modal-layout {
        grid-template-columns: 1fr 1fr;
    }

        .portfolio-modal-layout:has(.portfolio-modal-image[hidden]) {
            grid-template-columns: 1fr;
        }

    .portfolio-modal-information {
        padding: 65px 35px 35px;
    }
}


/* ------------------------------------------------------------
   RESPONSIVE PORTFOLIO — MOBILE
   ------------------------------------------------------------ */

@media (max-width: 650px) {

    .portfolio-page {
        padding-top: 70px;
    }

    .portfolio-hero {
        min-height: 390px;
        padding: 90px 6vw 45px;
    }

        .portfolio-hero h1 {
            font-size: 65px;
            letter-spacing: -4px;
        }

        .portfolio-hero p {
            margin-top: 25px;
            font-size: 13px;
        }

    .portfolio-content {
        padding: 65px 6vw 85px;
    }

    .portfolio-toolbar {
        gap: 25px;
        margin-bottom: 40px;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .portfolio-filter {
        min-height: 38px;
        padding: 9px 15px;
        font-size: 10px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .portfolio-card-image {
        aspect-ratio: 1.15 / 1;
    }

    .portfolio-card-information h3 {
        font-size: 30px;
    }

    .portfolio-modal {
        padding: 12px;
    }

    .portfolio-modal-content {
        height: 94vh;
        max-height: 94vh;
    }

    .portfolio-modal-layout {
        display: flex;
        flex-direction: column;
    }

        .portfolio-modal-layout:has(.portfolio-modal-image[hidden]) {
            display: flex;
        }

    .portfolio-modal-image {
        flex: 0 0 280px;
        min-height: 280px;
        height: 280px;
    }

        .portfolio-modal-image img {
            min-height: 280px;
            height: 100%;
        }

        .portfolio-modal-image[hidden] {
            display: none;
        }

    .portfolio-modal-information {
        padding: 35px 25px;
    }

    .portfolio-modal-details {
        margin-top: 35px;
        padding-top: 10px;
        gap: 20px;
    }

    .portfolio-modal-close {
        top: 12px;
        right: 12px;
    }
}


/* ------------------------------------------------------------
   PORTFOLIO ACCESSIBILITY
   ------------------------------------------------------------ */

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

    .portfolio-card,
    .portfolio-card-image img,
    .portfolio-modal,
    .portfolio-modal-content,
    .portfolio-filter {
        animation: none !important;
        transition: none !important;
    }
}


/* ARCHITECTURAL PROJECTS — FULL CARD CLICK AREA */

.service {
    position: relative;
    isolation: isolate;
}

.service-card-link {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: transparent;
}

    .service-card-link:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -4px;
    }

/* Clickable Architectural Projects service card */

.service-clickable {
    cursor: pointer;
}

    .service-clickable * {
        cursor: pointer;
    }

    .service-clickable:hover {
        background: #1d2021;
    }

    .service-clickable:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: -4px;
    }

