/* About page people — open editorial layout based on the approved reference. */
.about-page img[src$="abdulelah.jpg"] { content: url("../images/team/abdulelah-cutout.png"); }
.about-page img[src$="essam.jpg"] { content: url("../images/team/essam-cutout.png"); }
.about-page img[src$="mike.jpg"] { content: url("../images/team/mike-cutout.png"); }
.about-page img[src$="craig.jpg"] { content: url("../images/team/craig-cutout.png"); }
.about-page img[src$="hisham.jpg"] { content: url("../images/team/hisham-cutout.png"); }

.about-page .team-section,
.about-page .experts-section {
  --about-gold: #ffbd3f;
  --about-mint: #a5dfe0;
  --about-coral: #f17356;
  --about-ink: #124d4b;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 12%, rgba(21, 78, 74, 0.9), transparent 34%),
    linear-gradient(128deg, #345d54 0%, #a9654d 42%, #f17356 100%) !important;
}

.about-page .team-section::before,
.about-page .experts-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 19.8%, rgba(255, 189, 63, 0.46) 20% 20.12%, transparent 20.3% 49.8%, rgba(255, 189, 63, 0.42) 50% 50.12%, transparent 50.3% 79.8%, rgba(255, 189, 63, 0.38) 80% 80.12%, transparent 80.3%),
    linear-gradient(0deg, transparent 0 32.8%, rgba(255, 189, 63, 0.42) 33% 33.12%, transparent 33.3% 65.8%, rgba(255, 189, 63, 0.4) 66% 66.12%, transparent 66.3%),
    radial-gradient(circle at 19.8% 33%, transparent 0 20%, rgba(255, 189, 63, 0.55) 20.15% 20.35%, transparent 20.5%),
    radial-gradient(circle at 80% 66%, transparent 0 24%, rgba(255, 189, 63, 0.48) 24.15% 24.35%, transparent 24.5%);
}

.about-page .team-section::after,
.about-page .experts-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 44rem;
  aspect-ratio: 1;
  inset-inline-end: -22rem;
  inset-block-end: -22rem;
  border: 1px solid rgba(165, 223, 224, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.about-page .team-section .section-heading,
.about-page .experts-section .section-heading {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto 4rem;
  text-align: center;
}

.about-page .team-section .section-heading span,
.about-page .experts-section .section-heading span {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--about-gold);
  font-weight: 700;
}

.about-page .team-section .section-heading h2,
.about-page .experts-section .section-heading h2 {
  max-width: 100%;
  margin: 0;
  color: var(--about-mint) !important;
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.about-page .team-section .profile,
.about-page .experts-section .expert-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1080px, 100%);
  min-height: 560px;
  margin: 0 auto clamp(5rem, 10vw, 9rem);
  padding: 0 !important;
  overflow: visible !important;
  color: #fff;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  direction: ltr;
}

.about-page .team-section .profile:nth-of-type(odd),
.about-page .experts-section .expert-card:nth-of-type(odd) {
  grid-template-areas: "copy photo";
}

.about-page .team-section .profile:nth-of-type(even),
.about-page .experts-section .expert-card:nth-of-type(even) {
  grid-template-areas: "photo copy";
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.45fr);
}

.about-page .portrait-frame,
.about-page .expert-photo {
  grid-area: photo;
  position: relative;
  isolation: isolate;
  align-self: end;
  width: min(100%, 390px) !important;
  aspect-ratio: 0.78;
  margin: 0 auto;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  direction: rtl;
}

.about-page .portrait-frame::before,
.about-page .expert-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 1% 1%;
  border-radius: 49% 49% 7% 7% / 24% 24% 7% 7%;
  background-color: var(--about-gold);
  background-image:
    linear-gradient(90deg, transparent 0 48.8%, rgba(255,255,255,.88) 49% 51%, transparent 51.2%),
    linear-gradient(0deg, transparent 0 48.8%, rgba(255,255,255,.88) 49% 51%, transparent 51.2%);
  box-shadow: 0 28px 55px rgba(82, 50, 24, 0.19);
}

.about-page .portrait-frame::after,
.about-page .expert-photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% 1% 51% 51%;
  border-radius: 0 100% 0 0;
  background: rgba(255, 255, 255, 0.18);
}

.about-page .portrait-frame img,
.about-page .expert-photo img {
  position: absolute;
  z-index: 1;
  inset: auto 50% 0 auto;
  width: 118% !important;
  max-width: none !important;
  height: 104% !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  aspect-ratio: auto !important;
  transform: translateX(50%) !important;
  transform-origin: bottom center;
  filter: drop-shadow(0 18px 18px rgba(58, 35, 20, 0.2));
}

/* Mike's source portrait is wider than the other cutouts. Keep his full body
   visible while preserving the intentional overlap outside the gold frame. */
.about-page .expert-photo img[alt="مايك هوف"] {
  width: 104% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

.about-page .profile-copy,
.about-page .expert-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(3.5rem, 7vw, 5.4rem) clamp(1.5rem, 3vw, 2.8rem) 1.5rem !important;
  color: #fff !important;
  text-align: right;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  direction: rtl;
}

.about-page .profile-copy::before,
.about-page .expert-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: 2.4rem;
  inset-inline-start: 0;
  width: 74%;
  height: 47%;
  border-block-start: 1.5px solid var(--about-gold);
  border-inline-start: 1.5px solid var(--about-gold);
  border-start-start-radius: 4.5rem;
  opacity: 0.95;
}

.about-page .profile-copy::after,
.about-page .expert-copy::after {
  content: "";
  position: absolute;
  inset-block-start: 2.08rem;
  inset-inline-start: 74%;
  width: 0.62rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--about-gold);
}

