/* ========== GLOBAL FONT SYSTEM ========== */

:root {
    --font-body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --color-bg: #0B0B0B;
    --color-blue: #4D9FFF;
    --color-blue-light: #6DB3FF;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: #ffffff;
    cursor: none;
    letter-spacing: -0.015em;
}

/* Display Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.logo-text,
.nav-link,
.font-poppins {
    font-family: var(--font-display);
    letter-spacing: -0.045em;
}

/* Body Typography */
p,
a,
button,
input,
textarea,
select,
li {
    font-family: var(--font-body);
}

/* Premium readable paragraphs */
p {
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.015em;
}

/* Buttons / Links */
button,
a {
    font-weight: 600;
}

/* Selection */
::selection {
    background: var(--color-blue);
    color: var(--color-bg);
}

/* Better number rendering */
.counter,
[data-counter] {
    font-variant-numeric: tabular-nums;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(77, 159, 255, 0.15);
    border: 1.5px solid #4D9FFF;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
    box-shadow: 0 0 20px rgba(77, 159, 255, 0.4);
    display: none;
}

@media (min-width: 768px) {
    #custom-cursor {
        display: block;
    }
}

#custom-cursor.hover {
    width: 48px;
    height: 48px;
    background: rgba(77, 159, 255, 0.3);
    border-color: #6DB3FF;
}

/* Progress Bar */
#progress-bar {
    transition: width 0.15s ease-out;
    background: linear-gradient(90deg, #4D9FFF, #6DB3FF, #FFFFFF);
    box-shadow: 0 0 12px rgba(77, 159, 255, 0.8);
}

/* Glitch Effect */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    top: 0;
    color: #4D9FFF;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    clip: rect(0, 900px, 0, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
    pointer-events: none;
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 8px, 0); }
    10% { clip: rect(18px, 9999px, 92px, 0); }
    20% { clip: rect(75px, 9999px, 5px, 0); }
    30% { clip: rect(12px, 9999px, 68px, 0); }
    40% { clip: rect(54px, 9999px, 23px, 0); }
    50% { clip: rect(8px, 9999px, 81px, 0); }
    60% { clip: rect(38px, 9999px, 15px, 0); }
    70% { clip: rect(66px, 9999px, 44px, 0); }
    80% { clip: rect(25px, 9999px, 74px, 0); }
    90% { clip: rect(48px, 9999px, 19px, 0); }
    100% { clip: rect(81px, 9999px, 55px, 0); }
}

/* Rotating Border */
.rotating-border {
    position: relative;
    border-radius: 1.25rem;
    background: #121212;
}

    /* =========================================
    NEXT-GEN SERVICE CARDS
    ========================================= */

    .service-card {
        position: relative;
        overflow: hidden;

        background:
                linear-gradient(
                        180deg,
                        rgba(255,255,255,0.03),
                        rgba(255,255,255,0.015)
                );

        backdrop-filter: blur(20px);

        transition:
                transform 0.55s cubic-bezier(.19,1,.22,1),
                border-color 0.45s ease,
                background 0.45s ease,
                box-shadow 0.55s ease;

        will-change: transform;
    }

    /* Ambient Glow */
    .service-card::before {
        content: "";

        position: absolute;
        inset: -40%;

        background:
                radial-gradient(
                        circle at center,
                        rgba(77,159,255,0.22),
                        transparent 60%
                );

        opacity: 0;

        transform: scale(0.7);

        transition:
                opacity 0.7s ease,
                transform 0.9s cubic-bezier(.19,1,.22,1);

        pointer-events: none;
    }

    /* Glass Shine */
    .service-card::after {
        content: "";

        position: absolute;
        inset: 0;

        background:
                linear-gradient(
                        115deg,
                        transparent 20%,
                        rgba(255,255,255,0.03) 40%,
                        rgba(255,255,255,0.08) 50%,
                        rgba(255,255,255,0.03) 60%,
                        transparent 80%
                );

        transform:
                translateX(-120%)
                skewX(-12deg);

        transition:
                transform 1.1s cubic-bezier(.19,1,.22,1);

        pointer-events: none;
    }

    /* Hover */
    .service-card:hover {
        transform:
                translateY(-10px)
                scale(1.015);

        border-color:
                rgba(77,159,255,0.35);

        background:
                linear-gradient(
                        180deg,
                        rgba(255,255,255,0.05),
                        rgba(255,255,255,0.025)
                );

        box-shadow:
                0 10px 30px rgba(0,0,0,0.45),
                0 0 30px rgba(77,159,255,0.12),
                0 0 60px rgba(77,159,255,0.08);
    }

    /* Glow Fade In */
    .service-card:hover::before {
        opacity: 1;
        transform: scale(1.15);
    }

    /* Shine Movement */
    .service-card:hover::after {
        transform:
                translateX(120%)
                skewX(-12deg);
    }

    /* Icon Animation */
    .service-card i {
        transition:
                transform 0.55s cubic-bezier(.19,1,.22,1),
                filter 0.45s ease,
                color 0.45s ease;
    }

    .service-card:hover i {
        transform:
                translateY(-4px)
                scale(1.08);

        filter:
                drop-shadow(0 0 18px rgba(77,159,255,0.65));

        color: #A8D1FF;
    }

    /* Typography */
    .service-card h3 {
        transition:
                transform 0.45s ease,
                color 0.45s ease;
    }

    .service-card:hover h3 {
        transform: translateY(-2px);
        color: white;
    }

    .service-card p {
        transition:
                color 0.45s ease,
                opacity 0.45s ease;
    }

    .service-card:hover p {
        color: rgba(255,255,255,0.82);
    }

    /* Mobile */
    @media (max-width: 768px) {

        .service-card:hover {
            transform:
                    translateY(-4px)
                    scale(1.01);
        }

    }

.hero-title,
.hero-title span,
.section-title,
.section-title span {
    font-family: var(--font-display);
}

/* Swiper Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #4D9FFF !important;
    background: rgba(18, 18, 18, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 44px !important;
    height: 44px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold !important;
}

/* Mobile Menu */
@media (max-width: 767px) {
    body {
        cursor: auto;
    }
    #custom-cursor {
        display: none !important;
    }
}




/* =========================
MOBILE & TABLET FIXES
========================= */

/* Prevent horizontal overflow */
html,
body {
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Mobile viewport height fix */
:root {
    --app-height: 100vh;
}

@supports (height: 100dvh) {
    :root {
        --app-height: 100dvh;
    }
}

/* HERO FIX */
#home {
    min-height: var(--app-height);
}

