/* ========================================
   KUSHILOB — Theatrical Landing Page
   Color: Deep Red, Black, Muted Gold, Off-White
   Fonts: Playfair Display / Cormorant Garamond / Bebas Neue
   ======================================== */

/* ===== BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    isolation: isolate;
}

::selection {
    background: #8B0000;
    color: #F5F0E8;
}

/* ===== GRAIN TEXTURE ===== */
.hero-grain {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    pointer-events: none;
}

/* ===== SITE TEXTURE FRAME ===== */
.site-texture-frame {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.site-texture-frame::before,
.site-texture-frame::after {
    content: '';
    position: absolute;
    inset: -8%;
}

.site-texture-frame::before {
    background-image: var(--frame-texture-base);
    background-position: var(--frame-texture-base-position, left top);
    background-size: var(--frame-texture-base-size, 620px auto);
    background-repeat: repeat;
    mix-blend-mode: screen;
    opacity: var(--frame-texture-base-opacity, 0.055);
    filter: var(--frame-texture-base-filter, contrast(130%) brightness(115%));
}

.site-texture-frame::after {
    background-image:
        var(--frame-texture-accent-a),
        var(--frame-texture-accent-b),
        var(--frame-texture-accent-c),
        var(--frame-texture-accent-d),
        var(--frame-texture-accent-e);
    background-repeat: no-repeat;
    background-size:
        var(--frame-texture-accent-a-size, 28vw auto),
        var(--frame-texture-accent-b-size, 20vw auto),
        var(--frame-texture-accent-c-size, 18vw auto),
        var(--frame-texture-accent-d-size, 24vw auto),
        var(--frame-texture-accent-e-size, 16vw auto);
    background-position:
        var(--frame-texture-accent-a-position, -6vw 10vh),
        var(--frame-texture-accent-b-position, calc(100% - 12vw) 18vh),
        var(--frame-texture-accent-c-position, 8vw calc(100% - 24vh)),
        var(--frame-texture-accent-d-position, calc(100% + 2vw) calc(100% - 14vh)),
        var(--frame-texture-accent-e-position, 34vw 44vh);
    mix-blend-mode: screen;
    opacity: var(--frame-texture-accent-opacity, 0.12);
    filter: var(--frame-texture-accent-filter, contrast(122%) brightness(122%) blur(0.2px));
    transform: var(--frame-texture-accent-transform, rotate(-1.5deg) scale(1.04));
}

.texture-section {
    isolation: isolate;
}

.texture-randomized-section {
    position: relative;
}

.texture-randomized-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.texture-randomized-surface > :not(.random-texture-layer) {
    position: relative;
    z-index: 1;
}

.random-texture-layer {
    position: absolute;
    pointer-events: none;
}

.random-texture-layer--section {
    inset: -8%;
    z-index: 1;
    background-image:
        var(--texture-primary),
        var(--texture-secondary),
        var(--texture-tertiary);
    background-repeat: repeat, no-repeat, no-repeat;
    background-size:
        var(--texture-primary-size, 540px auto),
        var(--texture-secondary-size, 28vw auto),
        var(--texture-tertiary-size, 24vw auto);
    background-position:
        var(--texture-primary-position, left top),
        var(--texture-secondary-position, -6vw 22%),
        var(--texture-tertiary-position, calc(100% + 2vw) 76%);
    background-blend-mode: screen, lighten, screen;
    mix-blend-mode: screen;
    opacity: var(--texture-opacity, 0.1);
    filter: var(--texture-filter, contrast(122%) brightness(116%));
    transform: var(--texture-transform, rotate(-1.4deg) scale(1.03));
}

.random-texture-layer--section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at var(--texture-glow-x, 18%) var(--texture-glow-y, 24%), rgba(201, 168, 76, 0.08) 0%, transparent 28%),
        radial-gradient(circle at var(--texture-glow-x-2, 84%) var(--texture-glow-y-2, 72%), rgba(139, 0, 0, 0.1) 0%, transparent 34%);
    opacity: 0.85;
}