.about-page .profile-copy h3,
.about-page .expert-copy h3 {
  position: relative;
  margin: 0 0 0.35rem;
  color: var(--about-gold) !important;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  line-height: 1.15;
}

.about-page .profile-copy .profile-label,
.about-page .expert-copy .profile-label {
  margin: 0 0 0.35rem;
  color: var(--about-mint) !important;
  font-size: 1rem;
  font-weight: 800;
}

.about-page .profile-copy .role,
.about-page .expert-copy .role {
  max-width: 620px;
  margin: 0 0 1.3rem;
  color: #fff !important;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.65;
}

.about-page .profile-copy .badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin: 1.55rem 0 1.7rem;
}

.about-page .profile-copy .badges span {
  display: grid;
  place-items: center;
  width: clamp(86px, 8vw, 100px);
  aspect-ratio: 1;
  padding: 0.5rem;
  color: #dff7f6 !important;
  border: 2px solid var(--about-gold) !important;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(66, 166, 166, 0.95) 0%, rgba(25, 103, 101, 0.98) 52%, #0f4948 100%) !important;
  box-shadow:
    0 0 0 5px rgba(167, 218, 219, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 26px rgba(15, 73, 72, 0.3) !important;
  font-size: clamp(0.92rem, 1.1vw, 1rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.035em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.about-page .profile-copy .badges span:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 6px rgba(167, 218, 219, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 16px 30px rgba(15, 73, 72, 0.36) !important;
}

.about-page .profile-copy p,
.about-page .expert-copy p,
.about-page .expert-copy li {
  color: rgba(255, 255, 255, 0.96) !important;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.95;
}

.about-page .profile-copy h4,
.about-page .expert-copy h4 {
  margin: 1.55rem 0 0.55rem;
  color: var(--about-gold) !important;
  font-size: 1.25rem;
}

.about-page .expert-copy ul {
  margin: 0.4rem 0 1rem;
  padding-inline-start: 1.25rem;
}

.about-page .expert-copy li::marker {
  color: var(--about-mint);
}

.about-page .team-section .profile:last-child,
.about-page .experts-section .expert-card:last-child {
  margin-bottom: 1.5rem;
}

@media (max-width: 820px) {
  .about-page .team-section .section-heading,
  .about-page .experts-section .section-heading {
    margin-bottom: 2.5rem;
  }

  .about-page .team-section .profile,
  .about-page .experts-section .expert-card,
  .about-page .team-section .profile:nth-of-type(odd),
  .about-page .team-section .profile:nth-of-type(even),
  .about-page .experts-section .expert-card:nth-of-type(odd),
  .about-page .experts-section .expert-card:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "photo"
      "copy";
    gap: 0.8rem;
    min-height: 0;
    margin-bottom: 5rem;
  }

  .about-page .portrait-frame,
  .about-page .expert-photo {
    width: min(82vw, 340px) !important;
  }

  .about-page .profile-copy,
  .about-page .expert-copy {
    padding: 3.8rem 0.3rem 0 !important;
  }

  .about-page .profile-copy::before,
  .about-page .expert-copy::before {
    inset-block-start: 2.15rem;
    width: 82%;
    height: 24%;
  }

  .about-page .profile-copy::after,
  .about-page .expert-copy::after {
    inset-block-start: 1.83rem;
    inset-inline-start: 82%;
  }
}

@media (max-width: 520px) {
  .about-page .team-section,
  .about-page .experts-section {
    padding-block: 4rem;
  }

  .about-page .team-section .section-heading h2,
  .about-page .experts-section .section-heading h2 {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .about-page .profile-copy h3,
  .about-page .expert-copy h3 {
    font-size: 2.2rem;
  }

  .about-page .profile-copy p,
  .about-page .expert-copy p,
  .about-page .expert-copy li {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .about-page .profile-copy .badges {
    justify-content: center;
    gap: 0.75rem;
  }

  .about-page .profile-copy .badges span {
    width: clamp(82px, 25vw, 92px);
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-page .portrait-frame img,
  .about-page .expert-photo img,
  .about-page .profile-copy .badges span {
    transition: none !important;
  }
}

/* Defeat the legacy expert-card frame at every breakpoint. */
body .about-page section.experts-section > .container > article.expert-card {
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The global card system has intentionally high specificity. The experts are
   editorial profiles, so explicitly opt this section out of that system. */
:root body main.about-page section.experts-section > .container > article.expert-card.expert-card,
:root body main.about-page section.experts-section > .container > article.expert-card.expert-card:hover {
  color: #fff !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
}

:root body main.about-page section.experts-section > .container > article.expert-card.expert-card .expert-copy {
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:root body main.about-page section.experts-section > .container > article.expert-card.expert-card .expert-copy .profile-label {
  color: var(--about-mint) !important;
  text-align: right !important;
}

:root body main.about-page section.experts-section > .container > article.expert-card.expert-card .expert-copy h3,
:root body main.about-page section.experts-section > .container > article.expert-card.expert-card .expert-copy h4 {
  color: var(--about-gold) !important;
  text-align: right !important;
}

:root body main.about-page section.experts-section > .container > article.expert-card.expert-card .expert-copy .role,
:root body main.about-page section.experts-section > .container > article.expert-card.expert-card .expert-copy p,
:root body main.about-page section.experts-section > .container > article.expert-card.expert-card .expert-copy li,
:root body main.about-page section.experts-section > .container > article.expert-card.expert-card .expert-copy strong {
  color: rgba(255, 255, 255, 0.96) !important;
  text-align: right !important;
}
