/* 
 * vsezaebalo.ru - Pure Minimalist Waterfall Style Sheet
 * High-performance, GPU-accelerated, responsive, zero external dependencies.
 */

/* 1. Global Reset & Box Model */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* 2. Document & Body setup */
html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    line-height: 1.1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none; /* Disables default touch scrolling to allow custom physics scroll */
}

/* 3. Screen Reader Only Utility for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 4. Main Container */
#waterfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    background-color: #ffffff;
    overflow: hidden;
    z-index: 1;
}

/* 5. Column Layout */
.waterfall-column {
    position: relative;
    height: 100%;
    flex-grow: 1;
    flex-basis: 0;
    overflow: hidden;
}

/* 6. Animating Track */
.waterfall-track {
    position: absolute;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Hardware acceleration triggers */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* 7. Typography / Text Item Style */
.waterfall-item {
    width: 100%;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    white-space: nowrap;
    cursor: default;
    
    /* Strict dimensions to prevent sub-pixel rendering discrepancies on Retina screens */
    font-size: var(--font-size, 3rem);
    height: var(--item-height, 100px);
    line-height: var(--item-height, 100px);
}

/* 8. Alternate column styling for rhythmic pattern (subtle contrast variation) */
.waterfall-column:nth-child(even) .waterfall-item {
    color: rgba(0, 0, 0, 0.65); /* Elegant, slightly lighter shade for rhythm */
}

.waterfall-column:nth-child(odd) .waterfall-item {
    color: #000000;
}

/* Responsive adjustments for extremely small screens */
@media (max-width: 480px) {
    .waterfall-column {
        border-left: none;
        border-right: none;
    }
}
