/* ==========================================================================
   KCE MEDIA COMPANY MASTER INTERACTIVE ENGINE - PART 1 OF 2
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Century Gothic', system-ui, -apple-system, sans-serif;
    background-color: #fcfaf2; 
    color: #1e1e1e;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.1rem 6%; 
    background-color: #fcfaf2;
    border-bottom: 2px solid #1e1e1e;
    position: relative;
    z-index: 20;
}

.logo-link-wrapper {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.header-brand-logo {
    display: block;
    width: auto;
    height: 110px; 
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.logo-link-wrapper:hover .header-brand-logo {
    transform: scale(1.02);
}

nav a {
    text-decoration: none;
    color: #4a4a4a;
    margin-left: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav .btn {
    background-color: #1e1e1e;
    color: #fcfaf2;
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    border: 2px solid #1e1e1e;
}

/* ==========================================================================
   CLIP-PATH MASTER MASKING DESKTOP STAGE
   ========================================================================== */
.slider-viewport {
    position: relative;
    width: 100%;
    min-height: 82vh;
    border-bottom: 2px solid #1e1e1e;
    overflow: hidden;
}

.static-panel, .sliding-curtain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.static-panel {
    z-index: 1;
}

.sliding-curtain {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.split-host {
    background-color: #282a29;
    color: #fcfaf2;
}

.split-advertiser {
    background-color: #e5a93c;
    color: #181c1a;
}

.panel-inner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; 
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    padding: 0 4%;
}
/* ==========================================================================
   KCE MEDIA COMPANY MASTER INTERACTIVE ENGINE - PART 2 OF 2
   ========================================================================== */

