@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@1,400;1,700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700,500,400&display=swap');

:root {
    --bg-dark: #0d0d15;
    --bg-light: #F9FAFC;
    --acc-primary: #FFFFFF;
    --acc-blue: #3E3F7E;
    --acc-blue-20: rgba(62, 63, 126, 0.2);
    --acc-blue-hover: #696AAC;
    --acc-blue-darker: #232448;
    --text-primary: #F9FAFC;
    --text-paragraph: #C7C8F2;
    --text-muted: #8587E3;
    --grey-light: #EBEEF5;
    --grey-very-light: #F2F2F2;
    --grey-border: #CCCCCC;
    --font-heading: 'Satoshi', sans-serif;
    --font-serif: 'EB Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(62, 63, 126, 0.1);
    --glass-border: rgba(105, 106, 172, 0.2);
    --brand: #858AE3;
}

/* Creative Preloader - 'The Sarcastic AI' Theme */
#preloader {
    position: fixed;
    inset: 0;
    background: #0d0d15;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ai-loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    position: relative;
}

/* The AI "Eye" Mascot */
.ai-core {
    position: relative;
    width: 120px;
    height: 120px;
    background: rgba(133, 137, 227, 0.1);
    border: 2px solid rgba(133, 137, 227, 0.3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: core-morph 6s ease-in-out infinite alternate;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-eye {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5), 0 0 60px var(--brand);
    animation: eye-pulse 2s ease-in-out infinite;
}

@media (max-width: 640px) {
    .ai-core {
        width: 80px;
        height: 80px;
    }

    .ai-eye {
        width: 30px;
        height: 30px;
    }
}

.ai-pupil {
    width: 15px;
    height: 15px;
    background: #0d0d15;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: eye-roll 8s infinite;
}

@keyframes core-morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes eye-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes eye-roll {

    0%,
    10%,
    100% {
        transform: translate(-50%, -50%);
    }

    20% {
        transform: translate(50%, -50%);
    }

    30% {
        transform: translate(-100%, 0%);
    }

    40% {
        transform: translate(-50%, -150%);
    }

    50% {
        transform: translate(50%, 50%);
    }
}

.ai-status-wrap {
    text-align: center;
    min-height: 1.2rem;
}

.sarcastic-text {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    /* color: var(--brand); */
    position: relative;
}

/* Glitch Effect for text */
.glitch-text::before,
.glitch-text::after {
    /* content: attr(data-text); */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    /* text-shadow: -2px 0 #ff00c1; */
    /* clip-path: inset(44% 0 30% 0); */
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    /* text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1; */
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(30% 0 61% 0);
    }

    100% {
        clip-path: inset(10% 0 20% 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: inset(62% 0 1% 0);
    }

    100% {
        clip-path: inset(50% 0 40% 0);
    }
}

.ai-progress-bar-wrap {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    /* overflow: hidden; */
}

.ai-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    box-shadow: 0 0 15px #fff;
    transition: width 0.4s ease;
}

body.loaded #preloader {
    transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

p {
    font-size: 1.15rem;
    /* Minor baseline increase */
    font-weight: 400;
    opacity: 0.9;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.04em;
    /* Tighter letter-spacing for luxury look */
}

/* --- Unified Typography System --- */
:root {
    --size-xl: clamp(3.5rem, 10vw, 7.5rem);
    --size-lg: clamp(2.5rem, 6vw, 4.5rem);
    --size-md: clamp(1.5rem, 3vw, 2.2rem);
    --size-sm: 0.65rem;
    --size-p: 1.1rem;
    --size-p-small: 0.85rem;
}

