/* =========================================================
   Programmes, programme areas, projects, directory, partners.
   Loaded after about.css, which supplies the brand tokens (.ab),
   reveals, lightbox, brush marks and section rhythm.
   ========================================================= */
.pg .container { position: relative; }
.pg-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--ab-green); color: #fff; font-weight: 700; font-size: 15px; line-height: 1; border: 0; transition: background .2s ease, transform .2s ease; }
.pg-btn:hover { background: #065f25; color: #fff; transform: translateY(-1px); }
.pg-btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.6); }
.pg-btn-ghost:hover { background: rgba(255,255,255,.12); }
.pg-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ab-blue); }
.pg-link svg { transition: transform .2s ease; }
.pg-link:hover svg, .pg-atlas-item:hover .pg-atlas-cta svg, .pg-project:hover .pg-more svg { transform: translateX(3px); }
.pg-kicker { display: block; margin-bottom: 8px; font: 700 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ab-green); }
.pg-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 3.6vw, 44px); }
.pg-head-row .ab-head { margin-bottom: 0; }
.ab-head-sub { color: var(--ab-soft); }
.pg a:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: 3px; border-radius: 8px; }
.pg-hero a:focus-visible, .pg-evidence a:focus-visible, .pg-close a:focus-visible, .pg-invite a:focus-visible { outline-color: #fff; }

/* ---------- 1. Photographic hero ---------- */
.ab .pg-hero { position: relative; display: flex; align-items: flex-end; min-height: min(82vh, 760px); padding: 0; overflow: hidden; background: var(--ab-deep); color: #fff; }
.pg-hero-media { position: absolute; inset: 0; }
.pg-hero-media img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.pg-hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 15, .32) 0%, rgba(6, 22, 15, .06) 30%, rgba(6, 22, 15, .55) 72%, rgba(6, 22, 15, .86) 100%), linear-gradient(90deg, rgba(6, 22, 15, .62), rgba(6, 22, 15, 0) 62%); }
.pg-hero-inner { position: relative; z-index: 1; padding-top: 150px; padding-bottom: clamp(56px, 7vw, 96px); }
.pg-hero-kicker { margin: 0 0 14px !important; font: 700 12.5px/1 var(--font-body) !important; letter-spacing: .16em; text-transform: uppercase; color: #bfe3cc !important; }
.pg-hero h1 { font-family: var(--ab-serif); font-weight: 500; font-size: var(--fs-display); line-height: 1.03; letter-spacing: -.02em; color: #fff; max-width: 15ch; margin: 0 0 22px; }
.pg-hero .ab-mark path { fill: var(--ab-green); opacity: .9; }
.pg-hero-lead { max-width: 54ch; font-size: clamp(16px, 1.3vw, 18px) !important; line-height: 1.6 !important; color: rgba(255,255,255,.92) !important; margin: 0 0 30px !important; }
.pg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.pg-hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; }
.pg-hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); font-size: 14px; font-weight: 600; color: #fff; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pg-hero-facts svg { color: #9fd6b2; flex-shrink: 0; }
.pg-hero-note { position: absolute; right: 18px; bottom: 14px; z-index: 1; margin: 0 !important; font-size: 12.5px !important; color: rgba(255,255,255,.78) !important; }
.ab .pg-hero.is-compact { min-height: min(66vh, 600px); }
.ab .pg-hero.is-compact h1 { font-size: var(--fs-display); max-width: 18ch; }
/* A project without a photograph yet: brand colour and painted strokes instead */
.ab .pg-hero.is-text { min-height: 0; background: linear-gradient(135deg, #07392a 0%, #0b3d2e 50%, #03384d 100%); }
.pg-hero.is-text .pg-hero-inner { padding-top: 140px; }
.pg-hero-strokes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }

/* ---------- 2. How the work connects: organic photo collage ---------- */
.pg-connect-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.pg-clover { position: relative; aspect-ratio: 1; width: 100%; max-width: 580px; margin: 0 auto; }
.pg-clover-petals { position: absolute; inset: 7%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; z-index: 1; }
.pg-petal { position: relative; margin: 0; overflow: hidden; background: var(--ab-sand); box-shadow: 0 18px 40px rgba(11, 61, 46, .14); }
.pg-petal img, .pg-dot img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s ease; }
.pg-petal:hover img, .pg-dot:hover img { transform: scale(1.05); }
.pg-petal-1 { border-radius: 50% 16px 50% 16px; }
.pg-petal-2 { border-radius: 16px 50% 16px 50%; }
.pg-petal-3 { border-radius: 16px 50% 16px 50%; }
.pg-petal-4 { border-radius: 50% 16px 50% 16px; }
.pg-tag { position: absolute; z-index: 2; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ab-deep); font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 16px rgba(0,0,0,.12); white-space: nowrap; }
.pg-petal .pg-tag { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pg-dot { position: absolute; z-index: 2; margin: 0; aspect-ratio: 1; border-radius: 50%; overflow: visible; }
.pg-dot-inner { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 14px 30px rgba(11, 61, 46, .2); background: var(--ab-sand); }
.pg-dot .pg-tag { left: 50%; bottom: -10px; transform: translateX(-50%); }
.pg-dot-1 { right: -5%; top: -5%; width: 23%; }
.pg-dot-2 { left: -5%; bottom: -5%; width: 23%; }
.pg-clover-core { position: absolute; z-index: 3; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 50%; background: var(--ab-green); color: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.9), 0 14px 30px rgba(8, 114, 45, .3); text-align: center; }
.pg-clover-core span { font-family: var(--ab-serif); font-size: clamp(14px, 1.4vw, 19px); line-height: 1.05; }
.pg-clover .ab-strokes { z-index: 0; }
.pg-connect-copy h2 { margin-bottom: 22px; }
.pg-connect-copy p { font-size: 18px; line-height: 1.7; color: var(--ab-ink); }

/* ---------- 3. Five programme areas ----------
   Base: a sideways row of cards, the next one peeking in (phones, tablets, touch screens).
   Wide screens with a mouse: a list beside one large photograph (see programmes.js). */
.ab .pg-areas { background: var(--ab-cream); }
.pg-atlas-stage, .pg-atlas-n, .pg-atlas-go { display: none; }
.pg-atlas-list { --pg-gutter: clamp(20px, 5vw, 56px); display: flex; gap: clamp(14px, 2vw, 22px); list-style: none; margin: 0 calc(-1 * var(--pg-gutter)); padding: 4px var(--pg-gutter) 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pg-gutter); scrollbar-width: none; }
.pg-atlas-list::-webkit-scrollbar { display: none; }
.pg-atlas-item { position: relative; display: flex; flex-direction: column; flex: 0 0 min(84%, 360px); scroll-snap-align: start; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--ab-line); scroll-margin-top: 110px; transition: box-shadow .3s ease; }
.pg-atlas-item:hover, .pg-atlas-item:focus-within { box-shadow: 0 16px 34px rgba(11, 61, 46, .1); }
.pg-atlas-thumb { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--ab-sand); border-radius: 0 0 0 64px; }
.pg-atlas-item:nth-child(even) .pg-atlas-thumb { border-radius: 0 0 64px 0; }
.pg-atlas-thumb img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s ease; }
.pg-atlas-item:hover .pg-atlas-thumb img { transform: scale(1.04); }
.pg-atlas-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,22,15,0) 55%, rgba(6,22,15,.45) 100%); pointer-events: none; }
.pg-atlas-thumb span { position: absolute; z-index: 1; right: 18px; bottom: 12px; color: #fff; font-family: var(--ab-serif); font-weight: 600; font-size: clamp(38px, 5vw, 52px); letter-spacing: -.02em; line-height: 1; text-shadow: 0 4px 18px rgba(0,0,0,.35); font-variant-numeric: lining-nums; }
.pg-atlas-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.pg-atlas-body h3 { font-family: var(--ab-serif); font-weight: 600; font-size: clamp(21px, 2.4vw, 25px); line-height: 1.18; margin: 0 0 10px; }
.pg-atlas-body h3 a { color: var(--ab-deep); }
.pg-atlas-body h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.pg-atlas-body h3 a:focus-visible { outline: none; }
.pg-atlas-item:has(h3 a:focus-visible) { outline: 3px solid var(--ab-blue); outline-offset: -3px; }
.pg-atlas-desc { margin: 0 0 16px !important; font-size: 15px; line-height: 1.6; }
.pg-atlas-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; font-size: 15px; color: var(--ab-blue); }
.pg-atlas-cta svg { transition: transform .2s ease; }
.pg-atlas-hint { display: flex; align-items: center; gap: 6px; margin: 4px 0 0 !important; font-size: 13px !important; font-weight: 700; color: var(--ab-soft) !important; }
@media (min-width: 720px) { .pg-atlas-item { flex-basis: 42%; } }
@media (min-width: 1000px) { .pg-atlas-item { flex-basis: 30%; } }

