/* RETRO ATMOSPHERE & FX */

/* 1. CRT Scanline & Vampiric Vignette Overlay */
/* 1. CRT Scanline & Vampiric Vignette Overlay */
.retro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    /* Force Click-through */
    z-index: 998;
    /* Below Nav check */
    background:
        /* Scanlines */
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        /* Vignette */
        radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(30, 0, 0, 0.4) 100%);
    background-size: 100% 3px, 100%;
    mix-blend-mode: multiply;
}

/* 2. Floating Dust / Ash Particles */
/* We will use pseudo-elements on body or specific sections to create 'ash' */
.ash-container {
    position: fixed;
    /* FIXED not absolute so it stays onscreen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none !important;
    /* Force Click-through */
    z-index: 1;
    /* Background layer */
    /* visible above background */
}

.ash {
    position: absolute;
    width: 4px;
    /* Varied sizes */
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    /* Brighter */
    border-radius: 50%;
    filter: blur(1px);
    animation: floatAsh 15s linear infinite;
    opacity: 0;
    /* logic handles opacity in keyframes */
}

/* RANDOMIZED PARTICLES */
.ash:nth-child(1) {
    top: 110%;
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
}

.ash:nth-child(2) {
    top: 110%;
    left: 20%;
    width: 6px;
    height: 6px;
    animation-duration: 15s;
    animation-delay: 2s;
}

.ash:nth-child(3) {
    top: 110%;
    left: 35%;
    animation-duration: 12s;
    animation-delay: 1s;
}

.ash:nth-child(4) {
    top: 110%;
    left: 50%;
    width: 5px;
    height: 5px;
    animation-duration: 18s;
    animation-delay: 0s;
}

.ash:nth-child(5) {
    top: 110%;
    left: 65%;
    animation-duration: 14s;
    animation-delay: 3s;
}

.ash:nth-child(6) {
    top: 110%;
    left: 80%;
    width: 3px;
    height: 3px;
    animation-duration: 11s;
    animation-delay: 1.5s;
}

.ash:nth-child(7) {
    top: 110%;
    left: 90%;
    animation-duration: 16s;
    animation-delay: 4s;
}

.ash:nth-child(8) {
    top: 110%;
    left: 15%;
    width: 6px;
    height: 6px;
    animation-duration: 20s;
    animation-delay: 2s;
}

.ash:nth-child(9) {
    top: 110%;
    left: 45%;
    animation-duration: 13s;
    animation-delay: 0.5s;
}

.ash:nth-child(10) {
    top: 110%;
    left: 75%;
    width: 4px;
    height: 4px;
    animation-duration: 17s;
    animation-delay: 1s;
}

.ash:nth-child(n+11) {
    display: none;
}

/* Fallback if we added too many in HTML */

@keyframes floatAsh {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

/* 3. PREMIUM CTA BUTTON (Elegant Serif) */
.btn-cta {
    position: relative;
    display: inline-block;
    padding: 20px 60px;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    /* Elegant Artist Font */
    font-style: italic;
    font-weight: 600;
    font-size: 1.8rem;
    /* readable large size */
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    transition: 0.5s;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-align: center;
    min-width: 300px;
    line-height: 1;
}

/* Glow Effect on Hover */
.btn-cta:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    box-shadow:
        0 0 20px var(--accent-red),
        0 0 40px var(--accent-red);
    transform: scale(1.05);
}

/* 5. SKETCH / DRAWING BORDER EFFECT */
/* We use pseudo-elements to create lines that 'draw' themselves */

/* Common Sketch Mixin */
.sketch-effect {
    position: relative;
}

.sketch-effect::before,
.sketch-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 2px solid transparent;
    pointer-events: none;
    z-index: 10;
}

/* TOP & RIGHT Border */
.sketch-effect::before {
    top: -10px;
    left: -10px;
}

/* BOTTOM & LEFT Border */
.sketch-effect::after {
    bottom: -10px;
    right: -10px;
}

/* ANIMATION ON HOVER (Button) */
.btn-cta::before,
.btn-cta::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 2px solid transparent;
    box-sizing: content-box;
    /* Ensure border is outside */
    border-radius: 4px;
}

.btn-cta::before {
    top: 0;
    left: 0;
}

.btn-cta::after {
    bottom: 0;
    right: 0;
}

.btn-cta:hover::before {
    width: 100%;
    height: 100%;
    border-top-color: #fff;
    border-right-color: #fff;
    transition: width 0.2s ease-out, height 0.2s ease-out 0.2s;
    /* Draw Top then Right */
}

