/* ==========================================================================
   ThinkBit Digital - dark theme
   Palette: #000 base · #fff text · #881dff accent
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
    --black: #000;
    --white: #fff;
    --accent: #881dff;

    /* Accent derivatives */
    --accent-200: #c9a4ff;
    --accent-300: #a95dff;
    --accent-700: #5c0fb3;
    --accent-glow: rgba(136, 29, 255, .45);
    --accent-soft: rgba(136, 29, 255, .14);
    --accent-line: rgba(136, 29, 255, .40);

    /* Surfaces */
    --surface-1: #08080b;
    --surface-2: #0d0d12;
    --surface-3: #131319;

    /* Text */
    --muted: rgba(255, 255, 255, .62);
    --muted-2: rgba(255, 255, 255, .42);
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);

    /* Type - Space Grotesk carries the display sizes, Inter the small UI text */
    --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Motion - easeOutExpo, the long decelerating curve that reads as
       "GSAP smooth". Entrances lean on it hardest. */
    --ease: cubic-bezier(.16, 1, .3, 1);
    --ease-soft: cubic-bezier(.4, 0, .2, 1);
    --t-fast: .3s;
    --t: .55s;
    --t-slow: .95s;

    /* Layout */
    --container: 1240px;
    --gutter: clamp(18px, 4vw, 40px);
    --radius: 18px;
    --radius-lg: 26px;
    --header-h: 88px;
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    /* Belt and braces with body: the decorative glows are deliberately
       oversized, and nothing should ever scroll sideways because of them. */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    line-height: 1.65;
    font-size: 16px;
    /* clip, not hidden: hidden would make body the scroller and break position:sticky */
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

/* The page scrolls on html, so that's where the lock has to land */
html:has(body.is-locked) {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
    display: block;
}

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

:focus-visible {
    outline: 2px solid var(--accent-300);
    outline-offset: 3px;
    border-radius: 6px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-700);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: clamp(64px, 9vw, 120px);
}

/* Any section carrying a decorative glow must clip it, otherwise the
   oversized orb widens the document on narrow screens. */
.section:has(> .glow),
.hero,
.about {
    /* clip, not hidden: hidden makes a scroll container and breaks position:sticky */
    overflow: clip;
}

.section--tight {
    padding-block: clamp(44px, 6vw, 72px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Section heading block */
.head {
    max-width: 720px;
    margin-bottom: clamp(34px, 5vw, 58px);
}

.head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    margin-bottom: 18px;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-200);
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.eyebrow i {
    font-size: .8em;
}

.eyebrow:hover {
    background: rgba(136, 29, 255, .24);
    border-color: var(--accent);
}

/* Display face on every heading and large numeral */
.h1,
.h2,
.h3,
.stat b,
.metric b,
.mini b,
.step__no,
.service__no,
.footer__word text,
.quote__ava,
.avatars span,
.drawer__nav a,
.work__metrics b {
    font-family: var(--font-display);
}

.h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.6rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.03em;
}

.h2 {
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.012em;
}

.lead {
    margin-top: 18px;
    color: var(--muted);
    font-size: clamp(.95rem, 1.5vw, 1.08rem);
    font-weight: 300;
}

/* Gradient accent inside a heading */
.grad {
    /* First and last stops match so the sliding loop has no visible seam */
    background: linear-gradient(100deg, var(--accent-200) 0%, var(--accent-300) 30%, var(--accent) 55%, var(--accent-300) 80%, var(--accent-200) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradSlide 8s linear infinite;
}

@keyframes gradSlide {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
        background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}

.btn i {
    font-size: .9em;
    transition: transform var(--t) var(--ease);
}

.btn:hover i {
    transform: translateX(4px);
}

/* Fill that wipes in from the left on hover */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease);
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.btn--primary::before {
    background: linear-gradient(90deg, var(--accent-300), var(--accent-200));
}

.btn--primary:hover {
    transform: translateY(-3px);
    color: #17021f;
    box-shadow: 0 18px 44px -12px var(--accent-glow);
}

.btn--ghost {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-2);
    color: var(--white);
}

.btn--ghost::before {
    background: var(--white);
}

.btn--ghost:hover {
    transform: translateY(-3px);
    color: var(--black);
    border-color: var(--white);
}

.btn--sm {
    padding: 13px 26px;
    font-size: .88rem;
}

.btn--block {
    width: 100%;
}

/* Plain text link with an animated underline */
.tlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 500;
    color: var(--accent-200);
    position: relative;
}

.tlink::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--t) var(--ease);
}

.tlink:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.tlink:hover i {
    transform: translateX(4px);
}

.tlink i {
    transition: transform var(--t) var(--ease);
}

/* --------------------------------------------------------------------------
   5. DECOR - glow orbs, grid, noise
   -------------------------------------------------------------------------- */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

.glow--a {
    width: 46vw;
    height: 46vw;
    max-width: 620px;
    max-height: 620px;
    background: radial-gradient(circle, rgba(136, 29, 255, .55), transparent 68%);
    top: -18%;
    left: -12%;
    animation: drift1 20s var(--ease-soft) infinite alternate;
}

.glow--b {
    width: 40vw;
    height: 40vw;
    max-width: 540px;
    max-height: 540px;
    background: radial-gradient(circle, rgba(169, 93, 255, .38), transparent 66%);
    bottom: -20%;
    right: -14%;
    animation: drift2 26s var(--ease-soft) infinite alternate;
}

@keyframes drift1 {
    to {
        transform: translate3d(10vw, 8vh, 0) scale(1.15);
    }
}

@keyframes drift2 {
    to {
        transform: translate3d(-9vw, -7vh, 0) scale(1.12);
    }
}

.gridlines {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 75%);
}

/* --------------------------------------------------------------------------
   6. PRELOADER
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    gap: 22px;
    background: var(--black);
    transition: opacity .6s var(--ease), visibility .6s var(--ease);
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
}

.preloader__inner {
    display: grid;
    justify-items: center;
    gap: 22px;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .55;
        transform: scale(.97);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Four logo-colour dots, same colours as the live coming-soon page.
   Each one rises and brightens in turn, so the wave reads left to right. */
.preloader__dots {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 34px;
}

.preloader__dots i {
    --dot: var(--accent);
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--dot);
    box-shadow: 0 0 14px var(--dot);
    animation: dotWave 1.4s var(--ease-soft) infinite;
}

.preloader__dots i:nth-child(1) {
    --dot: #ff00a8;
}

.preloader__dots i:nth-child(2) {
    --dot: #ffe500;
    animation-delay: .14s;
}

.preloader__dots i:nth-child(3) {
    --dot: #00e5e5;
    animation-delay: .28s;
}

.preloader__dots i:nth-child(4) {
    animation-delay: .42s;
}

@keyframes dotWave {

    0%,
    60%,
    100% {
        opacity: .45;
        transform: translateY(0) scale(.86);
    }

    30% {
        opacity: 1;
        transform: translateY(-13px) scale(1.1);
    }
}

/* Scroll progress bar */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--accent), var(--accent-200));
    z-index: 1000;
}

/* --------------------------------------------------------------------------
   7. HEADER / NAV
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
        height var(--t) var(--ease), box-shadow var(--t) var(--ease);
    border-bottom: 1px solid transparent;
}

/* The header spans wider than the page container so the nav can breathe,
   matching the reference site's full-width bar. */
