/* =========================================================
   ACCUSTER — OUR TEAM
   Editorial Leadership Page
   Theme: Red / Black / White / Gray
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.team-page {
  background: var(--white);
}


/* =========================================================
   LEADERSHIP HERO
========================================================= */

.leadership-hero {
  position: relative;

  min-height: 285px;

  padding: 42px 0 45px;

  background: var(--white);

  overflow: hidden;
}


/* =========================================================
   HERO BACKGROUND GRID
========================================================= */

.leadership-hero-grid {
  position: absolute;

  inset: 0;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  pointer-events: none;
}

.leadership-hero-grid span {
  border-left: 1px solid rgba(21, 21, 21, 0.055);
}

.leadership-hero-grid span:last-child {
  border-right: 1px solid rgba(21, 21, 21, 0.055);
}


/* =========================================================
   HERO INNER
========================================================= */

.leadership-hero-inner {
  position: relative;

  z-index: 2;
}


/* =========================================================
   HERO COPY
========================================================= */

.leadership-hero-copy {
  width: min(100%, 900px);
}


/* =========================================================
   OUR TEAM KICKER
========================================================= */

.leadership-hero .team-kicker {
  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin: 0 0 12px;

  color: var(--red);

  font-size: 10px;

  line-height: 1;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  opacity: 0;
}


.leadership-hero .team-kicker::before {
  content: "";

  display: block;

  width: 28px;

  height: 2px;

  background: var(--red);
}


/* =========================================================
   LEADERSHIP TITLE REVEAL
========================================================= */

.leadership-title-reveal {
  position: relative;

  width: 100%;

  height: 88px;

  overflow: hidden;
}


/* =========================================================
   LEADERSHIP TITLE
========================================================= */

.leadership-title {
  position: absolute;

  left: 0;

  bottom: 18px;

  z-index: 1;

  display: block;

  margin: 0;

  color: var(--black);

  font-size: clamp(64px, 6.2vw, 82px);

  line-height: 0.86;

  font-weight: 800;

  letter-spacing: -0.065em;

  white-space: nowrap;

  opacity: 1 !important;

  visibility: visible !important;

  transform: translateY(0);

  will-change: transform;
}


/* =========================================================
   TITLE LINE
========================================================= */

.leadership-title-line {
  position: relative;

  z-index: 5;

  width: min(850px, 100%);

  height: 1px;

  margin: 0;

  background: var(--gray-300);

  transform-origin: left center;

  transform: scaleX(0);
}

.leadership-title-line::after {
  content: "";

  position: absolute;

  left: 0;

  top: -1px;

  width: 28px;

  height: 3px;

  background: var(--red);
}


/* =========================================================
   HERO DESCRIPTION
   Intentionally hidden as requested.
========================================================= */

/* =========================================================
   HERO DESCRIPTION
   Paragraph appears BELOW the horizontal line
========================================================= */

.leadership-hero-copy > p {
  display: block !important;

  position: relative;

  z-index: 2;

  width: min(100%, 850px);

  margin: 16px 0 0;

  padding: 0;

  color: var(--muted);

  font-size: 18px;

  line-height: 1.7;

  opacity: 0;

  transform: translateY(12px);
}


/* =========================================================
   REMOVE OLD HERO DECORATION
========================================================= */

.leadership-hero-mark {
  display: none !important;
}


/* =========================================================
   GENERAL TEAM SECTIONS
========================================================= */

.team-section {
  padding: 78px 0 95px;
}


/* =========================================================
   LEADERSHIP / PEOPLE SECTION
   LIGHT GRAY BACKGROUND
========================================================= */

.leadership-section {
  position: relative;

  background: var(--gray-50);

  border-top: 1px solid var(--gray-200);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.team-section-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 40px;

  margin-bottom: 32px;
}


.team-heading-copy {
  max-width: 850px;
}


.team-section-heading .team-kicker {
  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin: 0;

  color: var(--red);

  font-size: 10px;

  line-height: 1;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}


.team-section-heading .team-kicker::before {
  content: "";

  width: 28px;

  height: 2px;

  background: var(--red);
}


