.irm-1653207f-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0 !important; /* Ensure it sticks to top */
    min-height: 100vh;
    height: 100vh; /* Force exactly screen height */
    display: flex;
    align-items: center;
    overflow: hidden;

    /* Fallback variables, overridden by Elementor controls */
    --grid-v-outer: 10%;
    --grid-v-inner: 20%;
    --grid-h-outer: 15%;
    --grid-h-inner: 30%;
    --grid-h-extra-1: 15%;
    --grid-h-extra-2: 15%;
    --grid-anim-speed: 40s;
    
    /* Logo Fallback Position */
    --logo-pos-x: 2rem;
    --logo-pos-y: 2rem;
    --logo-max-width: 150px;
}

.irm-1653207f-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: background-image 0.5s ease-in-out;
}

.irm-1653207f-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* This prevents black bars */
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    pointer-events: none;
}

.irm-1653207f-video.active {
    opacity: 1;
    visibility: visible;
}

.irm-1653207f-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.irm-1653207f-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 1;
    pointer-events: none;
}

/* Grid Layer */
.irm-1653207f-grid-anim-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Moving behind everything */
    pointer-events: none;
}

/* Animation target variables */
.irm-1653207f-animated-grid {
    --anim-offset-x: 0px;
    --anim-offset-y: 0px;
}

/* Base panning animation variables updated by keyframes */
.irm-1653207f-animated-grid .irm-1653207f-grid-anim-layer {
    animation: irm-1653207f-pan-vars var(--grid-anim-speed) linear infinite alternate;
}

@keyframes irm-1653207f-pan-vars {
    0% { --anim-offset-x: 0px; --anim-offset-y: 0px; }
    25% { --anim-offset-x: -20px; --anim-offset-y: 10px; }
    50% { --anim-offset-x: 10px; --anim-offset-y: -20px; }
    75% { --anim-offset-x: 20px; --anim-offset-y: 20px; }
    100% { --anim-offset-x: -10px; --anim-offset-y: -10px; }
}


/* Grid Lines */
.irm-1653207f-grid-line {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animated Outer Vertical Lines */
.irm-1653207f-grid-v1 {
    top: -10%;
    left: calc(var(--grid-v-outer) + var(--anim-offset-x, 0px));
    width: 1px;
    height: 120%;
}

.irm-1653207f-grid-v4 {
    top: -10%;
    right: calc(var(--grid-v-outer) - var(--anim-offset-x, 0px));
    width: 1px;
    height: 120%;
}

/* Static Inner Vertical Lines */
.irm-1653207f-grid-v2 {
    top: -10%;
    left: var(--grid-v-inner);
    width: 1px;
    height: 120%;
}

.irm-1653207f-grid-v3 {
    top: -10%;
    right: var(--grid-v-inner);
    width: 1px;
    height: 120%;
}

/* Animated Outer Horizontal Lines */
.irm-1653207f-grid-h-top {
    top: calc(var(--grid-h-outer) + var(--anim-offset-y, 0px));
    left: -10%;
    width: 120%;
    height: 1px;
}

.irm-1653207f-grid-h-bottom {
    bottom: calc(var(--grid-h-outer) - var(--anim-offset-y, 0px));
    left: -10%;
    width: 120%;
    height: 1px;
}

/* Static Inner Horizontal Lines */
.irm-1653207f-grid-h1 {
    top: var(--grid-h-inner);
    left: -10%;
    width: 120%;
    height: 1px;
}

.irm-1653207f-grid-h2 {
    bottom: var(--grid-h-inner);
    left: -10%;
    width: 120%;
    height: 1px;
}

/* New Extra Horizontal Lines - Animated inversely to outer lines */
.irm-1653207f-grid-h-extra-1 {
    top: calc(var(--grid-h-inner) + var(--grid-h-extra-1) - (var(--anim-offset-y, 0px) * 0.5));
    left: -10%;
    width: 120%;
    height: 1px;
}

.irm-1653207f-grid-h-extra-2 {
    bottom: calc(var(--grid-h-inner) + var(--grid-h-extra-2) + (var(--anim-offset-y, 0px) * 0.5));
    left: -10%;
    width: 120%;
    height: 1px;
}


.irm-1653207f-logo {
    position: absolute;
    top: var(--logo-pos-y);
    left: var(--logo-pos-x);
    z-index: 5;
    display: inline-block;
}

.irm-1653207f-logo img {
    max-width: var(--logo-max-width, 150px);
    height: auto;
    object-fit: contain;
}


.irm-1653207f-center-glass {
    position: absolute;
    top: var(--grid-h-inner);
    left: var(--grid-v-inner);
    width: calc(100% - (var(--grid-v-inner) * 2));
    height: calc(100% - (var(--grid-h-inner) * 2));
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2; /* Needs to be above grid lines layer (0) */
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.irm-1653207f-headline-container {
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.irm-1653207f-headline-title {
    margin: 0 0 1rem 0;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.irm-1653207f-headline-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
}

.irm-1653207f-content {
    position: relative;
    z-index: 4; /* Keep links above everything */
    padding: 0 5%;
    width: 100%;
    pointer-events: none; /* Let clicks pass through if empty area */
}

/* Mobile Toggle Button */
.irm-1653207f-mobile-toggle {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background-color: transparent !important; /* Force transparent */
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 30px;
    flex-direction: column;
    justify-content: center; /* Center the lines */
    pointer-events: auto;
    padding: 0;
}

/* Remove Elementor button default red background if applied */
.elementor-widget-image_reveal_menu_1653207f .irm-1653207f-mobile-toggle {
    background: transparent !important; 
}

.irm-1653207f-hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: center;
    position: absolute; /* Absolute positioning for better X crossing */
}

.irm-1653207f-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: auto; /* Re-enable for the menu links */
}

.irm-1653207f-item {
    margin: 0;
    padding: 0;
}

.irm-1653207f-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover Underline Effect */
.irm-1653207f-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.irm-1653207f-link:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .irm-1653207f-link {
        font-size: 2.5rem;
    }
    .irm-1653207f-headline-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    .irm-1653207f-headline-subtitle {
        font-size: 1.2rem;
    }
    
    .irm-1653207f-mobile-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .irm-1653207f-mobile-toggle .irm-1653207f-hamburger-line:first-child {
        transform: translateY(-5px);
    }
    .irm-1653207f-mobile-toggle .irm-1653207f-hamburger-line:last-child {
        transform: translateY(5px);
    }
    
    .irm-1653207f-mobile-toggle.is-active .irm-1653207f-hamburger-line:first-child {
        transform: translateY(0) rotate(45deg);
    }
    .irm-1653207f-mobile-toggle.is-active .irm-1653207f-hamburger-line:last-child {
        transform: translateY(0) rotate(-45deg);
    }
    
    .irm-1653207f-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9;
        pointer-events: none;
    }
    
    .irm-1653207f-content.menu-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .irm-1653207f-list {
        align-items: center;
    }
}