.header > .container {
    max-width: 1520px;
    padding-inline: clamp(18px, 4vw, 60px);
}

.header.is-scrolled {
    height: 72px;
    background: rgba(6, 6, 9, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--line);
    box-shadow: 0 12px 40px -24px rgba(0, 0, 0, .9);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    transition: transform var(--t) var(--ease);
}

.brand img {
    width: clamp(118px, 14vw, 148px);
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(136, 29, 255, .35));
    transition: filter var(--t) var(--ease);
}

.brand:hover {
    transform: translateY(-1px);
}

.brand:hover img {
    filter: drop-shadow(0 6px 26px rgba(136, 29, 255, .7));
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(2px, 1.6vw, 22px);
}

.nav__item {
    position: relative;
}

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 17px;
    font-size: .94rem;
    font-weight: 400;
    color: var(--white);
    border-radius: 12px;
    white-space: nowrap;
    /* Transparent by default so the active border does not shift the layout */
    border: 1px solid transparent;
    transition: color var(--t) var(--ease), background var(--t) var(--ease),
                border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

/* Sliding underline dot */
.nav__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, 6px) scale(0);
    transition: transform var(--t) var(--ease);
}

.nav__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .05);
}

.nav__link:hover::after {
    transform: translate(-50%, 0) scale(1);
}

/* Active page/section: filled accent pill with a lit border */
.nav__link.is-active {
    color: var(--white);
    font-weight: 500;
    background: linear-gradient(180deg, rgba(136, 29, 255, .58), rgba(136, 29, 255, .28));
    border-color: var(--accent);
    box-shadow: 0 8px 24px -10px var(--accent-glow),
                inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* The dot belongs to hover only — the active pill speaks for itself */
.nav__link.is-active::after {
    display: none;
}

.nav__caret {
    font-size: .6rem;
    transition: transform var(--t) var(--ease);
}

.nav__item--sub:hover .nav__caret,
.nav__item--sub:focus-within .nav__caret {
    transform: rotate(180deg);
}

/* ---- Services dropdown ---- */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;
    /* Gap between trigger and panel is padding, not margin, so the pointer
       never crosses a dead zone on its way down. */
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease), transform var(--t) var(--ease);
}

.nav__item--sub:hover .dropdown,
.nav__item--sub:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown ul {
    /* Wide enough to keep "Social Media Handling (Organic)" on one line */
    min-width: 340px;
    padding: 10px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background: rgba(10, 10, 14, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(136, 29, 255, .10);
}

.dropdown li + li {
    margin-top: 2px;
}

.dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    font-size: .87rem;
    color: var(--muted);
    border-radius: 11px;
    transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

.dropdown a > i:first-child {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-size: .76rem;
    border-radius: 9px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-200);
    transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}

.dropdown a span {
    flex: 1;
}

.dropdown__go {
    font-size: .65rem;
    color: var(--accent-200);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.dropdown a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .05);
}

.dropdown a:hover > i:first-child {
    background: var(--accent);
    color: var(--white);
    transform: rotate(-8deg) scale(1.06);
}

.dropdown a:hover .dropdown__go {
    opacity: 1;
    transform: none;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

/* Hamburger */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    /* Without this the three grid rows stretch and the lines spread apart */
    align-content: center;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.burger:hover {
    background: var(--accent-soft);
    border-color: var(--accent-line);
}

.burger span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}

.burger span+span {
    margin-top: 5px;
}

.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 890;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    background: rgba(4, 4, 7, .97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease), transform var(--t) var(--ease);
}

.drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Top-level rows only — submenu links are styled separately below */
.drawer__nav > a,
.drawer__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 4px;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -.02em;
    text-align: left;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(14px);
    transition: color var(--t) var(--ease);
}

.drawer.is-open .drawer__nav > a,
.drawer.is-open .drawer__toggle {
    animation: drawerIn .5s var(--ease) forwards;
}

@keyframes drawerIn {
    to {
        opacity: 1;
        transform: none;
    }
}

.drawer__nav > a i {
    font-size: .8rem;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.drawer__nav > a:hover,
.drawer__toggle:hover {
    color: var(--white);
}

.drawer__nav > a:hover i {
    opacity: 1;
    transform: none;
}

/* Active row in the drawer mirrors the desktop pill */
.drawer__nav > a.is-active {
    color: var(--white);
    padding-inline: 14px;
    border-radius: 12px;
    border-bottom-color: transparent;
    background: linear-gradient(180deg, rgba(136, 29, 255, .58), rgba(136, 29, 255, .28));
    box-shadow: inset 0 0 0 1px var(--accent);
}

/* ---- Drawer submenu ---- */
.drawer__toggle i {
    font-size: .9rem;
    color: var(--accent);
    transition: transform var(--t) var(--ease);
}

.drawer__group.is-open .drawer__toggle {
    color: var(--white);
}

.drawer__group.is-open .drawer__toggle i {
    transform: rotate(180deg);
}

.drawer__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t) var(--ease);
}

.drawer__sub ul {
    padding: 8px 0 12px;
    display: grid;
    gap: 2px;
}

.drawer__sub a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    font-size: .95rem;
    font-weight: 400;
    color: var(--muted);
    border-radius: 11px;
    transition: color var(--t) var(--ease), background var(--t) var(--ease);
}

.drawer__sub a i {
    flex: none;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    font-size: .74rem;
    border-radius: 9px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-200);
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

.drawer__sub a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .05);
}

.drawer__sub a:hover i {
    background: var(--accent);
    color: var(--white);
}

.drawer__foot {
    display: grid;
    gap: 14px;
    padding-top: 24px;
}

.drawer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: .86rem;
    color: var(--muted);
}

.drawer__meta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--t) var(--ease);
}

.drawer__meta a:hover {
    color: var(--accent-200);
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
    padding-bottom: clamp(56px, 8vw, 104px);
    overflow: hidden;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.hero__title {
    margin-top: 4px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    font-size: .84rem;
    color: var(--muted-2);
}

.avatars {
    display: flex;
}

.avatars span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--black);
    background: linear-gradient(135deg, var(--accent-700), var(--accent-300));
    font-size: .7rem;
    font-weight: 600;
    transition: transform var(--t) var(--ease);
}

.avatars span+span {
    margin-left: -12px;
}

.avatars:hover span {
    transform: translateY(-3px);
}

/* Hero visual card */
.hero__visual {
    position: relative;
    perspective: 1200px;
}

/* Breathing light behind the panel */
.hero__halo {
    position: absolute;
    inset: -14%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(136, 29, 255, .42), rgba(136, 29, 255, .12) 55%, transparent);
    animation: heroHalo 7s var(--ease-soft) infinite alternate;
    pointer-events: none;
}

