/* Work page: split index. Detail panel left (sticky, 50%), filters and list right. */
.wk {
  --navh: 84px;
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--ink);
}
.wk__list {
  min-width: 0;
}

/* Filters */
.wf {
  position: sticky;
  top: var(--navh);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 0;
  background: var(--page);
  border-bottom: 1px solid var(--ink-16);
}
.wf__title {
  margin-right: 6px;
  font-size: 11px;
  color: var(--ink-62);
}
.wf__dd {
  position: relative;
}
.wf__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--ink-16);
  background: var(--page);
  font: 400 14px/1.2 var(--ui);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .25s var(--e);
}
.wf__btn:hover,
.wf__btn[aria-expanded="true"] {
  border-color: var(--ink);
}
.wf__btn i {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s var(--e-out);
}
.wf__btn[aria-expanded="true"] i {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.wf__n:empty {
  display: none;
}
.wf__n {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 9px;
  background: var(--red);
  font: 500 10px/14px var(--ui);
  color: #fff;
  text-align: center;
}
.wf__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  width: max-content;
  min-width: 240px;
  max-width: min(380px, 86vw);
  max-height: 60vh;
  overflow: auto;
  padding: 8px 0;
  background: var(--page);
  border: 1px solid var(--ink);
  box-shadow: 0 18px 40px rgba(26, 26, 28, .12);
}
.wf__opt {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 16px;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.wf__opt:hover {
  background: var(--page-2);
}
.wf__opt input {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--ink-hair);
  background: var(--page);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.wf__opt input::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: scale(0);
  transition: transform .2s var(--e-out);
}
.wf__opt input:checked {
  border-color: var(--red);
}
.wf__opt input:checked::after {
  transform: scale(1);
}
.wf__opt sup {
  font-size: 11px;
  color: var(--ink-62);
  font-variant-numeric: tabular-nums;
}
.wf__opt.is-off {
  opacity: .35;
  cursor: default;
}
.wf__opt.is-off input {
  cursor: default;
}
.wf__btn:focus-visible,
.wf__opt input:focus-visible,
.wf__clear:focus-visible,
.wx__row:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.wf__status {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-left: auto;
}
.wf__clear {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  font: 500 11px/1 var(--ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  cursor: pointer;
}
.wf__empty {
  margin: 40px 0 0;
  font-size: 18px;
  color: var(--ink-80);
}
.wf__empty .alink {
  margin-left: 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: var(--red);
}

/* List */
.wk .wx__head,
.wk .wx__row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.1fr) minmax(0, .62fr) minmax(0, .78fr);
  column-gap: clamp(12px, 1.4vw, 24px);
  align-items: baseline;
}
.wk .wx__head {
  padding: 14px 10px;
  border-bottom: 1px solid var(--ink-16);
}
.wk .wx__head .sys {
  font-size: 11px;
  color: var(--ink-62);
}
.wr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wr {
  scroll-margin-top: calc(var(--navh) + 72px);
  border-bottom: 1px solid var(--ink-16);
}
.wr[hidden] {
  display: none;
}
.wk .wx__row {
  appearance: none;
  width: 100%;
  padding: 16px 10px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: none;
}
.wk .wx__row:hover .wx__name,
.wk .wx__name {
  transform: none;
  transition: none;
}
.wk .wx__name {
  font-size: clamp(20px, 1.7vw, 28px);
}
.wk .wx__field,
.wk .wx__sec,
.wk .wx__mk {
  font-size: 13px;
  line-height: 1.45;
}
.wr.is-on .wx__row {
  background: var(--page-2);
}
.wr.is-on .wx__name {
  color: var(--red);
}
.wx__parent {
  display: block;
  margin-bottom: 4px;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-62);
}

