/* paul-type-pyramid.css — 9 Nov 2026 (Europe/London). Working copy only, loaded last.
   1. Type scale (one size per role)  2. Number styling  3. Left edges (Why now, Founding partners)
   4. Performance pyramid in the brief's colours (page 3, Mission & Framework Brief). No wording changes. */

:root{
  /* roles */
  --tp-title:clamp(44px,6vw,92px);      /* section titles: existing larger size (86.4px @1440, 44px @390) */
  --tp-second:clamp(30px,3.4vw,52px);   /* line under a section title (48.96 / 30) */
  --tp-sub:clamp(24px,2.6vw,38px);      /* sub-headings (37.44 / 24) */
  --tp-card:clamp(21px,1.95vw,28px);    /* titles inside boxes and tiles (28 / 21) */
  --tp-body:clamp(16px,1.25vw,18px);    /* body (18 / 16) */
  --tp-body-lh:1.6;
  --tp-foot:13px;                       /* footnote */
  /* pyramid colours sampled from the brief */
  --pyr-4:#2E7D32;  /* Purpose & Performance */
  --pyr-3:#C8960C;  /* Capability */
  --pyr-2:#BD4D19;  /* Resilience: brief #D3561C, lightness 47%->42% (same hue) so white labels pass AA: 4.10 -> 4.95 */
  --pyr-1:#9E1B1B;  /* Human Maintenance */
  --pyr-ink-light:#FFFFFF;
  --pyr-ink-dark:#14110A;
}

/* ---------- 1a. Section titles: all at the larger existing size ---------- */
html body h2.sec-title,
html body .founder h2.sec-title,
html body .contact h2.sec-title,
html body .scorecards h2.sec-title,
html body .why-now p.why-now__kicker{
  font:400 var(--tp-title)/.98 var(--serif)!important;letter-spacing:-.02em;text-transform:none;
}

/* ---------- 1b. Second lines (directly under a section title) ---------- */
html body .why-now h2.why-now__title,
html body .approach__intro .principle__quote,
html body .sec-msg,
html body .founder__name{
  font-family:var(--serif)!important;font-weight:400!important;
  font-size:var(--tp-second)!important;line-height:1.08!important;letter-spacing:-.015em;
}
html body .approach__intro .principle__quote{max-width:16em}
html body .sec-msg em{font-size:inherit}

/* ---------- 1c. Sub-headings ---------- */
html body .sub-head h3,
html body .loopsec .sub-head h3,
html body .why-now p.why-now__line,
html body .services__delivery h3,
html body .founder__role,
html body .partner h3,
html body .founding .partner h3{
  font-family:var(--serif)!important;font-weight:400!important;
  font-size:var(--tp-sub)!important;line-height:1.1!important;letter-spacing:-.01em;
}

/* ---------- 1d. Titles inside boxes (six steps, zones, pyramid, services, scorecards) ---------- */
html body .loop-l4__card h4,
html body .zone h4,
html body .pyr__text h4,
html body .svc h3,
html body .sc h3{
  font-family:var(--serif)!important;font-weight:400!important;
  font-size:var(--tp-card)!important;line-height:1.08!important;
}

/* ---------- 1e. Body: one size everywhere, six-step box text raised to it ---------- */
html body .lede,
html body .sec-head .lede,
html body .sub-head .lede,
html body .loopsec .sub-head .lede,
html body .loopsec .sub-head p.lede,
html body .contact .lede,
html body .principle__summary,
html body .why-now__stats li,
html body .why-now__body,
html body .loop-l4__card p,
html body .zone p,
html body .pyr__text p,
html body .pyr__notes p,
html body .svc p,
html body .services__delivery p,
html body .sc > p:not(.sc__meta):not(.sc__how),
html body .founder__text > p:not(.founder__name):not(.founder__role),
html body .partner p,
html body .founding .partner p{
  font-family:var(--sans)!important;font-weight:400;
  font-size:var(--tp-body)!important;line-height:var(--tp-body-lh)!important;
}

/* ---------- 1f. Gallup source as a footnote ---------- */
html body .why-now p.why-now__source{
  font:400 var(--tp-foot)/1.45 var(--sans)!important;
  color:var(--muted);letter-spacing:.01em;
  margin:clamp(18px,2.4vw,28px) 0 0;padding-top:10px;
  border-top:1px solid var(--line);max-width:360px;
}

/* ---------- 2. Numbers: plain, not italic ---------- */
html body .loop-l4__card-n,
html body .loop-l4__card.is-on .loop-l4__card-n,
html body .loop-l4__core-n{font-style:normal!important}

