/* Homepage */

@font-face {
    font-family: 'AG Foreigner';
    src: url('../fonts/AGForeignerBoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

.dwch .dwch-reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.dwch .dwch-reveal.dwch-reveal-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
    .dwch .dwch-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.dwch .dwch-hero { padding: 0; }
.dwch .dwch-hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 320px;
    max-height: 720px;
    overflow: hidden;
    background: var(--dwch-ph);
}
.dwch .dwch-hero-banner picture { display: block; width: 100%; height: 100%; }
.dwch .dwch-hero-banner .dwch-media,
.dwch .dwch-hero-banner .dwch-ph { width: 100%; height: 100%; display: block; object-fit: cover; }
.dwch .dwch-hero-inner {
    padding-top: 140px;
    padding-bottom: 140px;
    text-align: center;
}
.dwch .dwch-hero-tagline {
    margin: 0 auto;
    max-width: 22em;
    font-family: 'AG Foreigner', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--dwch-strong);
}

.dwch .dwch-band { background: var(--dwch-tint); border-top: 1px solid #F0F0F0; border-bottom: 1px solid #F0F0F0; }
.dwch .dwch-band .dwch-section { padding-top: 72px; padding-bottom: 72px; }

.dwch main > .dwch-section { padding-top: 96px; padding-bottom: 40px; }
.dwch .dwch-explore-wrap.dwch-section { padding-top: 0; }
.dwch .dwch-explore-wrap { max-width: 1600px; }
.dwch .dwch-grid-explore {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}
.dwch .dwch-grid-explore > li { display: flex; min-width: 0; }
.dwch .dwch-grid-explore .dwch-card { width: 100%; }
/* Explore posters are 1080×1440 — keep full vertical frame */
.dwch .dwch-grid-explore .dwch-card-media-tall { aspect-ratio: 3 / 4; }
.dwch .dwch-explore-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 16px 22px;
    text-align: center;
}
.dwch .dwch-explore-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dwch-strong);
}
.dwch .dwch-explore-sub {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dwch-muted);
    line-height: 1.35;
}
.dwch .dwch-grid-explore .dwch-card:hover .dwch-explore-title {
    color: var(--dwch-accent);
}

.dwch .dwch-section-more { margin: 28px 0 0; text-align: center; }

.dwch .dwch-sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.dwch .dwch-sponsor { display: flex; align-items: center; justify-content: center; min-height: 136px; padding: 0; border: none; text-align: center; text-decoration: none; color: inherit; }
a.dwch-sponsor { transition: transform 0.2s ease, opacity 0.2s ease; }
a.dwch-sponsor:hover { transform: translateY(-3px); opacity: 0.92; }
.dwch .dwch-sponsor img { display: block; max-width: 100%; height: 136px; width: auto; object-fit: contain; }

.dwch .dwch-fact-body { padding: 20px 20px 24px; }
.dwch .dwch-fact-title { display: block; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--dwch-strong); }
.dwch .dwch-fact-more { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--dwch-accent); }

.dwch .dwch-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.dwch .dwch-country { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border: 2px solid var(--dwch-line); border-radius: var(--dwch-radius-box); font-size: 15px; font-weight: 500; color: var(--dwch-strong); }
.dwch .dwch-country-flag { display: block; width: 28px; height: 21px; flex: none; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }

.dwch .dwch-finals-nav { margin: 0 0 28px; }
.dwch .dwch-finals-menu-btn { display: none; width: auto; max-width: 100%; justify-content: center; }
.dwch .dwch-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.dwch .dwch-tab {
    min-height: 44px; padding: 0 16px; border: 2px solid var(--dwch-line); border-radius: var(--dwch-radius-box);
    background: #FFFFFF; color: var(--dwch-text); cursor: pointer;
    font-family: inherit;
    font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
}
.dwch .dwch-tab:hover { border-color: #CCCCCC; }
.dwch .dwch-tab[aria-selected="true"] { background: var(--dwch-accent); border-color: var(--dwch-accent); color: #FFFFFF; }
.dwch .dwch-tab:focus-visible { outline: 3px solid #1F6FD1; outline-offset: 2px; }
.dwch .dwch-panel[hidden] { display: none; }

@media (max-width: 900px) {
    .dwch .dwch-finals-nav { display: flex; flex-direction: column; align-items: center; }
    .dwch .dwch-finals-menu-btn { display: inline-flex; width: auto; margin-bottom: 12px; padding-left: 20px; padding-right: 20px; }
    .dwch .dwch-finals-nav .dwch-tabs { width: 100%; }
    .dwch .dwch-finals-nav .dwch-tabs {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .dwch .dwch-finals-nav.dwch-finals-open .dwch-tabs { display: flex; }
    .dwch .dwch-finals-nav .dwch-tab { width: 100%; justify-content: center; }

    .dwch .dwch-grid-explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .dwch .dwch-sponsors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        justify-items: center;
        align-items: center;
    }
    .dwch .dwch-sponsor { min-height: 120px; width: 100%; }
    .dwch .dwch-sponsor img { height: 120px; }
    .dwch .dwch-sponsor:last-child {
        grid-column: 1 / -1;
        max-width: 280px;
    }
}
@media (max-width: 600px) {
    .dwch main > .dwch-section { padding-top: 72px; padding-bottom: 32px; }
    .dwch .dwch-explore-wrap.dwch-section { padding-top: 0; }
    .dwch .dwch-grid-explore { grid-template-columns: 1fr; }
    .dwch .dwch-hero-banner { aspect-ratio: 9 / 16; min-height: 0; max-height: none; }
    .dwch .dwch-hero-inner { padding-top: 96px; padding-bottom: 96px; }
    .dwch .dwch-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .dwch .dwch-country { min-height: 44px; padding: 6px 10px; font-size: 13px; gap: 8px; }
    .dwch .dwch-country-flag { width: 24px; height: 18px; }

    .dwch .dwch-sponsors { gap: 36px 20px; }
    .dwch .dwch-sponsor { min-height: 110px; }
    .dwch .dwch-sponsor img { height: 110px; }
    .dwch .dwch-sponsor:last-child { max-width: 260px; }
}
