@font-face {
  font-family: 'Phagspa';
  src: url('../fonts/phagspa.ttf');
}

:root {
  --az-black: #090909;
  --az-charcoal: #151412;
  --az-ink: #24211c;
  --az-muted: #736d62;
  --az-paper: #f1eee6;
  --az-panel: #fbf8f1;
  --az-line: rgba(36, 33, 28, 0.14);
  --az-gold: #d4b06a;
  --az-gold-dark: #9b7938;
  --az-ivory: #eeece6;
  --profile-cover-image: url('people-banner.jpg');
}

html {
  scroll-behavior: smooth;
}

body.our-people-profile {
  background: var(--az-black);
  color: var(--az-ivory);
}

body.our-people-profile #page-header .logo,
body.our-people-profile #page-header .logo__wrapper-img,
body.our-people-profile #page-header .logo__img-primary {
  opacity: 1 !important;
  visibility: visible !important;
}

body.our-people-profile,
body.our-people-profile #page-wrapper,
body.our-people-profile .page-wrapper__content {
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

body.our-people-profile #page-wrapper {
  position: relative !important;
  transform: none !important;
}

.people-profile-page {
  background: var(--az-black);
}

body.our-people-profile #page-footer {
  background: var(--az-panel) !important;
  color: var(--az-ink) !important;
}

body.our-people-profile #page-footer,
body.our-people-profile #page-footer p,
body.our-people-profile #page-footer a,
body.our-people-profile #page-footer small,
body.our-people-profile #page-footer li,
body.our-people-profile #page-footer .widgettitle,
body.our-people-profile #page-footer .small-caps-wh {
  color: var(--az-ink) !important;
  -webkit-text-fill-color: var(--az-ink) !important;
  opacity: 1 !important;
}

body.our-people-profile #page-footer .footer__area-border-top {
  border-top-color: var(--az-line) !important;
}

body.our-people-profile #page-footer .logo,
body.our-people-profile #page-footer .logo__wrapper-img,
body.our-people-profile #page-footer .logo__img-primary {
  opacity: 1 !important;
  visibility: visible !important;
}

.profile-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background-image: linear-gradient(90deg, rgba(7, 7, 7, 0.94) 0%, rgba(13, 13, 12, 0.84) 44%, rgba(13, 13, 12, 0.54) 100%), var(--profile-cover-image);
  background-size: cover;
  background-position: center;
}

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.34));
}

.profile-hero__inner {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: clamp(128px, 14vh, 176px) clamp(28px, 6vw, 112px) clamp(44px, 7vh, 84px);
}

.profile-hero__eyebrow {
  margin-bottom: clamp(22px, 3vh, 38px);
  color: var(--az-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.profile-hero__row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(120px, 1fr) auto;
  align-items: end;
  gap: clamp(18px, 3vw, 42px);
  max-width: 1200px;
}

.profile-hero__name {
  margin: 0;
  color: var(--az-ivory);
  font-family: 'Phagspa', Georgia, serif;
  font-size: clamp(3.5rem, 7.2vw, 7.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.profile-hero__rule {
  height: 1px;
  margin-bottom: clamp(12px, 1.5vw, 20px);
  background: rgba(238, 236, 230, 0.6);
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(4px, 1vw, 10px);
}

.profile-actions__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(238, 236, 230, 0.72);
  color: var(--az-ivory);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.24s ease, color 0.24s ease, background 0.24s ease;
}

.profile-actions__item:hover,
.profile-actions__item:focus {
  border-color: var(--az-gold);
  background: rgba(212, 176, 106, 0.12);
  color: var(--az-gold);
  opacity: 1;
}

.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.72rem;
  margin-top: 1.35rem;
  color: var(--az-ivory);
  font-size: clamp(1.36rem, 2vw, 1.95rem);
  line-height: 1.32;
}

.profile-hero__slash {
  color: rgba(238, 236, 230, 0.42);
}

.profile-hero__practice,
.profile-hero__email,
.profile-hero__city {
  color: var(--az-gold);
}

.profile-hero__contact {
  display: grid;
  gap: 0.95rem;
  margin-top: clamp(54px, 9vh, 94px);
  font-size: clamp(1rem, 1.16vw, 1.18rem);
  line-height: 1.55;
}

.profile-hero__email,
.profile-hero__city {
  text-decoration: none;
}

.profile-hero__email:hover {
  color: var(--az-ivory);
  opacity: 1;
}

.profile-hero__phone {
  margin-left: 0.7rem;
  color: var(--az-ivory);
}

.profile-details {
  background: var(--az-paper);
  color: var(--az-ink);
  padding: clamp(32px, 4vw, 54px) clamp(18px, 4vw, 56px) clamp(60px, 8vw, 112px);
}

.profile-details__inner {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.profile-overview,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.43fr) minmax(0, 0.57fr);
  gap: clamp(22px, 2.6vw, 34px);
}

.profile-overview {
  margin-bottom: clamp(22px, 2.8vw, 36px);
  background: var(--az-panel);
  border: 1px solid var(--az-line);
}

.profile-capabilities,
.profile-bio,
.profile-card {
  padding: clamp(28px, 3vw, 42px);
}

.profile-capabilities {
  border-right: 1px solid var(--az-line);
}

