.team-detail {
  background: var(--color-black, #0a0909);
  color: var(--color-white, #ffffff);
  overflow: hidden;
}

.team-detail-container {
  padding-right: clamp(1rem, 1.8vw, 2rem);
  padding-left: clamp(1rem, 1.8vw, 2rem);
}

.team-detail-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--color-black, #0a0909);
  color: var(--color-white, #ffffff);
  overflow: hidden;
  isolation: isolate;
}

.team-detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.team-detail-hero-bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
  transform: scale(1.04);
}

.team-detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(10, 9, 9, 0.88) 0%,
      rgba(10, 9, 9, 0.58) 40%,
      rgba(10, 9, 9, 0.3) 68%,
      rgba(10, 9, 9, 0.76) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 9, 9, 0.22) 0%,
      rgba(10, 9, 9, 0.22) 48%,
      rgba(10, 9, 9, 0.96) 100%
    );
  pointer-events: none;
}

.team-detail-hero-container {
  position: relative;
  z-index: 3;
  min-height: inherit;
}

.team-detail-hero-row {
  min-height: inherit;
  padding-top: clamp(7rem, 9vw, 10rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

.team-detail-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: calc(100vh - clamp(10rem, 14vw, 15rem));
  min-height: calc(100svh - clamp(10rem, 14vw, 15rem));
}

.team-detail-hero-heading {
  width: 100%;
}

.team-detail-title {
  max-width: 52rem;
  margin: 0;
  color: rgba(227, 222, 214, 0.82);
  font-family: var(--font-headline);
  font-size: clamp(4rem, 8vw, 11rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.team-detail-role {
  margin: clamp(1rem, 1.5vw, 1.5rem) 0 0;
  color: rgba(227, 222, 214, 0.82);
  font-family: var(--font-headline);
  font-size: clamp(1rem, 1.3vw, 1.6rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.team-detail-portrait {
  width: min(24vw, 26rem);
  min-width: 18rem;
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background: var(--color-base, #e3ded6);
}

.team-detail-portrait-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.team-detail-hero-copy {
  max-width: 48rem;
  margin-bottom: clamp(3rem, 7vw, 8rem);
}

.team-detail-intro-headline {
  margin: 0 0 clamp(1rem, 1.5vw, 1.5rem);
  text-transform: uppercase;
}

.team-detail-intro-text {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.22vw, 1.5rem);
  line-height: 1.35;
}

.team-detail-intro-text p {
  margin-bottom: 1.15em;
}

.team-detail-intro-text p:last-child {
  margin-bottom: 0;
}

.team-detail-info {
  background: var(--color-black, #0a0909);
  color: var(--color-white, #ffffff);
  padding: clamp(4rem, 6vw, 7rem) 0 clamp(4rem, 7vw, 8rem);
}

.team-detail-facts {
  position: sticky;
  top: clamp(6rem, 8vw, 8rem);
  max-width: 28rem;
}

.team-detail-facts-title {
  margin: 0 0 clamp(1.5rem, 2vw, 2.5rem);
  color: var(--color-skitour, #8297a8);
  font-family: var(--font-headline);
  font-size: clamp(1rem, 1.15vw, 1.35rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.team-detail-facts-list {
  width: 100%;
}

.team-detail-fact {
  padding: 0 0 clamp(1.1rem, 1.5vw, 1.5rem);
  margin-bottom: clamp(1.1rem, 1.5vw, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.team-detail-fact:last-child {
  margin-bottom: 0;
}

.team-detail-fact-label {
  margin: 0 0 0.3rem;
  color: var(--color-white, #ffffff);
  font-family: var(--font-headline);
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.team-detail-fact-text {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.1vw, 1.25rem);
  line-height: 1.25;
}

.team-detail-fact-text p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.team-detail-slider-wrap {
  position: relative;
  overflow: hidden;
}

.team-detail-slider {
  margin-right: -0.7rem;
  margin-left: -0.7rem;
}

.team-detail-slider:not(.slick-initialized) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.team-detail-slider:not(.slick-initialized)
  .team-detail-slide:nth-child(n + 3) {
  display: none;
}

.team-detail-slide {
  height: auto;
  padding-right: 0.7rem;
  padding-left: 0.7rem;
}

.team-detail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-base, #e3ded6);
  color: var(--color-black, #0a0909);
}

.team-detail-card-label {
  position: absolute;
  top: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(2.7rem, 3vw, 3.35rem);
  padding: 0.75rem clamp(1rem, 1.4vw, 1.5rem);
  background: var(--color-black, #0a0909);
  color: var(--color-white, #ffffff);
  font-family: var(--font-headline);
  font-size: clamp(0.9rem, 1vw, 1.15rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.team-detail-card-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(5rem, 5vw, 6rem) clamp(1.5rem, 2.3vw, 2.8rem)
    clamp(2.2rem, 3vw, 3.5rem);
}

.team-detail-card-headline {
  margin: 0 0 clamp(1.2rem, 1.7vw, 2rem);
  color: var(--color-black, #0a0909);
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 2.45vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}

.team-detail-card-text {
  max-width: 42rem;
  color: var(--color-black, #0a0909);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.35vw, 1.65rem);
  line-height: 1.24;
}

.team-detail-card-text p {
  margin-bottom: 1.1em;
}

.team-detail-card-text p:last-child {
  margin-bottom: 0;
}

.team-detail-card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem clamp(1.2rem, 2vw, 2rem);
  margin-top: clamp(1.5rem, 2vw, 2.5rem);
}

.team-detail-card-tag {
  display: inline-flex;
  color: var(--color-black, #0a0909);
  font-family: var(--font-headline);
  font-size: clamp(0.95rem, 1.05vw, 1.2rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.team-detail-slider-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 2vw, 2.4rem);
}

.team-detail-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.2rem, 3.8vw, 4.4rem);
  height: clamp(3.2rem, 3.8vw, 4.4rem);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white, #ffffff);
  cursor: pointer;
  transition:
    background var(--transition-default, 0.25s ease),
    transform var(--transition-default, 0.25s ease);
}

.team-detail-slider-arrow:hover,
.team-detail-slider-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.3);
}

.team-detail-slider-arrow:focus-visible {
  outline: 2px solid var(--color-white, #ffffff);
  outline-offset: 3px;
}

.team-detail-slider-arrow span::before {
  display: block;
  color: var(--color-white, #ffffff);
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 2.25vw, 2.6rem);
  line-height: 1;
  transform: translateY(-0.05em);
}

.team-detail-slider-arrow--prev span::before {
  content: "←";
}

.team-detail-slider-arrow--next span::before {
  content: "→";
}

.team-detail-slider-arrow--prev:hover,
.team-detail-slider-arrow--prev:focus-visible {
  transform: translateX(-0.15rem);
}

.team-detail-slider-arrow--next:hover,
.team-detail-slider-arrow--next:focus-visible {
  transform: translateX(0.15rem);
}

.team-detail .slick-list {
  overflow: visible;
}

.team-detail .slick-track {
  display: flex;
}

.team-detail .slick-slide {
  height: auto;
}

.team-detail .slick-slide > div {
  height: 100%;
}

.team-detail .slick-slide .team-detail-slide {
  height: 100%;
}

.team-detail-page-content {
  background: var(--color-light, #f5f5f5);
  color: var(--color-black, #0a0909);
  padding: clamp(4rem, 6vw, 7rem) 0;
}

.team-detail-page-content-inner > *:first-child {
  margin-top: 0;
}

.team-detail-page-content-inner > *:last-child {
  margin-bottom: 0;
}

.team-detail-page-content-inner .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

@media (max-width: 1399.98px) {
  .team-detail-title {
    font-size: clamp(3.8rem, 7.5vw, 9.4rem);
  }

  .team-detail-card-headline {
    font-size: clamp(1.7rem, 2.25vw, 2.8rem);
  }
}

@media (max-width: 1199.98px) {
  .team-detail-title {
    font-size: clamp(3.4rem, 7vw, 8rem);
  }

  .team-detail-portrait {
    width: min(28vw, 23rem);
    min-width: 16rem;
  }

  .team-detail-card {
    min-height: clamp(32rem, 54vw, 43rem);
  }

  .team-detail-card-text {
    font-size: clamp(1rem, 1.25vw, 1.35rem);
  }
}

@media (max-width: 991.98px) {
  .team-detail-hero {
    min-height: auto;
  }

  .team-detail-hero-row {
    min-height: auto;
    padding-top: clamp(7rem, 18vw, 9rem);
    padding-bottom: clamp(3rem, 8vw, 5rem);
  }

  .team-detail-hero-left {
    min-height: auto;
    gap: clamp(2rem, 8vw, 3rem);
  }

  .team-detail-title {
    font-size: clamp(3.4rem, 15vw, 6.4rem);
  }

  .team-detail-portrait {
    width: min(70vw, 22rem);
    min-width: 0;
    aspect-ratio: 1 / 1;
  }

  .team-detail-hero-copy {
    max-width: 42rem;
    margin-top: clamp(3rem, 10vw, 5rem);
    margin-bottom: 0;
  }

  .team-detail-intro-headline {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .team-detail-intro-text {
    font-size: clamp(1rem, 4vw, 1.22rem);
  }

  .team-detail-facts {
    position: relative;
    top: auto;
    max-width: none;
  }

  .team-detail-slider-wrap {
    padding-top: clamp(1rem, 4vw, 2rem);
  }

  .team-detail-card {
    min-height: auto;
  }

  .team-detail-card-body {
    min-height: clamp(28rem, 70vw, 36rem);
  }

  .team-detail-slider-arrows {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .team-detail-title {
    font-size: clamp(3rem, 16vw, 5.2rem);
  }

  .team-detail-role {
    font-size: 1rem;
  }

  .team-detail-hero-bg-image {
    object-position: center;
  }

  .team-detail-info {
    padding: clamp(3.5rem, 10vw, 5rem) 0;
  }

  .team-detail-slider:not(.slick-initialized) {
    grid-template-columns: 1fr;
  }

  .team-detail-slider:not(.slick-initialized)
    .team-detail-slide:nth-child(n + 2) {
    display: none;
  }

  .team-detail-card-body {
    min-height: auto;
    padding-bottom: clamp(5rem, 18vw, 6.5rem);
  }

  .team-detail-card-headline {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }

  .team-detail-card-text {
    font-size: 1.05rem;
  }

  .team-detail-card-tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  .team-detail-container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .team-detail-title {
    font-size: clamp(2.8rem, 17vw, 4.5rem);
  }

  .team-detail-portrait {
    width: 100%;
    max-width: 20rem;
  }

  .team-detail-card-body {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .team-detail-page-content {
    padding: clamp(3.5rem, 10vw, 5rem) 0;
  }
}

@media (max-height: 760px) and (min-width: 992px) {
  .team-detail-title {
    font-size: clamp(3.2rem, 6.5vw, 8rem);
  }

  .team-detail-portrait {
    width: min(20vw, 20rem);
  }

  .team-detail-intro-headline {
    font-size: clamp(1.7rem, 2.2vw, 3rem);
  }

  .team-detail-intro-text {
    font-size: clamp(0.95rem, 1.05vw, 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-detail-hero-bg-image,
  .team-detail-card-link,
  .team-detail-slider-arrow {
    transition: none;
    transform: none !important;
  }
}