/* NAVBAR FIX */
nav {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

    #hero-glow{
        position:absolute;
        left:0;
        top:0;
    }

/* Prevent navbar layout jump */
body {
    padding-top: 0;
}

nav,
.mobile-menu,
footer {
    font-family: var(--font-body);
}

nav a,
.mobile-menu a {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card h3,
.work-card h3,
.about-card h3,
.contact-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.service-card p,
.work-card p,
.about-card p,
.contact-card p {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.015em;
}

/* Mobile menu */
#mobile-menu {
    height: 100dvh;
    width: 100%;
    overflow-y: auto;
}

/* Prevent iOS input zoom */
input,
textarea,
select {
    font-size: 16px !important;
}

/* SWIPER MOBILE FIX */
.swiper {
    overflow: hidden !important;
    border-radius: 1rem;
}

.swiper-slide {
    width: 100% !important;
}

/* iOS blur fallback */
.backdrop-blur-xl,
.backdrop-blur-md {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

/* HERO TEXT MOBILE */
@media (max-width: 767px) {

    h1.glitch {
        font-size: 2.8rem !important;
        line-height: 1.05 !important;
    }

    #home p {
        font-size: 0.95rem !important;
        line-height: 1.7;
    }

    section {
        overflow: hidden;
    }

    .rotating-border::before {
        display: none;
    }

    /* Buttons */
    button {
        min-height: 48px;
    }

    /* Section spacing */
    #services,
    #work,
    #about,
    #contact {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* Cards */
    .rotating-border {
        border-radius: 1.2rem;
    }

    /* Counters */
    .counter {
        font-size: 1.8rem !important;
    }
}

/* TABLET FIXES */
@media (min-width: 768px) and (max-width: 1024px) {

    h1.glitch {
        font-size: 4.8rem !important;
        line-height: 1.05;
    }

    .swiper-slide {
        height: 420px !important;
    }

    #services .grid,
    #about .grid {
        gap: 2rem;
    }
}

    @media (max-width: 1024px) {

        .glitch::after {
            display: none;
        }

        #hero-glow {
            display: none !important;
        }

        html {
            scroll-behavior: smooth;
        }
    }


/* =========================================
PREMIUM SCROLL PROGRESS
========================================= */

#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 99999;
    pointer-events: none;
}

/* Track */
#progress-track {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
}

/* Main Bar */
#progress-bar {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: 0 999px 999px 0;

    background:
            linear-gradient(
                    90deg,
                    #4D9FFF 0%,
                    #6DB3FF 35%,
                    #A8D1FF 65%,
                    #FFFFFF 100%
            );

    box-shadow:
            0 0 10px rgba(77,159,255,0.7),
            0 0 25px rgba(77,159,255,0.45),
            0 0 45px rgba(77,159,255,0.25);

    overflow: hidden;

    transition: box-shadow 0.3s ease;
}

/* Glow Aura */
#progress-glow {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 14px;

    background: #6DB3FF;
    border-radius: 999px;

    filter: blur(12px);
    opacity: 0.9;
}

/* Animated Shine */
#progress-shine {
    position: absolute;
    inset: 0;

    background:
            linear-gradient(
                    110deg,
                    transparent 0%,
                    rgba(255,255,255,0.15) 40%,
                    rgba(255,255,255,0.7) 50%,
                    rgba(255,255,255,0.15) 60%,
                    transparent 100%
            );

    background-size: 200% 100%;

    animation: progressShine 2.2s linear infinite;
}

/* Shine Animation */
@keyframes progressShine {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {

    #progress-container {
        height: 4px;
    }

    #progress-bar {
        box-shadow:
                0 0 8px rgba(77,159,255,0.7),
                0 0 18px rgba(77,159,255,0.35);
    }

    #progress-glow {
        width: 24px;
        height: 10px;
    }
}

    /* ========== PREMIUM HERO ========== */

    .hero-luxury-bg {
        background:
                radial-gradient(circle at 50% 35%, rgba(77, 159, 255, 0.16), transparent 34%),
                radial-gradient(circle at 20% 20%, rgba(109, 179, 255, 0.11), transparent 32%),
                radial-gradient(circle at 80% 25%, rgba(77, 159, 255, 0.08), transparent 28%),
                linear-gradient(180deg, #050505 0%, #080808 42%, #000 100%);
    }

    .hero-grid {
        background-image:
                linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
        background-size: 72px 72px;
        mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
    }

    .hero-noise {
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    }

    .hero-orb {
        position: absolute;
        border-radius: 999px;
        pointer-events: none;
        filter: blur(70px);
        opacity: 0.42;
        animation: heroFloat 9s ease-in-out infinite alternate;
    }

    .hero-orb-1 {
        width: 420px;
        height: 420px;
        top: 14%;
        left: 8%;
        background: rgba(77, 159, 255, 0.28);
    }

    .hero-orb-2 {
        width: 360px;
        height: 360px;
        right: 8%;
        top: 20%;
        background: rgba(109, 179, 255, 0.18);
        animation-delay: -2s;
    }

    .hero-orb-3 {
        width: 300px;
        height: 300px;
        left: 50%;
        bottom: 6%;
        transform: translateX(-50%);
        background: rgba(77, 159, 255, 0.14);
        animation-delay: -4s;
    }

    .hero-ring {
        animation: heroPulseRing 5.5s ease-in-out infinite;
    }

    .hero-ring-delay {
        animation-delay: -2s;
    }

    .hero-mark {
        position: relative;
        transform-style: preserve-3d;
    }

    .hero-mark::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(77,159,255,0.45), rgba(255,255,255,0.04));
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
        pointer-events: none;
    }

    .hero-title {
        font-family: var(--font-display);
        font-weight: 700;
        letter-spacing: -0.075em;
        text-wrap: balance;
        text-shadow: 0 0 70px rgba(77, 159, 255, 0.16);
    }

    .hero-title-word {
        transform: translateY(0);
        opacity: 1;
        will-change: transform, opacity;
        font-family: var(--font-display);
        font-feature-settings: "ss01" 1, "kern" 1;
    }

    .hero-stat-card {
        padding: 18px 20px;
        border-radius: 24px;
        border: 1px solid rgba(255,255,255,0.08);
        background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
        backdrop-filter: blur(18px);
        box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.08),
                0 24px 70px rgba(0,0,0,0.25);
        transition: 0.45s ease;
    }

    .hero-stat-card:hover {
        transform: translateY(-6px);
        border-color: rgba(77,159,255,0.36);
        box-shadow:
                inset 0 1px 0 rgba(255,255,255,0.12),
                0 0 45px rgba(77,159,255,0.16);
    }

    .hero-scroll {
        opacity: 0.72;
    }

    @media (max-height: 780px) {
        .hero-scroll {
            display: none !important;
        }
    }

    @keyframes heroFloat {
        0% {
            transform: translate3d(0, 0, 0) scale(1);
        }
        100% {
            transform: translate3d(28px, -32px, 0) scale(1.08);
        }
    }

    @keyframes heroPulseRing {
        0%, 100% {
            opacity: 0.28;
            transform: translate(-50%, -50%) scale(1);
        }
        50% {
            opacity: 0.08;
            transform: translate(-50%, -50%) scale(1.08);
        }
    }

    @keyframes heroScrollFloat {
        0%, 100% {
            transform: translateX(-50%) translateY(0);
            opacity: 0.45;
        }
        50% {
            transform: translateX(-50%) translateY(8px);
            opacity: 1;
        }
    }

    @media (max-width: 768px) {
        .hero-orb {
            filter: blur(55px);
            opacity: 0.32;
        }

        .hero-orb-1 {
            width: 260px;
            height: 260px;
            left: -80px;
            top: 18%;
        }

        .hero-orb-2 {
            width: 240px;
            height: 240px;
            right: -90px;
            top: 28%;
        }

        .hero-grid {
            background-size: 48px 48px;
        }

        .hero-stat-card {
            padding: 16px;
        }
    }


