/* =============================================
   HILLSIDE PAINTING — Project pages ("Journal" case study)
   Loaded after /home.css; reuses its tokens and components.
   ============================================= */

.pj-page { overflow-x: clip; }
.pj figure { margin: 0; }
.pj img { border-radius: 2px; }

/* ---------- Title block ---------- */
.pj-head { padding-top: 40px; padding-bottom: 56px; }
.pj-head-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 40px; }
.pj-back, .pj-crumbs a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; color: var(--ink); }
.pj-back svg { width: 18px; height: 18px; transition: transform .2s ease; }
.pj-back:hover svg { transform: translateX(-3px); }
.pj-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--text-3); }
.pj-crumbs a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.pj-crumbs a:hover { text-decoration-color: var(--accent); }

.pj-head-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
.pj-title { grid-column: span 8; font-size: 168px; line-height: 0.86; letter-spacing: -0.03em; }
.pj-title-long { font-size: 104px; line-height: 0.94; letter-spacing: -0.025em; }
.pj-head-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; padding-bottom: 10px; }
.pj-lede { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.2; color: var(--text-2); }
.pj-lede-sm { font-size: 22px; line-height: 1.35; }

/* ---------- Cover plate + captions ---------- */
.pj-cover { padding: 0 var(--pad); max-width: 1440px; margin: 0 auto !important; }
.pj-cover img { width: 100%; height: 720px; object-fit: cover; }
.pj-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; font-size: 13px; letter-spacing: 0.04em; color: var(--text-3); }
.pj-caption em { font-family: var(--serif); font-size: 18px; line-height: 1.35; letter-spacing: 0; color: var(--text-2); }
.pj-caption > span { flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; font-weight: 600; }