.random-texture-layer--surface {
    inset: 0;
    z-index: 0;
    background-image:
        var(--texture-primary),
        var(--texture-secondary);
    background-repeat: repeat, no-repeat;
    background-size:
        var(--texture-primary-size, 320px auto),
        var(--texture-secondary-size, 72% auto);
    background-position:
        var(--texture-primary-position, center center),
        var(--texture-secondary-position, right bottom);
    background-blend-mode: screen, lighten;
    mix-blend-mode: screen;
    opacity: var(--texture-opacity, 0.08);
    filter: var(--texture-filter, contrast(125%) brightness(114%));
    transform: var(--texture-transform, rotate(-1deg) scale(1.02));
}

.random-texture-layer--surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.14) 0%, transparent 28%, rgba(10, 10, 10, 0.2) 100%),
        radial-gradient(circle at var(--texture-glow-x, 18%) var(--texture-glow-y, 20%), rgba(201, 168, 76, 0.08) 0%, transparent 30%);
    mix-blend-mode: normal;
}


/* ===== HEADER ===== */
#main-header {
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
    #main-header:not(.scrolled) {
        background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 70%, transparent 100%);
    }
}

#main-header.scrolled {
    background: rgba(10,10,10,0.97);
    box-shadow: 0 1px 0 rgba(201,168,76,0.08);
}

.nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(245,240,232,0.65);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover {
    color: #F5F0E8;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active nav link — current section */
.nav-link.nav-active {
    color: #C9A84C;
}

.nav-link.nav-active::after {
    width: 100%;
    opacity: 0.5;
}

.nav-link:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
    border-radius: 2px;
}

.btn-tickets {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #F5F0E8;
    background: #8B0000;
    padding: 10px 28px;
    border: 1px solid rgba(139,0,0,0.6);
    text-decoration: none;
    position: relative;
    overflow: visible;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-tickets::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-tickets:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139,0,0,0.3), 0 0 40px rgba(139,0,0,0.1);
}

.btn-tickets:hover::before {
    opacity: 1;
}

.btn-tickets:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
}

.btn-tickets:active {
    transform: translateY(0);
}

/* Buy Tickets — Coming Soon tooltip */
.btn-tickets {
    position: relative;
}

.btn-tickets::after {
    content: 'Coming Soon';
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #1A1A1A;
    color: #C9A84C;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border: 1px solid rgba(201,168,76,0.25);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.btn-tickets:hover::after,
.btn-tickets:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Ticket toast notification */
.ticket-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
    border: 1px solid rgba(201,168,76,0.3);
    color: #F5F0E8;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    padding: 14px 32px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0, 0, 0.2, 1);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 40px rgba(139,0,0,0.1);
}

.ticket-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* ===== VENUE LOCATION LINK ===== */
.venue-location-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.venue-location-link:hover {
    transform: translateX(4px);
}

.venue-location-link:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 6px;
    border-radius: 2px;
}

.venue-location-link:active {
    transform: translateX(2px);
}


/* ===== MOBILE NAV ===== */
.mobile-nav-closed {
    display: none;
}

.mobile-nav-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    animation: fadeIn 0.3s ease;
    background:
        radial-gradient(ellipse at top right, rgba(139, 0, 0, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #0A0A0A 0%, #141414 55%, #0A0A0A 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.mobile-nav-open > div {
    background: transparent !important;
}

#menu-toggle {
    position: relative;
    z-index: 101;
}

.mobile-nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 500;
    color: rgba(245,240,232,0.7);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    color: #C9A84C;
    transform: translateX(8px);
}

/* Menu toggle animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 28px;
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ===== HERO ===== */
.hero-spotlight {
    background: radial-gradient(circle, rgba(139,0,0,0.4) 0%, rgba(201,168,76,0.05) 40%, transparent 70%);
}

