.ai-photo-motion {
    display: block;
    background: var(--ai-motion-bg);
    color: var(--ai-motion-text);
    overflow: hidden;
}

.ai-photo-motion__inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--ai-motion-padding) 40px;
}

.ai-photo-motion__copy {
    max-width: 520px;
}

.ai-photo-motion__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--ai-motion-accent);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ai-photo-motion__eyebrow::before {
    width: 26px;
    height: 1px;
    background: currentColor;
    content: "";
}

.ai-photo-motion__title {
    max-width: 13ch;
    margin: 0;
    color: inherit;
    font-size: clamp(34px, 4.2vw, 64px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: 0;
}

.ai-photo-motion__description {
    max-width: 46ch;
    margin-top: 22px;
    color: inherit;
    font-size: 17px;
    line-height: 1.65;
    opacity: 0.78;
}

.ai-photo-motion__description p {
    margin: 0;
}

.ai-photo-motion__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 30px;
    padding: 0 24px;
    border: 1px solid var(--ai-motion-text);
    border-radius: 3px;
    background: var(--ai-motion-text);
    color: var(--ai-motion-bg);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.ai-photo-motion__link:hover {
    background: transparent;
    color: var(--ai-motion-text);
}

.ai-photo-motion__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #17130f;
}

.ai-photo-motion__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-photo-motion__video,
.ai-photo-motion__media>video {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-photo-motion:has(.ai-photo-motion__poster) .ai-photo-motion__media>video { opacity: 0; }
.ai-photo-motion.has-video-frame .ai-photo-motion__media>video { opacity: 1; }

.ai-photo-motion.has-media-error .ai-photo-motion__media>video {
    visibility: hidden;
}

.ai-photo-motion__toggle:disabled {
    cursor: default;
    opacity: 0.45;
}

.ai-photo-motion__status {
    position: absolute;
    bottom: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(17, 16, 14, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.ai-photo-motion__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b8b8b8;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.ai-photo-motion__status.is-motion .ai-photo-motion__status-dot {
    background: #8ee3ac;
    box-shadow: 0 0 0 4px rgba(142, 227, 172, 0.18);
}

.ai-photo-motion__toggle {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: rgba(17, 16, 14, 0.72);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.ai-photo-motion__toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ai-photo-motion__toggle .icon-play,
.ai-photo-motion__toggle.is-paused .icon-pause {
    display: none;
}

.ai-photo-motion__toggle.is-paused .icon-play {
    display: block;
}

@media (max-width: 749px) {
    .ai-photo-motion__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: var(--ai-motion-padding-mobile) 18px;
    }

    .ai-photo-motion__copy {
        max-width: none;
    }

    .ai-photo-motion__title {
        max-width: 14ch;
        font-size: 38px;
    }

    .ai-photo-motion__description {
        margin-top: 16px;
        font-size: 15px;
    }

    .ai-photo-motion__link {
        margin-top: 22px;
    }

    .ai-photo-motion__status {
        bottom: 12px;
        left: 12px;
    }

    .ai-photo-motion__toggle {
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ai-photo-motion__link,
    .ai-photo-motion__status-dot {
        transition: none;
    }
}
