/* c-teamcards.css — copied from components/TeamCards/TeamCards.css
   The template shipped plain global CSS, so the class names here are already
   the ones the markup uses. */

.sticky {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background-color: var(--base-100);
}

.sticky-header {
  position: relative;
  top: 0;
  left: 0;
  width: 250vw;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.sticky-header h1 {
  margin: 0;
  color: var(--base-400);
  font-size: 28vw;
  letter-spacing: -0.5rem;
  line-height: 100%;
}

.card {
  position: absolute;
  top: 10%;
  left: 100%;
  width: 325px;
  height: 500px;
  background-color: var(--base-400);
  border-radius: 1rem;
  padding: 1rem;
  will-change: transform;
  z-index: 2;
}

/* The five colours were keyed off #card-1 .. #card-5, but the same ids were
   printed twice — once in the pinned desktop section and once in the mobile
   list — so every page carried five duplicate ids. They are classes here. */
.card-1 {
  background-color: var(--accent-1);
}

.card-2 {
  background-color: var(--accent-2);
}

.card-3 {
  background-color: var(--accent-3);
}

.card-4 {
  background-color: var(--accent-4);
}

.card-5 {
  background-color: var(--accent-5);
}

.card .card-img {
  width: 100%;
  height: 200px;
  border-radius: 0.5em;
  overflow: hidden;
}

.card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  width: 100%;
  height: 275px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  padding: 1rem;
}

.card-content h2 {
  font-size: 2.5rem;
  letter-spacing: -0.05rem;
}

@media (max-width: 999px) {
  .team-desktop.sticky {
    display: none;
  }

  .team-mobile {
    display: block;
    z-index: 0;
  }

  .team-mobile {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    background-color: var(--base-100);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .mobile-header {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    will-change: auto;
    margin-bottom: 0.5rem;
  }

  .mobile-header h1 {
    margin: 0 0 0.5rem 0;
    color: var(--base-400);
    font-size: 2.25rem;
    letter-spacing: -0.06rem;
    line-height: 110%;
  }

  .card {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    max-width: 680px;
    margin: 0 auto;
    will-change: auto;
    transform: none !important;
    opacity: 1 !important;
  }

  .card .card-img {
    height: 240px;
    margin-bottom: 1rem;
  }

  .card-content {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }
}

@media (min-width: 1000px) {
  .team-mobile {
    display: none;
  }
}
