/* ═══════════════════════════════════════════════════════════════════════════
   AGL PARTNER PORTAL — HUB + LIBRARY PAGES
   Loads after portal.css, which supplies the card, grid, chip and pager
   language. This file adds only what the multi-page portal introduces.
   ═══════════════════════════════════════════════════════════════════════════ */

.agl-portal-body { background: var(--agl-noir-950); }

/* Container. Mirrors .ppx-lib + .ppx-lib-in from portal.css exactly, so the
   new pages line up with the existing portal and the rest of the site at every
   viewport. --agl-container-wide is 1320px; --agl-section-x is the 32px gutter.
   (An earlier build used --agl-page-max/--agl-inline here, which are the
   full-bleed tokens and produced a narrower, differently-scaling column.) */
.ppp-wrap {
	max-width: calc(var(--agl-container-wide) + (var(--agl-section-x) * 2));
	margin-inline: auto;
	padding-inline: var(--agl-section-x-mobile);
	padding-bottom: var(--agl-section-y-md);
}
@media (min-width: 700px) {
	.ppp-wrap { padding-inline: var(--agl-section-x); }
}

/* ── Portal chrome ───────────────────────────────────────────────────────── */
.ppp-bar {
	background: #0e0d0c;
	border-bottom: 1px solid var(--agl-hairline);
	position: sticky;
	top: 0;
	z-index: 60;
}
.ppp-bar-in {
	max-width: calc(var(--agl-container-wide) + (var(--agl-section-x) * 2));
	margin-inline: auto;
	padding-inline: var(--agl-section-x-mobile);
	height: 74px;
	display: flex;
	align-items: center;
}
@media (min-width: 700px) {
	.ppp-bar-in { padding-inline: var(--agl-section-x); }
}
.ppp-lock { display: flex; align-items: center; gap: 20px; padding-right: 26px; }
.ppp-logo { height: 38px; width: auto; display: block; }
.ppp-lock-t {
	font-family: var(--agl-body);
	font-size: 9px; letter-spacing: .24em; text-transform: uppercase;
	color: var(--agl-gold);
	border-left: 1px solid var(--agl-hairline);
	padding-left: 20px;
	white-space: nowrap;
}
.ppp-nav { display: flex; align-self: stretch; }
.ppp-nav a {
	display: flex; align-items: center;
	font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--agl-stone-500);
	padding: 0 20px;
	border-bottom: 2px solid transparent;
	transition: color .2s ease;
}
.ppp-nav a:hover { color: var(--agl-stone-300); }
.ppp-nav a.is-on { color: var(--agl-ivory); border-bottom-color: var(--agl-gold); }

.ppp-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.ppp-site, .ppp-out {
	font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
	color: var(--agl-stone-500); white-space: nowrap;
}
.ppp-out { color: var(--agl-gold); }
.ppp-sep { width: 1px; height: 20px; background: var(--agl-hairline); }
.ppp-who { font-size: 11px; color: var(--agl-stone-300); white-space: nowrap; }
.ppp-who b { color: var(--agl-ivory); font-weight: 500; }

/* ── Greeting + notice ───────────────────────────────────────────────────── */
.ppp-greet {
	display: flex; align-items: center; justify-content: space-between;
	gap: 30px; flex-wrap: wrap;
	padding: 24px 0 22px;
	border-bottom: 1px solid var(--agl-hairline);
	margin-bottom: 34px;
}
.ppp-greet-1 { font-size: 13px; color: var(--agl-stone-300); }
.ppp-greet-1 b { color: var(--agl-ivory); font-weight: 500; }
.ppp-notice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.ppp-notice-t {
	font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
	color: var(--agl-noir-950); background: var(--agl-gold);
	padding: 5px 9px; white-space: nowrap;
}
.ppp-notice-m { font-size: 12.5px; color: var(--agl-stone-300); }
.ppp-notice-l {
	font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--agl-gold);
	border-bottom: 1px solid var(--agl-hairline-gold);
	padding-bottom: 2px; white-space: nowrap;
}