.hero-logo-glow {
    filter: drop-shadow(0 0 60px rgba(139,0,0,0.2)) drop-shadow(0 0 120px rgba(201,168,76,0.05));
}

/* Curtain side vignette */
#hero::before,
#hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    z-index: 5;
    pointer-events: none;
}

#hero::before {
    left: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.8), transparent);
}

#hero::after {
    right: 0;
    background: linear-gradient(to left, rgba(10,10,10,0.8), transparent);
}

/* Rotating word — vertical reel */
.rotating-word-container {
    display: inline-block;
    height: 1.15em;
    overflow: hidden;
    vertical-align: -0.25em;
    position: relative;
}

.rotating-word {
    display: inline-block;
    white-space: nowrap;
}

/* Event date block */
.event-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* Scroll indicator */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.3); }
}


/* ===== REVEAL ANIMATIONS ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ===== SECTION LABELS ===== */
.section-label {
    color: #C9A84C;
    opacity: 0.85;
}

.section-divider-line {
    height: 2px;
    background: linear-gradient(to right, transparent, #C9A84C, transparent);
    opacity: 0.3;
}


/* ===== ABOUT SECTION — STATS ===== */
.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 24px;
    border: 1px solid rgba(201,168,76,0.15);
    background: rgba(201,168,76,0.04);
    min-width: 100px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.stat-block:hover {
    border-color: rgba(201,168,76,0.3);
    background: rgba(201,168,76,0.07);
}


/* ===== TIMELINE / JOURNEY ===== */
.timeline-year-btn {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    color: rgba(245,240,232,0.3);
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-align: left;
}

.timeline-year-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #8B0000;
    transition: width 0.3s ease;
}

.timeline-year-btn:hover {
    color: rgba(245,240,232,0.6);
}

.timeline-year-btn.active {
    color: #F5F0E8;
    font-size: 1.6rem;
}

.timeline-year-btn.active::before {
    width: 24px;
    background: #C9A84C;
}

/* On desktop, shift active year text right */
@media (min-width: 1024px) {
    .timeline-year-btn {
        padding-left: 0;
    }
    .timeline-year-btn.active {
        padding-left: 36px;
    }
    .timeline-year-btn::before {
        left: 0;
    }
}

.timeline-year-btn:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
    border-radius: 2px;
}

.timeline-card {
    position: relative;
    animation: timelineEnter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes timelineEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#timeline-content,
#timeline-content > *,
.timeline-card,
.timeline-card > .grid,
.timeline-card > .grid > * {
    min-width: 0;
}

#journey .grid.lg\:grid-cols-12 > * {
    min-width: 0;
}

.timeline-years {
    max-width: 100%;
}

.timeline-poster {
    position: relative;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    border: 1px solid rgba(201,168,76,0.12);
    box-shadow: 0 4px 40px rgba(139,0,0,0.08), 0 0 80px rgba(0,0,0,0.4);
}

.timeline-poster img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-poster--vertical {
    max-width: 340px;
    margin: 0 auto;
}

.timeline-poster--vertical img {
    max-height: 480px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.timeline-poster:hover img {
    transform: scale(1.03);
}

.timeline-poster::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10,10,10,0.55);
    border: 1px solid rgba(201,168,76,0.35);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/><path d='M11 8v6M8 11h6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.timeline-poster:hover::before,
.timeline-poster:focus-within::before {
    opacity: 1;
    transform: translateY(0);
}

.timeline-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.4) 0%, transparent 50%);
    pointer-events: none;
}

.timeline-info {
    padding: 8px 0;
}

.timeline-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201,168,76,0.2);
    background: transparent;
    color: rgba(245,240,232,0.5);
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.timeline-arrow:hover {
    border-color: rgba(201,168,76,0.5);
    color: #C9A84C;
}

