/* p9r.dev - Grainy Urban Documentary */
/* Colors: #1A1A1A, #7A7468, #C4A060, #B0A898, #222222, #E0D8CC, #6A8A58 */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { font-family: 'Source Serif 4', serif; color: #B0A898; background: #1A1A1A; overflow-x: hidden; }

.grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 100; opacity: 0.8;
}

.city-silhouette {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(34,34,34,0.03) 50%, rgba(34,34,34,0.05) 100%);
    pointer-events: none; z-index: 0;
}

.depth-container {
    perspective: 1000px; max-width: 700px; margin: 0 auto; padding: 0 24px;
    position: relative; z-index: 1;
}

.hero { min-height: 80vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; }

.hero-title {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; color: #E0D8CC;
    letter-spacing: -0.02em;
    opacity: 0; animation: depthEmerge 1s ease 0.5s forwards;
}

.hero-sub {
    font-family: 'Space Mono', monospace; font-size: 13px; color: #7A7468;
    margin-top: 8px; opacity: 0; animation: fadeIn 0.6s ease 1.2s forwards;
}

.content-block {
    background: #222222; border: 1px solid rgba(176,168,152,0.06);
    padding: 40px 32px; margin-bottom: 40px; position: relative;
    opacity: 0; transform: translateY(20px) translateZ(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-block.visible { opacity: 1; transform: translateY(0) translateZ(0); }

.layer-2 { margin-left: 40px; }

.block-label {
    font-family: 'Space Mono', monospace; font-size: 12px; color: #C4A060;
    letter-spacing: 0.08em; display: block; margin-bottom: 12px;
}

.block-heading {
    font-family: 'Libre Franklin', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: #E0D8CC;
    margin-bottom: 12px;
}

.block-body { font-size: clamp(0.95rem, 1.1vw, 1.15rem); line-height: 1.85; color: #7A7468; }

.code-accent {
    font-family: 'Space Mono', monospace; font-size: 12px; color: #C4A060;
    display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(176,168,152,0.06);
}

.moss-leaf { position: absolute; pointer-events: none; }
.hero .moss-leaf { top: -10px; right: 0; width: 30px; height: 40px; }
.moss-crack { top: -15px; left: 20px; width: 25px; height: 35px; }

.reveal { opacity: 0; }

@keyframes depthEmerge {
    from { opacity: 0; transform: translateZ(-50px); }
    to { opacity: 1; transform: translateZ(0); }
}
@keyframes fadeIn { to { opacity: 1; } }

@media (max-width: 768px) { .layer-2 { margin-left: 0; } .content-block { padding: 24px 20px; } }
