/* Cinema Circle Nepal — leadership / biography pages */

.page-main--team {
  overflow: clip;
}

.team-hero,
.profile-hero {
  position: relative;
  padding-top: clamp(104px, 14vw, 184px);
  padding-bottom: var(--s8);
}

.team-hero::before,
.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: min(44vw, 560px);
  height: 1px;
  background: var(--gold-hairline);
}

.team-hero__eyebrow,
.profile-hero__eyebrow,
.leadership-kicker {
  margin: 0 0 var(--s3);
  color: var(--gold-text);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.team-hero h1,
.profile-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.08;
}

.team-hero__lede,
.profile-hero__lede {
  max-width: 780px;
  margin: var(--s5) 0 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.75;
}

.leadership-band {
  border-top: 1px solid var(--gold-hairline);
  border-bottom: 1px solid var(--gold-hairline);
  background: var(--ink-deep);
}

.leadership-band__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s5);
  padding-top: var(--s5);
  padding-bottom: var(--s5);
}

.leadership-band__item {
  min-width: 0;
}

.leadership-band__item span,
.leadership-band__item strong {
  display: block;
}

.leadership-band__item span {
  color: var(--text-caption);
  font-size: var(--fs-caption);
}

.leadership-band__item strong {
  margin-top: var(--s1);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
}

.leadership-section {
  padding-top: var(--s8);
  padding-bottom: var(--s9);
}

.leadership-section + .leadership-section {
  padding-top: 0;
}

.leadership-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s6);
}

.leadership-section__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
}

.leadership-section__head p {
  max-width: 48ch;
  margin: 0;
  color: var(--text-muted);
}

.leader-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
  background: var(--ink-raised);
}

.leader-card--patron {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.4fr);
  min-height: 520px;
}

.leader-card__media,
.profile-portrait {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 18, 20, 0.05), rgba(8, 8, 10, 0.92)),
    var(--ink-deep);
}

.leader-card__monogram,
.profile-portrait__monogram {
  position: absolute;
  inset: auto var(--s5) var(--s4) auto;
  z-index: 0;
  color: rgba(244, 241, 234, 0.08);
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.8;
  pointer-events: none;
}

.leader-card__media img,
.profile-portrait img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.78) contrast(1.04);
}

.leader-card__media::after,
.profile-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 10, 0.76));
  pointer-events: none;
}

.leader-card__body {
  display: flex;
  flex-direction: column;
  padding: clamp(var(--s5), 4vw, var(--s7));
}

.leader-card__role {
  margin: 0 0 var(--s3);
  color: var(--gold-text);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.leader-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
}

.leader-card__profession {
  margin: var(--s3) 0 0;
  color: var(--text-muted);
  font-size: var(--fs-caption);
}

.leader-card__intro {
  margin: var(--s5) 0 0;
  color: var(--text-primary);
  line-height: 1.75;
}

.leader-card__actions,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: auto;
  padding-top: var(--s6);
}

.leader-card__bio,
.profile-link--primary {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  padding: 0 var(--s4);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-decoration: none;
}

.leader-card__external,
.profile-link {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  padding: 0 var(--s4);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-decoration: none;
}

.leader-card__bio:hover,
.profile-link--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.leader-card__external:hover,
.profile-link:hover {
  border-color: var(--gold);
}

.executive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}

.executive-grid .leader-card {
  grid-template-rows: 340px 1fr;
}

.executive-grid .leader-card__media {
  min-height: 0;
}

.executive-grid .leader-card__body h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.executive-grid .leader-card__intro {
  color: var(--text-muted);
}

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s5);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  text-decoration: none;
}

.profile-back:hover {
  color: var(--gold-light);
}

.profile-hero__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.35fr);
  gap: clamp(var(--s6), 6vw, var(--s9));
  align-items: stretch;
}

.profile-portrait {
  min-height: 590px;
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
}

.profile-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s6) 0;
}

.profile-role {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 var(--s4);
  padding: var(--s2) var(--s3);
  border: 1px solid var(--gold-hairline);
  border-radius: 999px;
  color: var(--gold-light);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.profile-profession {
  margin: var(--s3) 0 0;
  color: var(--text-muted);
}

.profile-headline {
  max-width: 23ch;
  margin: var(--s6) 0 0;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1.35;
}

.profile-content {
  border-top: 1px solid var(--gold-hairline);
}

.profile-content__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.62fr);
  gap: clamp(var(--s7), 8vw, var(--s10));
  padding-top: var(--s9);
  padding-bottom: var(--s9);
}