@keyframes heroHalo {
    from {
        opacity: .65;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Orbit rings. Rotation is on transform; the cursor parallax uses `translate`
   so the two compose instead of overwriting each other. --tx/--ty come from
   the tilt handler in main.js. */
.hero__orbit {
    --orbit: 118%;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: var(--orbit);
    aspect-ratio: 1;
    margin-top: calc(var(--orbit) / -2);
    margin-left: calc(var(--orbit) / -2);
    border: 1px solid rgba(201, 164, 255, .13);
    border-radius: 50%;
    translate: calc(var(--tx, 0) * 16px) calc(var(--ty, 0) * 16px);
    animation: heroOrbit 26s linear infinite;
    pointer-events: none;
}

.hero__orbit--wide {
    --orbit: 150%;
    border-style: dashed;
    border-color: rgba(201, 164, 255, .08);
    translate: calc(var(--tx, 0) * 28px) calc(var(--ty, 0) * 28px);
    animation-duration: 44s;
    animation-direction: reverse;
}

.hero__orbit i {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--accent-200);
    box-shadow: 0 0 14px 3px var(--accent-glow);
}

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

@property --panel-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.panel {
    position: relative;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(24, 20, 36, .82), rgba(9, 8, 14, .88));
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95), 0 0 70px -30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .07);
    transition: transform var(--t-slow) var(--ease);
    will-change: transform;
}

/* Light running around the panel's border */
.panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--panel-angle), transparent 0 58%, var(--accent) 76%, var(--accent-200) 88%, var(--white) 92%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: panelAngle 6s linear infinite;
    pointer-events: none;
}

@keyframes panelAngle {
    to {
        --panel-angle: 360deg;
    }
}

.panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.panel__label {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    color: var(--accent-200);
}

.live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: ping 2s var(--ease-soft) infinite;
}

@keyframes ping {
    0% {
        box-shadow: 0 0 0 0 rgba(136, 29, 255, .7);
    }

    70% {
        box-shadow: 0 0 0 11px rgba(136, 29, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(136, 29, 255, 0);
    }
}

/* Bar chart built entirely in CSS - no image dependency */
.chart {
    --bar-gap: clamp(6px, 1.4vw, 11px);
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: var(--bar-gap);
    height: 168px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 100% 25%;
}

.chart__bar {
    flex: 1;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, rgba(169, 93, 255, .82), rgba(92, 15, 179, .16));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
    transform-origin: bottom;
    transform: scaleY(0);
    animation: barUp .9s var(--ease) forwards;
    transition: filter var(--t) var(--ease);
    position: relative;
}

.chart__bar:last-child {
    background: linear-gradient(180deg, var(--accent-200), rgba(136, 29, 255, .35));
    box-shadow: 0 0 26px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.chart__bar:hover {
    filter: brightness(1.4);
}

@keyframes barUp {
    to {
        transform: scaleY(1);
    }
}

/* Trend line. Inset by half a bar so its points land on the bar centres, and
   revealed with clip-path after the bars have risen. */
.chart__trend {
    --half-bar: calc((100% - (var(--bars) - 1) * var(--bar-gap)) / (var(--bars) * 2));
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--half-bar);
    right: var(--half-bar);
    z-index: 1;
    pointer-events: none;
    clip-path: inset(-14px -14px -14px 0);
    animation: trendDraw 1.5s var(--ease-soft) 1s both;
}

@keyframes trendDraw {
    from {
        clip-path: inset(-14px 100% -14px 0);
    }

    to {
        clip-path: inset(-14px -14px -14px 0);
    }
}

.chart__trend svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart__area {
    fill: url(#trendFill);
}

.chart__line {
    fill: none;
    stroke: var(--white);
    stroke-width: 2px;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 5px var(--accent-300));
}

.chart__dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--white);
    animation: ping 2s var(--ease-soft) infinite;
}

.panel__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mini {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .025);
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}

.mini:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    transform: translateY(-3px);
}

.mini b {
    display: block;
    font-variant-numeric: tabular-nums;
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -.02em;
}

.mini span {
    font-size: .72rem;
    color: var(--muted-2);
}

/* Floating badge on the hero panel */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(10, 10, 14, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 44px -22px rgba(0, 0, 0, .95);
    font-size: .8rem;
    z-index: 2;
    /* Floats toward the viewer as the panel tilts; bob stays on transform */
    translate: calc(var(--tx, 0) * -30px) calc(var(--ty, 0) * -30px);
    animation: bob 5s var(--ease-soft) infinite;
}

.float-badge i {
    color: var(--accent-200);
}

.float-badge--tl {
    top: -20px;
    left: -18px;
}

.float-badge--br {
    bottom: -20px;
    right: -14px;
    animation-delay: 1.2s;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

/* Hero stat strip */
.stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px, 1.4vw, 16px);
    margin-top: clamp(46px, 6vw, 76px);
}

/* Each stat is a .card.ftile, so the lift, cursor highlight and lit border
   all come from those; only the content is styled here. */
.stat b {
    display: block;
    padding-right: 52px;
    font-size: clamp(2.1rem, 3.8vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, var(--white) 35%, var(--accent-200));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat__label {
    display: block;
    margin-top: 8px;
    font-size: .86rem;
    color: var(--muted);
}

.stat__icon {
    position: absolute;
    top: clamp(16px, 2vw, 22px);
    right: clamp(16px, 2vw, 22px);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-200);
    font-size: .95rem;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}

.stat:hover .stat__icon {
    background: var(--accent);
    color: var(--white);
    transform: rotate(-8deg) scale(1.08);
}

/* Accent line along the bottom edge, fills as the card comes in */
.stat__line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-200), transparent);
    transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
    .js .stat__line {
        transform: scaleX(0);
        transition: transform 1.4s var(--ease);
        transition-delay: calc(var(--i, 0) * .12s + .4s);
    }

    .js .stats.is-in .stat__line {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   9. MARQUEE
   -------------------------------------------------------------------------- */
.marquee {
    position: relative;
    padding-block: clamp(26px, 4vw, 40px);
    border-block: 1px solid var(--line);
    background: var(--surface-1);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: clamp(34px, 6vw, 72px);
    animation: scrollX 34s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@keyframes scrollX {
    to {
        transform: translateX(-50%);
    }
}

.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(.95rem, 1.8vw, 1.15rem);
    font-weight: 500;
    color: var(--muted-2);
    white-space: nowrap;
    transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.marquee__item i {
    font-size: 1.35em;
}

.marquee__item:hover {
    color: var(--white);
    transform: scale(1.06);
}

.marquee__item:hover i {
    color: var(--accent-200);
}

/* --------------------------------------------------------------------------
   10. CARD PRIMITIVE
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    padding: clamp(22px, 2.6vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(165deg, var(--surface-2), var(--surface-1));
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

/* Radial highlight that follows the cursor (set via JS custom props) */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 50%), rgba(136, 29, 255, .20), transparent 62%);
    transition: opacity var(--t) var(--ease);
}

.card:hover {
    transform: translateY(-7px);
    border-color: var(--accent-line);
    box-shadow: 0 28px 60px -30px rgba(136, 29, 255, .75);
}

.card:hover::before {
    opacity: 1;
}

/* Page-wide glow that follows the cursor. Created and positioned by main.js,
   and sits below the header, drawer and back-to-top button (z-index 800+).
   Screen blending lifts the dark backgrounds and leaves white text white. */
.cursor-glow {
    --size: 680px;
    position: fixed;
    top: calc(var(--size) / -2);
    left: calc(var(--size) / -2);
    z-index: 700;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: radial-gradient(circle closest-side, rgba(136, 29, 255, .26), rgba(136, 29, 255, .09) 45%, transparent);
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    transition: opacity .45s var(--ease);
    will-change: transform;
}

