/* ================================================================
   ABAX Consulting, 2025 Enterprise Design System
   Shared across all pages. Self-contained (only Google Fonts external).
   ================================================================ */

:root {
    --blue: #0091ff;
    --blue-dark: #0078d3;
    --blue-deep: #005bb0;
    --pink: #f20e56;
    --pink-soft: #ff6a93;
    --grey: #a3aec1;
    --ink: #0a1120;
    --ink-2: #0f1a2e;
    --ink-soft: #45526b;
    --muted: #7d8aa0;
    --bg: #ffffff;
    --bg-soft: #f2f5fc;
    --line: rgba(11, 21, 36, 0.08);
    --line-2: rgba(11, 21, 36, 0.12);
    --card: rgba(255, 255, 255, 0.72);
    --shadow-sm: 0 6px 20px rgba(11, 21, 36, 0.06);
    --shadow-md: 0 18px 50px rgba(11, 21, 36, 0.10);
    --shadow-lg: 0 40px 90px rgba(11, 21, 36, 0.16);
    --radius: 16px;
    --radius-lg: 22px;
    --grad: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 55%, #3aa5ff 120%);
    --grad-2: linear-gradient(135deg, var(--blue-deep), var(--blue));
    --grad-text: linear-gradient(100deg, var(--blue-deep), var(--blue) 70%, #2a9bff);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-back: cubic-bezier(0.34, 1.2, 0.64, 1);
    --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }

/* ===== Animated abacus background (canvas injected by JS) ===== */
html { background: #fff; }
#abacus-bg {
    position: fixed; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    filter: blur(1.5px);
    opacity: .9;
}
/* Content sits above the canvas; loader stays on top separately. */
body > *:not(#abacus-bg):not(#loader):not(.progress):not(.gotop):not(.nav) { position: relative; z-index: 1; }
/* Light surfaces become translucent so the beads whisper through them.
   Dark sections keep their solid backdrop (beads fade out there for contrast). */
/* Hero stays clean: opaque backdrop hides the abacus behind it entirely. */
.hero-bg { background: var(--bg-soft) !important; }
.hero { isolation: isolate; }
.marquee { background: rgba(255, 255, 255, 0.72) !important; backdrop-filter: blur(2px); }
footer.site { background: rgba(242, 245, 252, 0.72); backdrop-filter: blur(2px); }
.section[style*="bg-soft"] { background-color: rgba(242, 245, 252, 0.72) !important; }
/* keep the hero grid off, the abacus is the sole backdrop motif now */
.hero-grid { display: none; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink-soft);
    background: transparent;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
/* When the mobile drawer locks scroll, JS pins the body via top:-scrollY so the
   page never jumps. Only fix position on small screens (drawer context). */
@media (max-width: 940px) {
    body.no-scroll { position: fixed; left: 0; right: 0; width: 100%; }
}

h1, h2, h3, h4, .brand-font { font-family: 'Sora', sans-serif; color: var(--ink); line-height: 1.12; }
a { color: var(--blue-dark); text-decoration: none; transition: color .2s var(--ease); }
img { max-width: 100%; display: block; }
::selection { background: rgba(0, 145, 255, .22); }

.wrap { width: min(1180px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(880px, 92vw); margin-inline: auto; }

/* accessible focus */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid rgba(0, 145, 255, .45); outline-offset: 2px; border-radius: 6px;
}

/* ---------- Shared atoms ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font: 600 .78rem/1 'Inter', sans-serif; letter-spacing: .16em; text-transform: uppercase;
    color: var(--blue-dark); padding: .5rem .9rem; border-radius: 100px;
    background: rgba(0, 145, 255, .08); border: 1px solid rgba(0, 145, 255, .16);
}
.eyebrow.pink { color: var(--blue-deep); background: rgba(0, 91, 176, .07); border-color: rgba(0, 91, 176, .18); }
.eyebrow.light { color: #6fd0ff; background: rgba(0,145,255,.14); border-color: rgba(0,145,255,.3); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-head { max-width: 740px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.15rem); font-weight: 700; margin: 1rem 0 .8rem; letter-spacing: -.02em; }
.section-head p { font-size: 1.12rem; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
    --pull-x: 0px; --pull-y: 0px;
    display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
    font: 600 1rem 'Inter', sans-serif; padding: .95rem 1.6rem; border-radius: 100px;
    border: 0; position: relative; isolation: isolate; overflow: hidden; text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s;
    transform: translate(var(--pull-x), var(--pull-y));
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.btn-primary { background: var(--grad); color: #fff; background-size: 180% 180%; box-shadow: 0 14px 34px rgba(0, 120, 211, .32); }
.btn-primary:hover { box-shadow: 0 20px 46px rgba(0, 120, 211, .45); color: #fff; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--blue-dark); border-color: rgba(0,145,255,.4); transform: translate(var(--pull-x), calc(var(--pull-y) - 2px)); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--ink-2); transform: translate(var(--pull-x), calc(var(--pull-y) - 2px)); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.06rem; }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow-md); }
.btn-white:hover { color: var(--blue-dark); transform: translate(var(--pull-x), calc(var(--pull-y) - 2px)); }

/* ================= LOADER (unique) ================= */
#loader {
    position: fixed; inset: 0; z-index: 9999; background: var(--ink);
    display: grid; place-items: center; transition: opacity .4s var(--ease), visibility .4s;
}
/* Held invisible until JS decides to reveal it. On fast returning loads it is
   dismissed while still in this state, so it never flashes. */
#loader.pending { opacity: 0; visibility: hidden; }
#loader.done { opacity: 0; visibility: hidden; }
/* Returning visitors (flagged pre-paint by an inline script): the loader is
   invisible from the very first frame, so a fast load shows nothing at all. JS
   reveals it only if loading drags on. */
html.returning #loader { opacity: 0; visibility: hidden; transition: none; }
html.returning #loader.revealing { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility .3s; }
.loader-core { text-align: center; }
.loader-ring { position: relative; width: 92px; height: 92px; margin: 0 auto 1.4rem; }
.loader-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.loader-ring .track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 4; }
.loader-ring .bar { fill: none; stroke: url(#lgrad); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset .2s linear; }
.loader-ring .mark {
    position: absolute; inset: 0; display: grid; place-items: center;
}
.loader-ring .mark img {
    width: 46px; height: 46px; object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,145,255,.35));
    animation: markPulse 2.4s var(--ease) infinite;
}
@keyframes markPulse { 0%,100%{ transform: scale(1); opacity: 1 } 50%{ transform: scale(1.06); opacity: .88 } }
.loader-pct { font: 600 .82rem/1 'Inter'; letter-spacing: .3em; color: #6f7d94; text-transform: uppercase; }
.loader-word { overflow: hidden; height: 1.2em; margin-top: .5rem; }
.loader-word span { display: block; font: 600 .9rem 'Sora'; color: #9fb0c9; animation: loaderRoll 1.5s steps(1) infinite; }
@keyframes loaderRoll {
    0%,25% { transform: translateY(0); }
    33%,58% { transform: translateY(-1.2em); }
    66%,91% { transform: translateY(-2.4em); }
    100% { transform: translateY(-3.6em); }
}

/* ================= NAV ================= */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    display: flex; align-items: center;
    transition: height .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
    transform: translateZ(0); will-change: height;   /* stable compositing on mobile */
}
.nav.scrolled {
    background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 6px 30px rgba(11,21,36,.07); height: 64px;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: min(1180px, 94vw); }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a:not(.btn) { color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: .5rem .85rem; border-radius: 10px; display: inline-flex; align-items: center; gap: .35rem; }
.nav-links a:not(.btn)::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
    background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { padding: .6rem 1.2rem; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; z-index: 101; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* dropdown */
.has-drop .drop {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
    background: rgba(255,255,255,.96); backdrop-filter: blur(20px); border: 1px solid var(--line); border-radius: 16px;
    padding: .5rem; min-width: 240px; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: .28s var(--ease);
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: flex !important; gap: .7rem; padding: .7rem .8rem !important; border-radius: 10px; color: var(--ink) !important; font-weight: 500; }
.drop a::after { display: none; }
.drop a:hover { background: rgba(0,145,255,.08); }
.drop a small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.drop .di { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.drop .di svg { width: 17px; height: 17px; }

/* dimmed backdrop behind the mobile menu */
.nav-backdrop {
    position: fixed; inset: 0; z-index: 99; background: rgba(11,21,36,.68);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* ---- Drawer header (logo + close), injected by JS; desktop-hidden ---- */
.nav-drawer-head { display: none; }
.nav-close { display: none; }

@media (max-width: 940px) {
    /* On mobile the nav is always solid & visible so it never disappears on scroll. */
    .nav {
        height: 62px;
        background: rgba(255,255,255,.94);
        -webkit-backdrop-filter: blur(16px) saturate(1.4);
        backdrop-filter: blur(16px) saturate(1.4);
        box-shadow: 0 1px 0 rgba(11,21,36,.06), 0 6px 22px rgba(11,21,36,.06);
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 100;
        padding-top: env(safe-area-inset-top);
        height: calc(62px + env(safe-area-inset-top));
        /* Must NOT establish a containing block, or the fixed drawer (a child)
           would be clipped to the 62px bar instead of filling the viewport. */
        transform: none;
        will-change: auto;
    }
    .nav.scrolled {
        height: calc(56px + env(safe-area-inset-top));
        background: rgba(255,255,255,.97);
        box-shadow: 0 2px 20px rgba(11,21,36,.1);
    }
    .nav .wrap {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: min(1180px, 100vw);
        padding-inline: max(1.1rem, env(safe-area-inset-left)) max(1.1rem, env(safe-area-inset-right));
    }
    .nav-logo img { height: 30px; }

    /* Hamburger button */
    .nav-toggle {
        display: grid;
        place-content: center;
        width: 46px; height: 46px;
        margin-right: -.35rem;
        border-radius: 12px;
        position: relative;
        z-index: 103;
        -webkit-tap-highlight-color: transparent;
        transition: background .2s var(--ease);
    }
    .nav-toggle:active { background: rgba(11,21,36,.05); }
    .nav-toggle span { width: 22px; }
    /* When the drawer is open, the drawer's own close (X) takes over — hide the
       hamburger so the two icons never overlap in the top-right corner. */
    .nav-toggle.open { opacity: 0; pointer-events: none; }

    /* ============ Mobile menu drawer ============ */
    .nav-links {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        /* Explicit viewport height so the drawer always fills the screen even if
           an ancestor establishes a containing block (dvh handles mobile URL bars). */
        height: 100vh;
        height: 100dvh;
        width: min(360px, 88vw);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: -14px 0 44px rgba(11,21,36,.22);
        transform: translateX(105%);
        transition: transform .4s cubic-bezier(0.32, 0.72, 0, 1);
        z-index: 102;
        padding: 0 0 max(1.4rem, env(safe-area-inset-bottom));
        margin: 0;
        list-style: none;
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        -webkit-overflow-scrolling: touch;
        will-change: transform;
    }
    .nav-links.open { transform: translateX(0); }

    /* Drawer header: brand + close button (built in JS) */
    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: max(1.1rem, env(safe-area-inset-top)) 1.3rem 1rem;
        border-bottom: 1px solid var(--line);
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
        flex-shrink: 0;
    }
    .nav-drawer-head .dh-label {
        font: 700 .72rem/1 'Inter', sans-serif;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--muted);
    }
    .nav-close {
        display: grid;
        place-content: center;
        width: 42px; height: 42px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        color: var(--ink);
        cursor: pointer;
        flex: none;
        -webkit-tap-highlight-color: transparent;
        transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
    }
    .nav-close:active { background: var(--bg-soft); transform: scale(.94); }
    .nav-close svg { width: 20px; height: 20px; }

    .nav-links > li {
        flex-shrink: 0;
        border-bottom: 1px solid #f0f5fa;
    }

    .nav-links a:not(.btn) {
        padding: 1rem 1.4rem !important;
        font-size: 1.02rem;
        font-weight: 500;
        border-radius: 0;
        color: var(--ink);
        width: 100%;
        display: block;
        min-height: 52px;
        transition: background .18s ease, color .18s ease;
    }
    .nav-links a:not(.btn):active { background: #f2f6fb; }
    .nav-links a:not(.btn)::after { display: none; }
    .nav-links a[aria-current="page"] {
        color: var(--blue);
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--blue);
    }

    .nav-links .btn {
        display: flex;
        width: auto;
        box-sizing: border-box;
        justify-content: center;
        align-items: center;
        margin: 1.5rem 1.4rem .4rem;
        padding: 1rem 1.2rem;
        font-size: 1rem;
        font-weight: 600;
        flex-shrink: 0;
    }
    /* the last <li> holds the CTA — drop its divider */
    .nav-links > li:has(.btn) { border-bottom: none; }

    /* ---- Specialties accordion ---- */
    /* Stack the parent link and its drop panel vertically so the panel follows
       directly under the link (not floating). The li is already position:relative. */
    .nav-links > li.has-drop {
        display: flex;
        flex-direction: column;
    }
    .has-drop > a {
        justify-content: space-between;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 1rem 1.4rem !important;
    }
    .has-drop > a svg {
        width: 18px; height: 18px;
        color: var(--muted);
        transition: transform .25s var(--ease), color .25s var(--ease);
        flex-shrink: 0;
    }
    .has-drop.open-sub > a { color: var(--blue); font-weight: 600; }
    .has-drop.open-sub > a svg { transform: rotate(180deg); color: var(--blue); }

    /* In the drawer the drop is NOT a floating popover — it flows in-line right
       under its parent link. Every desktop popover property is explicitly reset
       (position/left/top/transform/min-width) so it can never drift left or
       overlay the page behind the drawer. */
    .has-drop .drop {
        position: relative !important;
        inset: auto !important;
        top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
        transform: none !important;
        visibility: visible !important;
        width: 100% !important;
        min-width: 0 !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #f7fafd;
        border-radius: 0;
        padding: 0;
        margin: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height .35s var(--ease), opacity .25s ease;
    }
    .has-drop.open-sub .drop {
        max-height: 600px;
        opacity: 1;
        padding: 0.3rem 0;
    }

    .drop a {
        padding: 0.85rem 1.4rem 0.85rem 1.5rem !important;
        min-height: 52px;
        border-left: 3px solid transparent;
        margin: 0;
        border-radius: 0 !important;
        gap: 0.75rem;
        align-items: center;
        display: flex !important;
        font-size: 0.96rem;
        font-weight: 500;
        color: var(--ink);
        width: 100%;
        box-sizing: border-box;
        transition: background .2s ease, border-color .2s ease;
    }
    .drop a:active {
        background: rgba(0, 145, 255, .08);
        border-left-color: var(--blue);
    }
    /* the text column: allow it to shrink and wrap instead of overflowing the panel */
    .drop a > span:not(.di) { min-width: 0; flex: 1 1 auto; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
    .drop a small { display: block; font-size: 0.79rem; margin-top: 2px; line-height: 1.25; color: var(--muted); white-space: normal; }
    .drop .di {
        width: 34px; height: 34px;
        flex-shrink: 0;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .drop .di svg { width: 17px; height: 17px; }
}

@media (max-width: 420px) {
    .nav-links { width: 100vw; max-width: 100vw; }
}

/* ================= SCROLL PROGRESS + GO TOP (unique) ================= */
/* Top scroll-progress bar removed — the circular ring on the back-to-top button
   is now the only scroll-progress indicator. */

.gotop {
    position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; z-index: 150; cursor: pointer;
    border: 0; background: none; opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8);
    transition: opacity .4s var(--ease), transform .4s var(--ease-back);
}
.gotop.show { opacity: 1; visibility: visible; transform: none; }
.gotop .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.gotop .ring .t { fill: rgba(255,255,255,.85); stroke: var(--line); stroke-width: 2.5; }
.gotop .ring .p { fill: none; stroke: url(#gtgrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 163; stroke-dashoffset: 163; transition: stroke-dashoffset .1s linear; }
.gotop .arrow { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue-dark); transition: transform .3s var(--ease-back); }
.gotop:hover .arrow { transform: translateY(-3px); }
.gotop::before { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: var(--shadow-md); background: #fff; z-index: -1; }

/* ================= REVEAL ================= */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: .08s; } [data-reveal].d2 { transition-delay: .16s; }
[data-reveal].d3 { transition-delay: .24s; } [data-reveal].d4 { transition-delay: .32s; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }

/* ================= HERO ================= */
.hero { position: relative; padding: clamp(9rem, 15vw, 12rem) 0 clamp(5rem, 9vw, 7rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--bg-soft); }
.hero-bg::before, .hero-bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .8; animation: floatB 20s ease-in-out infinite; }
.hero-bg::before { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(0,145,255,.16), transparent 65%); top: -12vw; right: -8vw; }
.hero-bg::after { width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(0,91,176,.12), transparent 65%); bottom: -14vw; left: -6vw; animation-delay: -10s; }
.hero-grid {
    position: absolute; inset: 0; z-index: -1; opacity: .55;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 75%);
}
@keyframes floatB { 0%,100%{transform:translate(0,0)} 50%{transform:translate(2rem,-1.5rem)} }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* two-column hero (original layout) */
.hero-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.03em; margin: 1.2rem 0 1.2rem; }
.hero-copy p.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--ink-soft); max-width: 46ch; margin: 0 0 2rem; }
.hero-copy .hero-cta { justify-content: flex-start; }
.hero-copy .hero-trust { margin-top: 2.2rem; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0,91,176,.22)); }
.hero-visual img.floating { animation: bob 6s ease-in-out infinite; }
.hero-badge {
    position: absolute; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border: 1px solid var(--line);
    border-radius: 16px; padding: .8rem 1.1rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .7rem;
    font-size: .9rem; font-weight: 600; color: var(--ink);
}
.hero-badge small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.hero-badge .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.hero-badge.b1 { top: 8%; left: -4%; animation: bob 6s ease-in-out infinite; }
.hero-badge.b2 { bottom: 6%; right: -3%; animation: bob 7s ease-in-out .8s infinite; }
@media (max-width: 860px) {
    .hero { padding-top: clamp(7rem, 20vw, 9rem); }
    .hero-split { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-copy { max-width: 100%; }
    .hero-copy h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
    .hero-copy p.lead { max-width: 40ch; margin-inline: auto; }
    .hero-copy .hero-cta { justify-content: center; }
    .hero-copy .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
    .hero-copy .hero-trust { justify-content: center; gap: .5rem 1.2rem; }
    .hero-visual { max-width: 420px; margin: 0 auto; }
    .hero-badge.b1 { left: 2%; } .hero-badge.b2 { right: 2%; }
    /* reveal transforms must never create horizontal scroll on small screens */
    [data-reveal="right"], [data-reveal="left"] { transform: translateY(24px); }
}
@media (max-width: 560px) {
    /* Tighter, cleaner hero on phones — no cramped CTAs, no overflowing badges. */
    .hero { padding-top: clamp(6rem, 24vw, 8rem); padding-bottom: 3.2rem; }
    .hero-copy h1 { line-height: 1.08; margin: 1rem 0; }
    .hero-copy p.lead { font-size: 1.02rem; }
    .hero-copy .hero-cta { flex-direction: column; align-items: stretch; gap: .7rem; }
    .hero-copy .hero-cta .btn { width: 100%; }
    .hero-copy .hero-trust {
        margin-top: 1.8rem;
        justify-content: center;
        gap: .4rem 1rem;
        font-size: .85rem;
    }
    .hero-visual { max-width: 340px; }
    /* Keep floating badges from spilling off-screen on the smallest devices. */
    .hero-badge { font-size: .82rem; padding: .6rem .8rem; }
    .hero-badge .dot { width: 30px; height: 30px; }
    .hero-badge.b1 { left: -1%; top: 4%; }
    .hero-badge.b2 { right: -1%; bottom: 2%; }
}
/* global guard: nothing overflows the viewport width */
.wrap, .wrap-narrow { max-width: 100%; }

/* ================= MARQUEE (seamless, JS-cloned) ================= */
.marquee { border-block: 1px solid var(--line); background: #fff; padding: 1.4rem 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee-track { display: flex; width: max-content; align-items: center; will-change: transform; animation: scrollX 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font: 600 .98rem 'Sora'; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: .7rem; padding: 0 1.9rem; }
.marquee-item b { color: var(--ink-soft); font-weight: 600; }
.marquee-item .dotsep { width: 5px; height: 5px; border-radius: 50%; background: var(--grey); }
/* translate by exactly one copy's width; JS sets --half so two identical copies loop seamlessly */
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--half, 50%))); } }

