.headerWrap{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    padding: 10px 50px;
    transition: padding 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    border-bottom: 1px solid transparent;
    .headerInner{
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 76px;
        padding: 0 30px;
        border: 1px solid transparent;
        border-radius: 100px;
        transition: height 0.4s ease, padding 0.4s ease, border-radius 0.4s ease, border-color 0.4s ease;
        .logoImg{
            img{
                display: block;
                height: 40px;
                width: auto;
                transition: height 0.4s ease;
            }
        }
        /* menu: one dark rounded bar, mono uppercase links, orange "lets talk" pill */
        .menuWrap{
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 7px 7px 7px 26px;
            border: 1px solid rgb(255 255 255 / 9%);
            border-radius: 16px;
            background: rgb(12 12 12 / 88%);
            backdrop-filter: blur(14px);
            > ul{
                display: flex;
                align-items: center;
                gap: 30px;
                margin: 0;
                padding: 0;
                list-style: none;
                > li{
                    position: relative;
                    > a{
                        display: inline-flex;
                        align-items: center;
                        gap: 8px;
                        padding: 12px 0;
                        font-family: "Space Mono", monospace;
                        font-size: 13px;
                        font-weight: 700;
                        letter-spacing: 0.06em;
                        text-transform: uppercase;
                        color: #f1ede4;
                        text-decoration: none;
                        transition: color 0.3s ease;
                        /* small chevron, drawn with borders so it stays crisp */
                        .subArrow{
                            width: 5px;
                            height: 5px;
                            margin-top: -1px; /* centres the visible "v" (the lower half of the turned square) on the capitals */
                            border-right: 1.5px solid currentColor;
                            border-bottom: 1.5px solid currentColor;
                            transform: rotate(45deg);
                            opacity: 0.8;
                            transition: transform 0.35s ease;
                        }
                        &:hover{ color: #0075ff; }
                    }
                    /* ---- dropdown ---- */
                    .subMenu{
                        position: absolute;
                        left: -18px;
                        top: calc(100% + 14px);
                        min-width: 230px;
                        margin: 0;
                        padding: 8px;
                        list-style: none;
                        border-radius: 14px;
                        border: 1px solid rgb(255 255 255 / 10%);
                        background: rgb(12 12 12 / 96%);
                        backdrop-filter: blur(18px);
                        box-shadow: 0 28px 60px rgb(0 0 0 / 55%);
                        opacity: 0;
                        visibility: hidden;
                        transform: translateY(12px);
                        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
                        /* invisible bridge so the cursor can cross the gap */
                        &::before{
                            content: '';
                            position: absolute;
                            left: 0;
                            right: 0;
                            top: -16px;
                            height: 16px;
                        }
                        li{
                            opacity: 0;
                            transform: translateY(8px);
                            transition: opacity 0.3s ease, transform 0.3s ease;
                            a{
                                position: relative;
                                display: block;
                                padding: 10px 14px;
                                border-radius: 9px;
                                font-family: "Space Mono", monospace;
                                font-size: 12px;
                                letter-spacing: 0.05em;
                                text-transform: uppercase;
                                color: rgb(241 237 228 / 70%);
                                text-decoration: none;
                                transition: color 0.3s ease, background 0.3s ease, padding-left 0.3s ease;
                                /* orange tick that appears on hover */
                                &::before{
                                    content: '';
                                    position: absolute;
                                    left: 11px;
                                    top: 50%;
                                    width: 5px;
                                    height: 5px;
                                    border-radius: 50%;
                                    background: #0075ff;
                                    transform: translateY(-50%);
                                    opacity: 0;
                                    transition: opacity 0.3s ease;
                                }
                                &:hover{
                                    color: #fff;
                                    background: rgb(255 255 255 / 6%);
                                    padding-left: 24px;
                                    &::before{ opacity: 1; }
                                }
                            }
                        }
                    }
                    /* long lists (services, industries, cities) sit in two columns */
                    .subMenu.twoCol{
                        display: grid;
                        grid-template-columns: repeat(2, minmax(200px, 1fr));
                        column-gap: 4px;
                        min-width: 460px;
                    }
                    /* "all ..." link closing each dropdown */
                    .subMenu .subAll{
                        grid-column: 1 / -1;
                        margin-top: 6px;
                        padding-top: 6px;
                        border-top: 1px solid rgb(255 255 255 / 10%);
                        a{ color: #0075ff; }
                    }
                    &.isActive > a{ color: #0075ff; }
                    /* open on hover or keyboard focus */
                    &:hover,
                    &:focus-within{
                        > a{
                            color: #0075ff;
                            .subArrow{ transform: translateY(3px) rotate(225deg); } /* flipped "^" kept on the same line */
                        }
                        .subMenu{
                            opacity: 1;
                            visibility: visible;
                            transform: translateY(0);
                            li{
                                opacity: 1;
                                transform: translateY(0);
                                &:nth-child(1){ transition-delay: 0.04s; }
                                &:nth-child(2){ transition-delay: 0.08s; }
                                &:nth-child(3){ transition-delay: 0.12s; }
                                &:nth-child(4){ transition-delay: 0.16s; }
                                &:nth-child(5){ transition-delay: 0.2s; }
                                &:nth-child(6){ transition-delay: 0.24s; }
                            }
                        }
                    }
                }
            }
            .menuCta{
                display: inline-flex;
                align-items: center;
                height: 44px;
                padding: 0 26px;
                border-radius: 50px;
                background: #0075ff;
                font-family: "Space Mono", monospace;
                font-size: 13px;
                letter-spacing: 0.12em;
                text-transform: uppercase;
                white-space: nowrap;
                color: #fff;
                text-decoration: none;
                transition: background-color 0.3s ease, color 0.3s ease;
                &:hover{ background: #fff; color: #0b0b0b; }
            }
            @media (max-width: 1199px){
                > ul{ gap: 20px; }
                > ul > li > a{ font-size: 12px; }
            }
            /* no room for the links on small screens: keep just the button */
            @media (max-width: 991px){
                padding: 5px;
                > ul{ display: none; }
                .menuCta{ height: 38px; padding: 0 18px; font-size: 12px; }
            }
        }
        .headerRight{
            display: flex;
            align-items: center;
            gap: 26px;
        }
    }
    /* sticky: solid black bar, edge to edge, flush with the top. the inner padding
       grows by the wrapper padding it loses, so the logo and menu don't jump sideways */
    &.isSticky{
        padding: 0;
        background: #000;
        border-bottom: 1px solid rgb(255 255 255 / 10%);
        box-shadow: 0 12px 30px rgb(0 0 0 / 45%);
        .headerInner{
            height: 72px;
            padding: 0 80px;
            border-radius: 0;
            border-color: transparent;
            .logoImg img{
                height: 34px;
            }
        }
    }
}

/* phones: tighter header so the logo and "let's talk" sit on one line */
@media (max-width: 767px){
    .headerWrap{
        padding: 10px 12px;
        .headerInner{
            height: 60px;
            padding: 0 6px 0 14px;
            .logoImg img{ height: 26px; }
            .headerRight{
                gap: 8px;
                /* just the button on phones: no bar around it */
                .menuWrap{
                    padding: 0;
                    border: 0;
                    background: none;
                    backdrop-filter: none;
                    .menuCta{ height: 36px; padding: 0 14px; font-size: 11px; letter-spacing: 0.06em; }
                }
            }
        }
        /* sticky: full-width black bar; inner padding takes over the wrapper's so nothing shifts */
        &.isSticky{
            padding: 0;
            .headerInner{
                height: 60px;
                padding: 0 18px 0 26px;
            }
        }
    }
}