.hero-title-word {
    font-feature-settings: "ss01" 1, "kern" 1;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.75;
}

.hero-badge {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.18em;
}

.hero-actions button,
.hero-actions a {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: -0.015em;
}

    /* ========== LOGO BIG BANG INTRO ========== */

    .logo-intro {
        position: fixed;
        inset: 0;
        z-index: 100000;
        overflow: hidden;
        display: grid;
        place-items: center;
        pointer-events: none;
        background:
                radial-gradient(circle at center, rgba(77, 159, 255, 0.16), transparent 34%),
                radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 18%),
                #000;
    }

    .logo-intro.is-hidden {
        visibility: hidden;
    }

    .intro-logo {
        position: fixed;
        top: 50%;
        left: 50%;
        width: clamp(130px, 16vw, 220px);
        height: auto;
        z-index: 4;
        transform: translate(-50%, -50%);
        transform-origin: center;
        filter:
                drop-shadow(0 0 18px rgba(255, 255, 255, 0.24))
                drop-shadow(0 0 55px rgba(77, 159, 255, 0.42));
    }

    .intro-burst {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 42vmax;
        height: 42vmax;
        border-radius: 999px;
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
        pointer-events: none;
        mix-blend-mode: screen;
    }

    .intro-burst-1 {
        background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(77,159,255,0.42) 18%, transparent 58%);
        filter: blur(14px);
    }

    .intro-burst-2 {
        width: 58vmax;
        height: 58vmax;
        background: conic-gradient(
                from 90deg,
                transparent,
                rgba(77,159,255,0.38),
                transparent,
                rgba(255,255,255,0.35),
                transparent
        );
        filter: blur(22px);
    }

    .intro-burst-3 {
        width: 18vmax;
        height: 18vmax;
        border: 1px solid rgba(255,255,255,0.35);
        box-shadow:
                0 0 45px rgba(77,159,255,0.45),
                inset 0 0 45px rgba(77,159,255,0.28);
    }

    .intro-particles span {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 3px;
        height: 42px;
        border-radius: 999px;
        background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(77,159,255,0));
        box-shadow: 0 0 18px rgba(77,159,255,0.75);
        opacity: 0;
        transform-origin: center;
    }

    .hero-logo-img {
        width: 64%;
        height: 64%;
        object-fit: contain;
        display: block;
        filter:
                drop-shadow(0 0 18px rgba(255, 255, 255, 0.16))
                drop-shadow(0 0 32px rgba(77, 159, 255, 0.32));
    }

    html.intro-running,
    html.intro-running body {
        overflow: hidden;
    }

    @media (max-width: 768px) {
        .intro-logo {
            width: 138px;
        }

        .intro-burst {
            width: 62vmax;
            height: 62vmax;
        }

        .intro-burst-2 {
            width: 82vmax;
            height: 82vmax;
        }
    }

    /* ========== HERO SCROLL INDICATOR FIX ========== */

    .hero-scroll-side {
        animation: heroScrollSideFloat 2.4s ease-in-out infinite;
    }

    @keyframes heroScrollSideFloat {
        0%, 100% {
            transform: translateY(0);
            opacity: 0.68;
        }

        50% {
            transform: translateY(8px);
            opacity: 1;
        }
    }

    @media (max-height: 850px) {
        .hero-scroll-side {
            display: none !important;
        }
    }


/* ========== PREMIUM WORK PARALLAX SECTION ========== */

.work-premium-section {
    isolation: isolate;
}

.work-header {
    will-change: transform, opacity;
}

.work-stat {
    min-width: 120px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
    backdrop-filter: blur(18px);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.06),
            0 20px 70px rgba(0,0,0,0.28);
}

.work-stat span:last-child,
.work-stat > span:not(.counter) {
    color: rgba(255,255,255,0.48);
    font-size: 0.75rem;
}

.work-parallax-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: repeat(2, minmax(280px, 360px));
    gap: 24px;
    perspective: 1200px;
}

.work-parallax-card {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.035);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.08),
            0 30px 100px rgba(0,0,0,0.36);
    transform-style: preserve-3d;
    will-change: transform;
    transition:
            border-color 0.45s ease,
            box-shadow 0.45s ease;
}

.work-parallax-card.is-large {
    grid-row: span 2;
    min-height: 744px;
}

.work-parallax-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
            radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(77,159,255,0.18), transparent 34%),
            linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.08), transparent 42%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.work-parallax-card:hover {
    border-color: rgba(77,159,255,0.42);
    box-shadow:
            inset 0 1px 0 rgba(255,255,255,0.12),
            0 35px 120px rgba(0,0,0,0.45),
            0 0 70px rgba(77,159,255,0.14);
}

.work-parallax-card:hover::before {
    opacity: 1;
}

.work-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.work-parallax-image {
    width: 115%;
    height: 115%;
    max-width: none;
    object-fit: cover;
    opacity: 0.72;
    transform: scale(1.08);
    will-change: transform;
    filter: saturate(0.92) contrast(1.05) brightness(0.78);
}

.work-image-gradient {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.25) 34%, rgba(0,0,0,0.88) 100%),
            radial-gradient(circle at 25% 18%, rgba(77,159,255,0.28), transparent 34%);
}

