body{
    background-color: #000;
}
.container-max{
    max-width: 1660px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}
.z_1{
    z-index: 1;
}
.fz_100{
    font-size: 100px;
}
.fz_130{
    font-size: 130px;
}
.fz_150{
    font-size: 150px;
}
.fz_200{
    font-size: 200px;
}
.fw_600{
    font-weight: 600;
}
.whiteText{
    color: #fff;
}
/*===lenis smooth scroll===*/
html.lenis,
html.lenis body{
    height: auto;
}
.lenis.lenis-smooth{
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent]{
    overscroll-behavior: contain;
}
.lenis.lenis-stopped{
    overflow: hidden;
}
.blueText{
    color: #0075ff;
}

/* ================= Quick connect: side tab + slide-in form (every page) ================= */
.qcTab{
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 13px;
    border: 0;
    border-radius: 12px 0 0 12px;
    background: #0b5fd9;   /* tech audit 21 Oct: white text 5.7:1 (was #0075ff, 4.2:1) */
    box-shadow: -6px 8px 24px rgb(0 0 0 / 35%);
    color: #fff;
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    writing-mode: vertical-rl; /* reads top to bottom, like the design */
    cursor: pointer;
    transform: translateY(-50%);
    transition: padding-right 0.35s ease, background-color 0.35s ease, opacity 0.3s ease;
    &:hover{ padding-right: 18px; background: #1a84ff; }
    &:focus-visible{ outline: 2px solid #fff; outline-offset: -5px; }
    body.qcOpen &{ opacity: 0; pointer-events: none; }
    @media (max-width: 575px){ padding: 14px 9px; font-size: 10px; }
}
.qcOverlay{
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgb(0 0 0 / 60%);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    body.qcOpen &{ opacity: 1; visibility: visible; }
}
.qcPanel{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    width: min(460px, 100vw);
    padding: clamp(26px, 3vw, 40px) clamp(22px, 2.6vw, 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0e0e0e;
    border-left: 1px solid rgb(255 255 255 / 12%);
    box-shadow: -30px 0 60px rgb(0 0 0 / 50%);
    color: #fff;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.55s;
    body.qcOpen &{ transform: translateX(0); visibility: visible; }
    /* contents rise in one after another once the panel is out */
    .qcHead, .qcForm > *, .qcAlt{
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.45s ease, transform 0.45s ease;
    }
    body.qcOpen & :is(.qcHead, .qcForm > *, .qcAlt){ opacity: 1; transform: none; }
    body.qcOpen & .qcHead{ transition-delay: 0.15s; }
    body.qcOpen & .qcForm > *:nth-child(1){ transition-delay: 0.2s; }
    body.qcOpen & .qcForm > *:nth-child(2){ transition-delay: 0.25s; }
    body.qcOpen & .qcForm > *:nth-child(3){ transition-delay: 0.3s; }
    body.qcOpen & .qcForm > *:nth-child(4){ transition-delay: 0.35s; }
    body.qcOpen & .qcForm > *:nth-child(5){ transition-delay: 0.4s; }
    body.qcOpen & .qcForm > *:nth-child(6){ transition-delay: 0.45s; }
    body.qcOpen & .qcForm > *:nth-child(7){ transition-delay: 0.5s; }
    body.qcOpen & .qcAlt{ transition-delay: 0.55s; }
}
.qcClose{
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 18%);
    background: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.4s ease;
    &:hover{ background: #0075ff; border-color: #0075ff; color: #fff; transform: rotate(90deg); }
    &:focus-visible{ outline: 2px solid #0075ff; outline-offset: 2px; }
}
.qcHead{
    margin: 0 50px 28px 0;
    span{
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
        font-family: "Space Mono", monospace;
        font-size: 11px;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        color: rgb(241 237 228 / 60%);
        &::before{ content: ""; width: 26px; height: 1px; background: #0075ff; }
    }
    h2{
        margin: 0 0 10px;
        font-family: "Montserrat", sans-serif;
        font-weight: 800;
        font-size: clamp(26px, 2.2vw, 34px);
        line-height: 1.1;
        letter-spacing: -0.02em;
        color: #fff;
        em{ font-style: normal; color: #0075ff; }
    }
    p{
        margin: 0;
        font-family: "Montserrat", sans-serif;
        font-weight: 500;
        font-size: 14px;
        line-height: 1.55;
        color: rgb(255 255 255 / 65%);
    }
}
.qcForm{
    display: grid;
    gap: 16px;
    label{
        display: grid;
        gap: 7px;
        font-family: "Space Mono", monospace;
        font-size: 10.5px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: rgb(241 237 228 / 60%);
        b{ font-weight: 400; color: #0075ff; }
    }
    input, select, textarea{
        width: 100%;
        padding: 13px 15px;
        border: 1px solid rgb(255 255 255 / 14%);
        border-radius: 10px;
        background: #151515;
        font-family: "Montserrat", sans-serif;
        font-size: 15px;
        letter-spacing: 0;
        text-transform: none;
        color: #fff;
        transition: border-color 0.3s ease, background-color 0.3s ease;
        &::placeholder{ color: rgb(255 255 255 / 30%); }
        &:focus{ outline: none; border-color: #0075ff; background: #171b22; }
        &.isError{ border-color: #ff5a5a; }
    }
    select{
        appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
        background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
        background-size: 5px 5px, 5px 5px;
        background-repeat: no-repeat;
        option{ background: #151515; color: #fff; }
    }
    textarea{ resize: vertical; min-height: 96px; }
    .qcSubmit{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        height: 52px;
        margin-top: 4px;
        border: 0;
        border-radius: 50px;
        background: #0075ff;
        font-family: "Space Mono", monospace;
        font-size: 13px;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: #fff;
        cursor: pointer;
        transition: background-color 0.35s ease;
        span{ transition: transform 0.35s ease; }
        &:hover{ background: #fff; }
        &:hover span{ transform: translateX(5px); }
        &:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }
    }
    .qcNote{
        margin: -4px 0 0;
        font-family: "Montserrat", sans-serif;
        font-size: 12px;
        letter-spacing: 0;
        text-transform: none;
        text-align: center;
        color: rgb(255 255 255 / 45%);
    }
}
.qcAlt{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 26px;
    a{
        flex: 1 1 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 44px;
        padding: 0 16px;
        border: 1px solid rgb(255 255 255 / 16%);
        border-radius: 50px;
        font-family: "Space Mono", monospace;
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: #f1ede4;
        text-decoration: none;
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
        &:hover{ background: #f1ede4; border-color: #f1ede4; color: #0b0b0b; }
    }
}
body.qcOpen{ overflow: hidden; }

/* ================= WhatsApp: sticky chat button, bottom-left (every page) ================= */
.waFloat{
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 94;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 10px 28px rgb(0 0 0 / 40%);
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.3s ease;
    /* soft ring that keeps pulsing out, so it reads as "live" */
    &::before{
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #25d366;
        z-index: -1;
        animation: waPulse 2.4s ease-out infinite;
    }
    > i, > .svg-inline--fa{ width: 28px; height: 28px; }
    /* label slides out to the right on hover */
    span{
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        padding: 8px 14px;
        border-radius: 50px;
        background: #fff;
        font-family: "Space Mono", monospace;
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        white-space: nowrap;
        color: #0b0b0b;
        opacity: 0;
        pointer-events: none;
        transform: translate(-8px, -50%);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    &:hover{ transform: scale(1.08); background: #1ebe5b; }
    &:hover span{ opacity: 1; transform: translate(0, -50%); }
    &:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }
    body.qcOpen &{ opacity: 0; pointer-events: none; } /* out of the way while quick connect is open */
    @media (max-width: 767px){
        left: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        font-size: 24px;
        > i, > .svg-inline--fa{ width: 24px; height: 24px; }
        span{ display: none; }
    }
}
@keyframes waPulse{
    0%{ transform: scale(1); opacity: 0.55; }
    80%, 100%{ transform: scale(1.7); opacity: 0; }
}
@media (prefers-reduced-motion: reduce){ .waFloat::before{ animation: none; } }

/* ================= theme switch (every page) ================= */
.themeSwitch{
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    width: 64px;
    height: 34px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50px;
    background: rgb(255 255 255 / 6%);
    cursor: pointer;
    transition: background-color 0.35s ease, border-color 0.35s ease;
    svg{
        position: absolute;
        top: 50%;
        width: 14px;
        height: 14px;
        transform: translateY(-50%);
        fill: none;
        stroke: rgb(241 237 228 / 55%);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
        transition: stroke 0.35s ease;
    }
    .tsMoon{ left: 10px; }
    .tsSun{ right: 10px; }
    /* the knob slides over the active mode */
    .tsKnob{
        position: absolute;
        top: 3px;
        left: 3px;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #0075ff;
        box-shadow: 0 4px 10px rgb(0 117 255 / 35%);
        transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    .tsMoon, .tsSun{ z-index: 1; }
    &:hover{ border-color: #0075ff; }
    &:focus-visible{ outline: 2px solid #0075ff; outline-offset: 3px; }
}
html:not([data-theme="light"]) .themeSwitch .tsMoon{ stroke: #fff; }
html[data-theme="light"] .themeSwitch{
    border-color: rgb(0 0 0 / 14%);
    background: rgb(0 0 0 / 5%);
    .tsKnob{ transform: translateX(30px); }
    .tsSun{ stroke: #fff; }
    .tsMoon{ stroke: rgb(11 11 11 / 45%); }
}
/* colours glide instead of snapping when the mode changes */
html.themeAnim, html.themeAnim *, html.themeAnim *::before, html.themeAnim *::after{
    transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, fill 0.45s ease, stroke 0.45s ease !important;
}
/* narrow phones: the switch becomes one round icon button (sun = go light, moon = go dark)
   and the header tightens up so logo, switch and "let's talk" share one row */
@media (max-width: 420px){
    .headerWrap .headerInner .headerRight .menuWrap{ gap: 8px; }
    .headerWrap .headerInner .logoImg img{ height: 21px; }
    .themeSwitch{
        width: 34px;
        height: 34px;
        justify-content: center;
        .tsKnob{ display: none; }
        svg, .tsMoon, .tsSun{ left: 50%; right: auto; transform: translate(-50%, -50%); width: 15px; height: 15px; }
        .tsMoon{ display: none; }
        .tsSun{ display: block; stroke: #fff; }
    }
    html[data-theme="light"] .themeSwitch{
        .tsSun{ display: none; }
        .tsMoon{ display: block; stroke: #0b0b0b; }
    }
}
