/* =====================
HERO
===================== */

.media-swap {
    position: relative;
    max-width: 800px; /* tweak as needed */
    aspect-ratio: 16 / 9; /* keeps layout stable before load */
    overflow: hidden;
    background: #0b0b0c;
}

.media-swap video,
.media-swap img {
    position: absolute;
    inset: 0;
    width: auto;
    margin: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image starts hidden */
.media-swap img {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 600ms ease, transform 1200ms ease;
}

/* When video ends, reveal image with a gentle settle */
.media-swap.show-image img {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Hide the video once done (optional but avoids tabbing to it) */
.media-swap.show-image video {
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .media-swap img,
    .media-swap.show-image img,
    .media-swap.show-image video {
        transition: none !important;
        transform: none !important;
    }
}

/* Optional: a “Skip” button to jump to image */
.skip-btn {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    z-index: 2;
    padding: .4rem .6rem;
    font: 600 12px/1.2 system-ui, sans-serif;
    color: #fff;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: .5rem;
    cursor: pointer;
}

.media-swap.show-image .skip-btn {
    display: none;
}

.hero {
    position: relative;
    padding: 60px 0 60px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(60% 60%, rgba(46, 143, 220, .28), transparent 60%), radial-gradient(40% 40% at 20% 30%, rgba(19, 75, 134, .35), transparent 55%);
    filter: blur(20px);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: center;
}

.hero .cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-graphic {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--grey-500) 0%, var(--black) 65%);
    display: grid;
    place-items: center;
    position: relative;
}

.hero-graphic > div:not(.rings) {
    position: relative;
    z-index: 2;
}

.rings {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    border: 2px solid rgba(122, 195, 255, .25);
    animation: pulse 5s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.rings::before,
.rings::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    border: 2px dashed rgba(46, 143, 220, .35);
}

.rings::after {
    inset: 22%;
    border-style: solid;
    border-color: rgba(26, 101, 184, .35);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* =====================
COUNTDOWN
===================== */
.countdown {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.timebox {
    min-width: 90px;
    text-align: center;
    padding: 14px 10px;
    border-radius: 14px;
}

.timebox .num {
    font-size: 1.8rem;
    font-weight: 800;
}

.timebox .label {
    color: var(--muted);
    font-size: .8rem;
}

/* =====================
PARTNER STRIP
===================== */
.partners .list {
    background: linear-gradient(180deg, var(--black), var(--grey-600), var(--black));
    display: inline-flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin: auto;
    width: 100%;
}

.partner {
    margin: 5px;
    height: 120px;
    width: 200px;
    border-radius: 14px;
    display: flex;
    place-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* =====================
RESPONSIVE
===================== */
@media (max-width: 980px) {
    .hero-grid, .media-grid, .latest-grid {
        grid-template-columns: 1fr;
    }

    .rings {
        width: 60%;
        height: 60%;
    }
}