h1,
.h-xl {
    font-family: var(--font-heading);
    font-size: var(--size-xl);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

h2,
.h-lg {
    font-family: var(--font-heading);
    font-size: var(--size-lg);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

h3,
.h-md {
    font-family: var(--font-heading);
    font-size: var(--size-md);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.h-sm {
    font-family: var(--font-body);
    font-size: var(--size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--brand);
    display: block;
}

p,
.p-main {
    font-family: var(--font-body);
    font-size: var(--size-p);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.p-sub {
    font-family: var(--font-body);
    font-size: var(--size-p-small);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Unified Em Style */
em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: #fff;
    opacity: 1;
}

.grad-text {
    background: linear-gradient(to bottom, #fff, rgba(116, 116, 197, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Re-styled Glass */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Unique Floating Island Navigation --- */
.floating-nav-wrapper {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 5%;
    pointer-events: none;
}

.nav-pill {
    background: rgba(13, 13, 21, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.7rem 3rem;
    /* "Width normal increase" */
    min-width: 600px;
    /* "Width is normal incress" */
    display: flex;
    align-items: center;
    gap: 3.5rem;
    pointer-events: auto;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.nav-pill:hover {
    background: rgba(13, 13, 21, 0.9);
    border-color: rgba(116, 116, 197, 0.3);
    transform: translateY(-2px);
}

.nav-pill .logo a {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #fff;
    text-decoration: none;
    display: flex;
    gap: 0.1rem;
}

.nav-pill .logo span {
    color: var(--brand);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    /* "Little big increase" in spacing */
}

.nav-item {
    font-size: 13px;
    /* "Little big increase" in text size */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    /* Slightly reduced tracking for larger font */
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item::after {
    display: none;
}

.nav-item:hover::after {
    display: none;
}

.services-trigger::after {
    content: '↓';
    font-size: 0.8rem;
    margin-left: 0.5rem;
    opacity: 0.3;
}

.nav-cta {
    background: #fff;
    color: #000;
    padding: 1.1rem 2.8rem;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.4s ease;
}

.nav-cta:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 40px rgba(133, 137, 227, 0.4);
}

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-pill {
        gap: 0;
        justify-content: space-between;
        padding-right: 0.8rem;
        padding-left: 1.8rem;
        width: 100%;
        max-width: 500px;
        min-height: 70px;
        min-width: 0;
        /* Override desktop min-width to prevent overflow on mobile */
    }

    .floating-nav-wrapper {
        padding: 0 1.5rem;
    }
}





@media (max-width: 480px) {
    .nav-pill {
        padding-left: 1.2rem;
    }

    .nav-cta {
        padding: 0.7rem 1.2rem;
        font-size: 9px;
    }
}

.mega-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: 95vw;
    max-width: 1200px;
    background: rgba(13, 13, 21, 0.95);
    /* Match website dark theme */
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Sophisticated dark border */
    border-radius: 1.5rem;
    padding: 4rem 5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

/* Hover bridge to prevent menu from closing when moving mouse from link to menu */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    width: 100%;
    height: 2rem;
}

.nav-item-services:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mega-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: all 0.3s ease;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.group-icon {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    width: 20px;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
}

.mega-group h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.02em;
    margin: 0;
    transition: color 0.3s ease;
}

/* Hover State for Groups */
.mega-group:hover h4,
.mega-group.active h4 {
    color: #fff;
}

.mega-group:hover .group-icon,
.mega-group.active .group-icon {
    color: var(--brand);
    /* Use website primary brand color */
    transform: scale(1.2);
}

.group-content {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 2.2rem;
}

/* Active State for Content */
.mega-group.active .group-content {
    display: flex;
}

.mega-sub-item {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.mega-sub-item:hover {
    color: var(--brand);
    transform: translateX(8px);
}

/* Animations for the mega menu reveal */
.mega-menu .mega-group {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item-services:hover .mega-menu .mega-group {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger for groups */
.nav-item-services:hover .mega-menu .mega-column:nth-child(1) .mega-group:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(1) .mega-group:nth-child(2) {
    transition-delay: 0.15s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(1) .mega-group:nth-child(3) {
    transition-delay: 0.2s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(1) .mega-group:nth-child(4) {
    transition-delay: 0.25s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(1) .mega-group:nth-child(5) {
    transition-delay: 0.3s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(2) .mega-group:nth-child(1) {
    transition-delay: 0.15s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(2) .mega-group:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(2) .mega-group:nth-child(3) {
    transition-delay: 0.25s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(2) .mega-group:nth-child(4) {
    transition-delay: 0.3s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(2) .mega-group:nth-child(5) {
    transition-delay: 0.35s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(3) .mega-group:nth-child(1) {
    transition-delay: 0.2s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(3) .mega-group:nth-child(2) {
    transition-delay: 0.25s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(3) .mega-group:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(3) .mega-group:nth-child(4) {
    transition-delay: 0.35s;
}

.nav-item-services:hover .mega-menu .mega-column:nth-child(3) .mega-group:nth-child(5) {
    transition-delay: 0.4s;
}

@media (max-width: 1024px) {
    .mega-menu {
        display: none;
    }
}




/* Hero Enhancements */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(105, 106, 172, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

/* Services Section - GSAP Pinned Horizontal Scroll */
.services-pinned {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 8vh;
}

.services-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 600px;
    background: #0d0d15;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5rem;
    pointer-events: none;
}

.services-sidebar::after {
    content: "";
    position: absolute;
    right: -120px;
    top: 0;
    width: 120px;
    height: 100%;
    background: linear-gradient(to right, #0d0d15 0%, transparent 100%);
    pointer-events: none;
    z-index: 30;
}

.services-header {
    position: absolute;
    top: 12%;
    /* Increased top offset for more space */
    left: 10%;
    right: 10%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 6rem;
    /* Controlled gap between items */
    z-index: 40;
}

.services-track {
    display: flex;
    gap: 3rem;
    /* Decreased gap between cards */
    padding-left: 750px;
    /* Increased space between animation and cards */
    padding-right: 20vw;
    will-change: transform;
}

.service-item-card {
    flex: 0 0 420px;
    /* Improved width for details */
    height: 600px;
    /* Improved height to prevet overflow */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 3rem;
    background: rgba(62, 63, 126, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.service-item-card:hover {
    transform: translateY(-10px);
    border-color: var(--acc-blue-hover);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.service-item-card.featured {
    background: var(--acc-blue);
    color: var(--text-primary);
}

.card-num {
    font-size: 1.2rem;
    font-weight: 800;
    opacity: 0.4;
    margin-bottom: 2rem;
}

.card-arrow {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-size: 1.8rem;
    transition: transform 0.4s ease;
}

.service-item-card:hover .card-arrow {
    transform: translate(10px, -10px);
}

@media (max-width: 1024px) {
    .services-pinned {
        height: auto !important;
        position: relative;
        padding-bottom: 4rem;
        display: block;
        overflow: visible;
    }

    .services-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 4rem 5% 0;
        background: transparent;
    }

    .services-sidebar::after {
        display: none;
    }

    .services-header {
        position: relative;
        inset: auto;
        padding: 2rem 5%;
        margin-bottom: 3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .services-header .max-w-xs {
        text-align: left;
        max-width: 100%;
    }

    .services-track {
        display: flex;
        flex-direction: column;
        padding-left: 5%;
        padding-right: 5%;
        gap: 2rem;
        opacity: 1 !important;
        transform: none !important;
    }

    .service-item-card {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 350px;
        padding: 2.5rem;
    }

    #animation-dock {
        width: 100%;
        height: 300px;
        margin: 0 auto;
    }
}

.card-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    font-weight: 900;
}

.card-desc {
    font-size: 1rem;
    /* Slightly smaller for better fit */
    opacity: 0.6;
    margin-bottom: auto;
    max-width: 100%;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 2rem;
}

.footer-list h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.footer-list ul {
    list-style: none;
}

.footer-list li {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    opacity: 0.8;
}

.footer-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

#animation-dock {
    width: 550px;
    height: 700px;
    background: transparent;
    /* Removed box/gradient backgrounds */
    border: none;
    box-shadow: none;
}

/* Custom Cursor Refined */
#cursor {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
}

#cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

/* Logo Slider Merged Entry */
.logo-slider {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 60px 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 20;
}

/* Luxury Fades */
.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 300px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: luxuryScroll 40s linear infinite;
    gap: 150px;
}

.logo-item {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    flex-shrink: 0;
}

@keyframes luxuryScroll {
    0% {
        transform: translateX(0);
    }

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

.logo-item {
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.5s ease, transform 0.5s ease;
    flex-shrink: 0;
}

.logo-item:hover {
    color: #fff;
    transform: translateY(-2px);
}

#animation-dock {
    display: none;
}

@media (min-width: 1024px) {
    #animation-dock {
        display: block;
    }
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 1;
}

/* Utilities */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

/* Case Studies Section - Luxury Masonry Grid */
.case-studies {
    background: #0d0d15;
    padding: 6rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.case-studies-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 0 5%;
}

.case-studies-header h2 {
    margin-bottom: 0;
}

.case-header-right {
    max-width: 400px;
    text-align: right;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    /* Increased spacing for luxury look */
}

.case-card {
    position: relative;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* New Cinematic Hover */
.case-card:hover {
    transform: scale(0.98);
    /* Slight press effect before release or keep it subtle */
}

.case-card:hover .case-image-container {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--brand);
}

.case-card::before {
    display: none;
    /* Removing old gradient overlay */
}

.case-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    margin-bottom: 1.5rem;
    aspect-ratio: 4/5;
    /* Enforce Uniform Size */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s ease;
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    /* Lighter overlay */
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(2px);
    /* Glass effect */
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-brand-logo {
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
    opacity: 0;
}

.case-card:hover .case-brand-logo {
    transform: translateY(0);
    opacity: 1;
}

.case-plus {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0;
    transform: rotate(-45deg);
    transition: all 0.4s ease;
    mix-blend-mode: difference;
}

.case-card:hover .case-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.case-index {
    position: absolute;
    bottom: 1.5rem;
    /* Moved to bottom for variety */
    left: 1.5rem;
    top: auto;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.case-card:hover .case-index {
    opacity: 0.8;
}

.case-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    filter: grayscale(100%);
    /* Start clean B&W for premium feel */
}

.case-card:hover img {
    transform: scale(1.15);
    /* Deep Zoom */
    filter: grayscale(0%);
    /* Restore color on hover */
}

.case-info {
    display: flex;
    flex-direction: column;
}

.case-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.case-info-top h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.case-info-top .case-year {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.5;
}

.case-category {
    font-size: 0.65rem;
    font-weight: 500;
    opacity: 0.3;
    text-transform: capitalize;
    margin-top: -0.2rem;
}

/* Aspect Ratios Removed */
/* .case-card.tall .case-image-container ... etc removed */

@media (max-width: 1024px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* View All Projects Button (Integrated & Small) */
.projects-view-all {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 10rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: #fff;
}

.projects-view-all.small {
    padding: 0.6rem 0.6rem 0.6rem 2rem;
    gap: 1.2rem;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

.projects-view-all.small .view-all-text {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
}

.projects-view-all.small .view-all-circle {
    width: 44px;
    height: 44px;
}

.projects-view-all.small .arrow-icon {
    font-size: 1.1rem;
}

.view-all-text {
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.6;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.view-all-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.arrow-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.projects-view-all:hover {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 10px 40px rgba(133, 137, 227, 0.4);
    transform: scale(1.02);
}

.projects-view-all:hover .view-all-text {
    opacity: 1;
    transform: translateX(5px);
}

.projects-view-all:hover .view-all-circle {
    background: #fff;
    color: var(--brand);
    transform: scale(1.1);
}

.projects-view-all:hover .arrow-icon {
    transform: translate(2px, -2px);
}

/* Testimonials Section - Infinite Luxe Marquee */
.testimonials {
    padding: 6rem 0;
    background: var(--bg-dark);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 10%;
}

.testimonials-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 0;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    width: max-content;
}

.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.testimonial-card {
    flex: 0 0 400px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2.5rem;
    border-radius: 2rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 280px;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand);
    transform: translateY(-10px);
}

.test-quote {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-style: italic;
    font-family: var(--font-serif);
    letter-spacing: 0.01em;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #fff;
}

.author-info p {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.4;
    font-weight: 700;
}

.test-star {
    color: var(--brand);
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    margin-bottom: 1.5rem;
}

/* Animations for marquee provided by JS (GSAP) */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 85vw;
        /* Make cards fluid on mobile */
        padding: 2rem;
        height: auto;
        min-height: 250px;
    }

    .test-quote {
        font-size: 1rem;
    }

    .testimonials {
        padding: 4rem 0;
    }

    .testimonials-header {
        padding: 0 5%;
        margin-bottom: 3rem;
    }

    .testimonials-header h2 {
        font-size: 2.2rem;
    }
}

/* Global Achievements Section */
.achievements-section {
    padding: 8rem 5% 0;
    background: radial-gradient(circle at center bottom, rgba(133, 135, 227, 0.05), transparent 70%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.achievements-header {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.achievements-header h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.achievements-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 0.5rem;
}

.stat-item {
    padding: 1.5rem;
    position: relative;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--brand);
    display: block;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.globe-container {
    width: 100%;
    height: 600px;
    position: relative;
    margin-top: -3rem;
    margin-bottom: 0;
    z-index: 1;
    cursor: grab;
    mask-image: linear-gradient(to top, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to top, transparent, black 15%, black 85%, transparent);
}

.globe-container:active {
    cursor: grabbing;
}

#three-globe-canvas {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .stat-number {
        font-size: 2.5rem;
    }

    .globe-container {
        height: 400px;
        margin-top: -50px;
    }
}

/* Interactive Globe Popups */
.globe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.globe-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
}

.marker-flag-wrap {
    width: 24px;
    height: 18px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.globe-marker:hover .marker-flag-wrap {
    transform: scale(1.3);
}

.marker-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(133, 137, 227, 0.3);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 1px solid #fff;
    border-radius: 50%;
    opacity: 0;
    animation: marker-pulse 2s infinite;
}

@keyframes marker-pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* HUD-style Globe Labels */
.marker-label-hud {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.globe-marker:hover .marker-label-hud {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.label-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to top, var(--brand), transparent);
}

.label-content {
    background: rgba(13, 13, 21, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(133, 137, 227, 0.3);
    padding: 1rem 1.8rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.country-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 0.3rem;
}

.country-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--brand-light);
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .projects-view-all.small .view-all-text {
        display: none;
        /* Hide text on smaller screens if needed, or keep */
    }

    .projects-view-all.small {
        padding: 0.6rem;
        gap: 0;
    }

    .projects-view-all.small .view-all-circle {
        margin: 0;
    }
}

@media (max-width: 600px) {
    .services-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-banner {
        padding: 3rem 1.5rem;
    }

    .cta-glass-btn {
        padding: 1rem 2rem;
        width: 100%;
        justify-content: center;
    }

    .cta-section {
        padding: 4rem 1rem;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        /* Copyright at bottom */
        gap: 1.5rem;
    }
}

.marker-point {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px #fff, 0 0 40px var(--brand), 0 0 60px var(--brand-light);
    position: relative;
    z-index: 5;
}

#globe-canvas-container {
    mask-image: radial-gradient(circle at center top, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center top, black 30%, transparent 80%);
}

/* Premium Banner CTA - Ethereal Inspiration */
.cta-section {
    padding: 6rem 5%;
    /* Reduced height */
    background: #0d0d15;
    position: relative;
    overflow: hidden;
}

.cta-banner {
    max-width: 1400px;
    margin: 0 auto;
    /* Dimmed with gradient overlay and added animation */
    background: linear-gradient(rgba(5, 5, 8, 0.6), rgba(5, 5, 8, 0.6)), url('../assets/images/cta-bg.png') no-repeat center center;
    background-size: cover;
    border-radius: 2rem;
    padding: 4rem 6%;
    /* Reduced height */
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: banner-panning 40s linear infinite alternate;
}

@keyframes banner-panning {
    0% {
        background-position: 50% 50%;
    }

    100% {
        background-position: 55% 45%;
    }
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(133, 137, 227, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    max-width: 600px;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    opacity: 0.95;
}

.cta-banner h2 strong {
    font-weight: 800;
    display: block;
    margin-top: 0.5rem;
}

.cta-glass-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(133, 137, 227, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(133, 137, 227, 0.3);
    padding: 1.2rem 3rem;
    border-radius: 100px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-glass-btn:hover {
    background: rgba(133, 137, 227, 0.4);
    border-color: #fff;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 50px rgba(133, 137, 227, 0.3);
}

.cta-glass-btn .arrow-icon {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.cta-glass-btn:hover .arrow-icon {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 4rem 10%;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }
}


/* Footer Section */
.main-footer {
    background: #050508;
    padding: 8rem 5% 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 8rem;
}

.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    display: block;
}

.footer-brand p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--brand);
    margin-bottom: 2.5rem;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--brand);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

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

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .cta-section h2 {
        font-size: 3rem;
    }
}

/* --- NEW: CINEMATIC PROJECT MOSAIC (INDEX) --- */
.project-mosaic {
    padding: 0 5% 10rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 2.5rem;
}

.mosaic-item {
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    cursor: pointer;
    background: #0d0d15;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-item.large {
    grid-column: span 8;
    grid-row: span 2;
}

.mosaic-item.tall {
    grid-column: span 4;
    grid-row: span 2;
}

.mosaic-item.medium {
    grid-column: span 6;
    grid-row: span 1;
}

.mosaic-item.small {
    grid-column: span 6;
    grid-row: span 1;
}

.mosaic-img-box {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mosaic-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.6) grayscale(0.2);
}

.mosaic-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.9) grayscale(0);
}

.mosaic-content {
    position: absolute;
    inset: 0;
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(13, 13, 21, 0.95) 0%, transparent 60%);
    z-index: 2;
}

.mosaic-meta {
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosaic-item:hover .mosaic-meta {
    transform: translateY(0);
}

.mosaic-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--brand);
    margin-bottom: 0.75rem;
    display: block;
}

.mosaic-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: .95;
    letter-spacing: -0.04em;
}

/* --- NEW: WORK BENTO GRID (PROJECTS PAGE) --- */
.work-bento-grid {
    padding: 0 5% 8rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-card {
    position: relative;
    border-radius: 3rem;
    overflow: hidden;
    background: #0e0e12;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 500px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card.col-12 {
    grid-column: span 12;
    min-height: 400px;
}

.bento-card.col-8 {
    grid-column: span 8;
}

.bento-card.col-4 {
    grid-column: span 4;
}

.bento-card.col-6 {
    grid-column: span 6;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: rgba(116, 116, 197, 0.3);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
}

.bento-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    transition: all 0.8s ease;
}

.bento-card:hover .bento-visual img {
    opacity: 0.6;
    transform: scale(1.05);
}

.bento-details {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-top {
    display: flex;
    justify-content: space-between;
}

.bento-label {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--brand);
    letter-spacing: 0.3em;
}

.bento-year {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.bento-title {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    line-height: .9;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}

.bento-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 400px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.1s;
}

.bento-card:hover .bento-desc {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .bento-title {
        font-size: 2.5rem;
    }

    .bento-details {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {

    .project-mosaic,
    .work-bento-grid {
        grid-template-columns: 1fr;
    }

    .mosaic-item,
    .bento-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 400px;
    }
}

.work-image-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 500px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    scale: 0.8;
    transition: opacity 0.4s ease, scale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border-radius: 1.5rem;
}

.work-image-inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.work-image-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-image-cursor.active {
    opacity: 1;
    scale: 1;
}

.work-image-cursor.active img {
    transform: scale(1);
}

@media (max-width: 768px) {
    .work-list-item {
        padding: 3rem 0;
    }

    .work-num {
        margin-right: 2rem;
    }

    .work-image-cursor {
        display: none;
    }

    .work-title {
        color: rgba(255, 255, 255, 0.8);
    }

    .work-meta-wrap {
        opacity: 0.6;
        transform: none;
    }
}

/* Antimatter Case Study Styles */
.case-study-antimatter {
    --as-bg: #000000;
    --as-text: #F6F6FD;
    --as-accent: #8587E3;
    --as-radius-lg: 48px;
    --as-radius-md: 32px;
    background-color: var(--as-bg) !important;
    color: var(--as-text) !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.case-study-antimatter nav.floating-nav-wrapper {
    background: transparent;
}

.as-hero {
    padding-top: 12rem;
    padding-bottom: 6rem;
    text-align: center;
}

.as-hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4rem !important;
    letter-spacing: -0.04em;
}

.as-hero-visual {
    width: 100%;
    border-radius: var(--as-radius-lg);
    background: #111;
    overflow: hidden;
    margin-top: 4rem;
    aspect-ratio: 16 / 9;
}

.as-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-section {
    padding: 8rem 0;
}

.as-brief-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    align-items: flex-start;
}

.as-summary-text {
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: 0.8;
}

.as-tech-pill {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 0 0.5rem 0.8rem 0;
    background: rgba(255, 255, 255, 0.03);
}

.as-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 2rem;
}

.as-bento-card {
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--as-radius-md);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

.as-bento-card.wide {
    grid-column: span 2;
}

.as-bento-card.tall {
    grid-row: span 2;
}

.as-stat-num {
    font-size: 5.5rem;
    font-weight: 800;
    color: var(--as-accent);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.as-ui-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.as-ui-frame {
    background: #0d0d0d;
    border-radius: var(--as-radius-md);
    overflow: hidden;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-ui-frame:hover {
    transform: translateY(-10px);
}

.as-ui-frame img {
    border-radius: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.as-next-banner {
    width: 100%;
    padding: 15rem 5%;
    background: #0a0a0a;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.5s ease;
    margin-top: 8rem;
}

.as-next-title {
    font-size: clamp(4rem, 15vw, 15rem);
    /* Even larger for impact */
    font-weight: 800;
    opacity: 0.05;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.06em;
    line-height: 0.8;
}

.as-next-banner:hover .as-next-title {
    opacity: 1;
    transform: scale(1.02);
    color: #fff;
}

@media (max-width: 1024px) {
    .as-brief-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .as-bento-grid {
        grid-template-columns: 1fr;
    }

    .as-bento-card.wide {
        grid-column: span 1;
    }

    .as-ui-showcase {
        grid-template-columns: 1fr;
    }
}

/* --- COMPANY PAGE REVAMP STYLES --- */

/* Hero Mesh Gradient */
.hero-mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    background-color: #0d0d15;
    background-image:
        radial-gradient(at 0% 0%, rgba(133, 137, 227, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(62, 63, 126, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(133, 137, 227, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(62, 63, 126, 0.1) 0px, transparent 50%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.hero-title-large {
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, minmax(320px, auto));
    gap: 1.5rem;
    padding: 2rem 0;
}

.bento-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.bento-item.large {
    grid-column: span 8;
}

.bento-item.medium {
    grid-column: span 4;
}

.bento-item.tall {
    grid-column: span 4;
    grid-row: span 2;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Team Parallax Slider */
.team-section-revamp {
    overflow: hidden;
    position: relative;
}

.team-parallax-track {
    display: flex;
    gap: 2vw;
    width: max-content;
    padding: 0 5vw;
}

.team-card-modern {
    width: 22vw;
    min-width: 280px;
    aspect-ratio: 3/4;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
}

.team-card-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), filter 0.5s ease;
    filter: grayscale(100%) contrast(1.1);
}

.team-card-modern:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.1);
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.team-card-modern:hover .team-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Abstract Shape for Story */
.story-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grad-orb-1 {
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(133, 137, 227, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.grad-orb-2 {
    position: absolute;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(62, 63, 126, 0.6) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 8s ease-in-out infinite reverse;
    top: 20%;
    right: 20%;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }

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

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-item.large,
    .bento-item.medium,
    .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .team-card-modern {
        width: 80vw;
    }

    .hero-title-large {
        font-size: 15vw;
    }
}

/* --- ADVANCED "SURPRISE" DESIGN --- */

/* 1. Film Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 2. Mixed Typography */
.font-serif-italic {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 em,
h2 em,
.hero-title-large em {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: #fff;
    /* Optional: nuanced gold or lavender tint for the serif part */
    /* color: #B4A0FF; */
}

/* 3. Sticky Reveal Footer Logic */
.page-wrapper {
    position: relative;
    z-index: 2;
    background-color: #0d0d15;
    margin-bottom: 80vh;
    /* Adjust based on footer height */
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    /* Shadow to separate from footer */
}

.sticky-footer-placeholder {
    height: 80vh;
    /* Should match the footer height */
    pointer-events: none;
}

.sticky-reveal-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    /* Use Viewport Height for dramatic effect */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
    /* Darker than body */
    padding: 4rem 5%;
}

/* 4. 3D Tilt Effect Classes */
.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.tilt-inner {
    transform: translateZ(20px);
}

/* 5. Infinite Text Strip */
.marquee-strip-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    background: #fff;
    color: #000;
    transform: rotate(-2deg) scale(1.05);
    /* Jaunty angle */
    margin: 4rem 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.marquee-strip-content {
    display: flex;
    white-space: nowrap;
    gap: 4rem;
    font-family: 'Satoshi', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

/* 6. Refined Bento Hover */
.bento-item::before {
    /* Use a cooler gradient for the glow */
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(180, 160, 255, 0.08), transparent 40%);
}

/* Adjustments for Sticky Footer on Mobile */
@media (max-width: 768px) {
    .page-wrapper {
        margin-bottom: 0;
    }

    .sticky-footer-placeholder {
        display: none;
    }

    .sticky-reveal-footer {
        position: relative;
        height: auto;
        padding: 4rem 5%;
    }

    .marquee-strip-wrapper {
        transform: rotate(0) scale(1);
    }
}

/* --- REFINEMENT: Cinematic Team List & Footer Fix --- */

/* 1. Footer Fixes */
.page-wrapper {
    /* Ensure strict layering */
    position: relative;
    z-index: 10;
    background-color: #0d0d15;
    margin-bottom: 80vh;
    /* Match footer height exactly */
    box-shadow: 0 100px 200px rgba(0, 0, 0, 1);
    /* Deep shadow to separate */
    will-change: transform;
    /* Performance hint */
}

.sticky-reveal-footer {
    z-index: 0;
    /* Ensure visibility beneath */
    visibility: visible !important;
    opacity: 1 !important;
}

/* 2. Cinematic Team List */
.team-list-section {
    position: relative;
    padding: 10vh 0;
    overflow: hidden;
}

.team-list-wrapper {
    position: relative;
    z-index: 2;
}

.team-list-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.team-list-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-list-item h3 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.4s ease;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    margin: 0;
}

.team-list-item .role {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.team-list-item:hover h3 {
    color: #fff;
    transform: translateX(20px);
}

.team-list-item:hover .role {
    color: #858AE3;
    transform: translateX(-20px);
}

/* Hover Image Reveal Container */
.team-image-reveal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30vw;
    height: 40vw;
    z-index: 1;
    /* Behind the list text */
    pointer-events: none;
    mix-blend-mode: normal;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
}

.team-image-entry {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.7) contrast(1.1);
    border-radius: 8px;
    /* Small radius */
}

.team-image-entry.active {
    opacity: 1;
    transform: scale(1);
}

/* When hover happens on section, show container */
.team-list-section:hover .team-image-reveal-container {
    opacity: 1;
}

/* Darken page bg on hover for focus */
.team-list-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.team-list-section:hover::before {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .page-wrapper {
        margin-bottom: 0;
    }

    .sticky-reveal-footer {
        position: relative;
        height: auto;
    }

    .team-image-reveal-container {
        display: none;
        /* Hide expensive overlay on mobile */
    }

    .team-list-item h3 {
        font-size: 1.8rem;
    }

    .team-list-item:hover h3 {
        transform: translateX(10px);
    }
}

/* --- REFINEMENT 3: Horizontal Accordion & Footer Reset --- */

/* 1. Footer Revert (Standard Flow) */
.page-wrapper {
    position: relative;
    z-index: 1;
    background: #0d0d15;
    margin-bottom: 0 !important;
    /* Remove placeholder gap */
    box-shadow: none !important;
}

.sticky-footer-placeholder {
    display: none !important;
}

.sticky-reveal-footer {
    position: relative !important;
    /* Back to normal flow */
    bottom: auto !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 1 !important;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* 2. Horizontal Accordion Team Section */
.team-accordion {
    display: flex;
    width: 100%;
    height: 70vh;
    min-height: 600px;
    gap: 0;
    overflow: hidden;
}

.team-acc-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    cursor: pointer;
    filter: grayscale(100%) brightness(0.7);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.team-acc-item:last-child {
    border-right: none;
}

.team-acc-item:hover {
    flex: 3.5;
    /* Expand significantly */
    filter: grayscale(0%) brightness(1);
}

/* Background Image */
.team-acc-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-acc-item:hover .team-acc-img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

/* Content Container */
.team-acc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    /* Hidden by default in collapsed state */
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    transform: translateY(20px);
}

.team-acc-item:hover .team-acc-content {
    opacity: 1;
    transform: translateY(0);
}

/* Vertical Text (Collapsed State) */
.team-acc-vertical {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center bottom;
    white-space: nowrap;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: opacity 0.3s ease;
    pointer-events: none;
    width: 100%;
    text-align: left;
}

.team-acc-item:hover .team-acc-vertical {
    opacity: 0;
    /* Hide when expanded */
}

/* Expanded Content Typography */
.team-acc-name {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-acc-role {
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    color: #858AE3;
    margin-bottom: 1rem;
}

.team-acc-bio {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.2s;
    /* Delayed appearance */
}

.team-acc-item:hover .team-acc-bio {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Fallback: Stack them */
@media (max-width: 768px) {
    .team-accordion {
        flex-direction: column;
        height: auto;
    }

    .team-acc-item {
        height: 400px;
        flex: none;
        /* Disable flex expansion logic on mobile */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        filter: none;
        /* Always color on mobile */
    }

    .team-acc-vertical {
        display: none;
    }

    .team-acc-content {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }

    .team-acc-bio {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- REFINEMENT 4: Sticky Card Stack (Highlights) --- */

.stack-section-wrapper {
    padding: 10vh 0;
    position: relative;
    background-color: #0d0d15;
    /* Match bg */
}

.stack-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 10vh;
    /* Space at bottom */
}

.stack-card {
    position: sticky;
    top: 15vh;
    /* Stick 15% from top */
    min-height: 60vh;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #14141e;
    /* Base dark card */
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    /* Shadow upward to show depth */
    margin-bottom: 10vh;
    /* Space between cards in flow */
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    transform-origin: center top;
    transition: transform 0.5s ease;
}

/* Staggered offsets for visual stacking */
.stack-card:nth-child(1) {
    top: 15vh;
    background: linear-gradient(145deg, #1a1a24, #14141e);
}

.stack-card:nth-child(2) {
    top: 18vh;
    background: linear-gradient(145deg, #1c1c28, #161622);
}

.stack-card:nth-child(3) {
    top: 21vh;
    background: linear-gradient(145deg, #1e1e2d, #181826);
}

.stack-card:nth-child(4) {
    top: 24vh;
    background: linear-gradient(145deg, #202032, #1a1a2a);
}

/* Card Content */
.stack-card-number {
    font-family: 'EB Garamond', serif;
    font-size: 5rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 2rem;
    right: 3rem;
}

.stack-card-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.stack-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    max-width: 80%;
}

.stack-card p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 600px;
}

/* Decorative gradient blobs inside cards */
.stack-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(133, 138, 227, 0.15), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.stack-card:nth-child(odd) .stack-blob {
    right: -100px;
    bottom: -100px;
}

.stack-card:nth-child(even) .stack-blob {
    left: -100px;
    top: -100px;
}

/* Mobile Fallback: Normal Block Layout */
@media (max-width: 768px) {
    .stack-card {
        position: relative;
        top: 0 !important;
        margin-bottom: 2rem;
        min-height: auto;
        padding: 2rem;
    }
}

/* --- Contact Page Specific Styles (Synced from Reference) --- */

#map {
    z-index: 0 !important;
}

.leaflet-control-container,
.leaflet-bottom {
    display: none !important;
}

.glow-button {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.glow-button:hover {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.glass select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 1rem;
    padding-right: 2rem;
}

.glass input::placeholder,
.glass textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Animations for decorative elements */
.animate-spin-slow {
    animation: spin 8s linear infinite;
}

.animate-reverse-spin {
    animation: spin 10s linear infinite reverse;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Leaflet Map Customization */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: rgba(13, 13, 21, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(133, 137, 227, 0.3);
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 1rem !important;
}

.leaflet-popup-content {
    margin: 0.8rem 1rem !important;
    font-family: var(--font-body);
}

.marker-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(133, 137, 227, 0.4);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.marker-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Form Styles Override for inputs */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(133, 137, 227, 0.2);
}

/* --- MOBILE BURGER MENU & OVERLAY --- */
.burger-menu-trigger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    cursor: pointer;
    z-index: 100002;
    /* Extremely high Z-Index to ensure it's above overlay */
    position: relative;
    /* Ensure z-index works */
    margin-left: auto;
    pointer-events: auto;
    /* Ensure clickable */
}

.burger-menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0d0d15;
    z-index: 998;
    /* Lower than navbar (z-1000) so burger remains clickable */
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    /* Enable clicks on overlay content */
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 2rem;
}

.mobile-link {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: var(--font-heading);
}

.mobile-link:hover {
    color: #fff;
    color: var(--brand);
}

.mobile-menu-footer {
    display: flex;
    justify-content: center;
    padding-bottom: 2rem;
}

.mobile-cta-btn {
    width: 100%;
    text-align: center;
    background: #fff;
    color: #000;
    padding: 1.2rem;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    text-decoration: none;
}

/* --- RESPONSIVE HEADER LAYOUTS --- */
@media (max-width: 1024px) {

    /* Hide Desktop Nav Elements */
    .nav-links,
    .nav-cta {
        display: none !important;
    }

    /* Show Burger */
    .burger-menu-trigger {
        display: flex;
    }

    /* Selected Works - Stacking Title & Desc */
    .case-studies-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .case-header-right {
        text-align: left;
        max-width: 100%;
    }

    .case-header-right p {
        margin-top: 0.5rem;
    }
}

/* Burger Animation State - Create X Icon */
body.menu-open .burger-menu-trigger {
    justify-content: center;
}

body.menu-open .burger-menu-trigger span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
}

body.menu-open .burger-menu-trigger span:nth-child(2) {
    transform: rotate(-45deg);
    position: absolute;
}

/* --- Careers Page Tweaks --- */
.filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.job-card a {
    /* Apply Now Button Override */
    padding: 1rem 2rem !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15em !important;
}

/* --- ADDITIONAL RESPONSIVE PAGE FIXES --- */
@media (max-width: 1024px) {

    /* About Hero Mobile Fixes */
    .hero-btn-group {
        flex-direction: column !important;
        width: 100%;
    }

    .hero-btn-group a {
        width: 100%;
        text-align: center;
    }

    .cine-h1 {
        font-size: 3.5rem !important;
    }

    /* Our Impact Mobile Fix */
    .grid.grid-cols-2.gap-8 {
        grid-template-columns: 1fr;
    }

    /* Team Slider One Card View */
    .luxury-team-slider-wrap {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .luxury-team-slider {
        width: 100%;
    }

    .luxury-team-card {
        min-width: 100%;
        margin-right: 0 !important;
        scroll-snap-align: center;
    }
}

@media (max-width: 600px) {

    /* Responsive Work Header Title Space Reduction */
    header.pt-64 {
        padding-top: 8rem !important;
        padding-bottom: 4rem !important;
    }

    .case-studies-header h1 {
        line-height: 1 !important;
        margin-bottom: 1rem !important;
    }
}