/* ==========================================================
   ICX HOMEPAGE MEDIA V2
   Podcast-first editorial feature
========================================================== */

.icx-home-media-v2 {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(68px, 7.5vw, 104px) 0;
    color: #fff;
    background:
        radial-gradient(
            circle at 12% 6%,
            rgba(245, 130, 32, 0.11),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #062d46 0%,
            #073f5d 52%,
            #0b5b79 100%
        );
}

.icx-home-media-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent 0 78%,
            rgba(255, 255, 255, 0.035) 78% 78.12%,
            transparent 78.12%
        );
}

.icx-home-media-v2::after {
    content: "";
    position: absolute;
    top: 0;
    right: clamp(24px, 4vw, 64px);
    width: 108px;
    height: 2px;
    background: var(--icx-orange, #f58220);
}

.icx-home-media-v2 .icx-home-video__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns:
        minmax(320px, 0.82fr)
        minmax(0, 1.18fr);
    gap: clamp(42px, 6vw, 82px);
    align-items: center;
}

.icx-home-media-v2 .icx-home-video__copy {
    width: 100%;
    max-width: 530px;
}

.icx-home-media-v2 .icx-home-eyebrow {
    margin-bottom: 0;
}

.icx-home-media-v2 .icx-home-video__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 18px;
    color: #c8dce6;
    font-size: 0.75rem;
    font-weight: 650;
}

.icx-home-media-v2 .icx-home-video__meta > span:not(:first-child)::before {
    content: "•";
    margin-right: 12px;
    color: rgba(255, 255, 255, 0.36);
}

.icx-home-media-v2 .icx-home-video__kind {
    display: inline-flex;
    min-height: 30px;
    padding: 6px 10px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.icx-home-media-v2 .icx-home-video__kind::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--icx-orange, #f58220);
}

.icx-home-media-v2 .icx-home-video__copy h2 {
    max-width: 520px;
    margin: 17px 0 18px;
    color: #fff;
    font-family: var(--icx-font-display, "Fraunces"), Georgia, serif;
    font-size: clamp(2.45rem, 4.1vw, 4rem);
    line-height: 1.01;
    letter-spacing: -0.038em;
    text-wrap: balance;
}

.icx-home-media-v2 .icx-home-video__copy > p {
    max-width: 500px;
    margin: 0;
    color: #d5e5ed;
    font-size: 0.98rem;
    line-height: 1.72;
}

.icx-home-media-v2 .icx-home-video__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 20px;
    align-items: center;
    margin-top: 28px;
}

.icx-home-media-v2 .icx-home-video__actions .icx-button {
    min-height: 48px;
}

.icx-home-video__hub-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
}

.icx-home-video__hub-link span {
    color: var(--icx-orange, #f58220);
    transition: transform 180ms ease;
}

.icx-home-video__hub-link:hover span,
.icx-home-video__hub-link:focus-visible span {
    transform: translateX(3px);
}

.icx-home-video__visual {
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px 32px 4px 4px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 26px 72px rgba(2, 24, 38, 0.30);
    backdrop-filter: blur(4px);
}

.icx-home-media-v2 .icx-home-video__frame {
    position: relative;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden;
    border: 0;
    border-radius: 2px 25px 2px 2px;
    background: #061f31;
    box-shadow: none;
}

.icx-home-media-v2 .icx-home-video__frame iframe,
.icx-home-media-v2 .icx-home-video__frame > .icx-home-video__poster,
.icx-home-media-v2 .icx-home-video__poster-image {
    display: block;
    width: 100%;
    height: 100%;
}

.icx-home-media-v2 .icx-home-video__frame iframe {
    border: 0;
}

.icx-home-media-v2 .icx-home-video__poster {
    position: absolute;
    inset: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: #061f31;
    cursor: pointer;
}

.icx-home-media-v2 .icx-home-video__poster-image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition:
        transform 300ms ease,
        filter 300ms ease,
        opacity 180ms ease;
}

