.background-video-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
    display: none;
}

.background-video-wrap.visible {
    display: block;
    animation: bgVideoFadeIn 8s ease-in forwards;
}

@keyframes bgVideoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.background-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.year-section {
    margin-bottom: 60px;
}

.year-title {
    font-size: 3.2rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 30px;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.project-tile {
    aspect-ratio: 1;
    background: #000;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.project-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hover-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-tile:hover::before {
    opacity: 1;
}

.project-tile-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    color: #fff;
    text-align: center;
}

.project-tile h3 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.project-tile p {
    font-size: 1.2rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .project-tile:nth-child(1)::before {
        animation: mobilePulse 5s ease-in-out infinite;
        animation-delay: 0s;
    }

    .project-tile:nth-child(2)::before {
        animation: mobilePulse 6.5s ease-in-out infinite;
        animation-delay: 1s;
    }

    .project-tile:nth-child(3)::before {
        animation: mobilePulse 5.8s ease-in-out infinite;
        animation-delay: 2s;
    }

    .project-tile:nth-child(4)::before {
        animation: mobilePulse 6.1s ease-in-out infinite;
        animation-delay: 3s;
    }

    .project-tile:nth-child(5)::before {
        animation: mobilePulse 5.4s ease-in-out infinite;
        animation-delay: 0.6s;
    }

    @keyframes mobilePulse {
        0%, 100% { opacity: 0; }
        12.5% { opacity: 1; }
        25% { opacity: 0; }
    }
}
