.team-hover-reveal {
    --lime: #C6FF33;
    --violet: #7D53EB;
    --white: #ffffff;
    --text-dark: #111827;
    --text-gray: #000000;
    --font-heading: "Montserrat", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-reveal: cubic-bezier(0.2, 0.8, 0.2, 1);

    position: relative;
    min-height: 0;
    padding: 72px 5vw 56px;
    overflow: hidden;
    isolation: isolate;
    background: #ffffff;
    font-family: var(--font-body);
}

.team-hover-reveal,
.team-hover-reveal * {
    box-sizing: border-box;
}

.team-hover-reveal a {
    color: inherit;
    text-decoration: none;
}

.team-hover-reveal h1,
.team-hover-reveal h2,
.team-hover-reveal h3,
.team-hover-reveal h4,
.team-hover-reveal h5,
.team-hover-reveal h6,
.team-hover-reveal p {
    margin: 0;
}

.team-hover-reveal h1,
.team-hover-reveal h2,
.team-hover-reveal h3,
.team-hover-reveal h4,
.team-hover-reveal h5,
.team-hover-reveal h6 {
    font-family: var(--font-heading);
}

.team-hover-reveal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: #ffffff;
}

.team-hover-reveal .team-glow {
    display: none;
}

.team-hover-reveal .team-shell {
    position: relative;
    z-index: 2;
    width:min(var(--tc-shell-max), 1380px, 100%);
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.68fr 1.32fr;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
}

.team-hover-reveal .team-copy {
    max-width: 520px;
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
    transition:
        opacity 0.45s ease,
        transform 0.75s var(--ease-reveal),
        filter 0.45s ease;
    will-change: opacity, transform, filter;
}

.team-hover-reveal.is-expanded .team-copy {
    opacity: 0;
    transform: translateX(-70px);
    filter: blur(10px);
    pointer-events: none;
}

.team-hover-reveal .team-copy h2 {
    margin: 0 0 24px;
    font-size:clamp(37px, 2.617vw, 67px);
    line-height: 0.9;
    letter-spacing: -0.065em;
    font-weight: 900;
    text-transform: uppercase;
    color: #111827;
}

.team-hover-reveal .team-copy h2 span {
    display: block;
    color: var(--violet);
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.team-hover-reveal .team-copy p {
    max-width: 500px;
    margin-bottom: 32px;
    color: #000000;
    font-size: 18px;
    line-height: 1.75;
}

.team-hover-reveal .team-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.team-hover-reveal .team-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--lime);
    color: #050507;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 34px rgba(198, 255, 51, 0.26);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.team-hover-reveal .team-btn-primary:hover {
    transform: translateY(-2px);
    background: #d7ff5b;
    box-shadow: 0 20px 42px rgba(198, 255, 51, 0.34);
}

.team-hover-reveal .team-btn-primary i {
    color: #050507;
}

.team-hover-reveal .team-stage {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 0;
}

.team-hover-reveal.is-expanded .team-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 650px;
    justify-content: center;
    z-index: 20;
}

.team-hover-reveal .team-card {
    position: relative;
    width: clamp(260px, 42%, 340px);
    height: 610px;
    flex: 0 1 340px;
    overflow: visible;
    cursor: pointer;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition:
        width 0.9s var(--ease-reveal),
        flex-basis 0.9s var(--ease-reveal),
        opacity 0.38s ease,
        transform 0.65s var(--ease-reveal),
        filter 0.38s ease;
    will-change: width, flex-basis, opacity, transform, filter;
}

.team-hover-reveal .team-card-trigger {
    position: absolute;
    inset: 0;
    z-index: 20;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.team-hover-reveal .team-card-trigger:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 4px;
    border-radius: 28px;
}

.team-hover-reveal .team-card:hover {
    transform: translateY(-10px);
}

.team-hover-reveal.is-expanded .team-card:not(.is-active) {
    display: none;
}

.team-hover-reveal.is-expanded .team-card.is-active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    width:min(var(--tc-shell-max), 1300px, 100%);
    flex: 0 0 min(1300px, 100%);
    height: 650px;
    transform: scale(1);
    filter: none;
}

.team-hover-reveal .profile-reveal-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(1300px, var(--tc-shell-max));
    height: 650px;
    gap: 0;
    position: relative;
    z-index: 2;
    transition: gap 0.95s var(--ease-reveal);
}

.team-hover-reveal.is-expanded .team-card.is-active .profile-reveal-card {
    gap:clamp(43.2px, 2.344vw, 60px);
}