.cursor-glow.is-visible {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   11. SERVICES
   -------------------------------------------------------------------------- */
.services .container {
    position: relative;
    z-index: 1;
}

/* Bento: two wide cards over three, so five cards fill the width with no
   orphan row. */
.services__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
}

.service {
    display: flex;
    flex-direction: column;
    grid-column: span 4;
    min-height: 300px;
}

.service:nth-child(1) {
    grid-column: span 7;
}

.service:nth-child(2) {
    grid-column: span 5;
}

.service:nth-child(-n+2) .h3 {
    font-size: clamp(1.3rem, 2.3vw, 1.7rem);
}

.service:nth-child(-n+2) p {
    max-width: 52ch;
}

/* Tags sit on the bottom edge so they line up across a row */
.service .tags {
    margin-top: auto;
    padding-top: 22px;
}

.service .tag {
    transition: color var(--t) var(--ease), border-color var(--t) var(--ease),
        background var(--t) var(--ease), transform var(--t) var(--ease);
}

.service:hover .tag {
    transform: translateY(-2px);
}

.service:hover .tag:nth-child(2) {
    transition-delay: .05s;
}

.service:hover .tag:nth-child(3) {
    transition-delay: .1s;
}

/* The service's icon, oversized and faint in the corner */
.service__ghost {
    position: absolute;
    right: -14px;
    bottom: -26px;
    z-index: -1;
    font-size: clamp(7rem, 11vw, 10rem);
    line-height: 1;
    color: var(--accent-200);
    opacity: .05;
    pointer-events: none;
    transition: opacity var(--t) var(--ease), transform var(--t-slow) var(--ease);
}

.service:hover .service__ghost {
    opacity: .15;
    transform: rotate(-8deg) scale(1.08);
}

@media (max-width: 1100px) {
    .service,
    .service:nth-child(2) {
        grid-column: span 6;
    }

    .service:nth-child(1) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .service,
    .service:nth-child(2) {
        grid-column: 1 / -1;
        min-height: 0;
    }
}

.service__icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-200);
    font-size: 1.35rem;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease),
        box-shadow var(--t) var(--ease);
}

.card:hover .service__icon {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 30px -6px var(--accent-glow);
    transform: rotate(-8deg) scale(1.08);
}

.service p {
    margin-top: 10px;
    font-size: .93rem;
    font-weight: 300;
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.tag {
    padding: 5px 12px;
    font-size: .72rem;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.card:hover .tag {
    color: var(--accent-200);
    border-color: var(--accent-line);
    background: var(--accent-soft);
}

.service__no {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .2);
    user-select: none;
    transition: color var(--t) var(--ease), -webkit-text-stroke-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.card:hover .service__no {
    color: rgba(136, 29, 255, .3);
    -webkit-text-stroke-color: var(--accent-200);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   12. ABOUT
   -------------------------------------------------------------------------- */
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 68px);
    align-items: center;
}

.checks {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.check {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .02);
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}

.check:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    transform: translateX(6px);
}

.check .check__ico {
    flex: none;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
}

.check__ico svg {
    width: 15px;
    height: 15px;
}

.check b {
    display: block;
    font-size: .96rem;
    font-weight: 500;
}

.check span {
    font-size: .87rem;
    font-weight: 300;
    color: var(--muted);
}

/* Metric tiles beside the about copy */
.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 1.6vw, 18px);
}

.metric {
    padding: clamp(20px, 2.4vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(165deg, var(--surface-2), var(--surface-1));
    transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.metric:hover {
    border-color: var(--accent-line);
    box-shadow: 0 24px 54px -30px rgba(136, 29, 255, .8);
    transform: translateY(-6px);
}

.metric i {
    display: block;
    margin-bottom: 14px;
    font-size: 1.5rem;
    color: var(--accent-200);
    transition: transform var(--t) var(--ease);
}

.metric:hover i {
    transform: scale(1.14) rotate(-6deg);
}

.metric b {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.metric span {
    font-size: .84rem;
    color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   13. PROCESS
   -------------------------------------------------------------------------- */
.process__grid {
    --pgap: clamp(14px, 1.8vw, 20px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--pgap);
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 34px;
}

/* Connector line + node */
.step::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: calc(var(--pgap) * -1);
    height: 2px;
    /* --p is the filled share of this step's line, driven by scroll when pinned */
    background:
        linear-gradient(90deg, var(--accent), var(--accent-200)) no-repeat left center / calc(var(--p, 1) * 100%) 100%,
        var(--line);
}

.step:last-child::before {
    right: 0;
}

.step.is-active::after {
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-soft), 0 0 18px var(--accent-glow);
}

.step::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--accent);
    transition: box-shadow var(--t) var(--ease), background var(--t) var(--ease);
}

.step:hover::after {
    background: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-soft);
}

.step__week {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-200);
}

.step__no {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .08);
    transition: color var(--t) var(--ease);
}

.step:hover .step__no {
    color: rgba(136, 29, 255, .45);
}

.step h3 {
    margin-top: 6px;
}

.step p {
    margin-top: 10px;
    font-size: .9rem;
    font-weight: 300;
    color: var(--muted);
}

.step ul {
    display: grid;
    gap: 7px;
    margin-top: 16px;
}

.step li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .84rem;
    color: var(--muted-2);
    transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}

.step li i {
    font-size: .62rem;
    color: var(--accent);
}

.step:hover li {
    color: var(--muted);
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   14. WORK / CASE STUDIES
   -------------------------------------------------------------------------- */
.work__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(14px, 1.8vw, 22px);
}

.work .card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Gradient "cover" stands in for a photo - swap for a real <img> later */
.work__cover {
    position: relative;
    height: 178px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.work__cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), transparent 55%),
        linear-gradient(135deg, var(--accent-700), var(--accent));
    transform: scale(1.02);
    transition: transform var(--t-slow) var(--ease);
}

.work__cover--b::after {
    background:
        radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .18), transparent 55%),
        linear-gradient(135deg, #3d0a75, var(--accent-300));
}

.work__cover--c::after {
    background:
        radial-gradient(circle at 45% 70%, rgba(255, 255, 255, .14), transparent 55%),
        linear-gradient(135deg, #17022b, var(--accent-700));
}

.card:hover .work__cover::after {
    transform: scale(1.12);
}

.work__cat {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 6px 13px;
    font-size: .72rem;
    font-weight: 500;
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .18);
}