/* --- RIGID DESKTOP CONTENT BLOCKS (PERFECTLY STATIONARY) --- */
.content-block {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.left-block { grid-column: 1; }
.right-block { grid-column: 2; }

.slider-viewport h2 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 3.2rem;
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin-bottom: 0.6rem;
    white-space: nowrap;
}
.split-host h2 { color: #ffffff; }
.split-advertiser h2 { color: #181c1a; }

.vintage-divider {
    width: 50px;
    height: 2px;
    background-color: currentColor;
    margin: 0 auto 1.2rem auto;
}

.slider-viewport h3 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    white-space: nowrap; 
}
.split-host h3 { color: #e5a93c; }
.split-advertiser h3 { color: #282a29; }

.main-desc {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem; 
}

/* --- THE REVEAL HOUSING ARCHITECTURE (DESKTOP ONLY) --- */
.uncovered-details-panel {
    grid-column: span 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    padding: 0 1rem; 
}

.left-reveal { grid-column: 1; text-align: left; }
.right-reveal { grid-column: 2; text-align: left; }

.bullet-row {
    margin-bottom: 1.5rem;
}
.bullet-row:last-child { margin-bottom: 0; }

.bullet-row h4 {
    font-family: 'Impact', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
}
.split-host .bullet-row h4 { color: #e5a93c; }
.split-advertiser .bullet-row h4 { color: #282a29; }

.bullet-row p {
    font-size: 1.02rem;
    line-height: 1.45;
    opacity: 0.95;
}

/* --- ACTION LAYER CONTAINER ROW --- */
.btn-alignment-wrapper {
    width: 100%;
    margin-top: auto;
}

.action-btn {
    display: inline-block;
    text-decoration: none;
    font-family: 'Impact', 'Arial Black', sans-serif;
    padding: 1.1rem 2.6rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.2s ease;
    border-radius: 0;
    min-width: 240px;
    text-align: center;
}

.host-btn { background-color: #1e1e1e; border: 2px solid #1e1e1e; color: #fcfaf2 !important; }
.advertiser-btn { background-color: #232524; border: 2px solid #1e1e1e; color: #fcfaf2 !important; }

.host-btn:hover, .advertiser-btn:hover {
    background-color: #fcfaf2;
    color: #1e1e1e !important;
    border-color: #fcfaf2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- TRACK CONTROLLERS RAIL LAYOUT --- */
.slider-handle {
    position: absolute;
    z-index: 10;
    background-color: #1e1e1e;
    cursor: ew-resize;
}

@media (min-width: 969px) {
    .slider-handle {
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        transform: translateX(-50%);
    }
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background-color: #1e1e1e;
    color: #fcfaf2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid #fcfaf2;
    pointer-events: auto;
}

/* ==========================================================================
   MARKETING FOOTPRINTS CHASSIS & CENTERED BANNER LOGISTICS
   ========================================================================== */
.digital-section {
    padding: 8rem 6%;
    background-color: #181c1a;
    color: #fcfaf2;
    border-bottom: 2px solid #1e1e1e;
}

.container { max-width: 900px; margin: 0 auto; }

.digital-section h2 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.digital-section p { color: #cbd5e1; font-size: 1.15rem; line-height: 1.6; }

.contact-section { 
    padding: 8rem 6%; 
    text-align: center; 
    background-color: #fcfaf2; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-section h2 { 
    font-family: 'Impact', 'Arial Black', sans-serif; 
    font-size: 3rem; 
    text-transform: uppercase; 
    letter-spacing: 0.04em; 
    margin-bottom: 1rem; 
    text-align: center;
}

body:not(.subpage-body) .contact-section h2 {
    white-space: nowrap;
}

.contact-section p { 
    color: #4a4a4a; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    letter-spacing: 0.05em; 
    margin-bottom: 2.5rem; 
    text-align: center;
}

.email-link {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 2rem;
    color: #e5a93c;
    text-decoration: none;
    letter-spacing: 0.02em;
    border: 3px solid #181c1a;
    background-color: #181c1a;
    padding: 1rem 2rem;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap; 
    transition: all 0.25s ease;
    text-align: center;
}

.email-link:hover { background-color: transparent; color: #181c1a; transform: scale(1.02); }
footer { text-align: center; padding: 3.5rem 2rem; background-color: #fcfaf2; color: #7a7a7a; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-top: 1px solid #e2e8f0; }

.subpage-hero h1 { font-family: 'Impact', 'Arial Black', sans-serif; font-size: 3.5rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; margin-bottom: 0.4rem; }
.details-section { padding: 7rem 6%; background-color: #ffffff; }
.detail-block { max-width: 750px; margin-bottom: 4rem; }
.detail-block h3 { font-family: 'Impact', 'Arial Black', sans-serif; font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.02em; color: #1e1e1e; margin-bottom: 0.85rem; }
.detail-block p { color: #4a4a4a; font-size: 1.08rem; line-height: 1.6; }

/* ==========================================================================
   ROLLBACK ENGINE: STRUCTURAL MOBILE WRAPPER REVERSAL ENGINE
   ========================================================================== */
@media (max-width: 968px) {
    .slider-viewport { 
        display: flex !important;
        flex-direction: column !important; 
        min-height: auto !important; 
        height: auto !important;
    }
    
    .static-panel, .sliding-curtain { 
        position: relative !important; 
        width: 100% !important; 
        height: auto !important;
        clip-path: none !important;
    }
    
    .slider-handle, .uncovered-details-panel { 
        display: none !important; 
    }

    /* HARD-LOCKED MOBILE REVERSAL SEQUENCES */
    .mobile-panel-top {
        order: 1 !important;
    }
    
    .mobile-panel-bottom {
        order: 2 !important;
    }

    .panel-inner-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 6rem 10% !important;
    }

    .content-block { 
        opacity: 1 !important;
        max-width: 480px !important;
        margin: 0 auto !important;
    }
} 

@media (max-width: 768px) {
    nav a { display: none !important; }
    nav a.btn { display: inline-block !important; }
    header { padding: 1.5rem 6% !important; }
    .header-brand-logo { height: 68px; } 
    .slider-viewport h2 { font-size: 2.6rem !important; }
    .slider-viewport h3 { font-size: 1.6rem !important; }
    .subpage-hero h1 { font-size: 2.4rem !important; }
    .subpage-hero, .details-section, .digital-section, .contact-section { padding: 5rem 6% !important; }

    .email-link { 
        font-size: 1.15rem !important; 
        padding: 0.8rem 1.2rem !important; 
    }
    .contact-section h2 {
        font-size: 2.2rem !important;
        white-space: normal !important; 
    }
}
/* ==========================================================================
   GLOBAL TACTILE GRAIN OVERLAY
   ========================================================================== */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Inline SVG generating a subtle fractal noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://w3.org id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    
    /* Control the texture intensity (0.04 - 0.07 is optimal for a premium look) */
    opacity: 0.05; 
    
    /* Ensure the texture stays fixed during scroll and layers perfectly */
    z-index: 9999;
    pointer-events: none; /* Crucial: allows clicking through the texture */
}
