/* ========================================
   gabs.reviews — Sunken Treasury Design
   Seapunk-luxury hybrid / Ma negative space
   ======================================== */

:root {
    /* Core Palette: The Sunken Treasury */
    --obsidian-abyss: #0A0A0A;
    --tarnished-bullion: #C9A84C;
    --patina-gold: #8B7735;
    --abyssal-ink: #1A1508;
    --pearl-foam: #F5F0E6;

    /* Extended Accents */
    --deep-teal: #0D3B3E;
    --bioluminescent: #4ECDC4;
    --brass-reflection: #D4AF37;

    /* Typography Scale */
    --heading-major: clamp(2.4rem, 5vw, 5.6rem);
    --heading-section: clamp(1.6rem, 3vw, 2.8rem);
    --body-size: clamp(1rem, 1.4vw, 1.2rem);
    --accent-size: 0.85rem;
}

/* ========================================
   Reset & Base
   ======================================== */

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

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

body {
    background-color: var(--obsidian-abyss);
    color: var(--pearl-foam);
    font-family: 'Roboto Slab', serif;
    font-weight: 300;
    font-size: var(--body-size);
    letter-spacing: 0.01em;
    line-height: 1.85;
    overflow-x: hidden;
}

a {
    color: var(--tarnished-bullion);
    text-decoration: none;
    transition: color 0.4s ease;
}

a:hover {
    color: var(--brass-reflection);
}

/* ========================================
   Bokeh Background Layer
   ======================================== */

#bokeh-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    will-change: transform;
}

/* ========================================
   Zone Base Styles
   ======================================== */

.zone {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Zone 1: The Descent
   ======================================== */

#zone-descent {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.zone-descent-inner {
    text-align: center;
}

.wordmark {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: var(--heading-major);
    color: var(--tarnished-bullion);
    letter-spacing: 0.02em;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(30px);
    animation: wordmarkReveal 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
}

@keyframes wordmarkReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#nav-links {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#nav-links:hover,
#zone-descent:hover #nav-links {
    opacity: 1;
}

.nav-link {
    font-family: 'Zilla Slab', serif;
    font-weight: 300;
    font-style: italic;
    font-size: var(--accent-size);
    color: var(--patina-gold);
    opacity: 0.6;
    transition: opacity 0.4s ease, color 0.4s ease;
}

.nav-link:hover {
    opacity: 1;
    color: var(--tarnished-bullion);
}

/* ========================================
   Zone 2: The Current (Featured Review)
   ======================================== */

#zone-current {
    min-height: 150vh;
    padding-top: 200px;
    padding-bottom: 200px;
}

.zone-current-inner {
    display: flex;
    align-items: flex-start;
    gap: 120px;
    min-height: 80vh;
}

.featured-review {
    flex: 0 0 33.333%;
    max-width: 480px;
    padding-left: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-review.revealed {
    opacity: 1;
    transform: translateY(0);
}

.featured-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 700;
    font-size: var(--heading-section);
    color: var(--tarnished-bullion);
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin-bottom: 40px;
}

.featured-excerpt {
    color: var(--pearl-foam);
    margin-bottom: 40px;
}

.featured-attribution {
    font-family: 'Zilla Slab', serif;
    font-weight: 300;
    font-style: italic;
    font-size: var(--accent-size);
    color: var(--patina-gold);
}

.waveform-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

#waveform-svg {
    width: 100%;
    max-width: 600px;
    height: 400px;
}

.wave {
    transition: d 0.5s ease;
}

/* ========================================
   Zone 3: The Reef (Review Cards)
   ======================================== */

#zone-reef {
    min-height: 100vh;
    padding-top: 200px;
    padding-bottom: 200px;
}

.zone-reef-inner {
    display: flex;
    position: relative;
}

.reef-line-container {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
    position: relative;
}

.reef-line {
    width: 1px;
    height: 100%;
    background-color: var(--tarnished-bullion);
    animation: reefLinePulse 4s ease-in-out infinite;
}

@keyframes reefLinePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.reef-cards {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.review-card {
    max-width: 480px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card:nth-child(1) {
    margin-left: 0;
}

.review-card:nth-child(2) {
    margin-left: -120px;
}

.review-card:nth-child(3) {
    margin-left: -240px;
}

.review-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-family: 'Zilla Slab', serif;
    font-weight: 500;
    font-size: var(--heading-section);
    color: var(--tarnished-bullion);
    letter-spacing: 0.02em;
    line-height: 1.25;
    margin-bottom: 16px;
}

.card-excerpt {
    color: var(--pearl-foam);
    margin-bottom: 24px;
}

.card-underline {
    width: 0;
    height: 2px;
    background-color: var(--tarnished-bullion);
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.review-card.revealed .card-underline {
    width: 100%;
}

/* ========================================
   Zone 4: The Deep (Philosophy)
   ======================================== */

#zone-deep {
    min-height: 100vh;
    padding-top: 200px;
    padding-bottom: 200px;
    max-width: none;
    margin: 0;
    background-color: var(--abyssal-ink);
}

.zone-deep-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.philosophy-text {
    font-family: 'Zilla Slab', serif;
    font-weight: 500;
    font-size: var(--heading-section);
    color: var(--pearl-foam);
    line-height: 1.8;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.philosophy-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Zone 5: The Surface (Sign-off)
   ======================================== */

#zone-surface {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 120px;
}

.zone-surface-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.bubble-ring {
    width: 120px;
    height: 120px;
    position: relative;
    animation: bubbleRingRotate 8s linear infinite;
}

@keyframes bubbleRingRotate {
    to { transform: rotate(360deg); }
}

.bubble {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bioluminescent);
    opacity: 0.4;
    top: 50%;
    left: 50%;
    transform: rotate(calc(var(--i) * 36deg)) translateY(-50px);
    animation: bubbleScale 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.3s);
}

@keyframes bubbleScale {
    0%, 100% { transform: rotate(calc(var(--i) * 36deg)) translateY(-50px) scale(1); }
    50% { transform: rotate(calc(var(--i) * 36deg)) translateY(-50px) scale(1.6); }
}

.contact-email {
    font-family: 'Zilla Slab', serif;
    font-weight: 300;
    font-size: var(--accent-size);
    color: var(--tarnished-bullion);
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.contact-email.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Bottom Void
   ======================================== */

.bottom-void {
    height: 300px;
    background-color: var(--obsidian-abyss);
}

/* ========================================
   Reveal Animation Utility
   ======================================== */

.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
    .zone {
        padding: 0 24px;
    }

    .zone-current-inner {
        flex-direction: column;
        gap: 80px;
    }

    .featured-review {
        flex: 1;
        max-width: 100%;
    }

    .waveform-container {
        min-height: 200px;
    }

    .zone-reef-inner {
        flex-direction: column;
    }

    .reef-line-container {
        display: none;
    }

    .reef-cards {
        flex: 1;
    }

    .review-card:nth-child(2),
    .review-card:nth-child(3) {
        margin-left: 0;
    }

    #nav-links {
        opacity: 0.5;
    }

    .zone-deep-inner {
        padding: 0 24px;
    }
}
