/* Subject banners reserve both columns before local artwork loads. */
.page-banner:has(> .r8-banner-subject) {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 50px);
    min-height: clamp(260px, 27vw, 376px);
    padding: clamp(22px, 2.6vw, 36px) max(var(--gutter), calc((100% - var(--frame)) / 2));
}
.page-banner:has(> .r8-banner-subject) > .frame {
    width: 100%;
    margin: 0;
}
.r8-banner-subject {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    gap: 8px;
    border-radius: 16px;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
}
.r8-banner-stage {
    display: grid;
    place-items: center;
    width: 100%;
    height: clamp(150px, 17vw, 242px);
    position: relative;
    isolation: isolate;
    perspective: 800px;
    background: radial-gradient(ellipse 47% 48% at 50% 58%, #58a46942, transparent);
}
.r8-banner-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 19% 3%;
    height: 12%;
    border-radius: 50%;
    border-bottom: 1px solid #a4e0a277;
    background: radial-gradient(ellipse, #041007cc, #34673855 50%, transparent 72%);
}
.r8-banner-stage img {
    width: 84%;
    height: 95%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    filter: drop-shadow(3px 8px 6px #03120899);
}
.r8-banner-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid #62866d;
    border-radius: 24px;
    background: #07180ee8;
    font-size: .9375rem;
    line-height: 1.35;
    font-weight: 700;
}
.r8-banner-label svg { width: 17px; height: 17px; color: var(--signal); }
.r8-banner-subject:is(:hover, :focus-visible) .r8-banner-label { border-color: var(--signal); }
.r8-banner-subject:focus-visible { outline-offset: 2px; }

@media (min-width: 601px) and (prefers-reduced-motion: no-preference) {
    .page-banner:not(.r8-editorial-banner) .r8-banner-stage img { animation: r8-subject-lift 4s ease-in-out 1; }
    .page-banner:not(.r8-editorial-banner) .r8-banner-stage::before { animation: r8-subject-shadow 4s ease-in-out 1; }
}
@keyframes r8-subject-lift {
    0%, 100% { transform: none; }
    25% { transform: translateY(-7px) rotateY(12deg) rotateZ(2.5deg); }
    50% { transform: translateY(-13px); }
    75% { transform: translateY(-7px) rotateY(-12deg) rotateZ(-2.5deg); }
}
@keyframes r8-subject-shadow {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(.85); }
}
@media (max-width: 600px) {
    .page-banner:has(> .r8-banner-subject) {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        min-height: auto;
        padding-block: 24px 16px;
        background-image: linear-gradient(90deg, #07110df5 30%, #07110dcc 78%, #07110d66), url("images/atmosphere-v2.webp");
    }
    .r8-banner-subject {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        min-height: 68px;
        padding: 2px 6px 2px 14px;
        border: 1px solid #567761;
        background: #07180eee;
    }
    .r8-banner-stage { width: clamp(75px, 24vw, 115px); height: 62px; flex: none; }
    .r8-banner-stage img { width: 100%; height: 100%; }
    .r8-banner-label {
        justify-content: start;
        border: 0;
        border-radius: 0;
        padding: 4px 0;
        background: transparent;
        font-size: .875rem;
    }
}