/* ── Section headers ─────────────────────────────────────────────────────── */
.ppp-sec { margin-bottom: clamp(40px, 5vw, 58px); }
.ppp-sec-h { display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.ppp-sec-h h2 {
	font-family: var(--agl-display);
	font-weight: 400; font-size: clamp(21px, 2.2vw, 27px);
	margin: 0; white-space: nowrap;
}
.ppp-sec-h::after { content: ""; flex: 1; height: 1px; background: var(--agl-hairline); }
.ppp-sec-meta {
	font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--agl-stone-500); white-space: nowrap; order: 2;
}
.ppp-arrows { margin-left: auto; display: flex; gap: 6px; order: 3; }
.ppp-arrows button {
	background: transparent; border: 1px solid var(--agl-hairline); border-radius: 0;
	color: var(--agl-stone-500); font-size: 13px; line-height: 1;
	padding: 7px 12px; cursor: pointer;
	transition: color .2s ease, border-color .2s ease;
}
.ppp-arrows button:hover:not(:disabled) { color: var(--agl-gold); border-color: var(--agl-hairline-gold); }
.ppp-arrows button:disabled { opacity: .3; cursor: default; }

.ppp-k {
	font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
	color: var(--agl-gold); margin-bottom: 12px; display: block;
}
.ppp-btn {
	display: inline-block;
	font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
	border: 1px solid var(--agl-gold); color: var(--agl-gold);
	padding: 11px 20px; cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.ppp-btn:hover { background: var(--agl-gold); color: var(--agl-noir-950); }

/* ── Library doors: the hero of the hub ──────────────────────────────────── */
.ppp-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px; }
.ppp-door {
	position: relative; display: block; height: 430px; overflow: hidden;
	border: 1px solid var(--agl-hairline);
}
.ppp-door img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .8s var(--agl-ease, ease);
}
.ppp-door:hover img { transform: scale(1.04); }
.ppp-door::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(11,11,10,.12) 0%, rgba(11,11,10,0) 40%,
		                        rgba(11,11,10,.62) 68%, rgba(11,11,10,.94) 100%);
}
.ppp-door-in { position: absolute; left: 36px; right: 36px; bottom: 34px; z-index: 2; }
.ppp-door-t {
	display: block;
	font-family: var(--agl-display); font-weight: 400;
	font-size: clamp(34px, 4vw, 56px); line-height: .98;
	margin-bottom: 20px;
}

/* ── Featured rail ───────────────────────────────────────────────────────── */
.ppp-rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
	gap: 16px; overflow-x: auto; scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	padding-bottom: 4px;
	scrollbar-width: thin;
}
.ppp-rail > .ppx-card { scroll-snap-align: start; }
.ppp-rail::-webkit-scrollbar { height: 3px; }
.ppp-rail::-webkit-scrollbar-thumb { background: var(--agl-hairline); }