.timeline-arrow:active {
    transform: scale(0.95);
}

.timeline-arrow:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
}


/* ===== WORKSHOPS ===== */
.workshop-card {
    position: relative;
}

.workshop-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.15), transparent);
}

.workshop-card:first-child::before {
    display: none;
}

.workshop-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 1) 100%);
    border: 1px solid rgba(201,168,76,0.12);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 60px rgba(139,0,0,0.05);
}

.workshop-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.92) contrast(1.04) brightness(0.9);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.workshop-image-wrapper:hover img {
    transform: scale(1.03);
}

.workshop-image-wrapper--poster img {
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(180deg, rgba(18, 14, 12, 0.95) 0%, rgba(9, 8, 8, 1) 100%);
}

.workshop-image-wrapper--poster {
    aspect-ratio: auto;
}


/* ===== CONTACT ===== */
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 24px;
    border: 1px solid rgba(201,168,76,0.1);
    background: linear-gradient(135deg, rgba(201,168,76,0.03) 0%, rgba(139,0,0,0.02) 100%);
    text-decoration: none;
    color: #F5F0E8;
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.contact-card > span {
    white-space: nowrap;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, transparent, #C9A84C, transparent);
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(201,168,76,0.25);
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, rgba(139,0,0,0.03) 100%);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 40px rgba(139,0,0,0.05);
}

.contact-card:hover::before {
    opacity: 1;
    width: 80%;
}

.contact-card:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201,168,76,0.2);
    color: #C9A84C;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    border-color: rgba(201,168,76,0.4);
    transform: scale(1.05);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-texture-frame::before {
        background-size: var(--frame-texture-base-size-mobile, 420px auto);
        opacity: var(--frame-texture-base-opacity-mobile, 0.04);
    }

    .site-texture-frame::after {
        opacity: var(--frame-texture-accent-opacity-mobile, 0.09);
        background-size:
            var(--frame-texture-accent-a-size-mobile, 38vw auto),
            var(--frame-texture-accent-b-size-mobile, 30vw auto),
            var(--frame-texture-accent-c-size-mobile, 24vw auto),
            var(--frame-texture-accent-d-size-mobile, 34vw auto),
            var(--frame-texture-accent-e-size-mobile, 22vw auto);
        background-position:
            var(--frame-texture-accent-a-position-mobile, -10vw 9vh),
            var(--frame-texture-accent-b-position-mobile, calc(100% - 8vw) 16vh),
            var(--frame-texture-accent-c-position-mobile, 4vw calc(100% - 16vh)),
            var(--frame-texture-accent-d-position-mobile, calc(100% + 5vw) calc(100% - 10vh)),
            var(--frame-texture-accent-e-position-mobile, 54vw 48vh);
    }

    .random-texture-layer--section {
        background-size:
            var(--texture-primary-size-mobile, 420px auto),
            var(--texture-secondary-size-mobile, 38vw auto),
            var(--texture-tertiary-size-mobile, 30vw auto);
        background-position:
            var(--texture-primary-position-mobile, left top),
            var(--texture-secondary-position-mobile, -8vw 18%),
            var(--texture-tertiary-position-mobile, calc(100% + 2vw) 82%);
    }

    .random-texture-layer--surface {
        background-size:
            var(--texture-primary-size-mobile, 260px auto),
            var(--texture-secondary-size-mobile, 84% auto);
    }

    .event-date-block {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        align-items: center;
    }

    .stat-block {
        min-width: 75px;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .site-texture-frame::before {
        background-size: var(--frame-texture-base-size-small, 360px auto);
        opacity: var(--frame-texture-base-opacity-small, 0.032);
    }

    .site-texture-frame::after {
        opacity: var(--frame-texture-accent-opacity-small, 0.075);
        background-size:
            var(--frame-texture-accent-a-size-small, 42vw auto),
            var(--frame-texture-accent-b-size-small, 36vw auto),
            var(--frame-texture-accent-c-size-small, 30vw auto),
            var(--frame-texture-accent-d-size-small, 38vw auto),
            var(--frame-texture-accent-e-size-small, 26vw auto);
        background-position:
            var(--frame-texture-accent-a-position-small, -12vw 10vh),
            var(--frame-texture-accent-b-position-small, calc(100% - 4vw) 18vh),
            var(--frame-texture-accent-c-position-small, -4vw calc(100% - 20vh)),
            var(--frame-texture-accent-d-position-small, calc(100% + 8vw) calc(100% - 12vh)),
            var(--frame-texture-accent-e-position-small, 60vw 58vh);
    }

    .random-texture-layer--section {
        background-size:
            var(--texture-primary-size-small, 320px auto),
            var(--texture-secondary-size-small, 42vw auto),
            var(--texture-tertiary-size-small, 36vw auto);
        background-position:
            var(--texture-primary-position-small, left top),
            var(--texture-secondary-position-small, -10vw 18%),
            var(--texture-tertiary-position-small, calc(100% + 6vw) 84%);
    }

    .random-texture-layer--surface {
        background-size:
            var(--texture-primary-size-small, 220px auto),
            var(--texture-secondary-size-small, 92% auto);
    }

    .timeline-year-btn {
        font-size: 1.1rem;
        padding: 8px 12px;
    }

    .timeline-year-btn.active {
        font-size: 1.3rem;
        padding-left: 30px;
    }

    .timeline-year-btn.active::before {
        width: 18px;
    }
}