.work-card-content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 4;
    transform: translateZ(70px);
}

.work-card-content h3 {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.95;
    color: #ffffff;
}

.work-card-content p {
    max-width: 520px;
    margin-top: 14px;
    color: rgba(255,255,255,0.68);
    font-size: 0.95rem;
    line-height: 1.75;
}

.work-tag {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(77,159,255,0.28);
    background: rgba(77,159,255,0.10);
    color: #BFDFFF;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.work-result {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(16px);
}

.work-result span {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #ffffff;
}

.work-result small {
    color: rgba(255,255,255,0.52);
    font-size: 0.75rem;
}

/* Desktop-only premium depth */
@media (min-width: 1025px) {
    .work-parallax-card {
        --base-ty: 0px;
        --scroll-y: 0px;
        --rx: 0deg;
        --ry: 0deg;
        --base-ry: 0deg;
        --rz: 0deg;
        --scale: 1;

        transform:
                translateY(calc(var(--base-ty) + var(--scroll-y)))
                rotateX(var(--rx))
                rotateY(calc(var(--base-ry) + var(--ry)))
                rotateZ(var(--rz))
                scale(var(--scale));
    }

    .work-parallax-card:nth-child(1) {
        --base-ry: -3deg;
    }

    .work-parallax-card:nth-child(2) {
        --base-ty: 24px;
        --base-ry: 3deg;
    }

    .work-parallax-card:nth-child(3) {
        --base-ty: -8px;
        --base-ry: 2deg;
    }
}

/* Tablet / Mobile */
@media (max-width: 1024px) {
    .work-parallax-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        perspective: none;
    }

    .work-parallax-card,
    .work-parallax-card.is-large {
        min-height: 420px;
        grid-row: auto;
        transform: none !important;
    }

    .work-parallax-image {
        width: 100%;
        height: 100%;
        transform: scale(1.02) !important;
    }

    .work-card-content {
        transform: none;
    }
}

@media (max-width: 640px) {
    .work-parallax-card,
    .work-parallax-card.is-large {
        min-height: 360px;
        border-radius: 24px;
    }

    .work-card-content {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .work-card-content h3 {
        font-size: 2rem;
    }

    .work-card-content p {
        font-size: 0.85rem;
    }

    .work-result {
        margin-top: 16px;
    }
}
/* ========== PREMIUM MOTION SYSTEM ========== */

:root {
    --motion-ease: cubic-bezier(.19, 1, .22, 1);
    --motion-soft: cubic-bezier(.16, 1, .3, 1);
}

[data-site-nav] {
    transition:
            background-color 0.35s var(--motion-ease),
            border-color 0.35s var(--motion-ease),
            box-shadow 0.35s var(--motion-ease),
            backdrop-filter 0.35s var(--motion-ease);
}

[data-site-nav].is-scrolled {
    background: rgba(0, 0, 0, 0.86);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
            0 14px 55px rgba(0, 0, 0, 0.36),
            0 0 38px rgba(77, 159, 255, 0.08);
    backdrop-filter: blur(24px);
}

[data-reveal] {
    --reveal-y: 34px;
    opacity: 0;
    transform: translate3d(0, var(--reveal-y), 0) scale(0.985);
    transition:
            opacity 0.9s var(--motion-ease),
            transform 0.9s var(--motion-ease),
            filter 0.9s var(--motion-ease);
    filter: blur(8px);
    will-change: transform, opacity, filter;
}

[data-reveal].is-revealed {
    --reveal-y: 0px;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

[data-parallax] {
    --parallax-x: 0px;
    --parallax-y: 0px;
    --parallax-rz: 0deg;
    --parallax-scale: 1;
    will-change: transform;
}

.hero-luxury-bg[data-parallax],
.hero-grid[data-parallax] {
    transform:
            translate3d(var(--parallax-x), var(--parallax-y), 0)
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
    transform-origin: center;
}

.hero-orb {
    --parallax-x: 0px;
    --parallax-y: 0px;
    --float-x: 0px;
    --float-y: 0px;
    --parallax-rz: 0deg;
    --parallax-scale: 1;
    animation: none;
    transform:
            translate3d(
                    calc(var(--parallax-x) + var(--float-x)),
                    calc(var(--parallax-y) + var(--float-y)),
                    0
            )
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

.hero-title[data-parallax],
.hero-subtitle[data-parallax],
.hero-actions[data-parallax] {
    transform:
            translate3d(var(--parallax-x), var(--parallax-y), 0)
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

.hero-mark {
    --float-x: 0px;
    --float-y: 0px;
    --rx: 0deg;
    --ry: 0deg;
    --scale: 1;
    transform:
            translate3d(var(--float-x), var(--float-y), 0)
            rotateX(var(--rx))
            rotateY(var(--ry))
            scale(var(--scale));
    transition:
            box-shadow 0.45s var(--motion-ease),
            border-color 0.45s var(--motion-ease);
}

.hero-mark:hover {
    border-color: rgba(77, 159, 255, 0.34);
    box-shadow:
            inset 0 0 35px rgba(255,255,255,0.045),
            0 0 95px rgba(77,159,255,0.24);
}

.hero-mark::before {
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
}

.hero-title-word {
    font-family: var(--font-display);
}

.service-card {
    --reveal-y: 0px;
    --scroll-y: 0px;
    --hover-y: 0px;
    --rx: 0deg;
    --ry: 0deg;
    --scale: 1;
    transform:
            translate3d(0, calc(var(--reveal-y) + var(--scroll-y) + var(--hover-y)), 0)
            rotateX(var(--rx))
            rotateY(var(--ry))
            scale(var(--scale));
    transform-style: preserve-3d;
}

.service-card[data-reveal] {
    --reveal-y: 36px;
    transform:
            translate3d(0, calc(var(--reveal-y) + var(--scroll-y) + var(--hover-y)), 0)
            rotateX(var(--rx))
            rotateY(var(--ry))
            scale(var(--scale));
}

.service-card[data-reveal].is-revealed {
    --reveal-y: 0px;
    opacity: 1;
    filter: blur(0);
}

.service-card:hover {
    --hover-y: -10px;
    --scale: 1.015;
    transform:
            translate3d(0, calc(var(--reveal-y) + var(--scroll-y) + var(--hover-y)), 0)
            rotateX(var(--rx))
            rotateY(var(--ry))
            scale(var(--scale));
}

.service-card i {
    transform: translate3d(0, 0, 0);
}

.service-card:hover i {
    transform: translate3d(0, -4px, 28px) scale(1.08);
}

.work-stat[data-reveal] {
    transform: translate3d(0, var(--reveal-y), 0) scale(0.98);
}

.work-stat[data-reveal].is-revealed {
    transform: translate3d(0, 0, 0) scale(1);
}

.work-parallax-card {
    --base-ty: 0px;
    --scroll-y: 0px;
    --reveal-y: 0px;
    --rx: 0deg;
    --ry: 0deg;
    --base-ry: 0deg;
    --rz: 0deg;
    --scale: 1;
    --depth: 1;
}

.work-parallax-card[data-reveal] {
    --reveal-y: 46px;
    opacity: 0;
    filter: blur(9px);
}

.work-parallax-card[data-reveal].is-revealed {
    --reveal-y: 0px;
    opacity: 1;
    filter: blur(0);
}

@media (min-width: 1025px) {
    .work-parallax-card {
        transform:
                translateY(calc(var(--base-ty) + var(--scroll-y) + var(--reveal-y)))
                rotateX(var(--rx))
                rotateY(calc(var(--base-ry) + var(--ry)))
                rotateZ(var(--rz))
                scale(calc(var(--scale) * var(--depth)));
        transition:
                opacity 0.9s var(--motion-ease),
                filter 0.9s var(--motion-ease),
                border-color 0.45s ease,
                box-shadow 0.45s ease;
    }
}

.work-parallax-card::before {
    background:
            radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(77,159,255,0.20), transparent 32%),
            linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.075), transparent 42%);
}

.work-parallax-image {
    --image-x: 0px;
    --image-y: 0px;
    --image-mouse-y: 0px;
    --image-scale: 1.1;
    transform:
            translate3d(var(--image-x), calc(var(--image-y) + var(--image-mouse-y)), 0)
            scale(var(--image-scale));
    transition: filter 0.45s ease;
}

.work-parallax-card:hover .work-parallax-image {
    filter: saturate(1.02) contrast(1.08) brightness(0.86);
}

.work-card-content,
.work-result,
.work-tag {
    will-change: transform;
}

.work-parallax-card:hover .work-card-content {
    transform: translateZ(86px) translate3d(0, -4px, 0);
}

.contact-panel {
    --rx: 0deg;
    --ry: 0deg;
    --scale: 1;
    position: relative;
    transform:
            translate3d(0, var(--reveal-y, 0px), 0)
            rotateX(var(--rx))
            rotateY(var(--ry))
            scale(var(--scale));
    transform-style: preserve-3d;
}

.contact-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
            radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(77,159,255,0.18), transparent 36%);
    opacity: 0;
    transition: opacity 0.45s var(--motion-ease);
}

