/* =======================================================================
   MAGIC LENZ — design tokens
   Signature: light refracted through a lens (brand name payoff).
   ======================================================================= */
:root {
    --void: #F6F7FB;
    --panel: #FFFFFF;
    --panel-2: #EEF1F8;
    --panel-glass: rgba(255,255,255,0.72);
    --line: rgba(18,20,31,0.08);
    --line-bright: rgba(18,20,31,0.14);
    --text: #12141F;
    --muted: #565C72;
    --muted-2: #8890A4;
    --cyan: #0EA5C4;
    --violet: #7C3AED;
    --magenta: #DB2777;
    --amber: #D97706;
    --cyan-tint: rgba(14,165,196,0.08);
    --cyan-tint-strong: rgba(14,165,196,0.16);
    --cyan-ring: rgba(14,165,196,0.35);
    --violet-tint: rgba(124,58,237,0.35);
    --magenta-tint: rgba(219,39,119,0.35);
    --success: #0F9D6B;
    --grad-lens: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
    --grad-panel: linear-gradient(160deg, rgba(14,165,196,0.10), rgba(124,58,237,0.06) 60%, transparent 100%);
    --on-gradient: #04050a;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 18px;
    --radius-sm: 10px;
    --container: 1180px;
    --ease: cubic-bezier(.16,.84,.44,1);
    --shadow-soft: 0 20px 44px -24px rgba(18,20,31,0.18);
    --shadow-lift: 0 24px 54px -20px rgba(18,20,31,0.22);
    /* surfaces that need very different treatment between themes */
    --surface-nav: rgba(255,255,255,0.78);
    --surface-nav-shadow: 0 8px 30px -18px rgba(18,20,31,0.25);
    --surface-drawer: rgba(255,255,255,0.97);
    --surface-ghost: #FFFFFF;
    --surface-ghost-hover: #FBFBFE;
    --surface-input: #FBFBFE;
    --surface-scrolltop: rgba(255,255,255,0.85);
    --texture-panel: rgba(18,20,31,0.02);
    --texture-footer: rgba(18,20,31,0.03);
    --ring-dim: rgba(18,20,31,0.08);
    color-scheme: light;
}

    /* ---- Dark theme override — toggled via [data-theme="dark"] on <html> ---- */
    :root[data-theme="dark"] {
        --void: #05070D;
        --panel: #0B0F1C;
        --panel-2: #10162A;
        --panel-glass: rgba(16,22,42,0.55);
        --line: rgba(255,255,255,0.09);
        --line-bright: rgba(255,255,255,0.16);
        --text: #E7ECF7;
        --muted: #8A93B3;
        --muted-2: #5C6488;
        --cyan: #4CE0FF;
        --violet: #A855F7;
        --magenta: #FF3EA5;
        --amber: #FFB020;
        --cyan-tint: rgba(76,224,255,0.08);
        --cyan-tint-strong: rgba(76,224,255,0.16);
        --cyan-ring: rgba(76,224,255,0.4);
        --violet-tint: rgba(168,85,247,0.4);
        --magenta-tint: rgba(255,62,165,0.4);
        --success: #4CFFA1;
        --grad-panel: linear-gradient(160deg, rgba(76,224,255,0.08), rgba(168,85,247,0.05) 60%, transparent 100%);
        --shadow-soft: 0 20px 44px -24px rgba(0,0,0,0.55);
        --shadow-lift: 0 24px 54px -20px rgba(0,0,0,0.65);
        --surface-nav: rgba(5,7,13,0.72);
        --surface-nav-shadow: none;
        --surface-drawer: rgba(8,11,20,0.97);
        --surface-ghost: rgba(255,255,255,0.02);
        --surface-ghost-hover: rgba(255,255,255,0.06);
        --surface-input: rgba(255,255,255,0.03);
        --surface-scrolltop: rgba(11,15,28,0.8);
        --texture-panel: rgba(255,255,255,0.015);
        --texture-footer: rgba(255,255,255,0.025);
        --ring-dim: rgba(255,255,255,0.08);
        color-scheme: dark;
    }

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    background: var(--void);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1em;
    color: var(--muted);
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

button {
    font-family: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

::selection {
    background: var(--violet);
    color: #fff;
}

/* focus visibility (kept even amid all the motion) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* =======================================================================
   PRELOADER
   ======================================================================= */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--void);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: opacity .7s var(--ease), visibility .7s var(--ease);
}

