/* gabs.bar - Victorian Speakeasy */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #0D0907;
    color: #B8A089;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === NOISE TEXTURE OVERLAY === */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* === BRASS SPINE LINE === */
body::before {
    content: '';
    position: fixed;
    left: 8vw;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, #C4913B 10%, #C4913B 90%, transparent 100%);
    opacity: 0.3;
    z-index: 100;
    pointer-events: none;
}

/* === SPINE LABELS === */
.spine-label {
    position: absolute;
    left: 8vw;
    top: 40px;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center center;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #C4913B;
    opacity: 0.4;
    z-index: 101;
    white-space: nowrap;
}

/* === CHAMBERS (SECTIONS) === */
.chamber {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === REVEAL ANIMATIONS === */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============================
   CHAMBER 1: THE CURTAIN
   ============================ */
.chamber-curtain {
    background-color: #0D0907;
    flex-direction: column;
    overflow: hidden;
}

.curtain-content {
    position: relative;
    text-align: center;
    padding: 60px;
}

.filigree-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.filigree-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.filigree-corner.visible {
    opacity: 0.4;
}

.filigree-tl { top: 0; left: 0; }
.filigree-tr { top: 0; right: 0; }
.filigree-bl { bottom: 0; left: 0; }
.filigree-br { bottom: 0; right: 0; }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    font-size: 64px;
    letter-spacing: 0.06em;
    color: #E8D5B5;
    opacity: 0;
    transition: opacity 2s ease-in;
    margin-bottom: 24px;
}

.hero-title.visible {
    opacity: 1;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 18px;
    color: #B8A089;
    opacity: 0;
    transition: opacity 1.2s ease-in;
    max-width: 480px;
    margin: 0 auto;
}

.hero-tagline.visible {
    opacity: 0.7;
}

/* ============================
   CHAMBER 2: THE CABINET
   ============================ */
.chamber-cabinet {
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 135, 46, 0.06) 0%, transparent 70%), #0D0907;
    flex-direction: column;
    padding: 80px 0;
}

.bottle-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 40px 20vw;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 145, 59, 0.4) #1A130E;
}

.bottle-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.bottle-scroll-container::-webkit-scrollbar-track {
    background: #1A130E;
}

.bottle-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(196, 145, 59, 0.4);
    border-radius: 2px;
}

.bottle-panel {
    flex: 0 0 60vw;
    max-width: 400px;
    scroll-snap-align: center;
    background: #2A1F16;
    border: 1px solid rgba(196, 145, 59, 0.15);
    border-radius: 8px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 5;
    max-height: 70vh;
    justify-content: center;
    transform: scale(0.95);
    opacity: 0.6;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    box-shadow: 0 2px 16px rgba(13, 9, 7, 0.6);
}

.bottle-panel.revealed {
    transform: scale(1);
    opacity: 1;
}

.bottle-panel:hover {
    box-shadow: 0 4px 32px rgba(196, 145, 59, 0.15);
    border-color: rgba(196, 145, 59, 0.4);
}

.bottle-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 135, 46, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.bottle-panel[data-panel="2"] .bottle-glow {
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 135, 46, 0.1) 0%, transparent 70%);
}

.bottle-panel[data-panel="3"] .bottle-glow {
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 135, 46, 0.06) 0%, transparent 70%);
}

.bottle-panel[data-panel="4"] .bottle-glow {
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 135, 46, 0.09) 0%, transparent 70%);
}

.bottle-svg {
    width: 100px;
    height: auto;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.coupe-svg {
    width: 110px;
}

.rocks-svg {
    width: 100px;
}

.highball-svg {
    width: 85px;
}

.panel-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 22px;
    color: #E8D5B5;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.panel-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #B8A089;
    max-width: 280px;
}

/* ============================
   CHAMBER 3: THE STORY
   ============================ */
