/* ============================================================
   video.css — page styles for video.html's work showcase.
   Page-specific (offers.css pattern): loads after the ds cascade
   and leans on tokens.css + .card-surface from base.css.
   ============================================================ */

/* ---------- page head carries the capability pitch ----------
   The caps/proof sit inside .page-head so they ride the head's rise-in
   cascade (motion.css nth-child delays). main.js's scroll-reveal also
   targets .gov-caps/.gov-proof — inside the head that would hide them
   until the observer fires and double-animate the entrance, so pin them
   visible here and let the load-in own the motion. */
html.anim .page-head .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}
.page-head .gov-caps { margin: 6px auto 24px; }
.page-head .gov-proof { margin-bottom: 30px; }

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
}
@media (min-width: 640px)  { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* frame: 16:9 window; hqdefault thumbnails are 4:3, cover-crop the bars */
.video-card__frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #10222f;
    overflow: hidden;
}
.video-card__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-card__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    transition: transform .3s ease-in-out;
}
.video-card__play svg { margin-left: 3px; }
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.1); }

.video-card__body {
    display: block;
    padding: 16px 20px 18px;
}
.video-card__title {
    display: block;
    font-weight: 600;
    color: var(--primary);
}
.video-card__meta {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    color: var(--text-soft);
}

/* once the embed is in, the card is a player — stop the surface lift */
.video-card.is-playing,
.video-card.is-playing:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}
