.demo-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}
.demo-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4cfb7;
    border-radius: 26px;
    background: #fffaf3;
    color: #3d2817;
    text-decoration: none;
    box-shadow: 0 10px 30px #68411b0a;
    transition: transform .2s ease, box-shadow .2s ease;
}
.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px #68411b18;
}
.demo-card:focus-visible { outline: 3px solid #2162a0; outline-offset: 5px; }
.demo-card__art {
    position: relative;
    width: 100%;
    isolation: isolate;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    min-height: 260px;
    background: linear-gradient(135deg, #edb65a, #f6dba8 58%, #eac99c);
}
.demo-card--details .demo-card__art {
    background: linear-gradient(135deg, #e9cdb0, #f1d3a3 58%, #dcab77);
}
.demo-card__art::before,
.demo-card__art::after,
.demo-card__orbit {
    content: "";
    position: absolute;
    border: 1px solid #8b582a38;
    border-radius: 50%;
    pointer-events: none;
}
.demo-card__art::before { width: 75%; aspect-ratio: 1; top: -54%; right: -20%; }
.demo-card__art::after { width: 90%; aspect-ratio: 1; bottom: -90%; left: -23%; }
.demo-card__orbit { width: 64%; aspect-ratio: 1; top: 10%; left: 12%; transform: rotate(-24deg) scaleY(.64); }
.demo-card--details .demo-card__orbit { left: 28%; top: 6%; transform: rotate(27deg) scaleY(.68); }
.demo-card__phone {
    position: absolute;
    display: block;
    width: 38%;
    max-width: 220px;
    min-width: 150px;
    height: auto;
    top: 16%;
    left: 17%;
    border: 7px solid #503728;
    border-radius: 27px;
    background: #fff;
    box-shadow: 12px 20px 30px #5c371a40;
    transform: rotate(-11deg);
}
.demo-card--details .demo-card__phone { top: 9%; left: 42%; transform: rotate(10deg); }
.demo-card__play {
    position: absolute;
    top: 38%;
    right: 16%;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid #ffffffc7;
    border-radius: 50%;
    background: #fff9eeef;
    box-shadow: 0 7px 25px #5c371a26;
    transition: transform .2s ease;
}
.demo-card--details .demo-card__play { right: auto; left: 15%; }
.demo-card__play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #50301a;
}
.demo-card:hover .demo-card__play { transform: scale(1.06); }
.demo-card__watch {
    position: absolute;
    right: 15%;
    top: calc(38% + 88px);
    color: #56361e;
    font-size: .875rem;
    font-weight: 650;
}
.demo-card--details .demo-card__watch { right: auto; left: 14%; }
.demo-card__copy { padding: 25px 28px 27px; }
.demo-card__copy h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.25; letter-spacing: -.025em; }
.demo-card__copy p { margin: 0; color: #665342; line-height: 1.5; }
.demo-card__meta { display: block; margin-top: 15px; color: #795c43; font-size: .875rem; }

body.modal-open { overflow: hidden; }
.demo-modal {
    box-sizing: border-box;
    width: min(860px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #e6caa7;
    border-radius: 22px;
    color: #3d2817;
    background: #fff8ef;
    box-shadow: 0 30px 100px #130b0766;
}
.demo-modal::backdrop { background: #21170fe0; }
.demo-modal__header { position: sticky; top: 0; z-index: 1; background: #fff8ef; display: flex; align-items: center; gap: 20px; padding: 18px 22px; }
.demo-modal__title { flex: 1; margin: 0; font-size: 1.2rem; line-height: 1.3; }
.demo-modal__close {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ddc5a9;
    border-radius: 50%;
    color: #3d2817;
    background: #f4e4ce;
    cursor: pointer;
}
.demo-modal__close::before,
.demo-modal__close::after { content: ""; position: absolute; left: 12px; top: 20px; width: 18px; height: 2px; background: currentColor; transform: rotate(45deg); }
.demo-modal__close::after { transform: rotate(-45deg); }
.demo-modal__close:focus-visible,
.demo-modal__direct:focus-visible { outline: 3px solid #2162a0; outline-offset: 4px; }
.demo-modal__media { background: #191613; line-height: 0; }
.demo-modal__media video { display: block; width: 100%; height: min(66dvh, 640px); max-width: 100%; margin: 0; object-fit: contain; background: #191613; }
.demo-modal__footer { padding: 16px 22px 20px; font-size: .875rem; line-height: 1.5; }
.demo-modal__note { margin: 0 0 10px; color: #665342; }
.demo-modal__status { margin: 0 0 10px; color: #6b3520; }
.demo-modal__direct { display: inline-flex; align-items: center; min-height: 44px; color: #884215; text-underline-offset: .2em; }
@media (max-width: 600px) {
    .demo-card-grid { grid-template-columns: 1fr; gap: 22px; }
    .demo-card__art { min-height: 260px; }
    .demo-card__copy { padding: 22px; }
    .demo-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 17px; }
    .demo-modal__header { padding: 12px 15px; }
    .demo-modal__footer { padding: 12px 16px 16px; }
    .demo-modal__media video { height: 58dvh; }
}
@media (prefers-reduced-motion: reduce) {
    .demo-card, .demo-card__play { transition: none; }
    .demo-card:hover, .demo-card:hover .demo-card__play { transform: none; }
}
