/* --- FOUNDATION: THE SOVEREIGN LOCK --- */
html, body { 
    margin: 0; 
    padding: 0; 
    background-color: #050508; 
    overflow: hidden; 
    font-family: 'Georgia', serif;
    height: 100%;
    width: 100%;
    position: relative; 
}

/* --- THE HEARTH (Layer 1) --- */
.hearth-container {
    position: absolute; 
    top: 0; left: 0; right: 0; 
    bottom: -5px; 
    background-image: url('pax.png'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    z-index: 1 !important; 
    transform: scale(1.15); 
}
.hearth-container.breathing { 
    animation: imageBreathe 4s infinite alternate ease-in-out; 
}
@keyframes imageBreathe { 
    0% { transform: scale(1.15); } 
    100% { transform: scale(1.2); } 
}

/* --- SOMATIC HIJACK (Layer 2 - THE REPAIRED GLOW) --- */
.somatic-filter {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; 
    height: calc(100% + 5px); 
    background-color: rgba(229, 149, 0, 0); 
    z-index: 500 !important; 
    pointer-events: none; 
    display: block !important;
    /* S9 FIX: Removed transition: background-color 2.5s ease-in-out; 
       Transitions on the same element as animations cause GPU stalling on S9. */
}

.somatic-filter.active { 
    background-color: rgba(229, 149, 0, 0.4) !important; 
    visibility: visible !important;
    pointer-events: auto; 
    
    /* THE VAGAL WAVE: Removed static opacity: 1 !important; 
       This allows the keyframes below to legally drive the transparency. */
    animation: somaticBreathe 4s infinite alternate ease-in-out;
    
    /* S9 GPU SHIELD: Pre-renders the layer for 5W efficiency */
    will-change: opacity;
    backdrop-filter: sepia(10%) brightness(0.95); 
    -webkit-backdrop-filter: sepia(10%) brightness(0.95); 
}

@keyframes somaticBreathe { 
    0% { opacity: 0.15; }   /* The Exhale: Subtle gold mist */
    100% { opacity: 0.8; }  /* The Inhale: Rich 2300K Amber */
}

/* --- KORE PORTAL OVERLAYS (Layer 3) --- */
.fullscreen-overlay {
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(5, 5, 8, 0.7); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999 !important; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: opacity 2.5s ease-in-out;
}
.hidden { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* THE BRANDING */
.kore-title { 
    font-family: 'Times New Roman', serif; 
    color: #E8DCC4; 
    font-size: 5rem; 
    letter-spacing: 15px; 
    margin: 0;
    text-shadow: 0 0 35px rgba(229, 179, 118, 0.6); 
}
.kore-tagline { 
    font-family: Arial, sans-serif; 
    color: #D4AF37; 
    font-size: 1rem; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    margin-bottom: 50px; 
    opacity: 0.9; 
}

/* LUXURY BUTTONS */
.sanctuary-btn {
    background: rgba(20, 20, 20, 0.3); 
    border: 1px solid rgba(212, 175, 55, 0.5); 
    color: #D4AF37;
    padding: 15px 40px; 
    font-size: 1.1rem; 
    letter-spacing: 3px; 
    text-transform: uppercase; 
    cursor: pointer; 
    border-radius: 4px;
    backdrop-filter: blur(5px); 
    transition: all 0.4s ease; 
    animation: buttonBreathe 3s infinite alternate ease-in-out;
}
.sanctuary-btn:hover { 
    background: rgba(212, 175, 55, 0.15); 
    border: 1px solid rgba(212, 175, 55, 1); 
    color: #E8DCC4; 
}
@keyframes buttonBreathe { 
    0% { box-shadow: 0 0 10px rgba(212, 175, 55, 0.1); } 
    100% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); } 
}
