body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #060816 0%, #111b3a 45%, #2b1a4a 100%);
    color: #f5f2ff;
    overflow-x: hidden;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(16, 23, 44, 0.82) 0%, rgba(90, 62, 159, 0.7) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.site-header .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: 16px;
}

.site-header .logo .brand-logo {
    height: 78px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-nav a {
    color: #f7f4ff;
    text-decoration: none;
    margin-left: 18px;
    font-size: 1rem;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 240ms cubic-bezier(.16,.84,.3,1), box-shadow 240ms cubic-bezier(.2,.9,.2,1), background-color 200ms ease, color 0.25s ease, border-color 0.25s ease;
    will-change: transform, box-shadow;
    transform-origin: center;
}

.header-nav a:hover,
.header-nav a:focus-visible {
    background: linear-gradient(90deg, rgba(165, 128, 232, 0.35), rgba(56, 88, 176, 0.35));
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6,8,30,0.38);
    outline: none;
}

.header-nav a:focus:not(:focus-visible):not(:hover) {
    transform: none;
    box-shadow: none;
    outline: none;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 6px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f7f4ff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background-color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.social-link:hover,
.social-link:focus-visible {
    background: linear-gradient(90deg, rgba(165, 128, 232, 0.35), rgba(56, 88, 176, 0.35));
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
    outline: none;
}

.social-link:focus:not(:focus-visible):not(:hover) {
    transform: none;
    box-shadow: none;
    outline: none;
}

.social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

/* Reusable small "pop-out" interaction for buttons */
.pop-out {
    transition: transform 240ms cubic-bezier(.16,.84,.3,1), box-shadow 240ms cubic-bezier(.2,.9,.2,1), background-color 200ms ease;
    will-change: transform, box-shadow;
    transform-origin: center;
}

.pop-out:hover,
.pop-out:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6,8,30,0.38);
    outline: none;
}

.pop-out:focus:not(:focus-visible):not(:hover) {
    transform: none;
    box-shadow: none;
    outline: none;
}

.pop-out:active {
    transform: translateY(-1px);
    transition-duration: 120ms;
}

/* visible focus ring for keyboard users */
.pop-out:focus-visible {
    box-shadow: 0 12px 28px rgba(6,8,30,0.38), 0 0 0 4px rgba(165,128,232,0.12);
}

.lang-switch {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #f7f4ff;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 78px;
    justify-content: center;
}

.flag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.flag-icon {
    width: 18px;
    height: 12px;
    display: block;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.lang-switch:hover,
.lang-switch:focus-visible {
    background: linear-gradient(90deg, rgba(165, 128, 232, 0.35), rgba(56, 88, 176, 0.35));
    outline: none;
}

.lang-switch:focus:not(:focus-visible):not(:hover) {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0c1330;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(86, 46, 155, 0.48) 0%, rgba(7, 11, 29, 0.2) 45%, rgba(3, 8, 24, 0.84) 100%);
    z-index: 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    filter: brightness(1.04) saturate(1.08);
    transition: opacity 1.2s ease-in-out, filter 1.2s ease-in-out;
    z-index: 0;
}

.hero-background-current {
    opacity: 1;
}

.hero-background-next {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.08) 0%, rgba(7, 10, 24, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    padding: 40px 44px;
    background: linear-gradient(180deg, rgba(4, 7, 17, 0.28) 0%, rgba(4, 7, 17, 0.42) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.hero-lockup {
    display: block;
    width: min(100%, 620px);
    height: auto;
    margin: 0 auto 24px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.3));
}

.festival-hero-title {
    margin: 0 0 24px;
    text-align: center;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 0 24px rgba(138, 111, 255, 0.35);
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.02;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 0 24px rgba(138, 111, 255, 0.35);
}

