:root {
    --navy-dark: #0e2442;
    --navy-primary: #1a2642;
    --navy-light: #2d3e5f;
    --gold-primary: #d4af37;
    --gold-accent: #b8941e;
    --gold-light: #f4e8c1;
    
    --walnut-dark: #351f16;
    --walnut-primary: #492e21;
    --walnut-light: #5d3d2e;
    --atelier-gold: #c9a84c;
    
    --white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.8);
}

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

body {
    font-family: "Google Sans Flex", sans-serif;
    overflow: hidden; /* No scrolling on landing page */
    background: #000;
    color: var(--white);
}

.split-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    position: relative;
}

.split-side {
    position: relative;
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
}

/* Backgrounds */
.setup-side {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
}

.setup-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Hero Image Reveal on Hover - Images loaded via JS on first hover for performance */
.setup-side::after,
.atelier-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.setup-side:hover::after,
.atelier-side:hover::after {
    opacity: 0.4;
}

/* Images are loaded dynamically via JS only when needed */
.setup-side[data-hero-loaded="true"]::after {
    background-image: url('../../admin/images/hero/88.webp');
}

.atelier-side[data-hero-loaded="true"]::after {
    background-image: url('../../admin/images/hero/390.webp');
}

.atelier-side {
    background: linear-gradient(135deg, var(--walnut-dark) 0%, var(--walnut-primary) 100%);
}
.atelier-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(201,168,76,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.6s ease;
    z-index: 1;
}

/* Hover Dynamics */
/* (Width expansion removed per request, focusing on content scaling/opacity instead) */

.split-side:hover .overlay {
    opacity: 0.1;
}

/* Content Focus */
.split-side:hover .content {
    transform: scale(1.05);
}
.split-container:hover .split-side:not(:hover) .content {
    opacity: 0.6;
    transform: scale(0.95);
}

.content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
}

.brand-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.4s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.atelier-logo {
    max-width: 180px; 
}

/* Atelier distinct typography */
.atelier-side .brand-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    letter-spacing: 0;
}

.brand-title {
    font-size: clamp(1.8rem, 2.6vw, 3.2rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-tagline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--gold-light);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1.5px;
}
.atelier-side .brand-tagline {
    color: var(--atelier-gold);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.brand-pillars {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow {
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(5px);
}

/* Unique Buttons */
.btn-setup {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
    color: var(--navy-dark);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.btn-setup:hover {
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-atelier {
    background: linear-gradient(135deg, var(--atelier-gold), #b8941e);
    color: var(--walnut-dark);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.btn-atelier:hover {
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #dfbc5e, var(--atelier-gold));
}

/* Central Divider */
.divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
}

.divider-line {
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--gold-primary) 30%, 
        var(--atelier-gold) 70%, 
        transparent 100%);
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transition: all 0.6s ease;
}

.split-container:hover .divider-line {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    opacity: 1;
}

/* Entrance Animations */
.setup-side {
    animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.atelier-side {
    animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.content {
    animation: fadeIn 1.5s ease 0.5s both;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); width: 100%; }
    to { transform: translateX(0); width: 50%; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); width: 100%; }
    to { transform: translateX(0); width: 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }
    
    body {
        overflow-y: auto; /* Allow scrolling on mobile if needed */
    }

    .split-side {
        width: 100% !important;
        height: 50vh;
    }
    
    .divider {
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        width: 100%;
        transform: translateY(-50%);
    }
    
    .divider-line {
        background: linear-gradient(to right, 
            transparent 0%, 
            var(--gold-primary) 30%, 
            var(--atelier-gold) 70%, 
            transparent 100%);
    }
    
    .split-side:hover .content {
        transform: none;
    }
    .split-container:hover .split-side:not(:hover) .content {
        opacity: 1;
        transform: none;
    }
    
    /* Mobile Content Fixes */
    .content {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
    }
    
    .brand-logo { 
        max-width: 80px; 
        margin-bottom: 0.75rem; 
    }
    .atelier-logo { 
        max-width: 100px; 
    }
    .brand-title { 
        font-size: 1.25rem; 
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    .brand-tagline { 
        font-size: 0.8rem; 
        margin-bottom: 0.75rem;
        letter-spacing: 1px;
        text-align: center;
        max-width: 90%;
    }
    .brand-pillars { 
        font-size: 0.65rem; 
        margin-bottom: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        letter-spacing: 1px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }
    
    .arrow {
        display: none;
    }
    
    /* Mobile Preloader Fixes */
    #preloader {
        padding: 20px;
    }
    
    .preloader-logo {
        width: 80px;
        max-width: 80px;
    }
    
    .preloader-text .line1 {
        font-size: 0.9rem;
    }
    
    .preloader-text .line2 {
        font-size: 0.7rem;
    }
    
    /* Mobile Music Control */
    .music-control {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
    
    .music-control svg {
        width: 18px;
        height: 18px;
    }
    
    .music-credits {
        font-size: 11px;
        padding: 6px 10px;
        bottom: 50px;
    }
}
