/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}


/* =========================================
   HERO
========================================= */

.hero {
    width: 100%;
    height: 100vh;

    display: grid;
    grid-template-columns: 25% 50% 25%;

    position: relative;
    overflow: hidden;

    background: #ffffff;
}


/* =========================================
   IMAGE COLUMNS - DESKTOP
========================================= */

.image-column {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.image-column .image-track {
    display: flex;
    flex-direction: column;

    gap: 20px;

    animation: desktopScroll 25s linear infinite;
}

.image-column.right .image-track {
    animation-name: desktopScrollReverse;
}


/* =========================================
   DESKTOP IMAGES
========================================= */

.image-column img {
    width: 100%;
    height: 220px;

    object-fit: cover;

    display: block;

    flex-shrink: 0;
}


/* =========================================
   CENTER CONTENT
========================================= */

.content {
    width: 100%;
    max-width: 650px;

    padding: 40px;

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    text-align: center;

    z-index: 10;
}


/* =========================================
   HEADING
========================================= */

.content h1 {
    font-size: 42px;
    line-height: 1.15;

    font-weight: 500;

    margin-bottom: 25px;

    color: #111111;
}


/* =========================================
   PARAGRAPH
========================================= */

.content p {
    max-width: 550px;

    margin: 0 auto 30px;

    font-size: 17px;
    line-height: 1.7;

    color: #555555;
}


/* =========================================
   BUTTON
========================================= */

.content a {
    display: inline-block;

    font-size: 16px;

    color: #111111;

    text-decoration: none;

    border-bottom: 1px solid #111111;

    padding-bottom: 5px;

    transition: opacity 0.3s ease;
}

.content a:hover {
    opacity: 0.6;
}


/* =========================================
   MOBILE IMAGE
   HIDDEN ON DESKTOP
========================================= */

.mobile-image {
    display: none;
}


/* =========================================
   DESKTOP ANIMATION
========================================= */

@keyframes desktopScroll {

    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-1680px);
    }

}

@keyframes desktopScrollReverse {

    0% {
        transform: translateY(-1680px);
    }

    100% {
        transform: translateY(0);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    /* -------------------------------------
       HERO
    ------------------------------------- */

    .hero {
        width: 100%;
        height: auto;

        display: flex;
        flex-direction: column;

        padding: 40px 20px;

        overflow: hidden;
    }


    /* -------------------------------------
       HIDE DESKTOP IMAGE COLUMNS
    ------------------------------------- */

    .image-column {
        display: none;
    }


    /* -------------------------------------
       CONTENT
    ------------------------------------- */

    .content {
        position: relative;

        left: auto;
        top: auto;

        transform: none;

        width: 100%;
        max-width: 100%;

        padding: 0;

        margin: 0;

        text-align: left;
    }


    /* -------------------------------------
       HEADING
    ------------------------------------- */

    .content h1 {
        font-size: 22px;

        line-height: 1.2;

        margin-bottom: 20px;

        text-align: left;
    }


    /* -------------------------------------
       PARAGRAPH
    ------------------------------------- */

    .content p {
        width: 100%;
        max-width: 100%;

        margin: 0 0 25px;

        font-size: 16px;

        line-height: 1.7;

        text-align: left;
    }


    /* =====================================
       MOBILE IMAGE SLIDER
    ====================================== */

    .mobile-image {

        display: block;

        width: 100%;

        /*
         125px  = half of first image
         20px   = gap
         250px  = full second image
         20px   = gap
         125px  = half third image

         TOTAL = 540px
        */

        height: 540px;

        overflow: hidden;

        margin-bottom: 30px;

        position: relative;
    }


    /* -------------------------------------
       IMAGE TRACK
    ------------------------------------- */

    .mobile-image .image-track {

        display: flex;

        flex-direction: column;

        gap: 20px;

        /*
         Start with first image shifted upward
         by 125px so only half is visible.
        */

        transform: translateY(-125px);

        animation: mobileScroll 28s linear infinite;
    }


    /* -------------------------------------
       MOBILE IMAGES
    ------------------------------------- */

    .mobile-image .image-track img {

        width: 100% !important;

        height: 250px !important;

        object-fit: cover;

        display: block;

        flex-shrink: 0;
    }


    /* -------------------------------------
       MOBILE BUTTON
    ------------------------------------- */

    .content a {

        display: inline-block;

        margin-top: 10px;

        font-size: 16px;

        text-align: left;
    }

}


/* =========================================
   MOBILE INFINITE SCROLL
========================================= */

@keyframes mobileScroll {

    /*
       Initial position:

       First image:
       125px visible

       Second:
       250px FULL

       Third:
       125px visible
    */

    0% {
        transform: translateY(-125px);
    }


    /*
       7 images ×
       (250px image + 20px gap)

       = 1890px

       Move exactly one complete set.
       Because the images are duplicated,
       the animation loops seamlessly.
    */

    100% {
        transform: translateY(-2015px);
    }

}