/* ==========================================================================
   LIONS GOOD NEWS 2020 - WebGL Recreation
   Clean Light Theme matching original
   ========================================================================== */

:root {
    --color-bg: #e8e8e8;
    --color-text: #1a1a1a;
    --color-text-light: #ffffff;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent zoom on mobile */
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(ellipse at center, #f8f8f8 0%, #c8c8c8 100%);
    color: var(--color-text);
    overflow: hidden;
    height: 100vh;
    cursor: none !important;
}

body * {
    cursor: none !important;
}

/* === LOADER (CURTAIN STYLE) === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transform-origin: top;
    transition: transform 1.1s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader.loaded {
    transform: translateY(-100%);
    pointer-events: none;
}

.loader-content {
    text-align: center;
    overflow: hidden;
}

.loader-percent {
    font-family: var(--font-serif);
    font-size: clamp(80px, 20vw, 220px);
    font-weight: 700;
    line-height: 0.9;
    color: #1a1a1a;
    transform: translateY(100%);
    opacity: 0;
    animation: loaderTextSlideUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.loader-text {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 1.5rem;
    color: rgba(0,0,0,0.4);
    opacity: 0;
    animation: loaderFadeIn 0.8s ease forwards 0.4s;
}

@keyframes loaderTextSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes loaderFadeIn {
    to {
        opacity: 1;
    }
}

/* WebGL Container */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#webgl-container canvas {
    display: block;
}

/* Header - matching original exactly */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 1s ease, transform 1s ease;
}

.header.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header > * {
    pointer-events: auto;
}

.header-left .logo {
    padding-left: 15% !important;
}

.logo {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo a {
    text-decoration: none;
    color: var(--color-text);
}

.header-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-text);
}

/* Мобильный логотип и кнопка НАЗАД скрыты на десктопе */
.logo-mobile {
    display: none;
}

.mobile-back-btn {
    display: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.5;
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-text);
    background: transparent;
    color: var(--color-text);
    font-size: 11px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Custom circle cursor - follows mouse */
.custom-cursor {
    position: fixed;
    width: 70px;
    height: 70px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease, opacity 0.2s;
    opacity: 1;
}

.custom-cursor.hover-card {
    width: 100px;
    height: 100px;
    background: transparent;
    border-color: #fff;
}

.cursor-arrow {
    font-size: 16px;
    color: var(--color-text);
    opacity: 0.7;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.custom-cursor.hover-card .cursor-arrow {
    color: #fff;
    opacity: 1;
}

/* Hover on links - smaller cursor with up arrow */
.custom-cursor.hover-link {
    width: 40px;
    height: 40px;
}

.custom-cursor.hover-link .cursor-left,
.custom-cursor.hover-link .cursor-right {
    display: none;
}

.cursor-up {
    display: none;
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.9;
}

.cursor-down {
    display: none;
    font-size: 14px;
    color: var(--color-text);
    opacity: 0.9;
}

.custom-cursor.hover-link .cursor-up {
    display: block;
}

/* Cursor inside event-content (scroll area) - vertical arrows */
.custom-cursor.cursor-scroll {
    flex-direction: column;
    gap: 4px;
}

.custom-cursor.cursor-scroll .cursor-left,
.custom-cursor.cursor-scroll .cursor-right {
    display: none;
}

.custom-cursor.cursor-scroll .cursor-up,
.custom-cursor.cursor-scroll .cursor-down {
    display: block;
}

/* Cursor on dark background - white color */
.custom-cursor.cursor-light {
    border-color: #fff;
    z-index: 999999999999999;
}

.custom-cursor.cursor-light .cursor-arrow {
    color: #fff;
}

.custom-cursor.cursor-light .cursor-up {
    color: #fff;
}

.custom-cursor.cursor-light .cursor-down {
    color: #fff;
}

/* Cursor in nav-overlay - only up arrow */
.custom-cursor.cursor-nav-overlay {
    z-index: 999999999999999;
    border-color: #fff;
}

.custom-cursor.cursor-nav-overlay .cursor-left,
.custom-cursor.cursor-nav-overlay .cursor-right {
    display: none;
}

.custom-cursor.cursor-nav-overlay .cursor-up {
    display: block;
    color: #fff;
}

/* Article Description - centered at bottom */
.article-description {
    position: fixed;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 700px;
    width: 40%;
    text-align: center;
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.article-description.visible {
    opacity: 1;
}

.article-description p {
    font-family: var(--font-serif);
    font-size: clamp(20px, 3vw, 22px);
    line-height: 1.5;
    color: var(--color-text);
    font-weight: 400;
}

/* Hidden elements */
.webgl-info,
#main-content {
    display: none;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.98);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition-smooth);
    cursor: none;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.nav-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 14px;
    letter-spacing: 0.2em;
    cursor: pointer;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.nav-close:hover {
    opacity: 0.6;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin: 1.2rem 0;
}