.team-hover-reveal .pr-video-wrap {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    transition:
        width 0.95s var(--ease-reveal),
        transform 0.95s var(--ease-reveal),
        border-radius 0.95s var(--ease-reveal),
        filter 0.35s ease;
    will-change: width, transform, border-radius;
    box-shadow: none;
}

.team-hover-reveal.is-expanded .team-card.is-active .pr-video-wrap {
    width: 420px;
    transform: scale(0.95);
    border-radius: 32px;
    overflow: hidden;
}

.team-hover-reveal .pr-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.05) saturate(1.04);
    display: block;
    transform: scale(1.035);
    border-radius: inherit;
    transition:
        transform 0.95s var(--ease-reveal),
        filter 0.35s ease;
    will-change: transform;
}

.team-hover-reveal .team-card:hover .pr-video-wrap video {
    transform: scale(1.09);
    filter: contrast(1.08) saturate(1.12);
}

.team-hover-reveal.is-expanded .team-card.is-active .pr-video-wrap video {
    transform: scale(1.08);
    border-radius: 32px;
}

.team-hover-reveal .video-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.14) 42%, rgba(0,0,0,0.62) 100%),
        radial-gradient(circle at 50% 20%, rgba(198,255,51,0.08), transparent 35%);
    pointer-events: none;
}

.team-hover-reveal .video-glass-ui {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 20px;
    z-index: 3;
    min-height: 64px;
    padding: 13px 16px;
    border-radius: 15px;
    text-align: left;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(198, 255, 51, 0.55);
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
    transition:
        left 0.75s var(--ease-reveal),
        right 0.75s var(--ease-reveal),
        bottom 0.75s var(--ease-reveal),
        transform 0.75s var(--ease-reveal);
}

.team-hover-reveal.is-expanded .team-card.is-active .video-glass-ui {
    left: 50%;
    right: auto;
    bottom: 40px;
    min-width: 300px;
    transform: translateX(-50%);
    text-align: center;
    padding: 12px 28px;
    border-radius: 12px;
}

.team-hover-reveal .video-glass-ui h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    color: #050507;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    line-height: 1.1;
}

.team-hover-reveal.is-expanded .team-card.is-active .video-glass-ui h3 {
    justify-content: center;
    font-size: 16px;
}

.team-hover-reveal .video-glass-ui p {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 800;
    color: #4a7a00;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin: 0;
}

.team-hover-reveal .card-arrow {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #050507;
    color: var(--lime);
    font-size: 13px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease,
        opacity 0.35s ease;
}

.team-hover-reveal .team-card:hover .card-arrow {
    transform: translateX(4px) rotate(-18deg);
    background: var(--lime);
    color: #050507;
}

.team-hover-reveal.is-expanded .team-card.is-active .card-arrow {
    opacity: 0;
    transform: translateX(10px);
}

.team-hover-reveal .pr-text-wrap {
    width: 0;
    opacity: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition:
        width 0.95s var(--ease-reveal),
        opacity 0.45s ease 0.12s,
        transform 0.75s var(--ease-reveal);
    transform: translateX(34px);
    will-change: width, opacity, transform;
}

.team-hover-reveal.is-expanded .team-card.is-active .pr-text-wrap {
    width: 650px;
    opacity: 1;
    transform: translateX(0);
}

.team-hover-reveal .pr-text-inner {
    width: 650px;
    padding: 0 10px;
}

.team-hover-reveal .story-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    color: var(--violet);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    position: relative;
    padding-left: 0;
}

.team-hover-reveal .story-title {
    font-family: var(--font-heading);
    font-size:clamp(3rem, 2.812vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: #111827;
    margin-bottom: 35px;
    letter-spacing: -0.03em;
}

.team-hover-reveal .story-title .outline-lime {
    color: var(--violet);
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.team-hover-reveal .story-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 20px;
    width: 100%;
}

.team-hover-reveal .story-desc.first-para::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size:clamp(3.75rem, 3.125vw, 5rem);
    line-height: 0.75;
    padding-top: 8px;
    padding-right: 14px;
    padding-left: 2px;
    color: var(--lime);
    -webkit-text-stroke: 1.5px #111827;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.08);
    font-weight: 900;
}

.team-hover-reveal .story-desc strong {
    color: #111827;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.team-hover-reveal .story-desc strong::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: 3px;
    height: 40%;
    background-color: var(--lime);
    opacity: 0.5;
    z-index: -1;
    border-radius: 2px;
}

@keyframes teamGlow {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.08);
        opacity: 0.62;
    }
}