/* =========================================================
   MAIN SECTION HEADING
========================================================= */

.team-section-heading h2 {
  margin-top: 10px;

  max-width: 760px;

  color: var(--black);

  font-size: clamp(40px, 4.7vw, 62px);

  line-height: 0.94;

  letter-spacing: -0.06em;

  font-weight: 800;
}


.team-section-heading h2 em {
  color: var(--red);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: 500;
}


/* =========================================================
   LEADERSHIP GRID
========================================================= */

.leadership-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 36px;
}


/* =========================================================
   LEADER CARD
========================================================= */

.leader-card {
  min-width: 0;

  opacity: 0;
}


/* =========================================================
   LEADER IMAGE
========================================================= */

.leader-media {
  position: relative;

  overflow: hidden;

  aspect-ratio: 1 / 0.78;

  background: var(--gray-100);

  border: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;
}


.leader-media img {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  border: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;

  transition:
    transform 0.8s cubic-bezier(.2, .7, .2, 1);
}


.leader-card:hover .leader-media img {
  transform: scale(1.035);
}


/* =========================================================
   LEADER IMAGE OVERLAY
========================================================= */

.leader-media::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(21, 21, 21, 0.20),
      transparent 38%
    );

  opacity: 0;

  transition:
    opacity 0.35s ease;

  pointer-events: none;
}


.leader-card:hover .leader-media::after {
  opacity: 1;
}


/* =========================================================
   LEADER SOCIAL ICONS
========================================================= */

.leader-socials {
  position: absolute;

  right: 18px;

  bottom: 18px;

  z-index: 5;

  display: flex;

  gap: 7px;

  opacity: 0;

  transform: translateY(12px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}


.leader-card:hover .leader-socials {
  opacity: 1;

  transform: translateY(0);
}


.leader-socials a {
  width: 36px;

  height: 36px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.95);

  color: var(--black);

  border-radius: 50%;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


.leader-socials a:hover {
  background: var(--red);

  color: var(--white);

  transform: translateY(-3px);
}


.leader-socials i {
  font-size: 12px;
}


/* =========================================================
   LEADER CONTENT
========================================================= */

.leader-content {
  position: relative;

  padding: 20px 2px 0;
}


.leader-content h3 {
  margin: 0;

  color: var(--black);

  font-size: 22px;

  line-height: 1;

  letter-spacing: -0.035em;

  font-weight: 800;
}


/* =========================================================
   LEADER ROLE
========================================================= */

.leader-role {
  margin-top: 7px;

  color: var(--red);

  font-size: 10px;

  line-height: 1.4;

  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}


/* =========================================================
   LEADER DESCRIPTION
========================================================= */

.leader-description {
  max-width: 650px;

  margin-top: 18px;

  padding-right: 45px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.75;
}


/* =========================================================
   LEADER ARROW
========================================================= */

.leader-arrow {
  position: absolute;

  top: 20px;

  right: 2px;

  width: 38px;

  height: 38px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--red);

  border: 1px solid var(--gray-300);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease;
}


.leader-card:hover .leader-arrow {
  background: var(--red);

  border-color: var(--red);

  color: var(--white);

  transform:
    translate(2px, -2px);
}


.leader-arrow svg {
  width: 17px;

  height: 17px;
}


/* =========================================================
   SENIOR ADVISORS
   WHITE BACKGROUND
========================================================= */

.advisors-section {
  position: relative;

  background: var(--white);

  border-top: 1px solid var(--gray-200);
}


/* =========================================================
   ADVISOR GRID
========================================================= */

.advisor-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 22px;
}


/* =========================================================
   ADVISOR CARD
========================================================= */

.advisor-card {
  min-width: 0;

  opacity: 0;
}


/* =========================================================
   ADVISOR IMAGE
========================================================= */

.advisor-media {
  position: relative;

  overflow: hidden;

  aspect-ratio: 1 / 1;

  background: var(--gray-100);

  border: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;
}


.advisor-media img {
  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  border: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;

  filter: saturate(0.9);

  transition:
    transform 0.7s cubic-bezier(.2, .7, .2, 1),
    filter 0.4s ease;
}


