/* One portrait language for the company team. Original image files stay intact. */
.company-faces {
  min-width: 0;
  max-width: 100%;
}

.company-faces__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.company-faces__caption p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.company-faces__caption p:first-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.company-faces__caption span { margin-left: 9px; }

.company-faces__gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 24px;
  align-items: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: #74766f #e7e7df;
  padding: 4px 4px 22px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.company-faces__gallery::-webkit-scrollbar { height: 8px; }
.company-faces__gallery::-webkit-scrollbar-track { background: #e7e7df; }
.company-faces__gallery::-webkit-scrollbar-thumb { background: #74766f; border-radius: 4px; }
.company-faces__gallery:focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 6px;
}
.company-faces__gallery > .company-face { scroll-snap-align: start; }

.company-faces__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px 24px;
  align-items: start;
  margin-top: 38px;
}
.company-face {
  display: block;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  cursor: default;
}
.company-face[hidden] { display: none; }
.company-face:focus-visible {
  outline: 2px solid var(--red-text);
  outline-offset: 7px;
}
.company-face__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9d9d3;
}
.company-face__portrait img,
.agent-profile__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
}
.agent-profile__portrait img { filter: grayscale(1); }
.founder-editorial__frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9d9d3;
}
.founder-editorial__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-editorial__caption { max-width: 460px; }
.company-face__portrait,
.founder-editorial__frame { filter: grayscale(1); transition: filter 420ms ease; }
.company-face__identity { padding-top: 18px; }
.company-face__name {
  min-height: 2.24em;
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.company-face__role {
  min-height: 2.9em;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.company-face__department {
  margin: 18px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--red-text);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.company-face__remit {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
  .company-face:hover .company-face__portrait,
  .founder-editorial__frame:hover { filter: grayscale(0); }
}

/* A directory to read in place: names, responsibilities and areas stay visible. */
.people-intro { padding-top: 50px; padding-bottom: 40px; }
.people-intro__layout { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 50px; }
.people-intro__layout h1 { font-size: clamp(48px, 6vw, 76px); text-wrap: balance; }
.people-intro__layout .people-intro__lead { margin: 0 0 5px; font-size: 20px; max-width: 32ch; }
.faces-directory { padding-top: 0; border-top: 0; }
.faces-directory .team-controls { display: block; margin: 0; padding: 22px 0 24px; }
.team-controls__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; }
.faces-directory .team-search { display: flex; align-items: center; gap: 12px; flex: 0 1 490px; border-bottom: 1px solid var(--line); padding: 0 0 2px; }
.team-search svg { flex: none; color: var(--muted); }
.faces-directory .team-search input { min-width: 0; border: 0; background: none; padding: 10px 0; min-height: 44px; font-size: 15px; }
.faces-directory .team-search:focus-within { border-color: var(--ink); }
.faces-directory .team-search input:focus-visible { outline-offset: 2px; }
.faces-directory .team-result-count { padding: 0; font-size: 12px; }
.team-areas { display: flex; flex-wrap: wrap; gap: 8px; }
.team-area { display: inline-flex; gap: 14px; align-items: center; justify-content: space-between; border: 1px solid transparent; border-radius: 4px; padding: 10px 14px; min-height: 44px; background: #e9e9e2; color: var(--ink); font-size: 12px; line-height: 1.5; transition: background-color 160ms ease, color 160ms ease; }
.team-area span { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 10px; opacity: .6; }
.team-area:hover { background: #dedfd6; }
.team-area[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.team-area:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; }
.company-faces--related .company-faces__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .company-faces__grid,
  .company-faces--related .company-faces__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .people-intro__layout { grid-template-columns: 1fr; gap: 24px; }
  .people-intro__layout .people-intro__lead { font-size: 18px; max-width: 40ch; }
  .faces-directory .team-controls { padding-top: 16px; }
  .team-controls__top { gap: 16px; }
  .faces-directory .team-search input { font-size: 16px; }
  .team-area { font-size: 11px; padding: 9px 11px; gap: 10px; }
  .company-faces__grid,
  .company-faces--related .company-faces__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 22px; }
  .company-faces__gallery { grid-auto-columns: 220px; gap: 20px; }
  .company-face__name { font-size: 23px; }
  .company-faces__caption { align-items: start; flex-direction: column; gap: 5px; padding-bottom: 16px; }
}
@media (max-width: 520px) {
  .company-faces__grid,
  .company-faces--related .company-faces__grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .company-faces__grid .company-face__name { min-height: 0; }
  .company-faces__grid .company-face__role { min-height: 0; }
  .company-faces__grid .company-face__remit { font-size: 14px; }
  .company-faces__grid .company-face { width: 100%; max-width: 340px; margin-inline: auto; }
  .founder-editorial__frame { max-width: 340px; }
  .team-areas { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .company-face__portrait,
  .founder-editorial__frame,
  .team-area { transition: none; }
  .company-faces__gallery { scroll-snap-type: none; }
}
