/* ==========================
   FOUNDER MODAL
========================== */

.founder-modal {

    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
            opacity .35s ease,
            visibility .35s ease;

    z-index: 5000;
}

/* ---------- ACTIVE ---------- */

.founder-modal.active {

    opacity: 1;
    visibility: visible;
}

/* ---------- OVERLAY ---------- */

.founder-modal__overlay {

    position: absolute;
    inset: 0;

    background: rgba(0,0,0,.55);

    backdrop-filter: blur(6px);
}

/* ---------- WINDOW ---------- */

.founder-modal__window {

    position: relative;

    width: min(900px, 100%);
    max-height: 85vh;

    background: #f4f1eb;

    border-radius: 28px;

    padding: 50px 55px;

    overflow-y: auto;

    clip-path: inset(0 round 28px);

    box-shadow:
            0 30px 70px rgba(0,0,0,.22);

    transform: translateY(35px) scale(.96);

    transition:
            transform .4s cubic-bezier(.22,.61,.36,1);

    z-index: 2;
}

.founder-modal.active .founder-modal__window {

    transform: translateY(0) scale(1);
}

/* ---------- CLOSE ---------- */

.founder-modal__close {

    position: absolute;

    top: 22px;
    right: 22px;

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: #11872f;

    color: #fff;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    transition:
            background .25s ease,
            transform .25s ease;
}

.founder-modal__close:hover {

    background: #0d6d26;

    transform: rotate(90deg);
}

/* ---------- TITLE ---------- */

.founder-modal__title {

    font-family: "AV Fontimer-SemiBold", sans-serif;

    font-size: 46px;

    line-height: 1;

    color: #202020;

    margin-bottom: 35px;

    padding-right: 50px;
}

/* ---------- CONTENT ---------- */

.founder-modal__content p {

    font-family: "Manrope-Regular", sans-serif;

    font-size: 19px;

    line-height: 1.85;

    color: #303030;

    margin-bottom: 24px;
}

.founder-modal__content p:last-child {

    margin-bottom: 0;
}

/* ---------- SCROLL ---------- */

.founder-modal__window::-webkit-scrollbar {

    width: 4px;
}

.founder-modal__window::-webkit-scrollbar-thumb {

    background: #11872f;

    border-radius: 999px;
}

.founder-modal__window::-webkit-scrollbar-track {

    background: transparent;
}

/* ==========================
   TABLET
========================== */

@media (max-width: 768px) {

    .founder-modal {

        padding: 18px;
    }

    .founder-modal__window {

        padding: 36px 30px;

        border-radius: 22px;

        max-height: 90vh;
    }

    .founder-modal__title {

        font-size: 34px;

        margin-bottom: 24px;
    }

    .founder-modal__content p {

        font-size: 17px;

        line-height: 1.75;
    }

}

/* ==========================
   MOBILE
========================== */

@media (max-width: 480px) {

    .founder-modal {

        padding: 12px;
    }

    .founder-modal__window {

        padding: 26px 20px;

        border-radius: 18px;

        max-height: 92vh;
    }

    .founder-modal__close {

        width: 38px;
        height: 38px;

        font-size: 24px;

        top: 14px;
        right: 14px;
    }

    .founder-modal__title {

        font-size: 26px;

        margin-bottom: 18px;

        padding-right: 35px;
    }

    .founder-modal__content p {

        font-size: 15px;

        line-height: 1.7;

        margin-bottom: 18px;
    }

}