/* About us. Built from the shared shell: .sheet, h2.t, .lead, the closing band. The hero and the blocks below are this page's own. */
:root{--g12:24px;--hgap:clamp(40px,5vw,64px)}
@media (max-width:1100px){ :root{--g12:20px} }

/* hero: the words on the left (columns 1-5, the headline may run into 6), a picture on the right (7-12).
   The picture is one of the site's photographs with a glimpse of Diwan on it: a summary in Arabic, English around it.
   The words sit centred against the picture. */
.abhero{--abh-top:clamp(32px,4.4vw,64px);padding:calc(68px + var(--abh-top)) 0 clamp(24px,3vw,40px)}
.abh-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--g12);align-items:stretch}
.abh-txt{grid-column:1/7;display:flex;flex-direction:column;justify-content:center;gap:40px;min-width:0;container-type:inline-size}
.abhero h1{font-size:clamp(38px,4.6vw,66px);letter-spacing:-0.035em;line-height:1.04;max-width:none}
@media (min-width:901px){ .abhero h1{font-size:min(clamp(38px,4.6vw,66px),10.2cqi)} .abhero h1 .l{white-space:nowrap} }   /* three lines as written; the size gives way before a line would leave the column */
.abhero .lead{margin-top:24px;max-width:none;width:calc((100% + var(--g12)) * 5 / 6 - var(--g12));text-wrap:pretty}
.abh-facts{margin:0;width:calc((100% + var(--g12)) * 5 / 6 - var(--g12))}
.abh-facts div{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);column-gap:var(--g12);padding:14px 0 15px;border-top:1px solid var(--line)}
.abh-facts div:last-child{border-bottom:1px solid var(--line)}
.abh-facts dt{font-size:16px;font-weight:500;letter-spacing:-0.01em;line-height:1.35}
.abh-facts dd{margin:0;font-size:15px;line-height:1.4;color:var(--stone);text-wrap:pretty}

.abh-vis{grid-column:7/13;position:relative;min-height:clamp(440px,calc(100svh - 68px - var(--abh-top) - clamp(24px,3vw,40px)),760px);border-radius:20px;overflow:hidden;background:#2A2D2B}
.abh-pic{position:absolute;inset:0}
.abh-pic img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 62%}
.abh-vis::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(20,23,22,.06);pointer-events:none}

