.home-careers {
  padding-block: clamp(35px, 5vw, 64px);
  border-bottom: 1px solid #e0e0d7;
  background: #f5f3ef;
  scroll-margin-top: 105px;
}
.home-careers-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 22px;
  margin-bottom: 21px;
}
.home-careers-header .eyebrow { margin-bottom: 12px; color: #246348; }
.home-careers-header h2 { font-size: clamp(32px, 4.2vw, 56px); text-transform: none; }
.home-careers-header .button, .home-people .button { gap: 12px; }
.home-careers-header h2 span { color: #00884a; }

.home-people { background: #fff; }
.home-people-header { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.home-people-controls { display: flex; gap: 8px; }
.home-people-controls[hidden] { display: none; }
.home-people-controls button, .home-profile-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c5d8cb;
  border-radius: 50px;
  background: #fff;
  color: #115238;
  font-size: .86rem;
  font-weight: 700;
}
.home-people-controls button:hover, .home-profile-close:hover { background: #e7f6eb; border-color: #17845a; }
.home-people-grid {
  position: relative;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 3.35);
  gap: 18px;
  align-items: stretch;
  margin: 20px 0 19px;
  padding: 4px 2px 11px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #85b39a transparent;
}
.home-people-grid:focus-visible { outline: 2px solid #08713e; outline-offset: 3px; }
.home-person {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d8e2d9;
  border-radius: 12px;
  box-shadow: 0 3px 10px #0c2e1a0d;
}
.home-person-portrait { position: relative; overflow: hidden; aspect-ratio: 4 / 3.65; background: #14251c; }
.home-person-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--portrait-position, center);
  filter: saturate(.72) contrast(1.04);
  transform: scale(var(--portrait-scale, 1));
  transform-origin: 50% var(--portrait-origin, 31%);
}
.home-person--sarah { --portrait-scale: 1.18; }
.home-person--anthony { --portrait-scale: 1.21; --portrait-origin: 70%; }
.home-person--mohid { --portrait-position: 58% center; }
.home-person-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(12px, 1.55vw, 20px); }
.home-people .home-person-copy h3 { margin-bottom: 4px; line-height: 1.15; }
.home-people .home-person-role { margin-bottom: 8px; color: #146743; font-size: .82rem; font-weight: 700; line-height: 1.3; }
.home-people .home-person-expertise { margin: 0 0 10px; color: #42584c; font-size: .85rem; line-height: 1.4; }
.home-person-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid #dce7dd;
}
.home-people .home-profile-trigger, .home-people .home-person-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #08663a;
  font-size: .85rem;
  text-decoration: none;
}
.home-people .home-person-linkedin { justify-content: center; width: 44px; border-radius: 9px; }
.home-people .home-person-linkedin:hover, .home-people .home-profile-trigger:hover { color: #00432a; }
.home-people .home-person-linkedin:hover { background: #e7f6eb; }
.home-people .home-profile-trigger:hover { text-decoration: underline; }
.home-profile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 520px);
  height: 100dvh;
  max-width: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  background: #f7faf7;
  color: #12251b;
  box-shadow: -14px 0 60px #06170e35;
}
.home-profile-panel::backdrop { background: #0818109c; }
.home-profile-panel form { position: sticky; top: 0; z-index: 1; height: 0; display: flex; justify-content: flex-end; }
.home-profile-close { margin: 12px; font-size: 1.5rem; line-height: 1; }
.home-profile-photo { background: #14251c; }
.home-profile-photo img { width: 100%; height: clamp(180px, 43dvh, 350px); object-fit: cover; object-position: center 38%; }
.home-profile-content { padding: clamp(22px, 5vw, 39px); }
.home-profile-content .eyebrow { margin-bottom: 12px; }
.home-profile-content h3 { margin: 0 0 4px; font-size: clamp(29px, 6vw, 44px); line-height: 1.05; letter-spacing: -.04em; }
.home-people .home-profile-role { color: #146743; font-weight: 700; }
.home-people .home-profile-biography p { color: #344d40; }
.home-profile-links { display: flex; gap: 13px; }
@keyframes home-profile-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes home-profile-shade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .home-person-portrait img { transition: transform .3s ease; }
  .home-person { transition: border-color .25s ease, box-shadow .25s ease; }
  .home-profile-panel[open] { animation: home-profile-enter .3s cubic-bezier(.22,.72,.27,1); }
  .home-profile-panel[open]::backdrop { animation: home-profile-shade .26s ease-out; }
}
@media (hover: hover) {
  .home-person:hover { border-color: #57a87e; box-shadow: 0 3px 10px #0c2e1a24; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-person:hover .home-person-portrait img { transform: scale(calc(var(--portrait-scale, 1) + .04)); }
}
@media (max-width: 865px) {
  .home-people-grid { grid-auto-columns: 41%; }
}
@media (max-width: 580px) {
  .home-people-grid { grid-auto-columns: 79%; gap: 12px; }
}

.home-person-monogram {
  display: grid;
  place-items: center;
  height: 100%;
  background: radial-gradient(ellipse at 75% 20%, #29543e, #142d22 72%);
  color: #b5f6cb;
  font-size: clamp(47px, 6vw, 88px);
  font-weight: 750;
  letter-spacing: -.07em;
}
.home-profile-photo .home-person-monogram { height: clamp(180px, 43dvh, 350px); }