.nav-list a {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-text-light);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-list a::before {
    content: attr(data-index);
    position: absolute;
    left: -2.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-sans);
    font-size: 12px;
    opacity: 0.3;
}

.nav-list a:hover {
    transform: translateX(10px);
}

/* Mobile */
@media (max-width: 768px) {
    /* Показываем нативный курсор на мобильных */
    body,
    body * {
        cursor: auto !important;
    }

    /* Скрываем кастомный курсор */
    #custom-cursor {
        display: none !important;
    }

    .header {
        padding: 15px 20px;
    }

    /* Логотип меньше на 10% */
    .logo {
        font-size: 12.6px;
    }

    /* На главной "О НАС" остаётся видимым, мобильный логотип и кнопка скрыты */
    .nav-link.about-toggle {
        display: block;
    }

    .logo-mobile {
        display: none;
    }

    .mobile-back-btn {
        display: none;
    }

    /* На страницах статей скрываем "О НАС", показываем кнопку НАЗАД */
    .article-open .nav-link.about-toggle {
        display: none;
    }

    .article-open .logo-mobile {
        display: none;
    }

    .article-open .mobile-back-btn {
        display: block;
        background: none;
        border: none;
        color: inherit;
        font-family: 'Inter', sans-serif;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: 0.1em;
        cursor: pointer;
        opacity: 0.9;
        transition: opacity 0.3s;
        padding: 0;
    }

    .article-open .mobile-back-btn:active {
        opacity: 0.6;
    }

    .logo-img-mobile {
        height: 28px;
        width: auto;
    }

    .header-tagline {
        display: none;
    }

    .article-description {
        bottom: 22%;
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
        width: 90%;
        text-align: center;
        padding: 0 15px;
    }

    .article-description p {
        font-size: clamp(18px, 4.5vw, 22px);
        line-height: 1.4;
    }

    /* INDEX кнопка на мобильных */
    button.spa-index-btn {
        left: 80% !important;
    }

    .header-left .logo {
        padding-left: 65% !important;
    }

    .webgl-controls button {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Article Modal
   ========================================================================== */

.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.article-modal.active {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.article-modal.active .modal-backdrop {
    opacity: 1;
}

.modal-card {
    position: absolute;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
    transform-origin: center center;
    /* Initial state set by JS */
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.article-modal.active .modal-close {
    opacity: 1;
    transition-delay: 0.5s;
}

.modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-image {
    width: 45%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, transparent, #fff);
}

.modal-content {
    width: 55%;
    padding: 60px 50px;
    overflow-y: auto;
    max-height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.3s;
}

.article-modal.active .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal-category {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.modal-body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.modal-body p {
    margin-bottom: 1.5em;
}

.modal-body h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    margin: 2em 0 1em;
}

.modal-body ul {
    list-style: none;
    margin: 1.5em 0;
}

.modal-body li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.modal-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #888;
}

.modal-body blockquote {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: #555;
    padding: 20px 30px;
    border-left: 3px solid var(--color-text);
    margin: 2em 0;
    background: #f9f9f9;
}

/* Modal Mobile */
@media (max-width: 900px) {
    .modal-card {
        flex-direction: column;
        width: 95% !important;
        height: 90% !important;
        left: 2.5% !important;
        top: 5% !important;
    }
    
    .modal-image {
        width: 100%;
        height: 250px;
        min-height: 250px;
    }
    
    .modal-image::after {
        width: 100%;
        height: 60px;
        bottom: 0;
        top: auto;
        right: auto;
        background: linear-gradient(to top, #fff, transparent);
    }
    
    .modal-content {
        width: 100%;
        padding: 30px 25px;
    }
    
    .modal-title {
        font-size: 28px;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   Cannes Lions Style Transition
   ========================================================================== */

.cannes-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
}

.cannes-transition-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
}

.cannes-transition-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    color: rgba(0, 0, 0, 0.6);
    opacity: 0;
}

.cannes-transition-loader svg {
    width: 100%;
    height: 100%;
    animation: cannes-loader-spin 1s linear infinite;
}

@keyframes cannes-loader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cannes-transition-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    opacity: 0;
}

.cannes-marquee {
    overflow: hidden;
    width: 100%;
    margin-bottom: 2rem;
}

.cannes-marquee-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
}

.cannes-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4px, 1.2vw, 12px);
    font-weight: 800;
    font-style: italic;
    color: rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    opacity: 0.4;
}

.cannes-dot {
    font-size: clamp(30px, 8vw, 80px);
    color: rgba(0, 0, 0, 0.9);
    margin: 0 clamp(20px, 4vw, 60px);
}

.cannes-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    gap: 2px;
}

.cannes-scroll-indicator .arrow-up,
.cannes-scroll-indicator .arrow-down {
    line-height: 1;
}