/* Detail (lives in each row; shown inline on mobile, mirrored into the panel on desktop) */
.wd__bar {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--ink);
}
.wd__frame {
  aspect-ratio: 16 / 9;
  margin-bottom: 26px;
}
.wd__parent {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-62);
}
.wd__name {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 3.4vw, 60px);
  line-height: 1;
  letter-spacing: -.015em;
}
.cs__h1 {
  margin: 0 0 22px;
  max-width: 34ch;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.25;
  color: var(--red);
}
.wd__lead {
  margin: 0 0 16px;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.5;
}
.wd__body {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-80);
}
.cs__word.is-long {
  font-size: clamp(26px, 2.6vw, 44px);
  line-height: 1.1;
  max-width: 82%;
}
.cs__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 16px;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--ink-hair);
}
.cs__meta dt {
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--ink-62);
}
.cs__meta dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Scope of Work bullets: dots */
.wk .cs__svc li {
  padding-left: 14px;
}
.wk .cs__svc li::before {
  top: .58em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

/* Desktop: two halves */
@media (min-width:1025px) {
  .wk {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .wk__panel {
    position: sticky;
    top: var(--navh);
    max-height: calc(100vh - var(--navh));
    overflow-y: auto;
    padding: 20px clamp(28px, 3vw, 56px) 24px var(--gut);
    border-right: 1px solid var(--ink-16);
    scrollbar-width: thin;
  }
  .wk__list {
    padding: 0 var(--gut) 0 clamp(28px, 3vw, 56px);
  }
  .wk__panel .cs__meta,
  .wk__panel .wd__bar {
    display: none;
  }
  .wk__panel .wd__frame {
    --ih: calc(clamp(260px, 44vh, 480px) * var(--ki, 1));
    aspect-ratio: 4 / 5;
    height: var(--ih);
    width: calc(var(--ih) * .8);
    margin-bottom: calc(18px * var(--k));
  }
  .wk__panel .cs__svc ul {
    columns: 2;
    column-gap: 18px;
  }
  /* One fixed size for every card (text and image), chosen so the longest card fits a 1440x900 screen */
  .wk__panel {
    --k: .85;
    --ki: .72;
  }
  .wk__panel .cs__logo {
    height: calc(var(--lh, 80px) * .7 * var(--k));
  }
  .wk__panel .cs__word {
    font-size: clamp(28px, 2.6vw, 44px);
  }
  .wk__panel .cs__word.is-long {
    font-size: clamp(22px, 2vw, 34px);
  }
  .wk__panel .wd__parent {
    margin-bottom: 6px;
  }
  .wk__panel .wd__name {
    margin-bottom: 8px;
    font-size: calc(clamp(30px, 2.6vw, 44px) * var(--k));
  }
  .wk__panel .cs__h1 {
    margin-bottom: 14px;
    font-size: calc(clamp(16px, 1.2vw, 20px) * var(--k));
  }
  .wk__panel .wd__lead {
    margin-bottom: 10px;
    font-size: calc(clamp(14px, 1vw, 16px) * var(--k));
    line-height: 1.5;
  }
  .wk__panel .wd__body {
    margin-bottom: 16px;
    font-size: calc(13.5px * var(--k));
    line-height: 1.55;
  }
  .wk__panel .cs__svc {
    padding-top: 12px;
  }
  .wk__panel .cs__svc li {
    padding-bottom: calc(6px * var(--k));
    font-size: calc(13.5px * var(--k));
  }
  .wr .wd {
    display: none;
  }
}

/* Mobile and tablet: list only, details open under the row */
@media (max-width:1024px) {
  .wk__panel {
    display: none;
  }
  .wr .wd {
    display: none;
    padding: 8px 0 36px;
  }
  .wr.is-open .wd {
    display: block;
  }
  .wr .wd__bar .cs__n,
  .wr .wd__parent,
  .wr .wd__name {
    display: none;
  }
  .wr.is-open .wx__name {
    color: var(--red);
  }
  .wf {
    position: sticky;
    top: 72px;
  }
  .wk .wx__head,
  .wk .wx__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .5fr) minmax(0, .7fr);
  }
  .wk .wx__field {
    display: none;
  }
}
@media (max-width:600px) {
  .wk .wx__head,
  .wk .wx__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .wk .wx__mk,
  .wk .wx__sec {
    display: none;
  }
  .wf__status {
    width: 100%;
    margin-left: 0;
  }
  .wf__menu {
    position: fixed;
    top: auto;
    left: var(--gut);
    right: var(--gut);
    max-width: none;
  }
  .cs__meta {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }
}

