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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #1A1008;
    font-family: 'Karla', sans-serif;
    color: #D4C0A0;
    overflow-x: hidden;
}

#cursor-glow {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 180, 100, 0.06), transparent);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: left 0.1s ease-out, top 0.1s ease-out;
    left: -100px;
    top: -100px;
}

/* Left facade */
#facade {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    background-color: #2A1C10;
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease;
}

#facade.visible {
    opacity: 1;
}

#facade-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.facade-window {
    position: absolute;
    left: 32px;
    width: 16px;
    height: 20px;
    background-color: #F5E6D0;
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.facade-window.lit {
    opacity: 0.6;
}

/* Hamburger */
#hamburger {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#hamburger.visible {
    opacity: 1;
}

#hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #F5B464;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Nav overlay */
#nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 16, 8, 0.95);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

#nav-overlay.open {
    transform: translateX(0);
}

#nav-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-link {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: #F5E6D0;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Content */
#content {
    max-width: 700px;
    margin-left: 80px;
    padding: 60px 40px 120px 40px;
}

/* Glassmorphic panels */
.glass-panel {
    background-color: #3A2818;
    background: rgba(58, 40, 24, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 180, 100, 0.15);
    box-shadow: inset 0 1px 0 rgba(245, 180, 100, 0.2);
    padding: 48px 40px;
    margin-bottom: 96px;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: relative;
}

.glass-panel.visible {
    opacity: 1;
}

/* Typography */
.display-heading {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: #F5E6D0;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.display-heading.kinetic {
    letter-spacing: -0.1em;
    transition: letter-spacing 0.8s ease-out;
}

.display-heading.kinetic.spread {
    letter-spacing: 0.02em;
}

.display-heading.kinetic.breathing {
    animation: breathe 8s infinite ease-in-out;
}

@keyframes breathe {
    0%, 100% { letter-spacing: 0.01em; }
    50% { letter-spacing: 0.06em; }
}

#origin .display-heading {
    font-size: 56px;
}

.body-text {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: #D4C0A0;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}

.glass-panel.visible .body-text {
    opacity: 1;
}

.label-text {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #A08860;
    display: block;
    margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    #facade {
        display: none;
    }

    #content {
        margin-left: 0;
        padding: 40px 20px 80px 20px;
    }

    .display-heading {
        font-size: 30px;
    }

    #origin .display-heading {
        font-size: 38px;
    }

    .display-heading.kinetic.breathing {
        animation: none;
    }

    .glass-panel {
        padding: 32px 24px;
        margin-bottom: 60px;
    }

    #cursor-glow {
        display: none;
    }
}
