/*
    Projects / case studies — MazinVisuals LLC
    Matches the site's existing editorial system: Fraunces display serif,
    Urbanist body/labels, sage accent, soft rounded pills and cards.
    No separate visual language from the rest of the site.
*/

:root {
    --pj-primary: #576d5a;
    --pj-accent: #7e998a;
    --pj-bg: #f5f5f2;
    --pj-card: #ffffff;
    --pj-soft: #ecefeb;
    --pj-text: #2f2f2f;
    --pj-muted: #6f716f;
    --pj-border: rgba(87, 109, 90, 0.22);
    --pj-shadow: 0 18px 50px rgba(30, 34, 30, 0.08);
    --font-display: 'Fraunces', serif;
    --font-body: 'Urbanist', sans-serif;
}

body {
    font-family: var(--font-body);
    background: var(--pj-bg);
    color: var(--pj-text);
    padding-top: 80px;
    overflow-x: hidden;
}


/* ============================================
   INTRO
   ============================================ */

.pj-intro {
    max-width: 1160px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 68px) 30px clamp(32px, 4vw, 48px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.68fr);
    gap: 50px;
    align-items: stretch;
}

.pj-intro-inner {
    display: contents;
}

.pj-hero-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pj-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.pj-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--pj-primary);
}

.pj-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.02em;
    margin: 0 0 26px;
    color: var(--pj-text);
}

.pj-subtitle {
    color: var(--pj-muted);
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.62;
    max-width: 700px;
    margin: 0;
}

.pj-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.pj-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 26px;
    border: 2px solid var(--pj-primary);
    border-radius: 50px;
    color: var(--pj-primary);
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pj-hero-btn:hover {
    transform: translateY(-2px);
    background: var(--pj-primary);
    color: #fff;
}

.pj-hero-btn.primary {
    background: linear-gradient(135deg, var(--pj-accent), var(--pj-primary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(87, 109, 90, 0.28);
}

.pj-hero-btn.primary:hover {
    box-shadow: 0 12px 28px rgba(87, 109, 90, 0.38);
    background: linear-gradient(135deg, var(--pj-accent), var(--pj-primary));
    color: #fff;
}

.pj-proof-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 34px;
    border: 1px solid var(--pj-border);
    background: linear-gradient(135deg, rgba(126, 153, 138, 0.08), rgba(255, 255, 255, 0.68)), rgba(255, 255, 255, 0.34);
    color: var(--pj-muted);
    box-shadow: 0 18px 46px rgba(35, 41, 35, 0.05);
}

.pj-proof-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    min-height: 96px;
    padding: 18px 20px;
}

.pj-proof-item:nth-child(odd) {
    border-right: 1px solid var(--pj-border);
}

.pj-proof-item:nth-child(n + 3) {
    border-top: 1px solid var(--pj-border);
}

