/* ============================================================
   NEXPRO — AI-Powered Digital Agency
   Ultra-Premium Futuristic Homepage Stylesheet
   ============================================================ */

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

:root {
    /* Backgrounds */
    --bg-deepest: #000000;
    --bg-deep: #0a0a0a;
    --bg-surface: #121212;

    /* Accents */
    --purple: #7B61FF;
    --cyan: #00F0FF;
    --pink: #FF2D55;
    --green: #00FF88;

    /* Text */
    --text-white: #FFFFFF;
    --text-soft: rgba(255,255,255,0.85);
    --text-muted: rgba(255,255,255,0.5);
    --text-dim: rgba(255,255,255,0.25);

    /* Gradients */
    --grad-purple-cyan: linear-gradient(135deg, var(--purple), var(--cyan));
    --grad-pink-purple: linear-gradient(135deg, var(--pink), var(--purple));
    --grad-green-cyan: linear-gradient(135deg, var(--green), var(--cyan));
    --grad-holographic: linear-gradient(135deg, var(--purple), var(--cyan), var(--pink), var(--green));

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Sizes */
    --nav-height: 72px;
    --container-max: 1280px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deepest);
    color: var(--text-soft);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ======================== DARK TINT ======================== */
.dark-tint {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 0, 26, 0.25) 15%, rgba(6, 0, 26, 0.45) 50%, rgba(6, 0, 26, 0.25) 85%, transparent 100%);
}

body.loading {
    overflow: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; color: inherit; }

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

.section {
    position: relative;
    z-index: 2;
}

/* ======================== SKIP LINK ======================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 99999;
    padding: 12px 24px;
    background: var(--purple);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border-radius: 0 0 var(--radius-xs) var(--radius-xs);
}
.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
}

/* ======================== CUSTOM CURSOR ======================== */
.cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 99998;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring {
    opacity: 1;
}
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan), 0 0 30px rgba(0,240,255,0.3);
    transform: translate(-50%, -50%);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid rgba(0,240,255,0.35);
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease, opacity 0.3s;
}
body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    border-color: var(--purple);
    background: rgba(123,97,255,0.08);
}
body.cursor-click .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
}
body.cursor-click .cursor-ring {
    width: 28px; height: 28px;
    border-color: var(--pink);
}

@media (pointer: coarse), (hover: none) {
    .cursor-dot, .cursor-ring { display: none !important; }
    body, body * { cursor: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

/* ======================== NEURAL CANVAS ======================== */
#neural-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ======================== SCANLINES ======================== */
.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.008) 2px,
        rgba(255,255,255,0.008) 4px
    );
}

/* ======================== GLOBAL SCROLL BLOOM ======================== */
.global-bloom {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(123, 97, 255, 0.06) 0%, rgba(0, 240, 255, 0.02) 40%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    transform-origin: center;
    transition: transform 0.1s linear, background 0.1s linear;
}



/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: fit-content;
    min-width: calc(100% - 48px);
    max-width: 1100px;
    opacity: 0;
    transition: min-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease 0.3s, top 0.3s ease, background 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.navbar.visible {
    opacity: 1;
}
.navbar.scrolled {
    top: 10px;
}
.navbar.compact {
    min-width: 380px; /* Ensure logo, services, contact, and CTA fit properly */
}
.navbar.compact:hover {
    min-width: calc(100% - 48px);
}

/* Smart Navbar Collapsing Logic */
.navbar .hide-on-scroll {
    max-width: 400px;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s cubic-bezier(0.25, 1, 0.5, 1), margin 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.navbar.compact:not(:hover) .hide-on-scroll {
    max-width: 0 !important;
    opacity: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    pointer-events: none;
    border: none !important;
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: var(--nav-height);
    background: transparent;
    backdrop-filter: blur(0px) saturate(1);
    -webkit-backdrop-filter: blur(0px) saturate(1);
    border-radius: 20px;
    border: 1px solid transparent;
    position: relative;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.navbar.scrolled .navbar-inner {
    background: rgba(6,0,26,0.65);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.navbar-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), transparent, var(--cyan), transparent);
    background-size: 200% 100%;
    animation: navBorderShift 6s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.navbar.scrolled .navbar-inner::before {
    opacity: 1;
}
@keyframes navBorderShift {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.navbar-logo img {
    width: auto;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(123,97,255,0.35));
    transition: filter 0.3s;
}
.navbar-logo:hover img {
    filter: drop-shadow(0 0 14px rgba(0,240,255,0.5)) hue-rotate(20deg);
}
.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-white);
    letter-spacing: -0.01em;
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-soft);
    padding: 8px 16px;
    border-radius: 10px;
    transition: color 0.25s, background 0.25s;
    position: relative;
    overflow: hidden;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}
.nav-link:hover::after {
    transform: scaleX(1);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    background: rgba(255,255,255,0.05);
}
.nav-link.active::after {
    transform: scaleX(0.4);
    left: 50%;
    right: auto;
    width: 16px;
    transform-origin: center center;
    margin-left: -8px;
    background: var(--purple);
}
.nav-link.active:hover::after {
    transform: scaleX(1);
    left: 16px;
    right: 16px;
    width: auto;
    margin-left: 0;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
}

/* Custom rectangle cursor for navbar area */
.navbar-inner {
    cursor: none;
}
.navbar-inner .nav-link,
.navbar-inner .navbar-logo,
.navbar-inner .navbar-cta {
    cursor: none;
}
.nav-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 20px;
    height: 14px;
    border: 1.5px solid rgba(0, 240, 255, 0.6);
    border-radius: 3px;
    background: rgba(123, 97, 255, 0.08);
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, border-color 0.2s ease, background 0.15s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.navbar-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-white);
    padding: 10px 22px;
    border-radius: 12px;
    
    /* Dynamic background based on --prox */
    background: rgba(8, 2, 28, 0.6);
    
    /* Dynamic border color scaling from 15% opacity to 45% based on prox */
    border: 1px solid rgba(123, 97, 255, calc(0.15 + (var(--prox, 0) * 0.3)));
    
    /* Dynamic box shadow extending outward based on prox */
    box-shadow: 0 0 calc(var(--prox, 0) * 20px) rgba(123, 97, 255, calc(var(--prox, 0) * 0.25));
    
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

/* Inner Illumination tracking cursor coordinates via --x and --y */
.navbar-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Creates a soft radial glow centered on the cursor, scaling with proximity */
    background: radial-gradient(
        70px circle at var(--x, 50%) var(--y, 50%),
        rgba(0, 240, 255, calc(var(--prox, 0) * 0.15)),
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

/* Base states */
.navbar-cta:hover::before {
    opacity: 1;
}
.navbar-cta:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 4px 24px rgba(0, 240, 255, 0.25), inset 0 0 12px rgba(123, 97, 255, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.navbar-cta:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.15);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
    .navbar-nav, .navbar-cta { display: none; }
    .hamburger { display: flex; }
    .nav-cursor { display: none !important; }
    .navbar-inner,
    .navbar-inner .nav-link,
    .navbar-inner .navbar-logo,
    .navbar-inner .navbar-cta {
        cursor: auto;
    }
}
@media (pointer: coarse), (hover: none) {
    .nav-cursor { display: none !important; }
    .navbar-inner,
    .navbar-inner * {
        cursor: auto !important;
    }
}

/* ======================== MOBILE MENU ======================== */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9998;
    background: rgba(3,0,20,0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-soft);
    padding: 12px 24px;
    border-radius: 12px;
    transition: color 0.3s, background 0.3s;
}
.mobile-link:hover {
    color: var(--text-white);
    background: rgba(123,97,255,0.1);
}
.mobile-cta {
    margin-top: 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    padding: 14px 36px;
    border-radius: 14px;
    background: var(--grad-purple-cyan);
    transition: box-shadow 0.3s;
}
.mobile-cta:hover {
    box-shadow: 0 0 30px rgba(123,97,255,0.4);
}

