/* bangertprojects – single project page (projects.php), builds on style.css */

.pp { padding: 0 40px 90px; }

/* ===== Hero: oversized title, white label overlapping the lead image ===== */
.pp-hero { position: relative; z-index: 2; padding-top: 28px; }
.pp-hero::before { content: ''; position: absolute; top: 0; left: -12px; width: min(28vw, 320px); height: min(28vw, 320px); background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)); clip-path: polygon(0 0, 100% 14%, 80% 100%, 10% 86%); pointer-events: none; }
.pp-hero::after { content: ''; position: absolute; top: 44px; right: 6%; width: 180px; height: 1px; background: #111; transform: rotate(-12deg); transform-origin: right center; }
.pp-meta { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.6rem; margin-bottom: 22px; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pp-index { font-family: 'futurabold'; font-size: 1.6rem; letter-spacing: 0.02em; line-height: 1; }
.pp-index span { margin-left: 2px; font-family: 'futuralight'; font-size: 0.88rem; opacity: 0.6; }
.pp-title { position: relative; max-width: 15ch; margin-bottom: -0.52em; font-family: 'futurabold'; font-size: clamp(2.6rem, 7.4vw, 7rem); line-height: 0.92; text-transform: uppercase; letter-spacing: 0.01em; overflow-wrap: break-word; hyphens: auto; }
/* white only from just above the cap line, so a line never covers the one above */
.pp-title span { padding: 0.04em 0.16em 0 0; background: linear-gradient(transparent 0.18em, #fff 0.18em); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ===== Lead: stage image with text card cutting into it ===== */
.pp-lead { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.pp-stage { position: relative; grid-column: 1 / -1; overflow: hidden; background: #eceae7; }
.pp-stage::after { content: ''; position: absolute; z-index: 1; top: 16px; right: 16px; width: 86px; height: 86px; border: 1px solid rgba(255, 255, 255, 0.42); pointer-events: none; }
.pp-stage > img { display: block; width: 100%; height: auto; }
.pp-stage .youtube-lazy, .pp-stage iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

.pp-text { position: relative; z-index: 2; grid-column: 7 / span 6; box-sizing: border-box; margin: -140px 40px 0 0; padding: 40px 36px 30px; background: #fff; box-shadow: 0 0 30px #0000000a; }
.pp-text::before { content: ''; position: absolute; top: 22px; left: 36px; width: 52px; height: 1px; background: rgba(0, 0, 0, 0.4); }
.pp-text .post { max-width: 52ch; }
.pp-fact { display: flex; gap: 1rem; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.pp-fact span { flex: 0 0 8.5em; font-size: 0.8rem; line-height: 2; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.pp-byline { margin-top: 26px; font-family: 'futurabold'; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ===== Gallery: staggered editorial grid, every image visible ===== */
.pp-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 90px 22px; align-items: end; margin-top: 110px; }
.pp-shot { position: relative; margin: 0; }
.pp-shot img { display: block; width: 100%; height: auto; background: #eceae7; }
.pp-shot figcaption { margin-top: 10px; font-family: 'futurabold'; font-size: 0.88rem; letter-spacing: 0.08em; }
.pp-shot figcaption span { font-family: 'futuralight'; opacity: 0.6; }
.pp-shot::before { content: ''; position: absolute; top: -18px; left: 0; width: 44px; height: 1px; background: #333; opacity: 0.45; }
.pp-shot:nth-child(4n+1) { grid-column: 1 / span 8; }
.pp-shot:nth-child(4n+2) { grid-column: 9 / span 4; }
.pp-shot:nth-child(4n+3) { grid-column: 3 / span 10; }
.pp-shot:nth-child(4n+4) { grid-column: 6 / span 7; }
.pp-shot:nth-child(4n+4)::after { content: ''; position: absolute; bottom: 38px; left: -56px; width: 112px; height: 1px; background: #111; }

/* ===== ≤ 800px ===== */
@media (max-width: 800px) {
    .pp { padding: 0 30px 72px; }
    .pp-hero::after { right: 0; width: 100px; }
    .pp-title { margin-bottom: -0.45em; font-size: clamp(2rem, 9vw, 3.4rem); }
    .pp-lead, .pp-gallery { grid-template-columns: 1fr; }
    .pp-text { grid-column: 1; margin: -40px 18px 0; padding: 34px 24px 24px; }
    .pp-text::before { left: 24px; }
    .pp-gallery { gap: 56px; margin-top: 70px; }
    .pp-shot:nth-child(n) { grid-column: 1; }
    .pp-shot:nth-child(4n+2) { margin-left: 22%; }
    .pp-shot:nth-child(4n+4) { margin-right: 12%; }
    .pp-shot:nth-child(4n+4)::after { display: none; }
}

/* ===== ≤ 480px ===== */
@media (max-width: 480px) {
    .pp { padding: 0 20px 56px; }
    .pp-meta { gap: 0.4rem 1rem; }
    .pp-text { margin: -24px 10px 0; padding: 30px 18px 20px; }
    .pp-text::before { left: 18px; }
    .pp-fact { flex-direction: column; gap: 0; }
    .pp-fact span { flex: none; }
    .pp-stage::after { width: 56px; height: 56px; }
    .pp-shot:nth-child(4n+2) { margin-left: 14%; }
}
