/* Phoenix Drywall & Insulation · the project pages, v7 (6 Nov 2026; website/redesign/ROLLOUT-V7.md, PROJECTS group).
   Loaded after system.css, inner.css and services.css by Project.astro and /projects; every rule is scoped to a .pj-
   class. The inner page system does the rest: IFold, the grounds (ember / primed, alternating up from the copper
   close), the caps heads, spec rows, tiles, rows, the questions and the close.
   Everything here reads the ground's own tokens (--fg / --fg2 / --hair / --line2, set by each .chap ground and by
   the copper close) and --onph on a photo, so a section reads on ember, on primed and on copper alike. No radius, no
   shadows, upright type, copper only where you act, every :hover in (hover: hover).
   The pieces: the story intro · the stages (Stages.astro) · the long links and the posts · previous / next · the
   /projects tiles · Bracebridge's Nearby. The C version is in git (7e10866).
   Round 8 (6 Nov 2026; ROUND8.md): the month's first stage sits right under its head (18/36px); "More photos"; the
   previous / next tiles; the hub's tiles one across on phones (only the name on the photo); the church's taped and
   primed arch each at its own shape; the job log, What we did here, the motto, the lightbox and the close's offer and
   Follow along are gone (their rules too). */

/* IFold's phone crop (<picture>, display: contents): its <source> must not become a grid column on desktop (the
   church's fold drew a black first column). Shared fix requested for inner.css; pages.css carries the same rule. */
.ifold__media source { display: none; }

/* ---- the intro under the fold: their lede, the job's facts (Where, When, The job, Our work) ---- */
.pj-intro .pj-facts { margin-top: 0; }
.pj-intro .lead + .pj-facts { margin-top: 28px; }
.pj-facts > div { align-items: baseline; }
.pj-facts dd { line-height: 1.5; }
/* each link an inline block 44px tall (fix round 1: inline padding let a link's hit area cover the line above, so
   the lower part of "drywall installation" opened the next link); a line with a link is as tall as its hit area */
.pj-facts dd a { display: inline-block; min-height: 0; padding: 12px 0; line-height: 20px; color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line2); text-underline-offset: .22em; }
.pj-facts > div:has(dd a) { padding-top: 6px; padding-bottom: 6px; }
@media (hover: hover) { .pj-facts dd a:hover { text-decoration-color: currentColor; } }
/* the church: the arch, taped then primed, each at its own shape (the whole photo), its name on it; stacked on
   phones, one row of equal height on desktop */
.pj-pair { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 8px; }
.pj-pair .frame { position: relative; overflow: hidden; }
.pj-pair .frame img { width: 100%; height: 100%; object-fit: cover; }
.pj-pair__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 10px; font: 300 17px/1.15 var(--display); color: var(--onph);
  background: linear-gradient(to top, rgba(var(--scrim), .78) 0%, rgba(var(--scrim), .4) 55%, rgba(var(--scrim), 0) 100%); pointer-events: none; }