/* ======================== GRADIENT TEXT ======================== */
.gradient-text {
    background: var(--grad-purple-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ======================== SECTION HEADERS ======================== */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--purple);
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* Base header layout */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

/* ======================== SECTION DIVIDERS ======================== */
.section-divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 97, 255, 0.5), rgba(0, 240, 255, 0.5), transparent);
    margin: 0 auto 64px auto;
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.section-divider.revealed {
    opacity: 1;
    transform: scaleX(1);
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 24px;
}
.section-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Scroll Reveal Paragraph Effect */
.scroll-reveal-paragraph {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) calc(var(--scroll-reveal-pct, 0%) - 10%),
        rgba(255, 255, 255, 0.18) calc(var(--scroll-reveal-pct, 0%) + 10%),
        rgba(255, 255, 255, 0.18) 100%
    );
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.08s linear;
}

/* Services Header */
.services-header {
    margin-bottom: 64px;
    position: relative;
}

/* ======================== SCROLL FILL EFFECT ======================== */
.scroll-fill-wrapper {
    position: relative;
    display: inline-block;
}

.scroll-fill-text {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    
    /* Base color is dim */
    color: var(--bg-deep);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    
    /* Gradient overlay that will be animated */
    background: linear-gradient(90deg, var(--text-white) 0%, var(--purple) 50%, transparent 50.1%, transparent 100%);
    background-size: 200% 100%;
    /* Initially hidden via background position */
    background-position: 100% 0;
    
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Animate background position via JS property --scroll-progress */
    transition: background-position 0.1s linear;
}

.scroll-fill-text.active-scroll {
    /* JS updates --scroll-fill to control the fill amount (100% to 0%) */
    background-position: var(--scroll-fill, 100%) 0;
    /* When filled, the text color becomes transparent so the background gradient shows */
    color: transparent;
}

/* ======================== BUTTONS ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 16px 32px;
    border-radius: 14px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--grad-purple-cyan);
    color: var(--text-white);
    box-shadow: 0 4px 24px rgba(123,97,255,0.25);
}
.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(123,97,255,0.4);
    transform: translateY(-2px);
}
.btn-outline {
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}
.btn-outline:hover {
    border-color: var(--purple);
    background: rgba(123,97,255,0.08);
    box-shadow: 0 0 20px rgba(123,97,255,0.15);
}
.btn-lg {
    padding: 20px 44px;
    font-size: 1rem;
    border-radius: 16px;
}

/* ======================== REVEAL ANIMATION ======================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.reveal-glow {
    opacity: 0;
    filter: brightness(0.6) blur(8px);
    transform: translateY(20px);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}
.reveal-glow.revealed {
    opacity: 1;
    filter: brightness(1) blur(0px);
    transform: translateY(0);
}

.reveal-mask-container {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}
.reveal-mask {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}
.reveal-mask.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-scale, .reveal-glow, .reveal-mask {
        opacity: 1;
        transform: none;
        transition: none;
        filter: none;
    }
}

/* ======================== PREMIUM TEXT REVEAL ======================== */
.scroll-reveal-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.reveal-word {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(35px);
    transition: opacity 0.8s ease, filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block;
    white-space: pre-wrap;
    will-change: opacity, filter, transform;
}

.scroll-reveal-text.is-visible .reveal-word {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
    transition-delay: calc(var(--index) * 0.04s);
}

@media (max-width: 768px) {
    .reveal-word {
        filter: blur(0px);
        transform: translateY(20px);
        transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .reveal-word {
        opacity: 1;
        filter: blur(0px);
        transform: none;
        transition: none;
        transition-delay: 0s;
    }
}

/* ======================== HERO ======================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.mobile-video-wrap {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    flex-direction: column;
}

.hero-bg-video-mobile {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    will-change: transform;
    margin-top: -1px; /* Remove microscopic gaps between tiled videos */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 0, 20, 0.55) 0%, rgba(3, 0, 20, 0.9) 100%);
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }
    .mobile-video-wrap {
        display: flex;
    }
}
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(123,97,255,0.12) 0%, rgba(0,240,255,0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}
.hero-container {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1400px;
    perspective-origin: center top;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-white);
    margin-bottom: 28px;
    transform-origin: center top;
    transform-style: preserve-3d;
    will-change: transform, opacity, filter;
}
.hero-line {
    display: block;
    transform-style: preserve-3d;
    transform-origin: center center;
    will-change: transform, opacity;
    transition: transform 0.08s linear, opacity 0.08s linear;
}
.hero-line-accent {
    background: var(--grad-purple-cyan);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(123,97,255,0.3));
}
.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.7;
    will-change: transform, opacity;
}
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    will-change: transform, opacity;
}
.hero-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    will-change: transform, opacity;
}
.metric {
    text-align: center;
}
.metric-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-white);
}
.metric-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.metric-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.08);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    will-change: transform, opacity;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--purple), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}
.scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--text-dim);
}
/* HERO SERVICE BACKGROUND */
.hero-service-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.service-bg-item {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.06);
    -webkit-text-stroke: 1px rgba(123, 97, 255, 0.14);
    text-shadow: 0 0 24px rgba(0, 240, 255, 0.05);
    user-select: none;
    animation: floatServiceWord 10s ease-in-out infinite;
}

.s1 { top: 16%; left: 8%; font-size: clamp(1.4rem, 3.4vw, 3.3rem); --r: -12deg; transform: rotate(-12deg); }
.s2 { top: 18%; right: 14%; font-size: clamp(1.2rem, 2.8vw, 2.6rem); --r: 8deg; transform: rotate(8deg); animation-delay: 1s; }
.s3 { top: 36%; left: 4%; font-size: clamp(1.5rem, 4vw, 3.8rem); --r: -7deg; transform: rotate(-7deg); animation-delay: 2s; }
.s4 { top: 34%; right: 8%; font-size: clamp(1.3rem, 3vw, 3rem); --r: 10deg; transform: rotate(10deg); animation-delay: 1.5s; }
.s5 { bottom: 26%; left: 10%; font-size: clamp(1.2rem, 2.8vw, 2.7rem); --r: -9deg; transform: rotate(-9deg); animation-delay: 2.5s; }
.s6 { bottom: 18%; right: 10%; font-size: clamp(1.3rem, 3vw, 3rem); --r: 7deg; transform: rotate(7deg); animation-delay: 0.8s; }
.s7 { bottom: 10%; left: 28%; font-size: clamp(1.1rem, 2.5vw, 2.4rem); --r: -4deg; transform: rotate(-4deg); animation-delay: 3s; }
.s8 { top: 52%; right: 30%; font-size: clamp(1.1rem, 2.5vw, 2.3rem); --r: 6deg; transform: rotate(6deg); animation-delay: 1.8s; }

@keyframes floatServiceWord {
    0%, 100% {
        transform: translateY(0) rotate(var(--r, 0deg));
        opacity: 0.75;
    }
    50% {
        transform: translateY(-14px) rotate(var(--r, 0deg));
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .service-bg-item {
        font-size: 1rem !important;
        opacity: 0.45;
    }

    .s3,
    .s4,
    .s7,
    .s8 {
        display: none;
    }
}
/* ======================== MARQUEE ======================== */
.marquee-section {
    padding: 48px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
}
.marquee-track {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.marquee-track + .marquee-track {
    margin-top: 16px;
}
.marquee-content {
    display: flex;
    align-items: center;
    animation: marqueeScroll 40s linear infinite;
    flex-shrink: 0;
}
.marquee-reverse .marquee-content {
    animation-direction: reverse;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--text-white);
    padding: 0 24px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-block;
    cursor: pointer;
    transform-origin: center center;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.35s ease,
        text-shadow 0.35s ease,
        filter 0.35s ease,
        opacity 0.35s ease;
    will-change: transform, filter, opacity;
}
.marquee-track:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-track:hover .marquee-item:not(:hover),
.marquee-track:hover .marquee-sep {
    opacity: 0.35;
}

.marquee-item:hover {
    transform: translateY(-8px) scale(1.18);
    color: #ffffff;
    text-shadow:
        0 0 12px rgba(0, 240, 255, 0.35),
        0 0 28px rgba(123, 97, 255, 0.28);
    filter: brightness(1.15);
    opacity: 1 !important;
    z-index: 2;
    position: relative;
}

.marquee-item.outline:hover {
    transform: translateY(-8px) scale(1.18);
    color: rgba(255,255,255,0.12);
    -webkit-text-fill-color: rgba(255,255,255,0.12);
    -webkit-text-stroke: 1px rgba(0,240,255,0.8);
    text-shadow:
        0 0 12px rgba(0, 240, 255, 0.30),
        0 0 24px rgba(123, 97, 255, 0.22);
    filter: brightness(1.2);
    opacity: 1 !important;
    z-index: 2;
    position: relative;
}
.marquee-item.outline {
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        -webkit-text-stroke-color 0.35s ease,
        text-shadow 0.35s ease,
        filter 0.35s ease,
        opacity 0.35s ease;
}
.marquee-sep {
    color: var(--purple);
    font-size: 0.6rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* ======================== SERVICES ======================== */
.services {
    padding: clamp(96px, 14vw, 170px) 0 clamp(84px, 11vw, 130px);
    background: #f4f4ef;
    color: #0d0d0d;
    position: relative;
    z-index: 1;
}

.services .container {
    max-width: 1320px;
}

.services-shell {
    position: relative;
}

.services .reveal-up {
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-intro {
    max-width: 1120px;
}

.services-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.52);
    margin-bottom: 18px;
}

.services-statement {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.7vw, 5.15rem);
    font-weight: 700;
    letter-spacing: -0.034em;
    line-height: 0.98;
    color: #070707;
    max-width: 16.5ch;
}