@media (min-width: 1000px) and (hover: hover) {
  .pg-atlas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 3.6vw, 56px); align-items: stretch; }
  .pg-atlas-list { flex-direction: column; justify-content: center; gap: 4px; margin: 0; padding: 0; overflow: visible; }
  .pg-atlas-item { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 18px; padding: 20px 22px; overflow: visible; border-radius: 22px; background: transparent; border-color: transparent; transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
  .pg-atlas-item + .pg-atlas-item::before { content: ''; position: absolute; left: 22px; right: 22px; top: -2px; height: 1px; background: var(--ab-line); transition: opacity .3s ease; }
  .pg-atlas-item:hover, .pg-atlas-item:focus-within { box-shadow: none; }
  .pg-atlas-item.is-on { background: #fff; border-color: var(--ab-line); box-shadow: 0 18px 40px rgba(11, 61, 46, .1); }
  .pg-atlas-item.is-on::before, .pg-atlas-item.is-on + .pg-atlas-item::before { opacity: 0; }
  .pg-atlas-thumb, .pg-atlas-cta, .pg-atlas-hint { display: none; }
  .pg-atlas-desc { position: absolute !important; width: 1px; height: 1px; margin: -1px !important; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .pg-atlas-n { display: block; flex: 0 0 auto; width: 54px; font-family: var(--ab-serif); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.02em; color: rgba(11, 61, 46, .26); font-variant-numeric: lining-nums; transition: color .3s ease; }
  .pg-atlas-item.is-on .pg-atlas-n { color: var(--ab-green); }
  .pg-atlas-body { padding: 0; }
  .pg-atlas-body .pg-area-meta { margin-bottom: 6px !important; }
  .pg-atlas-body h3 { margin: 0; font-size: clamp(20px, 1.7vw, 24px); }
  .pg-atlas-go { display: inline-flex; flex: 0 0 auto; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; border: 1.5px solid var(--ab-line); color: var(--ab-deep); transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease; }
  .pg-atlas-item.is-on .pg-atlas-go { background: var(--ab-green); border-color: var(--ab-green); color: #fff; }
  .pg-atlas-item:hover .pg-atlas-go { transform: translateX(3px); }

  .pg-atlas-stage { display: block; position: relative; min-height: 620px; border-radius: 28px 160px 28px 28px; overflow: hidden; background: #fff; border: 1px solid var(--ab-line); box-shadow: 0 30px 60px rgba(11, 61, 46, .14); }
  .pg-atlas-slide { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
  .pg-atlas-shot { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; border-radius: 0 0 0 90px; background: var(--ab-sand); }
  .pg-atlas-slide.is-on { opacity: 1; visibility: visible; transition: opacity .55s ease; }
  .pg-atlas-slide img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transform: scale(1.06); transition: transform 1.6s ease; }
  .pg-atlas-slide.is-on img { transform: scale(1); }
  .pg-atlas-shot::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,22,15,.38) 0%, rgba(6,22,15,0) 32%); }
  .pg-atlas-big { position: absolute; z-index: 1; left: 30px; top: 22px; color: #fff; font-family: var(--ab-serif); font-weight: 600; font-size: clamp(84px, 8vw, 128px); line-height: .9; letter-spacing: -.04em; text-shadow: 0 6px 30px rgba(0,0,0,.3); font-variant-numeric: lining-nums; }
  .pg-atlas-panel { flex: 0 0 auto; padding: 22px 32px 26px; }
  .pg-atlas-panel p { margin: 0 0 14px !important; font-size: 16px; line-height: 1.62; color: var(--ab-ink); }
}

/* ---------- 4. Projects (overview, area pages, directory) ---------- */
.pg-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 26px); list-style: none; margin: 0; padding: 0; }
.pg-project { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--ab-line); transition: transform .3s ease, box-shadow .3s ease; }
.pg-project:hover, .pg-project:focus-within { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(11, 61, 46, .12); }
.pg-project-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ab-sand); }
.pg-project-media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s ease; }
.pg-project:hover .pg-project-media img { transform: scale(1.04); }
.pg-project-media.is-text { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #07392a, #0b3d2e 55%, #03384d); }
.pg-project-mono { display: inline-flex; width: 76px; height: 76px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); color: #9fd6b2; }
.pg-chip { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 28px); padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ab-deep); font-size: 13px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.pg-chip svg { color: var(--ab-green); flex-shrink: 0; }
.pg-photo-note { position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(6, 22, 15, .62); color: #fff; font-size: 11.5px; font-weight: 600; }
.pg-project-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.pg-project-body h3 { font-family: var(--ab-serif); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; margin: 0 0 10px; }
.pg-project-body h3 a { color: var(--ab-deep); }
.pg-project-body h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pg-project-body h3 a:focus-visible { outline: none; }
.pg-project:has(h3 a:focus-visible) { outline: 3px solid var(--ab-blue); outline-offset: 3px; }
.pg-project-body p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.pg-project-body .pg-partner { display: flex; align-items: flex-start; gap: 7px; font-size: 13.5px !important; color: var(--ab-soft) !important; }
.pg-partner svg { color: var(--ab-green); flex-shrink: 0; margin-top: 3px; }
.pg-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--ab-blue); }
.pg-more svg { transition: transform .2s ease; }