/* ---------- 3. Left edges ---------- */
/* Why now: drop the centred 1100px box so the text starts on the page gutter like every other section */
html body .why-now{max-width:none!important;margin:0!important;padding-left:var(--gut)!important;padding-right:var(--gut)!important}
html body .why-now__inner{max-width:none!important;margin:0!important}
html body .why-now__stats{max-width:1100px}
/* Founding partners: the card's text sits on the gutter; the card frame extends out into the gutter */
html body .founding .partner{margin-left:calc(-1 * clamp(26px,3.4vw,40px) - 1px)!important;padding-left:clamp(26px,3.4vw,40px)!important}
@media (max-width:760px){
  html body .founding .partner{margin-left:-13px!important;margin-right:-13px!important;padding-left:12px!important;padding-right:12px!important;max-width:none}
}

/* ---------- 4. Performance pyramid ---------- */
html body .pyr{grid-template-columns:minmax(0,500px) minmax(0,1fr)!important;grid-auto-rows:1fr;gap:0 clamp(24px,3.4vw,48px)!important;align-items:stretch}
html body .pyr__shape{min-height:104px;margin:3px 0;padding:0 0 14px;align-items:flex-end;justify-content:center;text-align:center}
html body .pyr__shape--4{background:var(--pyr-4)}
html body .pyr__shape--3{background:var(--pyr-3)}
html body .pyr__shape--2{background:var(--pyr-2)}
html body .pyr__shape--1{background:var(--pyr-1)}
html body .pyr__shape span,
html body .pyr__shape--4 span,
html body .pyr__shape--3 span{
  font:700 13px/1.25 var(--sans)!important;font-style:normal!important;
  letter-spacing:.07em;text-transform:uppercase;color:var(--pyr-ink-light);
}
html body .pyr__shape--4 span{max-width:22%;padding:0}
/* Amber: white text measures 2.68:1 on #C8960C (fails AA). Keep the brief's amber, use dark ink (7.08:1). */
html body .pyr__shape--3 span{color:var(--pyr-ink-dark)}

html body .pyr__text{
  margin:3px 0;padding:14px 20px 14px 22px;border-bottom:0!important;
  border-left:5px solid var(--pc,var(--gold));
  background:rgba(255,255,255,.035);border-radius:0 12px 12px 0;
}
html body .pyr__text h4{margin:0 0 6px}
html body .pyr__text p{color:var(--muted)}
html body .pyr__row:nth-child(1) .pyr__text{--pc:var(--pyr-4)}
html body .pyr__row:nth-child(2) .pyr__text{--pc:var(--pyr-3)}
html body .pyr__row:nth-child(3) .pyr__text{--pc:var(--pyr-2)}
html body .pyr__row:nth-child(4) .pyr__text{--pc:var(--pyr-1)}

/* Phone: pyramid drawn whole on top, the four descriptions with their bars below */
@media (max-width:760px){
  html body .pyr{grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto;gap:0!important}
  html body .pyr__shape{min-height:70px;height:70px;padding-bottom:9px;margin:2px auto;width:100%;max-width:360px}
  html body .pyr__row:nth-child(1) .pyr__shape{grid-row:1}
  html body .pyr__row:nth-child(2) .pyr__shape{grid-row:2}
  html body .pyr__row:nth-child(3) .pyr__shape{grid-row:3}
  html body .pyr__row:nth-child(4) .pyr__shape{grid-row:4;margin-bottom:22px}
  html body .pyr__row:nth-child(1) .pyr__text{grid-row:5}
  html body .pyr__row:nth-child(2) .pyr__text{grid-row:6}
  html body .pyr__row:nth-child(3) .pyr__text{grid-row:7}
  html body .pyr__row:nth-child(4) .pyr__text{grid-row:8}
  html body .pyr__shape span,
  html body .pyr__shape--4 span,
  html body .pyr__shape--3 span{font-size:11px!important;letter-spacing:.05em}
  html body .pyr__shape--4 span{max-width:26%}
  html body .pyr__text{padding:14px 16px 14px 18px;margin:4px 0}
}

/* Top tier is a triangle: smaller, tighter label so both lines sit inside the green */
html body .pyr__shape--4{padding-bottom:6px}
html body .pyr__shape--4 span{font-size:11px!important;letter-spacing:.02em;line-height:1.2!important;max-width:none}
@media (max-width:760px){
  html body .pyr__shape{height:84px;min-height:84px}
  html body .pyr__shape--4{padding-bottom:4px}
  html body .pyr__shape--4 span{font-size:10px!important;letter-spacing:0;max-width:none}
}
html body .pyr__shape--4 span{max-width:8.4em!important}