/* ---- the stages: one chapter per month (.chap.pj-month, its caps head the month), a stage per post ---- */
.pj-month__head { margin-bottom: 32px; }
.pj-month__head .h2 + .txt { margin-top: 14px; }
.pj-stages { list-style: none; margin: 0; padding: 0; }
.pj-stage { padding: 40px 0; border-top: 1px solid var(--hair); }
.pj-stage:first-child { padding-top: 0; border-top: 0; }
.pj-stage:last-child { padding-bottom: 0; }
.pj-stage__k { display: grid; gap: 6px; }
.pj-stage__date { color: var(--fg2); }
.pj-stage__h { margin: 0; font: 300 28px/1.12 var(--display); letter-spacing: -.005em; color: var(--fg); text-wrap: balance; }
.pj-stage__b { display: grid; gap: 12px; margin-top: 14px; justify-items: start; }
.pj-stage__q { margin: 0; max-width: 34ch; font: 300 20px/1.45 var(--sans); color: var(--fg); text-wrap: pretty; }
.pj-stage__ours { margin: 0; max-width: 60ch; color: var(--fg2); text-wrap: pretty; }
.pj-stage__list { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 4px; font-size: 16px; line-height: 1.5; color: var(--fg); }
.pj-stage__list li { position: relative; padding-left: 22px; }
.pj-stage__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--fg2); }
/* a tick where their post ticked it (drawn: no font here has the glyph), and the open ones in the second colour */
.pj-stage__list li.is-done::before { top: .38em; width: 5px; height: 10px; background: none; border: solid var(--fg); border-width: 0 1.5px 1.5px 0; transform: translateX(3px) rotate(45deg); }
.pj-stage__list li.is-open { color: var(--fg2); }
.pj-stage__media { margin-top: 24px; display: grid; gap: 8px; align-items: start; }
/* a stage's big still (Stage.lead): the full gutter width after the words, then the other shots */
.pj-stage__lead { margin-top: 24px; }
.pj-stage__lead .frame img { width: 100%; height: 100%; object-fit: cover; }
.pj-stage--lead > .pj-stage__media { margin-top: 8px; }
.pj-stage--g2 .pj-stage__media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-stage--g3 .pj-stage__media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* three shots, none tall (v7): the first across the column (at most 76vh tall), the other two 2-up under it */
.pj-stage--g3 .pj-shot--first { grid-column: 1 / -1; }
.pj-stage--g3 .pj-shot--first > .frame { max-height: 76vh; }
/* three shots as one tall frame (a reel or a 9:16 grab) beside two stacked 4:5s, all at the 2-up width (v7: on
   desktop too, so no frame drops to the 3-up size) */
.pj-stage--g3 .pj-stage__media:has(> .pj-shot--tall) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-stage--g3 .pj-shot--tall { grid-row: span 2; align-self: stretch; align-content: stretch; grid-template-rows: minmax(0, 1fr); }
.pj-stage--g3 .pj-shot--tall:has(> :nth-child(2)) { grid-template-rows: minmax(0, 1fr) auto; }
.pj-stage--g3 .pj-shot--tall > .frame { aspect-ratio: auto !important; min-height: 0; }
.pj-shot { position: relative; margin: 0; min-width: 0; display: grid; align-content: start; }
.pj-shot .frame { position: relative; overflow: hidden; }
.pj-shot .frame > img { width: 100%; height: 100%; object-fit: cover; }
/* a shot's own date (v7): on the photo, on a shade under the words only, as the home's names on photos */
.pj-shot__date { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 10px 9px; font-size: 11px; letter-spacing: .14em; color: var(--onph); pointer-events: none;
  background: linear-gradient(to top, rgba(var(--scrim), .8) 0%, rgba(var(--scrim), .45) 50%, rgba(var(--scrim), 0) 100%); }
/* a reel: Pause on a 44px row under the frame, at the right (fix round 1). loops.js finds the button as a direct child
   of .pj-shot, so the row is the shot's own second grid row, not a wrapper */