.work__body {
    padding: clamp(20px, 2.4vw, 26px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work__body p {
    margin-top: 9px;
    font-size: .9rem;
    font-weight: 300;
    color: var(--muted);
}

.work__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.work__metrics div {
    text-align: center;
}

.work__metrics b {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-200);
}

.work__metrics span {
    font-size: .7rem;
    color: var(--muted-2);
}

.work__foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   15. TESTIMONIALS
   -------------------------------------------------------------------------- */
.quotes {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.quotes__track {
    display: flex;
    width: max-content;
    gap: clamp(14px, 1.8vw, 22px);
    animation: scrollX 46s linear infinite;
}

.quotes:hover .quotes__track {
    animation-play-state: paused;
}

.quote {
    width: clamp(280px, 34vw, 400px);
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.quote__stars {
    display: flex;
    gap: 3px;
    color: var(--accent-200);
    font-size: .8rem;
    margin-bottom: 14px;
}

.quote p {
    font-size: .95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, .82);
}

.quote__who {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.quote__ava {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-700), var(--accent-300));
    font-size: .85rem;
    font-weight: 600;
}

.quote__who b {
    display: block;
    font-size: .92rem;
    font-weight: 500;
}

.quote__who span {
    font-size: .78rem;
    color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq__inner {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: start;
}

.faq__list {
    display: grid;
    gap: 12px;
}

.acc {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(165deg, var(--surface-2), var(--surface-1));
    overflow: hidden;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.acc:hover {
    border-color: var(--line-2);
}

.acc.is-open {
    border-color: var(--accent-line);
    box-shadow: 0 24px 54px -34px rgba(136, 29, 255, .9);
}

.acc__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    text-align: left;
    font-size: clamp(.95rem, 1.6vw, 1.05rem);
    font-weight: 500;
    transition: color var(--t) var(--ease);
}

.acc__btn:hover {
    color: var(--accent-200);
}

.acc__ico {
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    font-size: .75rem;
    transition: transform var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease);
}

.acc.is-open .acc__ico {
    transform: rotate(135deg);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* Height is animated from JS by setting max-height to the measured value */
.acc__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t) var(--ease);
}

.acc__panel p {
    padding: 0 22px 22px;
    font-size: .92rem;
    font-weight: 300;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. CTA BAND
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 15% 20%, rgba(136, 29, 255, .30), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(169, 93, 255, .22), transparent 55%),
        linear-gradient(165deg, var(--surface-2), var(--surface-1));
    overflow: hidden;
    text-align: center;
}

/* Slow rotating conic sheen behind the CTA */
.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, transparent, rgba(136, 29, 255, .16), transparent 40%);
    animation: spin 16s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.cta>* {
    position: relative;
    z-index: 1;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 30px;
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.footer {
    position: relative;
    padding-top: clamp(52px, 7vw, 88px);
    border-top: 1px solid var(--line);
    background: var(--surface-1);
    overflow: hidden;
}

/* Light that travels along the footer's top edge */
.footer__beam {
    position: absolute;
    top: -1px;
    left: 0;
    width: 34%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-300), var(--white), var(--accent-300), transparent);
    transform: translateX(-100%);
    animation: footerBeam 7s var(--ease-soft) infinite;
    pointer-events: none;
}

@keyframes footerBeam {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(300%);
    }
}

/* Slow-moving colour behind the glass tiles */
.footer__aurora {
    position: absolute;
    inset: -30% -10%;
    background:
        radial-gradient(38% 46% at 22% 62%, rgba(136, 29, 255, .26), transparent 70%),
        radial-gradient(32% 40% at 80% 32%, rgba(92, 15, 179, .30), transparent 70%);
    animation: footerAurora 18s var(--ease-soft) infinite alternate;
    pointer-events: none;
}

@keyframes footerAurora {
    to {
        transform: translate3d(5%, -6%, 0) scale(1.08);
    }
}

.footer__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 72%);
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
    pointer-events: none;
}

.footer__wrap {
    position: relative;
    z-index: 1;
}

.footer__bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 16px);
}

.ftile--brand {
    grid-column: span 5;
}

.ftile--company {
    grid-column: span 3;
}

.ftile--services {
    grid-column: span 4;
}

.ftile--contact {
    grid-column: 1 / -1;
}

/* Glass surface on top of the .card primitive */
.ftile {
    background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* Border lights up under the cursor; --cx/--cy come from the .card handler */
.ftile::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: radial-gradient(280px circle at var(--cx, 50%) var(--cy, 50%), var(--accent-200), transparent 68%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t) var(--ease);
}

.ftile:hover::after {
    opacity: 1;
}

.ftile--brand img {
    width: 152px;
    margin-bottom: 18px;
}

.ftile--brand p {
    font-size: .9rem;
    font-weight: 300;
    color: var(--muted);
    max-width: 42ch;
}

.footer h4 {
    margin-bottom: 18px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--white);
}

.footer__links {
    display: grid;
    gap: 11px;
}

.footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    font-size: .9rem;
    font-weight: 300;
    color: var(--muted);
    transition: color var(--t) var(--ease), gap var(--t) var(--ease);
}

.footer__links a::before {
    content: '\f061';
    font-family: 'Font Awesome 7 Pro';
    font-weight: 900;
    font-size: .62em;
    width: 0;
    opacity: 0;
    color: var(--accent);
    transition: width var(--t) var(--ease), opacity var(--t) var(--ease);
}

.footer__links a:hover {
    color: var(--white);
    gap: 8px;
}

.footer__links a:hover::before {
    width: 11px;
    opacity: 1;
}

.footer__no {
    margin-right: 10px;
    font-family: var(--font-display);
    font-size: .72rem;
    color: var(--accent-300);
    font-variant-numeric: tabular-nums;
}

.footer__contact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px 12px;
    /* Keeps each text beside its icon when one cell wraps to two lines */
    align-items: start;
}

.fc span {
    min-width: 0;
    align-self: center;
    overflow-wrap: anywhere;
}

.fc {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    font-size: .9rem;
    font-weight: 300;
    color: var(--muted);
    transition: color var(--t) var(--ease);
}

.fc i {
    flex: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--accent-200);
    font-size: .82rem;
    transition: background var(--t) var(--ease), color var(--t) var(--ease),
        border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

a.fc:hover {
    color: var(--white);
}

a.fc:hover i {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    transition: background var(--t) var(--ease), color var(--t) var(--ease),
        border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 26px -6px var(--accent-glow);
    transform: translateY(-4px) rotate(-6deg);
}

.footer__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    color: var(--muted-2);
}

.footer__bottom a:hover {
    color: var(--accent-200);
}

/* Live local time */
.footer__clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer__clock[hidden] {
    display: none;
}

.footer__clock i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-300);
    box-shadow: 0 0 10px var(--accent-300);
    animation: pulse 1.8s var(--ease-soft) infinite;
}