.services-divider {
    height: 1px;
    width: 100%;
    margin-top: clamp(42px, 6vw, 70px);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.14));
    transform-origin: left center;
}

.services-list {
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr) minmax(220px, 0.92fr);
    align-items: center;
    gap: clamp(20px, 2.8vw, 38px);
    padding: clamp(24px, 3vw, 36px) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row:last-child {
    border-bottom-color: rgba(0, 0, 0, 0.19);
}

.service-row:hover {
    background: rgba(0, 0, 0, 0.018);
}

.service-row-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.2vw, 1.96rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #080808;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-row-desc {
    font-size: clamp(0.97rem, 1.45vw, 1.08rem);
    line-height: 1.68;
    color: rgba(0, 0, 0, 0.67);
    max-width: 44ch;
}

.service-row-visual {
    justify-self: end;
    width: min(100%, 280px);
    aspect-ratio: 15 / 10;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fdfdf9;
    padding: 14px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.service-gradient {
    position: absolute;
    inset: -30%;
    border-radius: 24px;
    opacity: 0.95;
    transform: translate3d(0, 0, 0) scale(1);
    animation: serviceGradientFloat 11s ease-in-out infinite;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease;
}

.gradient-a {
    background:
        radial-gradient(circle at 20% 26%, rgba(243, 183, 74, 0.6), transparent 44%),
        radial-gradient(circle at 82% 78%, rgba(104, 153, 255, 0.64), transparent 45%),
        linear-gradient(140deg, rgba(255, 253, 244, 0.96), rgba(231, 243, 255, 0.94));
}

.gradient-b {
    background:
        radial-gradient(circle at 16% 82%, rgba(78, 171, 255, 0.5), transparent 46%),
        radial-gradient(circle at 82% 24%, rgba(255, 211, 158, 0.56), transparent 48%),
        linear-gradient(145deg, rgba(243, 250, 255, 0.94), rgba(250, 249, 241, 0.98));
}

.gradient-c {
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 205, 126, 0.62), transparent 42%),
        radial-gradient(circle at 80% 74%, rgba(89, 120, 255, 0.58), transparent 46%),
        linear-gradient(135deg, rgba(255, 248, 236, 0.96), rgba(237, 241, 255, 0.92));
}

.gradient-d {
    background:
        radial-gradient(circle at 24% 74%, rgba(99, 188, 255, 0.52), transparent 47%),
        radial-gradient(circle at 82% 20%, rgba(255, 199, 129, 0.56), transparent 45%),
        linear-gradient(135deg, rgba(235, 247, 255, 0.94), rgba(252, 246, 236, 0.96));
}

.gradient-e {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 222, 168, 0.58), transparent 44%),
        radial-gradient(circle at 76% 72%, rgba(120, 146, 255, 0.58), transparent 42%),
        linear-gradient(145deg, rgba(255, 251, 243, 0.98), rgba(232, 239, 255, 0.92));
}

.gradient-f {
    background:
        radial-gradient(circle at 22% 76%, rgba(125, 208, 255, 0.56), transparent 44%),
        radial-gradient(circle at 84% 18%, rgba(255, 190, 118, 0.6), transparent 48%),
        linear-gradient(145deg, rgba(239, 248, 255, 0.96), rgba(255, 247, 236, 0.94));
}

.service-visual-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.68);
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 7px 10px;
}

.service-row:hover .service-row-title {
    transform: translateX(4px);
}

.service-row:hover .service-gradient {
    transform: translate3d(2%, -2%, 0) scale(1.08);
    opacity: 1;
}

@keyframes serviceGradientFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(4%, -4%, 0) scale(1.06); }
}

@media (max-width: 1080px) {
    .service-row {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.8fr);
        grid-template-areas:
            "title visual"
            "desc visual";
        align-items: start;
    }

    .service-row-title {
        grid-area: title;
    }

    .service-row-desc {
        grid-area: desc;
    }

    .service-row-visual {
        grid-area: visual;
        width: clamp(180px, 32vw, 240px);
    }
}

@media (max-width: 768px) {
    .services {
        padding: 88px 0;
    }

    .services-statement {
        max-width: 100%;
        line-height: 1.02;
    }

    .services-divider {
        margin-top: 34px;
    }

    .service-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "desc"
            "visual";
        gap: 14px;
        padding: 24px 0;
    }

    .service-row-visual {
        justify-self: start;
        width: min(100%, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-row,
    .service-row-title,
    .service-gradient {
        transition: none;
        animation: none;
        transform: none !important;
    }
}



/* ======================== ABOUT — LAPTOP VIDEO ======================== */
#about.about {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
}

.about-laptop-track {
    position: relative;
    height: 200vh; /* Smooth premium scroll (100vh total scroll distance) */
    width: 100%;
    background: #000000 !important;
    display: block !important;
}

/* The sticky container:
   - Default: relative, acts as a placeholder
   - .is-pinned: position fixed, locked dead center of the viewport
   - .is-past: position absolute bottom:0, snaps to track floor */
.about-laptop-sticky {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: #000000;
    overflow: hidden;
}

.about-laptop-sticky.is-pinned {
    position: fixed;
    top: 0;
    left: 0;
}

.about-laptop-sticky.is-past {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
}

.about-laptop-wrapper {
    position: relative;
    width: 70vw;
    max-width: 900px;
}

.about-laptop-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    pointer-events: none;
}

/* Overlay — precisely positioned INSIDE the visible laptop screen area.
   These offsets are carefully calibrated to the about.mp4 video's screen region.
   The overlay is inset to stay well within the bezel. */
.about-laptop-overlay {
    position: absolute;
    top: 5.5%;
    left: 12.5%;
    width: 75%;
    height: 62%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-laptop-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Single-column content layout — centered, readable, no overcrowding */
.about-laptop-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8% 10%;
    text-align: center;
    color: #0d0d1a;
    overflow: hidden;
}

/* Center Button Container */
.laptop-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Premium Reveal Button */
.laptop-center-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: min(1.8vw, 18px) min(3.5vw, 36px);
    background: #0d0d1a;
    color: #ffffff;
    border-radius: 100px;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-weight: 500;
    font-size: min(1.4vw, 1.1rem);
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.3s ease;
    box-shadow: 0 8px 32px rgba(13, 13, 26, 0.15);
}

.laptop-center-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(13, 13, 26, 0.3);
    background: #1a1a33;
}

/* Stat Cards — compact inline row */
.about-laptop-stats {
    display: flex;
    gap: min(1vw, 10px);
    justify-content: center;
}

