/* ========================================
   infra.limited — Luxury Premium Consultancy
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background: #0D0D0D;
    color: #C5BFB3;
    font-family: 'Libre Baskerville', serif;
    font-size: 17px;
    line-height: 1.8;
    overflow-x: hidden;
}

::selection {
    background: #C9A96E;
    color: #0D0D0D;
}

/* --- Grain Overlay --- */
#grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    animation: grainShift 0.5s steps(4) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5%, -5%); }
    50% { transform: translate(5%, 5%); }
    75% { transform: translate(-2%, 3%); }
    100% { transform: translate(0, 0); }
}

/* --- Intro Screen --- */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #0D0D0D;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-out;
}

#intro-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#intro-title {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 72px;
    color: #F0EDE6;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 2.5s ease-in, transform 1.5s ease-out;
}

#intro-title.visible {
    opacity: 1;
}

#intro-title.drift-up {
    opacity: 0.6;
    transform: translateY(-20px);
}

/* --- Site Container (Split Screen) --- */
#site-container {
    display: flex;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

#site-container.visible {
    opacity: 1;
}

#site-container.hidden {
    display: none;
}

/* --- Left Panel --- */
#left-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 40%;
    height: 100vh;
    background: #1A1A18;
    z-index: 100;
    display: flex;
    transform: translateX(-100%);
    transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

#left-panel.slide-in {
    transform: translateX(0);
}

#left-panel-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px 60px 60px;
}

#gold-spine {
    width: 1px;
    background: #C9A96E;
    opacity: 0.5;
    animation: spinePulse 4s ease-in-out infinite;
}

@keyframes spinePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* --- Left Brand --- */
#left-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 18px;
    color: #F0EDE6;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
    opacity: 0.6;
}

/* --- Left Nav --- */
#left-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 80px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #8A8378;
    transition: color 400ms ease;
}

.nav-link:hover {
    color: #C9A96E;
}

.nav-link.active {
    color: #C9A96E;
}

.nav-line {
    display: block;
    width: 0;
    height: 1px;
    background: #C9A96E;
    transition: width 400ms ease;
}

.nav-link.active .nav-line {
    width: 40px;
}

.nav-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* --- Left Section Title --- */
#left-section-title {
    margin-bottom: 24px;
}

.section-label {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 36px;
    color: #F0EDE6;
    opacity: 1;
    transition: opacity 400ms ease;
}

.section-label.fade-out {
    opacity: 0;
}

/* --- Left Atmospheric --- */
#left-atmospheric {
    margin-top: 12px;
}

#atmospheric-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 14px;
    color: #8A8378;
    line-height: 1.7;
    opacity: 1;
    transition: opacity 400ms ease;
}

#atmospheric-text.fade-out {
    opacity: 0;
}

/* --- Right Panel --- */
#right-panel {
    margin-left: 40%;
    width: 60%;
    min-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

#right-panel::-webkit-scrollbar {
    display: none;
}

#right-content {
    padding: 120px 120px 120px 80px;
    max-width: 720px;
}

/* --- Content Sections --- */
.content-section {
    margin-bottom: 160px;
    border-left: 1px solid #4A3F2E;
    padding-left: 24px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 36px;
    color: #F0EDE6;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.sub-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #E8D5A3;
    margin-bottom: 16px;
}

.content-block {
    margin-bottom: 48px;
}

.content-block p {
    color: #C5BFB3;
    font-size: 17px;
    line-height: 1.8;
}

.contact-text {
    font-style: italic;
    color: #8A8378 !important;
}

.copyright-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8A8378 !important;
    margin-top: 80px;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Gold Separator --- */
.gold-separator {
    width: 60%;
    height: 1px;
    margin: 0 auto 160px auto;
    background: linear-gradient(90deg, transparent, #C9A96E, transparent);
}

/* --- Diamond Ornament --- */
.diamond-ornament {
    width: 8px;
    height: 8px;
    background: #C9A96E;
    transform: rotate(45deg);
    margin-bottom: 48px;
}

/* --- Bottom Spacer --- */
.bottom-spacer {
    height: 200px;
}

/* --- Link Styles --- */
a {
    color: #C5BFB3;
    text-decoration: none;
    position: relative;
    transition: color 400ms ease;
}

a:hover {
    color: #C9A96E;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    right: 50%;
    height: 1px;
    background: #C9A96E;
    transition: left 400ms ease, right 400ms ease;
}

a:hover::after {
    left: 0;
    right: 0;
}

.nav-link::after {
    display: none;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    #left-panel {
        position: sticky;
        top: 0;
        width: 100%;
        height: auto;
        min-height: auto;
        transform: translateX(0);
        z-index: 100;
    }

    #left-panel.slide-in {
        transform: translateX(0);
    }

    #left-panel-inner {
        padding: 24px 24px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    #left-brand {
        margin-bottom: 0;
        font-size: 16px;
    }

    #left-nav {
        flex-direction: row;
        gap: 16px;
        margin-bottom: 0;
        flex-wrap: wrap;
    }

    .nav-line {
        display: none;
    }

    #left-section-title,
    #left-atmospheric {
        display: none;
    }

    #gold-spine {
        display: none;
    }

    #site-container {
        flex-direction: column;
    }

    #right-panel {
        margin-left: 0;
        width: 100%;
    }

    #right-content {
        padding: 60px 24px;
    }

    #intro-title {
        font-size: 42px;
    }

    .section-heading {
        font-size: 28px;
    }

    .content-section {
        margin-bottom: 100px;
    }
}
