/* Branch-separated team directory. All portraits retain the supplied image pixels. */
.team-directory {
  padding-block: 84px 72px;
}
.team-directory .team-directory-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 64px;
  padding: 0;
  margin-bottom: 48px;
}
.team-directory-intro h2 {
  margin-top: 18px;
}
.team-directory-copy {
  max-width: 355px;
  padding-bottom: 4px;
}
.team-directory-copy > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}
.team-directory-copy .text-link {
  margin-top: 22px;
}
.team-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}
.team-branch {
  min-width: 0;
}
.team-branch-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 2px solid var(--blue);
  padding-block: 19px 24px;
}
.team-branch-heading .icon {
  color: var(--blue);
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.team-branch-heading h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.3px;
}
.team-members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.team-person {
  min-width: 0;
}
.team-photo {
  aspect-ratio: 4 / 5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .25), transparent 70%),
    var(--green, #B0D892);
}
/* Quiet woven texture and contour lines stay behind the original portraits. */
.team-photo::before,
.team-photo::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.team-photo::before {
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(37, 115, 181, .04) 0 .5px, transparent .5px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 .5px, transparent .5px 3px);
}
.team-photo::after {
  width: 100%;
  height: 80%;
  top: -24%;
  right: -62%;
  border: 1px solid rgba(37, 115, 181, .18);
  border-radius: 50%;
  outline: 1px solid rgba(37, 115, 181, .12);
  outline-offset: 20px;
}
.team-photo img {
  display: block;
  position: absolute;
  z-index: 1;
  max-width: none;
  width: var(--portrait-width, 100%);
  height: auto;
  left: var(--portrait-left, 50%);
  top: var(--portrait-top, 0%);
  transform: translateX(-50%);
}
.team-person--faula .team-photo img,
.team-person--novin .team-photo img {
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  mask-mode: alpha;
}
.team-person--faula .team-photo img {
  -webkit-mask-image: url("assets/faula-subject-mask.svg");
  mask-image: url("assets/faula-subject-mask.svg");
}
.team-person--novin .team-photo img {
  -webkit-mask-image: url("assets/novin-subject-mask.svg");
  mask-image: url("assets/novin-subject-mask.svg");
}
/* Source-specific optical crops align eye level and head-to-chest framing.
   These percentages scale with the shared 4:5 frame on every breakpoint. */
.team-person--faula {
  --portrait-width: 115%;
  --portrait-left: 50%;
  --portrait-top: -.6%;
}
.team-person--novin {
  --portrait-width: 125%;
  --portrait-left: 50%;
  --portrait-top: -6.2%;
}
.team-person--ari {
  --portrait-width: 180%;
  --portrait-left: 52%;
  --portrait-top: 12.5%;
}
.team-person--selia {
  --portrait-width: 112%;
  --portrait-left: 40%;
  --portrait-top: 9.7%;
}
.team-person-label {
  padding: 21px 0 0;
}
.team-person-label h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.5px;
}
.team-person-label h4 span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: 5px;
}
.team-person-label p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
}
.branch-team {
  padding-block: 70px;
  background: #edf1e4;
}
.branch-team > .shell {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}
.branch-team .branch-team-intro {
  margin-bottom: 32px;
}
.branch-team-intro h2 {
  margin-top: 16px;
}
.team-branches--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}
.team-branches--single .team-branch-heading {
  padding-bottom: 24px;
}
@media (max-width: 1100px) {
  .team-branches { gap: 30px; }
  .team-members { gap: 18px; }
  .team-person-label h4 { font-size: 20px; }
  .team-branch-heading h3 { font-size: 17px; }
}
@media (max-width: 800px) {
  .team-directory { padding-block: 64px; }
  .team-directory .team-directory-intro { display: block; margin-bottom: 35px; }
  .team-directory-intro h2 { font-size: 36px; }
  .team-directory-copy { max-width: 480px; padding: 0; margin-top: 23px; }
  .team-directory-copy > p { font-size: 14px; }
  .team-branches { grid-template-columns: 1fr; gap: 38px; }
  .team-members { gap: 22px; }
  .team-person-label h4 { font-size: 23px; }
  .team-photo { aspect-ratio: 4 / 5; }
  .team-directory-copy .text-link { font-size: 13px; }
  .branch-team { padding-block: 60px; }
  .branch-team > .shell { display: block; }
}
@media (max-width: 480px) {
  .team-members { gap: 16px; }
  .team-branch-heading { padding-block: 17px 21px; gap: 8px; }
  .team-branch-heading h3 { font-size: 16px; }
  .team-branch-heading .icon { width: 17px; height: 17px; }
  .team-person-label { padding-top: 16px; }
  .team-person-label h4 { font-size: 18px; letter-spacing: -.3px; min-height: 52px; }
  .team-person-label h4 span { font-size: 13px; margin-top: 5px; }
  .team-person-label p { font-size: 11px; margin-top: 7px; }
  .team-photo { border-radius: 9px; }
  .team-directory-intro h2 { font-size: 34px; }
}
