.stop-video {
    background: #01010B;
    position: relative;
    z-index: 1;
    padding: 15rem 0;
}

.stop-video__inner {
    max-width: 1340px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    display: grid;
    /* landscape video, so it is no longer cropped */
    grid-template-columns: 1fr clamp(360px, 42vw, 620px);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.stop-video__heading {
    font-family: 'Atma', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 96px;
    line-height: 100%;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.stop-video__heading span { display: block; }

.stop-video__heading .accent { color: var(--color-yellow); }

.stop-video__quote p {
    font-family: 'Architects Daughter', cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 26px;
    line-height: 24.7px;
    letter-spacing: 0;
    color: #FFFFFF;
    max-width: 460px;
    display: inline-block;
    transform: rotate(-2deg);
}

.stop-video__quote-row {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
}

.stop-video__clock svg { overflow: visible; }   /* the label sits at x=-10, outside the viewBox */

.stop-video__clock {
    flex-shrink: 0;
    transform: rotate(7deg);
    transform-origin: center center;
}

.stop-video__card {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    overflow: hidden;
    background: #06090c;
}

.stop-video__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 6%,  rgba(0, 192, 232, 0.85) 0%, transparent 62%),
        radial-gradient(circle at 93% 84%, rgba(239, 208, 32, 0.75) 0%, transparent 58%);
}

.video-placeholder {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder img {
    position: relative;
    z-index: 2;
}

/* YouTube thumbnail; the video itself opens in the lightbox (site.js) */
.stop-video__card.has-video::before { display: none; }   /* the tint turned the left of the photo green */

.video-thumb {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    cursor: pointer;
}

.video-thumb__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--ease-spring);
}

.video-thumb:hover .video-thumb__play,
.video-thumb:focus-visible .video-thumb__play { transform: translate(-50%, -50%) scale(1.12); }

.video-thumb:focus-visible { outline: 3px solid #00C0E8; outline-offset: -3px; }

/* the link sits under the copy now, in the same blue as the header buttons */
.stop-video__cta {
    margin-top: clamp(1.25rem, 2.5vh, 2rem);
    align-self: flex-start;
}

.video-embed-wrap {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.video-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 900px) {
    .stop-video {
        padding: 5rem 0;
    }

    .stop-video__inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-inline: clamp(1rem, 5vw, 2rem);
    }

    .stop-video__heading {
        font-size: clamp(3rem, 13vw, 60px);
    }

    .stop-video__quote p {
        font-size: 20px;
    }

    .stop-video__card {
        max-width: 460px;
        margin-inline: auto;
    }
}

@media (min-width: 1441px) {
    .stop-video__inner {
        max-width: 1500px;
        padding-inline: 2.5rem;
        grid-template-columns: 1fr 560px;
        /* height held at what the section measured before the video went landscape,
           so the dotted road (placed as a % of the page) stays put */
        height: 499px;
    }
}

/* --- small desktop: 901px – 1440px only --- */
@media (min-width: 901px) and (max-width: 1440px) {
    /* 127.5px not 10rem: the new type spec added 65px, this gives it back so the dotted line stays aligned */
    .stop-video { padding: 127.5px 0; }
    /* capped so the heading stays clear of stop 3's circle (the lines are single
       words, so this changes the box width without changing the section height) */
    .stop-video__heading { max-width: 430px; }
    .stop-video__inner {
        max-width: 1400px;
        grid-template-columns: 1fr clamp(340px, 36vw, 460px);
        gap: clamp(2.5rem, 4vw, 4rem);
        height: 447px;   /* unchanged section height keeps the dotted road aligned */
    }
    .stop-video__heading { font-size: 80px; }
    .stop-video__heading { margin-bottom: 1.5rem; }
    .stop-video__quote-row { gap: 3rem; }
    .stop-video__clock { transform: rotate(7deg) scale(0.72); transform-origin: top center; }
}

/* --- phones: quote and clock stack instead of squeezing side by side --- */
@media (max-width: 600px) {
    .stop-video { padding: 4rem 0; }
    .stop-video__heading { font-size: clamp(2.2rem, 11vw, 3rem); }
    .stop-video__quote-row { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .stop-video__quote p { font-size: 1rem; max-width: 100%; }
    /* the clock sits beside the heading, on the right, instead of below the quote where
       it read as an orphan at the left edge */
    .stop-video__left { position: relative; }
    .stop-video__clock {
        position: absolute;
        top: 0;
        right: 0;
        margin-left: 0;
        transform: rotate(7deg) scale(0.7);
        transform-origin: right top;
    }
    .stop-video__card { max-width: 100%; margin-inline: auto; }
}

/* the heading has to stop short of stop 3's circle on narrow desktops; the lines are
   single words, so the narrower box does not change the section height */
@media (min-width: 901px) and (max-width: 1100px) {
    .stop-video__heading { max-width: 400px; }
}

/* desktop: the clock sits lower and further left, clear of stop 3's circle */
@media (min-width: 901px) {
    .stop-video__clock { position: relative; top: 4rem; left: -3.5rem; }
}