.hero-description {
    margin: 24px auto 0;
    max-width: 780px;
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    line-height: 1.75;
    color: #f8f5ff;
    font-weight: 600;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.countdown {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-date {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.countdown-label {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f0e9ff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.countdown-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    margin-top: 18px;
    padding: 18px 36px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
}

.hero-action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.countdown-item {
    min-width: 96px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(6, 10, 24, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.countdown-item span {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.countdown-item small {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #d8c2ff;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body, html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

main {
    padding-top: 100px;
}

.content-section,
.hero {
    scroll-margin-top: 100px;
}

.content-section {
    padding: 90px 28px;
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(12, 19, 48, 0.95) 0%, rgba(27, 31, 69, 0.92) 100%);
    border: 1px solid rgba(165, 128, 232, 0.2);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

.content-section h2 {
    margin: 0 0 14px;
    font-size: 2.2rem;
    color: #f3ebff;
}

.event-section {
    text-align: center;
}

.event-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 16px 28px;
    border: 2px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.event-button:hover,
.event-button:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: none;
}

.mission-section {
    text-align: center;
}

.mission-section h2 {
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

.mission-section p:not(.mission-kicker) {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    color: #cfc7ef;
    font-size: 1.08rem;
    line-height: 1.8;
}

.mission-kicker {
    margin: 0 0 10px;
    color: #d8c2ff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.homepage-gallery-section {
    padding-top: 18px;
    padding-bottom: 18px;
}

.accommodation-heading {
    margin-top: 72px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 30px;
    text-align: center;
}

.accommodation-heading h2 {
    margin: 0 0 16px;
    color: #f3ebff;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 1.05;
}

.accommodation-heading-inside {
    position: relative;
    z-index: 1;
    margin: 0 auto 18px;
    padding-top: 24px;
    color: #f3ebff;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    text-align: center;
    text-shadow: 0 1px 0 rgba(17, 19, 33, 0.7), 0 3px 12px rgba(17, 19, 33, 0.38);
}

.accommodation-section {
    position: relative;
    min-height: 100vh;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 120px 24px 80px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 0;
}

.accommodation-background,
.accommodation-overlay {
    position: absolute;
    inset: 0;
}

.accommodation-background {
    background-position: center;
    background-size: cover;
    border-radius: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: -2;
}

.accommodation-background-current {
    opacity: 1;
}

.accommodation-overlay {
    background: linear-gradient(90deg, rgba(5, 8, 20, 0.9), rgba(5, 8, 20, 0.48) 58%, rgba(5, 8, 20, 0.26));
    z-index: -1;
}

.accommodation-content {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    margin: 0 auto;
    text-align: center;
}

.accommodation-switcher {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 820px);
    min-height: 78px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 18px;
}

.accommodation-tab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 78px;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accommodation-tab-category {
    display: block;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 0.9;
}

.accommodation-tab-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.accommodation-tab:hover,
.accommodation-tab:focus-visible,
.accommodation-tab.is-active {
    border-color: #d8c2ff;
    background: rgba(165, 128, 232, 0.28);
    outline: none;
}

.accommodation-panel {
    width: min(100%, 820px);
    min-height: 500px;
    margin-right: auto;
    margin-left: auto;
    padding: 34px;
    border: 1px solid rgba(165, 128, 232, 0.24);
    border-radius: 0;
    background: rgba(7, 11, 29, 0.68);
    backdrop-filter: blur(8px);
    text-align: center;
    box-sizing: border-box;
}

.accommodation-panel[hidden] {
    display: none;
}

.accommodation-logo {
    width: min(100%, 270px);
    max-height: 64px;
    margin-bottom: 24px;
    object-fit: contain;
    object-position: center;
}

.accommodation-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.accommodation-logo-link {
    display: inline-block;
    line-height: 0;
}

.accommodation-logo-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 6px;
}

.accommodation-click-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    color: #d8c2ff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.accommodation-click-arrow {
    display: inline-block;
    font-size: 2.4rem;
    line-height: 0.8;
    transform: translateY(1px);
}

.accommodation-logo-link--hessnery {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(7, 11, 29, 0.06);
}

.accommodation-logo-link--hessnery .accommodation-logo {
    margin-bottom: 0;
}

.accommodation-logo-link--dzingel {
    padding: 12px 18px;
    background: rgba(12, 18, 34, 0.95);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.accommodation-logo-link--dzingel .accommodation-logo {
    margin-bottom: 0;
    filter: brightness(1.08);
}

.accommodation-text-logo {
    display: inline-block;
    margin-bottom: 0;
    color: #121a2f;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: uppercase;
}

.accommodation-panel > p:not(.accommodation-address) {
    max-width: 680px;
    margin: 0 auto 20px;
    color: #f0ebff;
    font-size: 1.2rem;
    line-height: 1.75;
}

.accommodation-hotel-header {
    margin-bottom: 18px;
    text-align: center;
}

.accommodation-hotel-category {
    margin: 0 0 10px;
    color: #d8c2ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.58em;
    text-transform: uppercase;
}

.accommodation-hotel-name {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    line-height: 1.1;
}

.accommodation-hotel-name span {
    color: #d8c2ff;
    letter-spacing: 0.12em;
}

.accommodation-hotel-summary {
    max-width: 680px;
    margin: 0 auto 24px;
    color: #f0ebff;
    font-size: 1.08rem;
    line-height: 1.75;
}

.accommodation-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto 24px;
    text-align: left;
}

.accommodation-fact {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.accommodation-fact-label {
    display: block;
    margin-bottom: 8px;
    color: #d8c2ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.accommodation-fact strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.accommodation-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0;
}

.accommodation-amenities {
    margin: 30px auto 26px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.accommodation-amenities-title {
    margin: 0 0 8px !important;
    color: #d8c2ff !important;
    font-size: 0.8rem !important;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.accommodation-amenities h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 1.6rem;
}

.accommodation-amenities h3 em {
    color: #d8c2ff;
    font-weight: 400;
}

.accommodation-amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    text-align: left;
}

.accommodation-amenities-grid span {
    display: block;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: #cfc7ef;
    font-size: 0.82rem;
    line-height: 1.45;
    box-sizing: border-box;
}

.accommodation-amenity-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 12px;
    fill: none;
    stroke: #d8c2ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.accommodation-amenities-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 0.86rem;
}

.accommodation-features span {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 0.92rem;
}

.accommodation-panel--dzingel {
    border: 1px solid rgba(165, 128, 232, 0.24);
    background: rgba(7, 11, 29, 0.68);
    backdrop-filter: blur(8px);
}

.accommodation-address {
    display: none;
}


@media (max-width: 700px) {
    .hero-content {
        box-sizing: border-box;
        width: calc(100% - 24px);
        max-width: none;
        padding: 28px 16px;
    }

    .hero-lockup {
        width: 100%;
    }

    .hero-action-buttons {
        width: 100%;
        gap: 10px;
    }

    .hero-register-button {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        margin-top: 12px;
        padding: 14px 18px;
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .accommodation-section {
        box-sizing: border-box;
        padding: 100px 18px 70px;
    }

    .accommodation-content,
    .accommodation-switcher,
    .accommodation-panel {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }

    .accommodation-switcher {
        grid-template-columns: 1fr;
    }

    .accommodation-panel {
        padding: 24px 18px;
    }

    .accommodation-fact-grid {
        grid-template-columns: 1fr;
    }

    .accommodation-amenities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .event-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .event-button {
        min-width: 0;
    }

}

.about-year-page {
    max-width: 1200px;
}

.about-main > h1 {
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 0 28px;
    font-size: 2.2rem;
    color: #f3ebff;
}

.about-year-page .year-header h1,
.about-year-page .year-header h2 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-align: center;
    color: #f3ebff;
    margin-bottom: 5px;
}

.about-year-page .year-date {
    margin-top: 0 0 5px;
    margin-bottom: 0 0 40px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cfc7ef;
}

.about-year-page .year-summary {
    margin: 0 0 24px;
    text-align: center;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #cfc7ef;
}

.about-year-page .year-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
}

.about-year-page .top-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f7f4ff;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.about-year-page .year-results-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.about-year-page .year-results-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f7f4ff;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.about-year-page .year-results-link:hover,
.about-year-page .year-results-link:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(165, 128, 232, 0.35), rgba(56, 88, 176, 0.35));
    box-shadow: 0 12px 28px rgba(6, 8, 30, 0.38);
    outline: none;
}

.about-year-page .top-back-link:hover,
.about-year-page .top-back-link:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(165, 128, 232, 0.35), rgba(56, 88, 176, 0.35));
    box-shadow: 0 12px 28px rgba(6, 8, 30, 0.38);
    outline: none;
}

