/* ==========================================================================
   One system for every page: type scale, section spacing, button placement,
   and a footer that mirrors the header. Loaded last, after site/sections.
   --------------------------------------------------------------------------
   Sizes are ~25–30% below the first harmonised version (partner feedback: too big).
   H2       page and section titles, strategy lines, case names
   H3       card names (cases, team), pillar titles, company names in lists
   Lead     the intro text under a section title
   Body     everything else people read: stories, pillar texts, roles, sectors
   Label    small spaced capitals (header, footer, tags)
   ========================================================================== */
:root { --sec: clamp(60px, 6.8vw, 96px); --side: clamp(24px, 4vw, 64px); }

/* ---------- type ---------- */
.pintro__title, .rstack li, .pcase__name {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.8vw, 68px); line-height: .94; letter-spacing: -.03em; max-width: none; }
.rstack li { line-height: 1.02; }
.fc__name, .tt__name, .rstack__pillars h3, .crow__name, .footer__news h5 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 1.4vw, 22px); line-height: 1.08; letter-spacing: -.02em; }
.fc__name, .tt__name { margin-top: 14px; }
.pintro__text { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.32; letter-spacing: -.02em; font-weight: 500; max-width: 46ch; opacity: 1; }
.fc__meta, .tt__role, .pcase__meta, .pcase__foot p, .rstack__pillars p, .fc__desc, .lpost__text, .crow__idx, .crow__cell, .footer__note {
  font-size: 16px; line-height: 1.5; letter-spacing: 0; font-weight: 400; color: var(--navy); opacity: 1; }
.fc__meta, .tt__role { margin-top: 6px; }
.team--teaser .tt__role { opacity: 1; }

/* ---------- section titles, text and buttons: always one column, button on the left under the text ---------- */
.pintro { grid-template-columns: minmax(0, 1fr); row-gap: 22px; padding: 0 var(--side); margin-bottom: 48px; }
.pintro:has(.is-action-only) { grid-template-columns: minmax(0, 1fr); }
.pintro__text-wrap.is-action-only { justify-self: start; }
.pintro__action { margin-top: 28px; }
.pintro__text-wrap.is-action-only .pintro__action { margin-top: 0; }
.phero .pintro, .network .pintro { margin-bottom: 0; }

/* ---------- one rhythm of section spacing ---------- */
.ohero { padding-bottom: calc(var(--sec) * .75); }
.rstack, .record, .network, .team--teaser, .love { padding-top: var(--sec); padding-bottom: var(--sec); }
.rstack { padding-left: var(--side); padding-right: var(--side); }
.phero, .has-bar .phero { padding-top: calc(var(--sec) * .6); padding-bottom: calc(var(--sec) * .5); }
.team-page, .page-navy > .projects { padding-top: 0; padding-bottom: var(--sec); }
.clist-sec, .clist-sec--yellow { padding: var(--sec) var(--side); }
.legal, .has-bar .legal { padding-top: calc(var(--sec) * .6); padding-bottom: var(--sec); }

/* ---------- footer: one line like the header (logo · newsletter · links) ---------- */
.footer { padding: calc(var(--sec) * .5) var(--side); gap: 0; border-top: 1px solid rgba(8, 44, 78, .15); }
.footer__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: clamp(32px, 4vw, 64px); row-gap: 24px; }   /* logo · newsletter (centred in the free space) · links */
.footer__logo img { width: 150px; height: auto; display: block; }
.footer__form { display: flex; align-items: center; gap: 0; justify-self: center; width: 100%; max-width: 380px; height: 48px; margin: 0; border: 1px solid rgba(8, 44, 78, .3); border-radius: 0; min-width: 0; }
.footer__label { padding: 0 16px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border-right: 1px solid rgba(8, 44, 78, .3); align-self: stretch; display: flex; align-items: center; }
.footer__form input { flex: 1 1 0; width: 0; min-width: 0; height: 100%; padding: 0 16px; background: none; border: 0; font-size: 16px; letter-spacing: 0; color: var(--navy); }
.footer__form input::placeholder { color: var(--navy); opacity: .55; }
.footer__form button { height: 100%; padding: 0 18px; background: var(--navy); color: var(--paper); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer__form button:hover, .footer__form button:focus-visible { background: var(--yellow); color: var(--navy); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px clamp(16px, 2vw, 36px); list-style: none; }
.footer__links a { font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.footer__links a.is-mail { text-transform: none; letter-spacing: .02em; }
.footer__links a:hover, .footer__links a:focus-visible { text-decoration: underline; text-underline-offset: 6px; }
.nav--bar .nav__link:hover, .nav--bar .nav__link:focus-visible { text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 1199px) { .footer__bar { grid-template-columns: auto minmax(0, 1fr); } .footer__form { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: 440px; } }
@media (max-width: 860px) {
  .footer__bar { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .footer__form { grid-row: auto; width: 100%; max-width: none; }
  .footer__links { justify-content: flex-start; }
  .footer__links { justify-content: flex-start; gap: 8px 20px; }
  .footer__links a { font-size: 12px; }
}
/* phones: H2 scales with the screen so the longest words still fit */
@media (max-width: 600px) {
  .pintro__title, .home .pintro__title, .pcase__name { font-size: 9vw; }
  .rstack li { font-size: 7.6vw; }
}
