/* Home v2, section 11 "Who we are" (#about).
 * Two columns (photo | copy) with a full-width credentials strip below:
 * three icon credentials and the four ISO certification badges.
 * Mobile first: one column, photo first. */

#about .about-strip{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:start}

/* Photo: keep the whole team in frame (people span ~9-91% of the width and the lower ~80% of the height;
 * the top fifth is bare wall). Anchoring the crop low keeps the back row's heads and the front row in view. */
#about .about-photo{width:100%;aspect-ratio:3/2;height:auto;align-self:start}
#about .about-photo img{object-position:50% 62%}

/* Copy */
#about .about-strip h2{text-wrap:balance}
#about .about-strip .lede,
#about .about-strip .about-p{max-width:60ch}
#about .about-links{margin-top:28px}

/* Credentials strip */
#about .about-cred{border-top:2px solid var(--navy);padding-top:24px;display:grid;gap:28px}
#about .about-cred .creds{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0}
#about .about-cred .creds li{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:0;border:0;font-weight:700;font-size:1rem;line-height:1.3;color:var(--navy)}
#about .about-cred .creds li::before{content:"";display:block;flex:none;width:44px;height:44px;margin:0;border-radius:12px;
  background:var(--orange) center/24px 24px no-repeat;
  /* Line icons copied from assets/img/icons.svg (i-history, i-building, i-users), drawn white on an orange tile. */
  background-image:var(--ic)}
#about .about-cred .creds li:nth-child(1){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7L3 8'/%3E%3Cpath d='M3 3v5h5M12 7v5l4 2'/%3E%3C/svg%3E")}
#about .about-cred .creds li:nth-child(2){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='1'/%3E%3Cpath d='M9 6h.01M15 6h.01M9 10h.01M15 10h.01M9 14h.01M15 14h.01M10 22v-4h4v4'/%3E%3C/svg%3E")}
/* National Presence: map pin */
#about .about-cred .creds li:nth-child(3){--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E")}

/* ISO badges */
#about .about-iso{display:flex;flex-wrap:wrap;gap:16px 20px}
#about .iso-badge.wp-block-image{margin:0;display:flex;flex-direction:column;align-items:center;gap:8px}
#about .iso-badge img{width:auto;height:64px;max-width:none}
#about .iso-badge .wp-element-caption{margin:0;font:500 12px/1.2 var(--f-mono);letter-spacing:.06em;color:var(--ink-soft);white-space:nowrap}

@media (min-width:640px){
  #about .about-cred .creds li{flex-direction:row;align-items:center;gap:14px}
}

/* Padding follows the screen height so the section fits one screen on laptops. */
#about.band{padding-block:clamp(36px,6vh,112px)}

/* Desktop: heading across the full width, then photo | copy, then the credentials strip.
 * The copy column's wrapper is flattened (display:contents) so its children sit on the grid directly:
 * row 1 eyebrow, row 2 heading, rows 3-6 copy + button beside the photo, row 7 credentials. */
@media (min-width:981px){
  #about .about-strip{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);column-gap:clamp(32px,4vw,64px);row-gap:0;align-items:start}
  #about .about-strip > .wp-block-group:not(.about-cred){display:contents}
  #about .about-strip .eyebrow{grid-column:1/-1;grid-row:1}
  #about .about-strip h2{grid-column:1/-1;grid-row:2;margin-bottom:clamp(14px,2.4vh,32px)}
  #about .about-strip .lede{grid-column:2;grid-row:3;margin-top:0}
  #about .about-strip .lede + .about-p{grid-row:4}
  #about .about-strip p.about-p{grid-column:2;margin-top:10px;max-width:none}
  #about .about-strip p.lede{margin-bottom:0;max-width:none}
  #about .about-strip .about-p ~ .about-p{grid-row:5}
  #about .about-links{grid-column:2;grid-row:6;margin-top:clamp(12px,2vh,24px)}
  #about .about-photo{grid-column:1;grid-row:3/7;aspect-ratio:auto;height:100%;min-height:260px;align-self:stretch;margin:0}
  #about .about-photo img{width:100%;height:100%;object-fit:cover}
  #about .about-cred{grid-column:1/-1;grid-row:7;grid-template-columns:minmax(0,1.4fr) auto;align-items:center;gap:32px;margin-top:clamp(20px,3.5vh,40px);padding-top:clamp(14px,2.4vh,24px)}
  #about .about-iso{flex-wrap:nowrap;justify-content:flex-end;gap:12px 18px}
  #about .iso-badge img{height:clamp(40px,6vh,56px)}
  #about .about-cred .creds li::before{width:40px;height:40px}
}

/* Wide screens: "More about us" sits beside the heading (the heading's second line leaves the right side free),
 * which saves a full row so the section fits on 1280x720 and similar laptop screens. */
@media (min-width:1200px){
  #about .about-links{grid-column:1/-1;grid-row:2;justify-self:end;align-self:end;margin:0 0 clamp(14px,2.4vh,32px)}
  #about .about-photo{grid-row:3/6}
  #about .about-strip p.lede,#about .about-strip p.about-p{line-height:1.55}
}

/* Desktop: the photo fills the height set by the copy instead of pushing the rows taller with its own ratio. */
@media (min-width:981px){
  #about .about-photo{position:relative;height:auto;min-height:240px}
  #about .about-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 62%}
}

/* Track record (white) now sits directly above this section, so use the site's light grey band to keep the
 * alternation (white / grey / dark) the rest of the page follows. */
#about.band{background:var(--grey-l)}

/* Desktop: the photo must never set the row heights (that spread the paragraphs apart on tall screens).
 * height:0 + min-height:100% makes it take exactly the height of the copy beside it. */
@media (min-width:981px){
  #about .about-photo{height:0;min-height:100%}
  #about .about-strip{align-content:start}
}
