/**
 * Immersive Cinematic Core Styles
 * Defines the vision for high-end agency transitions
 */

:root {
    /* Cinematic Spacing */
    --cinematic-spacing: 25vh;
    --cinematic-gap: 8rem;

    /* Depth Layers */
    --depth-background: -200px;
    --depth-mid: 0px;
    --depth-foreground: 200px;

    /* Motion Primitives */
    --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
    --reveal-duration: 1.5s;
}

/* Global Section Stitching */
.wp-block-castellondigital-hero-servicio,
.wp-block-castellondigital-specialized-services,
.wp-block-castellondigital-results-focused,
.wp-block-castellondigital-our-process,
.wp-block-castellondigital-benefits {
    position: relative !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: var(--cinematic-spacing) !important;
    padding-bottom: var(--cinematic-spacing) !important;
    overflow: visible !important;
    /* Allow overlapping content */
}

/* Morphing Overlay for Stitching */
.cinematic-morph-overlay {
    position: absolute;
    inset: 0;
    background: #1A1A2E;
    /* Primary transition color */
    z-index: 5;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s var(--ease-cinematic);
}

/* Depth Parallax Layers */
.cinematic-depth-layer {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 950;
    font-size: 35vw;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    text-transform: uppercase;
    line-height: 0.8;
}

/* Horizontal Scroll Fixes */
.process-vertical-progression {
    will-change: transform;
    display: flex;
    flex-wrap: nowrap;
}

.process-step-card {
    flex-shrink: 0;
}

/* Smooth Scrolling Context */
body {
    background: #1A1A2E;
    /* Global deep navy context */
}

/* Hero Film Strip PROTECTION */
.wp-block-castellondigital-hero-film-strip {
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

/* Utility for Split Reveal */
.split-reveal {
    overflow: hidden;
    display: inline-block;
}

.split-word {
    display: inline-block;
    transform: translateY(110%);
    will-change: transform;
}