/* =============================================
   ShutterPhrase — LAYOUT.CSS
   ============================================= */

CURSOR ================= */
#cursor { display: none; }

/* ═══════════ CURSOR ═══════════ */
@media (pointer: fine) {
    *, *::before, *::after, body, a, button, input, textarea, select, iframe, video, img, div, span, section, nav, footer { cursor: none !important; }
    #cursor {
        position: fixed; top: 0; left: 0; width: 32px; height: 32px;
        background: transparent; border: 1px solid rgba(255,255,255,0.15);
        pointer-events: none; z-index: 10000;
        display: flex; align-items: center; justify-content: center;
        transition:
            width 0.35s cubic-bezier(0.23, 1, 0.32, 1),
            height 0.35s cubic-bezier(0.23, 1, 0.32, 1),
            border-radius 0.35s cubic-bezier(0.23, 1, 0.32, 1),
            border-color 0.4s, background 0.4s;
    }
    #cursor::before, #cursor::after {
        content: ""; position: absolute; width: 100%; height: 100%;
        border: 1.5px solid var(--cursor-color);
        transition: opacity 0.3s;
    }
    #cursor::before {
        clip-path: polygon(0 0, 10px 0, 10px 1.5px, 1.5px 1.5px, 1.5px 10px, 0 10px, 0 0, 100% 100%, 100% calc(100% - 10px), calc(100% - 1.5px) calc(100% - 10px), calc(100% - 1.5px) calc(100% - 1.5px), calc(100% - 10px) calc(100% - 1.5px), calc(100% - 10px) 100%, 100% 100%);
    }
    #cursor::after {
        clip-path: polygon(100% 0, 100% 10px, calc(100% - 1.5px) 10px, calc(100% - 1.5px) 1.5px, calc(100% - 10px) 1.5px, calc(100% - 10px) 0, 100% 0, 0 100%, 10px 100%, 10px calc(100% - 1.5px), 1.5px calc(100% - 1.5px), 1.5px calc(100% - 10px), 0 calc(100% - 10px), 0 100%);
    }
    #cursor.hover-envelope { border-color: var(--cursor-color); background: rgba(245,166,35,0.05); }
    #cursor.hover-envelope::before, #cursor.hover-envelope::after { opacity: 0; }
    #cursor.hover-card { width: 80px; height: 80px; border-color: #fff; }
    #cursor.hover-card::before, #cursor.hover-card::after { width: 120%; height: 120%; opacity: 0.5; }
    #cursor::after {
        content: "VIEW"; font-family: Inter, sans-serif; font-size: 10px; letter-spacing: 2px;
        color: #fff; opacity: 0; transition: opacity 0.3s; font-weight: 600; border: none;
    }
    #cursor.hover-card::after { opacity: 1; clip-path: none; width: auto; height: auto; position: relative; }
}

/* ================= NAV ================= */

/* ═══════════ NAVIGATION ═══════════ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 25px var(--pad-x); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
    background: linear-gradient(to bottom, rgba(5,5,5,0.85) 0%, transparent 100%);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}
nav.nav-hidden { transform: translateY(-100%); }
nav.nav-solid { background: rgba(5,5,5,0.95); }
@media (min-width: 768px) { nav { flex-direction: row; justify-content: space-between; padding: 35px var(--pad-x); } }
nav img { height: 24px; opacity: .9; transition: 0.3s; filter: drop-shadow(0px 2px 15px rgba(255,255,255,0.2)); }
@media (min-width: 768px) { nav img { height: 28px; } }
nav div { display: flex; gap: 25px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 768px) { nav div { gap: 35px; } }
nav a { color: white; text-decoration: none; font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; opacity: .7; transition: .3s; padding: 8px 12px; border-radius: 4px; }
nav a:hover { opacity: 1; color: #ffdf85; text-shadow: 0 0 15px rgba(245,166,35,0.4); }

/* ═══════════════════════════════════
   HERO SCROLL ANIMATION
   ═══════════════════════════════════ */
/* ================= HERO SCROLL ================= */

/* ═══════════ HERO SCROLL ═══════════ */
.scroll-section { height: 180dvh; position: relative; width: 100%; z-index: 10; }
@media (min-width: 768px) { .scroll-section { height: 220dvh; } }

.sticky-wrapper {
    position: sticky; top: 0; height: 100dvh; width: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; overflow: hidden; background-color: #050505;
    background-image:
        radial-gradient(circle at 40% 30%, rgba(255,255,255,0.06) 0%, rgba(245,166,35,0.04) 20%, rgba(255,223,133,0.02) 40%, transparent 60%),
        radial-gradient(circle at 60% 60%, rgba(255,255,255,0.04) 0%, rgba(245,166,35,0.02) 15%, rgba(255,223,133,0.01) 30%, transparent 50%);
    padding: 0 20px;
}

.scroll-text {
    text-align: center; margin-bottom: 2rem; will-change: transform, opacity, filter;
    opacity: 0; filter: blur(10px); transform: translateY(80px);
}
.scroll-text h1 { font-size: clamp(2.5rem, 8vw, 6rem); margin-bottom: 1rem; }
.scroll-text p { font-size: clamp(0.95rem, 2vw, 1.2rem); opacity: 0.8; max-width: 500px; margin: 0 auto; text-shadow: 0 0 20px rgba(255,255,255,0.1); }

