/* =========================================================
   HOME TEAM PROFILE
========================================================= */

section[data-module="home-team-profile"] {
    --teamprofile-blue: #1677ff;
    --teamprofile-blue-dark: #075cbd;
    --teamprofile-blue-soft: #e9f3ff;
    --teamprofile-dark: #10233f;
    --teamprofile-text: #586b84;
    --teamprofile-line: #d9e5f1;
    position: relative;
    width: 100%;
    margin: 0;
    padding: clamp(54px, 5.5vw, 84px) 0;
    overflow: hidden;
    border-top: 1px solid #d9e5f1;
    border-bottom: 1px solid #d9e5f1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 50%, #ffffff 100%);
    color: var(--teamprofile-dark);
}

section[data-module="home-team-profile"] *,
section[data-module="home-team-profile"] *::before,
section[data-module="home-team-profile"] *::after {
    box-sizing: border-box;
}


/* =========================================================
   BACKGROUND
========================================================= */

section[data-module="home-team-profile"] .teamprofile-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

section[data-module="home-team-profile"] .teamprofile-background::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(27, 96, 169, .027) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 96, 169, .027) 1px, transparent 1px);
    background-size: 32px 32px;
    content: '';
    mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}

section[data-module="home-team-profile"] .teamprofile-glow {
    position: absolute;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    filter: blur(18px);
}

section[data-module="home-team-profile"] .teamprofile-glow-left {
    top: -290px;
    left: -230px;
    background: radial-gradient(circle, rgba(22, 119, 255, .14), transparent 68%);
}

section[data-module="home-team-profile"] .teamprofile-glow-right {
    right: -220px;
    bottom: -300px;
    background: radial-gradient(circle, rgba(30, 195, 156, .1), transparent 68%);
}


/* =========================================================
   WRAPPER
========================================================= */

section[data-module="home-team-profile"] .teamprofile-wrapper {
    position: relative;
    z-index: 1;
    width: min(1040px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

section[data-module="home-team-profile"] .teamprofile-heading {
    width: min(790px, 100%);
    margin: 0 auto clamp(30px, 3.4vw, 46px);
    text-align: center;
}

section[data-module="home-team-profile"] .teamprofile-heading h2 {
    margin: 0;
    color: var(--teamprofile-dark);
    font-family: inherit;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -.035em;
}

section[data-module="home-team-profile"] .teamprofile-description {
    margin: 14px auto 0;
    color: var(--teamprofile-text);
    font-size: 16px;
    line-height: 1.72;
}

section[data-module="home-team-profile"] .teamprofile-description p,
section[data-module="home-team-profile"] .teamprofile-biography p {
    margin: 0;
}


/* =========================================================
   PROFILE CARD
========================================================= */

section[data-module="home-team-profile"] .teamprofile-card {
    position: relative;
    display: flex;
    min-height: 325px;
    flex-direction: column;
    align-items: center;
    padding: 38px clamp(28px, 5vw, 68px) 34px;
    overflow: hidden;
    border: 1px solid var(--teamprofile-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 50px rgba(31, 70, 111, .09);
    text-align: center;
}

section[data-module="home-team-profile"] .teamprofile-card::before {
    position: absolute;
    top: -150px;
    left: 50%;
    width: 430px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 119, 255, .12), transparent 70%);
    content: '';
    pointer-events: none;
    transform: translateX(-50%);
}

section[data-module="home-team-profile"] .teamprofile-card-accent {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teamprofile-blue), #44c8b4);
}


/* =========================================================
   PROFILE PHOTO
========================================================= */

section[data-module="home-team-profile"] .teamprofile-photo-frame {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #bdd7f1;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(22, 119, 255, .15);
}

section[data-module="home-team-profile"] .teamprofile-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}


/* =========================================================
   PROFILE CONTENT
========================================================= */

section[data-module="home-team-profile"] .teamprofile-card-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

section[data-module="home-team-profile"] .teamprofile-card-content h3 {
    margin: 17px 0 0;
    color: var(--teamprofile-dark);
    font-family: inherit;
    font-size: 22px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.015em;
}