.pj-proof-line strong {
    color: var(--pj-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 0.86;
    min-width: 48px;
}

.pj-proof-item b {
    display: block;
    color: var(--pj-text);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 7px;
}

.pj-proof-item small {
    display: block;
    max-width: 190px;
    color: #777b77;
    font-size: 0.82rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.pj-brief-card {
    position: relative;
    align-self: center;
    padding: 30px 0 30px 34px;
    border-left: 1px solid var(--pj-border);
}

.pj-brief-label {
    display: block;
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.pj-brief-card h2 {
    color: var(--pj-text);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(23px, 2.1vw, 28px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 420px;
    margin: 0 0 22px;
}

.pj-brief-row {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--pj-border);
}

.pj-brief-mark {
    color: var(--pj-primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.pj-brief-row p {
    color: var(--pj-muted);
    line-height: 1.58;
    margin: 0;
    font-size: 0.96rem;
}

.pj-brief-row strong {
    display: block;
    color: var(--pj-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Current projects hero: a simpler editorial introduction that uses the
   same sage, Fraunces, Urbanist, and rounded details as the main site. */
.pj-intro {
    min-height: min(650px, calc(100vh - 80px));
    padding-top: clamp(64px, 9vw, 112px);
    padding-bottom: clamp(54px, 8vw, 92px);
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.62fr);
    gap: clamp(42px, 7vw, 92px);
    align-items: center;
}

.pj-title {
    font-size: clamp(62px, 8.4vw, 112px);
    line-height: 0.88;
    letter-spacing: -0.055em;
    margin-bottom: 30px;
}

.pj-title em {
    color: var(--pj-primary);
    font-weight: 400;
}

.pj-subtitle {
    max-width: 650px;
}

.pj-hero-index {
    position: relative;
    overflow: hidden;
    align-self: center;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(87, 109, 90, 0.18);
    border-radius: 30px;
    background:
        radial-gradient(circle at 100% 0, rgba(126, 153, 138, 0.2), transparent 46%),
        rgba(236, 239, 235, 0.86);
    box-shadow: 0 22px 56px rgba(39, 48, 40, 0.08);
}

.pj-hero-index::after {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -58px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(87, 109, 90, 0.2);
    border-radius: 50%;
}

.pj-hero-index-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pj-border);
}

.pj-hero-index-head span {
    padding-top: 7px;
    color: var(--pj-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pj-hero-index-head strong {
    color: var(--pj-primary);
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 0.75;
    letter-spacing: -0.06em;
}

.pj-hero-index > p {
    margin: 24px 0 20px;
    color: var(--pj-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.pj-hero-disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pj-hero-disciplines span {
    padding: 8px 12px;
    border: 1px solid rgba(87, 109, 90, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: #4d5e50;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pj-hero-scroll {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--pj-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-decoration: none;
    text-transform: uppercase;
}

.pj-hero-scroll i {
    transition: transform 0.2s ease;
}

.pj-hero-scroll:hover i {
    transform: translateY(3px);
}


/* ============================================
   FILTERS
   ============================================ */

.pj-filters-wrap {
    max-width: 1160px;
    margin: 0 auto 34px;
    padding: 18px 30px 19px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 28px;
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
}

.pj-filter-label {
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.pj-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--pj-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
}

.pj-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding: 2px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pj-filters::-webkit-scrollbar {
    height: 5px;
}

.pj-filters::-webkit-scrollbar-thumb {
    background: var(--pj-border);
    border-radius: 999px;
}

.pj-chip {
    position: relative;
    background: transparent;
    border: 0;
    color: var(--pj-muted);
    border-radius: 0;
    padding: 5px 16px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.pj-chip+.pj-chip {
    border-left: 1px solid rgba(87, 109, 90, 0.18);
}

.pj-chip::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 2px;
    background: var(--pj-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.pj-chip:hover {
    color: var(--pj-primary);
}

.pj-chip.active {
    color: var(--pj-primary);
}

.pj-chip.active::after {
    transform: scaleX(1);
}

.pj-chip:focus-visible {
    outline: 2px solid var(--pj-primary);
    outline-offset: 2px;
}

.pj-chip-count {
    display: inline-block;
    margin-left: 6px;
    color: #9a9e9a;
    font-size: 0.82em;
    letter-spacing: 0;
}

.pj-sort select {
    min-width: 136px;
    border: 0;
    border-bottom: 1px solid var(--pj-border);
    border-radius: 0;
    background: transparent;
    color: var(--pj-text);
    padding: 7px 26px 7px 2px;
    font: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.pj-sort select:focus-visible {
    outline: 2px solid var(--pj-primary);
    outline-offset: 2px;
}


/* ============================================
   GRID
   ============================================ */

.pj-grid-wrap {
    max-width: 1160px;
    margin: 0 auto 76px;
    padding: 0 30px;
}

.pj-grid {
    display: grid;
    gap: 22px;
}

.pj-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    min-height: 320px;
    background: var(--pj-card);
    border: 1px solid var(--pj-border);
    border-radius: 16px;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pj-card:hover {
    transform: translateY(-4px);
    border-color: rgba(87, 109, 90, 0.45);
    box-shadow: var(--pj-shadow);
}

.pj-card-media {
    min-height: 100%;
    background: linear-gradient(135deg, rgba(87, 109, 90, 0.18), rgba(126, 153, 138, 0.08)), #e9ece8;
    background-position: center;
    background-size: cover;
    position: relative;
}

.pj-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.46), transparent 28%), linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.2));
}

.pj-card-media-mark {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 36px);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(18, 24, 19, 0.72);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.pj-card-media-mark i {
    color: var(--pj-accent);
}

.pj-card-media.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pj-card-media.is-empty::before {
    content: "\f03e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: rgba(87, 109, 90, 0.28);
    font-size: 34px;
}

.pj-card-body {
    padding: clamp(24px, 4vw, 40px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px 30px;
    align-content: start;
}

.pj-card-kicker {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 700;
}

.pj-card-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pj-card-type i {
    font-size: 0.85rem;
}

.pj-card-featured {
    border: 1px solid var(--pj-border);
    border-radius: 999px;
    padding: 4px 11px;
    letter-spacing: 0.1em;
    color: var(--pj-primary);
    background: rgba(126, 153, 138, 0.1);
}

.pj-card-title {
    grid-column: 1 / -1;
    font-family: var(--font-display);
    color: var(--pj-text);
    font-size: clamp(26px, 3.6vw, 38px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.pj-card-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--pj-muted);
    font-size: 0.9rem;
}

.pj-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pj-case-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
}

.pj-case-item {
    padding: 18px 18px 18px 0;
    border-right: 1px solid var(--pj-border);
}

.pj-case-item:last-child {
    border-right: 0;
    padding-right: 0;
    padding-left: 18px;
}

.pj-case-item:nth-child(2) {
    padding-left: 18px;
}

.pj-case-label {
    display: block;
    margin-bottom: 8px;
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    font-weight: 800;
}

.pj-case-item p {
    color: #555a55;
    line-height: 1.55;
    font-size: 0.94rem;
    margin: 0;
}

.pj-card-tags {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pj-card-tags span {
    border: 1px solid var(--pj-border);
    border-radius: 999px;
    padding: 7px 12px;
    color: #59645b;
    background: rgba(126, 153, 138, 0.08);
    font-size: 0.8rem;
    font-weight: 600;
}

.pj-card-cta {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 700;
}

.pj-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--pj-muted);
}


/* ============================================
   MODAL
   ============================================ */

.pj-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pj-modal[hidden] {
    display: none;
}

.pj-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 19, 17, 0.72);
    backdrop-filter: blur(8px);
}

.pj-modal-inner {
    position: relative;
    width: min(1080px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: #fbfbf8;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.pj-modal-close {
    position: sticky;
    top: 14px;
    float: right;
    z-index: 4;
    width: 42px;
    height: 42px;
    margin: 14px 14px 0 0;
    border: 0;
    border-radius: 999px;
    background: rgba(16, 19, 17, 0.76);
    color: #fff;
    cursor: pointer;
}

.pj-m-hero {
    min-height: 360px;
    background: #dfe4de center/cover no-repeat;
    border-radius: 20px 20px 0 0;
}

.pj-m-hero-loading {
    background-color: #dfe4de !important;
}

.pj-m-body {
    padding: clamp(28px, 5vw, 58px);
}

.pj-m-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.pj-m-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 5.6vw, 60px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.pj-m-meta {
    color: var(--pj-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 30px;
}

.pj-m-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.pj-m-case {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
    margin: 32px 0;
}

.pj-m-case-block {
    padding: 24px 22px;
    border-right: 1px solid var(--pj-border);
}

.pj-m-case-block:first-child {
    padding-left: 0;
}

.pj-m-case-block:last-child {
    border-right: 0;
    padding-right: 0;
}

.pj-m-case-block h3,
.pj-m-section h3 {
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.pj-m-case-block p,
.pj-m-section p {
    color: #4f554f;
    line-height: 1.75;
    margin: 0;
}

.pj-m-section {
    margin: 28px 0;
}

.pj-m-tags,
.pj-m-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.pj-m-tag {
    border: 1px solid var(--pj-border);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(126, 153, 138, 0.08);
    color: var(--pj-primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.pj-m-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pj-primary);
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
}

.pj-m-gallery {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 14px;
    min-height: 120px;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pj-m-gallery.pj-m-gallery-ready {
    opacity: 1;
    transform: none;
}

.pj-m-gallery-loading::after {
    content: "Loading gallery…";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--pj-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pj-m-gallery img,
.pj-m-gallery video {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    cursor: zoom-in;
    border-radius: 10px;
    background: #eceee9;
    opacity: 1;
}

.pj-m-gallery img.pj-m-img-broken {
    display: none;
}

.pj-m-video-embed {
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
    border-radius: 12px;
}

.pj-m-video-embed iframe,
.pj-m-video-embed video {
    width: 100%;
    height: 100%;
    border: 0;
}

.pj-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.pj-lightbox[hidden] {
    display: none;
}

.pj-lightbox img,
.pj-lightbox video {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .pj-intro {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
        margin-top: 14px;
    }
    .pj-hero-copy {
        padding: 4px 0 0;
    }
    .pj-hero-index {
        width: 100%;
        align-self: stretch;
    }
    .pj-subtitle {
        max-width: 680px;
    }
    .pj-brief-card {
        align-self: stretch;
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid var(--pj-border);
    }
    .pj-filters-wrap {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }
    .pj-sort {
        justify-content: space-between;
        border-top: 1px solid var(--pj-border);
        padding-top: 12px;
    }
    .pj-card {
        grid-template-columns: 1fr;
    }
    .pj-card-media {
        min-height: 260px;
    }
    .pj-case-grid,
    .pj-m-case {
        grid-template-columns: 1fr;
    }
    .pj-case-item,
    .pj-case-item:nth-child(2),
    .pj-case-item:last-child,
    .pj-m-case-block,
    .pj-m-case-block:first-child,
    .pj-m-case-block:last-child {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--pj-border);
    }
    .pj-case-item:last-child,
    .pj-m-case-block:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    body {
        padding-top: 70px;
    }
    .pj-intro,
    .pj-filters-wrap,
    .pj-grid-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
    .pj-title {
        font-size: clamp(46px, 17vw, 66px);
    }
    .pj-hero-index {
        border-radius: 22px;
        padding: 26px 22px;
    }
    .pj-hero-actions {
        gap: 10px;
    }
    .pj-hero-btn {
        flex: 1 1 150px;
    }
    .pj-proof-line {
        grid-template-columns: 1fr;
    }
    .pj-proof-item,
    .pj-proof-item:nth-child(odd),
    .pj-proof-item:nth-child(n + 3) {
        border-right: 0;
        border-top: 1px solid var(--pj-border);
    }
    .pj-proof-item:first-child {
        border-top: 0;
    }
    .pj-card-media {
        min-height: 220px;
    }
    .pj-card-body {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pj-card,
    .pj-chip,
    .pj-hero-btn {
        transition: none !important;
    }
}


/* ============================================
   SERVICES BRIEF
   ============================================ */

.pj-services-brief {
    max-width: 1160px;
    margin: 0 auto 72px;
    padding: 0 30px;
}

.pj-services-brief-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    grid-template-areas: "eyebrow copy" "title copy";
    gap: 14px 56px;
    align-items: end;
    padding-top: 34px;
    border-top: 1px solid var(--pj-border);
    margin-bottom: 30px;
}

.pj-services-eyebrow {
    grid-area: eyebrow;
    display: block;
    color: var(--pj-primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 800;
    margin: 0;
}

.pj-services-brief-head h2 {
    grid-area: title;
    font-family: var(--font-display);
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0;
    max-width: 720px;
    color: var(--pj-text);
}

.pj-services-brief-head p {
    grid-area: copy;
    color: var(--pj-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 2rem;
}

@media (max-width: 760px) {
    .pj-services-brief {
        margin-bottom: 56px;
        padding: 0 22px;
    }
    .pj-services-brief-head {
        grid-template-columns: 1fr;
        grid-template-areas: "eyebrow" "title" "copy";
        gap: 14px;
        padding-top: 28px;
    }
    .pj-services-brief-head h2 {
        font-size: clamp(32px, 10vw, 46px);
    }
    .pj-services-brief-head p {
        max-width: none;
        font-size: 0.98rem;
    }
}

.pj-service-lineup {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--pj-border);
    border-left: 1px solid var(--pj-border);
    background: rgba(255, 255, 255, 0.28);
}

.pj-service-tile {
    position: relative;
    min-height: 210px;
    padding: 24px 24px 26px;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    border-right: 1px solid var(--pj-border);
    border-bottom: 1px solid var(--pj-border);
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.pj-service-tile:hover {
    background: rgba(126, 153, 138, 0.08);
    transform: translateY(-2px);
}

.pj-service-num {
    color: var(--pj-primary);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 600;
}

.pj-service-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--pj-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--pj-primary);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.42);
}

.pj-service-tile strong {
    display: block;
    color: var(--pj-text);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pj-service-tile small {
    display: block;
    color: var(--pj-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.pj-services-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 18px;
    padding: 18px 0 0;
    color: var(--pj-muted);
    font-size: 0.92rem;
}

.pj-services-note span {
    color: var(--pj-text);
    font-weight: 700;
}

.pj-services-note a {
    color: var(--pj-primary);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.76rem;
    border-bottom: 1px solid currentColor;
}

@media (max-width: 880px) {
    .pj-services-brief-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .pj-service-lineup {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .pj-services-brief {
        padding: 0 22px;
        margin-bottom: 64px;
    }
    .pj-service-lineup {
        grid-template-columns: 1fr;
    }
    .pj-service-tile {
        min-height: 0;
    }
}