.footer__clock b {
    font-weight: 500;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

/* Full-width wordmark: an outline with a colour spot that tracks the cursor */
.footer__word {
    margin-top: clamp(28px, 4vw, 48px);
    margin-bottom: clamp(14px, 2vw, 24px);
    user-select: none;
}

.footer__word svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.footer__word text {
    font-size: 235px;
    font-weight: 700;
}

.fw__fill {
    fill: url(#fwFill);
}

.fw__line {
    fill: none;
    stroke: rgba(255, 255, 255, .24);
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 2400;
    stroke-dashoffset: 0;
}

.fw__spot {
    fill: url(#fwSpot);
    opacity: 0;
    transition: opacity var(--t) var(--ease);
}

.footer.is-lit .fw__spot {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {

    /* Outline draws itself in as the wordmark enters */
    .fw__line {
        transition: stroke-dashoffset 2.8s var(--ease-soft) .15s;
    }

    .js .footer__word:not(.is-in) .fw__line {
        stroke-dashoffset: 2400;
    }
}

/* No cursor to follow on touch screens, so the outline carries the colour */
@media (hover: none) {
    .fw__line {
        stroke: var(--accent-300);
    }
}

/* Keeps the fixed back-to-top button clear of the bottom bar */
@media (max-width: 1420px) {
    .footer__bottom {
        padding-right: 72px;
    }
}

@media (max-width: 1100px) {
    .ftile--brand,
    .ftile--contact {
        grid-column: 1 / -1;
    }

    .ftile--company {
        grid-column: span 5;
    }

    .ftile--services {
        grid-column: span 7;
    }

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

@media (max-width: 640px) {
    .ftile--company,
    .ftile--services {
        grid-column: 1 / -1;
    }

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

/* Back to top */
.totop {
    position: fixed;
    right: clamp(16px, 3vw, 30px);
    bottom: clamp(16px, 3vw, 30px);
    z-index: 800;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    background: rgba(10, 10, 14, .85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease),
        transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}

.totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.totop:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   19. SCROLL REVEAL
   -------------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
}

[data-reveal="left"] {
    transform: translateX(-32px);
}

[data-reveal="right"] {
    transform: translateX(32px);
}

[data-reveal="zoom"] {
    transform: scale(.94);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Longer, softer curve for larger blocks */
[data-reveal="slow"] {
    transform: translateY(48px);
    transition-duration: 1.15s;
}

/* ---- Split-text headings ----
   Each word sits in a masked wrapper and rises into place on a stagger. */
/* With overflow:hidden an inline-block's baseline becomes its bottom margin
   edge, so the padding/negative-margin pair both makes room for descenders
   and keeps the word sitting on the real text baseline. Do NOT add
   vertical-align here - it stops the margin cancelling the padding and the
   line boxes grow. */
.w {
    display: inline-block;
    overflow: hidden;
    padding-bottom: .28em;
    margin-bottom: -.28em;
}

.w__i {
    display: inline-block;
    will-change: transform;
}

.js .w__i {
    transform: translateY(115%);
    opacity: 0;
    transition: transform 1.25s var(--ease), opacity .9s var(--ease);
    transition-delay: calc(var(--i, 0) * .055s);
}

.is-split.is-in .w__i {
    transform: translateY(0);
    opacity: 1;
}

/* Words that came out of a .grad phrase carry the gradient themselves */
.w__i.is-grad {
    background: linear-gradient(100deg, var(--accent-200) 0%, var(--accent-300) 30%, var(--accent) 55%, var(--accent-300) 80%, var(--accent-200) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradSlide 8s linear infinite;
}

/* ---- Staggered groups ----
   Children of [data-stagger] cascade in; JS sets --i on each child. */
.js [data-stagger] > * {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--i, 0) * .085s);
}

[data-stagger].is-in > * {
    opacity: 1;
    transform: none;
}

/* `[data-stagger].is-in > *` and `.card:hover` have equal specificity, and the
   stagger rule comes later in the file - so the hover lift needs re-asserting
   at a higher weight or cards would stop lifting once they had animated in. */
[data-stagger].is-in > .card {
    transition: opacity .9s var(--ease), transform .55s var(--ease),
                border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

[data-stagger].is-in > .card:hover {
    transform: translateY(-7px);
}

/* The transition shorthand above resets the delay, so the entrance cascade has
   to be restored until main.js marks the group .is-settled. Dropping it then
   keeps hover responses immediate. */
[data-stagger].is-in:not(.is-settled) > .card {
    transition-delay: calc(var(--i, 0) * .085s);
}

/* Non-card stagger children get their own hover transitions back once settled */
[data-stagger].is-settled > .check {
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}

[data-stagger].is-in > .check:hover {
    transform: translateX(6px);
}

[data-stagger].is-settled > .acc {
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.metric b {
    font-variant-numeric: tabular-nums;
}

/* ---- Section entrances ----
   Hidden states live inside this query so reduced-motion users never get them. */
@media (prefers-reduced-motion: no-preference) {

    /* Service icons pop in just after their card */
    .js .services__grid:not(.is-in) .service__icon {
        opacity: 0;
        transform: scale(.4) rotate(-14deg);
    }

    .services__grid.is-in:not(.is-settled) .service__icon {
        transition: opacity .6s var(--ease), transform .7s var(--ease);
        transition-delay: calc(var(--i, 0) * .085s + .25s);
    }

    /* Process timeline draws left to right, one week at a time */
    .js .step::before {
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform 1s var(--ease);
        transition-delay: calc(var(--i, 0) * .22s + .2s);
    }

    .js .step::after {
        transform: scale(0);
        transition: transform .6s var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease);
        transition-delay: calc(var(--i, 0) * .22s + .2s), 0s, 0s;
    }

    .js .process__grid.is-in .step::before,
    .js .process__grid.is-in .step::after {
        transform: none;
    }

    /* Case study covers wipe open from the top */
    .js .work__cover {
        clip-path: inset(0 0 0 0);
        transition: clip-path 1.2s var(--ease);
        transition-delay: calc(var(--i, 0) * .085s + .15s);
    }

    .js .work__grid:not(.is-in) .work__cover {
        clip-path: inset(0 0 100% 0);
    }
}

/* ---- Scroll-velocity skew on the marquee ----
   On the items, not the track: the track's scrollX animation owns its transform. */
.marquee__item {
    transform: skewX(var(--skew, 0deg));
}

/* Smooth scroll is driven from JS; the native behaviour would fight it */
html.has-smooth {
    scroll-behavior: auto;
}

/* Header tucks away while scrolling down */
.header.is-hidden {
    transform: translateY(-100%);
}

.header {
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
                height var(--t) var(--ease), box-shadow var(--t) var(--ease),
                transform .55s var(--ease);
}

.magnetic {
    will-change: transform;
}

/* --------------------------------------------------------------------------
   19a. CAPSULE HEADER
   Every rule is scoped to .header--capsule, so setting header_style to
   'classic' in component/config.php brings the previous header back untouched.
   -------------------------------------------------------------------------- */
.header--capsule.is-scrolled {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

.header--capsule .header__inner {
    position: relative;
    max-width: 1280px;
    height: 64px;
    margin-inline: auto;
    padding: 0 10px 0 20px;
    border-radius: 20px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 18px 50px -28px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .09);
    transition: max-width var(--t-slow) var(--ease), height var(--t) var(--ease),
        background var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

/* Gradient hairline border */
.header--capsule .header__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(100deg, rgba(255, 255, 255, .3), rgba(136, 29, 255, .65) 30%, rgba(255, 255, 255, .07) 58%, rgba(169, 93, 255, .55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}

/* Tightens up and turns darker once the page is moving */
.header--capsule.is-scrolled .header__inner {
    max-width: 1160px;
    height: 58px;
    background: linear-gradient(120deg, rgba(22, 16, 34, .9), rgba(8, 8, 12, .86));
    box-shadow: 0 22px 54px -24px rgba(0, 0, 0, 1), 0 0 44px -22px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.header--capsule .brand img {
    width: clamp(92px, 9vw, 112px);
}

.header--capsule .nav {
    position: relative;
    gap: 2px;
}

.header--capsule .nav__link {
    z-index: 1;
    padding: 9px 16px;
    font-size: .9rem;
}

/* Pill that slides between links (created in main.js, which adds .has-pill) */
.nav__pill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    border: 1px solid var(--accent);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(136, 29, 255, .6), rgba(136, 29, 255, .26));
    box-shadow: 0 8px 24px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .16);
    opacity: 0;
    pointer-events: none;
    transition: transform .6s var(--ease), width .6s var(--ease), opacity var(--t-fast) var(--ease);
}

.has-pill .nav__link,
.has-pill .nav__link:hover,
.has-pill .nav__link.is-active {
    background: none;
    border-color: transparent;
    box-shadow: none;
}

.has-pill .nav__link::after {
    display: none;
}

/* The capsule sits lower than the old bar's links, so the gap has to grow */
.header--capsule .dropdown {
    padding-top: 22px;
}

/* Solid: a backdrop-filter nested inside the capsule's own can't blur the page */
.header--capsule .dropdown ul {
    background: #0b0b10;
}

.header--capsule .header__cta .btn {
    gap: 12px;
    padding: 7px 7px 7px 20px;
    font-size: .88rem;
}

.header--capsule .header__cta .btn i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--accent);
    font-size: .78rem;
}

.header--capsule .header__cta .btn:hover {
    transform: none;
}

.header--capsule .header__cta .btn:hover i {
    background: var(--accent);
    color: var(--white);
    transform: rotate(-45deg);
}

.header--capsule .burger {
    width: 40px;
    height: 40px;
}

@media (max-width: 760px) {
    .header--capsule .header__inner,
    .header--capsule.is-scrolled .header__inner {
        height: 56px;
        padding: 0 8px 0 14px;
        border-radius: 16px;
    }
}

/* ---- Capsule mobile menu (classic drawer returns with header_style 'classic') ---- */
.drawer:not(.drawer--capsule) .drawer__no,
.drawer:not(.drawer--capsule) .drawer__social {
    display: none;
}

.drawer--capsule {
    --from: calc(100% - 44px) 40px;
    overflow-y: auto;
    padding-top: calc(var(--header-h) + 14px);
    padding-bottom: 24px;
    background:
        radial-gradient(70% 42% at 88% 0%, rgba(136, 29, 255, .42), transparent 70%),
        radial-gradient(70% 40% at 0% 100%, rgba(92, 15, 179, .38), transparent 72%),
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 24px 24px,
        #050508;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    /* Opens as a circle growing out of the burger button */
    opacity: 1;
    transform: none;
    clip-path: circle(0 at var(--from));
    transition: clip-path .75s var(--ease), visibility .75s var(--ease);
}

.drawer--capsule.is-open {
    clip-path: circle(150vmax at var(--from));
}

.drawer--capsule .drawer__nav {
    gap: 8px;
}

.drawer--capsule .drawer__nav > a,
.drawer--capsule .drawer__toggle {
    justify-content: flex-start;
    gap: 14px;
    padding: 13px 14px 13px 16px;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 5.4vw, 1.4rem);
    color: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}

.drawer__no {
    flex: none;
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--accent-200);
    font-variant-numeric: tabular-nums;
}

.drawer--capsule .drawer__label {
    flex: 1;
    min-width: 0;
}

/* Small round chip on the right; always visible, touch has no hover */
.drawer--capsule .drawer__nav > a i,
.drawer--capsule .drawer__toggle i {
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .05);
    color: var(--accent-200);
    font-size: .72rem;
    opacity: 1;
    transform: none;
    transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}

.drawer--capsule .drawer__nav > a:active,
.drawer--capsule .drawer__group.is-open .drawer__toggle {
    border-color: var(--accent-line);
    background: linear-gradient(120deg, rgba(136, 29, 255, .28), rgba(136, 29, 255, .06));
}

.drawer--capsule .drawer__group.is-open .drawer__toggle i {
    background: var(--accent);
    color: var(--white);
    transform: rotate(180deg);
}

.drawer--capsule .drawer__nav > a.is-active {
    padding-inline: 16px 14px;
    border-color: var(--accent);
    border-bottom-color: var(--accent);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(136, 29, 255, .6), rgba(136, 29, 255, .22));
    box-shadow: 0 12px 30px -16px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.drawer--capsule .drawer__nav > a.is-active i {
    background: var(--white);
    color: var(--accent);
    border-color: var(--white);
}

.drawer--capsule .drawer__sub ul {
    padding: 8px 0 2px;
    gap: 6px;
}

.drawer--capsule .drawer__sub a {
    padding: 9px 12px;
    font-family: var(--font-body);
    font-size: .92rem;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
}

.drawer--capsule .drawer__foot {
    gap: 12px;
    padding-top: 20px;
}

.drawer--capsule .drawer__meta {
    display: grid;
    gap: 6px;
    font-size: .88rem;
}

.drawer--capsule .drawer__meta a {
    min-height: 40px;
    gap: 11px;
    color: rgba(255, 255, 255, .8);
    overflow-wrap: anywhere;
}

.drawer--capsule .drawer__meta i {
    flex: none;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-200);
    font-size: .76rem;
}

