* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: opacity 0.6s ease;
}

#loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loader-logo {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.5));
}

#loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

#loader-bar-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #e50914, #ff4d4d);
    border-radius: 3px;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

/* Page hidden until loaded */
body.loading .parallax-container,
body.loading .content,
body.loading #site-header {
    opacity: 0;
}

body.loaded .parallax-container,
body.loaded .content,
body.loaded #site-header {
    opacity: 1;
    transition: opacity 0.8s ease 0.3s;
}

body {
    background: #000;
    font-family: "Cormorant Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    overflow-x: hidden;
}

/* Site Header */
#site-header {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 40px;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

@media (max-width: 768px) {
    #site-header {
        padding: 25px;
    }
}

/* Scroll Indicator */
#scroll-indicator {
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

#scroll-indicator .chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#scroll-indicator .chevron {
    width: auto;
    height: 20px;
    color: rgba(255, 21, 21, 0.2);
    margin-top: -8px;
    animation: chevronFade 1.5s ease-in-out infinite;
}

#scroll-indicator .chevron:first-child {
    margin-top: 0;
    animation-delay: 0s;
}

#scroll-indicator .chevron:nth-child(2) {
    animation-delay: 0.15s;
}

#scroll-indicator .chevron:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes chevronFade {

    0%,
    100% {
        color: rgba(255, 21, 21, 0.2);
    }

    40%,
    60% {
        color: rgba(255, 21, 21, 1);
    }
}

#scroll-indicator span {
    font-family: "Cormorant Garamond", serif;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    display: none;
}

#audio-toggle {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #FF1515;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#audio-toggle:hover {
    background: rgba(255, 21, 21, 0.3);
    border-color: #FF1515;
    transform: scale(1.1);
}

#audio-toggle svg {
    width: 20px;
    height: 20px;
    color: #fff;
    transition: opacity 0.3s ease;
}

#audio-toggle .icon-unmuted {
    display: none;
}

#audio-toggle .icon-muted {
    display: block;
}

#audio-toggle.playing .icon-unmuted {
    display: block;
}

#audio-toggle.playing .icon-muted {
    display: none;
}

.parallax-container {
    position: relative;
    height: 100vh;
    overflow: visible;
}

.parallax-container svg {
    width: 320px;
    display: block;
    height: auto;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    z-index: 4;
}

.parallax-container .parallax-logo,
.parallax-container .parallax-logo-shadow {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded .parallax-container .parallax-logo,
body.loaded .parallax-container .parallax-logo-shadow {
    opacity: 1;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1586px;
    height: 100vh;
    z-index: 1;
}

.parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tree layers */
.parallax-trees {
    position: fixed;
    top: 0;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    /* Position at center */
    left: 50%;
}

.parallax-trees img {
    height: 100%;
    width: auto;
    display: block;
}

.parallax-trees-left {
    /* Offset positions the inner (right) edge of this container from center */
    --tree-offset: 120px;
    transform: translateX(calc(-100% - var(--tree-offset)));
}

.parallax-trees-right {
    /* Offset positions the inner (left) edge of this container from center */
    --tree-offset: 120px;
    transform: translateX(var(--tree-offset));
}

.parallax-trees-right img {
    /* Align image to left of container so inner edge aligns with container edge */
    margin-left: 0;
}

.parallax-fg {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1586px;
    min-width: 1000px;
    z-index: 2;
    transform-origin: bottom center;
}

.parallax-fg img {
    display: block;
    width: 100%;
    height: auto;
}

/* Content area below the parallax */
.content {
    position: relative;
    z-index: 3;
    margin-top: 0;
    background: #000;
    padding: 0px;
    color: #fff;
}

.content h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Hidden - we're using canvas now for the text */
.content h2 {
    display: none;
}

.content>img {
    display: block;
    width: 66vw;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: none;
}

/* Canvas text mask */
#text-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
    opacity: 0;
}

/* Red overlay - sits between video and mask */
#red-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FF1515;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
}

