/* "Watch our manufacturing process" — fig 7033:3933. White panel, checklist and
   button left, video plate right. The plate runs the full panel height on the
   widest mock, which is why the panel takes no vertical padding there. */

.corp-video .corp-panel {
    --corp-panel-pad-min: 85px;
    --corp-panel-pad-y: 0px;
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 30px;
    align-items: stretch;
}

/* Only the phone frame gives this block a card. From 768 up the frames lay the
   checklist and the plate straight on the page canvas — near-white pixels are
   0.1% of the band in all three, against 39-46% with the panel painted. The
   inset stays: it is what holds the copy in the page's content column. */
@media (min-width: 768px) {
    .corp-video .corp-panel {
        background: transparent;
        border-radius: 0;
    }
}

.corp-video-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.corp-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.corp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: var(--corp-muted);
}

.corp-checklist img {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* The plate runs the full height of the copy column, so the poster is taken out
   of flow: left in flow its own aspect would drive the row height instead. */
.corp-video-media {
    position: relative;
    display: block;
    width: 100%;
    min-height: 300px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #0c0e0f;
    cursor: pointer;
}

.corp-video-media img.corp-video-thumb {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The frames darken the poster behind the play badge. Regressing the frame's
   plate against the shipped photo gives alpha .43 over near-black at 1920,
   1440 and 768 alike (residual under 7/255). */
.corp-video-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 5, .43);
    pointer-events: none;
}

.corp-video-play {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: rgba(23, 27, 28, .75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, .1);
    pointer-events: none;
}

.corp-video-play img {
    width: 21.33px;
    height: 26.67px;
    margin-left: 3px;
}

/* with no video to play the plate is the photo itself: the badge and the dim
   that seats it are both gone */
.corp-video-media--photo {
    cursor: default;
}

.corp-video-media--photo::after {
    content: none;
}

/* ── player dialog: the plate opens the video over the page ── */
.corp-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000; /* the sticky site header sits at 999999 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.corp-video-modal[hidden] {
    display: none;
}

.corp-video-modal-dim {
    position: absolute;
    inset: 0;
    background: rgba(10, 12, 13, .6);
}

.corp-video-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

.corp-video-frame {
    position: absolute;
    inset: 0;
}

.corp-video-player {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
    object-fit: contain;
}

.corp-video-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    cursor: pointer;
    transition: background-color .2s ease;
}

.corp-video-close svg {
    width: 24px;
    height: 24px;
}

@media (hover: hover) {
    .corp-video-close:hover {
        background: rgba(0, 0, 0, .7);
    }
}

.corp-video-close:focus-visible {
    outline: 2px solid var(--corp-orange);
    outline-offset: 2px;
}

@media (max-width: 1470px) and (min-width: 1200px) {
    .corp-video .corp-panel {
        --corp-panel-pad-y: 60px;
        /* the 1440 mock splits this row down the middle: 605 + 20 + 605 */
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 1199px) {
    .corp-video .corp-panel {
        /* the 768 mock insets this panel further than the others */
        --corp-panel-pad-min: 40px;
        --corp-panel-pad-y: 40px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .corp-video-media {
        aspect-ratio: 648 / 506;
    }

    /* stacked under the copy, the plate sizes itself again */
    .corp-video-media img.corp-video-thumb {
        position: static;
    }
}

@media (max-width: 767px) {
    .corp-video .corp-panel {
        --corp-panel-pad-min: 16px;
        --corp-panel-pad-y: 20px;
        gap: 20px;
    }

    /* the phone mock spaces the whole column on 16 */
    .corp-video-copy {
        gap: 16px;
    }


    .corp-video-media {
        aspect-ratio: 1 / 1;
    }

    .corp-video-play {
        width: 60px;
        height: 60px;
    }

    .corp-video-play img {
        width: 16.89px;
        height: 21.11px;
    }
}

/* the frame draws this button 377 wide down to the tablet frame */
@media (min-width: 768px) {
    .corp-video .corp-btn {
        min-width: 377px;
    }
}