body:not(.is-loading) .preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__core {
    position: relative;
    width: 120px;
    height: 120px;
}

.preloader__ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.ring {
    fill: none;
    stroke-width: 2.5;
}

.ring--dim {
    stroke: var(--ring-dim);
}

.ring--live {
    /* NOTE: fallback gradient stroke removed — it was immediately overridden
     by the solid --cyan stroke below and never actually rendered. */
    stroke: var(--cyan);
    stroke-dasharray: 540;
    stroke-dashoffset: 540;
    stroke-linecap: round;
    transition: stroke-dashoffset .25s linear;
}

.preloader__mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
    background: var(--grad-lens);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.preloader__label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .18em;
    color: var(--muted);
    text-transform: uppercase;
}

.dots span {
    animation: blink 1.4s infinite;
    opacity: 0;
}

    .dots span:nth-child(2) {
        animation-delay: .2s;
    }

    .dots span:nth-child(3) {
        animation-delay: .4s;
    }

@keyframes blink {
    0%,100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.preloader__pct {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--cyan);
}

/* =======================================================================
   NAV
   ======================================================================= */
.topnav {
    position: fixed;
/*    background-color: #ffffff;*/
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 18px 0;
    transition: padding .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
    border-bottom: 1px solid transparent;
}

    .topnav.is-scrolled {
        padding: 10px 0;
        background: var(--surface-nav);
        box-shadow: var(--surface-nav-shadow);
        backdrop-filter: blur(16px) saturate(140%);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        border-bottom-color: var(--line);
    }