/* ---------- Spec list ---------- */
.pj-facts { padding-top: 72px; }
.pj-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin: 0; border-bottom: 1px solid var(--line); }
.pj-spec-item { padding: 20px 0 28px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.pj-spec dt { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.pj-spec dd { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.pj-spec:not(.pj-spec-prose) dd a { display: inline-flex; align-items: center; min-height: 44px; }
.pj-spec dd a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pj-spec-prose { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pj-spec-prose dd { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text-2); }
.pj-spec-prose dd a { color: var(--ink); font-weight: 600; }

/* ---------- Chapters ---------- */
.pj-chapter { padding: 120px 0 0; }
.pj-wide { max-width: 1440px; margin: 0 auto !important; }
.pj-wide img { width: 100%; height: 680px; object-fit: cover; }
.pj-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.pj-wide + .pj-row { margin-top: 96px; }
.pj-fig img { width: 100%; object-fit: cover; }
.pj-fig-a { grid-column: 1 / span 6; }
.pj-fig-a img { height: 460px; }
.pj-fig-b { grid-column: 7 / span 6; grid-row: 1; }
.pj-fig-c { grid-column: 1 / span 5; }
.pj-tall img { height: 720px; }
.pj-text { display: flex; flex-direction: column; gap: 22px; }
.pj-text-a { grid-column: 1 / span 5; grid-row: 1; }
.pj-text-b { grid-column: 8 / span 5; }
.pj-label { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.pj-lead { font-family: var(--serif); font-size: 40px; line-height: 1.1; letter-spacing: -0.01em; }
.pj-body { max-width: 56ch; color: var(--text-2); }

/* ---------- Asymmetric pair ---------- */
.pj-pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding-top: 120px; }
.pj-pair-a { grid-column: 1 / span 7; }
.pj-pair-a img { height: 820px; }
.pj-pair-b { grid-column: 9 / span 4; margin-top: 240px !important; }
.pj-pair-b img { height: 520px; }

/* ---------- Pull-quote ---------- */
.pj-quote { margin-top: 120px; padding: 112px 0; background: var(--panel); }
.pj-quote .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.pj-quote-mark { width: 48px; height: 36px; fill: var(--accent); }
.pj-quote-text { margin: 0; max-width: 22ch; font-family: var(--serif); font-size: 68px; line-height: 1.04; letter-spacing: -0.015em; }
.pj-quote-credit { font-style: normal; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); }
.pj-quote-credit a { display: inline-block; padding: 12px 0; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Services ---------- */
.pj-services { padding: 120px 0; }
.pj-services-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.pj-services-img { grid-column: 1 / span 4; }
.pj-services-img img { height: 560px; }
.pj-services-body { grid-column: 6 / span 7; display: flex; flex-direction: column; gap: 16px; }
.pj-h2 { font-size: 64px; }
.pj-list { list-style: none; margin: 40px 0 0; padding: 0; }
.pj-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; padding: 28px 0; border-top: 1px solid var(--ink); }
.pj-list li:last-child { border-bottom: 1px solid var(--line); }
.pj-list .n { grid-row: span 2; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.pj-list-name { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.pj-list-desc { max-width: 56ch; color: var(--text-2); }

/* ---------- Story (readable column) ---------- */
.pj-story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding-top: 120px; }
.pj-story-main { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 22px; }
.pj-story .pj-h2 { font-size: 56px; line-height: 1.02; }
.pj-prose { display: flex; flex-direction: column; gap: 20px; max-width: 64ch; padding-top: 8px; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.pj-prose p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--serif); font-size: 76px; line-height: 0.8; color: var(--accent); }
.pj-aside { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 16px; margin-top: 44px; padding: 32px; background: var(--paper); border-top: 3px double var(--ink); font-size: 16px; color: var(--text-2); }
.pj-aside h2 { font-size: 32px; color: var(--ink); }
.pj-aside a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Gallery (asymmetric) ---------- */
.pj-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 72px; padding-top: 120px; }
.pj-gallery .g1 { grid-column: 1 / span 5; grid-row: 1; }
.pj-gallery .g1 img { height: 600px; }
.pj-gallery .g2 { grid-column: 7 / span 6; grid-row: 1; align-self: end; }
.pj-gallery .g2 img { height: 480px; }
.pj-gallery .g3 { grid-column: 1 / span 7; grid-row: 2; }
.pj-gallery .g3 img { height: 520px; }
.pj-gallery .g4 { grid-column: 9 / span 4; grid-row: 2 / span 2; }
.pj-gallery .g4 img { height: 720px; }
.pj-gallery .g5 { grid-column: 2 / span 6; grid-row: 3; }
.pj-gallery .g5 img { height: 420px; }
.pj-gallery .g6 { grid-column: 1 / span 5; grid-row: 4; }
.pj-gallery .g6 img { height: 640px; }
.pj-gallery .g7 { grid-column: 7 / span 5; grid-row: 4; align-self: end; }
.pj-gallery .g7 img { height: 560px; }
.pj-credit { grid-column: 1 / -1; margin: 0; font-size: 13px; letter-spacing: 0.04em; color: var(--text-3); }
.pj-credit a { color: inherit; }

/* ---------- More cards ---------- */
.pj-more { padding-top: 120px; }
.pj-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.pj-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; background: var(--paper); border-top: 1px solid var(--ink); text-decoration: none; color: var(--ink); transition: background .2s ease; }
.pj-card:hover { background: #fff; color: var(--ink); }
.pj-card h2 { font-size: 32px; line-height: 1.08; }
.pj-card p { font-size: 15px; color: var(--text-2); }
.pj-card h2::after { content: " \2192"; font-family: var(--sans); font-size: 20px; color: var(--accent); }

/* ---------- Dark CTA ---------- */
.pj-cta { margin-top: 120px; padding: 104px 0; background: var(--dark); color: var(--bg); }
.pj-cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.pj-cta .kicker { color: var(--accent-soft); }
.pj-cta-text { max-width: 16ch; margin-top: 18px; font-family: var(--serif); font-size: 80px; line-height: 0.98; letter-spacing: -0.02em; }
.pj-cta .btn { flex-shrink: 0; }
/* Services page (Canyon Cove) sits flush against the CTA */
.pj-services + .pj-cta { margin-top: 0; }

/* ---------- Footer: five columns ---------- */

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .pj-title { font-size: 128px; }
  .pj-title-long { font-size: 80px; }
  .pj-title, .pj-head-side { grid-column: 1 / -1; }
  .pj-head-side { margin-top: 28px; max-width: 640px; }
  .pj-cover img { height: 560px; }
  .pj-spec-prose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pj-wide img { height: 520px; }
  .pj-lead { font-size: 32px; }
  .pj-tall img { height: 600px; }
  .pj-pair-a img { height: 640px; }
  .pj-pair-b { grid-column: 8 / span 5; margin-top: 160px !important; }
  .pj-quote-text { font-size: 54px; }
  .pj-story-main, .pj-aside { grid-column: 1 / -1; }
  .pj-aside { max-width: 640px; }
  .pj-gallery .g1 img { height: 440px; }
  .pj-gallery .g2 img { height: 360px; }
  .pj-gallery .g3 img { height: 400px; }
  .pj-gallery .g4 img { height: 560px; }
  .pj-gallery .g5 img { height: 320px; }
  .pj-gallery .g6 img { height: 480px; }
  .pj-gallery .g7 img { height: 420px; }
  .pj-cta-text { font-size: 60px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .pj-head { padding-top: 16px; padding-bottom: 32px; }
  .pj-head-top { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 24px; }
  .pj-title { font-size: 88px; }
  .pj-title-long { font-size: 52px; line-height: 0.98; }
  .pj-head-side { margin-top: 20px; gap: 14px; }
  .pj-lede { font-size: 24px; }
  .pj-lede-sm { font-size: 19px; }
  .pj-cover img { height: 420px; }
  .pj-caption { flex-direction: column; gap: 2px; }
  .pj-caption em { font-size: 16px; }
  .pj-facts { padding-top: 40px; }
  .pj-spec, .pj-spec-prose { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; }
  .pj-spec-item { padding: 14px 0 18px; }
  .pj-spec dd { font-size: 22px; }
  .pj-spec-wide, .pj-spec-item:last-child, .pj-spec-prose .pj-spec-item { grid-column: 1 / -1; }
  .pj-spec-prose dd { font-size: 15px; }

  .pj-chapter { padding-top: 64px; }
  .pj-wide img { height: 300px; }
  .pj-wide + .pj-row { margin-top: 40px; }
  .pj-row { row-gap: 28px; }
  .pj-fig-a, .pj-fig-b, .pj-fig-c, .pj-text-a, .pj-text-b { grid-column: 1 / -1; grid-row: auto; }
  .pj-fig-a img { height: 260px; }
  .pj-tall img { height: 440px; }
  .pj-text { gap: 16px; }
  .pj-lead { font-size: 28px; }

  .pj-pair { padding-top: 64px; row-gap: 32px; }
  .pj-pair-a { grid-column: 1 / span 10; }
  .pj-pair-a img { height: 420px; }
  .pj-pair-b { grid-column: 4 / -1; margin-top: 0 !important; }
  .pj-pair-b img { height: 320px; }

  .pj-quote { margin-top: 64px; padding: 56px 0; }
  .pj-quote .wrap { gap: 20px; }
  .pj-quote-mark { width: 36px; height: 27px; }
  .pj-quote-text { font-size: 38px; line-height: 1.08; }

  .pj-services { padding: 64px 0; }
  .pj-services-img, .pj-services-body { grid-column: 1 / -1; }
  .pj-services-img img { height: 360px; }
  .pj-services-body { margin-top: 40px; }
  .pj-h2 { font-size: 42px; }
  .pj-list { margin-top: 20px; }
  .pj-list li { grid-template-columns: 44px minmax(0, 1fr); padding: 20px 0; }
  .pj-list .n { font-size: 30px; }
  .pj-list-name { font-size: 26px; }
  .pj-list-desc { font-size: 15px; }

  .pj-story { padding-top: 64px; }
  .pj-story .pj-h2 { font-size: 36px; }
  .pj-prose { font-size: 17px; }
  .pj-prose p:first-child::first-letter { font-size: 60px; }
  .pj-aside { margin-top: 40px; padding: 24px; }
  .pj-aside h2 { font-size: 28px; }

  .pj-gallery { row-gap: 36px; padding-top: 64px; }
  .pj-gallery .g1, .pj-gallery .g2, .pj-gallery .g3, .pj-gallery .g4, .pj-gallery .g5, .pj-gallery .g6, .pj-gallery .g7 { grid-row: auto; }
  .pj-gallery .g1 { grid-column: 1 / span 10; }
  .pj-gallery .g1 img { height: 340px; }
  .pj-gallery .g2 { grid-column: 3 / -1; }
  .pj-gallery .g2 img { height: 260px; }
  .pj-gallery .g3 { grid-column: 1 / -1; }
  .pj-gallery .g3 img { height: 260px; }
  .pj-gallery .g4 { grid-column: 1 / span 9; }
  .pj-gallery .g4 img { height: 420px; }
  .pj-gallery .g5 { grid-column: 1 / -1; }
  .pj-gallery .g5 img { height: 260px; }
  .pj-gallery .g6 { grid-column: 1 / span 10; }
  .pj-gallery .g7 { grid-column: 3 / -1; }
  .pj-gallery .g6 img, .pj-gallery .g7 img { height: 420px; }

  .pj-more { padding-top: 64px; }
  .pj-more-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
  .pj-card { padding: 24px; }
  .pj-card h2 { font-size: 28px; }

  .pj-cta { margin-top: 64px; padding: 56px 0 64px; }
  .pj-cta-inner { flex-direction: column; align-items: stretch; gap: 28px; }
  .pj-cta-text { font-size: 44px; }
  .pj-head .kicker { letter-spacing: 0.14em; }
}

@media (prefers-reduced-motion: reduce) {
  .pj-back svg, .pj-card { transition: none; }
}

/* ---------- Plaster Work collection ---------- */
.pw-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-top: 96px; align-items: start; }
.pw-intro p { margin: 12px 0 0; color: var(--text-2); line-height: 1.6; }
.pw-link { margin-top: 16px !important; }
.pw-link a { color: var(--ink); font-weight: 600; }
.pw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pw-grid .pw-fig:only-child { grid-column: 1 / span 1; }
.pw-fig { margin: 0; }
.pw-fig img { width: 100%; height: 520px; object-fit: cover; display: block; }
.pw-fig .pj-caption a { color: inherit; }
@media (max-width: 900px) {
  .pw-group { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 64px; }
  .pw-fig img { height: 420px; }
}
@media (max-width: 560px) {
  .pw-grid { grid-template-columns: minmax(0, 1fr); }
  .pw-fig img { height: 380px; }
}
