/* =========================================================
   PROJECT PAGE
   ========================================================= */

/* Back button — replaces burger on project pages */
.nav-back {
    position: absolute;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s, gap 0.3s var(--ease);
}

.nav-back:hover {
    color: var(--cream);
    gap: 14px;
}

/* Project hero */
.project-hero {
    position: relative;
    height: calc(100vh - 140px);
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.project-hero-content {
    position: relative;
    z-index: 3;
    padding: 0 48px 52px;
}

.project-category {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 12px;
}

.project-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 16px;
}

.project-hero-year {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey-light);
}

/* Play button — centered on hero */
.hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.hero-play:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.9);
    transform: translate(-50%, -50%) scale(1.08);
}

.hero-play svg {
    margin-left: 4px; /* optical centering of triangle */
}

/* Video modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.video-modal.open {
    opacity: 1;
    pointer-events: all;
}

.video-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    cursor: pointer;
}

.video-modal-inner {
    position: relative;
    z-index: 1;
    width: 80vw;
    max-width: 1100px;
}

.video-modal-close {
    position: absolute;
    top: -48px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0;
    transition: opacity 0.3s;
}

.video-modal-close:hover { opacity: 0.6; }

.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ---- White zone — video + info ---- */
.project-video-section {
    background: #fff;
    padding: 80px 48px;
}

.project-video-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

/* Info section */
.project-info {
    background: #fff;
    padding: 32px 48px 100px;
    border-top: 1px solid #e5e5e5;
}

.project-info-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-meta {
    display: flex;
    flex-direction: row;
    gap: 64px;
    align-items: flex-start;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #999;
}

.meta-value {
    font-size: 28px;
    font-weight: 400;
    color: #111;
}

.project-description p {
    font-size: 1rem;
    line-height: 1.9;
    color: #444;
    max-width: 600px;
}

/* Footer on project page */
.project-page footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.project-page footer p {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-back { left: 24px; }

    .project-hero-content { padding: 0 24px 40px; }

    .project-video-section { padding: 48px 24px; }

    .project-info { padding: 28px 24px 80px; }

    .project-meta {
        flex-direction: column;
        gap: 24px;
    }
}