/* ── Project block ───────────────────────────────────────────────────────── */
.ppp-proj {
	position: relative; overflow: hidden;
	border: 1px solid var(--agl-hairline);
	min-height: 400px;
}
.ppp-proj-media { position: absolute; inset: 0; }
.ppp-proj-img {
	position: absolute; inset: 0;
	width: 100%; height: 100%; object-fit: cover;
	opacity: 0; transition: opacity .9s ease;
}
.ppp-proj-img.is-on { opacity: 1; }
.ppp-proj::after {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(92deg, rgba(11,11,10,.84) 0%, rgba(11,11,10,.48) 46%, rgba(11,11,10,.12) 78%),
		linear-gradient(180deg, rgba(11,11,10,.3) 0%, rgba(11,11,10,0) 34%, rgba(11,11,10,.72) 100%);
}
.ppp-proj-in {
	position: relative; z-index: 2;
	padding: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 46px);
	min-height: 400px;
	display: flex; flex-direction: column; justify-content: flex-end;
}
.ppp-proj-title {
	font-family: var(--agl-display); font-weight: 400;
	font-size: clamp(30px, 3.6vw, 46px); line-height: 1;
	margin: 0 0 16px;
}
.ppp-proj-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 22px; }
.ppp-proj-meta div {
	font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
	color: var(--agl-stone-300);
}
.ppp-proj-meta b {
	display: block; margin-top: 5px;
	font-family: var(--agl-display); font-weight: 400; font-size: 19px;
	letter-spacing: 0; text-transform: none; color: var(--agl-ivory);
}
.ppp-proj-dl {
	position: absolute; top: 28px; right: 30px; z-index: 3;
	font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
	border: 1px solid var(--agl-gold); color: var(--agl-gold);
	background: rgba(11,11,10,.5);
	padding: 10px 17px;
}
.ppp-proj-dl:hover { background: var(--agl-gold); color: var(--agl-noir-950); }
.ppp-used { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ppp-used-lb { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--agl-stone-300); }
.ppp-chip {
	display: flex; align-items: center; gap: 10px; cursor: pointer;
	color: inherit;
	border: 1px solid var(--agl-hairline); background: rgba(11,11,10,.62);
	padding: 8px 14px 8px 8px;
	transition: border-color .2s ease;
}
.ppp-chip:hover { border-color: var(--agl-hairline-gold); }
.ppp-chip img { width: 34px; height: 34px; object-fit: cover; display: block; }
.ppp-chip-n { display: block; font-size: 11.5px; }
.ppp-chip-r { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--agl-gold); margin-top: 2px; }
.ppp-proj-dots { display: flex; gap: 7px; margin-top: 20px; }
.ppp-dot {
	width: 22px; height: 2px; padding: 0; border: 0; border-radius: 0;
	background: rgba(244,242,237,.28); cursor: pointer;
	transition: background .3s ease;
}
.ppp-dot.is-on { background: var(--agl-gold); }

