.custom-motion {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
    width: 100%;
    max-width: 1400px;
    min-height: 520px;
    margin: 100px auto 0;
    overflow: hidden;
    background: #080b0f;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.custom-motion::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.custom-motion-copy {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 64px 24px 64px 48px;
}

.custom-motion-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.custom-motion-kicker::after {
    width: 34px;
    height: 2px;
    content: "";
    background: var(--accent);
}

.custom-motion h2 {
    max-width: 570px;
    margin: 0;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.04;
}

.custom-motion-description {
    max-width: 570px;
    margin: 28px 0 0;
    color: #bbc0c7;
    font-size: 17px;
    line-height: 1.75;
}

.custom-motion-note {
    margin: 25px 0 0;
    color: #858c95;
    font-size: 14px;
    line-height: 1.6;
}

.custom-motion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.custom-motion-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 54px;
    padding: 14px 20px;
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.custom-motion-button:hover {
    transform: translateY(-2px);
}

.custom-motion-button-primary {
    color: #06080b;
    background: var(--accent);
}

.custom-motion-button-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.custom-motion-button-secondary {
    color: var(--accent);
    background: rgba(6, 8, 11, 0.72);
}

.custom-motion-button-secondary:hover {
    color: #06080b;
    background: var(--accent);
}

.custom-motion-showcase {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 520px;
    overflow: hidden;
}

.custom-motion-showcase::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(90deg, #080b0f 0%, rgba(8, 11, 15, 0.2) 32%, transparent 58%),
        linear-gradient(0deg, #080b0f 0%, transparent 32%);
}

.custom-motion-showcase img {
    position: absolute;
    top: 40px;
    right: 0;
    width: 100%;
    max-width: none;
    height: auto;
    opacity: 0.96;
    filter: contrast(1.04) brightness(1.05);
}

.custom-motion-services {
    position: absolute;
    right: 4%;
    bottom: 38px;
    left: 5%;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.custom-motion-services span {
    position: relative;
    padding: 28px 20px 0;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.custom-motion-services span + span {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1100px) {
    .custom-motion {
        grid-template-columns: 1fr;
    }

    .custom-motion-copy {
        padding: 54px 44px 20px;
    }

    .custom-motion-showcase {
        min-height: 430px;
    }

    .custom-motion-showcase::before {
        background:
            linear-gradient(180deg, #080b0f 0%, transparent 24%),
            linear-gradient(0deg, #080b0f 0%, transparent 28%);
    }

    .custom-motion-showcase img {
        top: -24px;
        right: 50%;
        width: min(100%, 900px);
        transform: translateX(50%);
    }
}

@media (max-width: 620px) {
    .custom-motion {
        min-height: 0;
        margin-top: 64px;
    }

    .custom-motion-copy {
        padding: 40px 20px 20px;
    }

    .custom-motion h2 {
        font-size: 38px;
    }

    .custom-motion-description {
        font-size: 15px;
    }

    .custom-motion-actions,
    .custom-motion-button {
        width: 100%;
    }

    .custom-motion-showcase {
        min-height: 345px;
    }

    .custom-motion-showcase img {
        top: 28px;
        right: 0;
        width: 100%;
        transform: none;
    }

    .custom-motion-services {
        right: 14px;
        bottom: 26px;
        left: 14px;
    }

    .custom-motion-services span {
        padding: 22px 7px 0;
        font-size: 10px;
    }
}