.topnav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand__icon {
    height: 38px;
    width: auto;
    border-radius: 9px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(18,20,31,0.14);
}
.service-page .topnav {
    position: fixed;
    top: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.service-page .navlinks a,
.service-page .brand,
.service-page .themetoggle {
    color: #1a2130;
}

.service-page {
    padding-top: 78px; /* match your navbar's real rendered height */
}

.service-page .navlinks a,
.service-page .brand,
.service-page .themetoggle {
    color: #1a2130;
}
.service-page {
    padding-top: 78px; /* match your navbar's actual rendered height */
}
.brand__logo {
    height: 48px;
    width: auto;
    display: block;
    transition: filter .3s var(--ease);
}

.brand:hover .brand__logo {
    filter: brightness(1.1);
}

.brand__logo--footer {
    background: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    margin-bottom: 2px;
}

.brand__word {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .02em;
    font-size: 1.05rem;
}

    .brand__word em {
        font-style: normal;
        background: var(--grad-lens);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.topnav__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navlinks {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .navlinks a {
        font-size: .88rem;
        color: var(--muted);
        font-weight: 500;
        position: relative;
        padding: 4px 0;
        transition: color .25s;
    }

        .navlinks a:hover {
            color: var(--text);
        }

        .navlinks a[data-nav]::after {
            content: '';
            position: absolute;
            left: 0;
            right: 100%;
            bottom: -2px;
            height: 1px;
            background: var(--grad-lens);
            transition: right .3s var(--ease);
        }

        .navlinks a[data-nav]:hover::after {
            right: 0;
        }

.navlinks__cta {
    background: var(--cyan-tint);
    border: 1px solid var(--cyan-ring);
    padding: 8px 16px !important;
    border-radius: 999px;
    color: var(--cyan) !important;
}

    .navlinks__cta::after {
        display: none;
    }

    .navlinks__cta:hover {
        background: var(--cyan-tint-strong);
    }

.navtoggle {
    display: none;
    background: none;
    border: 1px solid var(--line-bright);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
}

.themetoggle {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid var(--line-bright);
    background: var(--panel-2);
    display: inline-flex;
    align-items: center;
    padding: 2px;
    flex-shrink: 0;
    transition: background .3s, border-color .3s;
}

.themetoggle__thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grad-lens);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-gradient);
    transform: translateX(0);
    transition: transform .35s var(--ease);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

:root[data-theme="dark"] .themetoggle__thumb {
    transform: translateX(20px);
}

.themetoggle__thumb svg {
    width: 12px;
    height: 12px;
}

.themetoggle__icon--sun {
    display: block;
}

.themetoggle__icon--moon {
    display: none;
}

:root[data-theme="dark"] .themetoggle__icon--sun {
    display: none;
}

:root[data-theme="dark"] .themetoggle__icon--moon {
    display: block;
}

@media (max-width: 860px) {
    .navtoggle {
        display: flex;
    }

    .navlinks {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(78vw,320px);
        height: 100vh;
        background: var(--surface-drawer);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform .4s var(--ease);
        border-left: 1px solid var(--line);
    }

        .navlinks.is-open {
            transform: translateX(0);
        }

        .navlinks a {
            font-size: 1.1rem;
        }
}

/* =======================================================================
   HERO — "Lens Core"
   ======================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 90px;
    background: radial-gradient(ellipse 80% 60% at 50% -10%, var(--violet-tint), transparent 60%), radial-gradient(ellipse 60% 50% at 85% 30%, var(--cyan-tint-strong), transparent 60%), var(--void);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .9;
    -webkit-mask-image: linear-gradient(115deg, transparent 0%, transparent 40%, #000 62%);
    mask-image: linear-gradient(115deg, transparent 0%, transparent 40%, #000 62%);
}

.hero__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 40%, var(--void) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 60px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 18px;
}

.eyebrow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.eyebrow--center {
    justify-content: center;
}

.hero__title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    max-width: 16ch;
    margin-bottom: 22px;
}

.hero__gradient {
    background: var(--grad-lens);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__sub {
    max-width: 52ch;
    font-size: 1.08rem;
    color: var(--muted);
    margin-bottom: 34px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero__stats {
    display: flex;
    gap: 32px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat {
    flex: 1;
    min-width: 220px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(12px);
    transition: .35s ease;
}
    .stat:hover {
        transform: translateY(-6px);
        border-color: var(--cyan);
        box-shadow: 0 20px 40px rgba(0,0,0,.15);
    }
.stat__value {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 12px;
}

.stat__num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.stat__suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
}

.stat__label {
    display: block;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
}

@media(max-width:768px) {

    .hero__stats {
        flex-direction: column;
        gap: 18px;
    }

    .stat {
        min-width: 100%;
    }
}

.hero__scrollcue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1.5px solid var(--line-bright);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 2;
}

    .hero__scrollcue span {
        width: 4px;
        height: 8px;
        border-radius: 2px;
        background: var(--cyan);
        animation: scrollcue 1.8s infinite;
    }

@keyframes scrollcue {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(14px);
    }
}

.hero__chips {
    display: none;
}

@media (min-width: 960px) {
    .hero__chips {
        display: block;
        position: absolute;
        top: 0;
        right: 8px;
        width: 260px;
        height: 100%;
        z-index: 2;
        pointer-events: none;
    }

    .chip {
        position: absolute;
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--panel-glass);
        border: 1px solid var(--line-bright);
        backdrop-filter: blur(10px);
        padding: 10px 16px 10px 12px;
        border-radius: 999px;
        box-shadow: var(--shadow-soft);
        font-family: var(--font-mono);
        font-size: .72rem;
        letter-spacing: .02em;
        color: var(--text);
        white-space: nowrap;
        animation: chipfloat 6s ease-in-out infinite;
    }

        .chip svg {
            color: var(--cyan);
            flex-shrink: 0;
        }

    .chip--1 {
        top: 2%;
        right: 70px;
        animation-delay: 0s;
    }

    .chip--2 {
        top: 24%;
        right: -40px;
        animation-delay: .6s;
    }

    .chip--3 {
        top: 50%;
        right: 36px;
        animation-delay: 1.2s;
    }

    .chip--4 {
        top: 74%;
        right: -30px;
        animation-delay: 1.8s;
    }
}

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

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

@media (prefers-reduced-motion: reduce) {
    .chip {
        animation: none;
    }
}

/* =======================================================================
   BUTTONS
   ======================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .92rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    white-space: nowrap;
}

.btn--primary {
    background: var(--grad-lens);
    color: var(--on-gradient);
    box-shadow: 0 8px 30px -8px var(--violet-tint);
}

    .btn--primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 36px -8px var(--violet-tint);
    }

.btn--ghost {
    border-color: var(--line-bright);
    color: var(--text);
    background: var(--surface-ghost);
    box-shadow: var(--shadow-soft);
}

    .btn--ghost:hover {
        background: var(--surface-ghost-hover);
        transform: translateY(-2px);
    }

.magnetic {
    will-change: transform;
}

/* =======================================================================
   SECTIONS (generic)
   ======================================================================= */
.section {
    position: relative;
    padding: 25px 0;
}

.section--panel {
    background: linear-gradient(180deg, transparent, var(--texture-panel) 12%, var(--texture-panel) 88%, transparent);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.section__grid--contact {
    grid-template-columns: .9fr 1.1fr;
}

.section__head h2 {
    margin-bottom: 14px;
}

.section__head--center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section__lede {
    font-size: 1.02rem;
}

.section__body p {
    font-size: 1rem;
}

/* shared "see more" call-to-action row used after grids/lists */
.section__cta {
    text-align: center;
    margin-top: 48px;
}

.section__cta--left {
    text-align: left;
    margin-top: 24px;
}

.section__cta .btn {
    display: inline-flex;
}

.checklist {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .checklist li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        color: var(--text);
        font-size: .95rem;
    }

    .checklist svg {
        color: var(--cyan);
        flex-shrink: 0;
        margin-top: 2px;
    }

@media (max-width: 900px) {
    .section__grid, .section__grid--contact {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section {
        padding: 80px 0;
    }
}

/* scroll reveal */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}

    [data-reveal].is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/* =======================================================================
   SERVICES — node grid
   ======================================================================= */
.filterbar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.filterbar__btn {
    background: transparent;
    border: 1px solid var(--line-bright);
    color: var(--muted);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
}

    .filterbar__btn:hover {
        color: var(--text);
        border-color: var(--cyan);
    }

    .filterbar__btn.is-active {
        background: var(--grad-lens);
        color: var(--on-gradient);
        border-color: transparent;
    }

.nodegrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px,1fr));
    gap: 20px;
}