.advisor-card:hover .advisor-media img {
  transform: scale(1.04);

  filter: saturate(1);
}


/* =========================================================
   ADVISOR SOCIALS
========================================================= */

.advisor-socials {
  position: absolute;

  right: 14px;

  bottom: 14px;

  z-index: 3;

  display: flex;

  gap: 6px;

  opacity: 0;

  transform: translateY(12px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}


.advisor-card:hover .advisor-socials {
  opacity: 1;

  transform: translateY(0);
}


.advisor-socials a {
  width: 34px;

  height: 34px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.95);

  color: var(--black);

  border-radius: 50%;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}


.advisor-socials a:hover {
  background: var(--red);

  color: var(--white);

  transform: translateY(-2px);
}


/* =========================================================
   ADVISOR CONTENT
========================================================= */

.advisor-content {
  padding: 18px 0 0;
}


.advisor-line {
  display: block;

  width: 28px;

  height: 2px;

  margin-bottom: 13px;

  background: var(--red);
}


.advisor-content h3 {
  margin: 0;

  color: var(--black);

  font-size: 16px;

  line-height: 1.1;

  letter-spacing: 0.01em;

  font-weight: 800;
}


.advisor-content p {
  margin-top: 8px;

  color: var(--muted);

  font-size: 10px;

  line-height: 1.55;

  font-weight: 700;

  letter-spacing: 0.05em;
}


/* =========================================================
   FUTURE EMPLOYEE SECTION
========================================================= */



/* =========================================================
   GSAP INITIAL STATES
========================================================= */

.js-team-ready
.leader-card,
.js-team-ready
.advisor-card,
.js-team-ready
.team-section-heading,
.js-team-ready
.future-note-inner {
  will-change:
    transform,
    opacity;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

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

    gap: 32px 22px;
  }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 900px) {

  /* -----------------------------------------------
     Hero
  ----------------------------------------------- */

  .leadership-hero {
    min-height: 270px;

    padding: 40px 0 30px;
  }


  .leadership-hero-copy {
    width: 100%;
  }


  .leadership-title-reveal {
    height: 78px;
  }


  .leadership-title {
    font-size:
      clamp(
        58px,
        10vw,
        76px
      );
  }


  .leadership-title-line {
    width: 100%;
  }


  /* -----------------------------------------------
     Leaders
  ----------------------------------------------- */

  .leadership-grid {
    grid-template-columns: 1fr;

    gap: 58px;
  }


  .team-section {
    padding: 68px 0 78px;
  }


  .team-section-heading {
    margin-bottom: 32px;
  }


  .team-section-heading h2 {
    font-size: 48px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  /* -----------------------------------------------
     Hero
  ----------------------------------------------- */

  .leadership-hero {
    min-height: 245px;

    padding: 36px 0 28px;
  }


  .leadership-hero-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }


  .leadership-title-reveal {
    height: 62px;
  }


  .leadership-title {
    bottom: -1px;

    font-size: 48px;

    letter-spacing: -0.06em;
  }


  /* -----------------------------------------------
     Leaders
  ----------------------------------------------- */

  .team-section {
    padding: 58px 0 68px;
  }


  .team-section-heading {
    display: block;

    margin-bottom: 28px;
  }


  .team-section-heading h2 {
    font-size: 38px;
  }


  .leadership-grid {
    gap: 46px;
  }


  .leader-content h3 {
    font-size: 21px;
  }


  .leader-description {
    padding-right: 0;

    font-size: 12.5px;
  }


  /* -----------------------------------------------
     Advisors
  ----------------------------------------------- */

  .advisor-grid {
    grid-template-columns: 1fr;

    gap: 42px;
  }


  /* -----------------------------------------------
     Future section
  ----------------------------------------------- */

  .team-future-note {
    padding: 68px 0 76px;
  }


  .team-future-note h2 {
    font-size: 40px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .leader-media img,
  .advisor-media img,
  .leader-socials,
  .advisor-socials,
  .leader-arrow {

    transition: none !important;

  }

}