/* Podcasts on the go: title and listen links above the campaign panel.
   The panel type is Acumin Pro Wide from Adobe Fonts; the site font stands in until a kit loads it. */
.f12-home .home-podcasts {
    --home-podcasts-display-font: "acumin-pro-wide", var(--f12-font-family-sans);
    display: grid;
    gap: var(--f12-space-8);
}

/* Inset to line up with the Featured Resources content above, which sits inside its band's padding. */
.f12-home .home-podcasts__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--f12-space-4) var(--f12-space-8);
    padding-inline: var(--f12-space-10);
}

.f12-home .home-podcasts__intro {
    flex: 1 1 360px;
    max-width: 720px;
}

.f12-home .home-podcasts__intro > * {
    margin: 0;
}

.f12-home .home-podcasts__listen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--f12-space-3);
}

.f12-home .home-podcasts__listen-label {
    margin-right: var(--f12-space-1);
    color: var(--f12-color-text-heading);
    font-size: var(--f12-font-size-xs);
    font-weight: var(--f12-font-weight-bold);
    letter-spacing: var(--f12-letter-spacing-caps);
    text-transform: uppercase;
}

.f12-home .home-podcasts__app {
    display: grid;
    place-items: center;
    width: 44px;
    aspect-ratio: 1;
    border: 1px solid var(--f12-color-border-subtle);
    border-radius: 50%;
    background: var(--f12-color-surface-page);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.f12-home .home-podcasts__app:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -10px rgba(16, 18, 22, 0.35);
}

.f12-home .home-podcasts__app svg { width: 22px; height: 22px; }

