/* Homepage composition, scoped to avoid altering Programme and event pages. */
.home-hero { --brand-left-room: 44px; }
@media (max-width: 1000px) { .home-hero { --brand-left-room: 28px; } }
@media (max-width: 650px) { .home-hero { --brand-left-room: 18px; } }
.home-hero { position: relative; display: flex; flex-direction: column; isolation: isolate; background: var(--antigel-red); min-height: 460px; height: min(62svh, 560px); padding: 30px 44px 78px; }
.home-hero-actions {
    --home-hero-action-gap: .5rem;
    --home-hero-action-width: calc((100cqi - var(--home-hero-action-gap)) / 2);
    --home-hero-action-title-size: 4vw;
    --home-hero-action-art: clamp(64px, 12vw, 110px);
    --home-programme-art-inset: clamp(48px, 10.2vw, 94px);
    --home-hero-action-padding-end: clamp(7px, 1.1vw, 12px);
    --home-hero-action-background-inset: clamp(0px, 10vw - 2rem, 62px);
    position: absolute;
    inset: auto 0 0;
    z-index: 7;
    display: flex;
    justify-content: center;
    gap: var(--home-hero-action-gap);
    width: min(52rem, calc(100% - 2rem));
    container-type: inline-size;
    margin-inline: auto;
    transform: translateY(50%);
}
.home-hero-action {
    --home-hero-action-art-inset: var(--home-programme-art-inset);
    position: relative;
    flex: 0 0 var(--home-hero-action-width);
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: 9px var(--home-hero-action-padding-end) 9px var(--home-hero-action-art-inset);
    background: linear-gradient(to right, transparent var(--home-hero-action-background-inset), var(--home-hero-action-background) var(--home-hero-action-background-inset));
}
.home-programme-cta { --home-hero-action-background: var(--antigel-blue); color: #fff; }
.home-clubbing-cta {
    --home-hero-action-art-inset: clamp(50px, 13.2vw, 124px);
    --home-hero-action-background: #6900ff;
    color: #77ff00;
}
.home-hero-action:hover { --home-hero-action-background: #000; }
.home-hero-action:focus-visible { z-index: 1; }
.home-hero-action-art {
    --home-hero-action-art-size: calc(var(--home-hero-action-art) * .85);
    position: absolute;
    top: 50%;
    left: calc(var(--home-hero-action-art-inset) - var(--home-hero-action-art-size) - .375rem);
    display: block;
    width: var(--home-hero-action-art-size);
    height: var(--home-hero-action-art-size);
    translate: 0 -50%;
    scale: 1.1;
    pointer-events: none;
}
.home-programme-heart:not([data-motion-ready]) { background: #fff; mask: url('../animations/brand-heart-0.svg') center / contain no-repeat; }
.home-clubbing-bomb {
    --home-hero-action-art-size: calc(var(--home-hero-action-art) * 1.15);
    /* The portrait SVG leaves horizontal space in its square box. */
    left: calc(var(--home-hero-action-art-inset) - var(--home-hero-action-art-size) * .92 - .375rem);
    object-fit: contain;
    animation: home-clubbing-sway 3.6s ease-in-out infinite alternate;
}
.home-hero-action-copy { position: relative; display: grid; overflow-wrap: anywhere; }
.home-hero-action-title {
    /* Allow room for “Programme 2027” at Max Fett’s natural spacing. */
    --home-programme-title-width: calc(var(--home-hero-action-width) - var(--home-programme-art-inset) - var(--home-hero-action-padding-end));
    font: 900 min(31px, var(--home-hero-action-title-size), calc(var(--home-programme-title-width) / 9.2))/1 var(--antigel-display);
    text-wrap: balance;
    text-transform: uppercase;
}
.home-hero-action-subtitle { font: 900 clamp(12px, 2.2vw, 18px)/1.1 var(--antigel-display); padding-inline-end: 1em; text-wrap: balance; text-transform: uppercase; }
.home-hero-action > svg { position: absolute; inset: auto var(--home-hero-action-padding-end) 9px auto; width: clamp(11px, 2.4vw, 17px); height: auto; }
@media (max-width: 650px) {
    .home-hero:has(> .home-hero-actions > .home-clubbing-cta) { margin-block-end: clamp(90px, 16vw, 110px); }
    .home-hero-actions {
        --home-hero-action-gap: .75rem;
        --home-hero-action-width: calc(100cqi - clamp(20px, 8vw, 36px));
        /* Use the proportions of the 412px desktop button. */
        --home-hero-action-unit: calc(var(--home-hero-action-width) / 412);
        --home-hero-action-title-size: calc(31 * var(--home-hero-action-unit));
        --home-hero-action-art: calc(110 * var(--home-hero-action-unit));
        --home-programme-art-inset: calc(94 * var(--home-hero-action-unit));
        --home-hero-action-padding-end: calc(12 * var(--home-hero-action-unit));
        --home-hero-action-background-inset: calc(62 * var(--home-hero-action-unit));
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 1fr;
        width: min(23rem, calc(100% - 2.5rem));
    }
    .home-hero-actions:has(> .home-clubbing-cta) {
        /* Keep the centre of the first of the two equal rows on the hero edge. */
        transform: translateY(calc(75% + var(--home-hero-action-gap) / 4));
    }
    .home-hero-action {
        justify-self: start;
        width: var(--home-hero-action-width);
        padding-block: calc(9 * var(--home-hero-action-unit));
    }
    .home-clubbing-cta {
        --home-hero-action-art-inset: calc(124 * var(--home-hero-action-unit));
        justify-self: end;
    }
    .home-hero-action:only-child { justify-self: center; }
    .home-hero-action-subtitle { font-size: calc(18 * var(--home-hero-action-unit)); }
    .home-hero-action > svg {
        bottom: calc(9 * var(--home-hero-action-unit));
        width: calc(17 * var(--home-hero-action-unit));
    }
}
@keyframes home-clubbing-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .home-clubbing-bomb { animation: none; } }
.home-news { padding: 104px 44px 76px; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; gap: 20px; }
.home-section-heading h2 { font: 900 clamp(30px, 3vw, 45px)/1.05 var(--antigel-display); margin: 0; }
.home-eyebrow { font: 12px/1.5 var(--antigel-mono); text-transform: uppercase; }
.home-news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.home-news-card { --home-news-title-size: clamp(23.2px, 2.16vw, 38.4px); --home-news-title-half-line: calc(var(--home-news-title-size) * .525); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; text-align: left; min-width: 0; }
.home-news-card.home-news-title-compact { --home-news-title-size: clamp(20px, 1.8vw, 32px); }
.home-news-image { grid-area: 1 / 1; overflow: hidden; position: relative; aspect-ratio: 3/4; background: #f0f0ee; }
.home-news-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.65,.3,1); }
.home-news-card:hover img { transform: scale(1.035); }
.home-card-arrow { position: absolute; top: 0; right: 0; background: #fff; width: 42px; height: 42px; display: grid; place-items: center; transition: background .2s, color .2s; }
.home-news-card:hover .home-card-arrow { background: var(--antigel-blue); color: #fff; }
.home-news-body { grid-area: 2 / 1; padding-top: calc(var(--home-news-title-half-line) + 10px); }
/* Reuse Programme typography and title bands, anchored to the image bottom. */
.home-news-card h3 { grid-area: 1 / 1; align-self: end; position: relative; z-index: 1; padding-inline: .75rem; transform: translateY(var(--home-news-title-half-line)); font: 900 var(--home-news-title-size)/1.05 var(--antigel-display); margin: 0; min-width: 0; overflow-wrap: anywhere; }
.home-news-card h3 .antigel-framed-copy { --antigel-frame-color: var(--antigel-blue); --antigel-frame-background: var(--antigel-paper); --antigel-frame-overhang: .16em; --antigel-frame-padding-block: .07em; }
.home-news-card p { margin: 0; font-size: 15px; }
.home-news-placeholder { display: block; width: 60%; height: 60%; margin: 20%; background: var(--antigel-blue); mask: url('../images/snow.svg') center/contain no-repeat; }
.home-practical { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 60px; padding: 72px 44px 80px; }
.home-practical--single { grid-template-columns: minmax(0,1fr); }
.home-practical--single .home-music-card { max-width: 650px; }
.home-music-card { background: #000; color: #fff; min-height: 352px; position: relative; overflow: hidden; isolation: isolate; align-self: start; }
.home-music-preview { position: relative; min-height: inherit; padding: 30px 32px; }
.home-music-preview > .home-eyebrow { position: relative; z-index: 2; }
.home-music-card h2 { font: 900 clamp(39px,4.1vw,63px)/1.01 var(--antigel-display); position: relative; z-index: 2; margin: 40px 0; }
.home-music-art { position: absolute; right: -8px; top: 65px; width: 240px; height: 225px; z-index: -1; transform: rotate(9deg); }
.home-music-art > img { position: relative; z-index: 1; width: 150px; height: 213px; object-fit: cover; }
.home-music-sign { position: absolute; width: 190px; height: 190px; right: -12px; top: 10px; background: var(--antigel-blue); mask: url('../images/snow.svg') center/contain no-repeat; }
.home-music-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.home-music-bottom small { display: block; color: #b0b0ac; font-size: 12px; }
.home-music-bottom button { display: grid; place-items: center; flex-shrink: 0; background: #fff; color: #000; border-radius: 50%; width: 50px; height: 50px; }
/* Stretch the native play button across the preview, above the separate action bar. */
.home-music-bottom button::after { content: ''; position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.home-music-bottom button:focus-visible::after { outline: 2px solid #fff; outline-offset: -6px; }
.home-music-bottom button:hover { background: var(--antigel-red); }
.home-music-bottom button svg { width: 20px; height: 20px; fill: currentColor; }
.home-music-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; min-height: 44px; padding: 0 16px; border-top: 1px solid #333; font-size: 12px; }
.home-spotify-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.home-music-actions svg { flex-shrink: 0; }
.home-music-player iframe { display: block; border: 0; }
.home-music-actions > button { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 44px; margin-left: auto; font-size: inherit; }
.home-practical-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0; padding: 0 0 19px; border-bottom: 1px solid #000; }
.home-info { border-bottom: 1px solid #d6d6d4; }
.home-info summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: clamp(17px,1.5vw,23px); line-height: 1.18; padding: 19px 0; gap: 20px; }
.home-info summary::-webkit-details-marker { display: none; }
.home-info summary svg { flex-shrink: 0; transition: transform .2s; }
.home-info[open] summary svg { transform: rotate(180deg); }
.home-info summary:hover { color: var(--antigel-blue); }
.home-info summary:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.home-info-content { font-size: 16px; line-height: 1.5; padding-bottom: 20px; color: #555; overflow-wrap: anywhere; }
.home-info-content a { text-decoration: underline; }
.home-info-content > :first-child { margin-top: 0; }
.home-info-content > :last-child { margin-bottom: 0; }
.home-music-card [hidden] { display: none !important; }
@media (min-width: 1700px) { .home-hero { padding-inline: 5vw; } }
@media (max-width: 1100px) { .home-practical { gap: 32px; } .home-music-art { right: -75px; opacity: .7; } }
@media (max-width: 1000px) { .home-hero { min-height: 430px; height: min(62svh,520px); padding: 24px 28px 76px; } .home-news { padding: 86px 28px 60px; } .home-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; } .home-news-card p { font-size: 14px; } }
@media (max-width: 800px) { .home-practical { padding: 50px 28px; gap: 30px; grid-template-columns: minmax(0,1fr); } .home-music-art { right: 45px; opacity: 1; } .home-music-card h2 { font-size: 54px; } }
@media (max-width: 650px) {
    .home-hero { min-height: 400px; height: min(68svh,500px); padding: 22px 18px 66px; }
    .home-news { padding: 64px 18px 36px; }
    .home-section-heading { align-items: center; margin-bottom: 25px; }
    .home-section-heading > .home-eyebrow { display: none; }
    .home-news-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; margin-right: -18px; padding-right: 18px; }
    .home-news-card { --home-news-title-size: clamp(24px, 4.6vw, 28px); flex: 0 0 62%; scroll-snap-align: start; }
    .home-news-card.home-news-title-compact { --home-news-title-size: clamp(21px, 4vw, 25px); }
    .home-news-card h3 { padding-inline: .5rem; }
    .home-news-card p { font-size: 14px; }
    .home-news-card .home-card-arrow { width: 36px; height: 36px; }
    .home-practical { padding: 40px 18px 45px; gap: 33px; }
    .home-music-preview { padding: 25px; }
    .home-music-card { min-height: 335px; }
    .home-music-card h2 { font-size: 49px; }
    .home-music-art { right: -70px; top: 75px; opacity: .75; }
    .home-info summary { font-size: 18px; padding: 18px 0; }
}
@media (max-width: 767px) {
    .home-hero { padding-top: 0; }
    .home-hero > .site-brand { margin-inline: auto; }
}
@media (max-width: 380px) {
    .home-music-actions { padding-inline: 12px; font-size: 11px; }
    .home-music-actions a, .home-music-actions > button { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .home-news-image img, .home-card-arrow, .home-info summary svg { transition: none; } }