.node {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--radius);
    background: var(--panel-glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
    overflow: hidden;
}

    .node::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: var(--grad-panel);
        opacity: 0;
        transition: opacity .35s;
    }

    .node:hover {
        transform: translateY(-6px);
        border-color: var(--cyan-ring);
        box-shadow: 0 20px 40px -20px var(--cyan-ring);
    }

.node__glow {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--cyan-tint-strong), transparent 70%);
    top: -60px;
    right: -60px;
    opacity: 0;
    transition: opacity .4s;
}

.node:hover .node__glow {
    opacity: 1;
}

.node__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan-tint);
    color: var(--cyan);
    margin-bottom: 16px;
}

.node__tag {
    position: absolute;
    top: 22px;
    right: 22px;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.node h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.node p {
    font-size: .88rem;
    margin-bottom: 0;
}

.node.is-hidden {
    display: none;
}

/* =======================================================================
   TIMELINE — signal log
   ======================================================================= */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 64px;
        top: 0;
        bottom: 0;
        width: 1px;
        background: linear-gradient(180deg, transparent, var(--line-bright) 8%, var(--line-bright) 92%, transparent);
    }

.timeline__item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 28px;
    padding-bottom: 44px;
    position: relative;
}

    .timeline__item:last-child {
        padding-bottom: 0;
    }

.timeline__marker {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--panel-2);
    border: 1px solid var(--line-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--cyan);
    z-index: 1;
    text-align: center;
    padding: 4px;
}

.timeline__body h3 {
    margin-bottom: 6px;
}

.timeline__body p {
    font-size: .92rem;
    margin-bottom: 0;
}

.reachcard {
    border-radius: 0;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 700px; /* shrinks the overall card */
    margin: 0 auto; /* centers it in the container */
}

    .reachcard img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 0;
    }

/* =======================================================================
   PORTFOLIO
   ======================================================================= */
.portfoliogrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 22px;
}

.pcard {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
    position: relative;
    box-shadow: var(--shadow-soft);
}

    .pcard:hover {
        box-shadow: var(--shadow-lift);
    }

    .pcard:hover {
        transform: translateY(-6px) rotateX(1deg);
        border-color: var(--violet-tint);
    }

.pcard__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--violet);
    margin-bottom: 18px;
}

    .pcard__top span {
        font-family: var(--font-mono);
        font-size: .68rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted-2);
    }

.pcard h3 {
    margin-bottom: 8px;
}