/* ── Season block ────────────────────────────────────────────────────────── */
.ppp-season { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: stretch; }
.ppp-season-l { display: flex; flex-direction: column; gap: 20px; }
.ppp-season-r { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.ppp-ph { position: relative; overflow: hidden; border: 1px solid var(--agl-hairline); min-height: 130px; }
.ppp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppp-show { position: relative; overflow: hidden; border: 1px solid var(--agl-hairline); flex: 1; min-height: 340px; }
.ppp-show img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppp-show::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 46%, rgba(11,11,10,.78));
}
.ppp-show-sw {
	position: absolute; left: 22px; bottom: 22px; z-index: 3;
	width: 88px; height: 88px; overflow: hidden;
	/* Gold hairline, not a white frame. A white border disappears against a
	   pale material like Bianco Lasa and the swatch reads as a blob. Gold holds
	   the edge on light and dark stone alike. */
	border: 1px solid rgba(200,183,138,.75);
}
.ppp-show-sw img { width: 100%; height: 100%; object-fit: cover; }
.ppp-show-nm { position: absolute; right: 24px; bottom: 32px; z-index: 3; text-align: right; }
.ppp-show-nm b { display: block; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.ppp-show-nm i {
	display: block; font-style: normal; margin-top: 7px;
	font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #c8c3b9;
}
.ppp-show-nm i::before {
	content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--agl-gold); margin-right: 7px; vertical-align: middle;
}
.ppp-season-tx h3 {
	font-family: var(--agl-display); font-weight: 400;
	font-size: clamp(26px, 3vw, 34px); line-height: 1.03; margin: 0 0 5px;
}
.ppp-season-cat { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--agl-stone-500); margin-bottom: 12px; }
.ppp-season-tx p { font-size: 12.5px; color: #c3beb4; line-height: 1.6; margin: 0 0 16px; max-width: 560px; }

/* ── Library page header + banner ────────────────────────────────────────── */
.ppp-head {
	padding: 40px 0 30px;
	border-bottom: 1px solid var(--agl-hairline);
	margin-bottom: clamp(30px, 4vw, 46px);
}
.ppp-head-t { font-family: var(--agl-display); font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: 1; margin: 0; }
.ppp-head-s { font-size: 13px; color: var(--agl-stone-500); margin: 12px 0 0; max-width: 620px; line-height: 1.6; }

.ppp-banner {
	position: relative; overflow: hidden;
	border: 1px solid var(--agl-hairline);
	aspect-ratio: 2.4 / 1;
	margin-bottom: clamp(40px, 5vw, 58px);
}
.ppp-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ppp-banner::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11,11,10,.3) 0%, rgba(11,11,10,.04) 30%, rgba(11,11,10,.9) 100%);
}
.ppp-banner-in {
	position: relative; z-index: 2; height: 100%;
	padding: clamp(26px, 3.4vw, 38px) clamp(26px, 3.6vw, 42px);
	display: flex; flex-direction: column; justify-content: flex-end;
}
.ppp-banner-t { font-family: var(--agl-display); font-weight: 400; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.03; margin: 0 0 8px; }
.ppp-banner-in p { font-size: 13px; color: #c3beb4; margin: 0 0 20px; max-width: 580px; line-height: 1.6; }
.ppp-picks { display: flex; gap: 9px; flex-wrap: wrap; }
.ppp-pick {
	font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
	border: 1px solid var(--agl-gold); color: var(--agl-gold);
	background: rgba(11,11,10,.42); padding: 11px 17px;
	transition: background .2s ease, color .2s ease;
}
.ppp-pick:hover { background: var(--agl-gold); color: var(--agl-noir-950); }
.ppp-pick:hover span { color: var(--agl-noir-950); }
.ppp-pick span { color: var(--agl-stone-300); margin-left: 7px; letter-spacing: .06em; }

/* ── Documents ───────────────────────────────────────────────────────────── */
.ppp-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ppp-doc {
	position: relative; overflow: hidden;
	border: 1px solid var(--agl-hairline);
	display: grid; grid-template-columns: .85fr 1fr;
	min-height: 180px;
}
.ppp-doc > img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.5) brightness(.55); }
.ppp-doc-blank { display: block; background: var(--agl-noir-800); }
.ppp-doc-in {
	padding: clamp(22px, 2.6vw, 30px) clamp(22px, 2.8vw, 32px);
	background: var(--agl-noir-900);
	display: flex; flex-direction: column; justify-content: center;
}
.ppp-doc-t { font-family: var(--agl-display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.1; margin-bottom: 9px; }
.ppp-doc-p { font-size: 12px; color: var(--agl-stone-500); line-height: 1.6; margin: 0 0 15px; }
.ppp-tag {
	display: inline-block; align-self: flex-start;
	font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--agl-gold); border: 1px solid var(--agl-hairline-gold);
	padding: 6px 10px;
}
.ppp-tag--live { background: var(--agl-gold); color: var(--agl-noir-950); }

