.team-cards-block {
    position: relative;
    z-index: 1;
    padding: 90px 0 96px;
    overflow: hidden;
}

.team-cards-block .container {
    max-width: 1280px;
}

.team-cards-block__eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #b08a52;
}

.team-cards-block__h2 {
    margin: 14px 0 44px;
    font-size: 44px;
    font-weight: 600;
    color: var(--ih-ink, #18140E);
    letter-spacing: -0.015em;
    line-height: 1.08;
}

.team-card {
    position: relative;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate; /* scope the amber overlay blend to the card layers */
    box-shadow: 0 24px 60px -38px rgba(24, 20, 8, 0.5);
    transition: box-shadow 0.6s ease, transform 0.6s cubic-bezier(.16, .84, .36, 1);
}

.team-card__img {
    position: absolute;
    inset: 0;
    background-position: center 18%;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
    filter: saturate(0.7) contrast(1.03) brightness(0.96) sepia(0.12);
    transition: transform 0.8s cubic-bezier(.16, .84, .36, 1), filter 0.7s cubic-bezier(.16, .84, .36, 1);
}

.team-card__grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 16, 6, 0.05) 0%, rgba(24, 16, 6, 0) 40%, rgba(24, 16, 6, 0.78) 100%);
}

/* warm amber glow over the photo — blooms IN on hover so the card "lights up"
   in the brand colour. opacity-only transition (compositor friendly). */
.team-card__tint {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(120% 90% at 50% 28%, rgba(235, 147, 21, 0.42) 0%, rgba(235, 147, 21, 0.10) 48%, rgba(235, 147, 21, 0) 72%);
    mix-blend-mode: overlay;
    transition: opacity 0.7s cubic-bezier(.16, .84, .36, 1);
    will-change: opacity;
}

.team-card__cap {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 18px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.team-card__name {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.team-card__post {
    color: var(--ih-accent-soft, #ffd9a0);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

.team-card__post.is-bold {
    font-weight: 700;
}

.team-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
}

.team-card__link {
    color: var(--ih-accent-soft, #ffd9a0);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.team-card__link:hover {
    color: #fff;
}

/* hover — card ignites in the brand amber: ring + warm glow + lift */
.team-card.is-hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 3px rgba(235, 147, 21, 0.55), 0 30px 70px -34px rgba(235, 147, 21, 0.5), 0 24px 60px -38px rgba(24, 20, 8, 0.5);
}

.team-card.is-hover .team-card__img {
    transform: scale(1.08);
    filter: saturate(1.05) contrast(1.02) brightness(1.02) sepia(0);
}

/* photo stays natural on hover — no amber wash over the image (owner request).
   The card still ignites via ring + lift + the photo's filter going to none. */
.team-card.is-hover .team-card__tint {
    opacity: 0;
}

/* reveal — hidden state applied inline by JS (never here): content stays
   visible if the script is deferred by LiteSpeed. */
.team-cards-block [data-reveal] {
    transition: opacity 0.9s cubic-bezier(.16, .84, .36, 1), transform 0.9s cubic-bezier(.16, .84, .36, 1);
}

.team-cards-block [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .team-cards-block {
        padding: 60px 0 64px;
    }

    .team-cards-block__h2 {
        font-size: 30px;
        margin-bottom: 32px;
    }

    .team-card {
        height: 420px;
    }
}

/* reduced-motion suppression removed: animations must always play (owner requirement) */
