/* ui.css: header phone, mobile shell (burger, full-screen menu, floating tab bar), floating WhatsApp button (commented out), tunnel/neon fixes.
   Loaded after site702c.css on every page. Colours are written as hex so it works with either the lime or the purple stylesheet. */

/* both naming schemes resolve (index.html used --purple / btn-purple, site702c.css used --lime / btn-lime) */
:root {
    --purple: #4a48f3;
    --on-purple: #ffffff;
    --purple-t: #8f8eff;
}

.btn-purple {
    background: #4a48f3;
    color: #ffffff;
}

    .btn-purple:hover {
        background: #ffffff;
        color: #000000 !important;
    }

/* ---- header: phone on desktop ---- */
.top .hdr-tel span {
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
    white-space: nowrap;
}

.top .hdr-tel svg {
    width: 17px;
    height: 17px;
}

/* ---- mobile shell: header controls, full-screen menu (circle reveal), floating tab bar ---- */
:root {
    --tab-h: 64px;
    --m-bg: #000000;
    --m-fg: #ffffff;
    --m-mute: #8e8e93;
    --m-soft: rgba(255,255,255,.07);
    --m-thumb: rgba(255,255,255,.14);
    --m-acc: #4a48f3;
    --m-acc-t: #8f8eff;
    --m-glass: rgba(16,16,24,.74);
    --m-edge: rgba(255,255,255,.14);
    --m-hi: rgba(255,255,255,.12);
    --m-shadow: 0 20px 44px -16px rgba(0,0,0,.8);
    --m-blob: rgba(74,72,243,.36);
    --m-hole: #15151d;
    --m-mbo: .38;
    --ez-soft: cubic-bezier(.2,.9,.2,1);
    --ez-bounce: cubic-bezier(.34,1.56,.64,1);
}

html[data-theme="light"] {
    --m-bg: #f6f7fb;
    --m-fg: #191b24;
    --m-mute: #6d7280;
    --m-soft: rgba(25,27,36,.06);
    --m-thumb: #ffffff;
    --m-acc-t: #4a48f3;
    --m-glass: rgba(255,255,255,.8);
    --m-edge: rgba(25,27,36,.1);
    --m-hi: rgba(255,255,255,.9);
    --m-shadow: 0 20px 44px -18px rgba(25,29,48,.32);
    --m-blob: rgba(74,72,243,.15);
    --m-hole: #ffffff;
    --m-mbo: .2;
}

/* burger: two lines, the short one grows on hover (mobile only) */
.burger {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    flex: none;
    padding: 0;
    border: 1px solid #303039;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s, border-color .2s;
}

    .burger:hover, .burger:focus-visible {
        background: rgba(143,142,255,.14);
        border-color: #8f8eff;
    }

    .burger .mb-lines {
        position: relative;
        display: block;
        width: 20px;
        height: 14px;
    }

        .burger .mb-lines i {
            position: absolute;
            right: 0;
            height: 2.2px;
            border-radius: 2px;
            background: currentColor;
            transition: width .45s var(--ez-bounce);
        }

            .burger .mb-lines i:nth-child(1) {
                top: 2px;
                width: 20px;
            }

            .burger .mb-lines i:nth-child(2) {
                bottom: 2px;
                width: 12px;
            }

    .burger:hover .mb-lines i:nth-child(2), .burger:active .mb-lines i:nth-child(2) {
        width: 20px;
    }

html.menu-open {
    overflow: hidden;
}

.mobmenu, .mtabs {
    display: none;
}

@media (max-width: 860px) {
    .top .hdr-tel, .top .mnav {
        display: none !important;
    }

    .burger {
        display: inline-grid;
        place-items: center;
    }

    .mobmenu {
        display: flex;
    }

    .mtabs {
        display: block;
    }

    .wa-dugme {
        display: none !important;
    }
    /* the tab bar's centre button is the WhatsApp action on phones */
    body {
        padding-bottom: calc(var(--tab-h) + 34px + env(safe-area-inset-bottom, 0px));
    }
}