/* ── Library page tweaks over portal.css ─────────────────────────────────── */
.ppp-filters { display: block; }
.ppp-searchbar { margin-top: 0; }
.ppp-filters .ppx-filter-cats { margin-bottom: 16px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
	.ppp-season { grid-template-columns: 1fr; }
	.ppp-season-r { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.ppp-docs { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
	.ppp-doors { grid-template-columns: 1fr; }
	.ppp-door { height: 320px; }
	.ppp-proj-dl { position: static; align-self: flex-start; margin-bottom: 18px; }
	.ppp-banner { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
	.ppp-season-r { grid-template-columns: 1fr; }
	.ppp-proj-meta { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.ppp-door img, .ppp-proj-img, .ppp-rail { transition: none; scroll-behavior: auto; }
}

/* ── Material tiles + explainer drawer ───────────────────────────────────── */
.ppp-mats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ppp-mat {
	border: 1px solid var(--agl-hairline);
	background: var(--agl-noir-900);
	display: flex; flex-direction: column;
	transition: border-color .2s ease;
}
.ppp-mat:hover { border-color: var(--agl-hairline-gold); }
.ppp-mat.is-open { border-color: rgba(200,183,138,.45); }
.ppp-mat.is-soon { opacity: .82; }

.ppp-mat-go {
	display: flex; flex-direction: column; flex: 1;
	background: transparent; border: 0; border-radius: 0; padding: 0;
	text-align: left; color: inherit; font: inherit; cursor: pointer;
}
.ppp-mat-go.is-static { cursor: default; }

.ppp-mat-im { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ppp-mat-im img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .7s var(--agl-ease, ease);
}
.ppp-mat-go:not(.is-static):hover .ppp-mat-im img { transform: scale(1.04); }
.ppp-mat-im::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 52%, rgba(11,11,10,.6));
}
.ppp-mat-tx { display: block; padding: 17px 18px 15px; flex: 1; }
.ppp-mat-t {
	display: block;
	font-family: var(--agl-display); font-weight: 400;
	font-size: clamp(18px, 1.9vw, 22px); line-height: 1.12; margin-bottom: 6px;
}
.ppp-mat-d { display: block; font-size: 11.5px; color: var(--agl-stone-500); line-height: 1.5; }
.ppp-mat-soon { margin-top: 12px; }

.ppp-mat-ex {
	display: flex; justify-content: space-between; align-items: center;
	width: 100%; padding: 12px 18px;
	background: transparent; border: 0; border-top: 1px solid var(--agl-hairline);
	border-radius: 0; cursor: pointer;
	font-family: var(--agl-body);
	font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
	color: var(--agl-stone-300);
	transition: color .2s ease;
}
.ppp-mat-ex:hover, .ppp-mat.is-open .ppp-mat-ex { color: var(--agl-gold); }
.ppp-mat-pm { color: var(--agl-gold); font-size: 15px; line-height: 1; }

.ppp-drawer {
	border: 1px solid rgba(200,183,138,.45);
	border-top: 0;
	background: var(--agl-noir-900);
	padding: clamp(22px, 2.6vw, 28px);
	margin-top: -1px;
}
.ppp-drawer[hidden] { display: none; }
.ppp-drawer-h { font-family: var(--agl-display); font-size: clamp(20px, 2.2vw, 23px); margin-bottom: 10px; }
.ppp-drawer p { font-size: 12.5px; color: #c3beb4; line-height: 1.75; margin: 0 0 12px; max-width: 92ch; }
.ppp-drawer p:last-child { margin-bottom: 0; }

@media (max-width: 1000px) { .ppp-mats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ppp-mats { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ppp-mat-im img { transition: none; } }

/* ── Documents, compact variant ──────────────────────────────────────────────
   Beyond three documents the split tile becomes several rows of near-identical
   "coming soon" panels. This switches to a compact card, image over text, four
   across, so a full set of catalogues and price lists stays to two rows. */
.ppp-docs--many { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ppp-docs--many .ppp-doc {
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr;
	min-height: 0;
}
.ppp-docs--many .ppp-doc > img,
.ppp-docs--many .ppp-doc-blank { aspect-ratio: 16 / 10; height: auto; width: 100%; }
.ppp-docs--many .ppp-doc-in { padding: 16px 17px 18px; }
.ppp-docs--many .ppp-doc-t { font-size: clamp(17px, 1.8vw, 20px); margin-bottom: 8px; }
.ppp-docs--many .ppp-doc-p { font-size: 11.5px; margin-bottom: 13px; }

@media (max-width: 1000px) { .ppp-docs--many { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ppp-docs--many { grid-template-columns: 1fr; } }

/* ── Link decoration ─────────────────────────────────────────────────────────
   The theme sets only a{color:inherit}, so every link inherits the browser's
   default underline. Portal chrome and buttons are typeset elements, not body
   copy, and should not carry one. Inline links inside prose keep theirs. */
.ppp-bar a,
.ppp-lock,
.ppp-nav a,
.ppp-site,
.ppp-out,
.ppp-btn,
.ppp-pick,
.ppp-tag,
.ppp-proj-dl,
.ppp-door,
.ppp-notice-l,
.ppp-chip,
.ppp-doc a { text-decoration: none; }

.ppp-notice-l { border-bottom: 1px solid var(--agl-hairline-gold); }

/* ── Project block: facts left, actions right ────────────────────────────── */
.ppp-proj-in {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: end;
}
.ppp-proj-l { min-width: 0; }
.ppp-proj-r {
	min-width: 0;
	display: flex; flex-direction: column; align-items: flex-start;
	gap: 18px;
}
.ppp-proj-r .ppp-used { margin: 0; }
.ppp-proj-r .ppp-proj-dots { margin: 0; }
.ppp-proj-r .ppp-proj-dl { position: static; align-self: flex-start; }

@media (max-width: 900px) {
	.ppp-proj-in { grid-template-columns: 1fr; align-items: start; gap: 26px; }
}

/* ── Documents, grouped info panels ──────────────────────────────────────────
   A set of documents that shares one status reads better as a list with the
   status stated once than as four identical tiles each saying Coming soon. */
.ppp-dgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ppp-dgroup {
	border: 1px solid var(--agl-hairline);
	background: var(--agl-noir-900);
	padding: clamp(24px, 3vw, 32px);
}
.ppp-dgroup-h {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
	padding-bottom: 16px; margin-bottom: 18px;
	border-bottom: 1px solid var(--agl-hairline);
}
.ppp-dgroup-t {
	font-family: var(--agl-display); font-weight: 400;
	font-size: clamp(21px, 2.3vw, 27px); line-height: 1.1;
}
.ppp-dgroup-p { font-size: 12.5px; color: var(--agl-stone-500); line-height: 1.6; margin: 0 0 16px; }
.ppp-dgroup-l { list-style: none; margin: 0; padding: 0; }
.ppp-dgroup-l li {
	font-size: 13px; color: var(--agl-stone-300);
	padding: 11px 0 11px 20px; position: relative;
	border-bottom: 1px solid var(--agl-hairline-soft);
}
.ppp-dgroup-l li:last-child { border-bottom: 0; padding-bottom: 0; }
.ppp-dgroup-l li::before {
	content: ""; position: absolute; left: 0; top: 18px;
	width: 8px; height: 1px; background: var(--agl-gold);
}

@media (max-width: 820px) { .ppp-dgroups { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE PASS
   The portal is a desktop tool: nobody pulls a 29 MB DWG on a phone. But people
   do look a product up in a meeting or grab a price list on site. So mobile is
   optimised for lookup, not browsing, and there is no "go to desktop" warning:
   the file sizes on every button already say what a download costs.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop: the panel is transparent to layout, so the bar is unchanged. */
.ppp-panel { display: contents; }
.ppp-here,
.ppp-burger { display: none; }

@media (max-width: 860px) {

	/* ── Collapsed bar: logo, where you are, menu ────────────────────────── */
	.ppp-bar-in { height: 62px; gap: 12px; }
	.ppp-lock { padding-right: 0; gap: 12px; min-height: 46px; align-items: center; }
	.ppp-logo { height: 30px; }
	.ppp-lock-t { display: none; }

	.ppp-here {
		display: block;
		font-family: var(--agl-body);
		font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
		color: var(--agl-gold);
		border-left: 1px solid var(--agl-hairline);
		padding-left: 12px;
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}

	.ppp-burger {
		display: flex; flex-direction: column; justify-content: center;
		gap: 5px; margin-left: auto;
		width: 46px; height: 46px; padding: 0 11px;
		background: transparent; border: 1px solid var(--agl-hairline); border-radius: 0;
		cursor: pointer;
	}
	.ppp-burger span { display: block; height: 1px; background: var(--agl-ivory); transition: transform .25s ease, opacity .2s ease; }
	.ppp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.ppp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.ppp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

	.ppp-panel {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		z-index: 70;
		background: #0e0d0c;
		border-bottom: 1px solid var(--agl-hairline);
		box-shadow: 0 24px 48px rgba(0,0,0,.5);
		padding: 6px var(--agl-section-x-mobile) 18px;
	}
	.ppp-panel.is-open { display: block; }
	.ppp-bar { position: sticky; }
	.ppp-bar-in { position: relative; }

	.ppp-nav { flex-direction: column; align-self: stretch; height: auto; }
	.ppp-nav a {
		padding: 0 4px; min-height: 52px;
		font-size: 12px;
		border-bottom: 1px solid var(--agl-hairline-soft);
		border-left: 2px solid transparent;
	}
	.ppp-nav a.is-on { border-bottom-color: var(--agl-hairline-soft); border-left-color: var(--agl-gold); padding-left: 12px; }

	.ppp-right { margin-left: 0; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
	.ppp-sep { display: none; }
	.ppp-who { font-size: 12px; padding: 14px 4px 0; }
	.ppp-site, .ppp-out { font-size: 11px; min-height: 48px; display: flex; align-items: center; padding: 0 4px; }

	/* ── Lookup first ────────────────────────────────────────────────────────
	   The mobile job is finding one product, not browsing. Hoist the library,
	   which carries the search and the chips, above the tiles, documents and
	   project. Pure ordering, no markup change. */
	.ppp-wrap { display: flex; flex-direction: column; }
	.ppp-wrap > #library { order: -1; }

	/* ── Tap targets ─────────────────────────────────────────────────────────
	   44px minimum. Measured before this pass: chips 39, search 38, Get 37,
	   project dots 2. */
	.ppx-chip, .ppx-chip--cat { min-height: 46px; padding-inline: 16px; }
	.ppx-search { min-height: 48px; font-size: 16px; }   /* 16px stops iOS zooming on focus */
	.ppx-dl-btn { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 18px; }
	.ppx-pager-btn { min-height: 46px; }
	.ppp-btn, .ppp-pick, .ppp-proj-dl { min-height: 46px; display: inline-flex; align-items: center; }
	.ppp-mat-ex { min-height: 48px; }
	.ppp-chip { min-height: 52px; }

	/* Dots stay 2px to look at, but carry a real hit area. */
	.ppp-proj-dots { gap: 0; margin-block: -10px; }
	.ppp-dot {
		width: 40px; height: 44px; background: transparent;
		display: flex; align-items: center; justify-content: center;
	}
	.ppp-dot::before {
		content: ""; display: block; width: 22px; height: 2px;
		background: rgba(244,242,237,.28); transition: background .3s ease;
	}
	.ppp-dot.is-on { background: transparent; }
	.ppp-dot.is-on::before { background: var(--agl-gold); }

	/* ── Legibility. Smallest type measured 8.5 to 9.5px. ────────────────── */
	.ppp-k, .ppp-mat-ex, .ppp-used-lb, .ppp-notice-t, .ppp-notice-l { font-size: 10.5px; }
	.ppp-tag, .ppp-dgroup-l li, .ppx-dl-meta { font-size: 11px; }
	.ppx-card-cat { font-size: 10.5px; }
	.ppp-greet-1, .ppp-notice-m { font-size: 13px; }

	/* ── Breathing room ──────────────────────────────────────────────────── */
	.ppp-sec { margin-bottom: 40px; }
	.ppp-door { height: 260px; }
	.ppp-rail { grid-auto-columns: minmax(232px, 86%); }
}

@media (max-width: 420px) {
	.ppp-here { font-size: 10px; letter-spacing: .14em; }
}
