.at-perSpotlight {
    container: at-perSpotlight / inline-size;
}

.at-perSpotlight__header {
    flex-direction: column;
    max-width: 50rem;
    padding-inline: 20px;
    border-radius: var(--radius-m);
    background: var(--cloudy);
    box-shadow: 0 0 0 2px var(--darker-50);
}

.at-perSpotlight__headerText {
    flex: 1;
    padding-block: 2rem;
}

.at-perSpotlight__title,
.at-perSpotlight__subTitle {
    margin-bottom: .5rem;
}

.at-perSpotlight__title,
.at-perSpotlight__quote {
    font: var(--font-bold) var(--size-medium)/1.3 var(--fam-headings);
}

.at-perSpotlight__quote {
    font-style: italic
}

.at-perSpotlight__picture {
    position: relative;
    flex: 0 0 min(220px, 30vw);
    max-width: min(220px, 30vw);
}

.at-perSpotlight__squircle,
.at-perSpotlight__picture--image {
    position: absolute;
    inset: 0;
    aspect-ratio: 1;
    translate: 20px -5px;
}

.at-perSpotlight__squircle {
    rotate: -15deg;
}

.at-perSpotlight__picture {
    width: 100%;
}

.at-perSpotlight__picture--image {
    width: 100%;
    background-color: var(--white);
    -webkit-mask-image: url(/ui/procurios-2019/img/squircle.svg);
    mask-image: url(/ui/procurios-2019/img/squircle.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 100%;
}

.at-perSpotlight__contactDetails {
    gap: .5em;
}

.at-perSpotlight__name {
    flex: 0 100%
}

.at-perSpotlight__contactDetails a {
    color: inherit;
    text-decoration: none;
}

.at-perSpotlight__link {
    position: relative;
    display: inline-block;
    width: 2.5em;
    aspect-ratio: 1;
    line-height: 2.5em;
    text-align: center;
    border-radius: var(--radius-l);
    background: #fff;
}

.at-perSpotlight__link::before {
    margin: 0;
}

.at-perSpotlight__link:first-of-type:after {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 9999px;
    border: 2px solid #fff;
    opacity: 0;
    pointer-events: none;
    animation: sonarWave 1.5s linear infinite;
}

@keyframes sonarWave {
    0% {
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.at-perSpotlight__action {
    position: absolute;
    inset: 0;
    min-width: 100%;/** prevent from flickering */
    border: 0;
    border-radius: var(--radius-l) !important;
    overflow: hidden;
    text-indent: -35em;
    background: none;
}

.at-perSpotlight__link.icon-phone .at-perSpotlight__action:hover,
.at-perSpotlight__link.icon-mail .at-perSpotlight__action:hover {
    text-indent: 0;
    right: unset;
    white-space: nowrap;
    z-index: +5;
    background: #fff;
    padding-inline: 1em;
    display: block;
    transition: text-indent .3s ease-in-out;
}

@container at-perSpotlight (min-width:600px) {
    .at-perSpotlight__header {
        flex-direction: row;
    }

    .at-perSpotlight__squircle,
    .at-perSpotlight__picture--image {
        translate: calc(-1 * min(3rem, 2vw)) -1rem;
    }
}