.stf-card {
    width: 100%;
    max-width: 100%;
    height: 420px;
    perspective: 1400px;
    position: relative;
    border-radius: 20px;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.stf-card:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.stf-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition-property: transform;
    transition-duration: .65s;
    transition-timing-function: cubic-bezier(.2,.75,.25,1);
    will-change: transform;
    box-sizing: border-box;
}


.stf-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    box-sizing: border-box;
}

.stf-front {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
}

.stf-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%);
    z-index: 0;
    pointer-events: none;
}

.stf-front-content {
    position: relative;
    width: 100%;
    z-index: 1;
    padding: 28px;
}

.stf-name {
    margin: 0 0 5px;
    color: #fff;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.05;
    font-weight: 700;
}

.stf-role {
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
    opacity: .9;
}

.stf-back {
    background: #0b2f4f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stf-flip-horizontal .stf-back {
    transform: rotateY(180deg);
}

.stf-flip-vertical .stf-back {
    transform: rotateX(180deg);
}

@media (hover:hover) and (pointer:fine) {
    .stf-flip-horizontal:hover .stf-card-inner,
    .stf-flip-horizontal:focus-within .stf-card-inner {
        transform: rotateY(180deg);
    }

    .stf-flip-vertical:hover .stf-card-inner,
    .stf-flip-vertical:focus-within .stf-card-inner {
        transform: rotateX(180deg);
    }
}

.stf-flip-horizontal.is-flipped .stf-card-inner {
    transform: rotateY(180deg);
}

.stf-flip-vertical.is-flipped .stf-card-inner {
    transform: rotateX(180deg);
}

.stf-back-content {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    min-width: 0;
    padding: 34px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: center;
    scrollbar-width: thin;
    overflow-wrap: anywhere;
    word-break: normal;
}

.stf-back-name {
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 16px;
}

.stf-description,
.stf-description p,
.stf-description li {
    font-size: inherit;
    line-height: 1.6;
}

.stf-description p:first-child { margin-top: 0; }
.stf-description p:last-child { margin-bottom: 0; }

.stf-description ul,
.stf-description ol {
    margin-bottom: 0;
}

.stf-description a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stf-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: inherit;
    gap: 10px;
    margin-top: 22px;
}

.stf-back-content.stf-align-left .stf-socials { justify-content: flex-start; }
.stf-back-content.stf-align-center .stf-socials { justify-content: center; }
.stf-back-content.stf-align-right .stf-socials { justify-content: flex-end; }

.stf-social-link {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: rgba(255,255,255,.12);
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.stf-social-link:hover,
.stf-social-link:focus-visible {
    transform: translateY(-3px);
    color: #0b2f4f;
    background: #fff;
    border-color: rgba(255,255,255,.8);
    outline: none;
}

.stf-social-link i,
.stf-social-link svg {
    display: block;
}

.stf-flip-hint {
    position: absolute;
    top: 16px;
    right: 16px;
    min-height: 42px;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255,255,255,.92);
    color: #111;
    border: 1px solid rgba(255,255,255,.45);
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2;
    transition: transform .25s ease, box-shadow .25s ease;
    pointer-events: none;
}

.stf-flip-hint-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.07);
    flex: 0 0 auto;
}

.stf-flip-hint-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    transform-origin: center;
    transition: transform .35s cubic-bezier(.2,.75,.25,1);
}

.stf-flip-hint-label {
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.stf-card:hover .stf-flip-hint {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.stf-card:hover .stf-flip-hint-icon svg {
    transform: rotate(-65deg);
}

.stf-flip-hint-back {
    left: 16px;
    right: auto;
}

.stf-flip-hint-back .stf-flip-hint-icon svg {
    transform: rotate(65deg);
}

.stf-flip-hint-back:hover .stf-flip-hint-icon svg,
.stf-card:hover .stf-flip-hint-back .stf-flip-hint-icon svg {
    transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .stf-card-inner,
    .stf-flip-hint,
    .stf-flip-hint-icon svg,
    .stf-social-link {
        transition-duration: .01ms !important;
    }
}

@media (max-width: 767px) {
    .stf-card {
        height: 380px;
    }

    .stf-front-content {
        padding: 24px;
    }

    .stf-back-content {
        padding: 28px;
    }

    .stf-flip-hint {
        top: 12px;
        right: 12px;
        min-height: 38px;
        padding-right: 10px;
    }

    .stf-flip-hint-back {
        left: 12px;
        right: auto;
    }

    .stf-flip-hint-icon {
        width: 28px;
        height: 28px;
    }

    .stf-flip-hint-icon svg {
        width: 16px;
        height: 16px;
    }

    .stf-flip-hint-label {
        font-size: 10px;
    }
}
