/* =========================================================
   DATAMIND TEAM PAGE
========================================================= */


/* =========================================================
   SHARED TEAM ELEMENTS
========================================================= */

.dm-team-text-link {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: var(--color-primary);

  font-size: .9rem;
  font-weight: 600;

  transition:
    gap .25s ease,
    color .25s ease;
}

.dm-team-text-link:hover {
  gap: 12px;
}

.dm-team-section-heading {
  display: grid;

  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(280px, .7fr);

  gap: 60px;

  align-items: end;

  margin-bottom: 48px;
}

.dm-team-section-heading h2 {
  max-width: 680px;

  margin: 0;
}

.dm-team-section-heading > p {
  max-width: 520px;

  margin: 0;

  color: var(--color-text-secondary);

  line-height: 1.7;
}

.dm-team-number {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  margin-bottom: 26px;

  background: var(--color-primary);

  color: #ffffff;

  border-radius: 50%;

  font-size: .78rem;
  font-weight: 700;
}


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

.dm-team-hero {
  padding: var(--space-xxl) 0;
}

.dm-team-hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(380px, .95fr);

  gap: 60px;

  align-items: center;
}

.dm-team-hero-content h1 {
  max-width: 700px;

  margin: 0 0 var(--space-md);
}

.dm-team-hero-content > p {
  max-width: 650px;

  margin-bottom: var(--space-lg);

  color: var(--color-text-secondary);

  line-height: 1.7;
}

.dm-team-hero-actions {
  display: flex;

  align-items: center;

  gap: 24px;

  flex-wrap: wrap;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.dm-team-hero-image {
  position: relative;

  min-height: 520px;

  overflow: hidden;

  background: var(--color-bg-section);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);
}

.dm-team-hero-image img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .6s ease;
}

.dm-team-hero-image:hover img {
  transform: scale(1.025);
}

.dm-team-hero-caption {
  position: absolute;

  right: 0;
  bottom: 0;
  left: 0;

  display: flex;
  flex-direction: column;

  gap: 6px;

  padding: 28px;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, .78)
    );

  color: #ffffff;
}

.dm-team-hero-caption span {
  color: rgba(255, 255, 255, .76);

  font-size: .68rem;
  font-weight: 700;

  letter-spacing: .1em;

  text-transform: uppercase;
}

.dm-team-hero-caption strong {
  max-width: 430px;

  color: #ffffff;

  font-size: 1rem;
  font-weight: 600;

  line-height: 1.45;
}


/* =========================================================
   TEAM INTRODUCTION
========================================================= */

.dm-team-intro {
  background: #ffffff;
}

.dm-team-intro-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, .9fr);

  gap: 70px;

  align-items: start;
}

.dm-team-intro-grid h2 {
  max-width: 650px;
}

.dm-team-intro-content {
  padding-top: 4px;
}

.dm-team-intro-content p {
  margin-bottom: var(--space-md);

  color: var(--color-text-secondary);

  line-height: 1.75;
}

.dm-team-intro-content p:last-child {
  margin-bottom: 0;
}


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

.dm-team-leadership {
  background: var(--color-bg-section);
}

.dm-leadership-profile {
  display: grid;

  grid-template-columns:
    minmax(320px, .85fr)
    minmax(0, 1.15fr);

  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);
}

.dm-leadership-image {
  position: relative;

  min-height: 560px;

  overflow: hidden;

  background: var(--color-bg-section);
}

.dm-leadership-image img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .6s ease;
}

.dm-leadership-profile:hover .dm-leadership-image img {
  transform: scale(1.02);
}

.dm-leadership-content {
  display: flex;
  flex-direction: column;

  align-items: flex-start;
  justify-content: center;

  padding: 56px;
}

.dm-leadership-label {
  display: inline-block;

  margin-bottom: 14px;

  color: var(--color-primary);

  font-size: .68rem;
  font-weight: 700;

  letter-spacing: .1em;

  text-transform: uppercase;
}

.dm-leadership-content h3 {
  margin-bottom: 6px;

  font-size: 1.65rem;
  font-weight: 700;
}

.dm-leadership-role {
  margin-bottom: 24px;

  color: var(--color-primary);

  font-size: .92rem;
  font-weight: 600;
}

.dm-leadership-content > p:not(.dm-leadership-role) {
  max-width: 650px;

  margin-bottom: 18px;

  color: var(--color-text-secondary);

  line-height: 1.75;
}

.dm-leadership-content .dm-team-text-link {
  margin-top: 8px;
}