/* Video wrapper for sticky behavior - height set by JS */
.video-wrapper {
    position: relative;
}

.content .video-player {
    width: 100%;
    height: 100vh;
    padding-bottom: 0;
    position: sticky;
    top: 0;
    margin: 0 auto;
    opacity: 0;
    z-index: 4;
}

.content .video-player video {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

/* Video poster overlay - shows after video ends */
#video-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

#video-poster.visible {
    opacity: 1;
}

/* Watch Again Button */
#watch-again {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FF1515;
    border-radius: 8px;
    padding: 16px 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 10;
}

#watch-again.visible {
    opacity: 1;
    visibility: visible;
}

#watch-again:hover {
    background: rgba(255, 21, 21, 0.3);
    transform: translate(-50%, -50%) scale(1.05);
}

#watch-again svg {
    width: 24px;
    height: 24px;
    color: #FF1515;
    transition: transform 0.3s ease;
}

#watch-again:hover svg {
    transform: rotate(-360deg);
}

#watch-again span {
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#buy-tickets {
    display: block;
    background: none;
    color: #fff;
    width: 100%;
    font-size: 32px;
    line-height: 100%;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    border: 4px double red;
    border-width: 4px 0;
    text-transform: uppercase;
    overflow: hidden;
    padding: 10px 0;
    background: #000;
    position: fixed;
    bottom: 0;
    z-index: 1000;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 15s linear infinite;
}

.marquee-track span {
    padding: 0 16px;
    white-space: nowrap;
    transition: color .3s;
    cursor: pointer;
}

.marquee-track span:hover {
    color: red;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Ticket Links Section */
.ticket-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 40px);
    padding: 0 10px 40px;
    flex-wrap: wrap;
}

.ticket-links a {
    display: block;
    padding: clamp(10px, 2vw, 20px) clamp(12px, 2.5vw, 30px);
    background: #111;
    border: 2px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ticket-links a:hover {
    border-color: #FF1515;
    background: #1a1a1a;
    transform: scale(1.05);
}

.ticket-links img {
    height: clamp(20px, 4vw, 40px);
    width: auto;
    display: block;
    filter: brightness(15) grayscale(1);
    transition: filter 0.3s ease;
}

.ticket-links a:hover img {
    filter: none;
}

/* Tickets Section */
.tickets-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tickets-section h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 40px;
    letter-spacing: 8px;
    color: #fff;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
}

.tab {
    background: #111;
    border: 2px solid #333;
    padding: 20px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    position: relative;
    top: 2px;
}

.tab svg {
    height: 40px;
    width: auto;
    display: block;
    color: #666;
    transition: color 0.3s ease;
}

.tab:hover {
    background: #1a1a1a;
    border-color: #444;
}

.tab:hover svg {
    color: #999;
}

.tab.active {
    background: #000;
    border-color: #ff1515;
    border-bottom-color: #000;
}

.tab.active svg {
    color: #fff;
}

.tab-content {
    border: 2px solid #ff1515;
    border-radius: 0 0 8px 8px;
    background: #000;
    min-height: 600px;
}

.tab-pane {
    display: none;
    width: 100%;
    height: 600px;
}

.tab-pane.active {
    display: block;
}

.tab-pane iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Credits Footer */
#credits-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: clamp(12px, 2vh, 30px) 0 0;
    text-align: center;
    background: #000;
    z-index: 0;
    opacity: 0;
    will-change: transform;
    transition: opacity 0s;
}

/* Upside Down particles in footer - overlays content */
#upside-down-particles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-in;
    filter: blur(0.75px);
}

#credits-footer .ticket-links,
#credits-footer #vys-credits,
#credits-footer #copyright {
    position: relative;
    z-index: 2;
    padding-left: clamp(14px, 3vw, 30px);
    padding-right: clamp(14px, 3vw, 30px);
}

#vys-credits {
    text-align: center;
    width: min(100%, 1000px);
    margin: 0 auto 20px;
    max-width: 1000px;
    cursor: default;
}

