/* =========================================
   BERA SOFTWARE — MEET OUR FOUNDER
========================================= */

.bs-founder {
    --founder-dark: #111719;
    --founder-text: #20272b;
    --founder-muted: #687175;
    --founder-gold: #e5a900;
    --founder-yellow: #f6c329;
    --founder-cream: #fbf7ed;
    --founder-line: rgba(17, 23, 25, 0.11);

    position: relative;
    isolation: isolate;

    padding: 75px 0;

    overflow: hidden;

    background: #ffffff;
    color: var(--founder-text);
}


/* Main layout */

.bs-founder-container {
    width: min(calc(100% - 70px), 1320px);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(360px, 0.86fr)
        minmax(490px, 1.14fr);

    gap: clamp(60px, 8vw, 125px);
    align-items: center;
}


/* =========================================
   FOUNDER IMAGE
========================================= */

.bs-founder-visual {
    position: relative;

    max-width: 480px;
}

.bs-founder-image-frame {
    position: relative;

    height: 500px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    overflow: hidden;

    border-radius: 7px;

    background:
        linear-gradient(
            145deg,
            #fffdf7,
            var(--founder-cream)
        );

    box-shadow:
        0 30px 65px rgba(47, 40, 22, 0.1);
}


/* Golden background shape */

.bs-founder-image-shape {
    position: absolute;
    right: -90px;
    bottom: -120px;

    width: 370px;
    height: 370px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            var(--founder-yellow),
            #efad0a
        );

    opacity: 0.93;
}

.bs-founder-image-frame::before {
    content: "";

    position: absolute;
    top: 37px;
    left: 38px;

    width: 70px;
    height: 2px;

    background: var(--founder-gold);
}

.bs-founder-image-frame::after {
    content: "2019";

    position: absolute;
    top: 29px;
    left: 122px;

    color: #77776f;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
}


/* Founder portrait */

.bs-founder-image-frame img {
    position: relative;
    z-index: 2;

    display: block;

    width: 100%;
    height: 96%;

    object-fit: contain;
    object-position: center bottom;

    filter:
        drop-shadow(
            0 16px 18px
            rgba(22, 28, 39, 0.12)
        );

    transition: transform 0.6s cubic-bezier(.2, .75, .2, 1);
}

.bs-founder-image-frame:hover img {
    transform: scale(1.025);
}


/* Experience badge */

.bs-founder-experience {
    position: absolute;
    right: 19px;
    bottom: 19px;
    z-index: 4;

    min-width: 145px;
    padding: 15px 17px;

    display: flex;
    align-items: center;
    gap: 12px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 5px;

    background: rgba(17, 23, 25, 0.92);
    color: #ffffff;

    box-shadow:
        0 14px 30px rgba(17, 23, 25, 0.18);

    backdrop-filter: blur(8px);
}

.bs-founder-experience strong {
    color: var(--founder-yellow);

    font-size: 30px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.05em;
}

.bs-founder-experience span {
    padding-left: 12px;

    border-left: 1px solid rgba(255, 255, 255, 0.2);

    color: rgba(255, 255, 255, 0.72);

    font-size: 9px;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}


/* Name under photograph */

