.team-section {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 40vh;
    display: flex;
    align-items: stretch;
}

.team {
    position: relative;
    z-index: 1;
    justify-content: space-around;
    row-gap: 0;
    width: 100%;
}

.team__content .team__contact {
    border: none;
    box-shadow: 0 0 0 0 transparent;
    transition: box-shadow 1s ease;
}

.team__content .team__contact.is-glowing {
    box-shadow: 0 0 16px 2px var(--theme-color-violet);
}

.team__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.team__quote {
    margin: 0;
    max-width: 34ch;
}

.team__quote p {
    position: relative;
    font-family: var(--font-body);
    font-style: italic;
    font-size: var(--text-lead);
    line-height: 1.6;
    color: var(--color-text);
    text-align: center;
}

.team__quote p::before {
    content: "\201C";
    display: block;
    font-family: var(--font-title);
    font-style: normal;
    font-size: 4rem;
    line-height: 1;
    color: var(--color-muted-warm);
}

.team__media {
    order: -1;
}

.team__media img {
    transform: scale(0.85);
    -webkit-mask-image: url("../../images/maskanowa2.png");
    mask-image: url("../../images/maskanowa2.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

main {
    position: relative;
}

.team-connector {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
    color: var(--theme-color-violet);
}

.team-connector__path {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.services-connector {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 2;
    color: red;
}

.services-connector__path {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

@media (min-width: 48rem) {
    .team {
        flex-direction: row;
        justify-content: space-between;
    }

    .team__content,
    .team__media {
        flex: 1;
        order: 0;
    }

    .team__media img {
        transform-origin: left;
    }
}