.about-laptop-stat {
    padding: min(0.8vw, 10px) min(1.2vw, 16px);
    border-radius: 8px;
    border: 1px solid rgba(26, 26, 46, 0.1);
    background: rgba(26, 26, 46, 0.03);
    text-align: center;
    display: flex;
    align-items: center;
    gap: min(0.5vw, 6px);
}

.about-laptop-stat-value {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: min(1.4vw, 1.3rem);
    font-weight: 700;
    color: #0d0d1a;
    line-height: 1;
}

.about-laptop-stat-label {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: min(0.6vw, 0.6rem);
    color: rgba(26, 26, 46, 0.5);
    line-height: 1;
}

/* ---- Reveal animations ---- */
.about-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.laptop-center-btn.about-reveal { transition-delay: 0.1s; }
.about-laptop-headline.about-reveal { transition-delay: 0.1s; }
.about-laptop-text.about-reveal { transition-delay: 0.2s; }
.about-laptop-stats.about-reveal { transition-delay: 0.3s; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .about-laptop-wrapper {
        width: 85vw;
    }
}

@media (max-width: 640px) {
    .about-laptop-wrapper {
        width: 94vw;
    }

    .about-laptop-overlay {
        top: 7%;
        left: 9%;
        width: 82%;
        height: 58%;
    }

    .about-laptop-content {
        padding: 5% 6%;
    }

    .laptop-center-btn {
        font-size: min(3vw, 1rem);
        padding: min(2.5vw, 12px) min(5vw, 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .about-laptop-overlay {
        opacity: 1;
        transition: none;
    }
}


/* ======================== CASE STUDIES (PREMIUM SHOWCASE) ======================== */
.work {
    padding: 120px 0 clamp(96px, 14vh, 170px);
    background: #05050b;
}
.work-header {
    margin-bottom: clamp(26px, 4vw, 46px);
}
.work .section-tag {
    color: rgba(255,255,255,0.62);
}

.case-showcase-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.case-showcase-item {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.13);
    background:
        linear-gradient(150deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
        linear-gradient(120deg, rgba(8,10,18,0.96), rgba(7,8,14,0.98));
    overflow: hidden;
    transition: border-color 0.42s ease, box-shadow 0.5s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.case-showcase-item::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(0,240,255,0.12), transparent 34%, transparent 68%, rgba(123,97,255,0.12));
    opacity: 0;
    transition: opacity 0.42s ease;
}
.case-showcase-item:hover {
    border-color: rgba(255,255,255,0.26);
    box-shadow: 0 18px 42px rgba(2,4,10,0.5);
    transform: translateY(-2px);
}
.case-showcase-item.is-preview {
    border-color: rgba(0,240,255,0.34);
    box-shadow: 0 20px 46px rgba(2,4,10,0.52);
}
.case-showcase-item.is-open {
    border-color: rgba(0,240,255,0.44);
    box-shadow: 0 26px 58px rgba(2,4,10,0.56);
}
.case-showcase-item.is-preview::before,
.case-showcase-item.is-open::before {
    opacity: 1;
}

.case-showcase-trigger {
    width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: 72px minmax(0, 1.45fr) minmax(0, 1fr) 30px;
    grid-template-areas: "num head meta icon";
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
}
.case-showcase-number {
    grid-area: num;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.62);
}
.case-showcase-head {
    grid-area: head;
    min-width: 0;
}
.case-showcase-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 3vw, 2rem);
    color: #ffffff;
    line-height: 1.14;
    letter-spacing: -0.01em;
}
.case-showcase-summary {
    margin-top: 8px;
    color: rgba(255,255,255,0.68);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-showcase-meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.case-showcase-category {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.72);
}
.case-showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.case-showcase-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    padding: 6px 10px;
}
.case-showcase-industry {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(0,240,255,0.84);
}
.case-showcase-indicator {
    grid-area: icon;
    width: 22px;
    height: 22px;
    position: relative;
    justify-self: end;
}
.case-showcase-indicator span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 16px;
    height: 1.5px;
    background: rgba(255,255,255,0.72);
    border-radius: 999px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.case-showcase-indicator span:last-child {
    transform: rotate(90deg);
}
.case-showcase-item.is-open .case-showcase-indicator span:last-child {
    transform: rotate(0deg);
    opacity: 0;
}

.case-showcase-panel {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 28px;
    transition: max-height 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, padding 0.45s ease;
}
.case-showcase-item.is-open .case-showcase-panel {
    max-height: 1400px;
    opacity: 1;
    padding: 0 28px 28px;
}
.case-panel-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 20px;
    padding-top: 4px;
}
.case-panel-visual {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 16px;
    min-height: 280px;
    padding: 16px;
    background: #0b0d14;
}
.case-panel-screen {
    height: 100%;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(150deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01) 52%, rgba(0,0,0,0.45));
}
.case-panel-watermark {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.02em;
}
.case-panel-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.68);
}
.case-panel-bars {
    display: grid;
    gap: 10px;
}
.case-panel-bars span {
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
}
.case-panel-bars span:nth-child(1) { width: 78%; }
.case-panel-bars span:nth-child(2) { width: 60%; }
.case-panel-bars span:nth-child(3) { width: 70%; }

.visual-dronow .case-panel-screen {
    background:
        radial-gradient(120% 120% at 85% 14%, rgba(0,240,255,0.24), transparent 46%),
        linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 52%, rgba(0,0,0,0.5));
}
.visual-voltair .case-panel-screen {
    background:
        radial-gradient(120% 120% at 20% 86%, rgba(120,216,176,0.23), transparent 45%),
        linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 52%, rgba(0,0,0,0.52));
}
.visual-nlevel .case-panel-screen {
    background:
        radial-gradient(120% 120% at 86% 84%, rgba(123,97,255,0.24), transparent 45%),
        linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 52%, rgba(0,0,0,0.54));
}
.visual-crysta .case-panel-screen {
    background:
        radial-gradient(120% 120% at 20% 12%, rgba(255,255,255,0.18), transparent 45%),
        linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 52%, rgba(0,0,0,0.56));
}

.case-panel-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.case-panel-description {
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
}
.case-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.case-panel-block {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    padding: 14px;
}
.case-panel-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0,240,255,0.84);
    margin-bottom: 8px;
}
.case-panel-list {
    display: grid;
    gap: 8px;
    list-style: none;
}
.case-panel-list li {
    color: rgba(255,255,255,0.72);
    line-height: 1.58;
    padding-left: 14px;
    position: relative;
}
.case-panel-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0,240,255,0.76);
    position: absolute;
    top: 10px;
    left: 0;
}
.case-panel-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.case-panel-tools span {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    color: rgba(255,255,255,0.72);
    padding: 6px 10px;
    transition: border-color 0.28s ease, transform 0.28s ease;
}
.case-showcase-item:hover .case-panel-tools span {
    border-color: rgba(0,240,255,0.26);
    transform: translateY(-1px);
}
.case-panel-cta {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    transition: gap 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.case-panel-cta:hover {
    gap: 12px;
    opacity: 0.8;
}

@media (max-width: 1050px) {
    .case-showcase-trigger {
        grid-template-columns: 56px minmax(0, 1fr) 24px;
        grid-template-areas:
            "num head icon"
            "meta meta meta";
        row-gap: 14px;
    }

    .case-panel-layout {
        grid-template-columns: 1fr;
    }

    .case-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .work {
        padding: 96px 0 110px;
    }

    .case-showcase-trigger {
        padding: 20px 18px;
    }

    .case-showcase-panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .case-showcase-item.is-open .case-showcase-panel {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 20px;
    }

    .case-showcase-summary {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}




/* ======================== WORKFLOW ======================== */
#blog.workflow {
    padding: clamp(112px, 14vh, 168px) 0;
}

#blog.workflow .workflow-scroll-track {
    position: relative;
    min-height: clamp(820px, 148vh, 1100px);
}

#blog.workflow .workflow-sticky {
    position: sticky;
    top: clamp(88px, 10vh, 132px);
}

#blog.workflow .workflow-shell {
    position: relative;
    padding: clamp(30px, 4vw, 54px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        radial-gradient(140% 120% at 14% 0%, rgba(123, 97, 255, 0.18), transparent 50%),
        radial-gradient(120% 120% at 100% 100%, rgba(0, 240, 255, 0.08), transparent 55%),
        linear-gradient(145deg, rgba(11, 14, 24, 0.96), rgba(6, 8, 14, 0.985));
    box-shadow: 0 32px 76px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    isolation: isolate;
}