/* ---- full-screen menu ---- */
.mobmenu {
    position: fixed;
    inset: 0;
    z-index: 190;
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    gap: 16px;
    visibility: hidden;
    background: var(--m-bg);
    color: var(--m-fg);
    padding: calc(env(safe-area-inset-top, 0px) + 8px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 22px) max(20px, env(safe-area-inset-left, 0px));
    clip-path: circle(0px at var(--ox, 90%) var(--oy, 30px));
}

    .mobmenu.is-open {
        visibility: visible;
        clip-path: circle(150vmax at var(--ox, 90%) var(--oy, 30px));
        transition: clip-path .78s cubic-bezier(.2,.9,.12,1);
    }

    .mobmenu.is-closing {
        visibility: visible;
        clip-path: circle(0px at var(--ox, 90%) var(--oy, 30px));
        transition: clip-path .5s cubic-bezier(.55,0,.75,.2);
    }

.mm-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

    .mm-bg i {
        position: absolute;
        border-radius: 50%;
        filter: blur(46px);
        opacity: var(--m-mbo);
        animation: mmDrift 16s ease-in-out infinite alternate;
    }

    .mm-bg .b1 {
        width: 280px;
        height: 280px;
        right: -90px;
        top: -70px;
        background: #4a48f3;
    }

    .mm-bg .b2 {
        width: 240px;
        height: 240px;
        left: -110px;
        top: 42%;
        background: #8f8eff;
        animation-delay: -5s;
    }

    .mm-bg .b3 {
        width: 210px;
        height: 210px;
        right: -70px;
        bottom: 4%;
        background: #6e6cf0;
        animation-delay: -10s;
    }

@keyframes mmDrift {
    50% {
        transform: translate(-34px, 44px) scale(1.16);
    }

    100% {
        transform: translate(22px, -24px) scale(.9);
    }
}

.mm-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}

.mm-logo {
    display: inline-flex;
    color: var(--m-fg);
}

    .mm-logo svg {
        display: block;
        width: auto;
        height: 34px;
    }

.mm-x {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    color: var(--m-fg);
    background: var(--m-soft);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

    .mm-x i {
        position: absolute;
        width: 18px;
        height: 2.2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform .7s var(--ez-bounce) .18s;
    }

.mobmenu.is-open .mm-x i:nth-child(1) {
    transform: rotate(45deg);
}

.mobmenu.is-open .mm-x i:nth-child(2) {
    transform: rotate(-45deg);
}

.mm-links {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
}

.mm-link {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    color: var(--m-fg);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .25s ease;
}

    .mm-link:active {
        background: var(--m-soft);
    }

.mm-in {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    padding: 8px 4px;
    transform: translateY(108%) rotate(5deg);
    transform-origin: 0 100%;
    opacity: 0;
    transition: transform .95s var(--ez-soft) calc(var(--i, 0) * 50ms + 150ms), opacity .45s ease calc(var(--i, 0) * 50ms + 150ms);
}

.mobmenu.is-open .mm-in {
    transform: none;
    opacity: 1;
}

.mobmenu.is-closing .mm-in {
    opacity: 0;
    transform: translateY(-18%);
    transition-duration: .22s;
    transition-delay: 0s;
}

.mm-no {
    grid-row: 1 / 3;
    align-self: start;
    padding-top: 10px;
    font: 700 11.5px/1 var(--mono, ui-monospace, monospace);
    letter-spacing: .08em;
    color: var(--m-mute);
}

.mm-t {
    grid-column: 2;
    font: 800 clamp(31px, 5.7vw, 44px)/1.04 var(--display, "Rubik", system-ui, sans-serif);
    letter-spacing: -.03em;
}

.mm-d {
    grid-column: 2;
    font: 500 13px/1.35 var(--body, system-ui, sans-serif);
    color: var(--m-mute);
}

.mm-ar {
    grid-column: 3;
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--m-soft);
    transition: transform .5s var(--ez-bounce), background-color .3s ease, color .3s ease;
}

    .mm-ar svg {
        width: 20px;
        height: 20px;
    }

.mm-link:hover .mm-ar, .mm-link:active .mm-ar, .mm-link:focus-visible .mm-ar {
    transform: rotate(45deg) scale(1.06);
    background: #4a48f3;
    color: #fff;
}

.mm-link.is-on .mm-t {
    color: var(--m-acc-t);
}

.mm-link.is-on .mm-no::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: #4a48f3;
    animation: mmPip 1.6s ease-in-out infinite;
}

@keyframes mmPip {
    50% {
        opacity: .35;
        transform: scale(.7);
    }
}

.mm-foot {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 6px;
}

    .mm-foot > * {
        opacity: 0;
        translate: 0 18px;
        transition: opacity .5s ease calc(var(--fi, 0) * 60ms + 430ms), translate .85s var(--ez-soft) calc(var(--fi, 0) * 60ms + 430ms);
    }