/* ================= CARDS ================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem;
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card:hover::after { opacity: 1; }
.card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 1.3rem; background: var(--grad); box-shadow: 0 12px 26px rgba(0,120,211,.28); }
.card h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
.card ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.card li { display: flex; gap: .6rem; font-size: .96rem; }
.card li svg { width: 18px; height: 18px; color: var(--blue); flex: none; margin-top: 3px; }
@media (max-width: 900px) { .cards, .cards.two { grid-template-columns: 1fr; } }

/* checkmark helper */
.chk { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }

/* ================= STATS ================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 2.2rem 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.stat .num { font: 800 clamp(2.3rem, 5vw, 3.1rem) 'Sora'; letter-spacing: -.02em; display: inline-block; }
.stat p { margin: .4rem 0 0; color: var(--muted); font-weight: 500; font-size: .95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ================= INDUSTRIES ================= */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ind {
    display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem 1.4rem; border-radius: 16px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
    position: relative; overflow: hidden;
}
.ind::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.ind:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.ind:hover::before { transform: scaleX(1); }
.ind .ii { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--blue-dark); background: rgba(0,145,255,.09); }
.ind .ii svg { width: 24px; height: 24px; }
.ind h4 { margin: 0; font-size: 1.02rem; }
.ind p { margin: 0; font-size: .86rem; color: var(--muted); }
@media (max-width: 900px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ind-grid { grid-template-columns: 1fr; } }

