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

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
    background: #2A2A2A;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: #C8C0B0;
    overflow-x: hidden;
    background: #2A2A2A;
}

/* === CONCRETE TEXTURE === */
.zone-concrete {
    background:
        radial-gradient(ellipse at 20% 50%, #2E2E2E 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, #303030 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, #262626 0%, transparent 60%),
        radial-gradient(circle at 30% 30%, #2E2E2E 0%, transparent 30%),
        radial-gradient(circle at 70% 70%, #262626 0%, transparent 25%),
        #2A2A2A;
}

.zone-navy {
    background: #0A0F1A;
}

/* === FIXED WAVEFORM LAYER === */
#waveform-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.waveform {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: visible;
}

#waveform-high {
    top: 25vh;
}

#waveform-mid {
    top: 50vh;
}

#waveform-low {
    top: 75vh;
}

.waveform path {
    fill: none;
    stroke-width: 1.5;
    will-change: stroke-dashoffset;
}

#waveform-high path { stroke: #D4AF37; opacity: 0.8; }
#waveform-mid path { stroke: #C5963A; opacity: 0.5; }
#waveform-low path { stroke: #8B6914; opacity: 0.3; }

@keyframes dash-scroll-high {
    to { stroke-dashoffset: 0; }
}
@keyframes dash-scroll-mid {
    to { stroke-dashoffset: 0; }
}
@keyframes dash-scroll-low {
    to { stroke-dashoffset: 0; }
}

/* === SECTIONS === */
.zone {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* === OPENING FREQUENCY === */
#opening {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.opening-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.heartbeat-svg {
    width: 200px;
    height: 60px;
}

#heartbeat-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: heartbeat-draw 3s ease-in-out forwards, heartbeat-pulse 2s ease-in-out 3s infinite;
}

@keyframes heartbeat-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes heartbeat-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.site-title {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.25em;
    color: #D4AF37;
    font-weight: 400;
    text-transform: lowercase;
}

.scroll-chevron {
    position: absolute;
    bottom: 3rem;
    opacity: 0;
    animation: chevron-fade 1s ease 3s forwards, chevron-bob 2s ease-in-out 4s infinite;
}

@keyframes chevron-fade {
    to { opacity: 0.4; }
}

@keyframes chevron-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* === GLASS CARDS === */
.glass-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 2px;
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.03);
    padding: 2.5rem 3rem;
    max-width: 560px;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, backdrop-filter 0.4s ease;
}

.glass-card:hover {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-card.slide-from-right {
    transform: translateX(100%);
}

.glass-card.slide-from-left {
    transform: translateX(-100%);
}

.glass-card.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Card positioning variants */
.glass-card-left { margin-right: auto; }
.glass-card-right { margin-left: auto; }
.glass-card-center { margin: 0 auto; }

/* === BODY TEXT === */
.body-text {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.85;
    color: #C8C0B0;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.glass-card .body-text-dark {
    color: #3A3530;
}

.glass-card:active {
    border-color: #B87333;
}

/* === FIRST REVEAL SECTION === */
#first-reveal {
    min-height: 150vh;
    padding: 15vh 8vw;
    display: flex;
    flex-direction: column;
    gap: 8vh;
    align-items: flex-end;
}

#first-reveal .glass-card {
    width: 40vw;
    max-width: 560px;
    min-width: 300px;
}

/* === WAVE CANYON === */
#wave-canyon {
    min-height: 250vh;
    padding: 10vh 8vw;
    display: flex;
    flex-direction: column;
    gap: 12vh;
}

/* === ART DECO DIVIDERS === */
.deco-divider {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
    width: 40%;
    margin: 0 auto;
}

.deco-divider svg {
    width: 100%;
    height: 40px;
}

/* === BRUTALIST INTERSECTION === */
#brutalist-intersection {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.monumental-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.mono-word {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: 0.25em;
    color: transparent;
    -webkit-text-stroke: 2px #D4AF37;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mono-word.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === GLASS SANCTUM === */
#glass-sanctum {
    min-height: 150vh;
    padding: 15vh 8vw;
    display: flex;
    flex-direction: column;
    gap: 10vh;
    align-items: center;
    position: relative;
}

.glass-panel {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 2px;
    box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.03);
    padding: 3rem;
    max-width: 600px;
    width: 80%;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, backdrop-filter 0.4s ease;
}

.glass-panel:hover {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-panel.slide-from-right {
    transform: translateX(100%);
}

.glass-panel.slide-from-left {
    transform: translateX(-100%);
}

.glass-panel.revealed {
    opacity: 1;
    transform: translateX(0);
}

.glass-depth-1 { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glass-depth-2 { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.glass-depth-3 { backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }

/* === FINAL WAVEFORM === */
#final-waveform-container {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

#final-waveform {
    width: 300px;
    height: 60px;
}

#final-wave-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

#final-wave-path.animate-flatline {
    animation: flatline 4s ease-in-out forwards;
}

@keyframes flatline {
    0% { stroke-dashoffset: 400; }
    60% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; d: path('M0,30 L300,30'); }
}

/* === SIGNAL LABELS === */
.mono-label {
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7A7064;
}

.signal-label {
    text-align: center;
    padding: 2rem 0 4rem;
    opacity: 0;
    transition: opacity 1s ease;
}

.signal-label.visible {
    opacity: 1;
}

/* === BREADCRUMB === */
.breadcrumb {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.breadcrumb.visible {
    opacity: 1;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #first-reveal .glass-card {
        width: 85vw;
    }

    .glass-card {
        padding: 1.5rem 2rem;
        max-width: 90vw;
    }

    .glass-panel {
        width: 90%;
        padding: 2rem;
    }

    .deco-divider {
        width: 70%;
    }

    #first-reveal,
    #wave-canyon {
        padding: 10vh 5vw;
    }
}