.about-year-page .year-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    grid-auto-flow: dense;
    gap: 6px;
    margin-top: 28px;
    align-items: stretch;
    background: rgba(10, 16, 31, 0.25);
    border-radius: 18px;
}

.about-year-page .year-gallery-item {
    margin: 0;
    min-height: 0;
    background: linear-gradient(135deg, rgba(9, 13, 29, 0.95), rgba(30, 21, 46, 0.9));
    border-radius: 0;
    align-self: stretch;
    grid-column: auto;
}

.about-year-page .year-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.about-year-page .year-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(15, 20, 38, 0.95), rgba(25, 32, 60, 0.95));
    opacity: 1;
    transition: opacity 220ms ease;
    color: transparent;
    background-color: rgba(9, 13, 29, 0.9);
}

.about-year-page .year-gallery-item a {
    position: relative;
}

.about-year-page .year-gallery-item a::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: rgba(255, 255, 255, 0.9);
    animation: gallery-spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 180ms ease;
    z-index: 1;
}

@keyframes gallery-spin {
    to {
        transform: rotate(360deg);
    }
}

.about-year-page .year-gallery-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.about-year-page .year-gallery-jump-controls,
.about-year-page .year-gallery-page-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.about-year-page .year-gallery-page-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #f5efff;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.about-year-page .year-gallery-page-arrow {
    min-width: 46px;
    padding-inline: 12px;
    font-size: 1.3rem;
    line-height: 1;
}