/* ---------- 5. Evidence ---------- */
.ab .pg-evidence { background: linear-gradient(135deg, #07392a 0%, #0b3d2e 50%, #03384d 100%); color: #fff; }
.pg-evidence .ab-eyebrow { color: #9fd6b2; }
.pg-evidence .ab-eyebrow::before { background: #9fd6b2; }
.pg-evidence h2 { color: #fff; }
.pg-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); list-style: none; margin: 0; padding: 0; }
.pg-result { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.pg-result strong { font-family: var(--ab-serif); font-weight: 600; font-size: clamp(42px, 4.6vw, 64px); line-height: 1; color: #fff; font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.pg-result-label { font-size: 17.5px; font-weight: 600; line-height: 1.4; color: #fff; }
.pg-result-context { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.74); }
.pg-result-context a { color: #c8ecd5; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pg-evidence-note { margin: clamp(26px, 3vw, 36px) 0 0 !important; max-width: 760px; font-size: 14px !important; color: rgba(255,255,255,.7) !important; }
/* Light version for area and project pages */
.pg-results.is-light .pg-result { border-top-color: var(--ab-line); }
.pg-results.is-light strong { color: var(--ab-green); }
.pg-results.is-light .pg-result:nth-child(even) strong { color: var(--ab-blue); }
.pg-results.is-light .pg-result-label { color: var(--ab-deep); }
.pg-results.is-light .pg-result-context { color: var(--ab-soft); }
.pg-results.is-light .pg-result-context a { color: var(--ab-blue); }
.pg-results.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 6. Community photo strip ---------- */
.ab .pg-strip { padding-bottom: clamp(48px, 6vw, 80px); }
.pg-strip-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.pg-strip-head h2 { max-width: 22ch; }
.pg-strip-nav { display: flex; gap: 10px; }
.pg-strip-nav[hidden] { display: none; }
.pg-round { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1.5px solid var(--ab-line); background: #fff; color: var(--ab-deep); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s ease, color .2s ease, opacity .2s ease; }
.pg-round[data-dir="-1"] svg { transform: rotate(180deg); }
.pg-round:hover:not(:disabled) { border-color: var(--ab-blue); color: var(--ab-blue); }
.pg-round:disabled { opacity: .35; cursor: default; }
.pg-round:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: 3px; }
.pg-strip-row {
  --gut: max(20px, calc((100vw - 1240px) / 2 + 56px));
  display: flex; gap: 8px; list-style: none; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--gut) 16px; scroll-padding-inline: var(--gut); scrollbar-width: thin; scrollbar-color: #c9c2b3 transparent;
}
.pg-strip-row:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: -3px; border-radius: 12px; }
.pg-strip-row li { flex: 0 0 auto; scroll-snap-align: start; }
.pg-strip-item { display: block; height: clamp(230px, 24vw, 330px); aspect-ratio: 4 / 5; border-radius: 16px; }
.pg-strip-row li:nth-child(3n+2) .pg-strip-item { aspect-ratio: 1 / 1; }

/* ---------- 7. Closing invitation ---------- */
.ab .pg-close { position: relative; overflow: hidden; padding: clamp(80px, 9vw, 128px) 0; color: #fff; background: var(--ab-deep); }
.pg-close-bg { position: absolute; inset: 0; }
.pg-close-bg img { width: 100%; height: 100% !important; max-width: none; object-fit: cover; }
.pg-close-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 22, 15, .9), rgba(6, 22, 15, .66) 58%, rgba(3, 56, 77, .55)); }
.pg-close-inner { position: relative; max-width: 720px; }
.pg-close .ab-eyebrow { color: #9fd6b2; }
.pg-close .ab-eyebrow::before { background: #9fd6b2; }
.pg-close h2 { color: #fff; font-size: var(--fs-h2-feature); }
.pg-close-inner > p { margin: 18px 0 0; color: rgba(255,255,255,.9) !important; font-size: 18px; max-width: 58ch; }
.pg-ways { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: clamp(30px, 3.6vw, 44px) 0 clamp(28px, 3vw, 36px); padding: 0; }
.pg-way { padding: 22px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pg-way-ico { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); color: #fff; margin-bottom: 14px; }
.pg-way h3 { color: #fff; font-size: 18px; margin: 0 0 6px; }
.pg-way p { margin: 0 !important; font-size: 14.5px !important; line-height: 1.55 !important; color: rgba(255,255,255,.82) !important; }
.pg-close .pg-hero-actions { position: relative; }

/* ---------- Area and project pages ---------- */
.pg-crumb-trail { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.78); margin-bottom: 22px; }
.pg-crumb-trail a { color: #fff; font-weight: 600; }
.pg-intro-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pg-intro-lead { font-family: var(--ab-serif); font-size: clamp(20px, 1.9vw, 25px) !important; line-height: 1.35 !important; color: var(--ab-deep) !important; margin: 0 0 22px !important; }
.pg-intro-copy p { font-size: 17px; }
.pg-aside { padding: clamp(22px, 2.6vw, 32px); border-radius: 24px; background: var(--ab-cream); border: 1px solid var(--ab-line); }
.pg-aside h2, .pg-aside h3 { font: 700 12.5px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ab-green); margin: 0 0 10px; }
.pg-aside p { margin: 0 0 20px; font-size: 16px; color: var(--ab-ink); }
.pg-aside p:last-child { margin-bottom: 0; }
.pg-facts { display: grid; gap: 14px; margin: 0; }
.pg-facts div { padding-bottom: 14px; border-bottom: 1px solid var(--ab-line); }
.pg-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.pg-facts dt { font: 700 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ab-green); margin-bottom: 5px; }
.pg-facts dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ab-ink); }
.pg-facts dd a { color: var(--ab-blue); font-weight: 700; }
.pg-activity-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.pg-activity-list li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--ab-line); font-weight: 600; font-size: 15.5px; color: var(--ab-deep); }
.pg-activity-list svg { flex-shrink: 0; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(8, 114, 45, .1); color: var(--ab-green); }
.ab .pg-section-cream { background: var(--ab-cream); }
.pg-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.pg-block { padding: clamp(22px, 2.6vw, 32px); border-radius: 22px; background: #fff; border: 1px solid var(--ab-line); }
.pg-block h3 { font-family: var(--ab-serif); font-weight: 600; font-size: 24px; margin: 0 0 12px; }
.pg-block p { margin: 0 0 12px; font-size: 15.5px; }
.pg-block p:last-child { margin-bottom: 0; }
.pg-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 240px); gap: 10px; list-style: none; margin: 0; padding: 0; }
.pg-gallery li:first-child { grid-row: span 2; grid-column: span 2; }
.pg-gallery .ab-lb { height: 100%; border-radius: 18px; }
.pg-gallery li:first-child .ab-lb { border-radius: 28px 120px 28px 28px; }
.pg-gallery.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 26vw, 360px); }
.pg-gallery.is-two li:first-child { grid-row: auto; grid-column: auto; }
/* A single photograph: one wide frame */
.pg-gallery.is-one { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; max-width: 900px; margin: 0 auto; }
.pg-gallery.is-one li:first-child { grid-row: auto; grid-column: auto; }
.pg-gallery.is-one .ab-lb { height: auto; aspect-ratio: 3 / 2; }
/* Photo credit under a gallery (partners' photographs) */
.ab .pg-credit { margin: 12px 0 0; font-size: 13px; color: var(--ab-soft); }
/* How a project began: portrait, story, and a path from one leader to many */
.pg-origin-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.pg-origin-portrait { position: sticky; top: 110px; width: 100%; max-width: 400px; margin: 0; justify-self: center; }
@media (max-height: 640px) { .pg-origin-portrait { position: relative; top: auto; } }
.pg-origin-portrait .ab-strokes { inset: -6% -10%; width: 120%; height: 112%; }
.pg-origin-photo { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--ab-sand); box-shadow: 0 24px 50px rgba(11, 61, 46, .18); }
.pg-origin-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ab .pg-origin-award { position: absolute; z-index: 2; right: -22px; bottom: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 138px; aspect-ratio: 1; margin: 0; padding: 14px; border-radius: 50%; background: var(--ab-green); color: #fff; text-align: center; box-shadow: 0 0 0 8px rgba(8, 114, 45, .14), 0 14px 30px rgba(11, 61, 46, .26); transform: rotate(-6deg); }
.pg-origin-award span { font: 700 10.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pg-origin-award strong { font-family: var(--ab-serif); font-weight: 600; font-size: 16px; line-height: 1.15; }
.pg-origin-portrait figcaption { position: relative; z-index: 1; margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--ab-soft); }
.pg-origin-portrait figcaption strong { display: block; font-family: var(--ab-serif); font-weight: 600; font-size: 21px; color: var(--ab-deep); }
.pg-origin-copy h2 { margin-bottom: 24px; }
.pg-origin-copy p { color: var(--ab-ink); }
.ab .pg-origin-path-label { margin: clamp(56px, 7vw, 88px) 0 22px; text-align: center; font: 700 12.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ab-green); }
.pg-origin-path { display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.pg-origin-path li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 8px; text-align: center; }
.pg-origin-path li:not(:last-child)::after { content: ''; position: absolute; top: 27px; left: calc(50% + 20px); width: calc(100% - 40px); height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--ab-green), var(--ab-blue)); transform-origin: left; }
.pg-origin-node { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; }
.pg-origin-node::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ab-green); }
.pg-origin-path li:nth-child(3) .pg-origin-node::before { width: 24px; height: 24px; background: var(--ab-green); box-shadow: 0 0 0 6px rgba(8, 114, 45, .16); }
.pg-origin-step { max-width: 17ch; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ab-deep); }
/* The last step: one becomes many */
.pg-origin-path .is-many .pg-origin-node::before { content: none; }
.pg-origin-path .is-many i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ab-blue); }
.pg-origin-path .is-many i:nth-child(odd) { background: var(--ab-green); }
.pg-origin-path .is-many i:nth-child(2) { transform: rotate(0deg) translateX(20px); }
.pg-origin-path .is-many i:nth-child(3) { transform: rotate(60deg) translateX(20px); }
.pg-origin-path .is-many i:nth-child(4) { transform: rotate(120deg) translateX(20px); }
.pg-origin-path .is-many i:nth-child(5) { transform: rotate(180deg) translateX(20px); }
.pg-origin-path .is-many i:nth-child(6) { transform: rotate(240deg) translateX(20px); }
.pg-origin-path .is-many i:nth-child(7) { transform: rotate(300deg) translateX(20px); }
.pg-origin-path .is-many .pg-origin-step { color: var(--ab-blue); }
/* The path draws itself in as it comes into view */
.ab-js .pg-origin-path.ab-reveal li:not(:last-child)::after { transform: scaleX(0); transition: transform .5s ease; }
.ab-js .pg-origin-path.ab-reveal.is-in li:not(:last-child)::after { transform: scaleX(1); }
.ab-js .pg-origin-path.ab-reveal li:nth-child(2)::after { transition-delay: .35s; }
.ab-js .pg-origin-path.ab-reveal li:nth-child(3)::after { transition-delay: .7s; }
.ab-js .pg-origin-path.ab-reveal li:nth-child(4)::after { transition-delay: 1.05s; }
.ab-js .pg-origin-path.ab-reveal .is-many i { opacity: 0; transition: opacity .4s ease 1.5s; }
.ab-js .pg-origin-path.ab-reveal.is-in .is-many i { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .ab-js .pg-origin-path.ab-reveal li::after, .ab-js .pg-origin-path.ab-reveal .is-many i { transition: none; }
}
@media (max-width: 900px) {
  .pg-origin-grid { grid-template-columns: 1fr; }
  .pg-origin-portrait { position: relative; top: auto; max-width: 340px; }
}
@media (max-width: 720px) {
  .ab .pg-origin-award { right: -8px; bottom: 84px; width: 116px; }
  .pg-origin-award strong { font-size: 14px; }
  /* The path runs down the page on phones */
  .ab .pg-origin-path-label { text-align: left; }
  .pg-origin-path { grid-template-columns: 1fr; row-gap: 6px; }
  .pg-origin-path li { flex-direction: row; gap: 14px; padding: 0; text-align: left; }
  .pg-origin-path li:not(:last-child)::after { top: calc(50% + 14px); left: 27px; width: 2px; height: calc(100% + 6px - 28px); background: linear-gradient(180deg, var(--ab-green), var(--ab-blue)); transform-origin: top; }
  .ab-js .pg-origin-path.ab-reveal li:not(:last-child)::after { transform: scaleY(0); }
  .ab-js .pg-origin-path.ab-reveal.is-in li:not(:last-child)::after { transform: scaleY(1); }
  .pg-origin-step { max-width: none; }
}
.pg-story { max-width: 720px; }
.pg-story p { font-size: 17.5px; line-height: 1.75; color: var(--ab-ink); }
.pg-story > p:first-of-type { font-family: var(--ab-serif); font-size: clamp(21px, 2vw, 26px) !important; line-height: 1.4 !important; color: var(--ab-deep); }
.pg-story-photo-note { font-size: 13.5px !important; color: var(--ab-soft) !important; }
.pg-related { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pg-related a { display: inline-flex; align-items: center; gap: 8px; color: var(--ab-blue); font-weight: 700; font-size: 15px; }
.ab .pg-invite { padding: clamp(36px, 5vw, 64px) 0; }
.pg-invite-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; padding: clamp(28px, 4vw, 52px); border-radius: 30px; background: linear-gradient(135deg, #07392a 0%, #0b3d2e 50%, #03384d 100%); color: #fff; }
.pg-invite-card h2 { color: #fff; font-size: clamp(24px, 2.5vw, 32px); margin: 0 0 10px; }
.pg-invite-card p { margin: 0 !important; color: rgba(255,255,255,.88) !important; max-width: 60ch; }
.pg-invite-card .ab-strokes { opacity: .45; }
.pg-invite-card > :not(.ab-strokes) { position: relative; }
.pg-area-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.pg-area-nav a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--ab-line); color: var(--ab-deep); font-weight: 700; font-size: 15px; line-height: 1.3; transition: border-color .2s ease, transform .2s ease; }
.pg-area-nav a:hover { border-color: var(--ab-blue); transform: translateY(-2px); }
.pg-area-nav svg { flex-shrink: 0; color: var(--ab-green); }
.pg-empty { padding: 28px; border-radius: 20px; border: 2px dashed var(--ab-line); color: var(--ab-soft); text-align: center; }

/* ---------- Directory ---------- */
.ab .pg-page-head { padding: clamp(48px, 6vw, 84px) 0 clamp(36px, 4.5vw, 56px); background: var(--ab-cream); }
.pg-page-head h1 { font-family: var(--ab-serif); font-weight: 500; font-size: var(--fs-display); line-height: 1.05; color: var(--ab-deep); margin: 0 0 16px; }
.pg-page-head p { max-width: 62ch; font-size: 18px; }
.pg-page-head .ab-crumb { color: var(--ab-soft); }
.pg-page-head .ab-crumb a { color: var(--ab-deep); }
.pg-filters { display: grid; gap: 16px; margin-bottom: clamp(26px, 3vw, 36px); }
.pg-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-filter-row > span { min-width: 140px; font: 700 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ab-green); }
.pg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ab-line); color: var(--ab-deep); font-weight: 700; font-size: 14px; line-height: 1; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.pg-pill:hover { border-color: var(--ab-blue); color: var(--ab-blue); }
.pg-pill[aria-current="true"] { background: var(--ab-blue); border-color: var(--ab-blue); color: #fff; }
.pg-pill small { font-size: 12px; opacity: .75; }
.pg-count { margin: 0 0 18px !important; font-size: 14.5px !important; }

/* ---------- Partners ---------- */
.pg-partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.pg-partner-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--ab-line); }
.pg-partner-logo { display: flex; align-items: center; justify-content: center; height: 96px; padding: 12px; border-radius: 16px; background: var(--ab-cream); }
.pg-partner-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pg-partner-card h3 { font-size: 19px; margin: 0 0 6px; }
.pg-partner-card p { margin: 0 0 10px; font-size: 15px; }
.pg-partner-card p:last-child { margin-bottom: 0; }
.pg-org { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pg-org .pg-story > p:first-of-type { font-family: inherit; font-size: 17.5px !important; line-height: 1.75 !important; color: var(--ab-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pg-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-area-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-results.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-connect-grid, .pg-intro-grid, .pg-org { grid-template-columns: 1fr; }
  .pg-clover { max-width: 520px; }
  .pg-project-grid, .pg-results { grid-template-columns: 1fr 1fr; }
  .pg-activity-list { grid-template-columns: 1fr 1fr; }
  .pg-blocks, .pg-partner-list { grid-template-columns: 1fr; }
  .pg-invite-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ab .pg-hero { min-height: 84vh; min-height: 84svh; }
  .ab .pg-hero.is-compact { min-height: 70vh; min-height: 70svh; }
  .pg-hero-inner { padding-top: 112px; }
  .pg-hero-note { position: static; padding: 0 20px 16px; }
  .pg-project-grid, .pg-results, .pg-results.is-four, .pg-ways, .pg-area-nav { grid-template-columns: 1fr; }
  .pg-activity-list { grid-template-columns: 1fr; }
  .pg-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .pg-gallery.is-two { grid-auto-rows: 200px; }
  .pg-tag { font-size: 12px; padding: 6px 9px; }


  .pg-strip-item { height: 240px; }
  .pg-filter-row > span { min-width: 0; flex-basis: 100%; }
  .pg-partner-card { grid-template-columns: 1fr; }
  .pg-partner-logo { height: 80px; }
  .pg-head-row { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-atlas-item, .pg-atlas-thumb img, .pg-atlas-slide, .pg-atlas-slide img, .pg-atlas-n, .pg-atlas-go, .pg-atlas-cta svg, .pg-project, .pg-project-media img, .pg-petal img, .pg-dot img, .pg-btn, .pg-link svg, .pg-more svg { transition: none; }
  .pg-strip-row { scroll-behavior: auto; }
}

/* Hero copy on the right, where the photograph has open space */
@media (min-width: 900px) {
  .pg-hero.is-right .pg-hero-copy { margin-left: auto; max-width: 590px; }
  .pg-hero.is-right .pg-hero-media::after { background: linear-gradient(180deg, rgba(6, 22, 15, .32) 0%, rgba(6, 22, 15, .04) 30%, rgba(6, 22, 15, .5) 74%, rgba(6, 22, 15, .84) 100%), linear-gradient(270deg, rgba(6, 22, 15, .7), rgba(6, 22, 15, 0) 62%); }
}
/* Overview hero: the farmer stands at the centre of the photograph, so the copy stays in a narrow left column */
@media (min-width: 900px) {
  .pg-hero.is-narrow .pg-hero-copy { max-width: min(500px, 38vw); }
  .pg-hero.is-narrow h1 { font-size: var(--fs-display); }
  .pg-hero.is-narrow .pg-hero-lead { font-size: clamp(16px, 1.2vw, 18px) !important; }
}
.pg-logo-icpac img { filter: brightness(0); opacity: .78; }

/* Phones: photograph as a band above the text, so faces are never covered */
@media (max-width: 720px) {
  .ab .pg-hero:not(.is-text), .ab .pg-hero.is-compact:not(.is-text) { display: block; min-height: 0; }
  .pg-hero:not(.is-text) .pg-hero-media { position: relative; height: 46vh; height: 46svh; min-height: 260px; }
  .pg-hero:not(.is-text) .pg-hero-media::after { background: linear-gradient(180deg, rgba(6, 22, 15, 0) 55%, rgba(11, 61, 46, .9) 100%); }
  .pg-hero:not(.is-text) .pg-hero-inner { padding-top: 22px; padding-bottom: 44px; }
}
@media (max-width: 720px) {
  .pg-clover { width: 92%; }
  .pg-dot-1 { right: -2%; top: -2%; }
  .pg-dot-2 { left: 0; bottom: -2%; }
}

/* =========================================================
   Overview, second edition
   ========================================================= */
/* Hero: index of the five programme areas along the bottom */
.ab .pg-hero.has-index { min-height: min(84vh, 760px); }
.pg-hero-index { display: none; }
@media (min-width: 1000px) {
  .pg-hero-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 18px; margin-top: clamp(36px, 5vh, 56px); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.28); }
  .pg-hero-index a { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; color: #fff; transition: color .2s ease; }
  .pg-hero-index b { font-family: var(--ab-serif); font-weight: 600; font-size: 15px; color: #9fd6b2; letter-spacing: .06em; font-variant-numeric: lining-nums; }
  .pg-hero-index span { font-size: 14.5px; font-weight: 600; line-height: 1.35; max-width: 22ch; }
  .pg-hero-index a:hover span { text-decoration: underline; text-underline-offset: 4px; }
  .pg-hero.has-index .pg-hero-inner { padding-top: 60px; padding-bottom: clamp(26px, 3.5vh, 40px); }
}
.pg-head-note { max-width: 440px; margin: 0 !important; }

/* Programme areas: project count above each title */
.pg-area-meta { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px !important; font-size: 12.5px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ab-green) !important; }

/* Selected projects: magazine spread */
.pg-feature-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(18px, 2.2vw, 26px); }
.pg-feature { position: relative; min-height: 660px; border-radius: 28px 140px 28px 28px; overflow: hidden; background: var(--ab-deep); transition: transform .3s ease, box-shadow .3s ease; }
.pg-feature:hover, .pg-feature:focus-within { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(11, 61, 46, .16); }
.pg-feature-img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform .9s ease; }
.pg-feature:hover .pg-feature-img { transform: scale(1.04); }
.pg-feature-panel { position: absolute; left: 18px; right: 18px; bottom: 18px; max-width: 500px; padding: 22px 24px 22px; border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.pg-feature-panel h3 { font-family: var(--ab-serif); font-weight: 600; font-size: clamp(21px, 2vw, 26px); line-height: 1.15; margin: 0 0 8px; }
.pg-feature-panel h3 a { color: var(--ab-deep); }
.pg-feature-panel h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.pg-feature-panel h3 a:focus-visible { outline: none; }
.pg-feature:has(h3 a:focus-visible) { outline: 3px solid var(--ab-blue); outline-offset: 3px; }
.pg-feature-panel p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; }
.pg-feature-place { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px !important; font-weight: 700; color: var(--ab-deep) !important; }
.pg-feature-place svg { color: var(--ab-green); }
.pg-side { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(18px, 2.2vw, 26px); }
.pg-side .pg-project { display: grid; grid-template-columns: 40% minmax(0, 1fr); }
.pg-side .pg-project-media { aspect-ratio: auto; height: 100%; min-height: 250px; }
.pg-side .pg-project-body { padding: 20px 22px; }
.pg-side .pg-project-body p:not(.pg-partner) { font-size: 14.5px; }