.profile-section-label {
  margin: 0 0 1.2rem;
  color: var(--az-charcoal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.profile-capabilities__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-capabilities__list li {
  display: inline-flex;
	 min-width: 0;
}

.profile-capabilities__list a {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  background: rgba(212, 176, 106, 0.16);
  color: var(--az-ink);
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.profile-capabilities__list a:hover,
.profile-capabilities__list a:focus {
  background: rgba(212, 176, 106, 0.28);
  color: var(--az-gold-dark);
  opacity: 1;
}

.profile-bio p {
  margin: 0 0 1.1rem;
  font-family: 'Phagspa', Georgia, serif;
  font-size: clamp(1.52rem, 2vw, 2.18rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.profile-full-bio {
  margin-top: 0.35rem;
}

.profile-full-bio summary {
  width: fit-content;
  cursor: pointer;
  list-style: none;
}

.profile-full-bio summary::-webkit-details-marker {
  display: none;
}

.profile-full-bio[open] summary {
  margin-bottom: 1.1rem;
}

.profile-linkline {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  border-bottom: 3px solid var(--az-gold);
  color: var(--az-gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
}

.profile-grid {
  align-items: start;
}

.profile-grid__left,
.profile-grid__right {
  display: grid;
  gap: clamp(20px, 2vw, 28px);
}

.profile-card {
  min-height: 0;
  background: var(--az-panel);
  border: 1px solid var(--az-line);
}

.profile-card_gold {
  background: #e7dbc0;
}

.profile-card_dark {
  background: var(--az-charcoal);
  color: var(--az-ivory);
}

.profile-card_dark .profile-card__title,
.profile-card_dark .profile-card__kicker,
.profile-card_dark .profile-card__text,
.profile-card_dark .profile-list li {
  color: var(--az-ivory);
}

.profile-card_dark .profile-linkline {
  color: var(--az-gold);
}

.profile-card__title {
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  color: var(--az-charcoal);
  font-family: 'Phagspa', Georgia, serif;
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 400;
  line-height: 1.06;
}

.profile-card__kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100%, 280px);
  margin: 0 0 1.35rem;
  padding-bottom: 7px;
  border-bottom: 3px solid var(--az-gold);
  color: var(--az-gold-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.profile-list {
  display: grid;
  gap: 0.82rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
}

.profile-list:last-child {
  margin-bottom: 0;
}

.profile-list li,
.profile-card__text,
.profile-entry__text {
  color: var(--az-ink);
  font-size: clamp(1rem, 1vw, 1.08rem);
  line-height: 1.65;
}

.profile-entry {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid var(--az-line);
}

.profile-entry:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.profile-entry__date,
.profile-entry__type {
  color: var(--az-gold-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.profile-entry__heading {
  margin: 0;
  color: inherit;
  font-size: clamp(1.06rem, 1.18vw, 1.22rem);
  font-weight: 600;
  line-height: 1.45;
}

.profile-card__date {
  margin: 0 0 0.8rem;
  color: var(--az-gold);
  font-family: 'Phagspa', Georgia, serif;
  font-size: clamp(3.5rem, 5vw, 5.8rem);
  font-weight: 400;
  line-height: 0.95;
}

[dir='rtl'] body.our-people-profile {
  text-align: right;
}

[dir='rtl'] body.our-people-profile,
[dir='rtl'] .profile-hero__name,
[dir='rtl'] .profile-bio p,
[dir='rtl'] .profile-card__title,
[dir='rtl'] .profile-card__date {
  font-family: var(--font-primary, 'DINNextLTArabic', sans-serif);
}

[dir='rtl'] .profile-hero {
  background-image: linear-gradient(270deg, rgba(7, 7, 7, 0.94) 0%, rgba(13, 13, 12, 0.84) 44%, rgba(13, 13, 12, 0.54) 100%), var(--profile-cover-image);
}

[dir='rtl'] .profile-hero::before {
  background: radial-gradient(circle at 82% 24%, rgba(212, 176, 106, 0.18), transparent 28%), linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.34));
}

[dir='rtl'] .profile-hero__row {
  margin-left: auto;
}

[dir='rtl'] .profile-actions {
  direction: ltr;
}

[dir='rtl'] .profile-hero__phone {
  display: inline-block;
  margin-right: 0.7rem;
  margin-left: 0;
  direction: ltr;
}

[dir='rtl'] .profile-capabilities {
  border-right: 0;
  border-left: 1px solid var(--az-line);
}

[dir='rtl'] .profile-card__kicker {
  letter-spacing: 0;
}

@media screen and (max-width: 1100px) {
  .profile-hero__row,
  .profile-overview,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-hero__name {
    white-space: normal;
  }

  .profile-hero__rule {
    margin: 0;
  }

  .profile-capabilities,
  [dir='rtl'] .profile-capabilities {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--az-line);
  }
}

@media screen and (max-width: 767px) {
  .profile-hero {
    min-height: 86vh;
  }

  .profile-hero__inner {
    padding: 118px 22px 40px;
  }

  .profile-hero__name {
    font-size: clamp(2.5rem, 11vw, 3.1rem);
  }

  .profile-hero__meta {
    display: block;
  }

  .profile-hero__slash {
    display: none;
  }

  .profile-hero__practice {
    display: block;
    margin-top: 0.35rem;
  }

  .profile-hero__phone,
  [dir='rtl'] .profile-hero__phone {
    display: block;
    margin: 0.15rem 0 0;
  }

  .profile-details {
    padding: 22px 14px 56px;
  }

  .profile-capabilities,
  .profile-bio,
  .profile-card {
    padding: 24px 20px;
  }
}