.grass-footer-strip {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

#vys-credits span {
    display: inline-block;
    line-height: 1.2em;
    margin: 4px 8px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .4);
    font-family: 'Six Caps', sans-serif;
    font-size: clamp(24px, 5vw, 42px);
    text-transform: uppercase;
    position: relative;
    font-weight: 500;
    transition: color .3s;
    cursor: default;
}

#vys-credits span:hover {
    color: red;
}

#vys-credits span.presents-text {
    color: #fff;
    font-size: 24px;
    letter-spacing: 4px;
}

#vys-credits span.presents-text:hover {
    color: #fff;
}

#vys-credits span.infuturum-text {
    color: #ff1515;
}

#vys-credits span.university-footer-text {
    color: #fff;
    margin-top: 40px;
    display: block;
    font-size: clamp(24px, 4vw, 36px);
}

#vys-credits span.university-footer-text:hover {
    color: #fff;
}

@media (max-width: 768px) {
    #vys-credits {
        width: 100%;
    }
}

#vys-credits small {
    opacity: .8;
    font-size: 70%;
    text-transform: lowercase;
    letter-spacing: 1px;
    padding: 0 4px;
}

/* Developer Credits */
.dev-credits-container {
    width: 100%;
}

.dev-credit {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.dev-credit small {
    margin: 0;
    padding: 0;
}

.dev-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.dev-link:hover {
    color: #FF1515;
}

/* Live Website Preview */
.dev-preview-wrapper {
    position: relative;
    display: inline-block;
}

.website-preview {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 280px;
    height: 180px;
    background: #000;
    border: 2px solid #ff1515;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 45px rgba(255, 21, 21, 0.3);
    z-index: 1000;
    pointer-events: none;
}

.website-preview iframe {
    width: 1000px;
    height: 640px;
    border: none;
    transform: scale(0.28);
    transform-origin: 0 0;
    pointer-events: none;
}

.dev-preview-wrapper:hover .website-preview {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Triangle for preview window */
.website-preview::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-style: solid;
    border-color: #ff1515 transparent transparent transparent;
}

/* Rating Box */
#rating {
    width: 250px;
    margin: 30px auto 0;
    border: 2px solid rgba(255, 255, 255, .4);
    text-align: center;
    text-transform: uppercase;
    overflow: hidden;
    color: rgba(255, 255, 255, .4);
    font-family: Arial, sans-serif;
    font-size: 12px;
}

#rating-letter {
    float: left;
    font-size: 14px;
    width: 70px;
    border-right: 2px solid rgba(255, 255, 255, .4);
    font-weight: bold;
}

#rating-title {
    overflow: hidden;
    font-weight: bold;
    font-size: 10px;
    line-height: 18px;
    border-bottom: 2px solid rgba(255, 255, 255, .4);
}

#rating-info {
    overflow: hidden;
    font-weight: lighter;
    font-size: 8px;
    line-height: 1.4;
    padding: 4px 6px;
}

/* TV-MA Rating specific */
.tv-ma-rating #rating-letter {
    font-size: 16px;
    line-height: 52px;
}

/* Copyright */
#copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    line-height: 120%;
}

#copyright a {
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .3s, border .3s, filter .3s;
    filter: grayscale(1);
}

#copyright a:hover {
    color: #fff;
    border-bottom-color: #ffe900;
    filter: grayscale(0);
}

#copyright span {
    display: inline-block;
}


/*v2.0*/
:root {
    --logo-width: 420px;
    --footer-logo-height: 40px;
    --scale: 1;
    --digit-width: calc(48px * var(--scale));
    --digit-height: calc(80px * var(--scale));
    --seg-h-width: calc(28px * var(--scale));
    --seg-h-height: calc(6px * var(--scale));
    --seg-h-left: calc(10px * var(--scale));
    --seg-v-width: calc(6px * var(--scale));
    --seg-v-height: calc(30px * var(--scale));
    --seg-v-offset: calc(4px * var(--scale));
    --seg-b-top: calc(5px * var(--scale));
    --seg-c-top: calc(42px * var(--scale));
    --seg-g-top: calc(37px * var(--scale));
    --dot-size: calc(8px * var(--scale));
    --gap-display: calc(8px * var(--scale));
    --gap-digit: calc(4px * var(--scale));
    --gap-wrapper: calc(10px * var(--scale));
    --gap-separator: calc(20px * var(--scale));
    --pad-separator: calc(20px * var(--scale));
    --blur-amount: calc(8px * var(--scale));
    --label-size: calc(9px * var(--scale));
}