.chamber-story {
    background: radial-gradient(ellipse at 30% 40%, rgba(212, 135, 46, 0.06) 0%, transparent 60%), #0D0907;
    padding: 100px 12vw 100px 14vw;
}

.story-layout {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    max-width: 1100px;
    width: 100%;
}

.story-illustration {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.apothecary-bottle {
    width: 100%;
    max-width: 200px;
    height: auto;
}

.story-text {
    flex: 1;
}

.chamber-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 32px;
    color: #E8D5B5;
    letter-spacing: 0.04em;
    margin-bottom: 40px;
}

.story-text p {
    margin-bottom: 24px;
    color: #B8A089;
}

.story-emphasis {
    color: #D4C4A8;
    font-weight: 500;
    font-style: italic;
}

/* ============================
   CHAMBER 4: THE SHELF
   ============================ */
.chamber-shelf {
    background: radial-gradient(ellipse at 50% 20%, rgba(212, 135, 46, 0.05) 0%, transparent 60%), #0D0907;
    flex-direction: column;
    padding: 100px 14vw;
    align-items: flex-start;
}

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 24px;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.shelf-card {
    background:
        repeating-linear-gradient(
            0deg,
            #1A130E 0px,
            #1A130E 2px,
            #1F1710 2px,
            #1F1710 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(26, 19, 14, 0.5) 0px,
            rgba(26, 19, 14, 0.5) 2px,
            rgba(31, 23, 16, 0.3) 2px,
            rgba(31, 23, 16, 0.3) 4px
        );
    background-color: #1A130E;
    border-radius: 4px;
    padding: 32px 28px;
    box-shadow: 0 2px 16px rgba(13, 9, 7, 0.6);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.shelf-card:hover {
    box-shadow: 0 4px 32px rgba(196, 145, 59, 0.15);
    transform: translateY(-2px);
}

.shelf-card.tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #C4913B;
    display: block;
    margin-bottom: 16px;
}

.shelf-card p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #B8A089;
}

/* ============================
   CHAMBER 5: THE EXIT
   ============================ */
.chamber-exit {
    background-color: #0D0907;
    min-height: 60vh;
    flex-direction: column;
}

.exit-content {
    text-align: center;
}

.exit-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 36px;
    color: #E8D5B5;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.exit-contact {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 18px;
    color: #B8A089;
    margin-bottom: 40px;
}

.brass-flourish {
    width: 200px;
    height: 30px;
    display: block;
    margin: 0 auto;
}

/* === VERDIGRIS & AMBER ACCENTS === */
.story-emphasis {
    border-left: 2px solid #5A7D6B;
    padding-left: 20px;
}

.shelf-card:hover .card-label {
    color: #D4872E;
}

.bottle-panel:hover .panel-title {
    color: #D4872E;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.7;
    }

    .hero-title {
        font-size: 40px;
    }

    .chamber-title {
        font-size: 28px;
    }

    .curtain-content {
        padding: 40px 30px;
    }

    .filigree-corner {
        width: 60px;
        height: 60px;
    }

    .story-layout {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .story-illustration {
        flex: none;
        width: 50%;
    }

    .story-text {
        width: 100%;
    }

    .chamber-story {
        padding: 80px 8vw;
    }

    .chamber-shelf {
        padding: 80px 8vw;
    }

    .shelf-grid {
        grid-template-columns: 1fr;
    }

    .shelf-card.tall {
        grid-row: span 1;
    }

    .bottle-panel {
        flex: 0 0 75vw;
    }

    .bottle-scroll-container {
        padding: 40px 12vw;
    }

    .spine-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .curtain-content {
        padding: 30px 20px;
    }

    .bottle-panel {
        flex: 0 0 85vw;
        padding: 40px 24px;
    }

    .chamber-story {
        padding: 60px 6vw;
    }

    .chamber-shelf {
        padding: 60px 6vw;
    }

    .shelf-grid {
        gap: 16px;
    }
}