/* Evidence beside a photograph */
.pg-evidence-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pg-evidence-photo { margin: 0; }
.pg-evidence-frame { display: block; aspect-ratio: 4 / 4.6; border-radius: 200px 28px 200px 28px; overflow: hidden; background: rgba(255,255,255,.08); }
.pg-evidence-frame img { width: 100%; height: 100% !important; object-fit: cover; }
.pg-evidence-photo figcaption { margin-top: 12px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.pg-results.is-stack { grid-template-columns: 1fr; gap: 0; }
.pg-results.is-stack .pg-result { display: grid; grid-template-columns: clamp(150px, 17vw, 236px) minmax(0, 1fr); align-items: baseline; gap: 4px 26px; padding: 20px 0; }
.pg-results.is-stack .pg-result strong { grid-row: span 2; font-size: clamp(34px, 3.4vw, 50px); white-space: nowrap; }
.pg-results.is-stack .pg-result:last-child { border-bottom: 1px solid rgba(255,255,255,.22); }

@media (max-width: 1100px) {
  .pg-feature-grid { grid-template-columns: 1fr; }
  .pg-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .pg-side .pg-project { display: flex; }
  .pg-side .pg-project-media { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}
@media (max-width: 900px) {
  .pg-evidence-grid { grid-template-columns: 1fr; }
  .pg-evidence-frame { aspect-ratio: 16 / 11; border-radius: 120px 24px 120px 24px; }
}
@media (max-width: 720px) {
  .pg-feature { min-height: 0; border-radius: 22px 80px 22px 22px; display: flex; flex-direction: column; }
  .pg-feature-img { position: relative; height: 260px !important; }
  .pg-feature-panel { position: relative; left: auto; right: auto; bottom: auto; margin: -40px 12px 12px; padding: 20px; }
  .pg-side { grid-template-columns: 1fr; }
  .pg-results.is-stack .pg-result { grid-template-columns: 1fr; }
  .pg-results.is-stack .pg-result strong { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-feature, .pg-feature-img { transition: none; }
}

/* =========================================================
   Programme-area pages, second edition
   ========================================================= */
.pg-area-intro-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.pg-glance { display: grid; gap: 0; margin: 26px 0 0; border-top: 1px solid var(--ab-line); }
.pg-glance div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--ab-line); }
.pg-glance dt { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ab-green); }
.pg-glance dd { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ab-ink); }
/* Three photographs: arch, circle and leaf, with painted strokes behind */
.pg-trio { position: relative; aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; margin: 0 auto; }
.pg-trio .ab-lb { position: absolute; z-index: 1; box-shadow: 0 18px 40px rgba(11, 61, 46, .15); }
.pg-trio-1 { left: 0; top: 4%; width: 54%; height: 70%; border-radius: 999px 999px 22px 22px; }
.pg-trio-2 { right: 2%; top: 0; width: 40%; aspect-ratio: 1; border-radius: 50%; }
.pg-trio-3 { right: 0; bottom: 0; width: 52%; height: 50%; border-radius: 120px 18px 120px 18px; }
.pg-trio .ab-strokes { z-index: 0; }
/* Activity write-ups numbered */
.pg-block-num { display: block; margin-bottom: 8px; font-family: var(--ab-serif); font-size: 15px; font-weight: 600; color: var(--ab-blue); letter-spacing: .06em; }
/* Featured project across the full width */
.pg-feature-wide { min-height: 520px; border-radius: 28px 160px 28px 28px; }
.pg-feature-wide .pg-feature-panel { left: auto; right: 22px; bottom: 22px; }
.pg-feature-wide.is-text { min-height: 0; background: linear-gradient(135deg, #07392a, #0b3d2e 55%, #03384d); }
.pg-feature-wide.is-text .pg-feature-panel { position: relative; inset: auto; margin: clamp(24px, 4vw, 48px); }
/* Closing banner on area pages: no ways grid, so slightly shorter */
.ab .pg-close.is-area { padding: clamp(68px, 8vw, 110px) 0; }
/* Other programme areas as photo cards */
.pg-area-nav.has-photos a { gap: 14px; padding: 10px 16px 10px 10px; }
.pg-area-nav-img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--ab-sand); }
.pg-area-nav-img img { width: 100%; height: 100% !important; object-fit: cover; }
.pg-area-nav small { display: block; margin-bottom: 3px; font-family: var(--ab-serif); font-size: 13px; color: var(--ab-blue); }