.f12-home .home-podcasts__app--spotify { color: #1db954; }

.f12-home .home-podcasts__app--apple { color: #9933cc; }

/* The grey panel, with live artwork text on the left and the covers fanned on the right. */
.f12-home .home-podcasts__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: var(--f12-space-8);
    aspect-ratio: 1920 / 520;
    min-height: 280px;
    padding: var(--f12-space-6) clamp(var(--f12-space-8), 6vw, var(--f12-space-16));
    border-radius: clamp(20px, 2.4vw, 32px);
    background: linear-gradient(90deg, #a5a5a5 0%, #c7c7c7 47%, #f0f0f0 100%);
    color: #fff;
}

.f12-home .home-podcasts__artwork {
    display: grid;
    gap: var(--f12-space-4);
    font-family: var(--home-podcasts-display-font);
}

.f12-home .home-podcasts__eyebrow {
    display: block;
    font-size: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
    .f12-home .home-podcasts__eyebrow { animation: home-podcasts-press-play 2800ms ease-in-out infinite; }
}

@keyframes home-podcasts-press-play {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

/* Sizes follow the artwork, relative to "podcasts": "on the" 0.76em light, "go" 1.47em bold.
   "on the go" sits under "podcasts", right-aligned to it, with "on the" raised beside the large "go". */
.f12-home .home-podcasts__wordmark {
    display: inline-grid;
    justify-self: start;
    width: max-content;
    margin: 0;
    color: inherit;
    font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.05em;
}

.f12-home .home-podcasts__wordmark-rest {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.12em;
    margin-top: -0.1em;
}

.f12-home .home-podcasts__wordmark-on {
    position: relative;
    top: -0.46em;
    font-size: 0.76em;
    font-weight: 300;
}

.f12-home .home-podcasts__wordmark-go {
    font-size: 1.47em;
    line-height: 0.82;
}

.f12-home .home-podcasts__covers {
    position: relative;
    container-type: inline-size;
    align-self: stretch;
    min-height: 220px;
}

/* Square cover art in a thin see-through grey rim. Each cover opens its podcast. */
.f12-home .home-podcasts__cover {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: min(46%, 260px);
    padding: 1.15cqi;
    border-radius: 9%;
    overflow: hidden;
    background: rgba(70, 70, 70, 0.28);
    box-shadow: 0 26px 34px -14px rgba(16, 18, 22, 0.42);
    transition:
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.f12-home .home-podcasts__cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7%;
}

/* The stack order never changes, so a hovered cover never jumps in front of another.
   Hovering the group fans the back covers out; the hovered cover slides further and lifts. */
.f12-home .home-podcasts__cover--left { z-index: 1; transform: translate(-100%, -46%) rotate(-12deg) scale(0.9); }

.f12-home .home-podcasts__cover--right { z-index: 1; transform: translate(0%, -46%) rotate(12deg) scale(0.9); }

.f12-home .home-podcasts__cover--front { z-index: 2; transform: translate(-50%, -54%); }

.f12-home .home-podcasts__covers:is(:hover, :focus-within) .home-podcasts__cover--left { transform: translate(-110%, -48%) rotate(-13deg) scale(0.9); }

.f12-home .home-podcasts__covers:is(:hover, :focus-within) .home-podcasts__cover--right { transform: translate(10%, -48%) rotate(13deg) scale(0.9); }

.f12-home .home-podcasts__covers .home-podcasts__cover--left:is(:hover, :focus-visible) { transform: translate(-126%, -54%) rotate(-15deg) scale(0.94); }

.f12-home .home-podcasts__covers .home-podcasts__cover--right:is(:hover, :focus-visible) { transform: translate(26%, -54%) rotate(15deg) scale(0.94); }

.f12-home .home-podcasts__covers .home-podcasts__cover--front:is(:hover, :focus-visible) { transform: translate(-50%, -58%) scale(1.03); }

.f12-home .home-podcasts__cover:is(:hover, :focus-visible) {
    box-shadow: 0 34px 40px -14px rgba(16, 18, 22, 0.5);
}

/* AirPods float around the panel edges. The back one is blurred for depth. */
.f12-home .home-podcasts__pod {
    position: absolute;
    z-index: 4;
    height: auto;
    pointer-events: none;
}

.f12-home .home-podcasts__pod--front {
    left: 4%;
    bottom: -5%;
    width: clamp(90px, 9.5vw, 140px);
    transform: rotate(-8deg);
    filter: drop-shadow(0 14px 18px rgba(16, 18, 22, 0.25));
}

.f12-home .home-podcasts__pod--back {
    left: 36%;
    top: 7%;
    width: clamp(48px, 5vw, 76px);
    filter: blur(2px) drop-shadow(0 8px 10px rgba(16, 18, 22, 0.18));
    opacity: 0.9;
}

/* The AirPods drift with the page scroll, tied to the panel crossing the screen. The near (sharp) one
   travels further and turns more than the far (blurred) one, which reads as depth. Scroll-driven CSS runs
   off the main thread; browsers without it, or with reduced motion, keep them still. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .f12-home .home-podcasts__panel {
            view-timeline-name: --home-podcasts-panel;
        }

        .f12-home .home-podcasts__pod {
            animation-timing-function: linear;
            animation-fill-mode: both;
            animation-timeline: --home-podcasts-panel;
            animation-range: entry 0% exit 100%;
            will-change: transform;
        }

        .f12-home .home-podcasts__pod--front { animation-name: home-podcasts-pod-near; }

        .f12-home .home-podcasts__pod--back { animation-name: home-podcasts-pod-far; }
    }
}

@keyframes home-podcasts-pod-near {
    from { transform: translate3d(-6px, 48px, 0) rotate(-16deg); }
    to { transform: translate3d(14px, -56px, 0) rotate(2deg); }
}

@keyframes home-podcasts-pod-far {
    from { transform: translate3d(8px, 22px, 0) rotate(14deg); }
    to { transform: translate3d(-8px, -24px, 0) rotate(-8deg); }
}

/* Phones and small tablets: one centred headline line, with the covers hanging below the panel. */
@media (max-width: 900px) {
    .f12-home .home-podcasts__panel {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: var(--f12-space-4);
        aspect-ratio: auto;
        min-height: 0;
        margin-bottom: 16%;
        padding: var(--f12-space-8) var(--f12-space-6) 0;
        background: linear-gradient(180deg, #a5a5a5 0%, #cdcdcd 50%, #f0f0f0 100%);
        text-align: center;
    }

    .f12-home .home-podcasts__wordmark {
        display: block;
        width: auto;
        font-size: clamp(2rem, 0.9rem + 5.6vw, 3.4rem);
        text-align: center;
    }

    .f12-home .home-podcasts__wordmark-rest { display: inline-flex; gap: 0.2em; margin: 0; }

    .f12-home .home-podcasts__wordmark-on { top: -0.08em; }

    .f12-home .home-podcasts__wordmark-go { font-size: 1em; }

    .f12-home .home-podcasts__covers {
        width: min(88%, 400px);
        min-height: 0;
        aspect-ratio: 16 / 9;
        margin-bottom: -16%;
    }

    .f12-home .home-podcasts__cover { width: 50%; }

    .f12-home .home-podcasts__pod--front { left: 2%; top: 52%; bottom: auto; width: 18%; max-width: 105px; }

    .f12-home .home-podcasts__pod--back { left: auto; right: 6%; top: 50%; width: 11%; max-width: 64px; }
}

/* The resources band goes full width here, so no inset. */
@media (max-width: 768px) {
    .f12-home .home-podcasts__header { padding-inline: 0; }

    .f12-home .home-podcasts__listen { justify-content: center; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .f12-home .home-podcasts__cover,
    .f12-home .home-podcasts__app {
        transition: none;
    }
}
