@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&family=Space+Grotesk:wght@300;500;700&display=swap");

:root {
    color-scheme: dark;
    --bg: #020202;
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.4);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --brand: #a855f7;
    --shadow: 0 30px 120px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    overflow: hidden;
    cursor: none;
}

body.menu-open {
    overflow: hidden;
}

body.is-touch,
body.is-touch * {
    cursor: auto !important;
}

body.is-touch #cursor {
    display: none !important;
}

::selection {
    background: rgba(168, 85, 247, 0.28);
    color: #fff;
}

#cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 999px;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.loader-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--brand);
    filter: drop-shadow(0 0 8px var(--brand));
}

.deco-text {
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: var(--text-muted);
}

.view {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: none;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    padding-bottom: 100px;
    will-change: transform, opacity, filter;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.view::-webkit-scrollbar {
    display: none;
}

.view.active {
    display: block;
}

#trans-layer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: transparent;
}

.trans-word {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 2em;
    opacity: 0;
    filter: blur(10px);
    text-align: center;
    text-transform: uppercase;
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.title-mask {
    display: block;
    overflow: hidden;
}

.glow-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.5s ease;
}

.glow-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.glow-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(168, 85, 247, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glow-card:hover::before {
    opacity: 1;
}

.album-card {
    cursor: pointer;
}

[data-scene-link].is-active {
    color: #fff !important;
}

#main-nav [data-scene-link].is-active:not(h1) {
    opacity: 1;
}

.mobile-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    backdrop-filter: blur(14px);
}

.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 7000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-drawer.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(12px);
}

.mobile-nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: min(86vw, 360px);
    height: 100%;
    padding: 28px 22px 32px;
    background: rgba(8, 8, 10, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -12px 0 60px rgba(0, 0, 0, 0.35);
    transform: translateX(100%);
    transition: transform 0.36s ease;
}

.mobile-nav-drawer.is-open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.mobile-nav-links {
    display: grid;
    gap: 12px;
}

.mobile-nav-link {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.76);
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mobile-nav-link.is-active {
    color: #fff;
    border-color: rgba(168, 85, 247, 0.35);
    background: rgba(168, 85, 247, 0.08);
}

#photo-overlay,
#video-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
}

.overlay-close,
.overlay-nav-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.overlay-close {
    top: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    font-size: 24px;
}

.overlay-nav-btn {
    top: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    transform: translateY(-50%);
}

.overlay-nav-btn--prev {
    left: 40px;
}

.overlay-nav-btn--next {
    right: 40px;
}

.overlay-close:hover,
.overlay-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.35);
}

#full-photo {
    max-width: 85%;
    max-height: 80%;
    object-fit: contain;
    box-shadow: var(--shadow);
    touch-action: pan-y;
    will-change: transform, opacity;
}

.photo-overlay__meta {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    padding: 0 24px;
    text-align: center;
}

#photo-caption,
#video-caption {
    margin-bottom: 10px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

#photo-index,
#video-index {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

#video-overlay .overlay-nav-btn,
#video-overlay .overlay-close {
    z-index: 2;
}

.video-overlay__stage {
    width: min(86vw, 1400px);
    max-height: 78vh;
    padding: 0 80px;
    box-sizing: border-box;
    touch-action: pan-y;
    will-change: transform, opacity;
}

#full-video {
    width: 100%;
    max-height: 78vh;
    border-radius: 12px;
    background: #000;
    box-shadow: var(--shadow);
}

@media (max-width: 767px) {
    .mobile-nav-toggle {
        display: inline-flex;
    }

    .trans-word {
        font-size: 2.6rem;
        letter-spacing: 0.7em;
    }

    .overlay-close {
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .overlay-nav-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .overlay-nav-btn--prev {
        left: 16px;
    }

    .overlay-nav-btn--next {
        right: 16px;
    }

    #full-photo {
        max-width: calc(100% - 48px);
        max-height: calc(100% - 180px);
    }

    .photo-overlay__meta {
        bottom: 26px;
        padding: 0 20px;
    }

    .video-overlay__stage {
        width: 100%;
        padding: 0 24px;
    }

    #full-video {
        max-height: 68vh;
    }
}