#blog.workflow .workflow-shell::before,
#blog.workflow .workflow-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

#blog.workflow .workflow-shell::before {
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 100% 100%, 72px 72px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
    opacity: 0.28;
}

#blog.workflow .workflow-shell::after {
    top: -34%;
    right: -8%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.2) 0%, rgba(123, 97, 255, 0) 74%);
    filter: blur(14px);
}

#blog.workflow .workflow-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(28px, 4vw, 82px);
    align-items: end;
    margin-bottom: clamp(36px, 5vw, 68px);
}

#blog.workflow .workflow-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
}

#blog.workflow .workflow-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(0, 240, 255, 0.88));
}

#blog.workflow .workflow-title {
    max-width: 11ch;
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--text-white);
}

#blog.workflow .workflow-desc {
    max-width: 56ch;
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.7);
}

#blog.workflow .workflow-stage {
    position: relative;
}

#blog.workflow .workflow-progress {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

#blog.workflow .workflow-progress-track,
#blog.workflow .workflow-progress-fill {
    position: absolute;
    border-radius: 999px;
    transition: left 0.5s ease, top 0.5s ease, width 0.5s ease, height 0.5s ease;
    will-change: left, top, width, height, transform;
}

#blog.workflow .workflow-progress-track {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

#blog.workflow .workflow-progress-fill {
    background: linear-gradient(90deg, rgba(123, 97, 255, 0.96) 0%, rgba(118, 196, 255, 0.96) 52%, rgba(0, 240, 255, 0.98) 100%);
    box-shadow:
        0 0 18px rgba(123, 97, 255, 0.26),
        0 0 34px rgba(0, 240, 255, 0.18);
    transform-origin: left center;
}

#blog.workflow .workflow-active-orb {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(198, 238, 255, 0.82) 18%, rgba(123, 97, 255, 0.28) 48%, rgba(123, 97, 255, 0) 74%);
    box-shadow:
        0 0 24px rgba(123, 97, 255, 0.3),
        0 0 40px rgba(0, 240, 255, 0.22);
    opacity: 0.95;
    mix-blend-mode: screen;
    transition: left 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.42s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
    animation: workflowOrbFloat 4.8s ease-in-out infinite;
}

#blog.workflow .workflow-active-orb::before,
#blog.workflow .workflow-active-orb::after {
    content: "";
    position: absolute;
    inset: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#blog.workflow .workflow-active-orb::before {
    width: 11px;
    height: 11px;
    background: radial-gradient(circle, #ffffff 0%, rgba(221, 247, 255, 0.85) 58%, rgba(221, 247, 255, 0) 100%);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}

#blog.workflow .workflow-active-orb::after {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(190, 240, 255, 0.32);
    animation: workflowOrbPulse 3.2s ease-in-out infinite;
}

#blog.workflow .workflow-timeline {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 26px);
}

#blog.workflow .workflow-step {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 22px;
    min-height: 314px;
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    filter: blur(4px);
    transition:
        opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--workflow-step-delay, 0s);
}

#blog.workflow.is-inview .workflow-step,
#blog.workflow.is-static .workflow-step {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

#blog.workflow .workflow-step-node {
    position: relative;
    justify-self: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(8, 10, 17, 0.9);
    box-shadow: 0 0 0 0 rgba(123, 97, 255, 0);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        background 0.35s ease;
}

#blog.workflow .workflow-step-node span {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: transform 0.35s ease, background 0.35s ease;
}

#blog.workflow .workflow-step-card {
    position: relative;
    min-height: 252px;
    padding: clamp(24px, 2.2vw, 30px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018) 52%, rgba(255, 255, 255, 0.01) 100%),
        linear-gradient(180deg, rgba(9, 11, 18, 0.95), rgba(7, 9, 15, 0.985));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    overflow: hidden;
    opacity: 0.6;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.4s ease,
        background 0.4s ease;
}

#blog.workflow .workflow-step-card::before,
#blog.workflow .workflow-step-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

#blog.workflow .workflow-step-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(118, 196, 255, 0.94), rgba(0, 240, 255, 0.16));
    opacity: 0.48;
    transform: scaleX(0.45);
    transform-origin: left center;
    transition: transform 0.45s ease, opacity 0.4s ease;
}

#blog.workflow .workflow-step-card::after {
    right: -12%;
    bottom: -16%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.16) 0%, rgba(123, 97, 255, 0) 72%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

#blog.workflow .workflow-step-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.44);
}

#blog.workflow .workflow-step-kicker::after {
    content: "";
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

#blog.workflow .workflow-step-title {
    max-width: 14ch;
    font-family: var(--font-heading);
    font-size: clamp(1.24rem, 1.45vw, 1.5rem);
    line-height: 1.18;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.4s ease, letter-spacing 0.4s ease;
}

#blog.workflow .workflow-step-text {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.78;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.4s ease;
}

#blog.workflow .workflow-step.is-complete .workflow-step-node,
#blog.workflow .workflow-step.is-active .workflow-step-node {
    border-color: rgba(154, 230, 255, 0.76);
    background: rgba(9, 14, 24, 0.98);
}

#blog.workflow .workflow-step.is-complete .workflow-step-node {
    box-shadow:
        0 0 0 6px rgba(123, 97, 255, 0.08),
        0 0 16px rgba(123, 97, 255, 0.2);
}

#blog.workflow .workflow-step.is-active .workflow-step-node {
    transform: scale(1.18);
    box-shadow:
        0 0 0 8px rgba(123, 97, 255, 0.1),
        0 0 24px rgba(123, 97, 255, 0.3),
        0 0 32px rgba(0, 240, 255, 0.18);
}

#blog.workflow .workflow-step.is-complete .workflow-step-node span,
#blog.workflow .workflow-step.is-active .workflow-step-node span {
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.95), rgba(0, 240, 255, 0.95));
    transform: scale(1.04);
}

#blog.workflow .workflow-step.is-complete .workflow-step-card {
    opacity: 0.84;
    border-color: rgba(118, 196, 255, 0.18);
}

#blog.workflow .workflow-step.is-complete .workflow-step-title {
    color: rgba(255, 255, 255, 0.88);
}

#blog.workflow .workflow-step.is-complete .workflow-step-text {
    color: rgba(255, 255, 255, 0.62);
}

#blog.workflow .workflow-step.is-active .workflow-step-card {
    opacity: 1;
    transform: translateY(-10px) scale(1.028);
    border-color: rgba(154, 230, 255, 0.3);
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 56%, rgba(255, 255, 255, 0.015) 100%),
        linear-gradient(180deg, rgba(10, 12, 22, 0.98), rgba(6, 8, 15, 0.995));
    box-shadow:
        0 28px 54px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(123, 97, 255, 0.12) inset;
}

#blog.workflow .workflow-step.is-active .workflow-step-card::before {
    opacity: 1;
    transform: scaleX(1);
}

#blog.workflow .workflow-step.is-active .workflow-step-card::after {
    opacity: 1;
}

#blog.workflow .workflow-step.is-active .workflow-step-kicker {
    color: rgba(198, 238, 255, 0.9);
}

#blog.workflow .workflow-step.is-active .workflow-step-kicker::after {
    background: linear-gradient(90deg, rgba(118, 196, 255, 0.96), rgba(0, 240, 255, 0.34));
}

#blog.workflow .workflow-step.is-active .workflow-step-title {
    color: var(--text-white);
    letter-spacing: -0.01em;
}

#blog.workflow .workflow-step.is-active .workflow-step-text {
    color: rgba(255, 255, 255, 0.78);
}

#blog.workflow .workflow-footer {
    margin-top: clamp(30px, 4vw, 42px);
}

#blog.workflow .workflow-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

#blog.workflow .workflow-cta::after {
    content: "\2192";
    font-size: 0.92rem;
}