/* =========================================================
   TEAM MEMBERS
========================================================= */

.dm-team-members {
  background: #ffffff;
}


/* =========================================================
   CURRENT TEAM STATE
========================================================= */

.dm-team-current-state {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 40px;

  padding: 42px 46px;

  background: var(--color-bg-section);

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.dm-team-current-state-content {
  max-width: 700px;
}

.dm-team-current-label {
  display: inline-block;

  margin-bottom: 12px;

  color: var(--color-primary);

  font-size: .68rem;
  font-weight: 700;

  letter-spacing: .1em;

  text-transform: uppercase;
}

.dm-team-current-state h3 {
  margin-bottom: 12px;

  font-size: 1.3rem;
  font-weight: 700;
}

.dm-team-current-state p {
  margin: 0;

  color: var(--color-text-secondary);

  line-height: 1.7;
}


/* =========================================================
   FUTURE TEAM GRID
========================================================= */

.dm-team-grid {
  display: grid;

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

  gap: 22px;
}

.dm-team-card {
  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.dm-team-card:hover {
  transform: translateY(-3px);

  box-shadow: 0 14px 30px rgba(0, 0, 0, .07);
}

.dm-team-card-image {
  position: relative;

  min-height: 340px;

  overflow: hidden;

  background: var(--color-bg-section);
}

.dm-team-card-image img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .5s ease;
}

.dm-team-card:hover .dm-team-card-image img {
  transform: scale(1.025);
}

.dm-team-card-content {
  padding: 26px;
}

.dm-team-card-department {
  display: inline-block;

  margin-bottom: 10px;

  color: var(--color-primary);

  font-size: .65rem;
  font-weight: 700;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.dm-team-card h3 {
  margin-bottom: 5px;

  font-size: 1.1rem;
}

.dm-team-card-role {
  margin-bottom: 16px;

  color: var(--color-primary);

  font-size: .82rem;
  font-weight: 600;
}

.dm-team-card-content > p:not(.dm-team-card-role) {
  margin: 0;

  color: var(--color-text-secondary);

  font-size: .86rem;

  line-height: 1.65;
}


/* =========================================================
   TEAM PRINCIPLES
========================================================= */

.dm-team-principles {
  background: var(--color-bg-section);
}

.dm-team-principles-grid {
  display: grid;

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

  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.dm-team-principle {
  min-height: 300px;

  padding: 34px;

  border-right: 1px solid var(--color-border);
}

.dm-team-principle:last-child {
  border-right: 0;
}

.dm-team-principle h3 {
  margin-bottom: 12px;

  font-size: 1.05rem;
  font-weight: 700;
}

.dm-team-principle p {
  margin: 0;

  color: var(--color-text-secondary);

  font-size: .88rem;

  line-height: 1.65;
}


/* =========================================================
   TEAM CULTURE
========================================================= */

.dm-team-culture {
  padding: var(--space-xxl) 0;

  background: #ffffff;
}

.dm-team-culture-image {
  position: relative;

  min-height: 520px;

  overflow: hidden;

  background: var(--color-bg-section);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);
}

.dm-team-culture-image img {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .6s ease;
}

.dm-team-culture-image:hover img {
  transform: scale(1.02);
}

.dm-team-culture-content {
  position: absolute;

  right: 34px;
  bottom: 34px;

  max-width: 540px;

  padding: 28px 30px;

  background: rgba(255, 255, 255, .95);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow-sm);
}

.dm-team-culture-content > span {
  display: block;

  margin-bottom: 10px;

  color: var(--color-primary);

  font-size: .68rem;
  font-weight: 700;

  letter-spacing: .1em;

  text-transform: uppercase;
}

.dm-team-culture-content h2 {
  margin-bottom: 12px;

  font-size: 1.55rem;

  line-height: 1.25;
}

.dm-team-culture-content p {
  margin: 0;

  color: var(--color-text-secondary);

  font-size: .9rem;

  line-height: 1.65;
}


/* =========================================================
   JOIN THE TEAM
========================================================= */

.dm-team-careers {
  background: var(--color-bg-section);
}

.dm-team-careers-inner {
  display: grid;

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

  gap: 50px;

  align-items: center;

  padding: 48px 52px;

  background: #ffffff;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-sm);
}

.dm-team-careers-inner h2 {
  max-width: 650px;

  margin-bottom: 14px;
}

.dm-team-careers-inner p {
  max-width: 650px;

  margin: 0;

  color: var(--color-text-secondary);

  line-height: 1.7;
}

.dm-team-careers-actions {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 16px;

  min-width: 210px;
}


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

@media (max-width: 1024px) {

  .dm-team-hero-grid {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(340px, .85fr);

    gap: 40px;
  }

  .dm-team-hero-image {
    min-height: 460px;
  }

  .dm-team-section-heading {
    gap: 40px;
  }

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

  .dm-team-principle:nth-child(2) {
    border-right: 0;
  }

  .dm-team-principle:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .dm-leadership-content {
    padding: 44px;
  }

}


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

@media (max-width: 992px) {

  .dm-team-hero-grid {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .dm-team-hero-content {
    max-width: 760px;
  }

  .dm-team-hero-image {
    min-height: 460px;
  }

  .dm-team-intro-grid {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .dm-team-section-heading {
    grid-template-columns: 1fr;

    gap: 20px;

    align-items: start;
  }

  .dm-leadership-profile {
    grid-template-columns: 1fr;
  }

  .dm-leadership-image {
    min-height: 500px;
  }

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

  .dm-team-careers-inner {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .dm-team-careers-actions {
    min-width: 0;
  }

}


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

@media (max-width: 768px) {

  .dm-team-hero {
    padding: var(--space-xl) 0;
  }

  .dm-team-hero-grid {
    gap: 30px;
  }

  .dm-team-hero-actions {
    gap: 18px;
  }

  .dm-team-hero-image {
    min-height: 390px;
  }

  .dm-team-hero-caption {
    padding: 22px;
  }

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

  .dm-leadership-image {
    min-height: 420px;
  }

  .dm-leadership-content {
    padding: 32px 26px;
  }

  .dm-team-current-state {
    flex-direction: column;

    align-items: flex-start;

    padding: 32px 26px;
  }

  .dm-team-grid {
    grid-template-columns: 1fr;
  }

  .dm-team-principles-grid {
    grid-template-columns: 1fr;

    border-bottom: 0;
  }

  .dm-team-principle {
    min-height: auto;

    padding: 28px 0;

    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .dm-team-principle:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border);
  }

  .dm-team-principle:last-child {
    border-bottom: 0;
  }

  .dm-team-culture {
    padding: var(--space-xl) 0;
  }

  .dm-team-culture-image {
    min-height: 400px;
  }

  .dm-team-culture-content {
    right: 20px;
    bottom: 20px;
    left: 20px;

    max-width: none;

    padding: 22px;
  }

  .dm-team-culture-content h2 {
    font-size: 1.3rem;
  }

  .dm-team-careers-inner {
    padding: 32px 26px;
  }

}


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

@media (max-width: 480px) {

  .dm-team-hero {
    padding: 40px 0;
  }

  .dm-team-hero-actions {
    align-items: flex-start;
    flex-direction: column;

    gap: 16px;
  }

  .dm-team-hero-image {
    min-height: 310px;

    border-radius: var(--radius-md);
  }

  .dm-team-hero-caption {
    padding: 18px;
  }

  .dm-team-hero-caption span {
    font-size: .61rem;
  }

  .dm-team-hero-caption strong {
    font-size: .88rem;
  }

  .dm-leadership-image {
    min-height: 360px;
  }

  .dm-leadership-content {
    padding: 28px 22px;
  }

  .dm-leadership-content h3 {
    font-size: 1.4rem;
  }

  .dm-team-current-state {
    padding: 28px 22px;
  }

  .dm-team-card-image {
    min-height: 310px;
  }

  .dm-team-culture-image {
    min-height: 360px;

    border-radius: var(--radius-md);
  }

  .dm-team-culture-content {
    right: 14px;
    bottom: 14px;
    left: 14px;

    padding: 18px;
  }

  .dm-team-culture-content > span {
    font-size: .61rem;
  }

  .dm-team-culture-content h2 {
    font-size: 1.12rem;
  }

  .dm-team-culture-content p {
    font-size: .82rem;
  }

  .dm-team-careers-inner {
    padding: 28px 22px;
  }

  .dm-team-careers-actions {
    align-items: stretch;
  }

  .dm-team-careers-actions .dm-team-text-link {
    align-self: flex-start;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 375px) {

  .dm-team-hero-image {
    min-height: 270px;
  }

  .dm-leadership-image {
    min-height: 320px;
  }

  .dm-team-card-image {
    min-height: 280px;
  }

  .dm-team-culture-image {
    min-height: 330px;
  }

  .dm-team-current-state {
    padding: 26px 18px;
  }

  .dm-team-careers-inner {
    padding: 26px 18px;
  }

}