@media (max-width: 900px) {
  .pg-area-intro-grid { grid-template-columns: 1fr; }
  .pg-trio { max-width: 460px; }
  .pg-feature-wide .pg-feature-panel { left: 18px; right: 18px; }
}
@media (max-width: 720px) {
  .pg-glance div { grid-template-columns: 1fr; }
  .pg-feature-wide { min-height: 0; border-radius: 22px 80px 22px 22px; }
  .pg-feature-wide .pg-feature-panel { left: auto; right: auto; bottom: auto; }
}

/* =========================================================
   Phones: a shorter overview
   ========================================================= */
@media (max-width: 720px) {
  .ab.pg section { padding: 46px 0; }
  .ab.pg .pg-hero { padding: 0; }
  .pg-atlas-desc { font-size: 14.5px; margin-bottom: 12px !important; }
  .pg-clover { max-width: 330px; }
  .pg-connect-copy p { font-size: 16px; }
  .pg-strip-item { height: 200px; }
  .pg-ways { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pg-way { padding: 14px; }
  .pg-way-ico { width: 36px; height: 36px; margin-bottom: 10px; }
  .pg-way h3 { font-size: 15.5px; }
  .pg-way p { font-size: 13px !important; }
  .pg-evidence-frame { aspect-ratio: 16 / 9; }
  .pg-evidence-photo figcaption { display: none; }
  .pg-results.is-stack .pg-result { padding: 14px 0; }
  .pg-results.is-stack .pg-result strong { font-size: 38px; }
  .pg-feature-img { height: 220px !important; }
  .pg-side .pg-project-media { aspect-ratio: 16 / 9; }
  .pg-head-note { display: none; }
  .pg-trio { max-width: 340px; }
}
@media (max-width: 720px) {
  .pg-evidence-photo { display: none; }
  .pg-side .pg-project-media { aspect-ratio: 16 / 7.5; }
  .pg-close-inner > p { font-size: 16px; }
}

/* Voices: a quotation set large, with a painted underline */
.ab .pg-voice-band { background: var(--ab-cream); padding: clamp(56px, 7vw, 96px) 0; }
.pg-voice { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.pg-voice-mark { display: block; height: 70px; font-family: var(--ab-serif); font-size: 140px; line-height: 1; color: var(--ab-green); opacity: .9; }
.pg-voice blockquote { margin: 0; }
.pg-voice blockquote p { margin: 0 !important; font-family: var(--ab-serif); font-weight: 500; font-size: var(--fs-quote) !important; line-height: 1.3 !important; letter-spacing: -.01em; color: var(--ab-deep) !important; }
.pg-voice-stroke { display: block; width: 180px; height: 18px; margin: 26px auto 14px; overflow: visible; }
.pg-voice figcaption strong { display: block; font-size: 16px; color: var(--ab-deep); }
.pg-voice figcaption span { display: block; margin-top: 3px; font-size: 14px; color: var(--ab-soft); }
@media (max-width: 720px) {
  .ab .pg-voice-band { padding: 44px 0; }
  .pg-voice-mark { height: 50px; font-size: 100px; }
}
.ab .pg-voice-band.is-white { background: #fff; padding-bottom: 0; }

/* Project location as a line of text under the title (no labels on photographs) */
.pg-project-body .pg-card-place { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 10px !important; font-size: 13px !important; font-weight: 700; color: var(--ab-deep) !important; }
.pg-card-place svg { color: var(--ab-green); }

/* More projects in this area: text links */
.pg-more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.pg-more-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 100%; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--ab-line); color: var(--ab-deep); transition: border-color .2s ease, transform .2s ease; }
.pg-more-list a:hover { border-color: var(--ab-blue); transform: translateY(-2px); }
.pg-more-list strong { display: block; font-family: var(--ab-serif); font-weight: 600; font-size: 19px; line-height: 1.25; }
.pg-more-list small { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; color: var(--ab-soft); }
.pg-more-list small svg { color: var(--ab-green); }
.pg-more-list > li > a > svg { flex-shrink: 0; color: var(--ab-blue); }
@media (max-width: 900px) { .pg-more-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pg-more-list a { transition: none; } }
.pg-area-nav.has-icons a { gap: 14px; padding: 14px 18px 14px 14px; }
.pg-area-nav-ico { display: inline-flex; flex: 0 0 48px; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(8, 114, 45, .1); color: var(--ab-green); }
.pg-area-nav.has-icons a > svg { display: none; }


/* Opening film on the overview, with the area index following the shot on screen */
.pg-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.pg-hero.has-video .pg-hero-video { opacity: 1; }
.pg-film-toggle[hidden] { display: none; }
@media (min-width: 1000px) {
  .pg-hero-index a { position: relative; transition: opacity .5s ease, color .2s ease; }
  .pg-hero-index a::before { content: ''; position: absolute; left: 0; top: -19px; height: 2px; width: 0; background: #9fd6b2; }
  .pg-hero.has-video .pg-hero-index a:not(.is-active) { opacity: .55; }
  .pg-hero.has-video .pg-hero-index a.is-active::before { width: 100%; transition: width 2.8s linear; }
  .ab-motion-paused .pg-hero.has-video .pg-hero-index a.is-active::before { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .pg-hero-video { display: none; } }

/* =========================================================
   Evidence as tall tiles: the figure over a photograph
   ========================================================= */
.ab .pg-proof { background: var(--ab-cream); }
.pg-tiles { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); list-style: none; margin: 0; padding: 0; }
.pg-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(420px, 40vw, 540px); border-radius: 28px; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0f5a3f 0%, #0b3d2e 55%, #03384d 100%); isolation: isolate; }
.pg-tile:nth-child(3n+1) { border-radius: 28px 140px 28px 28px; }
.pg-tile:nth-child(3n+2) { border-radius: 28px 28px 140px 28px; }
.pg-tile:nth-child(3n+2) .pg-tile-body { padding-right: 64px; }
.pg-tile:nth-child(3n+3) { border-radius: 140px 28px 28px 28px; }
.pg-tile-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; max-width: none; object-fit: cover; transition: transform 1s ease; }
.pg-tile:hover .pg-tile-img { transform: scale(1.04); }
.pg-tile.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 22, 15, 0) 28%, rgba(6, 22, 15, .55) 58%, rgba(6, 22, 15, .92) 100%); }
.pg-tile-strokes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .55; }
.pg-tile-body { padding: clamp(22px, 2.4vw, 30px); }
.pg-tile-num { display: block; font-family: var(--ab-serif); font-weight: 600; font-size: clamp(60px, 6.4vw, 96px); line-height: .92; letter-spacing: -.03em; color: #fff; font-variant-numeric: lining-nums; }
.pg-tile-num small { font-size: .5em; margin-left: 2px; color: #9fd6b2; letter-spacing: 0; }
.pg-tile-label { display: block; margin-top: 14px; font-size: 18px; font-weight: 700; line-height: 1.35; color: #fff; }
.pg-tile-ctx { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); }
.pg-tile-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); color: #fff; font-size: 13.5px; font-weight: 700; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s ease; }
.pg-tile-link:hover { background: rgba(255,255,255,.26); color: #fff; }
.pg-tile-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pg-proof .pg-head-note a { color: var(--ab-blue); font-weight: 700; }

/* =========================================================
   Questions people bring: a conversation thread
   ========================================================= */
.ab .pg-asks { position: relative; overflow: hidden; background: linear-gradient(135deg, #07392a 0%, #0b3d2e 50%, #03384d 100%); color: #fff; }
.pg-asks-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.pg-asks-intro { position: sticky; top: 110px; }
.pg-asks-intro .ab-eyebrow { color: #9fd6b2; }
.pg-asks-intro .ab-eyebrow::before { background: #9fd6b2; }
.pg-asks-intro h2 { color: #fff; }
.pg-asks-intro p { margin: 18px 0 20px; color: rgba(255,255,255,.82) !important; font-size: 17px; }
.pg-asks-intro .pg-link { color: #9fd6b2; }
.pg-thread { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.pg-bubble { max-width: 88%; align-self: flex-start; padding: 20px 24px 16px; border-radius: 26px 26px 26px 6px; background: #fff; color: var(--ab-deep); box-shadow: 0 16px 34px rgba(0, 0, 0, .18); }
.pg-bubble.is-reply { align-self: flex-end; border-radius: 26px 26px 6px 26px; background: #dff1e6; }
.pg-bubble-q { margin: 0 !important; font-family: var(--ab-serif); font-weight: 500; font-size: clamp(19px, 1.7vw, 23px) !important; line-height: 1.38 !important; color: var(--ab-deep) !important; }
.pg-bubble-q.is-rtl { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; font-size: clamp(21px, 1.9vw, 25px) !important; line-height: 1.8 !important; text-align: right; }
.pg-bubble-en { margin: 10px 0 0 !important; padding-top: 10px; border-top: 1px dashed rgba(11, 61, 46, .22); font-size: 15px !important; line-height: 1.55 !important; font-style: italic; color: var(--ab-soft) !important; }
.pg-bubble-fig, .pg-bubble-quote { margin: 0; padding: 0; border: 0; }
.pg-bubble-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 0 !important; font-size: 13px; color: var(--ab-soft); }
.pg-bubble-avatar { display: inline-flex; flex: 0 0 auto; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ab-green); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.pg-bubble.is-reply .pg-bubble-avatar { background: var(--ab-deep); }
.pg-bubble-who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.pg-bubble-who b { font-size: 14.5px; color: var(--ab-deep); }
.pg-bubble-ar { margin-left: 4px; font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; font-weight: 500; font-size: 14px; color: var(--ab-deep); }
.pg-bubble-who small { font-size: 12.5px; color: var(--ab-soft); }
.pg-bubble-lang { padding: 3px 9px; border-radius: 999px; background: var(--ab-deep); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.pg-bubble-lang[lang="ar"] { font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif; letter-spacing: 0; }

@media (max-width: 1100px) {
  .pg-tiles { grid-template-columns: repeat(min(var(--n, 3), 2), minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-asks-grid { grid-template-columns: 1fr; }
  .pg-asks-intro { position: static; }
}
@media (max-width: 720px) {
  .pg-tiles { grid-template-columns: 1fr; }
  .pg-tile { min-height: 300px; }
  .pg-tile:nth-child(n) { border-radius: 24px 90px 24px 24px; }
  .pg-bubble { max-width: 94%; padding: 16px 18px 13px; }
}
@media (prefers-reduced-motion: reduce) { .pg-tile-img, .pg-tile-link { transition: none; } }

/* =========================================================
   The Yumbe film: a play button on the Yumbe feature, and a player dialog
   ========================================================= */
.pg-film-play { position: absolute; z-index: 2; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: 14px; padding: 8px 22px 8px 8px; border-radius: 999px; background: rgba(6, 22, 15, .5); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.32); transition: background .2s ease, transform .2s ease; font: inherit; text-align: left; }
.pg-film-play:hover { background: rgba(6, 22, 15, .7); transform: translateY(-2px); }
.pg-film-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.pg-film-play-ico { position: relative; display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ab-green); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.pg-film-play-ico::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(159, 214, 178, .7); animation: pgPulse 2.4s ease-out infinite; }
@keyframes pgPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.pg-film-play-ico svg { width: 24px; height: 24px; margin-left: 3px; fill: #fff; }
.pg-film-play-text { display: flex; flex-direction: column; font-weight: 700; font-size: 16.5px; line-height: 1.2; }
.pg-film-play-text small { margin-top: 3px; font-weight: 500; font-size: 13px; color: rgba(255,255,255,.82); }
.pg-film-dialog { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: transparent; }
.pg-film-dialog::backdrop { background: rgba(4, 14, 9, .94); }
.pg-film-dialog[open] { display: flex; align-items: center; justify-content: center; }
.pg-film-dialog video { width: min(1200px, 92vw); max-height: 84vh; border-radius: 14px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.pg-film-close { position: fixed; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.pg-film-close:hover { background: rgba(255,255,255,.26); }
.pg-film-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Inline player on the project page */
.pg-film-inline { position: relative; border-radius: 26px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgba(11, 61, 46, .18); }
.pg-film-inline video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.pg-film-caption { margin: 14px 0 0 !important; font-size: 14px !important; color: var(--ab-soft) !important; }
@media (max-width: 720px) {
  .pg-film-play { left: 14px; top: 14px; gap: 10px; padding: 6px 16px 6px 6px; }
  .pg-film-play-ico { width: 46px; height: 46px; }
  .pg-film-play-ico svg { width: 20px; height: 20px; }
  .pg-film-play-text { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pg-film-play-ico::after { animation: none; } .pg-film-play { transition: none; } }

/* Phones keep the note under the figures and the photograph beside them */
@media (max-width: 900px) {
  .pg-head-note { display: block; max-width: none; }
}
@media (max-width: 720px) {
  .pg-evidence-photo { display: block; }
  .pg-evidence-photo figcaption { display: block; font-size: 13px; }
  .pg-evidence-frame { aspect-ratio: 16 / 10; }
}

/* ===== Projects directory ===== */
.pg-dir [hidden] { display: none !important; }

/* Opening: copy beside a mosaic of project photographs */
.ab .pg-dir-hero { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px) 0 clamp(96px, 10vw, 136px); background: linear-gradient(160deg, #07392a 0%, #0b3d2e 55%, #062f3f 100%); color: #fff; }
.pg-dir-hero .pg-hero-strokes { opacity: .35; }
.pg-dir-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.pg-dir-hero h1 { font-family: var(--ab-serif); font-weight: 500; font-size: var(--fs-display); line-height: 1.03; letter-spacing: -.02em; color: #fff; max-width: 12ch; margin: 0 0 22px; }
.pg-dir-hero .ab-mark path { fill: var(--ab-green); opacity: .9; }
.ab .pg-dir-lead { max-width: 46ch; margin: 0 0 30px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: rgba(255,255,255,.86); }
.pg-dir-stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pg-dir-stats li { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: 14px; color: rgba(255,255,255,.86); }
.pg-dir-stats strong { font-family: var(--ab-serif); font-weight: 600; font-size: 22px; line-height: 1; color: #fff; }
.pg-dir-mosaic { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(360px, 36vw, 520px); }
.pg-dir-tile { position: relative; display: block; overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.08); box-shadow: 0 20px 44px rgba(0, 0, 0, .22); }
.pg-dir-tile-1 { grid-row: 1 / 3; border-radius: 160px 160px 22px 22px; }
.pg-dir-tile-2 { grid-column: 2 / 4; }
.pg-dir-tile img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .8s ease; }
.pg-dir-tile:hover img { transform: scale(1.05); }
.pg-dir-tile-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 20px); padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--ab-deep); font: 700 12px/1.2 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-dir-tile-tag svg { flex-shrink: 0; color: var(--ab-green); }
.pg-dir-tile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Filters: a floating toolbar that overlaps the opening */
.ab .pg-dir-list { padding-top: 0; }
.pg-toolbar { position: relative; z-index: 2; display: grid; gap: 14px; margin: calc(-1 * clamp(64px, 6.5vw, 84px)) 0 22px; padding: clamp(16px, 2vw, 22px) clamp(16px, 2.2vw, 26px); border-radius: 24px; background: #fff; border: 1px solid var(--ab-line); box-shadow: 0 24px 50px rgba(11, 61, 46, .12); }
.pg-toolbar-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pg-toolbar-label { flex-shrink: 0; width: 116px; font: 700 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ab-green); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pg-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; background: var(--ab-cream); border: 1.5px solid transparent; color: var(--ab-deep); font-weight: 700; font-size: 14px; line-height: 1.15; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.pg-fchip svg { flex-shrink: 0; color: var(--ab-green); }
.pg-fchip small { font-size: 12px; font-weight: 600; opacity: .7; }
.pg-fchip:hover { border-color: var(--ab-blue); }
.pg-fchip[aria-current="true"] { background: var(--ab-deep); border-color: var(--ab-deep); color: #fff; }
.pg-fchip[aria-current="true"] svg { color: #9fd6b2; }
.pg-fchip.is-empty:not([aria-current]) { opacity: .45; }
.pg-dir .pg-count { margin: 0 0 clamp(28px, 3.5vw, 44px) !important; }

/* Groups: one per programme area */
.pg-group + .pg-group { margin-top: clamp(52px, 6.5vw, 88px); }
.pg-group-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 22px; align-items: start; margin-bottom: clamp(22px, 2.6vw, 30px); padding-bottom: clamp(18px, 2vw, 24px); border-bottom: 1px solid var(--ab-line); }
.pg-group-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--ab-green); color: #fff; box-shadow: 0 10px 22px rgba(8, 114, 45, .22); }
.pg-group:nth-of-type(even) .pg-group-icon { background: var(--ab-blue); box-shadow: 0 10px 22px rgba(0, 124, 173, .22); }
.ab .pg-group-head h3 { font-family: var(--ab-serif); font-weight: 500; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; color: var(--ab-deep); margin: 0 0 8px; }
.ab .pg-group-head p { max-width: 74ch; margin: 0; font-size: 15.5px; line-height: 1.6; }
.pg-group-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 6px; text-align: right; white-space: nowrap; }
.pg-group-n { font: 700 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ab-green); }

/* Cards: place on the photograph, one documented result where there is one */
.pg-dcard .pg-project-media { aspect-ratio: 16 / 11; }
.pg-dcard-place { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 24px); padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ab-deep); font: 700 12.5px/1.2 var(--font-body); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.pg-dcard-place svg { flex-shrink: 0; color: var(--ab-green); }
.pg-dcard .pg-dcard-status { display: flex; align-items: flex-start; gap: 6px; margin: -2px 0 10px; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--ab-blue); }
.pg-dcard-status svg { flex-shrink: 0; margin-top: 2px; }
.pg-dcard .pg-dcard-sum { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ab .pg-group { padding: 0; }

/* Shown wide: the featured project, and any project alone in its group */
.pg-dcard.is-feature, .pg-group.is-one .pg-dcard { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.pg-dcard.is-feature .pg-project-media, .pg-group.is-one .pg-dcard .pg-project-media { aspect-ratio: auto; height: 100%; min-height: 380px; }
.pg-dcard.is-feature .pg-project-media { min-height: 440px; }
.pg-dcard.is-feature .pg-project-body, .pg-group.is-one .pg-dcard .pg-project-body { padding: clamp(26px, 3.2vw, 46px); }
.ab .pg-dcard.is-feature h3, .ab .pg-group.is-one .pg-dcard h3 { font-size: clamp(27px, 2.7vw, 38px); margin-bottom: 14px; }
.pg-dcard.is-feature .pg-dcard-sum, .pg-group.is-one .pg-dcard .pg-dcard-sum { display: block; font-size: 16.5px; color: var(--ab-ink); }
.pg-dcard-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 4px 0 20px; padding: 0; }
.pg-dcard-results li { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--ab-cream); }
.pg-dcard-results strong { font-family: var(--ab-serif); font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); line-height: 1; color: var(--ab-green); }
.pg-dcard-results span { font-size: 13.5px; line-height: 1.35; color: var(--ab-ink); }
/* In a standard card, only the first result shows, as a strip */
.pg-group:not(.is-one) .pg-dcard:not(.is-feature) .pg-dcard-results { display: block; margin: 2px 0 16px; }
.pg-group:not(.is-one) .pg-dcard:not(.is-feature) .pg-dcard-results li { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border-left: 3px solid var(--ab-green); }
.pg-group:not(.is-one) .pg-dcard:not(.is-feature) .pg-dcard-results li + li { display: none; }
.pg-group:not(.is-one) .pg-dcard:not(.is-feature) .pg-dcard-results strong { flex-shrink: 0; font-size: 25px; }
.pg-dcard-film { position: absolute; z-index: 2; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px 9px 9px; border-radius: 999px; background: rgba(255,255,255,.96); color: var(--ab-deep); font-weight: 700; font-size: 15px; line-height: 1.2; box-shadow: 0 16px 36px rgba(0, 0, 0, .28); transition: transform .25s ease; }
.pg-dcard-film:hover { transform: scale(1.04); }
.pg-dcard.is-feature .pg-dcard-place { top: 16px; bottom: auto; left: 16px; }
.pg-dcard-film:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pg-dcard-film small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ab-soft); }
.pg-dcard-play { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ab-green); color: #fff; box-shadow: 0 0 0 6px rgba(8, 114, 45, .16); }
.pg-dcard-play svg { margin-left: 2px; }

@media (prefers-reduced-motion: reduce) {
  .pg-dir-tile img, .pg-fchip, .pg-dcard-film { transition: none; }
}
@media (max-width: 1100px) {
  .pg-dcard.is-feature, .pg-group.is-one .pg-dcard { grid-template-columns: 1fr; }
  .pg-dcard.is-feature .pg-project-media, .pg-group.is-one .pg-dcard .pg-project-media { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 900px) {
  .pg-dir-hero-grid { grid-template-columns: 1fr; }
  .pg-dir-mosaic { height: clamp(300px, 62vw, 440px); }
  .pg-toolbar-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pg-toolbar-label { width: auto; }
}
@media (max-width: 720px) {
  .ab .pg-dir-hero { padding-bottom: 92px; }
  .pg-dir-mosaic { grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 340px; }
  .pg-dir-tile-1 { border-radius: 120px 120px 18px 18px; }
  .pg-dir-tile-2 { grid-column: 2; }
  .pg-dir-tile-3 { display: none; }
  .pg-dir-tile-4 { grid-column: 2; }
  .pg-dir-stats li { padding: 8px 13px; font-size: 13px; }
  .pg-dir-stats strong { font-size: 19px; }
  .pg-toolbar { margin-top: -60px; border-radius: 20px; }
  /* Chips scroll sideways on phones instead of stacking into a wall */
  .pg-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent); }
  .pg-chips::-webkit-scrollbar { display: none; }
  .pg-group-head { grid-template-columns: auto minmax(0, 1fr); }
  .pg-group-icon { width: 48px; height: 48px; border-radius: 15px; align-self: center; }
  .pg-group-head > div:not(.pg-group-side) { display: contents; }
  .ab .pg-group-head h3 { align-self: center; margin: 0; font-size: 24px; }
  .ab .pg-group-head p { grid-column: 1 / -1; font-size: 15px; }
  .pg-group-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0; text-align: left; }
  .pg-dcard-results { grid-template-columns: 1fr 1fr; }
  .pg-dcard.is-feature .pg-project-media, .pg-group.is-one .pg-dcard .pg-project-media { aspect-ratio: 4 / 3; }
  .pg-dcard-film { padding-right: 16px; font-size: 14px; }
  .pg-dcard-play { width: 40px; height: 40px; }
}

/* Balanced rows: counted over the cards on show (not the featured one), so they stay balanced while filtering.
   Browsers without nth-child(... of S) keep the plain grid. */
@media (min-width: 1101px) {
  .pg-dir .pg-project-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pg-dir .pg-dcard { grid-column: span 2; }
  /* A last row of two shares the width */
  .pg-dir .pg-dcard:nth-last-child(1 of .pg-dcard:not([hidden], .is-feature)):nth-child(3n+2 of .pg-dcard:not([hidden], .is-feature)),
  .pg-dir .pg-dcard:nth-last-child(2 of .pg-dcard:not([hidden], .is-feature)):nth-child(3n+1 of .pg-dcard:not([hidden], .is-feature)) { grid-column: span 3; }
  /* A last card on its own is shown wide */
  .pg-dir .pg-dcard:nth-last-child(1 of .pg-dcard:not([hidden], .is-feature)):nth-child(3n+1 of .pg-dcard:not([hidden], .is-feature)) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .pg-dir .pg-dcard:nth-last-child(1 of .pg-dcard:not([hidden], .is-feature)):nth-child(3n+1 of .pg-dcard:not([hidden], .is-feature)) .pg-project-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .pg-dir .pg-dcard:nth-last-child(1 of .pg-dcard:not([hidden], .is-feature)):nth-child(3n+1 of .pg-dcard:not([hidden], .is-feature)) .pg-project-body { padding: clamp(26px, 3vw, 42px); }
  .pg-dir .pg-dcard.is-feature, .pg-dir .pg-group.is-one .pg-dcard { grid-column: 1 / -1; }
  .pg-dir .pg-group.is-one .pg-dcard .pg-project-media { min-height: 320px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  /* Two columns: a last card on its own takes the row, photograph beside the text */
  .pg-dir .pg-dcard:nth-last-child(1 of .pg-dcard:not([hidden], .is-feature)):nth-child(odd of .pg-dcard:not([hidden], .is-feature)) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pg-dir .pg-dcard:nth-last-child(1 of .pg-dcard:not([hidden], .is-feature)):nth-child(odd of .pg-dcard:not([hidden], .is-feature)) .pg-project-media { aspect-ratio: auto; height: 100%; min-height: 280px; }
}

/* A partner without a logo file yet: the name, set in the serif, in the logo box */
.pg-partner-logo.is-name { padding: 12px 14px; background: linear-gradient(145deg, var(--ab-cream), #eef3e9); }
.pg-partner-logo.pg-logo-environmental-hub-uganda { padding: 4px; }   /* a round emblem reads small beside wordmarks */
.pg-partner-logo.is-name span { font-family: var(--ab-serif); font-weight: 600; font-size: 18px; line-height: 1.2; text-align: center; color: var(--ab-deep); }