@media (hover: hover) and (pointer: fine) {
    #blog.workflow .workflow-step:hover .workflow-step-card {
        opacity: 0.94;
        transform: translateY(-8px) scale(1.012);
        border-color: rgba(154, 230, 255, 0.24);
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    }

    #blog.workflow .workflow-step:hover .workflow-step-card::before {
        opacity: 0.86;
        transform: scaleX(0.86);
    }

    #blog.workflow .workflow-step:hover .workflow-step-node {
        border-color: rgba(154, 230, 255, 0.48);
    }

    #blog.workflow .workflow-step.is-active:hover .workflow-step-card {
        transform: translateY(-12px) scale(1.034);
        border-color: rgba(154, 230, 255, 0.38);
        box-shadow: 0 32px 58px rgba(0, 0, 0, 0.4);
    }

    #blog.workflow .workflow-cta:hover {
        transform: translateY(-2px);
        border-color: rgba(154, 230, 255, 0.42);
        background: rgba(255, 255, 255, 0.09);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
    }
}

@keyframes workflowOrbFloat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.98);
    }
    50% {
        transform: translate(-50%, calc(-50% - 5px)) scale(1.04);
    }
}

@keyframes workflowOrbPulse {
    0%, 100% {
        opacity: 0.42;
        transform: translate(-50%, -50%) scale(0.92);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@media (max-width: 980px) {
    #blog.workflow .workflow-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #blog.workflow .workflow-title,
    #blog.workflow .workflow-desc {
        max-width: none;
    }
}

@media (max-width: 900px) {
    #blog.workflow .workflow-scroll-track {
        min-height: auto;
    }

    #blog.workflow .workflow-sticky {
        position: relative;
        top: auto;
    }

    #blog.workflow .workflow-shell {
        border-radius: 24px;
    }

    #blog.workflow .workflow-timeline {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #blog.workflow .workflow-step {
        grid-template-columns: 20px minmax(0, 1fr);
        grid-template-rows: auto;
        gap: 0 18px;
        min-height: 0;
    }

    #blog.workflow .workflow-step-node {
        grid-column: 1;
        grid-row: 1;
        margin-top: 22px;
    }

    #blog.workflow .workflow-step-card {
        grid-column: 2;
        grid-row: 1;
        min-height: 0;
    }

    #blog.workflow .workflow-step-card,
    #blog.workflow .workflow-step.is-active .workflow-step-card,
    #blog.workflow .workflow-step:hover .workflow-step-card {
        transform: none;
    }

    #blog.workflow .workflow-active-orb {
        width: 34px;
        height: 34px;
        opacity: 0.78;
    }

    #blog.workflow .workflow-active-orb::after {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    #blog.workflow .workflow-shell {
        padding: 26px 20px;
        border-radius: 20px;
    }

    #blog.workflow .workflow-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    #blog.workflow .workflow-step-card {
        padding: 22px 20px;
        border-radius: 20px;
    }

    #blog.workflow .workflow-step-title {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    #blog.workflow .workflow-scroll-track {
        min-height: auto;
    }

    #blog.workflow .workflow-sticky {
        position: relative;
        top: auto;
    }

    #blog.workflow .workflow-step,
    #blog.workflow .workflow-progress-track,
    #blog.workflow .workflow-progress-fill,
    #blog.workflow .workflow-active-orb,
    #blog.workflow .workflow-step-node,
    #blog.workflow .workflow-step-node span,
    #blog.workflow .workflow-step-card,
    #blog.workflow .workflow-step-card::before,
    #blog.workflow .workflow-step-card::after,
    #blog.workflow .workflow-cta {
        transition: none !important;
        animation: none !important;
    }
}

/* ======================== TESTIMONIALS ======================== */
.testimonials {
    padding: 120px 0;
}
.testimonials-carousel {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    outline: none;
}
.testimonial-cards {
    position: relative;
    min-height: 320px;
}
.testimonial-card {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    background: rgba(10,10,31,0.95);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 40px 36px;
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.testimonial-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 3;
    background: rgba(10,10,31,0.98);
    border-color: rgba(123,97,255,0.15);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.testimonial-card.prev {
    opacity: 0.15;
    transform: translateX(-60px) scale(0.9);
    z-index: 1;
}
.testimonial-card.next {
    opacity: 0.15;
    transform: translateX(60px) scale(0.9);
    z-index: 1;
}
.quote-icon {
    width: 40px; height: 40px;
    color: var(--purple);
    margin-bottom: 16px;
}
.testimonial-quote p {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 28px;
}
.testimonial-quote strong {
    color: var(--text-white);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-avatar {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(123,97,255,0.15);
    border: 1px solid rgba(123,97,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--purple);
}
.author-info {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}
.author-role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
}
.verified-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--green);
    background: rgba(0,255,136,0.08);
    border: 1px solid rgba(0,255,136,0.2);
    padding: 4px 10px;
    border-radius: 100px;
    margin-left: auto;
    white-space: nowrap;
}
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}
.t-control {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.t-control:hover {
    border-color: var(--purple);
    color: var(--text-white);
    background: rgba(123,97,255,0.1);
}
.t-dots {
    display: flex;
    gap: 8px;
}
.t-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background 0.3s, box-shadow 0.3s;
}
.t-dot.active {
    background: var(--purple);
    box-shadow: 0 0 10px rgba(123,97,255,0.4);
}

/* ======================== CTA ======================== */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.15) 0%, rgba(0, 240, 255, 0.05) 40%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: ctaSpotlight 10s ease-in-out infinite alternate;
}

@keyframes ctaSpotlight {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.3) rotate(10deg); opacity: 1; }
}

.cta-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 48px;
    background: rgba(12, 8, 32, 0.85);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(123,97,255,0.12), rgba(0,240,255,0.06), transparent 70%);
    pointer-events: none;
}
.cta-rings {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.cta-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(123,97,255,0.08);
}
.cta-ring:nth-child(1) {
    width: 300px; height: 300px;
    animation: ctaRingPulse 4s ease-in-out infinite;
}
.cta-ring:nth-child(2) {
    width: 450px; height: 450px;
    animation: ctaRingPulse 4s ease-in-out infinite 0.5s;
}
.cta-ring:nth-child(3) {
    width: 600px; height: 600px;
    animation: ctaRingPulse 4s ease-in-out infinite 1s;
}
@keyframes ctaRingPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}
.cta-card .section-tag {
    position: relative;
    z-index: 2;
}
.cta-heading {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 20px;
}
.cta-text {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 36px;
}
.cta-card .btn {
    position: relative;
    z-index: 2;
}

