/* ===== Scroll Reveal Animations ===== */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card stagger */
.work-card,
.article-card,
.hero-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card.visible,
.article-card.visible,
.hero-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card:nth-child(1) { transition-delay: 0s; }
.work-card:nth-child(2) { transition-delay: 0.1s; }
.work-card:nth-child(3) { transition-delay: 0.2s; }
.work-card:nth-child(4) { transition-delay: 0.3s; }
.work-card:nth-child(5) { transition-delay: 0.4s; }
.work-card:nth-child(6) { transition-delay: 0.5s; }

.hero-card:nth-child(1) { transition-delay: 0.1s; }
.hero-card:nth-child(2) { transition-delay: 0.2s; }
.hero-card:nth-child(3) { transition-delay: 0.3s; }

/* Gallery items */
.gallery-item {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Nav link hover underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--black);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Button hover effects */
.hero-cta {
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-cta:hover::before {
    left: 100%;
}

/* ===== ASCII Hand Art Animation ===== */
.hero-ascii-hand {
    position: fixed;
    right: 0;
    top: 0;
    width: 72vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-ascii-hand canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: auto;
}

.hero-section .hero-content,
.hero-section .hero-cards {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero-ascii-hand {
        width: 45%;
        right: -24px;
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .hero-ascii-hand {
        display: none;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.95rem;
}