/* the Diwan glimpse: a meeting summary, cut by the picture's lower edge like the product windows elsewhere */
.abh-win{position:absolute;z-index:1;left:9%;right:9%;bottom:-24px;padding-bottom:24px;background:#fff;border-radius:14px 14px 0 0;
  box-shadow:0 0 0 1px rgba(20,23,22,.06),0 24px 48px -16px rgba(5,20,14,.5);font-family:'Archivo',system-ui,sans-serif;color:#1B1B21;overflow:hidden}
.aw-bar{display:flex;align-items:center;gap:10px;height:48px;padding:0 18px;border-bottom:1px solid rgba(27,27,33,.08)}
.aw-mark{width:16px;height:16px;flex:none}
.aw-t{font-family:'IBM Plex Sans Arabic',var(--font);font-size:14px;font-weight:500}
.aw-meta{margin-left:auto;font-size:12px;color:#777680;white-space:nowrap}
.aw-tabs{display:flex;gap:18px;padding:0 18px;height:40px;align-items:stretch;font-size:12.5px;font-weight:500;color:#777680;border-bottom:1px solid rgba(27,27,33,.08);white-space:nowrap;overflow:hidden}
.aw-tabs span{display:flex;align-items:center;border-bottom:2px solid transparent;margin-bottom:-1px}
.aw-tabs .on{color:#3F51B5;border-color:#3F51B5}
.aw-body{padding:16px 18px 6px;font-family:'IBM Plex Sans Arabic',var(--font);text-align:right}
.aw-h{font-size:14px;font-weight:500;margin:0 0 8px}
.aw-body ul{list-style:none;margin:0;padding:0}
.aw-body li{position:relative;padding:7px 18px 7px 0;font-size:14px;line-height:1.5;color:#46464F;border-top:1px solid rgba(27,27,33,.06)}
.aw-body li:first-child{border-top:0}
.aw-body li::before{content:"";position:absolute;right:2px;top:15px;width:6px;height:6px;border-radius:50%;background:#3F51B5;opacity:.75}

/* what we are for: the tagline as a section head (title in 1-8, its line in 9-12 on the title's last baseline), the three pillars under it */
.ab-mission{margin-top:0;border-radius:0}
.ab-shead{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--g12);align-items:end}
.ab-shead>.rv{grid-column:1/9}
.ab-shead h2.t{max-width:none}
.ab-shead .t2{color:#858A84}
.ab-shead .lead{grid-column:9/13;margin:0;max-width:none;padding-bottom:calc(var(--h2fs) * .11);text-wrap:pretty}
@media (max-width:1180px){ .ab-shead>.rv{grid-column:1/8} .ab-shead .lead{grid-column:8/13} }
.ab-n{display:block;font-size:12px;font-weight:500;letter-spacing:.06em;color:var(--stone);font-variant-numeric:tabular-nums}
.ab-pillars{list-style:none;margin:var(--hgap) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}
.ab-pillars li{padding:20px 24px 0 0}
.ab-pillars li+li{padding-left:24px;border-left:1px solid var(--line)}
.ab-pillars b{display:block;margin-top:14px;font-weight:500;font-size:20px;letter-spacing:-0.015em}
.ab-ar{display:block;margin-top:6px;font-family:'IBM Plex Sans Arabic',var(--font);font-size:15px;color:var(--stone);text-align:left}

/* the Offices label further down keeps its small caption style */
.ab-k{margin:0 0 18px;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--stone)}

/* how we started: heading left, two short paragraphs and the facts right */
.ab-story{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,6vw,96px);align-items:start;padding-top:clamp(24px,3vw,40px)}
.ab-text p{margin:0 0 18px;max-width:58ch;font-size:clamp(17px,1.35vw,19px);line-height:1.55;color:var(--ink)}
.ab-text p+p{color:var(--stone)}
.ab-facts{margin:36px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;border-top:1px solid var(--line);padding-top:20px}
.ab-facts dt{font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--stone);margin-bottom:8px}
.ab-facts dd{margin:0;font-size:16px}

/* what we hold to: four values in parallel grammar, on the forest band */
.ab-values{list-style:none;margin:clamp(40px,5vw,64px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid rgba(237,239,234,.16)}
.ab-values li{padding:24px 24px 0 0}
.ab-values li+li{padding-left:24px;border-left:1px solid rgba(237,239,234,.16)}
.forest .ab-n{color:var(--mist)}
.ab-values h3{margin:16px 0 10px;font-size:20px;font-weight:500;letter-spacing:-0.015em;line-height:1.2}
.ab-values p{margin:0;color:var(--mist);font-size:15.5px;line-height:1.55;max-width:30ch}
.ab-proof{margin:clamp(56px,7vw,96px) 0 0;padding-top:18px;border-top:1px solid rgba(237,239,234,.16);display:flex;flex-wrap:wrap;gap:8px 24px;align-items:baseline}
.ab-proof span{font-size:14px;color:var(--mist)}
.ab-proof b{font-weight:500;font-size:16px}

/* the people: heading, one line, and the roster to come */
.ab-people{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(32px,6vw,96px);align-items:start}
.ab-people .lead{margin-top:18px;max-width:36ch}
.ab-roster{min-height:220px;border:1px dashed var(--line);border-radius:16px;display:grid;place-items:center;padding:24px;text-align:center}

/* leadership: four people, a portrait each, name, title, one line */
.ab-team{list-style:none;margin:clamp(40px,5vw,64px) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,2vw,28px)}
.ab-photo{aspect-ratio:4/5;border-radius:16px;background:var(--plate);margin-bottom:18px;overflow:hidden;position:relative}
.ab-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.ab-photo::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(20,23,22,.06);pointer-events:none}
.ab-photo span{font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--stone)}
.ab-person b{display:block;font-weight:500;font-size:20px;letter-spacing:-0.015em}
.ab-role{display:block;margin-top:4px;font-size:15px;color:var(--stone)}
.ab-person p{margin:12px 0 0;font-size:15.5px;line-height:1.5;color:var(--ink);max-width:30ch}

/* offices: one column per place, on hairlines like the pillars */
#offices{padding-top:0}
.ab-offices{list-style:none;margin:clamp(40px,5vw,64px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:48px;border-top:1px solid var(--line)}
.ab-office{position:relative;padding:20px 0 0}
.ab-office+.ab-office::before{content:"";position:absolute;left:-24px;top:0;bottom:0;border-left:1px solid var(--line)}
.ab-city{aspect-ratio:4/5;border-radius:14px;background:var(--plate);margin-bottom:20px;overflow:hidden;position:relative}
.ab-city img{display:block;width:100%;height:100%;object-fit:cover}
.ab-city::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(20,23,22,.06);pointer-events:none}
.ab-city span{font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--stone)}
.ab-office h3{margin:14px 0 2px;font-size:clamp(26px,2.6vw,36px);font-weight:500;letter-spacing:-0.025em;line-height:1.1}
.ab-country{display:block;font-size:15px;color:var(--stone)}
.ab-office p{margin:18px 0 0;font-size:17px;font-weight:500;line-height:1.4;max-width:30ch}
.ab-office address{margin-top:12px;font-style:normal;font-size:14px;color:var(--stone)}

