/* infra.day — The Control Room at Dawn */
/* Palette: #110E09, #1E1810, #2C2416, #9B8A6E, #C4956A, #D4A574, #E8C99B, #F0E6D6 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    background-color: #1E1810;
    color: #F0E6D6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ========== NOISE GRAIN OVERLAY ========== */

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    mix-blend-mode: overlay;
    filter: url(#noiseFilter);
    width: 100%;
    height: 100%;
}

.noise-overlay {
    position: absolute;
    width: 0;
    height: 0;
}

/* ========== STRATA LINES ========== */

.strata-line {
    width: 100%;
    height: 1px;
    background-color: rgba(196, 149, 106, 0.3);
}

/* ========== BLUR-FOCUS SYSTEM ========== */

.blur-target {
    filter: blur(8px);
    opacity: 0.3;
    transition: filter 800ms ease-out, opacity 800ms ease-out;
    will-change: filter, opacity;
}

.blur-target.in-view {
    filter: blur(0px);
    opacity: 1;
}

/* ========== TYPOGRAPHY ========== */

.section-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 0.95;
    color: #F0E6D6;
}

.prose {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: #F0E6D6;
    max-width: 640px;
    margin-top: 24px;
}

/* ========== SECTION 1: THE CONTROL PANEL ========== */

.section-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: #2C2416;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.domain-label {
    position: absolute;
    top: 32px;
    left: 40px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9B8A6E;
    z-index: 3;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    /* Hero starts visible */
    filter: blur(0px) !important;
    opacity: 1 !important;
}

.hero-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(64px, 12vw, 160px);
    letter-spacing: 0.04em;
    line-height: 0.9;
    color: #F0E6D6;
    text-transform: uppercase;
}

.hero-subline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    color: #9B8A6E;
    letter-spacing: 0.08em;
    margin-top: 24px;
    text-transform: uppercase;
}

.waveform-container {
    width: 100%;
    max-width: 800px;
    height: 140px;
    margin-top: 40px;
}

#waveform-svg,
#cross-waveform-svg,
#horizon-waveform-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-path {
    will-change: d;
}

.wave-primary {
    stroke: #C4956A;
    stroke-width: 2;
}

.wave-secondary {
    stroke: #C4956A;
    stroke-width: 1.5;
    opacity: 0.6;
}

.wave-tertiary {
    stroke: #C4956A;
    stroke-width: 1;
    opacity: 0.2;
}

.chevron-hint {
    position: absolute;
    bottom: 40px;
    color: #E8C99B;
    animation: chevron-breathe 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes chevron-breathe {
    0%, 100% { opacity: 0.8; transform: translateY(0); }
    50% { opacity: 0.2; transform: translateY(6px); }
}

/* ========== SECTION 2: THE CROSS-SECTION ========== */

.section-cross {
    background-color: #1E1810;
    padding: 120px 40px;
    min-height: 80vh;
}

.cross-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 48px;
    align-items: center;
}

.cross-text .section-headline {
    border-bottom: 3px solid #C4956A;
    display: inline-block;
    padding-bottom: 8px;
}

/* Mixed-media composition */
.cross-media {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 2px;
}

.media-layer {
    position: absolute;
    inset: 0;
}

.media-circles {
    background: radial-gradient(circle at 50% 50%, transparent 20%, rgba(196, 149, 106, 0.08) 21%, transparent 22%),
                radial-gradient(circle at 50% 50%, transparent 35%, rgba(196, 149, 106, 0.06) 36%, transparent 37%),
                radial-gradient(circle at 50% 50%, transparent 50%, rgba(196, 149, 106, 0.04) 51%, transparent 52%),
                radial-gradient(circle at 50% 50%, transparent 65%, rgba(196, 149, 106, 0.03) 66%, transparent 67%),
                radial-gradient(circle at 50% 50%, transparent 80%, rgba(196, 149, 106, 0.02) 81%, transparent 82%);
}

.media-grid {
    background-image:
        linear-gradient(rgba(155, 138, 110, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 138, 110, 0.12) 1px, transparent 1px);
    background-size: 40px 40px;
}

.media-gauge {
    background: conic-gradient(from 180deg at 50% 100%, rgba(196, 149, 106, 0.15), transparent 50%);
}

.media-waveform {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 160px;
}

/* ========== SECTION 3: THE GRID ROOM ========== */

.section-grid {
    background-color: #1E1810;
    padding: 120px 40px;
}

.grid-room-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.pillar {
    text-align: center;
    padding: 48px 24px;
}

.pillar-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: #9B8A6E;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 24px;
}

.pillar-glyph {
    font-size: 64px;
    color: #C4956A;
    display: block;
    line-height: 1;
    margin-bottom: 24px;
}

.pillar-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 4vw, 56px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 0.95;
    color: #F0E6D6;
    margin-bottom: 20px;
}

.pillar-desc {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: #9B8A6E;
    max-width: 360px;
    margin: 0 auto;
}

/* ========== SECTION 4: THE HORIZON LINE ========== */

.section-horizon {
    background-color: #1E1810;
    height: 60vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px;
}

.horizon-quote {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    font-style: italic;
    color: #D4A574;
    text-align: center;
    max-width: 700px;
    line-height: 1.6;
    z-index: 2;
    margin-bottom: 40px;
}

.horizon-waveform-container {
    width: 100%;
    height: 200px;
    position: relative;
}

.horizon-wave-primary {
    stroke: #C4956A;
    stroke-width: 2;
}

.horizon-wave-secondary {
    stroke: #C4956A;
    stroke-width: 1.5;
    opacity: 0.4;
}

/* ========== SECTION 5: THE FOUNDATION ========== */

.section-foundation {
    background-color: #110E09;
    padding: 120px 40px;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.foundation-inner {
    text-align: center;
    position: relative;
    z-index: 2;
}

.foundation-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 400;
    line-height: 1.7;
    color: #F0E6D6;
    max-width: 600px;
    margin: 0 auto;
}

.foundation-watermark {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 15vw, 200px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 0.9;
    color: #F0E6D6;
    opacity: 0.06;
    margin-top: 60px;
    user-select: none;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .cross-inner {
        grid-template-columns: 1fr;
    }
    .cross-media {
        height: 350px;
    }
    .grid-room-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .section-cross,
    .section-grid {
        padding: 80px 24px;
    }
    .section-foundation {
        padding: 80px 24px;
    }
    .domain-label {
        top: 20px;
        left: 20px;
    }
}
