.home-hero {
    position: relative;
    padding-top: var(--navbarHeight);
    padding-bottom: 32px;
    overflow: hidden;
}

.home-hero .video-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.home-hero .video-bg::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.00) 28.18%), linear-gradient(0deg, rgba(21, 21, 21, 0.45) 0%, rgba(21, 21, 21, 0.45) 100%);
}

.home-hero {
    height: 100vh;
    min-height: 800px;
    max-height: 1200px;
}

.home-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.home-hero .container {
    position: relative;
    z-index: 4;
    height: 100%;
}

.home-hero .block-wordmark svg {
    width: 100%;
    height: auto;
}

.home-hero .block-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 30px;
}

.home-hero .hero-text-wrapper {
    display: flex;
    align-items: flex-end;
    margin-top: auto;
    justify-content: space-between;
}

.home-hero h1 {
    font-size: 88px;
    color: #fff;
}

.home-hero .hero-title {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 50%;
    margin-right: auto;
}

.home-hero .hero-title p {
    max-width: 414px;
    color: #fff;
    font-size: 17px;
}

.home-hero .hero-title p strong {
    font-weight: 700;
}

.home-hero .hero-signup {
    position: relative;
    width: 530px;
    height: 192px;
    border-radius: 8px 16px 16px 8px;
    overflow: hidden;
    flex-shrink: 0;
    transition: background 0.35s ease, height 0.35s ease;
}

.home-hero .hero-signup-default {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: stretch;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-hero .hero-signup .signup-image {
    flex: 0 0 164px;
    width: 164px;
    height: 192px;
}

.home-hero .hero-signup .signup-image img {
    display: block;
    width: 164px;
    height: 192px;
    object-fit: cover;
}

.home-hero .signup-content {
    flex: 1;
    min-width: 0;
    height: 192px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px 26px;
    /* opacity: 0.79; */
    background: linear-gradient(180deg, rgba(217, 217, 217, 0.10) 0%, rgba(115, 115, 115, 0.10) 100%);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    text-align: left;
    color: #fff;
    box-sizing: border-box;
}

.home-hero .signup-content h3 {
    color: #fff;
}

.home-hero .signup-text {
    font-size: 15px;
}

.home-hero .signup-content .btn-wrapper {
    margin-top: 12px;
    width: 100%;
}

.home-hero .signup-content .btn {
    width: 100%;
}

.home-hero .hero-signup-form {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.home-hero .hero-signup.is-form {
    height: auto;
    background: var(--primary);
}

.home-hero .hero-signup.is-form .hero-signup-default {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-24px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.home-hero .hero-signup.is-form .hero-signup-form {
    position: relative;
    inset: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-hero .hero-signup-form form {
    width: 100%;
}

.home-hero .hero-signup-form .form-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

/* email input + button form one joined unit */
.home-hero .hero-signup-form .field-email input[type="email"] {
    border-radius: 8px 8px 0 0;
}

.home-hero .hero-signup-form .submit-container {
    order: 2;
}

.home-hero .hero-signup-form .field-checkbox {
    order: 3;
    margin: 16px 0 0;
    display: flex;
    justify-content: center;
    text-align: center;
}

.home-hero .hero-signup-form .submit-container button[type="submit"] {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 0 8px 8px;
    background-color: #fff !important;
    color: var(--primary) !important;
}

.home-hero .hero-signup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    z-index: 2;
}

.home-hero .hero-signup-form-title {
    font-family: var(--font-accent);
    font-size: 18px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #C6D7D0;
}

.home-hero .hero-signup-form:has(.newsletter-success-message--visible) .hero-signup-form-title {
    display: none;
}

.home-hero .hero-title .btn-wrapper,
.home-hero .subtitle {
    display: none;
}

@media (max-width:991px) {

    .home-hero {
        height: auto;
    }

    .home-hero .hero-title .btn-wrapper {
        display: flex;
    }

    .home-hero .block-wordmark,
    .home-hero .block-description {
        display: none;
    }

    /* bottom sheet: slides in from the bottom of the screen, full-width */
    .home-hero .hero-signup {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        z-index: 10001;
        border-radius: 16px 16px 0 0;
        background: var(--primary);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.35s ease, visibility 0s linear 0.35s;
    }

    .home-hero .hero-signup.is-form {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.35s ease;
    }

    /* Safari iOS: overflow:hidden on hero clips position:fixed children while scrolling */
    .home-hero.has-signup-open {
        overflow: visible;
        z-index: 10001;
    }

    .home-hero.has-signup-open .video-bg {
        overflow: hidden;
    }

    .home-hero .hero-signup-default {
        display: none;
    }

    .home-hero .hero-signup-form {
        position: relative;
        inset: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 20px 24px 28px;
    }

    .home-hero h1 {
        font-size: 56px;
        text-align: center;
    }

    .home-hero .hero-title {
        margin: 0 auto;
        max-width: 100%;
        gap: 24px;
    }

    .home-hero .btn {
        text-align: center;
        justify-content: center;
    }

    .home-hero .subtitle {
        font-size: 17px;
        font-weight: 700;
        display: block;
        letter-spacing: 4%;
        text-transform: uppercase;
        font-family: var(--font-accent);
        text-align: center;
    }

    .home-hero .hero-text-wrapper {
        margin-bottom: auto;
    }

    .home-hero {
        height: 100vh
    }
}