@media (max-width:1180px) and (min-width:901px){
  .abh-txt{grid-column:1/7} .abh-vis{grid-column:7/13}
  .abhero .lead,.abh-facts{width:auto}
  .abh-facts div{grid-template-columns:1fr;row-gap:2px}
}
@media (max-width:900px){
  .abhero{padding:calc(60px + 28px) 0 8px}
  .abh-grid{grid-template-columns:1fr;row-gap:28px}
  .abh-txt{display:contents}
  .abh-txt>.rv{order:1} .abh-vis{order:2} .abh-facts{order:3}
  .abhero h1{font-size:clamp(34px,9.5vw,56px);max-width:16ch}
  .abhero .lead{width:auto;max-width:44ch;margin-top:18px}
  .abh-vis{grid-column:auto;min-height:0;aspect-ratio:5/4;border-radius:16px}
  .abh-facts{width:auto}
  .abh-win{left:6%;right:6%}
  .ab-shead{grid-template-columns:1fr;row-gap:18px}
  .ab-shead>.rv,.ab-shead .lead{grid-column:auto}
  .ab-shead .lead{padding-bottom:0;max-width:44ch}
}
@media (max-width:600px){
  .abh-vis{aspect-ratio:4/5}
  .abh-facts div{grid-template-columns:1fr;row-gap:2px;padding:13px 0 14px}
  .abh-win{left:5%;right:5%}
  .aw-bar{height:44px;padding:0 14px} .aw-tabs{padding:0 14px;gap:14px} .aw-body{padding:14px 14px 4px}
  .aw-tabs span:nth-child(4){display:none}
  .aw-body li{font-size:13px;padding:6px 16px 6px 0} .aw-body li::before{top:13px} .aw-t,.aw-h{font-size:13px}
}
@media (max-width:980px){
  .ab-pillars,.ab-values{grid-template-columns:1fr 1fr}
  .ab-pillars li:nth-child(3){grid-column:1 / -1;border-left:0;padding-left:0;border-top:1px solid var(--line);margin-top:20px}
  .ab-values li:nth-child(3){border-left:0;padding-left:0}
  .ab-values li:nth-child(n+3){border-top:1px solid rgba(237,239,234,.16);margin-top:24px}
  .ab-story,.ab-people{grid-template-columns:1fr}
  .ab-team{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ab-offices{grid-template-columns:1fr}
  .ab-office+.ab-office{border-top:1px solid var(--line);margin-top:24px}
  .ab-office+.ab-office::before{display:none}
}
@media (max-width:600px){
  .ab-pillars,.ab-values,.ab-facts{grid-template-columns:1fr}
  .ab-pillars li,.ab-pillars li+li,.ab-values li,.ab-values li+li{padding:18px 0 0;border-left:0}
  .ab-pillars li+li,.ab-values li+li{border-top:1px solid var(--line);margin-top:18px}
  .ab-values li+li{border-top-color:rgba(237,239,234,.16)}
  .ab-pillars li:nth-child(3){margin-top:18px}
}

/* office and team photos: a slight zoom inside their frame when the card is hovered */
.ab-city img,.ab-photo img{transition:transform .7s cubic-bezier(.2,0,0,1);will-change:transform}
@media (hover:hover){ .ab-office:hover .ab-city img,.ab-person:hover .ab-photo img{transform:scale(1.04)} }
@media (prefers-reduced-motion:reduce){ .ab-city img,.ab-photo img{transition:none} .ab-office:hover .ab-city img,.ab-person:hover .ab-photo img{transform:none} }