.countdown-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--gap-display);
    margin-bottom: 20px;
}

.digit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-wrapper);
}

.digit-group {
    display: flex;
    gap: var(--gap-digit);
}

.digit {
    width: var(--digit-width);
    height: var(--digit-height);
    position: relative;
}

.segment-wrap {
    position: absolute;
}

.segment-glow {
    position: absolute;
    background: #ff2a2a;
    opacity: 0;
    filter: blur(var(--blur-amount));
    transition: opacity 0.1s;
    pointer-events: none;
}

.segment-wrap.on .segment-glow {
    opacity: 1;
}

.segment {
    position: absolute;
    background: #000000;
    transition: background 0.1s;
}

.segment-wrap.on .segment {
    background: #ff2a2a;
}

.segment-wrap.h {
    width: var(--seg-h-width);
    height: var(--seg-h-height);
    left: var(--seg-h-left);
}

.segment-wrap.h .segment {
    width: 100%;
    height: 100%;
    clip-path: polygon(0% 50%,
            10% 0%,
            90% 0%,
            100% 50%,
            90% 100%,
            10% 100%);
}

.segment-wrap.h .segment-glow {
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.segment-wrap.v {
    width: var(--seg-v-width);
    height: var(--seg-v-height);
}

.segment-wrap.v .segment {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%,
            100% 10%,
            100% 90%,
            50% 100%,
            0% 90%,
            0% 10%);
}

.segment-wrap.v .segment-glow {
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.segment-wrap.a {
    top: 0;
}

.segment-wrap.b {
    top: var(--seg-b-top);
    right: var(--seg-v-offset);
}

.segment-wrap.c {
    top: var(--seg-c-top);
    right: var(--seg-v-offset);
}

.segment-wrap.d {
    bottom: 0;
}

.segment-wrap.e {
    top: var(--seg-c-top);
    left: var(--seg-v-offset);
}

.segment-wrap.f {
    top: var(--seg-b-top);
    left: var(--seg-v-offset);
}

.segment-wrap.g {
    top: var(--seg-g-top);
}

.separator {
    display: flex;
    flex-direction: column;
    gap: var(--gap-separator);
    padding: var(--pad-separator) var(--gap-digit) 0;
}

.separator-dot {
    width: var(--dot-size);
    height: var(--dot-size);
    background: #ff2a2a;
    border-radius: 50%;
    box-shadow:
        0 0 8px #ff2a2a,
        0 0 15px #ff2a2a,
        0 0 30px rgba(255, 42, 42, 0.6),
        0 0 50px rgba(255, 42, 42, 0.4);
}

.time-label {
    font-size: var(--label-size);
    color: #ff2a2a;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow:
        0 0 8px rgba(255, 42, 42, 0.8),
        0 0 15px rgba(255, 42, 42, 0.5);
}

/* Tablet */
@media (max-width: 600px) {
    :root {
        --scale: 0.75;
    }
}

/* Mobile */
@media (max-width: 400px) {
    :root {
        --scale: 0.55;
    }
}

@media (max-width: 768px) {
    :root {
        --logo-width: 320px;
    }
}

@media (max-width: 480px) {
    :root {
        --logo-width: 250px;
        --footer-logo-height: 30px;
    }
}

/* Exclusively Mobile Footer Refinements */
@media (max-width: 768px) {
    #credits-footer {
        height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
    }

    .grass-footer-strip {
        position: absolute !important;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 0 !important;
        z-index: 1;
    }
}