.mobmenu.is-open .mm-foot > * {
    opacity: 1;
    translate: 0 0;
}

.mobmenu.is-closing .mm-foot > * {
    opacity: 0;
    transition-delay: 0s;
    transition-duration: .2s;
}

.mm-foot > :nth-child(2) {
    --fi: 1;
}

.mm-foot > :nth-child(3) {
    --fi: 2;
}

.mm-foot > :nth-child(4) {
    --fi: 3;
}

.mm-cta {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    font-size: 17px;
}

.mm-seg {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 2rem;
    background: var(--m-soft);
}

    .mm-seg::before {
        content: "";
        position: absolute;
        top: 4px;
        bottom: 4px;
        left: 4px;
        width: calc(50% - 4px);
        border-radius: 2rem;
        background: var(--m-thumb);
        box-shadow: 0 1px 8px rgba(0,0,0,.22);
        transform: translateX(calc(var(--p, 0) * 100%));
        transition: transform .5s var(--ez-bounce);
    }

    .mm-seg button {
        position: relative;
        z-index: 1;
        height: 42px;
        border: 0;
        background: transparent;
        color: var(--m-mute);
        font: 650 14px var(--body, system-ui, sans-serif);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 12px;
        cursor: pointer;
        transition: color .25s;
        -webkit-tap-highlight-color: transparent;
    }

        .mm-seg button.is-on {
            color: var(--m-fg);
        }

    .mm-seg svg {
        width: 17px;
        height: 17px;
    }

.mm-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mm-c {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 48px;
    padding: 0 10px;
    border-radius: 2rem;
    background: var(--m-soft);
    color: var(--m-fg);
    text-decoration: none;
    font: 650 14px var(--body, system-ui, sans-serif);
    -webkit-tap-highlight-color: transparent;
}

    .mm-c svg {
        width: 18px;
        height: 18px;
        flex: none;
    }

    .mm-c span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

/* ---- floating tab bar ---- */
.mtabs {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(12px, env(safe-area-inset-left, 0px));
    pointer-events: none;
    transition: transform .62s var(--ez-soft), opacity .3s ease;
}

    .mtabs::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(env(safe-area-inset-bottom, 0px) + 78px);
        pointer-events: none;
        background: linear-gradient(to top, color-mix(in srgb, var(--m-bg) 88%, transparent), transparent);
    }

html.menu-open .mtabs {
    transform: translateY(120%);
    opacity: 0;
}

.mtabs-inner {
    pointer-events: auto;
    position: relative;
    isolation: isolate;
    height: var(--tab-h);
    max-width: 520px;
    margin: 0 auto;
    padding: 0 4px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.14fr 1fr 1fr;
    align-items: center;
    border-radius: 28px;
    background: var(--m-glass);
    border: 1px solid var(--m-edge);
    box-shadow: var(--m-shadow);
    -webkit-backdrop-filter: saturate(1.9) blur(24px);
    backdrop-filter: saturate(1.9) blur(24px);
    transition: transform .75s var(--ez-soft), opacity .45s ease;
}

    .mtabs-inner::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        pointer-events: none;
        background: linear-gradient(180deg, var(--m-hi), transparent 48%);
        opacity: .5;
    }

.mtabs.is-intro .mtabs-inner {
    transform: translateY(135%) scale(.9);
    opacity: 0;
}

.mtabs.is-intro .mtab {
    opacity: 0;
    transform: translateY(18px) scale(.7);
}

.mtab {
    position: relative;
    z-index: 1;
    height: 100%;
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--m-mute);
    font: 650 10px/1.1 var(--body, system-ui, sans-serif);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    transition: color .3s ease, opacity .5s ease calc(var(--ti, 0) * 55ms + 160ms), transform .85s var(--ez-bounce) calc(var(--ti, 0) * 55ms + 160ms);
}

.mtab-ic {
    position: relative;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    transition: transform .55s var(--ez-soft), scale .5s var(--ez-bounce);
}

.mtab:active .mtab-ic {
    scale: .8;
    transition: transform .55s var(--ez-soft), scale .1s ease-out;
}

.mtab-ic .ico {
    grid-area: 1 / 1;
    width: 24px;
    height: 24px;
    transition: opacity .22s ease, transform .6s var(--ez-bounce);
}

