:root {
    --cb: #212529; /* black */
    --cw: #fff; /* white */
    --cg: #3e3e3d; /* gray */
    --cr: #c7202f; /* red */
    --ch: #a51e2f; /* red */
    --ts: #000 0 0 10px;
}

/* .btn-default *******************************/

.btn-default {
    background-color: var(--cr);
    border: 1px solid var(--ch);
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0px;
    outline: 0;
    padding: 8px 10px;
    text-decoration: none;
    text-shadow: none;
    text-transform: uppercase;
    transition: all ease 0.2s;
}

.btn-default:hover,
.btn-default:focus {
    background-color: var(--ch);
    color: #fff;
}

/* general *******************************/

main {
    background-color: var(--cb) !important;
}

p {
    font-size: 15px;
    font-weight: 400;
}

ul,
ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

body.has-banner .slide-1 .hero-main-inner {
    margin-top: 0;
}

body.has-banner .scroller {
    margin-top: -70px;
}

/* chapter menu floating ****************/

body.has-banner .floating-chapters-menu-container {
    position: sticky;
    top: 85px;
    transform: translateY(0);
}

body.has-banner.banner-visible .floating-chapters-menu-container {
    top: 25px;
}

.floating-chapters-menu-container {
    overflow: hidden;
    position: fixed;
    top: 25px;
    transform: translateY(60px);
    width: 100%;
    z-index: 5;
}

.floating-chapters-menu-inner {
    background-image: linear-gradient(#000000d4 8%, 48%, transparent);
    box-sizing: border-box;
    display: flex;
    height: 70px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
    margin: 0;
    padding: 10px;
    scrollbar-width: none;
    white-space: nowrap;
}

.floating-chapters-menu-inner::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.floating-chapters-menu-list {
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    width: max-content;
}

.floating-chapter {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    font-size: 15px;
    height: 100%;
    justify-content: center;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

.btn-chapter-marker {
    align-items: center;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    height: 100%;
    justify-content: center;
    letter-spacing: 0;
    margin: 0;
    padding: 0;
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease-out;
    width: 100%;

    &:hover {
        color: #fff;
    }
}

.floating-chapter-text {
    opacity: 0.5;
    transition: all 0.8s ease-out;
}

.floating-chapter-text.highlight {
    display: inline-block;
    opacity: 1;
    scale: 1.06;
    transform-origin: top;
}

.floating-chapter-text::after {
    background-color: var(--cr);
    content: '';
    display: block;
    height: 2px;
    margin-top: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    width: 0%;
}
.floating-chapter-text.highlight::after {
    transform: scaleX(1);
    width: 100%;
}

/* backgrounds ****************/

.storytelling-scroller {
    position: relative;
    width: 100%;
}

.storytelling-scroller-backgrounds {
    height: 100%;
    min-height: calc(100vh - 85px);
    overflow: hidden;
    position: sticky;
    top: 85px;
    width: 100%;
    z-index: 0;
}

.storytelling-slide-background {
    height: calc(100vh - 85px);
    left: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    transition: opacity 1s cubic-bezier(0.55, 0.06, 0.68, 0.19);
    width: 100%;
}

#story-title-slide {
    opacity: 1;
}

.slide-background-show {
    opacity: 1;
    transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.storytelling-slide-background figure {
    height: calc(100vh - 85px);
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    margin: 0;
}

.storytelling-bg-overlay {
    background: var(--cb);
    bottom: 0;
    left: 0;
    opacity: 0.5;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.storytelling-slide-background img {
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    rotate: none;
    scale: none;
    top: 0;
    transform-origin: right center;
    transition: all 10s ease-in-out;
    translate: none;
    width: 100%;
}

.storytelling-slide-background.left img {
    object-position: left bottom;
    transform-origin: left bottom;
}

.storytelling-slide-background.right img {
    object-position: right bottom;
    transform-origin: right bottom;
}

.active img {
    scale: 1.1;
}

/* foregrounds ***********************/

.hero-main {
    display: grid;
    height: auto;
    overflow: hidden;
    position: relative;
    /*text-wrap: balance;*/
    width: 100%;
}

.hero-main-image-container {
    display: flex;
    height: 100%;
    position: relative;
    width: 100%;
}

.hero-main-inner-container {
    min-height: calc(100vh - 85px);
    width: 100%;
}

.hero-main-bg {
    background-repeat: no-repeat;
    height: 100%;
    left: 0;
    opacity: 1;
    position: absolute;
    top: 0;
    transition: transform 1s cubic-bezier(0.395, 0.005, 0.19, 1);
    width: 100%;
    z-index: 0;
    margin: 0;
}

.hero-main-bg img {
    background-size: cover;
    height: 100%;
    left: 0;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    width: 100%;
}

.hero-main-inner {
    align-items: center;
    display: flex;
    flex-flow: column;
    height: 100%;
    justify-content: center;
    left: auto;
    padding-bottom: 3.6rem;
    padding-top: 3.6rem;
    position: relative;
    text-align: center;
    top: auto;
    z-index: 2;
}

.hero-main-foreground-container {
    align-items: flex-start;
    display: flex;
    flex-flow: column;
    justify-content: center;
    padding: 0 calc(1.6rem * 0.9);
    text-align: left;
    width: 100%;
}

.hero-main-foreground-container.right {
    align-items: flex-end;
}

.hero-headline {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: none;
    line-height: 1.2;
    letter-spacing: 0;
}

.hero-main-subheadline {
    font-size: 1rem;
    font-weight: 700;
}

.storytelling-foregrounds {
    margin-top: calc(-120vh + 85px);
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 4;
}

.storytelling-foreground {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 85px);
    position: relative;
    transition: opacity 0.2s cubic-bezier(0.175, 0.29, 0.405, 1);
    width: 100%;
}

.storytelling-foreground.is-on-screen .storytelling-foreground-content-wrapper {
    opacity: 1;
}

.storytelling-foreground:first-child {
    min-height: calc(120vh - 85px);
}

.storytelling-foreground-content-wrapper {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 100%;
}

.storytelling-scroller .hero-main {
    min-height: max(540px, calc(1vh * 100));
}

.hero-content {
    color: #fff;
    max-width: 383px;
    /* text-shadow: #000 0 0 10px; */
}

.hero-text {
    line-height: 20px;
}

#text-1 .hero-content {
    max-width: 348px;
}

#story-fg-7,
#story-fg-9 {
    flex-direction: column;
}

