/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: #EDEDF0;
    color: #2C2C34;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    line-height: 1.85;
    overflow-x: hidden;
}

/* ===== GRAIN OVERLAY ===== */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ===== NAVIGATION ===== */
.site-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7A7A84;
    z-index: 100;
    transition: color 0.8s ease, filter 0.8s ease;
}

.site-nav.scrolled {
    color: #B8B8C0;
    filter: blur(1px);
}

/* ===== GRID SYSTEM ===== */
.hero-grid,
.zone-grid,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    max-width: 100%;
    padding: 0 2rem;
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 62%;
    height: 1px;
    background: #D4A054;
    opacity: 0;
    transition: opacity 800ms ease;
}

.hero.loaded::after {
    opacity: 0.6;
}

.hero-title {
    grid-column: 2 / 8;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(8rem, 15vw, 20rem);
    letter-spacing: -0.03em;
    color: #2C2C34;
    line-height: 0.9;
    transform: translateY(-8vh);
    filter: blur(20px);
    opacity: 0;
    transition: filter 2000ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1500ms ease-out;
}

.hero.loaded .hero-title {
    filter: blur(0);
    opacity: 1;
}

/* ===== FOCAL ZONES ===== */
.focal-zone {
    min-height: 80vh;
    display: grid;
    align-items: center;
    padding: 4rem 0;
}

.focal-zone .zone-content {
    filter: blur(12px);
    opacity: 0.4;
    transition: filter 1200ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 800ms ease-out;
}

.focal-zone.in-focus .zone-content {
    filter: blur(0);
    opacity: 1;
}

.focal-zone.was-focus .zone-content {
    filter: blur(4px);
    opacity: 0.7;
}

/* Left-dominant zones */
.focal-zone--left .zone-content {
    grid-column: 2 / 7;
}

.focal-zone--left .zone-empty {
    grid-column: 8 / 12;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right-dominant zones */
.focal-zone--right .zone-content {
    grid-column: 7 / 12;
}

.focal-zone--right .zone-empty {
    grid-column: 2 / 6;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== SECTION MARKERS ===== */
.section-marker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.marker-line {
    flex: 1;
    height: 1px;
    background: #B8B8C0;
}

.marker-num {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: #7A7A84;
}

/* ===== ZONE TYPOGRAPHY ===== */
.zone-heading {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -0.03em;
    color: #2C2C34;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.zone-body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.875rem, 1.4vw, 1.05rem);
    line-height: 1.85;
    color: #2C2C34;
    max-width: 38ch;
    margin-bottom: 2rem;
}

.zone-caption {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7A7A84;
}

/* ===== GEOMETRIC MARKS ===== */
.geo-mark {
    opacity: 0.6;
}

/* ===== HOVER STATES ===== */
.zone-heading {
    position: relative;
    display: inline-block;
}

.zone-caption {
    transition: color 0.4s ease;
    cursor: default;
}

.zone-caption:hover {
    color: #D4A054;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 4rem 0;
    min-height: 20vh;
    background-color: #D4D4DA;
    display: grid;
    align-items: end;
    padding-bottom: 2rem;
}

.footer-text {
    grid-column: 2 / 5;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7A7A84;
}

.footer-line {
    grid-column: 5 / 12;
    height: 1px;
    background: #B8B8C0;
    align-self: center;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .grain {
        opacity: 0.02;
    }

    .hero-grid,
    .zone-grid,
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        padding: 0 1.5rem;
    }

    .site-nav {
        top: 1.5rem;
        left: 1.5rem;
    }

    .hero-title {
        grid-column: 1 / 4;
    }

    .focal-zone--left .zone-content,
    .focal-zone--right .zone-content {
        grid-column: 1 / 4;
    }

    .focal-zone--left .zone-empty,
    .focal-zone--right .zone-empty {
        display: none;
    }

    .focal-zone .zone-content {
        transition-duration: 600ms;
    }

    .footer-text {
        grid-column: 1 / 3;
    }

    .footer-line {
        grid-column: 3 / 5;
    }
}
