.home-reference-showcase {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.home-reference-title p {
    max-width: 680px;
}

.home-reference-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.home-reference-card {
    height: 100%;
}

.home-reference-card.is-hidden {
    display: none;
}

.home-reference-card a {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 210px;
    min-height: 0;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(9, 24, 81, .08);
    box-shadow: 0 14px 34px rgba(9, 24, 81, .08);
}

.home-reference-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 24px;
    transform: none;
    transition: transform .35s ease, filter .35s ease;
}

.home-reference-card__overlay {
    position: absolute;
    inset: auto 14px 14px 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 12px 14px 9px;
    border-radius: 8px;
    background: rgba(9, 24, 81, .88);
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s ease, transform .35s ease;
}

.home-reference-card__overlay i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #3d72fc;
    color: #fff;
    font-size: 18px;
}

.home-reference-card__overlay strong {
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.home-reference-card a:after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(9, 24, 81, 0) 45%, rgba(9, 24, 81, .2) 100%);
    opacity: 0;
    transition: opacity .35s ease;
}

.home-reference-card a:hover img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.04);
}

.home-reference-card a:hover:after {
    opacity: .92;
}

.home-reference-card a:hover .home-reference-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.home-reference-more {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.intro-video-tab {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 178px;
    padding: 16px 9px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #091851;
    color: #fff;
    box-shadow: 0 16px 34px rgba(9, 24, 81, .22);
    transform: translateY(-50%);
    transition: background .25s ease, transform .25s ease;
}

.intro-video-tab span {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.intro-video-tab:before {
    position: absolute;
    top: 12px;
    right: -8px;
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f2b705;
    box-shadow: 0 0 0 6px rgba(242, 183, 5, .18);
}

.intro-video-tab:hover {
    background: #3d72fc;
    color: #fff;
    transform: translateY(-50%) translateX(4px);
}

.intro-video-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

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

.intro-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 30, .82);
    backdrop-filter: blur(7px);
}

.intro-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    border-radius: 8px;
    overflow: hidden;
    background: #07112e;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .42);
    transform: translateY(24px) scale(.97);
    transition: transform .28s ease;
}

.intro-video-modal.is-open .intro-video-modal__dialog {
    transform: translateY(0) scale(1);
}

.intro-video-modal__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 78px 18px 24px;
    background: linear-gradient(90deg, #091851 0%, #153c83 100%);
}

.intro-video-modal__heading span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .12);
    color: #f2b705;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.intro-video-modal__heading h3 {
    margin: 0;
    color: #fff;
    font-size: 25px;
    line-height: 1.25;
}

.intro-video-modal__frame {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 9;
}

.intro-video-modal__frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.intro-video-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 24px;
    transition: background .25s ease, color .25s ease;
}

.intro-video-modal__close:hover {
    background: #fff;
    color: #091851;
}

body.intro-video-open {
    overflow: hidden;
}

@media only screen and (max-width: 991px) {
    .home-reference-showcase {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .home-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media only screen and (max-width: 767px) {
    .home-reference-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .home-reference-card a {
        height: 190px;
    }

    .home-reference-card__overlay {
        opacity: 1;
        transform: none;
    }

    .intro-video-tab {
        min-height: 150px;
        min-width: 40px;
        padding: 14px 7px;
    }

    .intro-video-tab span {
        font-size: 13px;
    }

    .intro-video-modal {
        padding: 12px;
    }

    .intro-video-modal__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 18px 64px 15px 18px;
    }

    .intro-video-modal__heading h3 {
        font-size: 21px;
    }

    .intro-video-modal__close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
}
