/* Homepage specific styling goes here. Excluded on all subpages */
/* For most builds, this stylesheet should be wiped and started fresh */

/* HERO */
.hero {
    padding-bottom: 26px;
    position: relative;
    min-height: 786px;
    display: flex;
    align-items: flex-end;
    text-align: center;
}

.hero .row {
    max-width: calc(1470px + var(--gutter-size) * 2);
}

.hero .column {
    padding-right: 8px;
    padding-left: 8px;
}

.hero:before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: linear-gradient(4.43deg, rgba(255, 255, 255, 0) 75.9%, rgba(255, 255, 255, 0.58) 90.19%), radial-gradient(115% 63.87% at 56.95% 15.1%, rgba(255, 255, 255, 0) 37.09%, rgba(255, 255, 255, 0.56) 55.31%, #FFFFFF 73.21%);
    pointer-events: none;
    content: '';
}

@media screen and (max-width:640px){
    .hero:before {
        background: linear-gradient(4.43deg, rgba(255, 255, 255, 0) 75.9%, rgba(255, 255, 255, 0.58) 90.19%), radial-gradient(115% 63.87% at 56.95% 10.1%, rgba(255, 255, 255, 0) 37.09%, rgba(255, 255, 255, 0.56) 55.31%, #FFFFFF 73.21%);
    }
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    margin: 0 auto;
    font-size: 0.963rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    max-width: 250px;
    letter-spacing: 0.113rem;
    line-height: 1.2;
}

.hero-title {
    margin-bottom: 22px;
    font-size: 2.813rem;
    color: var(--color-primary);
    letter-spacing: -0.063rem;
    line-height: 1.07;
}

.hero-title-1,
.hero-title-2 {
    display: block;
}

.hero-title-1 strong,
.hero-title-2 strong {
    font-weight: 400;
    color: var(--color-secondary);
}

/* Stone texture inside the gold highlight (Figma: image fill over the solid gold fill).
   The texture is applied to each letter span, not the <strong>, because the letters are animated
   individually and a clipped background on the parent would not follow them. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
    .hero-title-1 strong span,
    .hero-title-2 strong span {
        /* Gold is a gradient layer (not background-color) so the texture can multiply with it */
        background-image: url("../images/hero-text-texture.webp?v=2"), linear-gradient(var(--color-secondary), var(--color-secondary));
        background-size: 420px auto, 100% 100%;
        background-blend-mode: multiply, normal;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        /* The background only covers the line box, so tall/overhanging glyphs (ascenders, j, y, serifs)
           were being cut off. Padding grows the painted area; the negative margin cancels it for layout */
        padding: 0.25em 0.12em;
        margin: -0.25em -0.12em;
    }

    /* Different part of the texture per letter so the grain doesn't repeat identically */
    .hero-title-1 strong span:nth-child(3n+2),
    .hero-title-2 strong span:nth-child(3n+2) {
        background-position: -140px -90px;
    }

    .hero-title-1 strong span:nth-child(3n),
    .hero-title-2 strong span:nth-child(3n) {
        background-position: -280px -180px;
    }
}

.hero-buttons {
    margin: 0 auto;
    max-width: 218px;
    overflow: hidden;
}

.hero-buttons .button {
    margin-bottom: 10px;
    padding: 16px;
    font-size: 1rem;
    width: 100%;
}

.hero picture {
    display: block;
    height: 100%;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .swiper-wrapper {
    height: 100%!important;
}

.hero .swiper-slide {
    width: 100%;
    height: 100%!important;
    overflow: hidden;
}

/* Slow zoom on the showing photo (each slide is up ~6s), eases back out after it fades away */
.hero .swiper-slide img {
    transform: scale(1);
    transition: transform 7s linear;
    will-change: transform;
}

.hero .swiper-slide-active img {
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    .hero .swiper-slide img,
    .hero .swiper-slide-active img {
        transform: none;
        transition: none;
    }
}

@media screen and (min-width: 768px) {
    .hero {
        padding-bottom: 60px;
        text-align: left;
    }

    .hero .column {
        padding-right: var(--gutter-size);
        padding-left: var(--gutter-size);
    }

    .hero-subtitle {
        margin: 0 0 6px;
        padding-left: 54px;
        position: relative;
        max-width: inherit;
    }

    .hero-subtitle:before {
        position: absolute;
        top: 50%;
        left: -10px;
        width: 37px;
        height: 1px;
        background-color: var(--color-primary);
        transform: translateY(-50%);
        content: '';
        pointer-events: none;
    }

    .hero-title {
        font-size: 3.375rem;
        letter-spacing: -0.094rem;
    }

    .hero-title-2 {
        text-align: right;
    }

    .hero-buttons {
        margin: 0 0 0 auto;
        display: flex;
        justify-content: flex-end;
        max-width: inherit;
    }

    .hero-buttons .button {
        margin-right: 10px;
        margin-bottom: 0;
        padding: 16px 20px;
        width: auto;
    }

    .hero-buttons .button:last-of-type {
        margin-right: 0;
    }
}

@media screen and (min-width: 1025px) {
    .hero-title {
        font-size: 4.666rem;
    }
}

@media screen and (min-width: 1441px) {
    .hero {
        padding-bottom: 247px;
        min-height: 1150px;
    }

    .hero-subtitle {
        margin-bottom: 8px;;
        padding-left: 68px;
        font-size: 1.228rem;
        letter-spacing: 0.147rem;
    }

    .hero-subtitle:before {
        width: 48px;
    }

    .hero-title {
        font-size: 5.951rem;
        letter-spacing: -0.119rem;
    }
}

.community-heading.vertical_slide.active{
    top: 322px;
}

.horizontal_slide{
    right: initial;
    left: 0;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0 !important;
    transition: transform 2s ease-in-out, opacity 2s ease-in-out;
}

.horizontal_slide.active{
    transform: translateX(0);
    opacity: 0.12 !important;
}

@media screen and (min-width:769px){
    .vertical_slide {
    top: -200px;
    opacity: 0 !important;
    transition: top 1s ease-in-out, opacity 1s ease-in-out;
    }

    .module-content-heading.vertical_slide{
        top: 0;
    }

    .vertical_slide.active,
    .module-content-heading.vertical_slide.active{
        top: 0;
        opacity: 0.12 !important;
    }

    .community-heading.vertical_slide{
        top: 0;
    }

    .community-heading.vertical_slide.active{
        top: -285px;
    }
}


@media screen and (min-width:1441px){
    .module-content-heading.vertical_slide {
		top: -200px;
	}
}