/* Project Detail Page */
.project-main {
    margin: 0 auto;
    padding: 32px 40px 160px;
}

/* Top bar: back + info */
.project-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.project-back {
    font-size: 36px;
    font-weight: 300;
    text-decoration: none;
    color: inherit;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.project-back:hover {
    opacity: 1;
}

.project-info-link {
    font-family: var(--font-nav);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Hero: two-column intro (left text, right image) */
.project-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 120px;
}

.project-intro-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 380px;
}

.project-title-en {
    font-family: var(--font-title);
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 6px;
}

.project-title-zh {
    font-family: var(--font-zh);
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    margin-bottom: 62px;
    line-height: 1.3;
}

.project-meta {
    font-size: 12px;
    opacity: 0.45;
    margin-bottom: 200px;
    font-weight: 400;
    line-height: 1.8;
}

.project-year,
.project-team {
    font-size: 12px;
}

.project-desc-zh {
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 16px;
    color: var(--color-black);
}

.project-desc-en {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.8;
    opacity: 0.45;
    margin-bottom: 8px;
}

.project-intro-image {
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
}

.project-intro-image img,
.project-intro-image video {
    width: 75%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Content sections */
.project-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* Full width image */
.content-block {
    overflow: hidden;
}

.content-block img,
.content-block video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-wrapper {
    position: relative;
    cursor: pointer;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.video-play-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.content-block.full {
    width: 100%;
}

/* Narrow centered image */
.content-block.narrow {
    width: 50%;
    margin: 0 auto;
}

/* Two-column image grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.content-grid .content-block {
    width: 100%;
}

.content-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Text + image row */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.content-row-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
    max-width: 320px;
}

.content-row-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.content-row-text p {
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.55;
}

/* Storyboard grid */
.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.storyboard-item {
    overflow: hidden;
    border-radius: 8px;
}

.storyboard-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fullbleed image (no side margins, no radius) */
.content-block-fullbleed {
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
    overflow: hidden;
}

.content-block-fullbleed img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* Merchandise section: grid + text side by side */
.merch-section {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
}

.merch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 420px;
    margin-left: -50px;
}

.merch-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.merch-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 1/1;
    border-radius: 8px;
}

.merch-item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.merch-item-desc {
    font-size: 12px;
    opacity: 0.5;
    line-height: 1.5;
}

.merch-text {
    max-width: 240px;
    font-size: 14px;
    line-height: 2;
    opacity: 0.7;
    padding-top: 290px;
    margin-left: 100px;
}

/* Verify Boundary custom sections */
.vb-section-block {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.vb-section-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vb-title-zh {
    font-family: var(--font-zh);
    font-size: 24px;
    font-weight: 700;
}

.vb-title-en {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 400;
    opacity: 0.5;
}

.vb-text-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vb-caption {
    font-size: 13px;
    opacity: 0.5;
    grid-column: 2;
}

.vb-text-block {
    max-width: 560px;
    margin-left: auto;
}

.vb-text-row .vb-text-block {
    grid-column: 2;
    margin-left: 0;
}

.vb-text-block p {
    font-size: 14px;
    line-height: 2;
    opacity: 0.7;
    margin-bottom: 12px;
}

.vb-tools {
    font-size: 12px;
    opacity: 0.45;
    margin-top: 8px;
}

.vb-row-media-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}


.vb-media-tall video {
    width: 45%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-left: 250px;
}

.vb-text-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    align-self: start;
}

.vb-text-side h3 {
    font-family: var(--font-zh);
    font-size: 24px;
    font-weight: 700;
}

.vb-text-side p {
    font-size: 14px;
    line-height: 2;
    opacity: 0.7;
}

.vb-three-posters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
    max-width: 75%;
    margin: 0 auto;
}

.vb-poster-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .project-main {
        padding: 32px 32px 120px;
    }

    .project-intro {
        gap: 40px;
    }

    .project-meta {
        margin-bottom: 80px;
    }

    .merch-text {
        padding-top: 60px;
        margin-left: 40px;
    }

    .vb-media-tall video {
        margin-left: 80px;
        width: 60%;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .project-main {
        padding: 24px 20px 100px;
    }

    .project-intro {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }

    .project-intro-text {
        max-width: none;
    }

    .project-title-en {
        font-size: 26px;
    }

    .project-title-zh {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .project-meta {
        margin-bottom: 24px;
    }

    .project-intro-image img,
    .project-intro-image video {
        width: 100%;
    }

    .project-content {
        gap: 48px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .content-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .content-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-row-text {
        max-width: none;
    }

    .content-block.narrow {
        width: 80%;
    }

    .project-topbar {
        margin-bottom: 32px;
    }

    .project-back svg {
        width: 36px;
        height: 36px;
    }

    .project-info-link {
        font-size: 20px;
    }

    .storyboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 48px;
    }

    .merch-section {
        flex-direction: column;
        gap: 32px;
    }

    .merch-grid {
        max-width: 100%;
        margin-left: 0;
    }

    .merch-text {
        padding-top: 0;
        margin-left: 0;
        max-width: none;
    }

    .content-block-fullbleed {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .vb-row-media-text {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vb-media-tall video {
        width: 100%;
        margin-left: 0;
    }

    .vb-three-posters {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }

    .vb-text-block {
        max-width: none;
        margin-left: 0;
    }

    .vb-text-row {
        grid-template-columns: 1fr;
    }

    .vb-caption {
        grid-column: 1;
    }

    .vb-text-row .vb-text-block {
        grid-column: 1;
    }
}

/* Project page custom layouts responsive */
@media (max-width: 768px) {
    .fullbleed-section {
        width: calc(100% + 40px) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        padding: 48px 20px 80px !important;
    }

    .poster-row {
        gap: 16px !important;
    }

    .poster-row img {
        width: 30% !important;
    }

    .sketch-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .sketch-grid > p {
        max-width: none !important;
    }

    .video-row-6 video {
        width: 30% !important;
    }
}

@media (max-width: 480px) {
    .project-title-en {
        font-size: 22px;
    }

    .project-title-zh {
        font-size: 18px;
    }

    .content-block.narrow {
        width: 100%;
    }

    .content-grid-3 {
        grid-template-columns: 1fr;
    }

    .poster-row {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }

    .poster-row img {
        width: 45% !important;
    }

    .video-row-6 video {
        width: 45% !important;
    }
}