/* ===== JOURNEY YEAR NAV — MOBILE FIXED ===== */
@media (max-width: 1023px) {
    #journey-year-nav.journey-nav-fixed {
        position: fixed !important;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 40;
        background: rgba(10,10,10,0.96);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 8px 24px 12px;
        border-bottom: 1px solid rgba(201,168,76,0.12);
        margin: 0;
    }
}


/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }

    .rotating-word {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ===== GALLERY — BENTO SHELL ===== */
.gallery-shell {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 240px);
    gap: 18px;
    padding: 12px;
    border: 1px solid rgba(201,168,76,0.18);
    background:
        linear-gradient(135deg, rgba(201,168,76,0.04) 0%, rgba(139,0,0,0.03) 100%),
        rgba(10,10,10,0.45);
    box-shadow:
        0 18px 60px rgba(0,0,0,0.45),
        0 0 80px rgba(139,0,0,0.06);
    align-items: stretch;
    position: relative;
}

.gallery-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 4px 4px 4px 18px;
    border-left: 1px solid rgba(201,168,76,0.1);
}

.gallery-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 135px;
    grid-auto-flow: dense;
    gap: 10px;
}

.gallery-item--mobile { display: none; }

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 320ms ease;
    box-shadow:
        0 6px 24px rgba(0,0,0,0.55),
        0 1px 6px rgba(0,0,0,0.35);
    border: 1px solid rgba(201,168,76,0.08);
}

.gallery-item:hover {
    transform: scale(1.035);
    z-index: 10;
    box-shadow:
        0 14px 50px rgba(0,0,0,0.7),
        0 0 30px rgba(139,0,0,0.14);
    border-color: rgba(201,168,76,0.3);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.88) contrast(1.05);
    transition: filter 320ms ease, transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    filter: saturate(1.0) contrast(1.05);
    transform: scale(1.04);
}

/* Magnify cue (matches timeline-poster) */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(10,10,10,0.55);
    border: 1px solid rgba(201,168,76,0.35);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/><path d='M11 8v6M8 11h6'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover::before,
.gallery-item:focus-within::before {
    opacity: 1;
    transform: translateY(0);
}

.bento-lg   { grid-column: span 2; grid-row: span 2; }
.bento-tall { grid-row: span 2; }
.bento-wide { grid-column: span 2; }