.btn-cta:hover::after {
    width: 100%;
    height: 100%;
    border-bottom-color: #fff;
    border-left-color: #fff;
    transition: border-color 0s ease-out 0.4s, width 0.2s ease-out 0.4s, height 0.2s ease-out 0.6s;
    /* Draw Bottom then Left */
}

/* MEDIA CONTAINER PERMANENT SKETCH */
/* For videos, we want it to look casually drawn/framed */
.media-container {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    /* Depth */
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    /* Above Ash */
}

/* We'll add specific sketch lines around media */
.media-container::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 5;
    pointer-events: none;
    transition: 0.5s;
}

.media-container:hover::before {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-color: var(--accent-red);
}

/* Corner Accents for Video ("The Artist's Tape") */
.media-corner-TL,
.media-corner-BR {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-red);
    z-index: 6;
    transition: 0.5s;
}

.media-corner-TL {
    top: -5px;
    left: -5px;
    border-bottom: none;
    border-right: none;
}

.media-corner-BR {
    bottom: -5px;
    right: -5px;
    border-top: none;
    border-left: none;
}

.media-container:hover .media-corner-TL {
    top: -10px;
    left: -10px;
}

.media-container:hover .media-corner-BR {
    bottom: -10px;
    right: -10px;
}

/* 4. Text Shadow for Headlines (Retro Blur) */
.section-title {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    position: relative;
}

/* Subtle accent line next to titles */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-red);
    margin-top: 15px;
    box-shadow: 0 0 10px var(--accent-red);
}

/* 6. BACKGROUND INK DRAWING ANIMATIONS */
.ink-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none !important;
    /* Force Click-through */
    z-index: -1;
    /* Behind everything */
    opacity: 0.8;
}

.ink-path {
    fill: none;
    stroke: #ffffff;
    /* Bright White Light */
    stroke-width: 2;
    /* Thinner for precision */
    stroke-linecap: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    /* Neon Glow Effect */
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px var(--accent-red));
    animation: drawInk 8s linear infinite;
    mix-blend-mode: screen;
    /* Blend with dark background */
}

/* Stagger Animations */
.ink-path:nth-child(1) {
    animation-duration: 15s;
    stroke: rgba(180, 0, 0, 0.2);
}

/* Red accent */
.ink-path:nth-child(2) {
    animation-delay: 2s;
    animation-duration: 12s;
}

/* 4. ENTRANCE ANIMATIONS */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Removed fixed keyframes to allow Scroll Trigger control */
.ink-path:nth-child(3) {
    animation-delay: 5s;
    animation-duration: 20s;
    stroke-width: 1;
}

@keyframes drawInk {
    0% {
        stroke-dashoffset: 2000;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        stroke-dashoffset: 0;
    }

    90% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: -2000;
        opacity: 0;
    }
}

/* 7. FEATURED HIGHLIGHTS GRID */
/* 7. FEATURED HIGHLIGHTS GRID */
.highlights-grid {
    display: flex;
    gap: 15px;
    /* Comfortable gap */
    margin-top: 50px;
    width: 100%;
    /* Let it take natural width of parent, but don't stretch too wide on huge screens */
    max-width: 900px;
    justify-content: center;
    /* Center if fewer items */
}

.highlight-item {
    flex: 1;
    /* Force Instagram Story Ratio 9:16 */
    aspect-ratio: 9 / 16;
    height: auto;
    /* Remove fixed height */
    position: relative;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    /* Slight rounded corners look cleaner */
}

.highlight-item video,
.highlight-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.5s;
}

/* Interaction */
.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item:hover video,
.highlight-item:hover img {
    opacity: 1;
}

/* 8. CUSTOM CURSOR - TATTOO PEN */
/* 8. CUSTOM CURSOR - HYBRID (System Cursor + Ring Trail) */
body {
    cursor: default;
    /* Restore Classic Cursor */
}

/* Hide the custom dot, we use system arrow */
.cursor-dot {
    display: none;
}

/* The Glowing Ring (Ink Pool) - Follows the arrow */
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, border-color 0.2s, opacity 0.2s;
    mix-blend-mode: exclusion;
    /* Cool inverse effect over images */
}

/* Hover State - Ring expands */
body.hovering .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: var(--accent-red);
    opacity: 0.5;
}

/* Click State - Ring shrinks */
body:active .cursor-ring {
    width: 15px;
    height: 15px;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}