.bs-founder-name {
    margin-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.bs-founder-name strong {
    color: var(--founder-dark);

    font-size: 16px;
    font-weight: 650;
}

.bs-founder-name span {
    color: #777e80;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
}


/* =========================================
   FOUNDER CONTENT
========================================= */

.bs-founder-content {
    max-width: 680px;
}

.bs-founder-kicker {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 22px;

    color: #646965;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.19em;
}

.bs-founder-kicker span {
    width: 34px;
    height: 2px;

    background: var(--founder-gold);
}


/* Heading */

.bs-founder-content h2 {
    max-width: 650px;
    margin: 0;

    color: var(--founder-dark);

    font-size: clamp(48px, 4.8vw, 73px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.058em;
}

.bs-founder-content h2 em {
    display: block;

    color: var(--founder-gold);

    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.03;
}


/* Founder story */

.bs-founder-intro {
    max-width: 620px;
    margin: 27px 0 0;

    color: #3d464a;

    font-size: 17px;
    font-weight: 500;
    line-height: 1.68;
}

.bs-founder-story {
    max-width: 620px;
    margin: 13px 0 0;

    color: var(--founder-muted);

    font-size: 14px;
    line-height: 1.72;
}


/* Vision quote */

.bs-founder-content blockquote {
    position: relative;

    margin: 25px 0 0;
    padding: 18px 20px 18px 26px;

    border-left: 3px solid var(--founder-yellow);

    background:
        linear-gradient(
            90deg,
            var(--founder-cream),
            rgba(251, 247, 237, 0.3)
        );
}

.bs-founder-content blockquote > span {
    position: absolute;
    top: -8px;
    right: 18px;

    color: rgba(229, 169, 0, 0.17);

    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 1;
}

.bs-founder-content blockquote p {
    position: relative;
    z-index: 2;

    max-width: 575px;
    margin: 0;

    color: #4e5557;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
}


/* Bottom area */

.bs-founder-bottom {
    margin-top: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.bs-founder-signature {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bs-founder-signature small {
    color: #8a8e8c;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.bs-founder-signature strong {
    color: var(--founder-dark);

    font-size: 14px;
    font-weight: 650;
}


/* Link button */

.bs-founder-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;

    color: var(--founder-dark);

    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.bs-founder-link i {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--founder-yellow);
    color: var(--founder-dark);

    transition:
        transform 0.35s ease,
        background-color 0.35s ease;
}

.bs-founder-link svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bs-founder-link:hover i {
    transform: rotate(45deg);
    background: var(--founder-dark);
    color: #ffffff;
}

.bs-founder-link:focus-visible {
    outline: 2px solid var(--founder-dark);
    outline-offset: 5px;
}


/* =========================================
   ENTRY ANIMATION
========================================= */

.bs-founder.js-founder-ready
.bs-founder-visual,

.bs-founder.js-founder-ready
.bs-founder-content {
    opacity: 0;
    transform: translateY(25px);
}

.bs-founder.js-founder-ready
.is-visible {
    opacity: 1;
    transform: translateY(0);

    transition:
        opacity 0.75s ease,
        transform 0.8s cubic-bezier(.2, .75, .2, 1);
}

.bs-founder.js-founder-ready
.bs-founder-content.is-visible {
    transition-delay: 0.12s;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
    .bs-founder-container {
        grid-template-columns:
            minmax(320px, 0.85fr)
            minmax(420px, 1.15fr);

        gap: 50px;
    }

    .bs-founder-image-frame {
        height: 450px;
    }

    .bs-founder-content h2 {
        font-size: clamp(45px, 5vw, 61px);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .bs-founder {
        padding: 57px 0;
    }

    .bs-founder-container {
        width: calc(100% - 30px);

        grid-template-columns: 1fr;
        gap: 43px;
    }

    .bs-founder-visual {
        width: 100%;
        max-width: 520px;

        margin: 0 auto;
    }

    .bs-founder-image-frame {
        height: min(460px, 118vw);
    }

    .bs-founder-name {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .bs-founder-content h2 {
        font-size: clamp(43px, 12vw, 58px);
    }

    .bs-founder-intro {
        margin-top: 22px;

        font-size: 16px;
    }

    .bs-founder-story {
        font-size: 14px;
    }

    .bs-founder-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .bs-founder-link {
        width: 100%;
        min-height: 52px;

        padding-left: 18px;

        justify-content: space-between;

        border-radius: 100px;

        background: var(--founder-cream);
    }

    .bs-founder-link i {
        margin-right: 5px;
    }
}


/* Small mobile */

@media (max-width: 390px) {
    .bs-founder-container {
        width: calc(100% - 22px);
    }

    .bs-founder-experience {
        right: 12px;
        bottom: 12px;

        min-width: 132px;
    }

    .bs-founder-content h2 {
        font-size: 41px;
    }
}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .bs-founder.js-founder-ready
    .bs-founder-visual,

    .bs-founder.js-founder-ready
    .bs-founder-content {
        opacity: 1;
        transform: none;
    }

    .bs-founder-image-frame img,
    .bs-founder-link i {
        transition: none;
    }
}