.team-mobile-modal {
    --nikolay-video-y: 25%;
    display: none;
}

@media (max-width: 900px) {
    .team-hover-reveal {
        padding: 72px 0 64px;
    }

    .team-hover-reveal .team-shell {
        display: block;
    }

    .team-hover-reveal.is-expanded .team-copy {
        opacity: 1;
        transform: none;
        filter: none;
        pointer-events: auto;
    }

    .team-hover-reveal .team-copy {
        margin-bottom: 34px;
        padding: 0 18px;
    }

    .team-hover-reveal .team-copy h2 {
        font-size: 34px;
    }

    .team-hover-reveal .team-copy h2 span {
        -webkit-text-stroke: 0;
    }

    .team-hover-reveal .team-copy p {
        font-size: 17px;
    }

    .team-hover-reveal .team-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-hover-reveal .team-stage,
    .team-hover-reveal.is-expanded .team-stage {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 16px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 18px;
        padding: 0 18px 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .team-hover-reveal .team-stage::-webkit-scrollbar {
        display: none;
    }

    .team-hover-reveal .team-card,
    .team-hover-reveal.is-expanded .team-card,
    .team-hover-reveal.is-expanded .team-card:not(.is-active),
    .team-hover-reveal .team-card.is-active,
    .team-hover-reveal.is-expanded .team-card.is-active {
        display: block;
        width: 86%;
        flex: 0 0 86%;
        height: 430px;
        opacity: 1;
        visibility: visible;
        filter: none;
        transform: none;
        pointer-events: auto;
        scroll-snap-align: center;
    }

    .team-hover-reveal .profile-reveal-card,
    .team-hover-reveal.is-expanded .team-card.is-active .profile-reveal-card {
        position: relative;
        display: block;
        width: 100%;
        height: 430px;
        max-width: none;
        margin: 0;
        overflow: hidden;
        border-radius: 28px;
    }

    .team-hover-reveal .pr-video-wrap,
    .team-hover-reveal.is-expanded .team-card.is-active .pr-video-wrap {
        position: relative;
        inset: auto;
        width: 100%;
        height: 430px;
        transform: none;
        border-radius: 28px;
        overflow: hidden;
        filter: none;
    }

    .team-hover-reveal .pr-video-wrap video,
    .team-hover-reveal.is-expanded .team-card.is-active .pr-video-wrap video {
        border-radius: 28px;
    }

    .team-hover-reveal .pr-text-wrap,
    .team-hover-reveal .team-card.is-active .pr-text-wrap,
    .team-hover-reveal.is-expanded .team-card.is-active .pr-text-wrap {
        display: none !important;
    }

    .team-hover-reveal .video-glass-ui,
    .team-hover-reveal.is-expanded .team-card.is-active .video-glass-ui {
        left: 18px;
        right: 18px;
        bottom: 20px;
        width: auto;
        min-width: 0;
        transform: none;
        text-align: left;
        opacity: 1;
        pointer-events: auto;
    }

    .team-hover-reveal .video-glass-ui h3,
    .team-hover-reveal.is-expanded .team-card.is-active .video-glass-ui h3 {
        justify-content: space-between;
        font-size: 14px;
    }

    .team-hover-reveal .card-arrow {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 600px) {
    .team-hover-reveal {
        padding: 64px 0 56px;
    }

    .team-hover-reveal .team-card,
    .team-hover-reveal.is-expanded .team-card,
    .team-hover-reveal.is-expanded .team-card:not(.is-active),
    .team-hover-reveal .team-card.is-active,
    .team-hover-reveal.is-expanded .team-card.is-active {
        width: 90%;
        flex-basis: 90%;
        height: 400px;
    }

    .team-hover-reveal .profile-reveal-card,
    .team-hover-reveal.is-expanded .team-card.is-active .profile-reveal-card,
    .team-hover-reveal .pr-video-wrap,
    .team-hover-reveal.is-expanded .team-card.is-active .pr-video-wrap {
        height: 400px;
    }
}

@media (max-width: 900px) {
    .team-hover-reveal {
        overflow: visible;
    }

    .team-mobile-modal {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483000;
        width: 100vw !important;
        height: 100dvh !important;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding: 12px;
        margin: 0;
        background: rgba(5, 5, 7, 0.78);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .team-mobile-modal.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .team-mobile-modal-panel {
        position: relative;
        width: min(100%, 620px);
        max-width: 620px;
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
        overflow: hidden;
        display: grid;
        grid-template-rows: clamp(190px, 28dvh, 230px) minmax(0, 1fr);
        border-radius: 28px;
        background: #ffffff;
        isolation: isolate;
        transform: translateY(40px);
        transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    }

    .team-mobile-modal.is-open .team-mobile-modal-panel {
        transform: translateY(0);
    }

    .team-mobile-modal-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 6;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #C6FF33;
        color: #050507;
        font-size: 18px;
        cursor: pointer;
    }

    .team-mobile-modal-media {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
        border-radius: 28px 28px 0 0;
        background: #111827;
    }

    .team-mobile-modal-media video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        border-radius: 28px 28px 0 0;
    }

    .team-mobile-modal.is-nikolay .team-mobile-modal-media video {
        object-position: 50% var(--nikolay-video-y);
    }

    .team-mobile-modal-media::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.02) 0%,
            rgba(0, 0, 0, 0.58) 100%
        );
        pointer-events: none;
    }

    .team-mobile-modal-eyebrow {
        position: absolute;
        left: 20px;
        right: 72px;
        bottom: 78px;
        z-index: 3;
        color: #ffffff;
        font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
    }

    .team-mobile-modal-person {
        position: absolute;
        left: 20px;
        right: 72px;
        bottom: 18px;
        z-index: 3;
        color: #ffffff;
    }

    .team-mobile-modal-person strong {
        display: block;
        margin-bottom: 5px;
        font-family: "Montserrat", sans-serif;
        font-size: 1.12rem;
        line-height: 1.15;
        font-weight: 900;
    }

    .team-mobile-modal-person span {
        color: #C6FF33;
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
        letter-spacing: 0.1em;
    }

    .team-mobile-modal-content {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 18px 20px 28px;
        color: #000000;
        background: #ffffff;
        display: block;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        transform: none;
        transform-origin: initial;
    }

    .team-mobile-modal-content::-webkit-scrollbar {
        display: none;
    }

    .team-mobile-modal-content .pr-text-inner {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .team-mobile-modal-content .story-eyebrow {
        display: none;
    }

    .team-mobile-modal-content .story-title {
        margin: 0 0 16px;
        color: #111827;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(1.4rem, 6vw, 1.72rem);
        font-weight: 900;
        line-height: 1.02;
        letter-spacing: -0.035em;
    }

    .team-mobile-modal-content .story-title .outline-lime {
        color: #7D53EB;
        -webkit-text-stroke: 0;
        text-shadow: none;
    }

    .team-mobile-modal-content .story-desc {
        width: 100%;
        margin: 0 0 14px;
        color: #111827;
        font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 0.94rem;
        font-weight: 400;
        line-height: 1.56;
        letter-spacing: -0.005em;
    }

    .team-mobile-modal-content .story-desc:last-child {
        margin-bottom: 0;
    }

    .team-mobile-modal-content .story-desc strong {
        position: relative;
        z-index: 1;
        color: #111827;
        font-weight: 800;
    }

    .team-mobile-modal-content .story-desc strong::after {
        content: "";
        position: absolute;
        left: -2px;
        right: -2px;
        bottom: 2px;
        height: 34%;
        z-index: -1;
        border-radius: 2px;
        background: #C6FF33;
        opacity: 0.5;
    }

    .team-mobile-modal-content .story-desc.first-para::first-letter {
        float: none;
        padding: 0;
        color: inherit;
        font-family: inherit;
        font-size: inherit;
        font-weight: inherit;
        line-height: inherit;
        -webkit-text-stroke: 0;
        text-shadow: none;
    }
}

@media (max-width: 900px) and (max-height: 700px) {
    .team-mobile-modal {
        padding: 6px;
    }

    .team-mobile-modal-panel {
        width: min(100%, 620px);
        height: calc(100dvh - 12px);
        max-height: calc(100dvh - 12px);
        grid-template-rows: 176px minmax(0, 1fr);
        border-radius: 24px;
    }

    .team-mobile-modal-media {
        border-radius: 24px 24px 0 0;
    }

    .team-mobile-modal-media video {
        border-radius: 24px 24px 0 0;
    }

    .team-mobile-modal-eyebrow {
        left: 18px;
        bottom: 72px;
    }

    .team-mobile-modal-person {
        left: 18px;
        bottom: 14px;
    }

    .team-mobile-modal-content {
        padding: 15px 17px 22px;
    }

    .team-mobile-modal-content .story-title {
        margin-bottom: 13px;
        font-size: clamp(1.3rem, 5.7vw, 1.58rem);
    }

    .team-mobile-modal-content .story-desc {
        margin-bottom: 12px;
        font-size: 0.9rem;
        line-height: 1.5;
    }
}
