/* ══════════════════════════════════════════════
   Project Hero V2 — Shared styles
   Include this in any project detail page to
   activate the modern Awwwards-style hero header.
   ══════════════════════════════════════════════ */

/* Override body font (except navbar which stays as homepage) */
.v2-page { font-family: 'Space Grotesk', sans-serif !important; }
.v2-page .project-list-nav { font-family: 'Space Grotesk', sans-serif !important; }
/* Navbar stays in original Syne font, same as homepage */
.v2-page .navbar,
.v2-page .nav-name,
.v2-page .nav-subtitle,
.v2-page .nav-links a,
.v2-page .mobile-nav-links a { font-family: 'Syne', sans-serif !important; }

/* Hide the old project-header */
.v2-page .project-header { display: none !important; }
.v2-page .container { padding-top: 0 !important; }

/* ── Hero Section ── */
.v2-hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--nav-height) + 4vw) 4vw 4vw;
    position: relative;
    text-align: center;
}

.v2-index {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 3rem;
    opacity: 0;
    animation: v2FadeIn 0.8s ease 0.1s forwards;
}

.v2-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(3.5rem, 10vw, 11rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 0.85;
    color: var(--text-color);
    margin: 0 0 3rem;
    opacity: 0;
    animation: v2FadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.v2-desc {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: v2FadeIn 0.8s ease 0.7s forwards;
}

.v2-meta-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    opacity: 0;
    animation: v2FadeIn 0.8s ease 0.9s forwards;
}
.v2-meta-row span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.v2-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.v2-cta {
    position: absolute;
    bottom: 4vw;
    right: 4vw;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 12px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    animation: v2FadeIn 0.8s ease 1.1s forwards;
}
.v2-cta:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    transform: scale(1.03);
}
.v2-cta svg {
    width: 12px;
    height: 12px;
}

/* ── Divider ── */
.v2-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent);
}

/* ── Scroll Indicator ── */
.v2-scroll {
    position: absolute;
    bottom: 4vw;
    left: 4vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: v2FadeIn 0.8s ease 1.3s forwards;
}
.v2-scroll-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.55rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.2);
    writing-mode: vertical-rl;
}
.v2-scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    position: relative;
    overflow: hidden;
}
.v2-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    animation: v2ScrollPulse 2s ease-in-out infinite;
}

/* ── Gallery wrap ── */
.v2-gallery-wrap {
    padding: 6vw 4vw 4vw;
}

/* ── Tetris Grid ── */
.tetris-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-auto-rows: 20vw !important;
    gap: 0.6vw !important;
    grid-auto-flow: dense !important;
    flex-direction: unset !important;
}
.tetris-grid .gallery-item {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    border-radius: 3px !important;
}
.tetris-grid .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.t-2c { grid-column: span 2; }
.t-2r { grid-row: span 2; }
.t-3c { grid-column: span 3; }
.t-4c { grid-column: span 4; }

/* ── Mobile ── */
@media (max-width: 768px) {
    .v2-hero {
        min-height: 70vh;
        padding: calc(var(--nav-height) + 8vw) 6vw 6vw;
    }
    .v2-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }
    .v2-cta {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 2rem;
    }
    .v2-scroll { display: none; }
    .v2-meta-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    .tetris-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 40vw !important;
    }
    .t-3c, .t-4c { grid-column: span 2; }
}

/* ── Animations ── */
@keyframes v2FadeUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes v2FadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes v2ScrollPulse {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}