.scroll-video-container {
    position: relative; height: 50dvh; max-height: 500px; aspect-ratio: 9/16; max-width: 90vw;
    display: flex; justify-content: center; pointer-events: none;
    clip-path: inset(35% 40% round 1000px); -webkit-clip-path: inset(35% 40% round 1000px);
    will-change: clip-path; transform: translateZ(0);
}
@media (min-width: 768px) { .scroll-video-container { height: 65dvh; max-height: 650px; } }
.scroll-video-container video { width: 100%; height: 100%; object-fit: cover; transform: scale(0.7); will-change: transform; }

.scroll-btn-wrapper { margin-top: 6rem; will-change: transform, opacity, filter; opacity: 0; filter: blur(10px); transform: translateY(80px); }

/* ================= BUTTONS ================= */
.hero-btn, .cta-btn {
    position: relative;
    background: linear-gradient(#050505, #050505) padding-box, linear-gradient(135deg, #f5a623, #ffdf85, #d48300) border-box;
    border: 1px solid transparent; padding: 14px 32px; border-radius: 50px; color: white;
    font-family: Inter, sans-serif; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s, color 0.4s;
    pointer-events: auto; box-shadow: 0 4px 20px rgba(245,166,35,0.15); text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.hero-btn:hover, .cta-btn:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(245,166,35,0.35); color: #ffdf85; }

/* ================= CATEGORY FILTERS ================= */
.category-nav { margin-top: 30px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 0 15px; }
.cat-btn {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7);
    padding: 8px 20px; border-radius: 30px; font-family: Inter, sans-serif; font-size: 0.75rem; letter-spacing: 1px;
    text-transform: uppercase; cursor: pointer; transition: 0.3s; backdrop-filter: blur(5px); pointer-events: auto;
}
.cat-btn:hover { background: rgba(255,255,255,0.1); color: white; }
/* .active — button selected state */
.cat-btn.active { background: rgba(245,166,35,0.15); border-color: rgba(245,166,35,0.5); color: #ffdf85; box-shadow: 0 0 15px rgba(245,166,35,0.2); }

.category-info-box { margin-top: 25px; min-height: 90px; transition: opacity 0.3s ease, transform 0.3s ease; padding: 0 20px; max-width: 600px; margin-left: auto; margin-right: auto; }
.category-info-box h4 { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: #ffdf85; margin-bottom: 8px; font-style: italic; }
.category-info-box p { font-size: 0.9rem; opacity: 0.8; line-height: 1.5; }
.cat-price { display: inline-block; margin-top: 12px; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; padding: 5px 14px; background: rgba(255,255,255,0.05); border-radius: 6px; color: #fff; border: 1px solid rgba(255,255,255,0.1); }

/* ================= SHOWREEL ================= */
.swipe-hint { display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 2px; margin-bottom: -15px; margin-top: -20px; gap: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; transform: translateX(3px); } }
@media (min-width: 768px) { .swipe-hint { display: none; } }

.showreel-wrapper { display: flex; gap: 20px; margin-top: 40px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 30px; -webkit-overflow-scrolling: touch; scrollbar-width: none; align-items: center; perspective: 2000px; }
.showreel-wrapper::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .showreel-wrapper { justify-content: center; gap: 40px; flex-wrap: wrap; overflow-x: visible; margin-top: 60px; padding-bottom: 0; } }
@media (min-width: 1024px) { .showreel-wrapper { gap: 70px; } }

.showreel-frame { width: min(75vw, 260px); flex: 0 0 auto; scroll-snap-align: center; }
.showreel-inner { position: relative; width: 100%; aspect-ratio: 9/16; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.6); background: #111; clip-path: inset(0 round 24px); -webkit-clip-path: inset(0 round 24px); transform-origin: bottom center; transform: translateY(150px) rotateX(65deg) scale(0.8); opacity: 0; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s ease, box-shadow 0.6s ease; will-change: transform, opacity; }
.showreel-inner.erect { transform: translateY(0) rotateX(0deg) scale(1); opacity: 1; }
@media (min-width: 768px) { .showreel-inner.erect { box-shadow: 0 35px 90px rgba(0,0,0,.7); } }
@media(hover: hover) { .showreel-inner.erect:not(:fullscreen):hover { transform: translateY(-12px); box-shadow: 0 40px 100px rgba(255,255,255,0.05); } }

.showreel-inner video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; border: none; }
.showreel-inner:fullscreen, .showreel-inner:-webkit-full-screen { border-radius: 0; clip-path: none; -webkit-clip-path: none; background: #000; }
.showreel-inner:fullscreen video, .showreel-inner:-webkit-full-screen video { object-fit: contain; }

.mute-btn, .fs-btn { position: absolute; width: 38px; height: 38px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; z-index: 10; color: rgba(255,255,255,0.8); }
.fs-btn   { top: 15px; right: 15px; }
.mute-btn { bottom: 15px; right: 15px; }
.mute-btn { bottom: 15px; right: 15px; } 
.mute-btn:hover, .fs-btn:hover { background: rgba(20,20,20,0.9); border-color: #f5a623; box-shadow: 0 0 15px rgba(245,166,35,0.4); color: #f5a623; transform: scale(1.1); }

/* ================= 3D PORTFOLIO GALLERY ================= */