.mtab-ic .o {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mtab-ic .f {
    opacity: 0;
    transform: scale(.35) rotate(-24deg);
    fill: currentColor;
    stroke: none;
}

    .mtab-ic .f .hole {
        fill: var(--m-hole);
    }

    .mtab-ic .f .hole-l {
        fill: none;
        stroke: var(--m-hole);
        stroke-width: 1.7;
        stroke-linecap: round;
    }

.mtab.is-active {
    color: var(--m-fg);
}

    .mtab.is-active .mtab-ic .o {
        opacity: 0;
        transform: scale(1.5);
    }

    .mtab.is-active .mtab-ic .f {
        opacity: 1;
        transform: none;
    }

    .mtab.is-active .mtab-lb {
        font-weight: 760;
    }

.mtab-lb {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mtab-blob {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 7px;
    width: 62px;
    height: calc(var(--tab-h) - 16px);
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    background: var(--m-blob);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    transition: opacity .3s ease, width .55s var(--ez-soft);
}

.mtab.is-pop .mtab-ic {
    animation: mtabPop .7s var(--ez-bounce);
}

@keyframes mtabPop {
    0% {
        scale: .7;
    }

    100% {
        scale: 1;
    }
}

.mtab-fab {
    z-index: 2;
    color: var(--m-fg);
}

    .mtab-fab .mfab {
        position: relative;
        width: 56px;
        height: 56px;
        margin-top: -26px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        color: #fff;
        background: radial-gradient(130% 130% at 28% 18%, #8f8eff 0%, #4a48f3 46%, #2d2bb6 100%);
        /*box-shadow: 0 16px 30px -12px rgba(74,72,243,.9), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -4px 10px rgba(20,18,110,.28);*/
        transition: transform .6s var(--ez-bounce), scale .5s var(--ez-bounce), box-shadow .4s ease;
    }

        .mtab-fab .mfab::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            border-radius: 50%;
            background: #4a48f3;
            animation: mfabPulse 3s cubic-bezier(.2,.6,.3,1) infinite;
        }

@keyframes mfabPulse {
    0% {
        transform: scale(1);
        opacity: .42;
    }

    70%, 100% {
        transform: scale(1.62);
        opacity: 0;
    }
}

.mfab-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    pointer-events: none;
    background: var(--m-glass);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}

@keyframes mfabSpin {
    to {
        transform: rotate(360deg);
    }
}

.mtab-fab .mfab svg {
    position: relative;
    width: 26px;
    height: 26px;
}

.mtab-fab:active .mfab {
    scale: .86;
    transition: transform .6s var(--ez-bounce), scale .1s ease-out;
}

.mtab-fab .mtab-lb {
    margin-top: 3px;
    font-weight: 750;
    color: var(--m-fg);
}

@media (prefers-reduced-motion: reduce) {
    .mobmenu.is-open, .mobmenu.is-closing {
        transition: none;
    }

    .mm-bg i, .mfab-ring, .mtab-fab .mfab::after, .mm-link.is-on .mm-no::after {
        animation: none;
    }

    .mm-in, .mm-foot > * {
        transition: none;
    }
}

/* ---- floating WhatsApp button ---- 
.wa-fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.2);
    transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s, visibility .25s;
    -webkit-tap-highlight-color: transparent;
}

    .wa-fab svg {
        width: 30px;
        height: 30px;
    }

    .wa-fab::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #25d366;
        opacity: .5;
        z-index: -1;
        animation: waRing 2.8s ease-out infinite;
    }

@keyframes waRing {
    0% {
        transform: scale(1);
        opacity: .5;
    }

    70%, 100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.wa-fab:hover, .wa-fab:focus-visible {
    transform: scale(1.08);
}

html.menu-open .wa-fab {
    opacity: 0;
    visibility: hidden;
}
    */
/* ---- tunnel: no background dots ---- */
.tun-dots {
    display: none;
}

/* ---- neon line: bright tube core with a tighter coloured halo (the old wide blur read as a wavy haze) ---- */
.typed {
    color: #ecebff;
}

.typed-glow {
    color: #8f8eff;
    text-shadow: 0 0 .03em #ffffff, 0 0 .1em #a9a8ff, 0 0 .26em #4a48f3, 0 0 .6em rgba(74,72,243,.6);
}

@media (prefers-reduced-motion: reduce) {
    .wa-fab::before {
        animation: none;
        display: none;
    }
}