.drawer__social {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   19b. SECTION DESIGN + SCROLL SCENES
   Scene positions are driven from main.js ("Scroll scenes"). The sticky layouts
   here work without it; JS only adds the scrubbed values on top.
   -------------------------------------------------------------------------- */

/* Colour that travels behind the whole page as you scroll */
.scroll-orb {
    --orb: min(90vw, 1100px);
    position: fixed;
    top: calc(var(--orb) / -2);
    left: calc(var(--orb) / -2);
    z-index: -1;
    width: var(--orb);
    height: var(--orb);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(136, 29, 255, .2), rgba(92, 15, 179, .08) 55%, transparent);
    pointer-events: none;
    will-change: transform;
}

/* ---- Marquee ---- */
.marquee__item {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.6vw, 1.9rem);
    letter-spacing: -.01em;
}

/* ---- About: copy stays put while the proof scrolls past ---- */
.about .container {
    position: relative;
    z-index: 1;
}

.about__inner {
    align-items: start;
}

.about__copy .lead {
    margin-top: 22px;
    font-size: clamp(1.1rem, 1.9vw, 1.45rem);
    line-height: 1.5;
    color: var(--white);
}

.about__side .checks {
    margin-top: 0;
}

.about__side .metrics {
    margin-top: clamp(14px, 1.6vw, 18px);
}

.check {
    background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

@media (min-width: 981px) {
    .about__copy {
        position: sticky;
        top: 120px;
    }
}

/* ---- Process: horizontal track pinned to the viewport (.has-pin from JS) ---- */
.step {
    display: flex;
}

.step__card {
    flex: 1;
}

.step__no {
    margin-top: 10px;
    font-size: 3.2rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .22);
    user-select: none;
    transition: color var(--t) var(--ease), -webkit-text-stroke-color var(--t) var(--ease);
}

.step.is-active .step__no,
.step:hover .step__no {
    color: rgba(136, 29, 255, .3);
    -webkit-text-stroke-color: var(--accent-200);
}

.process.has-pin {
    padding-block: 0;
}

.has-pin .process__pin {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    padding-top: 40px;
    overflow: hidden;
}

.has-pin .process__pin > .container {
    width: 100%;
}

