.scroll-container {
    transition: background-color 1s ease;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    background-color: #000;
    color: #fff;
    scroll-snap-type: y mandatory;
}

.scroll-section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.scroll-section.is-visible {
    opacity: 1;
}

.scroll-section .content {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}




.scroll-section h1,
.scroll-section h2,
.scroll-section h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
}

.scroll-section h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.scroll-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.scroll-section p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.placeholder-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 1s ease-in-out, transform 1.2s ease-in-out;
}

.scroll-section.is-visible .placeholder-bg {
    opacity: 0.5;
    transform: scale(1.05);
}



#navbar .nav-rail {
    position: fixed;
    top: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - (var(--space-sm) * 2));
    max-width: 1440px; /* from .container */
    z-index: 1000;
}

@media (max-width: 768px) {
  .scroll-section h1 {
    font-size: 2.5rem;
  }
}
