/* =========================================
   Shared Project Detail Page Styles
   Matches the main portfolio dark aesthetic
   ========================================= */

:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --accent-color: #888;
    --font-main: 'Inter', sans-serif;
    --border-color: #222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #000;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Main content ── */
.project-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 9rem 4rem 8rem;
}

/* Back link */
.project-back {
    margin-bottom: 2.5rem;
}

.project-back a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.project-back a:hover {
    color: var(--text-color);
}

/* Title & subtitle */
.project-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 4rem;
}

/* ── Video ── */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 4rem;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Wistia web-component fills the same wrapper */
.wistia-wrapper {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 9;
}

.wistia-wrapper wistia-player {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Description ── */
.project-description {
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

.project-description p {
    font-size: 1.05rem;
    color: #aaa;
    line-height: 1.85;
    max-width: 800px;
    text-align: justify;
}

/* =========================================
   Mobile (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
    .project-page {
        padding: 6.5rem 1.5rem 4rem;
    }

    .project-back {
        margin-bottom: 1.5rem;
    }

    .project-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        letter-spacing: -0.5px;
        margin-bottom: 0.6rem;
    }

    .project-subtitle {
        font-size: 0.8rem;
        margin-bottom: 2.5rem;
    }

    .video-wrapper {
        margin-bottom: 2.5rem;
    }

    .project-description {
        padding-top: 1.5rem;
    }

    .project-description p {
        font-size: 0.95rem;
        line-height: 1.75;
        text-align: left;
    }
}

/* =========================================
   Small phones (≤ 480px)
   ========================================= */
@media (max-width: 480px) {
    .project-title {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }

    .project-page {
        padding: 6rem 1rem 3rem;
    }
}