/* ================= SPECIALTIES (3 pillars) ================= */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
    position: relative; border-radius: var(--radius-lg); padding: 2.4rem; overflow: hidden; color: #fff;
    min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
    box-shadow: var(--shadow-md); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.pillar:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.pillar::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .95; }
.pillar.p1::before { background: linear-gradient(155deg, #0a1120, #16324f); }
.pillar.p2::before { background: linear-gradient(155deg, #0a1120, var(--blue-deep)); }
.pillar.p3::before { background: linear-gradient(155deg, #0a1120, #0b6ba8); }
.pillar .pnum { position: absolute; top: 1.6rem; right: 1.8rem; font: 800 4rem 'Sora'; color: rgba(255,255,255,.12); line-height: 1; }
.pillar .pico { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.14); display: grid; place-items: center; margin-bottom: auto; }
.pillar .pico svg { width: 28px; height: 28px; color: #fff; }
.pillar h3 { color: #fff; font-size: 1.5rem; margin: 1.6rem 0 .6rem; }
.pillar p { color: rgba(255,255,255,.82); margin: 0 0 1.2rem; font-size: .98rem; }
.pillar .plink { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; font-size: .95rem; }
.pillar .plink svg { width: 16px; transition: transform .3s var(--ease); }
.pillar:hover .plink svg { transform: translateX(5px); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* ================= DARK SECTION ================= */
.dark { background: var(--ink); color: #e7edf7; position: relative; overflow: hidden; }
.dark::before { content: ''; position: absolute; inset: 0; opacity: .5; background: radial-gradient(60vw 50vw at 80% 0%, rgba(0,145,255,.26), transparent 60%), radial-gradient(50vw 50vw at 10% 100%, rgba(242,14,86,.2), transparent 60%); }
.dark .wrap, .dark .wrap-narrow { position: relative; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .section-head p { color: #9fb0c9; }

/* migration flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.6rem; align-items: stretch; }
.flow-card { border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(255,255,255,.1); }
.flow-card.old { background: rgba(255,255,255,.03); }
.flow-card.new { background: linear-gradient(160deg, rgba(0,145,255,.16), rgba(242,14,86,.1)); border-color: rgba(0,145,255,.35); box-shadow: 0 30px 70px rgba(0,145,255,.15); }
.flow-card h3 { font-size: 1.35rem; margin: 0 0 .3rem; }
.flow-card .tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.flow-card.old .tag { color: var(--pink-soft); }
.flow-card.new .tag { color: #6fd0ff; }
.flow-card ul { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .8rem; }
.flow-card li { display: flex; gap: .7rem; font-size: .98rem; color: #c3cede; }
.flow-card.old li { color: #8b97ab; }
.flow-card li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.flow-arrow { display: grid; place-items: center; }
.flow-arrow .circle { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 12px 34px rgba(0,145,255,.5); animation: pulseC 2.6s var(--ease) infinite; }
@keyframes pulseC { 0%,100%{box-shadow:0 12px 34px rgba(0,145,255,.5)} 50%{box-shadow:0 12px 44px rgba(242,14,86,.55)} }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow-arrow .circle { transform: rotate(90deg); } }

.no-license { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.15rem 'Sora'; color: #fff; margin-bottom: 1.4rem; }
.no-license s { color: var(--pink-soft); text-decoration-thickness: 2px; }

/* ================= TIMELINE ================= */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--pink)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 2.6rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .dot { position: absolute; left: -3rem; top: 2px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); display: grid; place-items: center; font: 700 .8rem 'Sora'; color: var(--blue-dark); box-shadow: 0 0 0 6px rgba(0,145,255,.08); }
.tl-item h3 { font-size: 1.25rem; margin: 0 0 .2rem; }
.tl-item .step-tag { color: var(--pink); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.tl-item p { margin: .5rem 0 0; color: var(--muted); }

/* ================= FEATURE SPLIT ================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.rev .split-media { order: -1; }
.split-media { border-radius: var(--radius-lg); overflow: visible; box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; }
.split-media img { border-radius: inherit; }
.split-media img { width: 100%; }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 1rem 0 1rem; }
.split ul { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .9rem; }
.split li { display: flex; gap: .8rem; }
.split li b { color: var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }

/* ================= ADDONS ================= */
.addons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.addon { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; box-shadow: var(--shadow-md); isolation: isolate; }
.addon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.addon::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,21,36,.92) 8%, rgba(11,21,36,.25) 60%, transparent); }
.addon:hover img { transform: scale(1.07); }
.addon .body { padding: 1.8rem; color: #fff; }
.addon .body .step-tag { color: #6fd0ff; font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.addon h3 { color: #fff; font-size: 1.5rem; margin: .3rem 0 .4rem; }
.addon p { margin: 0 0 .8rem; color: #c3cede; font-size: .95rem; }
.addon .more { display: inline-flex; align-items: center; gap: .4rem; color: #fff; font-weight: 600; font-size: .92rem; }
.addon .more svg { width: 16px; transition: transform .3s var(--ease); }
.addon:hover .more svg { transform: translateX(4px); }
@media (max-width: 760px) { .addons { grid-template-columns: 1fr; } }

/* ================= PRICING ================= */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price {
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2.4rem; box-shadow: var(--shadow-sm); position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.price:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price.featured { background: var(--ink); color: #d7e0ee; border-color: transparent; box-shadow: var(--shadow-lg); }
.price.featured h3, .price.featured .price-tag { color: #fff; }
.price.featured .price-li { color: #c3cede; }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad-2); color: #fff; font: 700 .72rem 'Inter'; letter-spacing: .12em; text-transform: uppercase; padding: .4rem 1rem; border-radius: 100px; box-shadow: 0 8px 20px rgba(242,14,86,.35); }
.price h3 { font-size: 1.35rem; margin: 0 0 .4rem; }
.price .price-sub { color: var(--muted); font-size: .92rem; margin: 0 0 1.4rem; min-height: 2.6em; }
.price.featured .price-sub { color: #9fb0c9; }
.price-tag { font: 800 2.2rem 'Sora'; color: var(--ink); letter-spacing: -.02em; }
.price-tag small { display: block; font: 500 .82rem 'Inter'; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.price-li { display: flex; gap: .7rem; font-size: .95rem; }
.price-li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--blue); }
.price.featured .price-li svg { color: #6fd0ff; }
.price .btn { margin-top: auto; width: 100%; justify-content: center; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

/* ================= CTA BAND ================= */
.cta-band { position: relative; margin-top: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; text-align: center; color: #fff; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, var(--blue-deep), var(--blue) 45%, var(--pink)); }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .4; background: radial-gradient(40vw 40vw at 20% 20%, rgba(255,255,255,.3), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 1rem; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 2rem; }
.cta-band .btn-white { color: var(--blue-deep); }

/* ================= FAQ ================= */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 1rem; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.qa summary { list-style: none; cursor: pointer; padding: 1.3rem 1.5rem; font: 600 1.08rem 'Sora'; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .plus { width: 26px; height: 26px; flex: none; position: relative; }
.qa summary .plus::before, .qa summary .plus::after { content: ''; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .3s var(--ease); }
.qa summary .plus::before { top: 12px; left: 3px; right: 3px; height: 2px; }
.qa summary .plus::after { left: 12px; top: 3px; bottom: 3px; width: 2px; }
.qa[open] summary .plus::after { transform: scaleY(0); }
.qa .qa-body { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* ================= CONTACT ================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow-md); backdrop-filter: blur(10px); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: .4rem; }
.field input, .field textarea, .field select { width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 400 1rem 'Inter'; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,145,255,.12); }
.contact-side h2 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; }
.contact-side .lead { font-size: 1.12rem; color: var(--muted); }
.contact-info { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-info a { display: flex; align-items: center; gap: .9rem; color: var(--ink); font-weight: 600; }
.contact-info .ci { width: 44px; height: 44px; border-radius: 12px; background: rgba(0,145,255,.1); color: var(--blue-dark); display: grid; place-items: center; flex: none; }
.contact-info small { display: block; font-weight: 400; color: var(--muted); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ================= PAGE HERO (sub pages) ================= */
.phero { position: relative; padding: clamp(8rem, 14vw, 11rem) 0 clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; text-align: center; }
.phero .wrap { position: relative; }
.phero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; letter-spacing: -.03em; margin: 1.2rem auto 1.1rem; max-width: 16ch; }
.phero p.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 52ch; margin: 0 auto 2rem; }
.phero .hero-cta { justify-content: center; }
.breadcrumb { display: inline-flex; gap: .5rem; font-size: .85rem; color: var(--muted); align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue-dark); }

.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.4rem; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.hero-trust b { color: var(--ink); font-family: 'Sora'; }

/* ================= LEGAL DOC ================= */
.legal { max-width: 820px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: .95rem; margin: 0 0 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 .8rem; scroll-margin-top: 90px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .callout {
    background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue);
    border-radius: 12px; padding: 1.1rem 1.3rem; margin: 0 0 1.4rem; box-shadow: var(--shadow-sm); font-size: .96rem;
}
.legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ================= FOOTER ================= */
footer.site { background: var(--bg-soft); padding: 4rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid img { height: 34px; margin-bottom: 1rem; }
.foot-grid p { color: var(--muted); font-size: .95rem; max-width: 32ch; }
.foot-grid h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0 0 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.foot-grid a { color: var(--muted); font-size: .95rem; }
.foot-grid a:hover { color: var(--blue-dark); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.foot-bottom p { margin: 0; color: var(--muted); font-size: .9rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.socials a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

/* ================= FORM STATES (Formspree AJAX) ================= */
.form-status { border-radius: 12px; padding: .85rem 1rem; margin-top: 1rem; font-size: .95rem; font-weight: 500; }
.form-status.is-error { background: rgba(242,14,86,.08); border: 1px solid rgba(242,14,86,.25); color: #b00840; }
.form-status.is-ok { background: rgba(0,145,255,.08); border: 1px solid rgba(0,145,255,.25); color: var(--blue-deep); }
.form-done { text-align: center; padding: 1.5rem .5rem; }
.form-done-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; margin: 0 auto 1.1rem; box-shadow: var(--shadow-md); }
.form-done-ico svg { width: 30px; height: 30px; }
.form-done h3 { font-size: 1.4rem; margin: 0 0 .5rem; }
.form-done p { color: var(--muted); margin: 0; font-size: 1.02rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin: .1rem 0 1rem; }
.check-grid { display: grid; gap: .55rem; margin-bottom: 1.1rem; }
.check-grid label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.check-grid input { width: auto; margin-top: .2rem; accent-color: var(--blue); }

/* ================= MULTI-STEP FORM (stepper) ================= */
.stepper-head { margin-bottom: 1.6rem; }
.stepper-bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.stepper-bar > span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width .4s var(--ease); }
.stepper-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: .7rem; }
.stepper-meta .s-count { font-family: 'Sora'; font-weight: 700; font-size: .85rem; color: var(--blue-dark); letter-spacing: .04em; }
.stepper-meta .s-title { font-weight: 600; color: var(--ink); font-size: .95rem; }
.step { display: none; animation: stepIn .35s var(--ease); }
.step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.step > h4 { font-size: 1.15rem; margin: 0 0 .3rem; letter-spacing: -.01em; }
.step > .step-sub { color: var(--muted); font-size: .92rem; margin: 0 0 1.2rem; }
.stepper-nav { display: flex; gap: .8rem; margin-top: 1.4rem; }
.stepper-nav .btn { flex: 1; justify-content: center; }
.btn-back { background: transparent; border: 1px solid var(--line-2); color: var(--ink-soft); }
.btn-back:hover { border-color: var(--blue); color: var(--blue-dark); }
.hint { font-size: .82rem; color: var(--muted); margin: -.4rem 0 1rem; }
/* radio pills for approach choice */
.pill-choice { display: grid; gap: .6rem; margin-bottom: 1.1rem; }
.pill-choice label {
    display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line-2);
    border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; font-size: .95rem; color: var(--ink-soft);
}
.pill-choice label:hover { border-color: var(--blue); }
.pill-choice input { width: auto; margin-top: .15rem; accent-color: var(--blue); flex: none; }
.pill-choice input:checked + span { color: var(--ink); font-weight: 600; }
.pill-choice label:has(input:checked) { border-color: var(--blue); background: rgba(0,145,255,.05); }
.pill-choice small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .1rem; }

/* ================= BLOG ================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }
.post-card {
    display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .thumb { height: 170px; background: var(--grad-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.post-card .thumb.alt { background: linear-gradient(135deg, var(--ink-2), var(--blue-deep)); }
.post-card .thumb.pink { background: linear-gradient(135deg, var(--pink), var(--blue)); }
.post-card .thumb svg { width: 54px; height: 54px; opacity: .9; }
.post-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-tag { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--blue-dark); margin-bottom: .7rem; }
.post-card h3 { font-size: 1.22rem; line-height: 1.3; margin: 0 0 .6rem; letter-spacing: -.01em; }
.post-card p { color: var(--muted); font-size: .96rem; margin: 0 0 1.1rem; flex: 1; }
.post-meta { display: flex; align-items: center; gap: .8rem; font-size: .82rem; color: var(--muted); }
.post-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.post-card .plink { margin-top: 1rem; }
@media (max-width: 680px) { .feat-inner { grid-template-columns: 1fr !important; } .feat-inner .thumb { min-height: 160px; } }

/* Blog article body */
.article { max-width: 760px; margin: 0 auto; }
.article .kicker { display: flex; gap: .8rem; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1.2rem; }
.article .lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 2rem; }
.article .cover { width: 100%; height: clamp(220px, 40vw, 400px); border-radius: var(--radius-lg); background: var(--grad-2); margin: 0 0 2.5rem; display: grid; place-items: center; box-shadow: var(--shadow-md); overflow: hidden; }
.article .cover svg { width: 80px; height: 80px; opacity: .9; }
.article .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article h2 { font-size: 1.6rem; margin: 2.6rem 0 1rem; letter-spacing: -.01em; }
.article h3 { font-size: 1.25rem; margin: 2rem 0 .8rem; }
.article p { font-size: 1.08rem; line-height: 1.8; color: var(--ink-soft); margin: 0 0 1.3rem; }
.article ul, .article ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.article li { font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: .6rem; }
.article blockquote {
    margin: 2rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--blue);
    background: var(--card); border-radius: 0 12px 12px 0; font-size: 1.15rem; font-style: italic; color: var(--ink);
}
.article .byline { display: flex; align-items: center; gap: .9rem; margin: 2.5rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article .byline .av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-family: 'Sora'; flex: none; }
.article .byline b { display: block; color: var(--ink); }
.article .byline span { color: var(--muted); font-size: .9rem; }

/* ---- Share buttons (injected on blog posts by abax-share.js) ---- */
.article-share { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 2.5rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article-share .share-label { font-weight: 600; color: var(--ink); font-size: .92rem; margin-right: .3rem; }
.article-share a, .article-share button {
    width: 42px; height: 42px; min-width: 42px; flex: 0 0 42px; border-radius: 12px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s, background .2s, border-color .2s;
    -webkit-appearance: none; appearance: none; padding: 0; overflow: hidden;
}
.article-share a:hover, .article-share button:hover { transform: translateY(-3px); color: #fff; background: var(--grad); border-color: transparent; }
.article-share a svg, .article-share button svg { width: 19px !important; height: 19px !important; flex: none; }

/* copied state: button flips to a confident green with a check */
.article-share .copy-btn.is-copied { background: #0a8a4a; border-color: transparent; color: #fff; transform: translateY(-3px); }
.article-share .copy-btn.is-copied:hover { background: #0a8a4a; }

/* hover tooltips on each share button (data-tip) */
.article-share [data-tip] { position: relative; }
.article-share [data-tip]::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(4px);
    background: var(--ink); color: #fff; font: 600 .74rem 'Inter'; letter-spacing: .01em;
    padding: .32rem .6rem; border-radius: 7px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 5;
}
.article-share [data-tip]::before {
    content: ''; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent; border-top-color: var(--ink);
    opacity: 0; pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 5;
}
.article-share [data-tip]:hover::after, .article-share [data-tip]:focus-visible::after,
.article-share [data-tip]:hover::before, .article-share [data-tip]:focus-visible::before {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* big, unmissable floating "Link copied!" toast (bottom-center of screen) */
.abax-copy-toast {
    position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--ink); color: #fff; font: 600 .98rem 'Inter';
    padding: .8rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-lg);
    opacity: 0; pointer-events: none; z-index: 9998; transition: opacity .25s var(--ease), transform .25s var(--ease-back);
}
.abax-copy-toast svg { width: 20px; height: 20px; color: #38d996; }
.abax-copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= CASE STUDY / TIMELINE ================= */
.cs-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; margin: 2.5rem 0; }
.cs-metric { text-align: center; padding: 1.8rem 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.cs-metric .n { font-family: 'Sora'; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.02em; }
.cs-metric p { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }

.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 0; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--pink)); opacity: .35; }
.tl-item { position: relative; padding: 0 0 2.6rem 4.2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 12px; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); font-family: 'Sora'; font-weight: 700; font-size: .9rem; z-index: 1; }
.tl-phase { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--blue-dark); }
.tl-item h3 { font-size: 1.35rem; margin: .3rem 0 .7rem; letter-spacing: -.01em; }
.tl-item p { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.75; margin: 0 0 1rem; }
.tl-item .card { padding: 1.6rem 1.8rem; }
.tl-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tl-tags span { font-size: .78rem; font-weight: 600; color: var(--blue-dark); background: rgba(0,145,255,.1); padding: .35rem .7rem; border-radius: 999px; }
.tl-outcome { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; padding: .9rem 1.1rem; background: rgba(0,145,255,.06); border-radius: 10px; font-size: .98rem; color: var(--ink); }
.tl-outcome svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--blue-dark); }
@media (max-width: 560px) { .tl-item { padding-left: 3.4rem; } .timeline::before { left: 21px; } .tl-dot { left: 6px; width: 30px; height: 30px; } }

/* Financial ledger table */
.ledger { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .98rem; }
.ledger th, .ledger td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.ledger th { font-family: 'Sora'; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ledger td.pos { color: #0a8a4a; font-weight: 600; }
.ledger td.neg { color: #b00840; font-weight: 600; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger tfoot td { font-weight: 700; color: var(--ink); border-top: 2px solid var(--line); }
.ledger-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); padding: .5rem 1rem; }

/* ================= REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .hero-bg::before, .hero-bg::after, .marquee-track, .flow-arrow .circle, .loader-word span { animation: none !important; }
    html { scroll-behavior: auto; }
}