.contact-panel:hover::before,
.contact-panel:focus-within::before {
    opacity: 1;
}

#contact input,
#contact textarea {
    transition:
            border-color 0.28s ease,
            box-shadow 0.28s ease,
            transform 0.28s ease;
}

#contact input:focus,
#contact textarea:focus {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 12px 28px rgba(77,159,255,0.06);
}

footer[data-reveal] {
    --reveal-y: 20px;
}

@media (max-width: 1024px) {
    .service-card,
    .service-card:hover,
    .contact-panel,
    .work-parallax-card,
    .work-parallax-card[data-reveal] {
        transform: translate3d(0, var(--reveal-y, 0px), 0) scale(1) !important;
    }

    .work-parallax-image {
        transform: scale(1.03) !important;
    }
}

@media (max-width: 767px) {
    [data-parallax] {
        transform: none !important;
    }

    .hero-orb {
        opacity: 0.26;
    }

    .service-card:hover {
        --hover-y: -4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    [data-reveal],
    [data-reveal].is-revealed {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .logo-intro {
        display: none !important;
    }
}

[data-parallax-origin="free"] {
    transform:
            translate3d(var(--parallax-x), var(--parallax-y), 0)
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

[data-parallax-origin="center-x"] {
    transform:
            translate3d(calc(-50% + var(--parallax-x)), var(--parallax-y), 0)
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

[data-parallax-origin="center-y"] {
    transform:
            translate3d(var(--parallax-x), calc(-50% + var(--parallax-y)), 0)
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

/* ========== SECTION PARALLAX BACKGROUNDS ========== */

.section-cinematic {
    --section-bg-y: 0px;
    --section-bg-scale: 1;
    --section-bg-opacity: 1;
    position: relative;
    isolation: isolate;
}

.section-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: var(--section-bg-opacity);
    transform: translate3d(0, var(--section-bg-y), 0) scale(var(--section-bg-scale));
    transform-origin: center;
    will-change: transform, opacity;
}

.section-bg-vignette,
.section-bg-layer {
    position: absolute;
    pointer-events: none;
}

.section-bg-vignette {
    inset: -1px;
    z-index: 0;
}

.section-bg-layer {
    z-index: 1;
    --parallax-x: 0px;
    --parallax-y: 0px;
    --parallax-rz: 0deg;
    --parallax-scale: 1;
    --float-x: 0px;
    --float-y: 0px;
    will-change: transform, opacity;
}

.section-bg-layer[data-parallax-origin="free"] {
    transform:
            translate3d(
                    calc(var(--parallax-x) + var(--float-x)),
                    calc(var(--parallax-y) + var(--float-y)),
                    0
            )
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

.section-bg-layer[data-parallax-origin="center-x"] {
    transform:
            translate3d(
                    calc(-50% + var(--parallax-x) + var(--float-x)),
                    calc(var(--parallax-y) + var(--float-y)),
                    0
            )
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

.section-bg-layer[data-parallax-origin="center-y"] {
    transform:
            translate3d(
                    calc(var(--parallax-x) + var(--float-x)),
                    calc(-50% + var(--parallax-y) + var(--float-y)),
                    0
            )
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

.section-bg-grid {
    inset: -18%;
    opacity: 0.24;
    background-image:
            linear-gradient(rgba(255,255,255,0.040) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255,255,255,0.040) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

.section-bg-orb {
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.55;
    mix-blend-mode: screen;
}

.section-bg-line {
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(77,159,255,0.42), rgba(255,255,255,0.16), transparent);
    opacity: 0.55;
    box-shadow: 0 0 32px rgba(77,159,255,0.16);
}

.section-services-vignette {
    background:
            radial-gradient(circle at 15% 20%, rgba(77,159,255,0.10), transparent 34%),
            radial-gradient(circle at 86% 72%, rgba(109,179,255,0.065), transparent 32%),
            linear-gradient(180deg, rgba(0,0,0,0.20), rgba(255,255,255,0.012), rgba(0,0,0,0.18));
}

.section-services-grid {
    transform-origin: center;
}

.section-services-orb-one {
    width: 440px;
    height: 440px;
    top: -13%;
    left: -9%;
    background: rgba(77,159,255,0.16);
}

.section-services-orb-two {
    width: 320px;
    height: 320px;
    right: -6%;
    bottom: 4%;
    background: rgba(109,179,255,0.105);
}

.section-services-line {
    width: 44%;
    top: 24%;
    right: 8%;
}

.section-work-vignette {
    background:
            radial-gradient(circle at 50% 12%, rgba(77,159,255,0.12), transparent 38%),
            radial-gradient(circle at 14% 82%, rgba(109,179,255,0.07), transparent 32%),
            linear-gradient(180deg, rgba(0,0,0,0.16), rgba(77,159,255,0.020), rgba(0,0,0,0.18));
}

.section-work-grid {
    opacity: 0.30;
    background-size: 96px 96px;
}

.section-work-orb-one {
    width: 620px;
    height: 620px;
    left: 46%;
    top: -16%;
    background: rgba(77,159,255,0.13);
}

.section-work-orb-two {
    width: 420px;
    height: 420px;
    right: -14%;
    bottom: 6%;
    background: rgba(109,179,255,0.12);
}

.section-work-line-one {
    width: 54%;
    top: 28%;
    left: -8%;
}

.section-work-line-two {
    width: 42%;
    right: 2%;
    bottom: 18%;
}

.section-about-vignette {
    background:
            radial-gradient(circle at 88% 42%, rgba(77,159,255,0.11), transparent 32%),
            radial-gradient(circle at 20% 72%, rgba(255,255,255,0.035), transparent 30%),
            linear-gradient(180deg, rgba(0,0,0,0.16), rgba(255,255,255,0.010), rgba(0,0,0,0.22));
}

.section-about-grid {
    opacity: 0.18;
    background-size: 76px 76px;
}

.section-about-orb-one {
    width: 460px;
    height: 460px;
    right: -15%;
    top: 14%;
    background: rgba(77,159,255,0.12);
}

.section-about-line {
    width: 40%;
    left: 8%;
    bottom: 22%;
}

.section-contact-vignette {
    background:
            radial-gradient(circle at 50% 50%, rgba(77,159,255,0.14), transparent 34%),
            radial-gradient(circle at 16% 28%, rgba(109,179,255,0.07), transparent 26%),
            linear-gradient(180deg, rgba(0,0,0,0.24), rgba(77,159,255,0.018), rgba(0,0,0,0.22));
}

.section-contact-grid {
    opacity: 0.20;
    background-size: 84px 84px;
}

.section-contact-orb-one {
    width: 560px;
    height: 560px;
    left: 50%;
    top: 42%;
    margin-left: -280px;
    margin-top: -280px;
    background: rgba(77,159,255,0.125);
}

.section-contact-line {
    width: 46%;
    left: 50%;
    bottom: 16%;
    margin-left: -23%;
}

.section-footer-vignette {
    background:
            radial-gradient(circle at 50% 0%, rgba(77,159,255,0.075), transparent 42%),
            linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.24));
}

.section-footer-orb {
    width: 260px;
    height: 260px;
    right: 10%;
    top: -120px;
    background: rgba(77,159,255,0.10);
    filter: blur(60px);
}

.section-footer-line {
    width: 58%;
    left: 21%;
    top: 0;
    opacity: 0.42;
}

@media (max-width: 1024px) {
    .section-background {
        transform: none !important;
        opacity: 0.82;
    }

    .section-bg-grid {
        opacity: 0.13;
        background-size: 58px 58px;
    }

    .section-bg-orb {
        filter: blur(58px);
        opacity: 0.34;
    }

    .section-bg-line {
        opacity: 0.28;
    }
}

@media (max-width: 767px) {
    .section-bg-grid,
    .section-bg-line {
        display: none;
    }

    .section-bg-orb {
        opacity: 0.22;
        filter: blur(48px);
    }

    .section-services-orb-one,
    .section-work-orb-one,
    .section-about-orb-one,
    .section-contact-orb-one {
        width: 280px;
        height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-background,
    .section-bg-layer {
        transform: none !important;
    }
}

/* =========================================
   PERFORMANCE + NEXT-GEN PARALLAX UPGRADE
   ========================================= */

@media (min-width: 768px) {
    body {
        cursor: none;
    }
}

#custom-cursor {
    --cursor-x: 50vw;
    --cursor-y: 50vh;
    --cursor-scale: 1;
    top: 0;
    left: 0;
    width: 22px;
    height: 22px;
    background: radial-gradient(circle at center, rgba(220, 242, 255, 0.36), rgba(77, 159, 255, 0.12) 55%, rgba(77, 159, 255, 0.02) 72%);
    border: 1px solid rgba(129, 194, 255, 0.88);
    box-shadow:
            0 0 0 1px rgba(77,159,255,0.18) inset,
            0 0 20px rgba(77,159,255,0.42),
            0 0 48px rgba(77,159,255,0.16);
    transform: translate3d(var(--cursor-x), var(--cursor-y), 0) translate(-50%, -50%) scale(var(--cursor-scale));
    will-change: transform, width, height;
    transition:
            width 0.14s ease,
            height 0.14s ease,
            background 0.16s ease,
            border-color 0.16s ease,
            box-shadow 0.16s ease;
}

#custom-cursor::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: #F4FAFF;
    box-shadow: 0 0 18px rgba(255,255,255,0.92), 0 0 28px rgba(77,159,255,0.85);
}

#custom-cursor.hover {
    --cursor-scale: 1.16;
    width: 34px;
    height: 34px;
    background: radial-gradient(circle at center, rgba(228, 245, 255, 0.34), rgba(77, 159, 255, 0.18) 60%, rgba(77, 159, 255, 0.03) 76%);
    border-color: rgba(190, 226, 255, 0.98);
    box-shadow:
            0 0 0 1px rgba(191,223,255,0.24) inset,
            0 0 28px rgba(77,159,255,0.58),
            0 0 72px rgba(77,159,255,0.22);
}

.section-cinematic,
.section-background,
.section-depth-scene,
.work-parallax-card,
.service-card,
.contact-panel,
.hero-mark {
    contain: paint;
}

.hero-luxury-bg,
.hero-grid,
.hero-orb,
.section-bg-layer,
.section-depth-figure,
.section-depth-card,
.section-depth-glass,
.section-depth-orbit,
.work-parallax-image,
.work-card-content {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.section-depth-scene {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    perspective: 1800px;
    isolation: isolate;
}

.section-depth-figure,
.section-depth-card,
.section-depth-glass,
.section-depth-orbit {
    position: absolute;
    --parallax-x: 0px;
    --parallax-y: 0px;
    --parallax-rz: 0deg;
    --parallax-scale: 1;
    --float-x: 0px;
    --float-y: 0px;
    --depth-z: 0px;
    --depth-rx: 0deg;
    --depth-ry: 0deg;
    will-change: transform, opacity;
}

.section-depth-scene [data-parallax-origin="free"] {
    transform:
            translate3d(
                    calc(var(--parallax-x) + var(--float-x)),
                    calc(var(--parallax-y) + var(--float-y)),
                    var(--depth-z)
            )
            rotateX(var(--depth-rx))
            rotateY(var(--depth-ry))
            rotate(var(--parallax-rz))
            scale(var(--parallax-scale));
}

.section-depth-orbit {
    border-radius: 999px;
    border: 1px solid rgba(132, 194, 255, 0.2);
    box-shadow:
            0 0 50px rgba(77,159,255,0.10) inset,
            0 0 70px rgba(77,159,255,0.06);
    opacity: 0.66;
}

.section-depth-card,
.section-depth-glass {
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section-depth-card {
    background:
            linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.025)),
            radial-gradient(circle at top left, rgba(77,159,255,0.28), transparent 58%);
    box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.06),
            0 18px 70px rgba(0,0,0,0.18),
            0 0 42px rgba(77,159,255,0.10);
}

.section-depth-glass {
    background:
            linear-gradient(120deg, rgba(255,255,255,0.22), rgba(255,255,255,0.03) 36%, rgba(77,159,255,0.09) 76%, rgba(255,255,255,0.02));
    box-shadow:
            inset 0 0 0 1px rgba(255,255,255,0.06),
            0 0 36px rgba(77,159,255,0.10);
    opacity: 0.72;
}

.section-depth-figure {
    filter: drop-shadow(0 28px 80px rgba(77,159,255,0.16));
}

.section-depth-scene-services {
    opacity: 0.94;
}

.orbit-services-back {
    width: 500px;
    height: 500px;
    right: -120px;
    top: 20px;
    --depth-z: -120px;
}

.figure-services-robot {
    width: min(34vw, 350px);
    right: 2.5%;
    top: 32px;
    opacity: 0.92;
    --depth-z: 42px;
    --depth-rx: 7deg;
    --depth-ry: -8deg;
}

.depth-card-services {
    width: min(24vw, 260px);
    height: min(28vw, 340px);
    right: 6%;
    top: 12%;
    --depth-z: 78px;
    --depth-rx: 0deg;
    --depth-ry: -8deg;
    opacity: 0.26;
}

.depth-glass-services {
    width: min(20vw, 220px);
    height: min(32vw, 390px);
    right: -18px;
    top: 18%;
    --depth-z: 140px;
    --depth-rx: -2deg;
    --depth-ry: -12deg;
    opacity: 0.28;
}

.section-depth-scene-about {
    opacity: 0.92;
}

.orbit-about-back {
    width: 560px;
    height: 560px;
    right: -150px;
    top: 50%;
    margin-top: -280px;
    --depth-z: -100px;
}

.figure-about-core {
    width: min(28vw, 300px);
    right: 12%;
    top: 17%;
    opacity: 0.92;
    --depth-z: 80px;
    --depth-rx: 8deg;
    --depth-ry: -9deg;
}

.figure-about-robot {
    width: min(26vw, 250px);
    right: 0.5%;
    bottom: -10px;
    opacity: 0.42;
    --depth-z: 24px;
    --depth-rx: 6deg;
    --depth-ry: -14deg;
}

.depth-glass-about {
    width: min(20vw, 200px);
    height: min(30vw, 360px);
    right: 7%;
    bottom: 6%;
    --depth-z: 150px;
    --depth-rx: 0deg;
    --depth-ry: -16deg;
    opacity: 0.3;
}

.section-depth-scene-contact {
    opacity: 0.96;
}

.orbit-contact-back {
    width: 560px;
    height: 560px;
    left: 50%;
    top: 50%;
    margin-left: -280px;
    margin-top: -280px;
    --depth-z: -120px;
}

.figure-contact-core {
    width: min(30vw, 330px);
    left: 50%;
    top: 52%;
    margin-left: -165px;
    margin-top: -165px;
    opacity: 0.56;
    --depth-z: 40px;
    --depth-rx: 10deg;
}

.depth-card-contact {
    width: min(24vw, 240px);
    height: min(20vw, 200px);
    left: 16%;
    bottom: 10%;
    --depth-z: 110px;
    --depth-rx: 0deg;
    --depth-ry: 10deg;
    opacity: 0.22;
}

.depth-glass-contact {
    width: min(20vw, 210px);
    height: min(18vw, 180px);
    right: 14%;
    top: 14%;
    --depth-z: 140px;
    --depth-rx: 0deg;
    --depth-ry: -12deg;
    opacity: 0.22;
}

.service-card,
.work-parallax-card,
.contact-panel {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.work-parallax-card:hover {
    box-shadow:
            0 26px 80px rgba(0,0,0,0.28),
            0 0 0 1px rgba(255,255,255,0.04) inset,
            0 0 60px rgba(77,159,255,0.10);
}

.work-parallax-image {
    will-change: transform, filter;
}

@media (max-width: 1220px) {
    .figure-services-robot {
        width: min(30vw, 300px);
        opacity: 0.64;
    }

    .figure-about-core,
    .figure-contact-core {
        width: min(25vw, 260px);
    }
}

@media (max-width: 1024px) {
    .section-depth-scene {
        display: none;
    }

    #custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-depth-scene,
    #custom-cursor {
        display: none !important;
    }

    body {
        cursor: auto;
    }
}

/* =========================================
   METALLIC LOGO LIGHT / SUN GLINT UPGRADE
   ========================================= */

.intro-logo-shell {
    position: fixed;
    top: 50%;
    left: 50%;
    width: clamp(130px, 16vw, 220px);
    aspect-ratio: 1 / 1;
    z-index: 4;
    transform: translate(-50%, -50%);
    transform-origin: center;
    display: grid;
    place-items: center;
    pointer-events: none;
    isolation: isolate;
}

.intro-logo {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    z-index: 3;
    transform: none;
    filter:
            saturate(1.08)
            brightness(1.02)
            contrast(1.08)
            drop-shadow(0 0 18px rgba(255, 255, 255, 0.28))
            drop-shadow(0 0 55px rgba(77, 159, 255, 0.45));
    animation: introLogoMetalPulse 2.4s ease-in-out infinite;
}

.intro-logo-halo,
.intro-logo-sunbeam,
.intro-logo-glint {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.intro-logo-halo {
    inset: -18%;
    border-radius: 999px;
    background:
            radial-gradient(circle at 35% 28%, rgba(255,255,255,0.55), transparent 24%),
            radial-gradient(circle at 50% 50%, rgba(77,159,255,0.28), transparent 62%);
    filter: blur(14px);
    opacity: 0.72;
    animation: introLogoHaloPulse 2.6s ease-in-out infinite;
}

.intro-logo-sunbeam {
    inset: -26%;
    background: linear-gradient(112deg,
        transparent 12%,
        rgba(255,255,255,0.00) 36%,
        rgba(255,255,255,0.95) 47%,
        rgba(196,229,255,0.8) 50%,
        rgba(255,255,255,0.06) 58%,
        transparent 74%);
    mix-blend-mode: screen;
    filter: blur(4px);
    opacity: 0;
    transform: translateX(-165%) rotate(-16deg) scale(1.04);
    animation: introSunSweep 2.15s cubic-bezier(.4,0,.2,1) infinite;
}

.intro-logo-glint {
    inset: 0;
    border-radius: 999px;
    background:
            radial-gradient(circle at 32% 30%, rgba(255,255,255,1), rgba(255,255,255,0.22) 18%, transparent 34%),
            radial-gradient(circle at 64% 62%, rgba(188,226,255,0.45), transparent 18%);
    mix-blend-mode: screen;
    opacity: 0;
    filter: blur(2px);
    animation: introSparkDrift 2.15s ease-in-out infinite;
}

.hero-mark {
    overflow: hidden;
}

.hero-mark-glow {
    position: absolute;
    inset: 12%;
    border-radius: 999px;
    background:
            radial-gradient(circle at 34% 30%, rgba(255,255,255,0.22), transparent 18%),
            radial-gradient(circle at 50% 50%, rgba(77,159,255,0.14), transparent 65%);
    filter: blur(12px);
    opacity: 0.95;
    pointer-events: none;
    animation: heroMetalAmbient 3.6s ease-in-out infinite;
}

.hero-mark::after {
    content: "";
    position: absolute;
    inset: -35%;
    border-radius: inherit;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255,255,255,0.02) 40%,
        rgba(255,255,255,0.82) 47%,
        rgba(191,223,255,0.9) 50%,
        rgba(255,255,255,0.06) 57%,
        transparent 70%);
    mix-blend-mode: screen;
    opacity: 0;
    transform: translateX(-165%) rotate(-17deg) skewX(-10deg);
    filter: blur(2px);
    pointer-events: none;
    animation: heroMetalSweep 3.8s cubic-bezier(.42,0,.2,1) infinite;
}

.hero-logo-img {
    position: relative;
    z-index: 2;
    animation: heroLogoMetalPulse 3.4s ease-in-out infinite;
}

@keyframes introLogoMetalPulse {
    0%, 100% {
        filter:
                saturate(1.08)
                brightness(1.02)
                contrast(1.08)
                drop-shadow(0 0 18px rgba(255, 255, 255, 0.28))
                drop-shadow(0 0 55px rgba(77, 159, 255, 0.45));
    }
    35% {
        filter:
                saturate(1.14)
                brightness(1.08)
                contrast(1.12)
                drop-shadow(0 0 26px rgba(255, 255, 255, 0.45))
                drop-shadow(0 0 72px rgba(77, 159, 255, 0.6));
    }
    62% {
        filter:
                saturate(1.18)
                brightness(1.16)
                contrast(1.16)
                drop-shadow(0 0 30px rgba(255, 255, 255, 0.52))
                drop-shadow(0 0 86px rgba(77, 159, 255, 0.72));
    }
}

@keyframes introLogoHaloPulse {
    0%, 100% {
        opacity: 0.58;
        transform: scale(0.96);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes introSunSweep {
    0% {
        opacity: 0;
        transform: translateX(-165%) rotate(-16deg) scale(1.04);
    }
    18% {
        opacity: 0.2;
    }
    42% {
        opacity: 1;
    }
    60% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateX(165%) rotate(-16deg) scale(1.04);
    }
}

@keyframes introSparkDrift {
    0%, 100% {
        opacity: 0;
        transform: translate3d(-18px, -14px, 0) scale(0.75);
    }
    38% {
        opacity: 0.95;
        transform: translate3d(4px, 2px, 0) scale(1);
    }
    58% {
        opacity: 0.62;
        transform: translate3d(16px, 10px, 0) scale(0.92);
    }
}

@keyframes heroMetalAmbient {
    0%, 100% {
        opacity: 0.7;
        transform: scale(0.98);
        filter: blur(12px);
    }
    50% {
        opacity: 1;
        transform: scale(1.04);
        filter: blur(14px);
    }
}

@keyframes heroMetalSweep {
    0%, 14%, 100% {
        opacity: 0;
        transform: translateX(-170%) rotate(-17deg) skewX(-10deg);
    }
    26% {
        opacity: 0.18;
    }
    36% {
        opacity: 0.95;
    }
    48% {
        opacity: 0.28;
    }
    62% {
        opacity: 0;
        transform: translateX(170%) rotate(-17deg) skewX(-10deg);
    }
}

@keyframes heroLogoMetalPulse {
    0%, 100% {
        filter:
                saturate(1.04)
                brightness(1)
                drop-shadow(0 0 18px rgba(255, 255, 255, 0.16))
                drop-shadow(0 0 32px rgba(77, 159, 255, 0.32));
    }
    40% {
        filter:
                saturate(1.1)
                brightness(1.05)
                drop-shadow(0 0 24px rgba(255, 255, 255, 0.24))
                drop-shadow(0 0 40px rgba(77, 159, 255, 0.42));
    }
    58% {
        filter:
                saturate(1.18)
                brightness(1.15)
                drop-shadow(0 0 32px rgba(255, 255, 255, 0.34))
                drop-shadow(0 0 54px rgba(77, 159, 255, 0.54));
    }
}

@media (max-width: 768px) {
    .intro-logo-shell {
        width: 138px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .intro-logo,
    .intro-logo-halo,
    .intro-logo-sunbeam,
    .intro-logo-glint,
    .hero-mark-glow,
    .hero-mark::after,
    .hero-logo-img {
        animation: none !important;
    }
}