/* ======================== FOOTER ======================== */
.footer {
    padding: 80px 0 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 56px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-logo img {
    width: 40px; height: 40px;
    filter: drop-shadow(0 0 8px rgba(123,97,255,0.3));
}
.footer-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-white);
}
.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.status-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}
.footer-socials {
    display: flex;
    gap: 10px;
}
.social-link {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-link:hover {
    border-color: var(--purple);
    color: var(--text-white);
    background: rgba(123,97,255,0.1);
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.footer-link {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.25s;
}
.footer-link:hover {
    color: var(--text-white);
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 0.78rem;
    color: var(--text-dim);
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a {
    transition: color 0.25s;
}
.footer-bottom-links a:hover {
    color: var(--text-soft);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ======================== BACK TO TOP ======================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(6,0,26,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, border-color 0.3s, color 0.3s;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    border-color: var(--purple);
    color: var(--text-white);
}

/* ======================== FOCUS STATES ======================== */
:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

/* ======================== REDUCED MOTION ======================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-content {
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ======================== RESPONSIVE FINE-TUNING ======================== */
@media (max-width: 480px) {
    .hero {
        padding: 120px 16px 60px;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .hero-metrics {
        gap: 20px;
    }
    .metric-divider {
        display: none;
    }
    .cta-card {
        padding: 48px 24px;
    }
}

/* Hide scrollbar for work track */
.work-scroll-wrapper::-webkit-scrollbar {
    display: none;
}
.work-scroll-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ======================== LANGUAGE SWITCHER ======================== */
.lang-switcher {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 2px;
    margin-left: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.lang-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.lang-btn:hover {
    color: var(--text-white);
}
.lang-btn.active {
    background: var(--purple);
    color: var(--text-white);
    box-shadow: 0 0 10px rgba(123,97,255,0.3);
}
@media (max-width: 900px) {
    .lang-switcher {
        margin: 16px auto 0;
        justify-content: center;
    }
}

/* ======================== FAQ ======================== */
.faq {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover, .faq-item.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(123, 97, 255, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    text-align: left;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
    color: var(--cyan);
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--purple);
    font-weight: 300;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-answer p {
    padding: 0 32px 32px;
    color: var(--text-soft);
    line-height: 1.7;
    margin: 0;
}

/* ======================== PREMIUM LAYOUT REFINEMENTS ======================== */
.work {
    padding-top: 120px;
    padding-bottom: 160px;
    background: var(--bg-deepest);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}
.services {
    padding-bottom: 120px;
}

/* ======================== END REVEAL FOOTER ======================== */
.main-reveal-cover {
    position: relative;
    z-index: 2;
    background-color: var(--bg-deepest); /* Hides the footer until scrolled passed */
    /* margin-bottom will be set by JS dynamically to match footer height */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Optional deeper shadow for overlap feel */
}

.footer-reveal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1; /* Sits behind the main content */
    visibility: hidden; /* Hidden until JS calculates heights to prevent flashes */
}

.footer-reveal.is-ready {
    visibility: visible;
}


/* ======================== MEGA-MENU (extracted from HTML) ======================== */

        /* Desktop Mega-Menu */
        .nav-item-dropdown {
position: relative;
display: inline-flex;
height: 100%;
align-items: center;
        }
        .nav-link-dropdown {
display: flex;
align-items: center;
gap: 6px;
        }
        .nav-dropdown-icon {
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
opacity: 0.6;
        }
        .nav-item-dropdown:hover .nav-dropdown-icon {
transform: rotate(180deg);
opacity: 1;
        }
        .mega-menu-panel::before {
content: '';
position: absolute;
top: -20px;
left: 0;
right: 0;
height: 20px;
background: transparent;
        }
        .mega-menu-panel {
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%) translateY(10px);
width: 850px;
max-width: 95vw;
background: rgba(10, 10, 10, 0.85);
backdrop-filter: blur(24px) saturate(150%);
-webkit-backdrop-filter: blur(24px) saturate(150%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 16px;
padding: 2.5rem;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
z-index: 99999;
        }
        .nav-item-dropdown:hover .mega-menu-panel {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateX(-50%) translateY(15px);
        }
        .mega-menu-container {
display: grid;
grid-template-columns: 300px 1fr;
gap: 3rem;
        }
        .mega-menu-left {
display: flex;
flex-direction: column;
border-right: 1px solid rgba(255, 255, 255, 0.08);
padding-right: 3rem;
        }
        .mega-menu-eyebrow {
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.4);
letter-spacing: 0.05em;
margin-bottom: 1rem;
display: block;
        }
        .mega-menu-statement {
font-family: 'Space Grotesk', sans-serif;
font-size: 1.25rem;
font-weight: 500;
color: #ffffff;
line-height: 1.4;
margin-bottom: 2rem;
        }
        .mega-menu-cta {
align-self: flex-start;
padding: 0.75rem 1.5rem;
font-size: 0.85rem;
        }
        .mega-menu-right {
display: flex;
flex-direction: column;
gap: 1.5rem;
        }
        .mega-service-link {
display: flex;
align-items: flex-start;
gap: 1.25rem;
text-decoration: none;
color: inherit;
position: relative;
padding: 1rem;
margin: -1rem;
border-radius: 12px;
transition: background 0.3s ease;
opacity: 0;
transform: translateY(10px);
        }
        .nav-item-dropdown:hover .mega-service-link {
opacity: 1;
transform: translateY(0);
transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) var(--delay), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) var(--delay), background 0.3s ease;
        }
        .mega-service-link:hover {
background: rgba(255, 255, 255, 0.04);
        }
        .mega-service-num {
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.3);
margin-top: 5px;
transition: color 0.3s ease;
        }
        .mega-service-text h4 {
font-family: 'Inter', sans-serif;
font-size: 1.05rem;
font-weight: 500;
color: #ffffff;
margin: 0 0 0.5rem 0;
transition: color 0.3s ease;
        }
        .mega-service-text p {
font-family: 'Inter', sans-serif;
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.5);
margin: 0;
line-height: 1.4;
transition: color 0.3s ease;
        }
        .mega-service-arrow {
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%) translateX(-10px);
opacity: 0;
transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
color: #fff;
        }
        .mega-service-link:hover .mega-service-num {
color: #fff;
        }
        .mega-service-link:hover .mega-service-text h4 {
color: #00f0ff;
        }
        .mega-service-link:hover .mega-service-text p {
color: rgba(255, 255, 255, 0.8);
        }
        .mega-service-link:hover .mega-service-arrow {
opacity: 1;
transform: translateY(-50%) translateX(0);
        }

        /* Mobile Accordion Styles */
        .mobile-accordion {
width: 100%;
display: flex;
flex-direction: column;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .mobile-accordion-toggle {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 1rem 0;
background: none;
border: none;
color: #fff;
font-family: 'Space Grotesk', sans-serif;
font-size: 2rem;
text-align: left;
cursor: pointer;
text-transform: uppercase;
        }
        .mobile-accordion-icon {
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
opacity: 0.6;
        }
        .mobile-accordion-toggle[aria-expanded="true"] .mobile-accordion-icon {
transform: rotate(180deg);
        }
        .mobile-accordion-panel {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
opacity: 0;
display: flex;
flex-direction: column;
gap: 1rem;
padding: 0 0 1rem 0;
        }
        .mobile-accordion-toggle[aria-expanded="true"] + .mobile-accordion-panel {
max-height: 500px;
opacity: 1;
padding-bottom: 1.5rem;
        }
        .mobile-mega-link {
display: flex;
align-items: center;
gap: 1rem;
text-decoration: none;
color: rgba(255, 255, 255, 0.7);
font-family: 'Inter', sans-serif;
font-size: 1rem;
transition: color 0.3s ease;
        }
        .mobile-mega-link:hover {
color: #fff;
        }
        .mobile-mega-num {
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem;
color: rgba(255, 255, 255, 0.3);
        }
    

/* ======================== SERVICES SECTION (extracted from HTML) ======================== */

/* Scoped Services Section (White Theme + Scrub Animations) */
.services-refokus {
    padding: 140px 0;
    background-color: #ffffff; /* White background */
    position: relative;
    color: #050505;
    overflow: hidden;
}
.services-refokus-intro {
    margin-bottom: 8rem;
    max-width: 85%;
}
.services-refokus-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.02em;
    color: #050505;
}
.refokus-services-list {
    display: flex;
    flex-direction: column;
}
.refokus-service-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.15); /* Dark borders */
}
.refokus-service-row:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
    .refokus-service-row {
        grid-template-columns: 45% 55%;
        padding: 5rem 0;
    }
}

.refokus-row-left {
    display: flex;
    align-items: flex-start;
    padding-right: 2rem;
}
.refokus-row-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #050505; /* Black text */
    margin: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}