.icx-home-media-v2 .icx-home-video__poster:hover .icx-home-video__poster-image {
    transform: scale(1.018);
    filter: saturate(1.04) contrast(1.02);
}

.icx-home-video__quality-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 30px;
    opacity: 0;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(
            circle at 74% 22%,
            rgba(245, 130, 32, 0.32),
            transparent 28%
        ),
        linear-gradient(135deg, #061f31, #0b5b79);
    transition: opacity 180ms ease;
}

.icx-home-video__quality-fallback small {
    margin-bottom: 8px;
    color: #ffd1aa;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.icx-home-video__quality-fallback strong {
    font-family: var(--icx-font-display, "Fraunces"), Georgia, serif;
    font-size: clamp(3.4rem, 8vw, 7.2rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.icx-home-video__quality-fallback span {
    margin-top: 13px;
    color: #d7e7ef;
    font-size: 0.84rem;
    font-weight: 650;
}

.icx-home-video__frame.is-low-res .icx-home-video__poster-image,
.icx-home-video__frame.is-poster-error .icx-home-video__poster-image {
    opacity: 0;
}

.icx-home-video__frame.is-low-res .icx-home-video__quality-fallback,
.icx-home-video__frame.is-poster-error .icx-home-video__quality-fallback,
.icx-home-video__poster:not(:has(.icx-home-video__poster-image)) .icx-home-video__quality-fallback {
    opacity: 1;
}

.icx-home-media-v2 .icx-home-video__overlay {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    background:
        linear-gradient(
            0deg,
            rgba(3, 26, 41, 0.64) 0%,
            rgba(3, 26, 41, 0.06) 52%,
            rgba(3, 26, 41, 0.03) 100%
        );
}

.icx-home-media-v2 .icx-home-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: clamp(68px, 6.8vw, 86px);
    height: clamp(68px, 6.8vw, 86px);
    place-items: center;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    color: #07344f;
    background: var(--icx-orange, #f58220);
    font-size: 1.05rem;
    box-shadow:
        0 0 0 10px rgba(255, 255, 255, 0.08),
        0 16px 42px rgba(0, 0, 0, 0.26);
    transition: transform 180ms ease;
}

.icx-home-media-v2 .icx-home-video__poster:hover .icx-home-video__play,
.icx-home-media-v2 .icx-home-video__poster:focus-visible .icx-home-video__play {
    transform: translate(-50%, -50%) scale(1.055);
}

.icx-home-media-v2 .icx-home-video__poster:focus-visible {
    outline: 4px solid var(--icx-orange, #f58220);
    outline-offset: -4px;
}

.icx-home-video__play-copy {
    position: absolute;
    right: 22px;
    bottom: 19px;
    left: 22px;
    display: flex;
    gap: 8px;
    align-items: baseline;
    color: #fff;
    text-align: left;
}

.icx-home-video__play-copy small {
    color: #ffd1aa;
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.icx-home-video__play-copy strong {
    font-size: 0.78rem;
    font-weight: 750;
}

.icx-home-video__visual-footer {
    display: flex;
    min-height: 52px;
    padding: 10px 11px 2px;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    color: #c4d9e4;
    font-size: 0.72rem;
    font-weight: 650;
}

.icx-home-video__visual-footer > span {
    min-width: 0;
}

.icx-home-video__visual-footer a {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.icx-home-video__visual-footer a span {
    color: var(--icx-orange, #f58220);
}

.icx-home-video__internal-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    padding: clamp(28px, 5vw, 54px);
    place-content: center;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background:
        radial-gradient(
            circle at 72% 24%,
            rgba(245, 130, 32, 0.34),
            transparent 28%
        ),
        linear-gradient(135deg, #061f31, #0b5b79);
}

.icx-home-video__internal-fallback > span {
    color: #ffd0a8;
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.icx-home-video__internal-fallback strong {
    max-width: 650px;
    margin: 10px auto;
    font-family: var(--icx-font-display, "Fraunces"), Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.8rem);
    line-height: 1.08;
}

.icx-home-video__internal-fallback small {
    font-weight: 750;
}

.icx-home-video__audio {
    display: grid;
    width: 100%;
    height: 100%;
    padding: clamp(26px, 5vw, 52px);
    place-content: center;
    background:
        radial-gradient(
            circle at 72% 24%,
            rgba(245, 130, 32, 0.28),
            transparent 30%
        ),
        linear-gradient(135deg, #061f31, #0b5678);
}

.icx-home-video__audio audio {
    width: min(100%, 620px);
}

@media (max-width: 980px) {
    .icx-home-media-v2 .icx-home-video__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .icx-home-media-v2 .icx-home-video__copy {
        max-width: 760px;
    }

    .icx-home-media-v2 .icx-home-video__copy h2,
    .icx-home-media-v2 .icx-home-video__copy > p {
        max-width: 720px;
    }

    .icx-home-video__visual {
        width: min(100%, 820px);
    }
}

@media (max-width: 680px) {
    .icx-home-media-v2 {
        padding: 54px 0 58px;
    }

    .icx-home-media-v2::after {
        right: 18px;
        width: 70px;
    }

    .icx-home-media-v2 .icx-home-video__grid {
        gap: 26px;
    }

    .icx-home-media-v2 .icx-home-video__meta {
        gap: 7px 9px;
        margin-top: 15px;
        font-size: 0.69rem;
    }

    .icx-home-media-v2 .icx-home-video__meta > span:not(:first-child)::before {
        margin-right: 9px;
    }

    .icx-home-media-v2 .icx-home-video__copy h2 {
        margin: 14px 0 15px;
        font-size: clamp(2.15rem, 10.8vw, 3.05rem);
        line-height: 1.01;
    }

    .icx-home-media-v2 .icx-home-video__copy > p {
        font-size: 0.93rem;
        line-height: 1.64;
    }

    .icx-home-media-v2 .icx-home-video__actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 23px;
    }

    .icx-home-media-v2 .icx-home-video__actions .icx-button,
    .icx-home-video__hub-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .icx-home-video__visual {
        padding: 5px;
        border-radius: 3px 22px 3px 3px;
    }

    .icx-home-media-v2 .icx-home-video__frame {
        border-radius: 2px 17px 2px 2px;
    }

    .icx-home-media-v2 .icx-home-video__play {
        width: 62px;
        height: 62px;
        box-shadow:
            0 0 0 7px rgba(255, 255, 255, 0.08),
            0 12px 34px rgba(0, 0, 0, 0.26);
    }

    .icx-home-video__play-copy {
        right: 14px;
        bottom: 12px;
        left: 14px;
    }

    .icx-home-video__visual-footer {
        min-height: 46px;
        padding: 9px 8px 1px;
        font-size: 0.68rem;
    }
}

@media (max-width: 430px) {
    .icx-home-video__visual-footer > span {
        display: none;
    }

    .icx-home-video__visual-footer {
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .icx-home-media-v2 *,
    .icx-home-media-v2 *::before,
    .icx-home-media-v2 *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ICX HOMEPAGE MEDIA TITLE LINK V3 START */

.icx-home-media-v2 .icx-home-video__title-link {
    color: inherit;
    text-decoration: none;
    text-decoration-color: var(--icx-orange, #f58220);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.11em;
}

.icx-home-media-v2 .icx-home-video__title-link:hover,
.icx-home-media-v2 .icx-home-video__title-link:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--icx-orange, #f58220);
}

.icx-home-media-v2 .icx-home-video__title-link:focus-visible {
    outline: 3px solid var(--icx-orange, #f58220);
    outline-offset: 6px;
    border-radius: 2px;
}

/* ICX HOMEPAGE MEDIA TITLE LINK V3 END */
