/* ---------- Section: no gap at the bottom ---------- */
.hscroll {
    /* same colour as the bottom fade, so no seam shows */
    margin: 0;
    padding: 0;
    line-height: 0;              /* removes inline/baseline gap */
    font-size: 0;
    position: relative;
}
.hscroll:after{  background-color: #f6f2df; content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px; z-index: -1}
.hscroll .stage { font-size: 16px; line-height: normal; } /* restore text inside */

.stage {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    touch-action: pan-y;
    margin: 0;

    background-image: url('https://www.manoramaonline.com/content/dam/mm/mo/promotions/2026/10/cloud-v2.webp');
    background-repeat: repeat-x;
    background-size: cover;
}

@keyframes clouds {
    from { background-position: 0 0; }
    to   { background-position: -1920px 0; }
}
@-webkit-keyframes clouds {
    from { background-position: 0 0; }
    to   { background-position: -1920px 0; }
}

/* bottom fade into the footer image */
.stage:after {
    content: "";
    display: block;
    background: -webkit-linear-gradient(bottom, #f6f2df 0%, rgba(246,242,223,0) 100%);
    background: linear-gradient(to top, #f6f2df 0%, rgba(246,242,223,0) 100%);
    height: 200px;               /* +1px so it overlaps the section edge */
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;                /* closes the sub-pixel seam */
    z-index: -1;
    pointer-events: none;
}

.stage-title {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.stage-title-inner {
    width: 100%;
    position: relative;
    padding-bottom: 30%;
}
.track {
    display: flex;
    position: relative;
    padding: 20px 20px;
    width: max-content;
}

.item {
    position: relative;
    flex: none;
    width: 88vw;
    margin-right: 2rem;
}
.card {
    display: flex;
    flex-direction: column;
}
.item.on .card { opacity: 1; }
.item .year {
    font-family: "Oswald", sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
    color: #1a8c31;
    margin: 10px 0 5px 0;
}
.thumb {
    width: 100%;
    height: auto;
    border-radius: 14px;
    position: relative;
    -webkit-transform-origin: top center;
    transform-origin: top center;
    -webkit-animation: swing 2.5s ease-in-out infinite;
    animation: swing 2.5s ease-in-out infinite;
}

@-webkit-keyframes swing {
    0%, 100% { -webkit-transform: rotate(-1deg); }
    50%      { -webkit-transform: rotate(1deg); }
}
@keyframes swing {
    0%, 100% { transform: rotate(-1deg); }
    50%      { transform: rotate(1deg); }
}

.rotate-1 { transform: rotate(1deg); }
.rotate-2 { transform: rotate(-1deg); }

.thumb-inner {
    position: relative;
    width: 100%;
    padding-bottom: 56.2%;
    border: 10px solid #fff;
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 10px -15px;
}
.title {
    font-family: EGGIndulekhaUni;
    font-size: 45px;
    padding: 0 10px;
    text-align: center;
    font-weight: normal;
    margin-bottom: 10px;
}
.text p {
    color: #000;
    font-family: EGGIndulekhaUni;
    font-size: 22px;
    line-height: 22px;
}
.stage .keep-scroll { margin: 0 auto; }

@media (min-width: 768px) {
    .stage-title { max-width: 550px; }

    .text p {
        font-size: 26px;
        line-height: 26px;
    }
    .thumb::after {
        top: -39px;
        height: 39px;
    }
    .item .year { margin: 0 0 8px 0; }
    .track { padding: 50px 50px; }
    .item { width: 720px; }

    .card {
        flex-direction: row;
        align-items: center;
    }

    .thumb {
        flex: none;
        width: 400px;
        min-width: 400px;
        margin: 0 1rem 0 0;
    }
}