.refokus-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
}
.refokus-row-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6); /* Dark grey */
    margin: 0;
    max-width: 90%;
}
.refokus-row-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #050505;
    text-decoration: none;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    transition: border-color 0.4s ease, color 0.4s ease;
}
.refokus-row-btn svg {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover interactions */
.refokus-service-row:hover .refokus-row-title {
    transform: translateX(1.5rem);
    color: #000000;
}
.refokus-service-row:hover .refokus-row-desc {
    color: rgba(0, 0, 0, 0.9);
}
.refokus-row-btn:hover {
    border-bottom-color: #000000;
}
.refokus-row-btn:hover svg {
    transform: translate(6px, -6px);
}
@media (max-width: 991px) {
    .services-refokus { padding: 80px 0; }
    .services-refokus-intro { margin-bottom: 4rem; max-width: 100%; }
    .refokus-service-row { padding: 3rem 0; gap: 1.5rem; }
    .refokus-service-row:hover .refokus-row-title { transform: translateX(0.5rem); }
}

/* Premium Clean Video Integration */
.web-video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: #ffffff;
    /* Reveal animation */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1.5rem;
}
.web-video-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15); /* White filter overlay */
    mix-blend-mode: overlay;
    pointer-events: none;
}
.web-video-wrapper.is-revealed {
    opacity: 1;
    transform: translateY(0);
}
.web-video-asset {
    width: 100%;
    height: auto; /* natural height, avoids clipping / forced letterboxing */
    display: block;
    object-fit: cover;
    opacity: 0.9; /* softens the contrast against white background */
    filter: brightness(1.1) saturate(0.85); /* white/airy filter aesthetics */
    mix-blend-mode: multiply; /* harmonizes darker parts gracefully with light backgrounds */
}
@media (min-width: 992px) {
    .refokus-service-row[data-has-video="true"] {
        grid-template-columns: 40% 1fr 240px;
        gap: 3rem;
        align-items: start;
    }
    .refokus-service-row[data-has-video="true"] .refokus-row-right {
        padding-right: 0;
    }
    .web-video-wrapper {
        margin-top: 0;
        width: 240px;
        align-self: start; 
    }
}
@media (min-width: 1200px) {
    .refokus-service-row[data-has-video="true"] {
        grid-template-columns: 42% 1fr 280px;
        gap: 4rem;
    }
    .web-video-wrapper {
        width: 280px;
    }
}
        

/* ======================== CASE STUDIES (extracted from HTML) ======================== */

/* Premium Case Study Preview Styles for all projects */
.case-panel-visual.visual-premium,
.case-panel-visual.visual-dronow,
.case-panel-visual.visual-voltair,
.case-panel-visual.visual-nlevel,
.case-panel-visual.visual-crysta {
    background: none;
    padding: 0;
    display: block;
    min-height: auto;
}
.premium-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 0, 0, 0.4));
    padding: 1px; /* Premium border glow */
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(0, 240, 255, 0.05);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
.case-showcase-item:hover .premium-image-wrapper {
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 40px rgba(0, 240, 255, 0.15);
    transform: translateY(-4px);
}
.premium-desktop-frame {
    background: #0a0a0c;
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.premium-browser-bar {
    height: 28px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
}
.premium-browser-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.premium-browser-bar span:nth-child(1) { background: #ff5f56; }
.premium-browser-bar span:nth-child(2) { background: #ffbd2e; }
.premium-browser-bar span:nth-child(3) { background: #27c93f; }

.premium-screen-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.premium-screenshot {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    will-change: transform;
}
/* Subtle pan/zoom on hover to feel like a live demo */
.case-showcase-item:hover .premium-screenshot {
    transform: scale(1.05) translateY(-3%);
}
.premium-inner-shadow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.6);
    pointer-events: none;
}

.case-panel-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.btn-live-demo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(0, 240, 255, 0.05);
    color: #00f0ff !important;
    border: 1px solid rgba(0, 240, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-live-demo:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.minimal-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}
.minimal-panel-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 1.25rem 0;
    line-height: 1.5;
}

.minimal-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.minimal-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}
.minimal-feature-icon {
    color: #00f0ff;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .case-panel-actions {
        gap: 1rem;
    }
    .btn-live-demo {
        width: 100%;
        justify-content: center;
    }
}
        

/* ======================== CONTACT SECTION (extracted from HTML) ======================== */

/* Scoped Contact Section Styles */
.contact-section-redesign {
    padding: 80px 0; /* Reduced to remove excessive empty space */
    background-color: transparent;
    position: relative;
    overflow: hidden;
}
@media (max-width: 767.98px) {
    .contact-section-redesign {
        padding: 80px 0;
    }
}
.contact-premium-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 992px) {
    .contact-premium-grid {
        grid-template-columns: 1fr 1.1fr;
        gap: 6rem;
        align-items: flex-start; /* Aligns left and right columns visually to the top */
    }
}
.contact-left-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-premium-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.contact-premium-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background-color: currentColor;
}
.contact-premium-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (max-width: 767.98px) {
    .contact-premium-heading {
        font-size: 2.25rem;
    }
}
.contact-premium-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 90%;
}
.contact-info-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}
.contact-premium-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    transition: border-color 0.4s ease, transform 0.4s ease, background 0.4s ease;
}
@media (min-width: 768px) {
    .contact-premium-info-card {
        grid-template-columns: repeat(2, 1fr);
    }
}
.contact-info-item.full-width {
    grid-column: 1 / -1;
}
.contact-premium-info-card:hover, .contact-premium-map-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}
.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.contact-info-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.contact-info-value {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
}
a.contact-info-value:hover {
    color: rgba(255,255,255,0.7);
}
.contact-premium-map-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.4s ease, background 0.4s ease;
}
.contact-premium-map-card iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
    filter: grayscale(100%) invert(90%) hue-rotate(180deg) contrast(1.1) opacity(0.6);
    pointer-events: none;
    transform: scale(1.1);
}
.contact-premium-map-marker {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: pulse-marker 3s infinite ease-in-out;
}
@keyframes pulse-marker {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.1); }
    70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.contact-premium-map-marker::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 16px rgba(255,255,255,0.8);
}
.contact-right-content {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
}
.contact-premium-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.form-group {
    position: relative;
    width: 100%;
}
.premium-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 0.5rem 0 1rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: #ffffff;
    transition: border-color 0.3s ease;
    outline: none;
    resize: none;
}
.premium-input:-webkit-autofill,
.premium-input:-webkit-autofill:hover, 
.premium-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}
.premium-input:focus {
    border-bottom-color: #ffffff;
}
.premium-input::placeholder {
    color: transparent;
}
.premium-label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-input:focus ~ .premium-label,
.premium-input:not(:placeholder-shown) ~ .premium-label {
    top: -16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.premium-textarea {
    min-height: 120px;
    resize: none;
}
.premium-submit-btn {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #ffffff;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
}
.premium-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.15);
    background: #f0f0f0;
}
.premium-submit-btn:active {
    transform: translateY(0);
}
.premium-submit-icon {
    transition: transform 0.3s ease;
}
.premium-submit-btn:hover .premium-submit-icon {
    transform: translateX(4px) translateY(-4px);
}
/* LIGHT THEME OVERRIDES */
.contact-light-theme {
    background-color: #ffffff !important;
    color: #0d0d1a;
}
.contact-light-theme .contact-premium-heading {
    background: linear-gradient(180deg, #0d0d1a 0%, rgba(13, 13, 26, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-light-theme .contact-premium-desc,
.contact-light-theme .about-laptop-proof {
    color: rgba(13, 13, 26, 0.7) !important;
}
.contact-light-theme .contact-premium-eyebrow,
.contact-light-theme .about-laptop-stat-label {
    color: rgba(13, 13, 26, 0.5) !important;
}
.contact-light-theme .about-laptop-stat-value {
    color: #0d0d1a !important;
}
.contact-light-theme .contact-right-content,
.contact-light-theme .contact-premium-info-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
.contact-light-theme .contact-info-label {
    color: rgba(13, 13, 26, 0.5);
}
.contact-light-theme .contact-info-value {
    color: #0d0d1a;
}
.contact-light-theme .premium-input {
    border-bottom: 1px solid rgba(13, 13, 26, 0.2);
    color: #0d0d1a;
}
.contact-light-theme .premium-input:focus {
    border-bottom-color: #0d0d1a;
}
.contact-light-theme .premium-label {
    color: rgba(13, 13, 26, 0.5);
}
.contact-light-theme .premium-input:focus ~ .premium-label,
.contact-light-theme .premium-input:not(:placeholder-shown) ~ .premium-label {
    color: rgba(13, 13, 26, 0.8);
}
.contact-light-theme .premium-submit-btn {
    background: #0d0d1a;
    color: #ffffff;
}
.contact-light-theme .premium-submit-btn:hover {
    background: #1a1a2e;
    box-shadow: 0 12px 24px rgba(13, 13, 26, 0.15);
}
@media (max-width: 767.98px) {
    .contact-right-content {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }
    .premium-submit-btn {
        align-self: stretch;
    }
}
        
