/*
 * Documentation
 * Docs: /Docs/Apps/Microsites/junulara.md
 * Visual theme for the junulara site. Defines layout, typography, colors, and component styling.
 */
/* Documentation: Base styling and layout rules.  Docs: /Docs/Apps/Microsites/junulara.md */

/* ===== Reset / Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* Documentation: Component styling and visual treatments.  Docs: /Docs/Apps/Microsites/junulara.md */

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: "Quicksand", sans-serif;
    background: #000;
    color: #fff;
}

/* ===== Media Container ===== */
.media-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* CHANGED: shift the crop focus downward to protect the subject's head on ultrawide screens */
    object-position: 50% 50%;
    filter: blur(12px);
    transform: scale(1.1);
    /* VERY SLOW: 8s transition with soft easing */
    transition: filter 8s cubic-bezier(0.25, 1, 0.5, 1), transform 8s ease-out;
    will-change: filter, transform;
}

#bg-video.in-focus {
    filter: blur(0px);
    transform: scale(1);
}

/* ===== Overlay ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 8s cubic-bezier(0.25, 1, 0.5, 1);
}

.overlay.faded {
    opacity: 0;
}

/* ===== Radial Flash ===== */
#flash-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 150vmax;
    height: 150vmax;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
}

#flash-overlay.active {
    /* 4 seconds for a gentle wash of light */
    animation: flash-expand 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes flash-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* ===== Splash Screen ===== */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1.5s ease;
}

#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== Button ===== */
.enter-btn {
    position: relative;
    padding: 22px 60px;
    font-size: 1.3rem;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center center;
    z-index: 20;
}

.enter-btn::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    z-index: -1;
    animation: pulse-ring 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        opacity: 0;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.enter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: scale(1.05);
}

/* BUTTON EXIT */
.enter-btn.fade-out {
    transform: scale(0.95);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
    pointer-events: none;
}

/* ===== VECTOR TUNNEL LAYER ===== */
#vector-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0;
}

#vector-layer.active {
    opacity: 1;
}

.tunnel-ring {
    transform-origin: 50% 50%;
    opacity: 0;
}

.active .tunnel-ring {
    /* 7s duration for a dream-like drift */
    animation: tunnel-flight 7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Stagger delays */
.active #ring-1 {
    animation-delay: 0s;
}

.active #ring-2 {
    animation-delay: 0.15s;
}

.active #ring-3 {
    animation-delay: 0.3s;
}

@keyframes tunnel-flight {
    0% {
        transform: scale(0.1);
        opacity: 0;
        stroke-width: 1.5px;
    }

    20% {
        opacity: 0.8;
    }

    100% {
        transform: scale(4);
        opacity: 0;
        stroke-width: 0px;
    }
}

/* ===== Hidden YouTube ===== */
#hidden-player-wrapper {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    visibility: hidden;
    pointer-events: none;
}

/* Confirmation page styles */
.confirmation-page {
    margin: 0;
    font-family: "Quicksand", sans-serif;
    background: #000;
    color: #fff;
}

.confirmation-page--success {
    background: #000;
    color: #fff;
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.confirmation-page--success h1 {
    color: #4ade80;
}

.confirmation-page--success a {
    color: #888;
    margin-top: 20px;
    display: inline-block;
}

.confirmation-page--error {
    background: #000;
    color: #fff;
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.confirmation-page--error h1 {
    color: #ff4444;
}

.confirmation-page--error a {
    color: #888;
    margin-top: 20px;
    display: inline-block;
}
/* Last-Modified: 2026-01-15T01:21:21.0000000Z */