#text-9-2 .hero-text,
.italic {
    font-style: italic;
}

.slide-1 .hero-main-inner {
    margin-top: 85px;
}

/* slide up cards *******************/

.logo img {
    padding-top: 50px;
    width: 220px;
}

.slide-12 {
    scroll-margin-top: 85px;
}

.slide-cards {
    min-height: calc(100vh - 85px) !important;
    position: relative;
}

.slide-card {
    min-width: 100%;
    position: sticky;
    top: 85px;
}

.slide-card {
    box-shadow: 0px -20px 30px 0px rgb(0 0 0 / 35%);
}

.slide-card .storytelling-bg-overlay {
    opacity: 0.5;
}

.slide-card .hero-main-inner-container {
    min-height: 100vh;
}

@media only screen and (max-width: 767px) {
    .desktop {
        display: none;
    }

    .floating-chapters-menu-inner {
        padding: 0 22px;
    }

    .floating-chapter-text {
        margin: 0 12px;
    }

    #text-1 {
        text-align: center;
        align-items: center;
    }

    .storytelling-slide-background img {
        object-position: center center;
    }

    .storytelling-slide-background.right img {
        object-position: 90% 30%;
    }
    .storytelling-slide-background.left img {
        object-position: 10% center;
    }

    #story-bg-1 img {
        object-position: 53% 60%;
        transform-origin: center 30%;
    }

    #story-bg-2 img {
        object-position: right bottom;
        transform-origin: right bottom;
    }

    #story-bg-7 img {
        object-position: right top;
        transform-origin: right top;
    }

    #story-bg-8 img {
        object-position: 75% 55%;
        transform-origin: right top;
    }

    #story-bg-9 img {
        object-position: 45% 55%;
        transform-origin: right top;
    }

    .hero-main-image-container {
        min-height: 375px;
    }

    .slide-12 img {
        object-position: 55% 60%;
    }

    .logo img {
        max-width: 200px;
        padding-top: 20px;
    }

    .hero-main-inner {
        align-items: center;
        flex-flow: column;
        justify-content: center;
    }

    .purpose .hero-main-inner,
    .community .hero-main-inner {
        justify-content: flex-end;
    }
    .purpose .hero-content,
    .community .hero-content {
        margin-bottom: 120px;
    }
}

@media only screen and (min-width: 551px) {
    .floating-chapters-menu-list {
        flex-direction: row;
        height: 100%;
        justify-content: space-evenly;
        left: 50%;
        list-style-type: none;
        max-width: 630px;
        position: absolute;
        transform: translateX(-50%);
        width: 100%;
    }
}

@media only screen and (min-width: 768px) {
    .mobile {
        display: none;
    }

    .btn-chapter-marker {
        font-size: 16px;
    }

    .floating-chapter-text:hover {
        opacity: 1;
    }

    .floating-chapter {
        text-align: center;
        transition: all 0.3s ease-out;
        white-space: nowrap;
        width: auto;
    }

    .hero-main-inner {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .hero-main-foreground-container {
        padding: 0 calc(1.6rem * 4);
    }

    .storytelling-foreground:first-child {
        min-height: calc(150vh - 85px);
    }
}

@media only screen and (min-width: 992px) {
    .hero-main-foreground-container {
        padding: 0 calc(1.6rem * 7);
    }
}

@media only screen and (min-width: 1200px) {
    .hero-main-foreground-container {
        padding: 0 calc(1.6rem * 8);
    }

    #story-bg-1 img {
        object-position: 60% 60%;
        transform-origin: 45% 20%;
    }
    #story-bg-4 img {
        object-position: center 20%;
        transform-origin: 40% 20%;
    }

    #story-bg-5 img {
        object-position: right 40%;
        transform-origin: right center;
    }

    #story-bg-6 img {
        object-position: left 80%;
        transform-origin: left 30%;
    }

    #story-bg-7 img {
        object-position: right 20%;
        transform-origin: right top;
    }

    .slide-14 img {
        object-position: center 80%;
    }
}

@media only screen and (min-width: 1500px) {
    .hero-main-foreground-container {
        padding: 0 calc(1.6rem * 14);
    }
}
