/* ============================================
   lower.bar - Styles
   Mid-century basement cocktail lounge aesthetic
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deepest-dark: #060d18;
    --corridor-navy: #0a1628;
    --dark-navy: #121f33;
    --teal: #4a8c7e;
    --muted-slate: #5a7089;
    --light-slate: #a8b4c4;
    --brass: #c9a96e;
    --warm-brass: #dfc48a;
    --corridor-width: 38vw;
    --room-width: 62vw;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--brass) var(--deepest-dark);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--deepest-dark);
    color: var(--light-slate);
    overflow-x: hidden;
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Corridor - Fixed Left Panel (38vw)
   ============================================ */
.corridor {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--corridor-width);
    height: 100vh;
    background-color: var(--corridor-navy);
    z-index: 100;
    overflow: hidden;
}

.corridor::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--brass) 20%,
        var(--brass) 80%,
        transparent
    );
    opacity: 0.3;
}

.corridor-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 3rem 2rem;
}

/* Logo */
.corridor-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
}

.logo-lower {
    color: var(--brass);
}

.logo-dot {
    color: var(--teal);
}

.logo-bar {
    color: var(--light-slate);
}

/* Corridor Rule Lines */
.corridor-rule {
    width: 40px;
    height: 1px;
    background-color: var(--brass);
    opacity: 0.4;
}

/* Navigation */
.corridor-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--muted-slate);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    transition: color 0.4s ease, transform 0.3s ease;
    position: relative;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--brass);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translateX(-50%);
}

.nav-item:hover,
.nav-item.active {
    color: var(--brass);
}

.nav-item.active::before,
.nav-item:hover::before {
    opacity: 1;
}

/* Vertical Text */
.corridor-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--muted-slate);
    opacity: 0.5;
    text-transform: lowercase;
}

/* Depth Indicator */
.corridor-depth {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.depth-track {
    width: 2px;
    height: 60px;
    background-color: var(--dark-navy);
    border-radius: 1px;
    overflow: hidden;
}

.depth-fill {
    width: 100%;
    height: 0%;
    background-color: var(--brass);
    border-radius: 1px;
    transition: height 0.3s ease;
}

.depth-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    color: var(--muted-slate);
    letter-spacing: 0.1em;
}

/* ============================================
   Room - Scrollable Right Panel (62vw)
   ============================================ */
.room {
    margin-left: var(--corridor-width);
    width: var(--room-width);
    min-height: 100vh;
    position: relative;
}

.room-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 3rem;
}

.section-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
}

/* ============================================
   Organic Blob Forms
   ============================================ */
.blob {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
    animation: blobMorph1 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.08), transparent 70%);
    top: 10%;
    right: -10%;
    animation-name: blobMorph1;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(74, 140, 126, 0.06), transparent 70%);
    bottom: 15%;
    left: -5%;
    animation-name: blobMorph2;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.06), transparent 70%);
    top: 5%;
    left: 60%;
    animation-name: blobMorph3;
    animation-delay: -3s;
}

.blob-4 {
    width: 280px;
    height: 280px;
    background: radial-gradient(ellipse at center, rgba(74, 140, 126, 0.07), transparent 70%);
    top: 20%;
    right: -5%;
    animation-name: blobMorph1;
    animation-delay: -10s;
}

.blob-5 {
    width: 320px;
    height: 320px;
    background: radial-gradient(ellipse at center, rgba(201, 169, 110, 0.05), transparent 70%);
    bottom: 10%;
    left: -8%;
    animation-name: blobMorph2;
    animation-delay: -15s;
}

.blob-6 {
    width: 260px;
    height: 260px;
    background: radial-gradient(ellipse at center, rgba(74, 140, 126, 0.08), transparent 70%);
    top: 30%;
    left: 50%;
    animation-name: blobMorph3;
    animation-delay: -5s;
}

@keyframes blobMorph1 {
    0%, 100% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; }
    25% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; }
    50% { border-radius: 45% 55% 60% 40% / 60% 45% 55% 40%; }
    75% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; }
}