.pcard p {
    font-size: .9rem;
}

.pcard__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--cyan);
}


/* =======================================================================
   CLIENTS — Logo Marquee
   ======================================================================= */

.marquee {
    width: 100%;
    overflow: hidden;
    padding: 25px 0;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 28px;
    width: max-content;
    animation: marquee-scroll 28s linear infinite;
}

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

.marquee__item {
    flex-shrink: 0;
    width: 180px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
}

    .marquee__item:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 35px rgba(0,0,0,.15);
    }

.marquee__logo {
    max-width: 140px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Show original colors */
    filter: none;
    transition: transform .3s ease;
}

.marquee__item:hover .marquee__logo {
    transform: scale(1.08);
}

@keyframes marquee-scroll {

    from {
        transform: translateX(0);
    }

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

/* ===========================
   Tablet
=========================== */

@media (max-width:992px) {

    .marquee__track {
        gap: 22px;
        animation-duration: 24s;
    }

    .marquee__item {
        width: 150px;
        height: 95px;
    }

    .marquee__logo {
        max-width: 110px;
        max-height: 60px;
    }
}

/* ===========================
   Mobile
=========================== */

@media (max-width:768px) {

    .marquee {
        padding: 15px 0;
    }

    .marquee__track {
        gap: 16px;
        animation-duration: 20s;
    }

    .marquee__item {
        width: 120px;
        height: 80px;
        padding: 12px;
        border-radius: 14px;
    }

    .marquee__logo {
        max-width: 90px;
        max-height: 50px;
    }
}
/* =======================================================================
   CONTACT
   ======================================================================= */
.contactinfo {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contactinfo__row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

    .contactinfo__row strong {
        font-family: var(--font-mono);
        font-size: .68rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--cyan);
    }

    .contactinfo__row span {
        font-size: .94rem;
    }

.contactform {
    background: var(--panel-glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field label {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500;
}

.field input, .field textarea {
    background: var(--surface-input);
    border: 1px solid var(--line-bright);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .94rem;
    resize: vertical;
    transition: border-color .25s, box-shadow .25s;
}

    .field input:focus, .field textarea:focus {
        border-color: var(--cyan);
        box-shadow: 0 0 0 3px var(--cyan-tint-strong);
        outline: none;
    }

.field__err {
    font-size: .76rem;
    color: var(--magenta);
    min-height: 1em;
}

.contactform__submit {
    width: 100%;
    justify-content: center;
    position: relative;
    margin-top: 6px;
}

.btn__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.25);
    border-top-color: var(--on-gradient);
    display: none;
    animation: spin .7s linear infinite;
}

.contactform__submit.is-loading .btn__label {
    opacity: .4;
}

.contactform__submit.is-loading .btn__spinner {
    display: inline-block;
}

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

.contactform__status {
    margin: 14px 0 0;
    font-size: .88rem;
    min-height: 1.4em;
    text-align: center;
}

    .contactform__status.is-success {
        color: var(--success);
    }

    .contactform__status.is-error {
        color: var(--magenta);
    }

@media (max-width:600px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

/* =======================================================================
   FOOTER
   ======================================================================= */
.sitefooter {
    position: relative;
    background: var(--panel);
    border-top: 1px solid var(--line);
    padding-top: 70px;
    overflow: hidden;
}

.sitefooter__skyline {
    position: absolute;
    inset: 0;
    opacity: .5;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, var(--cyan-tint) 100%), repeating-linear-gradient(90deg, var(--texture-footer) 0 2px, transparent 2px 48px);
}

.sitefooter__inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px 50px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

.sitefooter__brand p {
    margin-top: 14px;
    font-size: .88rem;
    max-width: 32ch;
}

.sitefooter__col h4 {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 14px;
}

.sitefooter__col p {
    font-size: .88rem;
    margin-bottom: 8px;
}

.sitefooter__col a:hover {
    color: var(--cyan);
}

.sitefooter__bottom {
    position: relative;
    border-top: 1px solid var(--line);
    padding: 22px 24px;
    font-size: .78rem;
    color: var(--muted-2);
    text-align: center;
}

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

/* =======================================================================
   SCROLL TO TOP
   ======================================================================= */
.scrolltop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 300;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-bright);
    background: var(--surface-scrolltop);
    backdrop-filter: blur(10px);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .3s, transform .3s, border-color .3s;
}

    .scrolltop.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .scrolltop:hover {
        border-color: var(--cyan);
    }