.pj-shot--reel { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; }
.pj-shot--reel > .frame { grid-column: 1 / -1; }
.pj-shot--reel > .loop__toggle--under { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; min-height: 44px; place-items: center end; color: var(--fg2); }
@media (hover: hover) { .pj-shot--reel > .loop__toggle--under:hover { color: var(--fg); } }
/* in a grid the reel's frame gives up that row's height, so the reel's column ends with its neighbours' */
.pj-stage__media:has(> .pj-shot--reel:not(:only-child)) { align-items: stretch; }
.pj-stage__media > .pj-shot--reel:not(:only-child) { align-content: stretch; grid-template-rows: minmax(0, 1fr) auto; }
.pj-stage__media > .pj-shot--reel:not(:only-child) > .frame { aspect-ratio: auto !important; min-height: 0; }
/* one photo (v7): across the column at its frame's shape on phones, after the words (as inner.css .mrows) */
.pj-stage--row .pj-stage__media { margin-top: 24px; }
.pj-stage--row.pj-stage--lead > .pj-stage__media { margin-top: 8px; }
/* a scaffold shot (`small`): the 2-up spot beside the words on phones, as in C (the home's half-width spot) */
@media (max-width: 1023px) {
  .pj-stage--small { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .pj-stage--small .pj-stage__media { grid-column: 1; grid-row: 1; margin-top: 0; }
  .pj-stage--small .pj-stage__text { grid-column: 2; grid-row: 1; min-width: 0; }
  .pj-stage--small .pj-stage__h { font-size: 22px; }
  .pj-stage--small .pj-stage__q { font-size: 17px; }
  .pj-stage--small .pj-stage__b { margin-top: 10px; gap: 10px; }
  /* beside the words, then the stage's big still across both columns (22 May at Craigleith) */
  .pj-stage--small.pj-stage--lead { row-gap: 24px; }
  .pj-stage--small.pj-stage--lead > .pj-stage__lead { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
}

/* ---- the long links (sentence case like the row links, the arrow kept with the last word, .nw) ---- */
.pj-go { display: inline-block; min-height: 44px; padding: 12px 0; font-size: 15px; line-height: 1.35; color: var(--fg); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line2); text-underline-offset: .22em; text-wrap: pretty; }
.pj-go .arw { display: inline-block; margin-left: 8px; vertical-align: middle; color: var(--fg2); }
@media (hover: hover) { .pj-go:hover { text-decoration-color: currentColor; } .pj-go:hover .arw { color: var(--fg); } }
/* the end of the story (the last month, or Bracebridge's reviews): the custom homes link, then the ask */
.pj-end { margin-top: 32px; }
.pj-end + .ask { margin-top: 12px; }

/* ---- a month's "More photos" (Stages.astro): closed under its stages, two across on phones, three on desktop ---- */
.pj-morephotos { margin-top: 32px; border-top: 1px solid var(--hair); }
.pj-extra { list-style: none; margin: 8px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }

/* ---- previous / next (Project.astro): two tiles, only the name on the photo, which one under it; the source posts
   as dated links (new tab) ---- */
.pj-nb > li { min-width: 0; }
.pj-nb__k { margin: 8px 0 0; font-size: 11px; letter-spacing: .12em; color: var(--fg2); }

/* ---- /projects: the six stories as photo tiles (system.css .tiles / .tile): only the name on the photo, the place,
   the building and the dates under it, then their line. Phones: one across at 4:5 (the main sell, Kiarash: photos
   bigger); tablets three across; desktop three across at 3:2 ---- */
.pj-stories .h2 { margin-bottom: 0; }
.pj-tiles { margin-top: 20px; row-gap: 28px; }
.pj-tiles > li { min-width: 0; }
.pj-tiles h3.tile__name { margin: 0; }
.pj-tile__meta { margin: 10px 0 0; font-size: 11px; letter-spacing: .1em; line-height: 1.5; color: var(--fg2); }
.pj-tile__q { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--fg); text-wrap: pretty; }
.pj-stories .after { margin-top: 20px; }
.pj-stories .after + .ask { margin-top: 12px; }
@media (max-width: 767px) {
  .pj-tiles { grid-template-columns: minmax(0, 1fr); }
  .pj-tiles .tile__over { padding: 64px 14px 14px; }
  .pj-tiles .tile__name { font-size: 24px; }
}
@media (max-width: 389px) { .pj-tile__meta { letter-spacing: .06em; } }

/* ---- /projects, By region: their line, then the three region pages as small tiles (system.css .regs--small) ---- */
.pj-byregion__t { margin: 0 0 16px; }