.btn-gallery-more {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C9A84C;
    background: transparent;
    border: 1px solid rgba(201,168,76,0.3);
    padding: 10px 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    transition: color 280ms ease,
                background-color 280ms ease,
                border-color 280ms ease,
                transform 280ms ease;
}

.btn-gallery-more:hover {
    color: #0A0A0A;
    background-color: #C9A84C;
    border-color: #C9A84C;
    transform: translateY(-1px);
}

.btn-gallery-more:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
}

.btn-gallery-more:active {
    transform: translateY(0);
    opacity: 0.92;
}

@media (max-width: 900px) {
    .gallery-shell {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 10px;
    }
    .gallery-aside {
        border-left: none;
        border-top: 1px solid rgba(201,168,76,0.1);
        padding: 12px 4px 4px 4px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .gallery-aside > p {
        flex: 1;
        min-width: 0;
    }
    .gallery-bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 115px;
    }
    .gallery-item--mobile { display: block; }
}

@media (max-width: 600px) {
    .gallery-aside {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-gallery-more {
        align-self: flex-start;
    }
    .gallery-bento {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 95px;
        gap: 8px;
    }
    .gallery-item--mobile { display: block; }
}

@media (max-width: 400px) {
    .gallery-shell { padding: 8px; }
    .gallery-bento { gap: 6px; grid-auto-rows: 84px; }
}


/* ===== POSTER LIGHTBOX ===== */
.poster-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background: radial-gradient(ellipse at center, rgba(20,6,8,0.92) 0%, rgba(5,5,7,0.97) 70%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.poster-lightbox[hidden] {
    display: none;
}

.poster-lightbox.is-open {
    opacity: 1;
}

.poster-lightbox-figure {
    position: relative;
    margin: 0;
    max-width: min(92vw, 820px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: scale(0.94);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.poster-lightbox.is-open .poster-lightbox-figure {
    transform: scale(1);
    opacity: 1;
}

.poster-lightbox-img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    display: block;
    border: 1px solid rgba(201,168,76,0.28);
    box-shadow:
        0 24px 80px rgba(139,0,0,0.35),
        0 8px 32px rgba(0,0,0,0.6),
        0 0 120px rgba(201,168,76,0.08);
}

.poster-lightbox-caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(201,168,76,0.75);
    text-align: center;
}

.poster-lightbox-caption:empty {
    display: none;
}

.poster-lightbox-close {
    position: absolute;
    top: clamp(12px, 3vw, 28px);
    right: clamp(12px, 3vw, 28px);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(201,168,76,0.35);
    color: rgba(244,228,188,0.9);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.poster-lightbox-close:hover,
.poster-lightbox-close:focus-visible {
    background: rgba(139,0,0,0.45);
    border-color: rgba(201,168,76,0.7);
    transform: rotate(90deg);
    outline: none;
}

.poster-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(10,10,10,0.6);
    border: 1px solid rgba(201,168,76,0.35);
    color: rgba(244,228,188,0.9);
    cursor: pointer;
    z-index: 2;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.poster-lightbox-prev { left: clamp(12px, 3vw, 32px); }
.poster-lightbox-next { right: clamp(12px, 3vw, 32px); }

.poster-lightbox-nav:hover,
.poster-lightbox-nav:focus-visible {
    background: rgba(139,0,0,0.45);
    border-color: rgba(201,168,76,0.7);
    outline: none;
}

.poster-lightbox-prev:hover,
.poster-lightbox-prev:focus-visible {
    transform: translateY(-50%) translateX(-3px);
}

.poster-lightbox-next:hover,
.poster-lightbox-next:focus-visible {
    transform: translateY(-50%) translateX(3px);
}

.poster-lightbox-nav[hidden] { display: none; }

@media (max-width: 600px) {
    .poster-lightbox-nav {
        width: 44px;
        height: 44px;
    }
}

body.lightbox-open {
    overflow: hidden;
}
