:root {
    --black: #000000;
    /* Original seemed to use this brownish red as 'black' variable? Checking CSS... yes. */
    --white: white;
    --background-dark: #000;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    line-height: 1.2em;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

/* Typography */
.title2 {
    font-size: 4.375em;
    font-weight: 500;
    line-height: 1;
}

.title4 {
    font-size: 1.75em;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* Layout Utilities */
.container-w2 {
    width: 100%;
    max-width: 83.125em;
    margin-left: auto;
    margin-right: auto;
}

.container-w3 {
    width: 100%;
    max-width: 52.5em;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.global-padding {
    padding-left: 4em;
    padding-right: 4em;
}

.p-xs-end {
    padding-bottom: 1.6em;
}

.p-xl-end {
    padding-bottom: 8.5em;
}

.p-sm-end {
    padding-bottom: 3em;
}

/* ZOOM SECTION */
.section-typo-zoom-in {
    background-color: var(--white);
    color: var(--black);
    width: 100%;
    height: 150vh;
    /* Determines the duration of the scroll effect */
    position: relative;
    z-index: 1;
}

.typo-zoom-sticky {
    width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
    /* Sticks to the top while scrolling within section-typo-zoom-in */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.typo-zoom-sticky-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.typo-zoom-text-wrapper {
    width: 300vw;
    /* Increased 10x for high-res rendering */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Zoom center reverted to default (50% 50%) for centering initially. Panning handled in JS. */
    transform-origin: 50% 50%;
    will-change: transform;
    flex-shrink: 0;
}

.typo-zoom-text-image {
    width: 100%;
    height: auto;
    display: block;
}

/* TUTORIAL / CONTENT SECTION */
.section-tutorial {
    background-color: var(--background-dark);
    color: var(--white);

    /* Reduced from 18em to show content sooner */
    padding-bottom: 9em;
    position: relative;
    z-index: 2;
    /* Ensures it covers the previous section if needed, though they are stacked naturally */
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .global-padding {
        padding-left: 6vw;
        padding-right: 6vw;
    }
}

@media screen and (max-width: 767px) {
    .title2 {
        font-size: 2.7em;
    }

    .title4 {
        font-size: 1.5em;
    }

    .typo-zoom-text-wrapper {
        width: calc(1000vw - 1280px);
    }
}

/* SCROLL ARROW */
.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid #000000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    color: #000000;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    animation: bounce 2s infinite;
    pointer-events: none;
}

.scroll-arrow img {
    width: 24px;
    height: 24px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Text Animation Styles */
.line {
    overflow: hidden;
}

.line-inner {
    display: inline-block;
    /* triggers layout for transforms */
}