/* ── Projects page — exploration, organized by project not employer ── */

body { overflow-x: hidden; }

.pr-wrap {
    padding-top: 0;
    padding-bottom: 120px;
}

/* ── Hero reel ── */
.pr-hero {
    position: relative;
    cursor: pointer;
    margin-bottom: 80px;
    background: #000;
}

.pr-hero video {
    width: 100%;
    height: auto;
    display: block;
}

.pr-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease;
}

.pr-play-overlay:hover {
    background: rgba(0, 0, 0, 0.45);
}

.pr-play-overlay.hidden {
    display: none;
}

.pr-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

/* ── Header ── */
.pr-header {
    padding-bottom: 56px;
    margin-bottom: 80px;
}

.pr-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 16px;
}

.pr-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.pr-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    max-width: 65ch;
}

/* ── Category section ── */
.pr-category {
    margin-bottom: 96px;
}

.pr-category:last-child {
    margin-bottom: 0;
}

.pr-category-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 56px;
    border-bottom: 1px solid #d4d4d4;
}

.pr-category-name {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #000;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: -14px;
}

.pr-category-name::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: #000;
}

.pr-category-count {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
}

/* ── Project media ── */
.pr-media {
    margin-bottom: 24px;
    background: #ededed;
    overflow: hidden;
}

.pr-media video,
.pr-media img {
    width: 100%;
    height: auto;
    display: block;
}

.pr-media-placeholder {
    aspect-ratio: 16 / 9;
    background: #fff;
    border: 1px dashed #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.pr-media-placeholder p {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
}

/* Browser mockup variant (web products) */
.pr-media.pr-browser {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pr-browser-bar {
    background: #e8e8e8;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pr-browser-dots { display: flex; gap: 6px; }

.pr-browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #c0c0c0;
}

.pr-browser-dots span:nth-child(1) { background: #ff5f57; }
.pr-browser-dots span:nth-child(2) { background: #febc2e; }
.pr-browser-dots span:nth-child(3) { background: #28c840; }

.pr-browser-address {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: #666;
}

/* Standard reel: 16:9 */
.pr-media.pr-reel {
    aspect-ratio: 16 / 9;
}

/* Featured (case study) gets a bigger media slot */
.pr-project.featured .pr-media {
    margin-bottom: 0;
}

/* ── Project entries ── */
.pr-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.pr-project {
    position: relative;
}

.pr-marginalia {
    position: absolute;
    right: 100%;
    top: 4px;
    margin-right: 32px;
    width: 140px;
    text-align: right;
}

.pr-year {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 6px;
    white-space: nowrap;
}

.pr-client {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.pr-content {
    min-width: 0;
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 0 48px;
    align-items: start;
}

.pr-content > .pr-media {
    align-self: start;
    margin-bottom: 0;
}

.pr-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pr-text > .pr-case-link {
    margin-top: auto;
    padding-top: 24px;
}

.pr-name {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.pr-role {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 16px;
}

.pr-rule {
    width: 32px;
    height: 2px;
    background: #000;
    border: 0;
    margin: 0 0 16px 0;
}

.pr-bullets {
    margin: 0 0 16px 0;
    padding: 0;
    list-style: none;
    max-width: 65ch;
}

.pr-bullets li {
    position: relative;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #333;
    margin-bottom: 8px;
}

.pr-bullets li:last-child {
    margin-bottom: 0;
}

.pr-bullets li::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 12px;
    width: 8px;
    height: 1px;
    background: #888;
}

.pr-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
    max-width: 65ch;
    margin-bottom: 16px;
}

.pr-case-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2babe2;
    text-decoration: none;
    border-bottom: 1px solid #2babe2;
    padding-bottom: 2px;
}

.pr-case-link:hover {
    color: #000;
    border-bottom-color: #000;
}

.pr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 12px;
    margin-left: -10px;
}

.pr-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    background: #ededed;
    padding: 4px 10px;
}

/* ── Featured (case study) variant ── */
.pr-project.featured .pr-name {
    font-size: 2.75rem;
}

/* Stack media below text earlier than the marginalia breakpoint */
@media (max-width: 1200px) {
    .pr-content {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .pr-content > .pr-media {
        margin-bottom: 0;
        max-width: 520px;
    }

    .pr-text > .pr-case-link {
        margin-top: 0;
    }
}

/* ── Responsive: dates collapse to inline ── */
@media (max-width: 1584px) {
    .pr-marginalia {
        position: static;
        width: auto;
        margin: 0 0 12px 0;
        text-align: left;
        display: flex;
        align-items: baseline;
        gap: 12px;
    }

    .pr-year {
        margin-bottom: 0;
    }

    .pr-client::before {
        content: "·";
        margin-right: 12px;
        color: #c4c4c4;
    }
}

@media (max-width: 900px) {
    .pr-wrap {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .pr-title {
        font-size: 2.5rem;
    }

    .pr-intro {
        font-size: 1rem;
    }

    .pr-name {
        font-size: 1.5rem;
    }

    .pr-project.featured .pr-name {
        font-size: 1.75rem;
    }

    .pr-category {
        margin-bottom: 64px;
    }

    .pr-list {
        gap: 48px;
    }

    .pr-content > .pr-media {
        max-width: 100%;
    }

    .pr-category-head {
        flex-wrap: wrap;
    }

    .pr-bullets {
        padding-left: 16px;
    }

    .pr-bullets li::before {
        left: -16px;
    }
}
