.links-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 2.2vh, 26px);
    margin: 15px auto;
    width: 100%;
}

.links-grid a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(1.15rem, 1.4vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -.3px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: clamp(8px, .9vw, 14px);
    border-radius: clamp(16px, 1.8vw, 24px);
    width: max-content;
    overflow: hidden;
    cursor: pointer;
    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .2s cubic-bezier(.25, 1, .5, 1);
    will-change: transform;
}

.links-grid a img {
    width: clamp(60px, 5.5vw, 92px);
    height: clamp(60px, 5.5vw, 92px);
    object-fit: cover;
    border-radius: clamp(12px, 1.2vw, 18px);
    border: 1px solid rgba(255, 255, 255, .1);
    z-index: 2;
    flex-shrink: 0;
}

.links-grid a span {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
    transition:
        max-width .35s cubic-bezier(.25, .8, .25, 1),
        opacity .2s ease,
        margin-left .35s cubic-bezier(.25, .8, .25, 1),
        margin-right .35s cubic-bezier(.25, .8, .25, 1);
}

.links-grid a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .35);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, .25);
}

.links-grid a:hover span {
    max-width: clamp(260px, 25vw, 400px);
    opacity: 1;
    margin-left: clamp(18px, 1.8vw, 28px);
    margin-right: clamp(16px, 1.5vw, 24px);
}

.links-grid a:active {
    transform: scale(.95);
    background: rgba(255, 255, 255, .07);
}

@media (max-width: 600px) {
    .links-grid {
        gap: 12px;
    }

    .links-grid a {
        font-size: 1.05rem;
        padding: 6px;
        border-radius: 14px;
    }

    .links-grid a img {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    .links-grid a:hover span {
        max-width: 180px;
        margin-left: 12px;
        margin-right: 8px;
    }
}