/* =======================================================================
   PROCESS FLOW (Details page)
   ======================================================================= */
.processflow {
    max-width: 1000px;
    margin: 0 auto;
}

.processflow__step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 48px;
}

    .processflow__step:last-child {
        margin-bottom: 0;
    }

.processflow__number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--grad-lens);
    color: var(--on-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    box-shadow: 0 8px 24px -10px var(--violet-tint);
}

.processflow__body h3 {
    margin-top: 0;
}

.processflow__body p {
    font-size: 1rem;
}

.processflow__connector {
    height: 40px;
    border-left: 3px solid var(--line-bright);
    margin-left: 40px;
    opacity: .5;
}

/* =======================================================================
   AUTOMATION LAYERS
   ======================================================================= */
.automationlayers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 32px;
}

.layer {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--panel-glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    transition: transform .3s var(--ease), box-shadow .3s;
}

    .layer:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lift);
    }

.layer__icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.layer h3 {
    margin-top: 0;
}

/* =======================================================================
   GLOBAL REACH MAP (Details page)
   ======================================================================= */
.reachmap {
    margin: 60px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

/* =======================================================================
   WHY US GRID (Details page)
   ======================================================================= */
.whyusgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 28px;
    margin-top: 48px;
}

.whyuscard {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--panel-glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s;
    box-shadow: var(--shadow-soft);
}

    .whyuscard:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lift);
    }

    .whyuscard h3 {
        margin-top: 0;
        margin-bottom: 8px;
    }

    .whyuscard p {
        font-size: .92rem;
        margin-bottom: 0;
    }

/* =======================================================================
   VIDEO BACKGROUND SECTION
   ======================================================================= */
.videobg {
    background: linear-gradient(135deg, rgba(76,58,237,0.15), rgba(14,165,196,0.15)), var(--void);
    position: relative;
}
/* modifier for the hero-style full-bleed video section (was inlined before) */
.videobg--hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.videobg__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .35;
    filter: saturate(0.7) brightness(0.9);
    z-index: 0;
}

.videobg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5,7,13,0.7) 60%, rgba(5,7,13,0.9) 100%);
    z-index: 1;
}

:root[data-theme="light"] .videobg__overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(246,247,251,0.5) 60%, rgba(246,247,251,0.8) 100%);
}

.videobg__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.videobg__title {
    font-size: clamp(2rem,5vw,3.2rem);
    max-width: 18ch;
    margin: 0 auto 18px;
}

.videobg__sub {
    max-width: 52ch;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    color: var(--text);
}

/* =======================================================================
   DIRECTOR'S MESSAGE SECTION
   ======================================================================= */
.directormsg-wrap {
    margin-top: 60px;
}

.directormsg {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.directormsg__photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lift);
}

    .directormsg__photo img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: var(--radius);
    }

.directormsg__quote {
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    color: var(--text);
    margin: 0 0 28px;
    border-left: 4px solid var(--grad-lens);
    padding-left: 20px;
    line-height: 1.5;
}

.directormsg__name {
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 4px;
    color: var(--text);
}

.directormsg__role {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 28px;
}

.directormsg__content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
}

    .directormsg__content p:first-of-type {
        color: var(--text);
    }

.directormsg__closing {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .directormsg {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* =======================================================================
   THREE PILLARS
   ======================================================================= */
.pillars-wrap {
    margin-top: 60px;
}

.pillars {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap; /* Keep all 3 in one line */
}

.pillar {
    flex: 1;
    padding: 32px;
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    text-align: center;
}

.pillar__num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan); /* fixed: was var(--primary), which was never defined */
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .pillars {
        flex-wrap: wrap; /* Stack on mobile */
    }

    .pillar {
        min-width: 100%;
    }
}
.director-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end; /* pushes it to the right */
}

.btn-director {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px; /* smaller than before */
    font-size: 0.85rem; /* smaller text */
    background: #0B5FFF;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

    .btn-director:hover {
        background: #083ea8;
        transform: translateY(-3px);
    }

    .btn-director span {
        transition: .3s;
    }

    .btn-director:hover span {
        transform: translateX(6px);
    }