@keyframes blobMorph2 {
    0%, 100% { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
    25% { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
    50% { border-radius: 60% 40% 55% 45% / 45% 60% 40% 55%; }
    75% { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
}

@keyframes blobMorph3 {
    0%, 100% { border-radius: 60% 40% 45% 55% / 45% 60% 55% 40%; }
    25% { border-radius: 45% 55% 60% 40% / 55% 45% 40% 60%; }
    50% { border-radius: 55% 45% 40% 60% / 40% 55% 60% 45%; }
    75% { border-radius: 40% 60% 55% 45% / 60% 40% 45% 55%; }
}

/* ============================================
   Section: Descent (Hero)
   ============================================ */
.section-descent {
    background: linear-gradient(180deg, var(--deepest-dark) 0%, var(--dark-navy) 100%);
    min-height: 100vh;
}

.section-descent .section-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.descent-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(80px, 12vw, 200px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--brass);
    line-height: 1;
    opacity: 0;
    transform: translateY(-30px);
    animation: titleReveal 1.2s ease forwards 0.3s;
}

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

.descent-subtitle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.subtitle-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: var(--light-slate);
    text-transform: lowercase;
    white-space: nowrap;
}

.brass-rule {
    width: 40px;
    height: 1px;
    background-color: var(--brass);
    opacity: 0.5;
    flex-shrink: 0;
}

.descent-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.3s;
}

.cue-arrow {
    font-size: 1.5rem;
    color: var(--brass);
    animation: bobDown 2s ease-in-out infinite;
}

.cue-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--muted-slate);
    text-transform: lowercase;
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================
   Section Headers (shared)
   ============================================ */
.section-header {
    margin-bottom: 3rem;
}

.section-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--teal);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--brass);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.section-header .brass-rule {
    width: 60px;
}

/* ============================================
   Section: Signal
   ============================================ */
.section-signal {
    background: var(--deepest-dark);
}

.signal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.signal-card {
    padding: 2rem;
    background: rgba(18, 31, 51, 0.5);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: 4px;
    transition: border-color 0.4s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.signal-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.4s ease;
}

.signal-card:hover {
    border-color: rgba(201, 169, 110, 0.3);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.2rem;
}

.icon-svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--warm-brass);
    letter-spacing: -0.01em;
    margin-bottom: 0.8rem;
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--light-slate);
    opacity: 0.8;
}

/* ============================================
   Section: Pour
   ============================================ */
.section-pour {
    background: linear-gradient(180deg, var(--deepest-dark) 0%, var(--corridor-navy) 50%, var(--deepest-dark) 100%);
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.pour-showcase {
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.pour-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: translateX(-30px);
}

.pour-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.pour-item-reverse {
    flex-direction: row-reverse;
    transform: translateX(30px);
}

.pour-item-reverse.visible {
    transform: translateX(0);
}

.pour-visual {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pour-ring {
    width: 100%;
    height: 100%;
    animation: slowSpin 30s linear infinite;
}

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

.pour-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--warm-brass);
    letter-spacing: -0.01em;
    margin-bottom: 0.8rem;
}

.pour-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--light-slate);
    opacity: 0.8;
}

/* ============================================
   Section: Settle
   ============================================ */
.section-settle {
    background: var(--deepest-dark);
    min-height: 80vh;
}

.settle-content {
    margin-top: 2rem;
}

.settle-message {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: var(--warm-brass);
    letter-spacing: -0.01em;
    line-height: 1.5;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
}

.settle-message.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.settle-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    opacity: 0;
    transform: translateY(15px);
}

.contact-row.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--teal);
    text-transform: lowercase;
}

.contact-link {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--brass);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--warm-brass);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--warm-brass);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-value {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--light-slate);
    opacity: 0.7;
}

.settle-close {
    padding-top: 2rem;
}

.settle-close .brass-rule {
    width: 40px;
    margin-bottom: 1rem;
}

.close-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--muted-slate);
    opacity: 0.5;
}

/* ============================================
   Scroll-Reveal Animation Classes
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive (mobile)
   ============================================ */
@media (max-width: 900px) {
    :root {
        --corridor-width: 0px;
        --room-width: 100vw;
    }

    .corridor {
        display: none;
    }

    .room {
        margin-left: 0;
        width: 100vw;
    }

    .room-section {
        padding: 3rem 1.5rem;
    }

    .pour-item,
    .pour-item-reverse {
        flex-direction: column;
        text-align: center;
    }

    .pour-visual {
        width: 100px;
        height: 100px;
    }

    .signal-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    :root {
        --corridor-width: 28vw;
        --room-width: 72vw;
    }
}