.about-year-page .year-gallery-page-jump {
    width: 72px;
    min-width: 72px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(26, 22, 39, 0.6);
    color: #f5efff;
    border-radius: 999px;
    padding: 10px 12px;
    font: inherit;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.about-year-page .year-gallery-page-jump::-webkit-outer-spin-button,
.about-year-page .year-gallery-page-jump::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.about-year-page .year-gallery-page-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.about-year-page .year-gallery-page-button:not(:disabled):hover,
.about-year-page .year-gallery-page-button:not(:disabled):focus-visible {
    background: rgba(165, 128, 232, 0.18);
    box-shadow: 0 12px 28px rgba(6, 8, 30, 0.28);
    transform: translateY(-2px);
    outline: none;
}

.about-year-page .year-gallery-page-label {
    font-size: 0.93rem;
    color: #ddd0ff;
    min-width: 72px;
    text-align: center;
}

@media (max-width: 640px) {
    .about-year-page .year-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .about-year-page .year-results-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .about-year-page .year-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

.about-year-page .year-gallery-item a:hover,
.about-year-page .year-gallery-item a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(6, 8, 30, 0.36);
    outline: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 17, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index: 999;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: min(90vw, 1100px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    background: rgba(255, 255, 255, 0.04);
}

.lightbox-navigation {
    position: fixed;
    top: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(247, 244, 255, 0.16);
    color: #fff;
    font-size: 1.8rem;
    line-height: 0;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 180ms ease, opacity 180ms ease;
}

.lightbox-navigation-icon {
    display: block;
    transform: translateY(-2px);
}

.lightbox-previous {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-navigation:hover,
.lightbox-navigation:focus-visible {
    background: rgba(247, 244, 255, 0.3);
    outline: none;
}

.lightbox-navigation:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .lightbox-navigation {
        width: 42px;
        height: 42px;
    }

    .lightbox-previous {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(247, 244, 255, 0.16);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

body.modal-open {
    overflow: hidden;
}

.content-section p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #cfc7ef;
}

.handstand-blocks-heading {
    text-align: center;
}

.handstand-blocks-table {
    width: 100%;
    min-width: 620px;
    margin-top: 28px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #f3ebff;
    text-align: center;
}

.handstand-blocks-table th,
.handstand-blocks-table td {
    padding: 16px 12px;
    border: 1px solid rgba(165, 128, 232, 0.35);
}

.handstand-blocks-table th:first-child,
.handstand-blocks-table td:first-child {
    width: 18%;
}

.handstand-blocks-table th {
    background: rgba(165, 128, 232, 0.2);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.handstand-blocks-level-link {
    color: inherit;
    text-decoration: none;
}

.handstand-blocks-level-link:hover,
.handstand-blocks-level-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.handstand-blocks-table td {
    color: #cfc7ef;
}

.handstand-blocks-rules {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.handstand-blocks-rules-label {
    margin: 0;
    color: #f3ebff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.handstand-blocks-rule-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.handstand-blocks-rule-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.handstand-blocks-rule-button:hover,
.handstand-blocks-rule-button:focus-visible {
    background: rgba(255, 255, 255, 0.28);
}

.festival-photo-strip {
    padding-top: 78px;
}

.festival-intro {
    max-width: 820px;
    margin: 0 auto;
}

.festival-kicker {
    margin: 0 0 10px;
    color: #d8c2ff;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.festival-intro h2,
.festival-info-section h3 {
    color: #f3ebff;
}

.festival-intro p:not(.festival-kicker),
.festival-info-block > p:not(.festival-kicker),
.festival-prize-banner > p:not(.festival-kicker) {
    margin: 0 0 16px;
    color: #cfc7ef;
    font-size: 1.08rem;
    line-height: 1.8;
}

.festival-photo-strip,
.festival-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    margin-top: 52px;
}

.festival-photo-strip a,
.festival-gallery a {
    display: block;
    grid-column: span 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.festival-photo-strip a:nth-child(1),
.festival-gallery a:nth-child(1) {
    grid-column: span 7;
}

.festival-photo-strip a:nth-child(2),
.festival-gallery a:nth-child(2) {
    grid-column: span 5;
}

.festival-photo-strip a:nth-child(6),
.festival-gallery a:nth-child(6) {
    grid-column: span 5;
}

.festival-photo-strip a:nth-child(7),
.festival-gallery a:nth-child(7) {
    grid-column: span 7;
}

.festival-photo-strip img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 220ms ease;
}

.festival-photo-strip a:hover img,
.festival-photo-strip a:focus-visible img,
.festival-gallery a:hover img,
.festival-gallery a:focus-visible img {
    transform: scale(1.04);
}

.festival-photo-strip a:focus-visible,
.festival-gallery a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.festival-info-block {
    margin-top: 74px;
}

.festival-info-section h3 {
    font-size: 2rem;
    line-height: 1.15;
    text-transform: uppercase;
}

.festival-feature-grid,
.festival-audience-grid,
.festival-steps-grid,
.festival-criteria-grid {
    display: grid;
    gap: 14px;
}

.festival-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.festival-feature-card,
.festival-step,
.festival-criteria-grid > div,
.festival-audience-grid > div {
    padding: 22px;
    border: 1px solid rgba(165, 128, 232, 0.24);
    background: rgba(7, 11, 29, 0.42);
}

.festival-feature-card {
    min-height: 230px;
}

.festival-feature-card--accent {
    background: rgba(165, 128, 232, 0.18);
}

.festival-feature-card h4,
.festival-step h4 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.festival-feature-card p,
.festival-step p,
.festival-criteria-grid span,
.festival-audience-grid span {
    margin: 0;
    color: #cfc7ef;
    line-height: 1.65;
}

.festival-audience-grid,
.festival-criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.festival-audience-grid strong,
.festival-criteria-grid strong {
    display: block;
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.festival-audience-grid span,
.festival-criteria-grid span {
    display: block;
}

.festival-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    -webkit-overflow-scrolling: touch;
}

.festival-table-note {
    margin: 24px 0 0 !important;
    color: #f3ebff !important;
    font-size: 0.98rem !important;
    font-style: italic;
}

.festival-eligibility-note {
    margin: 20px 0 0 !important;
    padding: 14px 18px;
    border-left: 3px solid #d8c2ff;
    background: rgba(165, 128, 232, 0.13);
    color: #f3ebff !important;
    font-size: 1rem !important;
}

.festival-eligibility-note strong {
    font-weight: 800;
}

.festival-age-table {
    width: 100%;
    min-width: 620px;
    table-layout: fixed;
    border-collapse: collapse;
    color: #f3ebff;
    text-align: center;
}

.festival-age-table th,
.festival-age-table td {
    padding: 16px 12px;
    border: 1px solid rgba(165, 128, 232, 0.35);
}

.festival-age-table th:first-child,
.festival-age-table td:first-child {
    width: 18%;
}

.festival-age-table th {
    background: rgba(165, 128, 232, 0.2);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.festival-grade-link {
    color: inherit;
    text-decoration: none;
}

.festival-age-table td,
.festival-age-table th[scope="row"] {
    font-size: 1rem;
}

.festival-grade-link:hover,
.festival-grade-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.festival-age-table td {
    color: #cfc7ef;
}

.festival-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.festival-step {
    min-height: 245px;
}

.festival-step > strong {
    display: block;
    margin-top: 18px;
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.6;
}

.festival-callout {
    margin: 24px 0 0 !important;
    padding: 18px 22px;
    border-left: 3px solid #d8c2ff;
    background: rgba(165, 128, 232, 0.13);
    color: #f3ebff !important;
}

.festival-callout strong {
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.festival-prize-banner {
    margin-top: 74px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(110deg, rgba(165, 128, 232, 0.28), rgba(12, 19, 48, 0.3));
    text-align: center;
}

.festival-prize-banner h3 {
    margin-bottom: 12px;
}

.festival-prize-banner > p:last-child {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.festival-gallery {
    margin-top: 28px;
}

.festival-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 220ms ease;
}

.festival-gallery a {
    display: block;
    overflow: hidden;
}

@media (max-width: 900px) {
    .festival-feature-grid,
    .festival-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 640px) {
    .festival-info-section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .festival-feature-grid,
    .festival-audience-grid,
    .festival-steps-grid,
    .festival-criteria-grid {
        grid-template-columns: 1fr;
    }

    .festival-gallery,
    .festival-photo-strip {
        grid-template-columns: 1fr;
    }

    .festival-gallery a:nth-child(n),
    .festival-photo-strip a:nth-child(n) {
        grid-column: span 1;
    }

    .festival-prize-banner {
        padding: 28px 20px;
    }

    .festival-table-wrap {
        margin: 20px 0;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(165, 128, 232, 0.28);
        scrollbar-color: rgba(216, 194, 255, 0.7) rgba(165, 128, 232, 0.12);
    }

    .festival-age-table,
    .handstand-blocks-table {
        width: 560px;
        min-width: 560px;
    }

    .festival-age-table th,
    .festival-age-table td,
    .handstand-blocks-table th,
    .handstand-blocks-table td {
        padding: 11px 8px;
        font-size: 0.86rem;
    }

    .festival-age-table th:first-child,
    .festival-age-table td:first-child,
    .handstand-blocks-table th:first-child,
    .handstand-blocks-table td:first-child {
        width: 24%;
        overflow-wrap: anywhere;
    }
}

.about-main {
    padding-top: 120px;
    padding-bottom: 60px;
}

.about-main:has(> .about-year-page) {
    padding-top: 120px;
}

.about-main > .about-year-page {
    margin-top: 32px;
    padding-top: 90px;
}

.about-hero {
    text-align: center;
}

/* Timeline updates: big clickable year with background image */
.timeline .timeline-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.timeline .timeline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 140px;
}
.timeline .timeline-center {
    width: 520px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline .timeline-year-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 480px;
    height: 300px;
    background-size: 140%;
    background-position: center center;
    text-decoration: none;
    border-radius: 18px;
    box-shadow: none;
    border: none;
    transition: transform 220ms cubic-bezier(.16,.84,.3,1), box-shadow 220ms ease;
    position: relative;
    overflow: hidden;
}
.timeline .timeline-year-link:hover,
.timeline .timeline-year-link:focus-visible {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 60px rgba(6,8,30,0.5);
}
.timeline .timeline-year-link .timeline-year {
    font-size: 6.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 6px 20px rgba(0,0,0,0.6), 0 0 28px rgba(138,111,255,0.18);
    z-index: 2;
    line-height: 0.9;

    /* remove boxed background/padding/border coming from the generic .timeline-year rule */
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}
.timeline .timeline-year-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.28));
    z-index: 1;
}

@media (max-width: 720px) {
    .timeline .timeline-center { width: 92%; }
    .timeline .timeline-year-link { width: 100%; height: 160px; background-size: cover; }
    .timeline .timeline-year-link .timeline-year { font-size: 3.8rem; }
}


.team-section h2 {
    text-align: center;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.team-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 14px 14px 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(110, 112, 192, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.team-photo-wrap {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: rgba(12, 17, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.team-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-role {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d3c2ff;
}

.team-card h3 {
    margin: 0;
    margin-bottom: 12px;
    font-size: 1.45rem;
    color: #ffffff;
}

.partners-section {
    width: 100%;
    padding: 15px 0 18px;
}

.partners-bar {
    position: relative;
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(90deg, rgba(12, 18, 40, 0.9) 0%, rgba(29, 21, 53, 0.9) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.partners-bar::before,
.partners-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 1;
    pointer-events: none;
}

.partners-bar::before {
    left: 0;
    background: linear-gradient(90deg, rgba(12, 18, 40, 0.92), rgba(12, 18, 40, 0));
}

.partners-bar::after {
    right: 0;
    background: linear-gradient(270deg, rgba(12, 18, 40, 0.92), rgba(12, 18, 40, 0));
}

.partners-track {
    display: flex;
    width: max-content;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.partners-group {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
}

.partners-bar:hover .partners-track {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 96px;
    padding: 0 18px;
    flex-shrink: 0;
    border-radius: 14px;
}

.partner-item--light {
    /* removed white gradient to display improved logos cleanly */
    background: transparent;
    box-shadow: none;
}

.partner-item--eevl {
    min-width: 260px;
}

.partner-item--eevl .partner-logo {
    max-width: 220px;
    max-height: 88px;
}

.partner-logo {
    display: block;
    max-width: 180px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
    opacity: 0.95;
}

.partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

@media (max-width: 640px) {
    .partners-bar {
        width: 100%;
    }

    .partners-bar::before,
    .partners-bar::after {
        width: 28px;
    }

    .partners-group {
        gap: 14px;
    }

    .partner-item {
        min-width: 150px;
        height: 76px;
        padding: 0 12px;
        border-radius: 10px;
    }

    .partner-item--eevl {
        min-width: 175px;
    }

    .partner-logo {
        max-width: 125px;
        max-height: 58px;
    }

    .partner-item--eevl .partner-logo {
        max-width: 150px;
        max-height: 62px;
    }
}

.footer {
    text-align: center;
    padding: 32px 20px;
    box-sizing: border-box;
    background: linear-gradient(90deg, rgba(7, 10, 24, 0.95) 0%, rgba(34, 24, 63, 0.95) 100%);
    color: #cbbce8;
    width: 100%;
}

.footer-branding {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-emblem {
    width: 64px;
    height: 64px;
    display: block;
    opacity: 0.95;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
}

/* Footer layout: socials, hosted-by and contacts side-by-side */
.footer-actions {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    margin: 18px auto 0 auto;
    max-width: 1100px;
    width: calc(100% - 40px);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-hosted {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #dfd2ff;
    justify-self: center;
    padding: 12px 18px 10px;
    border-radius: 16px;
    /* removed decorative gradient so logos sit on a neutral background */
    background: transparent;
    box-shadow: none;
}

.footer-hosted .hosted-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* restore hosted label sizing/spacing to match previous layout */
.footer-hosted .hosted-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    line-height: 1;
    margin: 0;
}

.footer-hosted .hosted-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.hosted-logo {
    width: 170px;
    max-width: 170px;
    height: auto;
    display: block;
    opacity: 0.95;
}

.hosted-logo--small {
    width: 80px;
    max-width: 80px;
}

@media (max-width: 640px) {
    .footer-hosted .hosted-logos { flex-direction: column; gap: 8px; }
    .hosted-logo { width: 140px; }
    .hosted-logo--small { width: 110px; }
}

.hosted-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.hosted-logo {
    width: 170px; /* slightly smaller and centered */
    height: auto;
    display: block;
    opacity: 0.95;
}

.hosted-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    font-size: 1rem;
    line-height: 1;
    color: inherit;
    font-weight: 400;
    text-transform: none;
}

.footer-contacts { justify-self: start; }
.footer-socials { justify-self: end; }

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.contacts-title {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #f3ebff;
    font-weight: 400;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.footer-contacts a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.contact-item,
.footer-contacts {
    font-weight: 400;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-bottom {
    margin-top: 18px;
    font-size: 0.95rem;
    color: #cbbce8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-bottom .footer-emblem {
    width: 48px;
    height: 48px;
}

.error-page-body {
    background: linear-gradient(135deg, #060816 0%, #111b3a 45%, #2b1a4a 100%);
}

.error-page-main {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 20px 60px;
    box-sizing: border-box;
}

.error-page-shell {
    position: relative;
    width: min(100%, 760px);
    padding: 52px 28px 42px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(12, 19, 48, 0.94) 0%, rgba(22, 28, 58, 0.92) 100%);
    border: 1px solid rgba(165, 128, 232, 0.22);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.error-page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(165, 128, 232, 0.08), transparent 35%, transparent 100%);
    pointer-events: none;
}

.error-kicker,
.error-code,
.error-page-shell h1,
.error-text,
.error-actions,
.error-meta {
    position: relative;
    z-index: 1;
}

.error-kicker {
    margin: 0 0 14px;
    color: #d9c8ff;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.84rem;
    font-weight: 700;
}

.error-code {
    margin: 0;
    font-size: clamp(4.8rem, 12vw, 11rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.08em;
    color: #f3ebff;
    text-shadow: 0 8px 30px rgba(165, 128, 232, 0.26);
}

.error-page-shell h1 {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: #fff;
}

.error-text {
    max-width: 620px;
    margin: 0 auto;
    color: #d7d0ef;
    font-size: 1.08rem;
    line-height: 1.7;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.error-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    padding: 15px 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.error-button:hover,
.error-button:focus-visible {
    background: linear-gradient(90deg, rgba(165, 128, 232, 0.3), rgba(56, 88, 176, 0.32));
    border-color: rgba(255, 255, 255, 0.46);
    outline: none;
}

.error-button--secondary {
    background: rgba(13, 20, 38, 0.5);
}

.error-meta {
    margin-top: 22px;
    font-size: 0.96rem;
    color: #c9bee9;
}

@media (max-width: 700px) {
    .error-page-main {
        padding-top: 122px;
    }

    .error-page-shell {
        padding: 38px 18px 30px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-button {
        width: 100%;
    }
}

.location-section {
    text-align: center;
}

.map-wrapper {
    margin-top: 24px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: block;
    width: min(100%, 1400px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: min(78vh, 560px);
    border: 0;
}

.livestream-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.livestream-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    margin-top: 28px;
}

.livestream-section h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.video-wrapper {
    width: min(100%, 900px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.video-wrapper iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
}

@media (max-width: 768px) {
    .site-header {
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
    }

    .site-header .logo {
        flex-shrink: 0;
        margin-right: 0;
    }

    .site-header .logo .brand-logo {
        height: 46px;
    }

    .header-actions {
        min-width: 0;
        flex: 1;
        justify-content: flex-end;
        gap: 6px;
    }

    .header-nav {
        min-width: 0;
        margin-top: 0;
        display: flex;
        flex: 1;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    .header-nav a {
        flex-shrink: 0;
        margin: 0 3px 0 0;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .social-links {
        flex-shrink: 0;
        gap: 5px;
        margin-left: 0;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-link svg {
        width: 15px;
        height: 15px;
    }

    .lang-switch {
        flex-shrink: 0;
        min-width: 0;
        padding: 7px 8px;
        gap: 5px;
    }

    main {
        padding-top: 70px;
    }

    .about-main:has(> .team-section) {
        padding-top: 72px;
    }

    .about-main > .team-section {
        margin-top: 0;
        padding-top: 28px;
    }

    .hero {
        height: auto;
        min-height: 620px;
    }

    body.festival-page .hero {
        box-sizing: border-box;
        height: auto;
        min-height: calc(100vh - 70px);
        padding-top: 62px;
        padding-bottom: 32px;
    }

    .footer-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: calc(100% - 40px);
    }

    .footer-contacts,
    .footer-socials,
    .footer-hosted {
        align-items: center;
        justify-self: center;
        text-align: center;
    }

    .footer-contacts {
        align-items: center;
    }
}

/* Timeline styles */
.timeline {
    text-align: left;
}

.timeline > h2 {
    text-align: center;
    margin-bottom: 18px;
    font-size: clamp(2.8rem, 5vw, 4.2rem);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 100px; /* increased spacing to make timeline longer */
    position: relative;
    padding: 28px 8px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
    gap: 12px;
}

.timeline-center {
    text-align: center;
}

/* Rising stars overlay inside timeline-list */
.timeline-list {
    position: relative; /* ensure stars can be absolutely positioned and clipped */
    overflow: hidden; /* keep stars inside the darker timeline area */
}

.timeline-list .rising-star {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, #ffd97a 40%, rgba(255,200,120,0.15));
    box-shadow: 0 0 8px rgba(255,220,140,0.9), 0 0 18px rgba(255,150,50,0.25);
    pointer-events: none; /* allow mouse events to reach the container */
    transform: translate(-50%, -50%);
    z-index: 2; /* above canvas trails but behind timeline centers */
    opacity: 0.95;
}

/* canvas layer for trails */
.timeline-list canvas.star-trails {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* visual when a star ejects: short bloom */
.timeline-list .rising-star.eject-flash {
    animation: ejectFlash 420ms cubic-bezier(.22,.95,.3,1) both;
}

@keyframes ejectFlash {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; filter: none; }
    40% { transform: translate(-50%, -50%) scale(1.9); opacity: 1; filter: brightness(1.2); }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; filter: blur(6px); }
}

/* trail particle spawned while a star is ejected */
.timeline-list .star-trail {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,210,120,0.7) 40%, rgba(255,180,60,0.12));
    box-shadow: 0 0 10px rgba(255,220,140,0.9), 0 0 26px rgba(255,150,50,0.25);
    transform: translate(-50%, -50%) scale(1);
    animation: trailFade 700ms linear forwards;
    z-index: 0;
}

@keyframes trailFade {
    0% { opacity: 0.95; transform: translate(-50%, -50%) scale(1); }
    60% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.4); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8) translateY(-6px); }
}

/* ensure timeline centers (years/images) appear above the stars */
.timeline .timeline-center { position: relative; z-index: 3; }


.timeline-year {
    display: inline-block;
    background: rgb(230, 244, 255); /* requested blue */
    color: rgba(11,20,40,1); /* dominant dark navy for text */
    padding: 18px 22px;
    border-radius: 14px;
    border: 5px solid rgba(182,146,94,0.9);
    font-weight: 900;
    font-size: 1.6rem; /* bigger */
    box-shadow: 0 12px 28px rgba(11,20,40,0.18);
}

/* make the timeline area use the dark navy as a dominant background */
.timeline-list {
    background-color: rgba(11,20,40,1);
    padding: 36px 12px;
    border-radius: 10px;
}

@media (max-width: 900px) {
    .timeline-item {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .timeline-item .timeline-center { order: 1; }
    .timeline-list::before { left: 8px; }
}