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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #e8e2d6;
    color: #5c5650;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* === Noise Texture === */
.noise-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
}

/* === Vignette === */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(74, 69, 64, 0.06) 100%);
}

/* === Ambient Blur Layer === */
.ambient-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    will-change: transform;
}

.ambient-circle {
    position: absolute;
    border-radius: 50%;
}

.ambient-circle-1 {
    width: 500px;
    height: 500px;
    background: #6b7f94;
    opacity: 0.15;
    top: 10%;
    left: 20%;
}

.ambient-circle-2 {
    width: 400px;
    height: 400px;
    background: #b39286;
    opacity: 0.12;
    top: 40%;
    right: 10%;
}

.ambient-circle-3 {
    width: 350px;
    height: 350px;
    background: #7a9e96;
    opacity: 0.1;
    bottom: 20%;
    left: 40%;
}

/* === Zones === */
.zone {
    position: relative;
    width: 100%;
}

/* === Zone 1: The Lobby === */
.zone-1 {
    min-height: 130vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #e8e2d6;
    position: relative;
}

.hero-composition {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 600px);
    height: min(80vw, 600px);
    animation: heroRotate 720s linear infinite;
}

.hero-svg {
    width: 100%;
    height: 100%;
}

@keyframes heroRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: clamp(4rem, 10vw, 9rem);
    color: #4a4540;
    position: relative;
    z-index: 10;
    letter-spacing: -0.02em;
}

.hero-title .letter {
    display: inline-block;
    opacity: 0;
    animation: letterFadeIn 0.4s ease-out forwards;
}

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

.hero-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: #8a837b;
    margin-top: 1.5rem;
    position: relative;
    z-index: 10;
    opacity: 0;
    animation: subtitleFadeIn 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

@keyframes subtitleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === Zone 2: The Filing Cabinet === */
.zone-2 {
    padding: 10vh 5vw;
    background-color: #e8e2d6;
}

.zone-2-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4vw;
    max-width: 1200px;
    margin: 0 auto;
}

.column {
    padding-top: 2rem;
}

.column-line {
    height: 2px;
    width: 100%;
    margin-bottom: 1.5rem;
}

.column-organization .column-line { background-color: #6b7f94; }
.column-ambition .column-line { background-color: #b39286; }
.column-craftsmanship .column-line { background-color: #7a9e96; }

.column-header {
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.column-organization .column-header { color: #6b7f94; }
.column-ambition .column-header { color: #b39286; }
.column-craftsmanship .column-header { color: #7a9e96; }

.column-content p {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #5c5650;
    margin-bottom: 1.5rem;
}

/* === Stamp Motif === */
.stamp-motif {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
    color: #c4856a;
}

/* === Zone 3: The Blueprint Room === */
.zone-3 {
    background-color: #d9d1c3;
    padding: 10vh 5vw;
    min-height: 100vh;
}

.blueprint-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 10 / 6;
}

.blueprint-svg {
    width: 100%;
    height: 100%;
}

.bp-shape, .bp-line {
    transition: opacity 0.8s ease-out;
}

.blueprint-annotations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bp-annotation {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    color: #8a837b;
    opacity: 0;
    transition: opacity 0.8s ease-out;
    transform: translateX(-50%);
}

.bp-annotation.visible {
    opacity: 1;
}

/* === Zone 4: The Rooftop at Dusk === */
.zone-4 {
    min-height: 100vh;
    background: linear-gradient(to bottom, #d9d1c3, #a89f93 40%, #7d7671);
    padding: 15vh 5vw 10vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.zone-4-content {
    max-width: 800px;
    padding-left: 5vw;
}

.rooftop-text {
    font-family: 'Zilla Slab', serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.6;
    color: #e8e2d6;
}

.closing-motif {
    margin-top: 6rem;
    padding-left: 5vw;
}

.pulse-circle {
    animation: pulse 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* === Progressive Disclosure === */
.reveal-item {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.98);
    transition: opacity 0.8s ease-out, filter 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.revealed {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

/* === Responsive === */
@media (max-width: 768px) {
    .zone-2-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .rooftop-text {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .blueprint-container {
        aspect-ratio: auto;
        min-height: 400px;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal-item {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .hero-title .letter {
        opacity: 1;
    }

    .hero-subtitle {
        opacity: 1;
    }
}