.profile-copy h2,
.profile-aside h2,
.profile-record h2,
.profile-references h2 {
  margin: 0 0 var(--s5);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
}

.profile-copy p {
  margin: 0 0 var(--s5);
  color: var(--text-primary);
  font-size: clamp(1.03rem, 1.4vw, 1.15rem);
  line-height: 1.88;
}

.profile-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + var(--s5));
  padding: var(--s5);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
  background: var(--ink-raised);
}

.profile-aside p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.profile-record {
  padding-top: var(--s8);
  padding-bottom: var(--s8);
  border-top: 1px solid var(--gold-hairline);
}

.profile-record__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}

.profile-record__item {
  min-height: 164px;
  padding: var(--s5);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
  background: var(--ink-raised);
}

.profile-record__item span,
.profile-record__item strong {
  display: block;
}

.profile-record__item span {
  color: var(--gold-text);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.profile-record__item strong {
  margin-top: var(--s4);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.45;
}

.profile-references {
  padding-top: var(--s8);
  padding-bottom: var(--s9);
  border-top: 1px solid var(--gold-hairline);
}

.profile-references__note {
  max-width: 760px;
  color: var(--text-muted);
}

.profile-leadership-nav {
  padding-top: var(--s6);
  padding-bottom: var(--s8);
  border-top: 1px solid var(--gold-hairline);
}

.profile-leadership-nav__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s3);
}

.profile-leadership-nav__item {
  display: block;
  min-height: 104px;
  padding: var(--s4);
  border: 1px solid var(--gold-hairline);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
}

.profile-leadership-nav__item[aria-current='page'] {
  border-color: var(--gold);
}

.profile-leadership-nav__item span,
.profile-leadership-nav__item strong {
  display: block;
}

.profile-leadership-nav__item span {
  color: var(--gold-text);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.profile-leadership-nav__item strong {
  margin-top: var(--s2);
  font-family: var(--font-display);
  font-weight: 500;
}

@media (max-width: 980px) {
  .leader-card--patron,
  .profile-hero__grid,
  .profile-content__grid {
    grid-template-columns: 1fr;
  }

  .leader-card--patron {
    min-height: 0;
  }

  .leader-card--patron .leader-card__media {
    min-height: 520px;
  }

  .executive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-grid .leader-card:last-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    grid-template-rows: none;
  }

  .profile-aside {
    position: static;
  }

  .profile-record__grid,
  .profile-leadership-nav__grid,
  .leadership-band__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .team-hero,
  .profile-hero {
    padding-top: calc(var(--header-h) + var(--s8));
    padding-bottom: var(--s7);
  }

  .leadership-section {
    padding-top: var(--s7);
    padding-bottom: var(--s8);
  }

  .leadership-section__head {
    display: block;
  }

  .leadership-section__head p {
    margin-top: var(--s3);
  }

  .leader-card--patron,
  .executive-grid,
  .executive-grid .leader-card:last-child {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .executive-grid .leader-card:last-child {
    grid-column: auto;
  }

  .leader-card--patron .leader-card__media,
  .executive-grid .leader-card__media {
    min-height: 390px;
  }

  .profile-portrait {
    min-height: 500px;
  }

  .profile-hero__copy {
    padding-bottom: 0;
  }

  .profile-content__grid {
    padding-top: var(--s7);
    padding-bottom: var(--s7);
  }

  .profile-record__grid,
  .profile-leadership-nav__grid,
  .leadership-band__inner {
    grid-template-columns: 1fr;
  }

  .profile-record__item {
    min-height: auto;
  }

  .leader-card__actions,
  .profile-links {
    flex-direction: column;
  }

  .leader-card__bio,
  .leader-card__external,
  .profile-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .leader-card,
  .profile-record__item,
  .profile-leadership-nav__item {
    transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }

  .leader-card:hover,
  .profile-record__item:hover,
  .profile-leadership-nav__item:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 162, 39, 0.52);
  }
}