.cannes-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.7);
    letter-spacing: 0.02em;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .cannes-title {
        font-size: clamp(2.8px, 1vw, 6px);
    }

    .cannes-dot {
        font-size: clamp(20px, 6vw, 40px);
        margin: 0 clamp(10px, 3vw, 30px);
    }

    .cannes-scroll-indicator {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }
}

/* ===== Mobile Swipe Hint ===== */
.swipe-hint {
    display: none;
    position: fixed;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.swipe-hint.visible {
    opacity: 1;
}

.swipe-hint-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: swipeHintPulse 2s ease-in-out infinite;
}

.swipe-arrow {
    font-size: 18px;
    color: #666;
    opacity: 0.6;
}

.swipe-arrow:first-child {
    animation: swipeArrowLeft 1.5s ease-in-out infinite;
}

.swipe-arrow:last-child {
    animation: swipeArrowRight 1.5s ease-in-out infinite;
}

.swipe-hand {
    width: 32px;
    height: 32px;
    color: #333;
    animation: swipeHandMove 1.5s ease-in-out infinite;
}

.swipe-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes swipeHintPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes swipeArrowLeft {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(-5px); opacity: 1; }
}

@keyframes swipeArrowRight {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(5px); opacity: 1; }
}

@keyframes swipeHandMove {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-8px) rotate(-5deg); }
    75% { transform: translateX(8px) rotate(5deg); }
}

@media (max-width: 768px) {
    .swipe-hint {
        display: flex;
    }
}

/* ==========================================================================
   About Modal (Cannes Style - Dark)
   ========================================================================== */

.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    color: #fff;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.about-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.about-close {
    position: absolute;
    top: 40px;
    right: 50px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer !important;
    opacity: 0.8;
    transition: transform 0.3s, opacity 0.3s;
}

.about-close:hover {
    transform: scale(1.1);
    opacity: 1;
}

.about-content {
    max-width: 800px;
    width: 80%;
    text-align: center;
}

.about-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #666;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-text {
    font-family: var(--font-serif);
    font-size: clamp(20px, 3vw, 32px);
    line-height: 1.4;
    color: #fff;
    margin-bottom: 1rem;
}

.about-footer {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: #444;
}

.about-footer p {
    font-size: 10px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .about-close {
        top: 20px;
        right: 20px;
    }

    .about-content {
        width: 90%;
    }

    .about-text {
        font-size: 18px;
    }
}

/* ==========================================================================
   SPA Article Container
   ========================================================================== */

.article-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(
        to bottom,
        var(--event-color, #fff) 0%,
        var(--event-color, #fff) 30%,
        color-mix(in srgb, var(--event-color, #fff) 70%, #000) 70%,
        color-mix(in srgb, var(--event-color, #fff) 40%, #000) 100%
    );
    background-attachment: fixed;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.article-container.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    touch-action: pan-y;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.spa-article-wrapper {
    min-height: 100vh;
    background: transparent;
}

/* Mobile scroll fix for article */
@media (max-width: 768px) {
    .article-container.active {
        position: fixed;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y !important;
    }

    .spa-article-wrapper {
        min-height: auto;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
}

/* Override html touch-action when article is open */
html.article-open {
    touch-action: auto !important;
    -ms-touch-action: auto !important;
}

body.article-open {
    /* Скролл обрабатывается внутри .article-container */
}

/* Mobile: allow scroll in article container when article is open */
@media (max-width: 768px) {
    html.article-open .article-container.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain;
        touch-action: pan-y !important;
        z-index: 500;
    }

    html.article-open .article-container.active .spa-article-wrapper {
        min-height: 100%;
        padding-bottom: 100px;
    }

    html.article-open .article-container.active .event-page {
        min-height: auto;
        overflow: visible;
    }
}

/* Cannes Transition Overlay */
.cannes-transition-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cannes-transition-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cannes-transition-loader {
    position: relative;
    z-index: 2;
    width: 50px;
    height: 50px;
    color: #fff;
    animation: cannes-spin 1s linear infinite;
}

@keyframes cannes-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cannes-transition-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 2rem;
}

.cannes-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 1rem;
}

.cannes-marquee-inner {
    display: inline-flex;
    gap: 2rem;
    animation: none;
}

.cannes-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.3rem, 1vw, 0.8rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.cannes-dot {
    font-size: clamp(3rem, 10vw, 8rem);
    color: rgba(255,255,255,0.5);
}

.cannes-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cannes-scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 1rem 0;
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    animation: cannes-bounce 1.5s ease-in-out infinite;
}

@keyframes cannes-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* === Page Transition (slide up) === */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}

.page-transition.active {
    pointer-events: auto;
}

.page-transition-bg {
    position: absolute;
    inset: 0;
    transform: scaleY(0);
    transform-origin: bottom;
}

.page-transition.entering .page-transition-bg {
    animation: slideUp 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes slideUp {
    0% { transform: scaleY(0); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}
