body {
    background-color: #1E191F;
    color: #F9EFF0;
    overflow-x: hidden;
}

.glass-nav {
    background: rgba(5, 15, 36, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.text-glow {
    text-shadow: 0 0 30px rgba(0, 163, 255, 0.3);
}

.mobile-menu-overlay {
    background: rgba(5, 15, 36, 0.95);
    backdrop-filter: blur(16px);
}

.tracking-ultra-tight {
    letter-spacing: 0.02em;
}

.outline-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

video {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* LENIS REQUIRED CSS */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

.hero-title-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

/* Essential for perfect overlap with object-cover video */
.mask-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    mask-image: url('../assets/images/HeroPersonNoBG.png');
    -webkit-mask-image: url('../assets/images/HeroPersonNoBG.png');
    mask-size: cover;
    -webkit-mask-size: cover;
    mask-position: calc(50% + var(--mask-x, 0px)) calc(50% + var(--mask-y, 0px));
    -webkit-mask-position: calc(50% + var(--mask-x, 0px)) calc(50% + var(--mask-y, 0px));
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    /* Match the video scale */
    transform: scale(1.01);
}

/* Solid title: Subtracted mask (Shows text everywhere EXCEPT the person) */
.layer-solid {
    mask-image: url('../assets/images/HeroPersonNoBG.png'), linear-gradient(black, black);
    -webkit-mask-image: url('../assets/images/HeroPersonNoBG.png'), linear-gradient(black, black);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}

/* Outlined title: Standard mask (Shows outline ONLY inside the person) */
.layer-outline {
    mask-image: url('../assets/images/HeroPersonNoBG.png');
    -webkit-mask-image: url('../assets/images/HeroPersonNoBG.png');
    z-index: 2;
}

.outline-text-effect {
    -webkit-text-stroke: 1px #F9EFF0;
    -webkit-text-stroke-width: 2.2px !important;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    font-weight: 400;
    /* Ensure we use the font's natural weight */
}

.badge-pill {
    background: #2E62FD;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(46, 98, 253, 0.4);
}

.bg-dots {
    background-image: radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 80px 80px;
}

.bg-dots-dark {
    background-image: radial-gradient(rgba(30, 25, 31, 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
}

.clip-corner {
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
    border-radius: 0 !important;
}

.clip-corner-sm {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    border-radius: 0 !important;
}

.clip-all-corners {
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    border-radius: 0 !important;
}

.clip-tr-corner {
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    border-radius: 0 !important;
}

.jules-link:hover {
    color: #FED653;
    /* pauze-yellow */
    transition: color 0.3s ease;
}