/* Compact one-line list so all projects fit beside the panel */
.wk .wf {
  padding: 10px 0;
}
.wk .wx__head {
  padding: 6px 10px;
}
.wk .wx__head,
.wk .wx__row {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .6fr) minmax(0, .7fr);
  align-items: center;
}
.wr {
  border-bottom-color: var(--ink-08);
}
.wk .wx__row {
  padding: 2.5px 10px;
}
.wk .wx__name,
.wk .wx__field,
.wk .wx__sec,
.wk .wx__mk {
  font-family: var(--mono, monospace);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wk .wx__name {
  color: var(--head, #fff);
}
.wk .wx__field,
.wk .wx__sec,
.wk .wx__mk {
  color: var(--ink-62);
}
.wr.is-on .wx__field,
.wr.is-on .wx__sec,
.wr.is-on .wx__mk {
  color: var(--ink);
}
.wf__n {
  color: #000;
}
.wf__menu {
  box-shadow: none;
}

/* Dual branding: the PIF mark beside the client's, separated by space alone */
.cs__duo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 36px);
  max-width: 80%;
}
.cs__duo .cs__logo {
  max-width: none;
}

/* No sector column: project, field, location */
.wk .wx__sec {
  display: none !important;
}
.wk .wx__head,
.wk .wx__row {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .7fr);
}
@media (max-width: 980px) {
  .wk .wx__head,
  .wk .wx__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  }
}
@media (max-width: 620px) {
  .wk .wx__head,
  .wk .wx__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Logos share one optical size: widths are set per logo so each covers the same area, centred in the frame */
.wd__frame .cs__logo,
.wk__panel .wd__frame .cs__logo {
  height: auto !important;
  max-width: none;
  max-height: 44%;
  object-fit: contain;
}
.wd__frame .cs__duo {
  width: 92%;
  max-width: none;
  justify-content: center;
  gap: 7%;
}
.wd__frame .cs__duo .cs__logo {
  max-height: none;
}

/* When the frame shows the client's logo, the title repeats it: keep it for screen readers only */
.wd:has(.wd__frame .cs__logo) .wd__name,
.wk__panel:has(.wd__frame .cs__logo) .wd__name {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Logos supplied dark on white: invert so they read white, the white ground turning black into the frame */
.wd__frame .cs__logo.is-inv {
  filter: grayscale(1) invert(1) contrast(2.2) brightness(1.15) !important;
}
.wd__frame .cs__logo.is-inv {
  mix-blend-mode: screen;
}

/* Project and its city in one cell: name bold, city beneath. The separate location column is gone. */
.wk .wx__mk {
  display: none !important;
}
.wk .wx__name {
  white-space: normal;
  overflow: visible;
}
.wk .wx__name b {
  display: block;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wk .wx__loc {
  display: block;
  color: var(--ink-62);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wr.is-on .wx__loc {
  color: var(--ink);
}
.wk .wx__row {
  padding-top: 7px;
  padding-bottom: 7px;
}
.wk .wx__head,
.wk .wx__row {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
@media (max-width: 980px) {
  .wk .wx__head,
  .wk .wx__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .wk .wx__field {
    display: none;
  }
}

/* Field cell mirrors the project cell: main field on top, any others beneath. No "+1" counts. */
.wk .wx__field {
  white-space: normal;
  overflow: visible;
  align-self: start;
}
.wk .wx__field b {
  display: block;
  font-weight: 400;
  color: var(--ink-80, rgba(255,255,255,.8));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wk .wx__more {
  display: block;
  color: var(--ink-62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wk .wx__name {
  align-self: start;
}
.wr.is-on .wx__field b,
.wr.is-on .wx__more {
  color: var(--ink);
}

/* Every panel: the frame says who (logo, or name where there is none), the title says what. */
.wd .wd__name,
.wk__panel .wd__name {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Title: the service in italic, who it was for in regular */
.cs__h1,
.wk__panel .cs__h1 {
  font-style: normal;
}
.cs__h1 i {
  font-style: italic;
}

/* Article-style case panel (DIFC first): centred logo, italic kicker, uppercase headline, a large lead,
   an uppercase pull line, a smaller body and the scope as an italic two-column list */
.wd--article .wd__frame { margin-inline: auto; }
.wd--article .wa__kicker {
  margin: clamp(22px, 2.4vw, 34px) 0 6px;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(17px, 1.3vw, 20px);
  color: #b4b4af;
  text-align: center;
}
.wd--article .wa__head {
  margin: 0 0 clamp(20px, 2.2vw, 30px);
  font-style: normal;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.15;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}
.wd--article .wa__lead {
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.38;
  color: #ededea;
}
.wd--article .wa__pull {
  margin: clamp(18px, 2vw, 26px) 0;
  font-family: var(--display);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ededea;
}
.wd--article .wa__body {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: #a3a39e;
}
.wd--article .cs__svc li {
  font-style: italic;
}
/* Article panel: everything centred on one axis */
.wd--article,
.wd--article .wa__head,
.wd--article .wa__lead,
.wd--article .wa__pull,
.wd--article .wa__body {
  text-align: center;
}
.wd--article .wa__head,
.wd--article .wa__lead,
.wd--article .wa__body {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}
.wd--article .wa__head { max-width: none; }
.wd--article .cs__svc {
  display: block;
  text-align: center;
}
.wd--article .cs__svc .sys {
  display: block;
  margin-bottom: 12px;
}
.wd--article .cs__svc ul {
  display: inline-block;
  columns: 2;
  column-gap: 40px;
  text-align: center;
}
.wd--article .cs__svc li {
  padding-left: 0;
}
.wd--article .cs__svc li::before {
  display: none;
}

/* Work page header: the three words large on the left, the two paragraphs beside them on the right,
   their last lines meeting the baseline of "Discipline." */
.page-head.wh {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 120px);
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 110px);
}
.wh > .sec__head { grid-column: 1 / -1; }
.wh .page-head__title {
  margin: 0;
  font-size: clamp(64px, 8.4vw, 148px);
  line-height: .92;
  letter-spacing: -.015em;
}
.wh__copy {
  max-width: 34em;
  padding-bottom: .6em;
}
.wh__copy .page-head__lede {
  margin: 0;
  max-width: none;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.62;
  color: #c4c4bf;
}
.wh__copy .page-head__lede + .page-head__lede {
  margin-top: 1.1em;
}
@media (max-width: 1024px) {
  .page-head.wh { grid-template-columns: 1fr; row-gap: 28px; }
  .wh__copy { padding-bottom: 0; }
}

/* Phones only: the Work page opens on "Imagination. Clarity. Discipline." alone, centred in the first screen;
   the two paragraphs follow as you scroll */
@media (max-width: 1024px) {
  .page-head.wh { padding-top: 0; }
  /* the label and page padding above take 188px: a box of the screen height less twice that centres the headline
     on the screen, and the first paragraph starts straight under it, already in view */
  .page-head.wh .page-head__title {
    min-height: calc(100svh - 376px);
    padding-bottom: 0;
    box-sizing: border-box;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .page-head.wh .wh__copy { margin-top: 0; }
}
@media (max-width: 1024px) {
  /* hidden on arrival; the first scroll brings it up gently (js/mobile.js adds .is-in) */
  .page-head.wh .wh__copy { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1s cubic-bezier(.25, .6, .3, 1); }
  .page-head.wh .wh__copy.is-in { opacity: 1; transform: none; }
}
@media (max-width: 1024px) {
  /* a filter menu opens just under the pinned filter bar; the page below dims, the bar itself stays clear and usable */
  .wf:has(.wf__btn[aria-expanded="true"]) { z-index: 1000; }
  .wf:has(.wf__btn[aria-expanded="true"])::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: var(--wfb, 134px);
    bottom: 0;
    z-index: 1;
    background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    animation: wf-dim .5s ease both;
  }
  .wf__menu {
    position: fixed !important;
    top: calc(var(--wfb, 134px) + 8px) !important;
    left: 16px !important;
    right: 16px !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100svh - var(--wfb, 134px) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 2;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 12px 18px !important;
    background: #0e0e0e !important;
    box-shadow: none !important;
    transform: none;
    animation: wf-pop .7s cubic-bezier(.22, .61, .36, 1) both;
  }
}
@keyframes wf-pop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
@keyframes wf-dim {
  from { opacity: 0; }
  to { opacity: 1; }
}



/* Big desktops (8 Nov): the headline column fits "Imagination." at full size so it is never cut off */
@media (min-width: 1600px) {
  .page-head.wh { grid-template-columns: max-content minmax(0, 1fr); }
}