.has-pin .head {
    margin-bottom: clamp(20px, 3vh, 36px);
}

.has-pin .process__grid {
    display: flex;
    width: max-content;
    will-change: transform;
}

.has-pin .step {
    flex: none;
    width: clamp(340px, 36vw, 500px);
}

/* ---- Work: full-width cards that stack on top of each other ---- */
.work__big {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 14px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .8);
}

.work__big b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--white);
}

/* Stacked cards have to hide the one beneath, so no glass here */
.work .work__card {
    background: linear-gradient(165deg, var(--surface-3), var(--surface-1));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

@media (min-width: 981px) and (min-height: 640px) {

    /* Block, not grid: a sticky grid item can't leave its own grid cell */
    .work__grid {
        display: block;
    }

    .work .work__card {
        position: sticky;
        top: calc(76px + var(--i, 0) * 14px);
        flex-direction: row;
        min-height: 360px;
        margin-bottom: 28px;
        transform-origin: top center;
        scale: calc(1 - var(--stack, 0) * .06);
        filter: brightness(calc(1 - var(--stack, 0) * .5));
    }

    .work .work__card:last-child {
        margin-bottom: 0;
    }

    .work .work__cover {
        flex: 0 0 46%;
        height: auto;
        border-bottom: 0;
        border-right: 1px solid var(--line);
    }

    /* A lift would fight the stack */
    .work [data-stagger].is-in > .work__card:hover {
        transform: none;
    }
}

/* ---- Testimonials: two rows running opposite ways ---- */
.quotes {
    display: grid;
    gap: clamp(14px, 1.8vw, 22px);
}

.quotes__track--rev {
    animation-direction: reverse;
}

.quote__mark {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    color: var(--accent-300);
    opacity: .55;
    pointer-events: none;
}

/* ---- FAQ ---- */
.faq__list {
    counter-reset: faq;
}

.acc {
    background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.acc.is-open {
    background: linear-gradient(165deg, rgba(136, 29, 255, .17), rgba(255, 255, 255, .012) 70%);
}

.acc__btn > span:first-child::before {
    content: counter(faq, decimal-leading-zero);
    counter-increment: faq;
    margin-right: 14px;
    font-family: var(--font-display);
    font-size: .8em;
    color: var(--accent-300);
}

@media (min-width: 981px) {
    .faq__inner > .head {
        position: sticky;
        top: 120px;
    }
}

/* ---- CTA: grows to full size as it scrolls in (scale from JS) ---- */
.cta::after {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(from var(--panel-angle), transparent 0 58%, var(--accent) 76%, var(--accent-200) 88%, var(--white) 92%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: panelAngle 6s linear infinite;
    pointer-events: none;
}

.cta .h2 {
    font-size: clamp(2.1rem, 5.4vw, 4.2rem);
}

/* --------------------------------------------------------------------------
   19c. ICONS
   Custom SVGs come from component/icons.php and draw on when seen (.is-drawn
   is added in main.js).
   -------------------------------------------------------------------------- */
.svgi {
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .js .svgi * {
        stroke-dasharray: 1;
        stroke-dashoffset: 0;
        transition: stroke-dashoffset 1.3s var(--ease-soft) .3s, opacity .2s linear .3s;
    }

    .js .svgi *:nth-child(2) {
        transition-delay: .5s;
    }

    .js .svgi *:nth-child(n+3) {
        transition-delay: .7s;
    }

    .js .svgi:not(.is-drawn) * {
        stroke-dashoffset: 1;
        opacity: 0;
    }
}

.step__art {
    position: absolute;
    top: clamp(20px, 2.4vw, 28px);
    right: clamp(20px, 2.4vw, 28px);
    width: clamp(48px, 5vw, 66px);
    height: clamp(48px, 5vw, 66px);
    color: var(--accent-200);
    transition: color var(--t) var(--ease), filter var(--t) var(--ease);
}

.step.is-active .step__art,
.step:hover .step__art {
    color: var(--white);
    filter: drop-shadow(0 0 12px var(--accent-300));
}

.step li i {
    font-size: .82rem;
    color: var(--accent-300);
}

.work__cat i {
    margin-right: 5px;
    color: var(--accent-200);
}

.work__spark {
    position: absolute;
    z-index: 2;
    top: 26%;
    right: 6%;
    width: 62%;
    color: rgba(255, 255, 255, .78);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35));
}

.hero__trust-ico {
    margin-right: 4px;
    color: var(--accent-200);
}

.footer h4 i {
    margin-right: 7px;
    color: var(--accent-200);
}

.cta__art {
    position: absolute;
    right: clamp(20px, 4vw, 56px);
    bottom: clamp(18px, 3vw, 40px);
    width: clamp(90px, 13vw, 170px);
    height: clamp(90px, 13vw, 170px);
    color: var(--accent-200);
    opacity: .22;
    pointer-events: none;
}

@media (max-width: 760px) {
    .cta__art {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {

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

    .process__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

}

/* Nav collapses to the drawer */
@media (max-width: 980px) {

    .nav,
    .header__cta .btn {
        display: none;
    }

    .burger {
        display: grid;
    }

    .hero__inner,
    .about__inner,
    .faq__inner {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        order: -1;
        max-width: 520px;
        margin-inline: auto;
        width: 100%;
    }

    .head,
    .hero__copy {
        max-width: none;
    }
}

@media (max-width: 760px) {
    :root {
        --header-h: 68px;
    }

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

    .work__grid,
    .metrics {
        grid-template-columns: 1fr;
    }

    .process__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    /* Vertical connector instead of horizontal on stacked steps */
    .step::before {
        top: 11px;
        left: 6px;
        right: auto;
        width: 1px;
        height: calc(100% + 26px);
        background: linear-gradient(180deg, var(--accent-line), transparent);
    }

    .step:last-child::before {
        height: 0;
    }

    .step {
        padding-top: 0;
        padding-left: 32px;
    }

    .step::after {
        top: 5px;
    }

    .float-badge--tl {
        top: -14px;
        left: -8px;
    }

    .float-badge--br {
        bottom: -14px;
        right: -6px;
    }

    .footer__bottom {
        justify-content: center;
        padding-right: 0;
        padding-bottom: 84px;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn,
    .cta__actions .btn {
        width: 100%;
    }

    .float-badge {
        font-size: .72rem;
        padding: 9px 12px;
    }

    .drawer__nav a {
        font-size: 1.25rem;
    }
}

/* Short landscape phones */
@media (max-height: 560px) and (orientation: landscape) {
    .hero {
        padding-top: calc(var(--header-h) + 32px);
    }

    .drawer {
        overflow-y: auto;
    }

    .drawer__nav a {
        padding: 10px 4px;
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   21. PREFERENCES
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

    [data-reveal],
    [data-stagger] > *,
    .w__i {
        opacity: 1;
        transform: none;
    }

    .marquee__item {
        transform: none;
    }

    .header.is-hidden {
        transform: none;
    }

    .chart__bar {
        transform: scaleY(1);
    }

    .grad {
        -webkit-text-fill-color: var(--white);
        color: var(--white);
        background: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --muted: rgba(255, 255, 255, .86);
        --muted-2: rgba(255, 255, 255, .72);
        --line: rgba(255, 255, 255, .3);
    }
}