/* ==========================================================================
   Portfolio — sticky filter bar + masonry-ish lightbox grid.
   Tint stays ivory (no body tint class). Tokens/components: main.css.
   ========================================================================== */

:root {
	/* Where the sticky chip bar parks: exactly under the site header. */
	--jg-pf-top: var(--header-h);
	--jg-pf-row: 180px;
}
@media (max-width: 1100px) {
	/* Below 1100px the header swaps the nav for the 44px burger and grows. */
	:root { --jg-pf-top: 72px; }
}

/* --------------------------------------------------------------------------
   Head
   -------------------------------------------------------------------------- */
.jg-pf__head { padding: 56px var(--gutter) 20px; }
.jg-pf__head-inner {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 24px; flex-wrap: wrap;
}
.jg-pf__head h1 { font-size: clamp(34px, 4.2vw, 58px); margin: 0 0 10px; }
.jg-pf__head-copy { max-width: 74ch; }
.jg-pf__intro { font-size: 17px; line-height: 1.6; color: var(--ink-60); margin: 0; max-width: 70ch; }
.jg-pf__count { color: var(--ink-70); }

/* --------------------------------------------------------------------------
   Sticky filter bar
   -------------------------------------------------------------------------- */
.jg-pf__filters {
	position: sticky; top: var(--jg-pf-top); z-index: 300;
	background: rgba(251, 246, 238, 0.96);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
	padding: 14px var(--gutter);
}
.jg-pf__chips { gap: 8px; }

/* --------------------------------------------------------------------------
   Notable faces band
   -------------------------------------------------------------------------- */
.jg-pf__notable {
	background: var(--cream-2);
	border-bottom: 1px solid var(--border);
	padding: 26px var(--gutter);
}
.jg-pf__notable-inner {
	display: grid; grid-template-columns: 1fr 1.05fr; gap: 34px; align-items: center;
}
.jg-pf__notable-copy h2 { font-size: clamp(24px, 2.4vw, 34px); margin: 8px 0 10px; }
.jg-pf__notable-copy p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; color: var(--ink-60); max-width: 52ch; }
.jg-pf__sheet { align-items: stretch; }
.jg-pf__face { display: block; color: inherit; cursor: zoom-in; }
.jg-pf__face:hover { color: inherit; }
.jg-pf__face .jg-img { width: 100%; }
.jg-pf__face-name {
	display: block; text-align: center; padding: 5px 2px 1px;
	font-family: var(--font-marker); font-size: 18px; line-height: 1.1;
	color: var(--golden-amber);
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */
.jg-pf__gallery { padding-bottom: 20px; }
.jg-pf__grid {
	max-width: var(--max); margin: 0 auto;
	padding: 24px var(--gutter) 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: var(--jg-pf-row);
	gap: 12px;
}
.jg-pf__grid--more { padding-top: 12px; }

.jg-pf__cell {
	position: relative; display: block; overflow: hidden;
	cursor: zoom-in; color: inherit;
	/* Shows through until the photo decodes — same texture as jg-imgph. */
	background: repeating-linear-gradient(128deg, #D9C7AC 0 9px, #CFBB9C 9px 18px);
}
.jg-pf__cell[hidden] { display: none; }
.jg-pf__cell.is-tall { grid-row: span 2; }
.jg-pf__cell .jg-img { width: 100%; height: 100%; object-fit: cover; }

/* Hover is a flat colour wash and nothing else — no movement, no scale, no
   marks animating in. It lives on the cell rather than the <img> because
   develop-on-scroll writes inline styles to the image that would win. */
.jg-pf__cell::after {
	content: ''; position: absolute; inset: 0;
	background: rgba(200, 50, 30, 0);
	transition: background 160ms ease;
}
.jg-pf__cell:hover::after, .jg-pf__cell:focus-visible::after { background: rgba(200, 50, 30, 0.16); }

.jg-pf__empty { padding: 40px var(--gutter); color: var(--muted); text-align: center; }

/* --------------------------------------------------------------------------
   Editorial interlude (ink band splitting the first 24 from the rest)
   -------------------------------------------------------------------------- */
.jg-pf__interlude {
	background: var(--ink); color: var(--cream-2);
	margin: 34px 0 0; padding: 44px var(--gutter);
}
.jg-pf__interlude-inner {
	display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: end;
}
.jg-pf__quote {
	margin: 0;
	font-family: var(--font-display); font-weight: 800;
	letter-spacing: -0.03em; line-height: 1.04;
	font-size: clamp(23px, 2.7vw, 37px);
	color: var(--ivory);
}
.jg-pf__quote-tail { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--cream-dark); }
.jg-pf__quote-attrib { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); }

/* --------------------------------------------------------------------------
   Load more
   -------------------------------------------------------------------------- */
.jg-pf__more { padding: 34px var(--gutter) 20px; text-align: center; }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */
.jg-pf__cta { padding: 56px var(--gutter); }
.jg-pf__cta-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 30px; flex-wrap: wrap;
}
.jg-pf__cta h2 { margin: 0 0 6px; }
.jg-pf__cta-copy { max-width: 58ch; }
.jg-pf__cta-text { margin: 0; font-size: 16.5px; color: var(--red-tint-text); }
.jg-pf__cta-review {
	margin: 20px 0 0; padding-left: 18px;
	border-left: 2px solid rgba(255, 246, 238, 0.4);
}
.jg-pf__cta-review p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; color: var(--on-red); }
.jg-pf__cta-review cite {
	font-style: normal; font-size: 12px; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-tint-text);
}
.jg-pf__cta-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
/* Amber signature would sit muddy on the red band. */
.jg-pf__cta-sign { color: var(--on-red); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.jg-pf__interlude-inner { grid-template-columns: 1fr; gap: 22px; align-items: start; }
}

@media (max-width: 900px) {
	:root { --jg-pf-row: 150px; }

	.jg-pf__head { padding-top: 34px; }

	/* Chips scroll sideways instead of wrapping to three rows of sticky bar.
	   The gutter is moved inside the scroller so the first and last chip
	   still clear the page edge. */
	.jg-pf__filters { padding-left: 0; padding-right: 0; }
	.jg-pf__chips {
		flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
		padding: 0 var(--gutter); scrollbar-width: none;
	}
	.jg-pf__chips::-webkit-scrollbar { display: none; }
	.jg-chip { flex: none; }

	.jg-pf__notable-inner { grid-template-columns: 1fr; gap: 20px; }
	.jg-pf__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.jg-pf__interlude { margin-top: 26px; padding: 30px var(--gutter); }
}

@media (max-width: 560px) {
	.jg-pf__cta-inner { align-items: flex-start; }
	.jg-pf__cta-actions { gap: 14px; }
}
