.founder-note {
    --founder-note-bottom: 28px;
    --founder-note-gap: 24px;
    position: fixed;
    z-index: 98;
    inset-inline-end: max(var(--founder-note-gap), env(safe-area-inset-right));
    bottom: calc(var(--founder-note-bottom) + env(safe-area-inset-bottom));
    width: min(430px, calc(100% - 48px));
    max-height: calc(100vh - var(--founder-note-bottom) - env(safe-area-inset-bottom) - 12px);
    max-height: calc(100dvh - var(--founder-note-bottom) - env(safe-area-inset-bottom) - 12px);
    border: none;
    border-radius: 12px;
    background: #fbfaf8;
    color: #221d18;
    box-shadow:
        0 3px 8px rgb(34 29 24 / 8%),
        0 14px 30px -8px rgb(34 29 24 / 17%),
        0 36px 76px -18px rgb(34 29 24 / 24%);
    font-family: 'Bitum', Arial, sans-serif;
    animation: founder-note-enter .44s cubic-bezier(.2, .72, .24, 1) both;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .founder-note {
        background: linear-gradient(155deg, rgb(250 247 243 / 80%), rgb(251 250 248 / 96%) 69%);
        -webkit-backdrop-filter: blur(22px) saturate(115%);
        backdrop-filter: blur(22px) saturate(115%);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .founder-note {
        background: #fbfaf8;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

.founder-note.founder-note--preview {
    z-index: 115;
}

.founder-note[hidden] {
    display: none;
}

@keyframes founder-note-enter {
    from { opacity: 0; transform: translateX(var(--founder-note-gap)); }
    to { opacity: 1; transform: translateX(0); }
}

.founder-note__content {
    max-height: inherit;
    padding: 26px;
    border-radius: inherit;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.founder-note__close {
    position: absolute;
    z-index: 1;
    inset-block-start: 12px;
    inset-inline-end: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgb(251 250 248 / 60%);
    color: #221d18;
    cursor: pointer;
}

.founder-note__close:hover,
.founder-note__close:focus-visible {
    outline: none;
    background: #e6ddd3;
    color: #221d18;
}

.founder-note__title {
    margin: 0 0 16px;
    padding-inline-end: 32px;
    color: inherit;
    font: 400 clamp(24px, 4vw, 34px)/1.08 'Bitum', Arial, sans-serif;
    letter-spacing: -.035em;
}

.founder-note__figure {
    --founder-note-quote-offset: 37px;
    margin: 0;
    padding-inline-start: var(--founder-note-quote-offset);
}

.founder-note__quote,
.founder-note__quote p {
    margin: 0;
}

.founder-note__quote {
    position: relative;
    display: grid;
    gap: 9px;
    color: #514840;
    font: 300 15px/1.36 'Bitum', Arial, sans-serif;
}

.founder-note__quote-mark {
    position: absolute;
    inset-block-start: 2px;
    inset-inline-start: calc(-1 * var(--founder-note-quote-offset));
    width: 26px;
    height: auto;
    color: #221d18;
}

.founder-note__quote strong {
    color: #221d18;
    font-weight: 700;
}

.founder-note__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 17px;
    font: 400 16px/1.22 'Bitum', Arial, sans-serif;
}

.founder-note__author strong {
    font-weight: 400;
}

.founder-note__portrait {
    flex: 0 0 auto;
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    background: #ede8e3;
    object-fit: cover;
}

.founder-note__role {
    display: block;
    margin-top: 4px;
    color: #6b615c;
    font-size: 13px;
}

.founder-note__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 70px;
    margin-top: 18px;
    padding: 11px 14px;
    border: 1px solid #221d18;
    border-radius: 6px;
    background: #221d18;
    color: #fff;
    font: 400 16px/1.25 'Bitum', Arial, sans-serif;
    text-decoration: none;
    transition: background-color .4s ease, color .4s ease;
}

.founder-note__cta svg {
    flex: 0 0 22px;
}

.founder-note__cta:hover,
.founder-note__cta:focus-visible {
    outline: none;
    background: #ede8e3;
    color: #221d18;
}

.founder-note__announcement {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .founder-note {
        --founder-note-bottom: 12px;
        --founder-note-gap: 12px;
        inset-inline-end: max(var(--founder-note-gap), env(safe-area-inset-right));
        width: min(390px, calc(100% - 24px));
    }

    body:has(.mobile-actions:not([hidden])) .founder-note {
        --founder-note-bottom: 76px;
    }

    .founder-note__content {
        display: grid;
        grid-template-rows: minmax(0, max-content) minmax(0, 1fr) auto;
        padding: 26px;
        overflow: hidden;
    }

    .founder-note__figure {
        --founder-note-quote-offset: 29px;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .founder-note__quote-mark {
        width: 20px;
    }

    .founder-note__close {
        inset-block-start: 7px;
        inset-inline-end: 7px;
    }

    .founder-note__title {
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .founder-note {
        animation: none;
    }

    .founder-note__cta {
        transition: none;
    }
}