section[data-module="home-team-profile"] .teamprofile-position {
    margin-top: 5px;
    color: var(--teamprofile-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

section[data-module="home-team-profile"] .teamprofile-biography {
    width: min(780px, 100%);
    margin: 17px auto 0;
    color: var(--teamprofile-text);
    font-size: 15px;
    line-height: 1.72;
}

section[data-module="home-team-profile"] .teamprofile-biography ul,
section[data-module="home-team-profile"] .teamprofile-biography ol {
    display: inline-block;
    margin: 10px auto 0;
    padding-left: 20px;
    text-align: left;
}


/* =========================================================
   LINKEDIN BUTTON
========================================================= */

section[data-module="home-team-profile"] .teamprofile-action {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

section[data-module="home-team-profile"] .teamprofile-action a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 7px 9px 7px 14px;
    border: 1px solid #bcd4ed;
    border-radius: 10px;
    background: #ffffff;
    color: var(--teamprofile-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color .24s ease, background-color .24s ease, color .24s ease, box-shadow .24s ease, transform .24s ease;
}

section[data-module="home-team-profile"] .teamprofile-action a:hover,
section[data-module="home-team-profile"] .teamprofile-action a:focus-visible {
    border-color: var(--teamprofile-blue);
    background: var(--teamprofile-blue);
    box-shadow: 0 12px 28px rgba(22, 119, 255, .2);
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

section[data-module="home-team-profile"] .teamprofile-linkedin-icon,
section[data-module="home-team-profile"] .teamprofile-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

section[data-module="home-team-profile"] .teamprofile-linkedin-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--teamprofile-blue-soft);
    color: var(--teamprofile-blue-dark);
    transition: background-color .24s ease, color .24s ease;
}

section[data-module="home-team-profile"] .teamprofile-action a:hover .teamprofile-linkedin-icon,
section[data-module="home-team-profile"] .teamprofile-action a:focus-visible .teamprofile-linkedin-icon {
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
}

section[data-module="home-team-profile"] .teamprofile-linkedin-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

section[data-module="home-team-profile"] .teamprofile-arrow {
    width: 28px;
    height: 28px;
}

section[data-module="home-team-profile"] .teamprofile-arrow svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform .24s ease;
}

section[data-module="home-team-profile"] .teamprofile-action a:hover .teamprofile-arrow svg,
section[data-module="home-team-profile"] .teamprofile-action a:focus-visible .teamprofile-arrow svg {
    transform: translateX(2px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    section[data-module="home-team-profile"] {
        padding: 42px 0 38px;
    }

    section[data-module="home-team-profile"] .teamprofile-wrapper {
        width: calc(100% - 36px);
    }

    section[data-module="home-team-profile"] .teamprofile-heading {
        margin-bottom: 25px;
        text-align: left;
    }

    section[data-module="home-team-profile"] .teamprofile-description {
        margin-top: 11px;
    }

    section[data-module="home-team-profile"] .teamprofile-card {
        min-height: 0;
        align-items: flex-start;
        padding: 28px 22px 24px;
        border-radius: 19px;
        text-align: left;
    }

    section[data-module="home-team-profile"] .teamprofile-card::before {
        left: 45px;
        transform: none;
    }

    section[data-module="home-team-profile"] .teamprofile-photo-frame {
        width: 86px;
        height: 86px;
        flex-basis: 86px;
    }

    section[data-module="home-team-profile"] .teamprofile-card-content h3 {
        margin-top: 15px;
        font-size: 20px;
    }

    section[data-module="home-team-profile"] .teamprofile-biography {
        margin-top: 14px;
    }

    section[data-module="home-team-profile"] .teamprofile-action {
        justify-content: flex-start;
        margin-top: 19px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    section[data-module="home-team-profile"] .teamprofile-action a,
    section[data-module="home-team-profile"] .teamprofile-linkedin-icon,
    section[data-module="home-team-profile"] .teamprofile-arrow svg {
        transition: none;
    }
}