/* ---- Bracebridge, Nearby: the Parry Sound cottage across the column (4:5), its line under it; the attic line ---- */
.pj-near { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.pj-near__i { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.pj-near__i--pic { padding-top: 0; border-top: 0; }
.pj-near__i .frame { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: 14px; }
.pj-near__i .frame img { width: 100%; height: 100%; object-fit: cover; }
.head + .split__a + .split__b > .pj-near, .split__b > .pj-near:first-child { border-top: 0; }
.pj-job__q--big { margin: 0; font: 300 19px/1.45 var(--sans); color: var(--fg); text-wrap: pretty; }

/* ---- tablet ---- */
@media (min-width: 768px) {
  .pj-stage__media, .pj-pair, .pj-extra { gap: 12px; }
  .pj-tiles { row-gap: 32px; }
  .pj-nb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- desktop: a re-composition of the phone, not its source ---- */
@media (min-width: 1024px) {
  /* the intro: the lede left, the facts right (as a service page's intro); the church's pair under the facts */
  .pj-intro > .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 0 96px; align-items: start; }
  .pj-intro .wrap > .lead { grid-column: 1; grid-row: 1; }
  .pj-intro .wrap > .pj-facts { grid-column: 2; grid-row: 1; margin-top: 0; }
  .pj-pair { grid-column: 2; margin-top: 56px; display: flex; gap: 24px; align-items: flex-start; }
  .pj-pair > li { flex: var(--k, 1) 1 0; min-width: 0; }
  .pj-pair__name { padding: 64px 16px 14px; font-size: 22px; }

  .pj-month__head { margin-bottom: 56px; max-width: 30ch; }
  .pj-stage { display: grid; grid-template-columns: 5fr 7fr; gap: 0 96px; align-items: start; padding: 72px 0; }
  .pj-stage:first-child { padding-top: 0; }
  .pj-stage__text { position: sticky; top: calc(var(--bar) + 48px); }
  .pj-stage__h { font-size: 40px; line-height: 1.08; }
  .pj-stage__q { font-size: 23px; line-height: 1.42; }
  .pj-stage__media { margin-top: 0; }
  .pj-stage--g2 .pj-stage__media, .pj-stage--g3 .pj-stage__media { gap: 24px; }
  /* one photo (v7): the media column, at most 76vh tall at its frame's shape (--k = w / h, set by Stages.astro); a
     scaffold shot (`small`) 440px at most */
  .pj-stage--row .pj-stage__text { grid-column: 1; }
  .pj-stage--row .pj-stage__media { grid-column: 2; margin-top: 0; width: min(100%, calc(76vh * var(--k, .8))); }
  .pj-stage--small .pj-stage__media { width: min(100%, 440px); }
  /* words only: the date and heading left, their words right */
  .pj-stage--words .pj-stage__text { display: contents; }
  .pj-stage--words .pj-stage__k { grid-column: 1; }
  .pj-stage--words .pj-stage__b { grid-column: 2; margin-top: 0; }
  /* a wide stage: the photo across the whole wrap under the words, at most a screen tall */
  .pj-stage--wide .pj-stage__text { position: static; display: contents; }
  .pj-stage--wide .pj-stage__k { grid-column: 1; }
  .pj-stage--wide .pj-stage__b { grid-column: 2; margin-top: 0; }
  .pj-stage--wide .pj-stage__media { grid-column: 1 / -1; margin-top: 56px; }
  .pj-stage--wide .frame { max-height: calc(100vh - var(--bar) - 96px); width: 100%; }
  /* a stage's big still: the media column's width beside the words (held in view), the other shots under it */
  .pj-stage--lead > .pj-stage__text { grid-column: 1; grid-row: 1 / span 2; }
  .pj-stage--lead > .pj-stage__lead { grid-column: 2; grid-row: 1; margin-top: 0; }
  .pj-stage--lead > .pj-stage__media { grid-column: 2; grid-row: 2; margin-top: 24px; }
  /* More photos: under the stages, in the media column's place (the right 7/12), three across */
  .pj-morephotos { margin-top: 56px; }
  .pj-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 16px 0 40px; }
  .pj-end { margin-top: 56px; }

  /* previous / next: two 3:2 tiles across the wrap */
  .pj-nb__k { margin-top: 12px; font-size: 12px; }

  /* /projects: the tiles three across at 3:2 (system.css), the place and their line under them */
  .pj-tiles { margin-top: 32px; row-gap: 48px; }
  .pj-tile__meta { margin-top: 14px; font-size: 12px; letter-spacing: .12em; }
  .pj-tile__q { margin-top: 6px; font-size: 16px; max-width: 40ch; }
  .pj-stories .after { margin-top: 40px; }
  .pj-byregion__t { margin-bottom: 24px; }

  .pj-near__i .frame { max-width: min(100%, calc(76vh * .8)); }
  .pj-job__q--big { font-size: 22px; }
}
