/* ============================================
   BALLOON.ART — Ethereal Pressure
   Museum-grade gallery meets kinetic art
   ============================================ */

:root {
    --font-display: 'Cormorant', Georgia, serif;
    --font-body: 'Outfit', system-ui, sans-serif;
    --black: #0a0a0a;
    --white: #f8f6f3;
    --warm-white: #faf8f5;
    --grey-100: #e8e5e0;
    --grey-400: #9a9590;
    --grey-600: #5a5550;
    --cyan: #28f7ff;
    --cyan-dim: rgba(40, 247, 255, 0.15);
    --gold: #c8a45c;
    --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    background: var(--black);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    cursor: default;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

/* ============================================
   PHASE 1: INTRO — The Void
   ============================================ */

.intro {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    cursor: pointer;
    overflow: hidden;
}

#intro-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
}

.intro-wordmark {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 11vw, 10rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 1;
    display: inline-block;
}

.intro-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(8px);
}

.intro-dot {
    display: inline-block;
    color: var(--cyan);
    opacity: 0;
    transform: scale(0);
    text-shadow: 0 0 40px var(--cyan), 0 0 80px var(--cyan-dim);
}

.intro-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.75rem, 1.8vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey-400);
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    max-width: 90vw;
}

.intro-skip {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--grey-600);
    opacity: 0;
    z-index: 3;
    animation: pulse-subtle 3s ease-in-out infinite 3s;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.intro.hidden {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s var(--transition);
}

.intro.popping .intro-wordmark {
    animation: pop-out 0.5s var(--transition) forwards;
}

@keyframes pop-out {
    0% { transform: scale(1); filter: blur(0); opacity: 1; }
    50% { transform: scale(1.8); filter: blur(0); opacity: 1; }
    100% { transform: scale(3); filter: blur(40px); opacity: 0; }
}

/* ============================================
   PHASE 2: GALLERY
   ============================================ */

.gallery {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background: var(--warm-white);
    display: none;

    /* Subtle paper texture via noise */
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

.gallery.visible {
    display: block;
}

/* --- Slide --- */

.slide {
    scroll-snap-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3vh 5vw;
}

/* --- Image Frame --- */

.frame {
    position: relative;
    max-width: 85vw;
    max-height: 85vh;
}

.frame img {
    max-width: 85vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 2px;
    /* Subtle museum shadow — print mounted on wall */
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.04);
    transition: transform 1.2s var(--transition), box-shadow 1.2s var(--transition);
}

.frame img:hover {
    transform: scale(1.01);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12),
        0 30px 80px rgba(0, 0, 0, 0.06);
}

/* --- Slide Counter --- */

.slide-counter {
    position: absolute;
    bottom: 2.5rem;
    right: 5vw;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    color: var(--grey-400);
    user-select: none;
}

.slide-counter .divider {
    margin: 0 0.3em;
    opacity: 0.4;
}

.slide-counter .total {
    opacity: 0.4;
}

/* --- Video --- */

.video-frame .video-facade {
    position: relative;
    width: 85vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.04);
}

.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--transition);
}

.video-facade:hover img {
    transform: scale(1.03);
}

.play-ring {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.4s;
}

.video-facade:hover .play-ring {
    color: var(--cyan);
}

.play-ring svg {
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s var(--transition);
}

.video-facade:hover .play-ring svg {
    transform: scale(1.15);
}

/* ============================================
   PHASE 3: CONTACT
   ============================================ */

.contact-slide {
    background: var(--black);
    scroll-snap-align: end;
}

.contact {
    text-align: center;
    padding: 4rem 2rem;
    width: 100%;
}

.contact-wordmark {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 1;
}

.contact-dot {
    color: var(--cyan);
    text-shadow: 0 0 30px var(--cyan-dim);
}

/* DADA-style letters for "Art" */
.dada-A {
    font-family: 'Impact', sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: 1.15em;
    color: #28f7ff;
    display: inline-block;
    transform: rotate(-5deg) translateY(-2px);
}
.dada-r {
    font-family: 'Brush Script MT', 'Comic Sans MS', cursive;
    font-style: normal;
    font-weight: 400;
    font-size: 1.3em;
    color: #c8a45c;
    display: inline-block;
    transform: rotate(3deg) translateY(3px);
}
.dada-t {
    font-family: 'Courier New', monospace;
    font-style: normal;
    font-weight: bold;
    font-size: 0.9em;
    color: #e87cba;
    display: inline-block;
    transform: rotate(-8deg) translateY(-1px);
    letter-spacing: 0;
}

.contact-tagline {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--grey-400);
    margin-top: 1rem;
}

.contact-credit {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--grey-600);
    margin-top: 0.75rem;
}

.contact-rule {
    width: 40px;
    height: 1px;
    background: var(--grey-600);
    margin: 2.5rem auto;
    opacity: 0.5;
}

.contact-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    text-decoration: none;
    color: var(--grey-400);
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.contact-links a:hover {
    color: var(--white);
}

.contact-links .wa {
    color: #25D366;
}
.contact-links .wa:hover {
    color: #2efa7a;
}

.contact-site {
    display: inline-block;
    margin-top: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 200;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cyan);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.contact-site:hover {
    opacity: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .frame, .frame img {
        max-width: 94vw;
        max-height: 80vh;
    }

    .video-frame .video-facade {
        width: 94vw;
    }

    .slide-counter {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .contact-links {
        flex-direction: column;
        gap: 1.2rem;
    }

    .intro-tagline {
        letter-spacing: 0.2em;
    }
}

/* ============================================
   SCROLL-REVEAL (added by JS)
   ============================================ */

.slide .frame {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--transition), transform 0.9s var(--transition);
}

.slide.in-view .frame {
    opacity: 1;
    transform: translateY(0);
}
