/* gabs.bar - Brutalist Neon Bar Chart Visualization */

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

:root {
    --black: #0A0A0A;
    --neon-pink: #FF2D55;
    --neon-teal: #00D4AA;
    --neon-yellow: #FFE600;
    --electric-blue: #0088FF;
    --neon-orange: #FF6B00;
    --hot-purple: #AA00FF;
    --lime-green: #88FF00;
    --white: #FFFFFF;
    --mid-gray: #CCCCCC;
    --dark-gray: #555555;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    background: var(--black);
    color: var(--mid-gray);
    overflow-x: hidden;
}

/* ==================== HERO ==================== */
#hero {
    width: 100%;
    height: 100vh;
    background: var(--black);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bar-burst {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-bar {
    transform: translateX(-100%);
    transition: transform 500ms ease-out;
}

.hero-bar.slammed {
    transform: translateX(0);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.hero-gabs {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(5rem, 15vw, 12rem);
    color: var(--white);
    letter-spacing: 0.05em;
    mix-blend-mode: difference;
    line-height: 1;
    opacity: 0;
    transition: opacity 300ms ease;
}

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

.hero-dot-bar {
    position: absolute;
    bottom: 30%;
    right: 5vw;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--white);
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 300ms ease;
}

.hero-dot-bar.visible {
    opacity: 1;
}

/* ==================== COMPARISON ==================== */
#comparison {
    padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 3rem);
    background: var(--black);
}

.comp-pair {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comp-label {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--mid-gray);
    padding: 4px 0;
}

.comp-bar {
    height: 32px;
    width: 0;
    transition: width 800ms ease-out;
    position: relative;
}

.comp-bar.top { background: var(--neon-pink); }
.comp-bar.bottom { background: var(--neon-teal); }

/* ==================== STACKED COLUMNS ==================== */
#stacked {
    padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 3vw, 3rem);
    background: var(--black);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    height: 50vh;
}

.stack-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: flex-end;
    position: relative;
}

.seg {
    flex-grow: 0;
    min-height: 0;
    transition: flex-grow 400ms ease-out;
}

.seg.grown {
    /* flex-grow set inline; transition handles animation */
}

.stack-label {
    font-family: 'Roboto Mono', monospace;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--mid-gray);
    text-align: center;
    padding-top: 12px;
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
}

/* ==================== TICKER ==================== */
#ticker {
    padding: clamp(3rem, 6vw, 6rem) 0;
    background: var(--black);
}

.ticker-bar {
    height: 80px;
    background: var(--neon-pink);
    width: 0;
    transition: width 1.5s ease-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
}

.ticker-bar.extended {
    width: 75vw;
}

.ticker-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

/* ==================== FOOTER ==================== */
#footer {
    background: var(--black);
    padding: 2rem;
    text-align: left;
}

.footer-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    color: var(--dark-gray);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 600px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        min-height: 50vh;
    }
}
