/* Scoped styles; the original Personel block is unchanged. */
.ethos-people {
  width: 100%;
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, .25);
  background: #efefe4;
  color: #000;
  font-family: ABCWhyte, Arial, sans-serif;
}
.ethos-people *, .ethos-profile * { box-sizing: border-box; }
.ethos-people .ethos-people__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 80px);
}
.ethos-people .ethos-people__heading {
  margin: 0 0 clamp(32px, 4vw, 56px);
  padding: 0;
  font: 400 clamp(36px, 4.5vw, 72px)/1.12 VictorSerif, Georgia, serif;
  color: #000;
  overflow-wrap: anywhere;
}
.ethos-people .ethos-people__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 28px; }
.ethos-people .ethos-people__person { min-width: 0; }
.ethos-people .ethos-people__photo, .ethos-people .ethos-people__placeholder {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  border: 0;
  border-radius: 0;
  margin: 0 0 24px;
}
.ethos-people .ethos-people__placeholder { display: grid; place-items: center; background: #deded5; font-size: 18px; }
.ethos-people .ethos-people__name {
  font: 400 clamp(27px, 2.3vw, 34px)/1.2 VictorSerif, Georgia, serif;
  color: #000;
  margin: 0 0 8px;
  padding: 0;
  overflow-wrap: anywhere;
}
.ethos-people .ethos-people__role { font-size: 18px; line-height: 1.5; padding: 0; margin: 0 0 8px; color: #000; }
.ethos-people .ethos-people__contacts, .ethos-profile .ethos-profile__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ethos-people .ethos-people__contacts a, .ethos-profile .ethos-profile__contacts a {
  color: #000;
  font: 400 17px/1.6 ABCWhyte, Arial, sans-serif;
  text-decoration: none;
  padding: 0;
  margin: 0;
  overflow-wrap: anywhere;
  max-width: 100%;
  opacity: 1;
}
.ethos-people .ethos-people__contacts a:hover, .ethos-profile .ethos-profile__contacts a:hover { text-decoration: underline; opacity: 1; }
.ethos-people .ethos-people__open {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 10px 24px;
  min-height: 44px;
  background: transparent;
  border: 1px solid #000;
  border-radius: 0;
  color: #000;
  font: 400 17px/1.4 ABCWhyte, Arial, sans-serif;
  cursor: pointer;
}
.ethos-people .ethos-people__open[hidden] { display: none; }
.ethos-people .ethos-people__open:hover { background: #404040; border-color: #404040; color: #fff; }
.ethos-people button:focus-visible, .ethos-people a:focus-visible, .ethos-profile button:focus-visible, .ethos-profile a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.ethos-profile:not([open]) { display: none; }
.ethos-profile[open] {
  display: block;
  position: fixed;
  inset: 0;
  width: calc(100% - 32px);
  max-width: 1080px;
  height: fit-content;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: #000;
  background: #efefe4;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .25);
  font-family: ABCWhyte, Arial, sans-serif;
}
.ethos-profile::backdrop {
  background: rgba(4, 21, 27, .64);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ethos-profile .ethos-profile__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.ethos-profile .ethos-profile__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #efefe4;
  color: #000;
  font: 400 32px/1 Arial, sans-serif;
  cursor: pointer;
}
.ethos-profile .ethos-profile__close:hover { background: #000; color: #fff; }
.ethos-profile .ethos-profile__portrait { min-width: 0; background: #deded5; }
.ethos-profile .ethos-profile__photo {
  display: block; width: 100%; height: auto; max-height: 440px;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  filter: grayscale(1); border: 0; border-radius: 0;
}
.ethos-profile .ethos-profile__content { padding: 56px 24px 32px; min-width: 0; }
.ethos-profile .ethos-profile__brand { color: #000; font: 400 12px/1.5 ABCWhyte, Arial, sans-serif; letter-spacing: .15em; padding: 0; margin: 0 0 28px; }
.ethos-profile .ethos-profile__name { color: #000; font: 400 clamp(32px, 4vw, 48px)/1.12 VictorSerif, Georgia, serif; margin: 0 0 12px; padding: 0; overflow-wrap: anywhere; }
.ethos-profile .ethos-profile__role { color: #000; font-size: 19px; line-height: 1.5; margin: 0 0 10px; padding: 0; }
.ethos-profile .ethos-profile__bio { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(0,0,0,.22); color: #000; font: 400 18px/1.65 ABCWhyte, Arial, sans-serif; overflow-wrap: anywhere; }
.ethos-profile .ethos-profile__bio p { color: inherit; font: inherit; padding: 0; margin: 0 0 16px; }
.ethos-profile .ethos-profile__bio a { color: #000; text-decoration: underline; }
.ethos-profile .ethos-profile__bio ul, .ethos-profile .ethos-profile__bio ol { padding-left: 24px; margin: 0 0 16px; }
.ethos-profile .ethos-profile__bio ul { list-style: disc; }
.ethos-profile .ethos-profile__bio ol { list-style: decimal; }
.ethos-profile .ethos-profile__bio img { max-width: 100%; height: auto; }
@media (min-width: 640px) { .ethos-people .ethos-people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ethos-people .ethos-people__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) {
  .ethos-profile .ethos-profile__panel { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .ethos-profile .ethos-profile__portrait { position: relative; min-height: 480px; }
  .ethos-profile .ethos-profile__photo {
    position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto;
  }
  .ethos-profile .ethos-profile__content { padding: 64px 40px 40px; }
  .ethos-profile .ethos-profile__content:only-of-type { grid-column: 1 / -1; }
}

/* Image trigger has no button decoration; original image stays visible without JS. */
.ethos-people .ethos-people__image-open {
  display: block; width: 100%; padding: 0; margin: 0 0 24px;
  border: 0; border-radius: 0; background: transparent; color: inherit;
  line-height: 0; cursor: pointer; opacity: 1; appearance: none;
}
.ethos-people .ethos-people__image-open:disabled { cursor: default; opacity: 1; }
.ethos-people .ethos-people__image-open .ethos-people__photo { margin: 0; }
.ethos-profile .ethos-profile__contacts .ethos-profile__linkedin {
  display: inline-flex; align-items: center; justify-content: flex-start;
  width: 44px; height: 44px; padding: 0; margin: 0; line-height: 1;
}
.ethos-profile .ethos-profile__linkedin svg { display: block; width: 24px; height: 24px; }
.ethos-profile .ethos-profile__bio strong,
.ethos-profile .ethos-profile__bio b { font-weight: 700; font-synthesis: weight; }

/* Zero-height toolbar overlays the card without moving its image or text. */
.ethos-profile .ethos-profile__toolbar {
  position: relative;
  height: 0;
  z-index: 3;
  overflow: visible;
}
@media (max-width: 759px) {
  .ethos-profile .ethos-profile__toolbar { position: sticky; top: 0; }
}
