.skills {
  height: 695px;
  background-color: var(--color-background);
  background-image: radial-gradient(
    ellipse 347.807px 328.19px at 17.5px 364.5px,
    rgb(var(--color-primary-rgb) / 30%) 0%,
    var(--color-background) 100%
  );
}

.skills__inner {
  position: relative;
  width: var(--content-width);
  height: 100%;
  margin-inline: auto;
}

.skills__introduction {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 520px;
  height: 551px;
}

.skills__eyebrow {
  width: 148px;
  height: 28px;
  margin: 0;
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.skills__card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 520px;
  height: 503px;
  padding: 31px;
  border: 1px solid var(--color-primary);
  border-radius: 30px;
  background-color: rgb(var(--color-primary-rgb) / 10%);
}

.skills__card h2 {
  width: 456px;
  height: 64px;
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 64px;
  line-height: 64px;
  letter-spacing: -0.03em;
}

.skills__copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 456px;
  height: 247px;
}

.skills__description {
  width: 456px;
  height: 132px;
  margin: 0;
  font-size: 18px;
  line-height: 22px;
  text-align: justify;
}

.skills__contact-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 331px;
  height: 83px;
}

.skills__contact-copy p {
  margin: 0;
}

.skills__question {
  width: 331px;
  height: 29px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 29px;
  white-space: nowrap;
}

.skills__question-highlight {
  color: var(--color-primary);
}

.skills__contact-copy > p:last-child {
  width: 331px;
  height: 38px;
  font-size: 16px;
  line-height: 19px;
}

.skills__contact-button {
  width: 122px;
  flex: 0 0 48px;
}

.skills__grid {
  position: absolute;
  top: 48px;
  left: 616px;
  display: grid;
  grid-template-columns: repeat(4, 104px);
  grid-auto-rows: 116px;
  gap: 40px 72px;
  width: 632px;
  height: 428px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills__item {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  width: 104px;
  height: 116px;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 22px;
  text-align: center;
}

.skills__item--compact {
  letter-spacing: -0.03em;
}

.skills__grid--reveal-ready .skills__item {
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease-out;
}

.skills__grid--reveal-ready .skills__item--visible,
.skills__grid--reveal-ready .skills__item:focus-within {
  opacity: 1;
  pointer-events: auto;
}

.skills__icon {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
}

.skills__icon img {
  width: 60px;
  height: 60px;
  transition: transform 150ms ease-in;
}

.skills__item:hover .skills__icon img {
  transform: scale(1.0667);
}

.skills__item > span:last-child {
  min-height: 44px;
}

.skills__item--growth {
  gap: 0;
}

.skills__growth-trigger {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  width: 104px;
  height: 116px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.skills__growth-label {
  min-height: 44px;
  transition: color 150ms ease-in;
}

.skills__item--growth:hover,
.skills__item--growth:focus-within,
.skills__item--growth.is-open {
  z-index: 1;
}

.skills__item--growth:hover .skills__growth-label,
.skills__item--growth:focus-within .skills__growth-label,
.skills__item--growth.is-open .skills__growth-label {
  color: var(--color-primary);
}

.skills__growth-tooltip {
  position: absolute;
  top: -109px;
  left: 0;
  width: 188px;
  height: 112px;
  padding: 8px 10.5px;
  border-radius: 16px;
  background-color: var(--color-text);
  color: var(--color-primary);
  font-family: var(--font-body);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 300ms ease-out,
    visibility 0s linear 300ms;
}

.skills__growth-tooltip::after {
  position: absolute;
  top: 112px;
  left: 40px;
  width: 26px;
  height: 17px;
  background-color: var(--color-text);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
}

.skills__item--growth:hover .skills__growth-tooltip,
.skills__item--growth:focus-within .skills__growth-tooltip,
.skills__item--growth.is-open .skills__growth-tooltip {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.skills__growth-tooltip p {
  width: 167px;
  height: 38px;
  margin: 0;
  font-size: 16px;
  line-height: 19px;
  text-align: center;
}

.skills__growth-technologies {
  display: flex;
  justify-content: center;
  gap: 16px;
  height: 50px;
  margin-top: 8px;
}

.skills__growth-technologies > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  height: 50px;
}

.skills__growth-technologies img {
  width: 32px;
  height: 32px;
}

.skills__growth-technologies span span {
  font-size: 12px;
  font-weight: 700;
  line-height: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .skills__grid--reveal-ready .skills__item {
    transition-duration: 450ms !important;
  }

  .skills__icon img,
  .skills__growth-label {
    transition-duration: 150ms !important;
  }

  .skills__growth-tooltip {
    transition-duration: 300ms, 0s !important;
  }
}

@keyframes mobile-skill-state {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.0667);
  }
}

@media (min-width: 61.9375rem) and (max-width: 89.9375rem) {
  .skills {
    zoom: calc(100vw / 90rem);
  }
}

@media (max-width: 990px) {
  .skills {
    height: auto;
    margin-bottom: 100px;
  }

  .skills__inner {
    position: static;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 40px;
    width: calc(100% - 32px);
    height: auto;
  }

  .skills__introduction {
    position: static;
    gap: 15px;
    width: 358px;
    max-width: 100%;
    height: auto;
  }

  .skills__eyebrow {
    width: 111px;
    height: 21px;
    font-size: 18px;
    line-height: 21px;
  }

  .skills__card {
    gap: 32px;
    width: 358px;
    max-width: 100%;
    height: auto;
    padding: 23px 31px;
  }

  .skills__card h2 {
    width: 294px;
    max-width: 100%;
    height: 45px;
    font-size: clamp(42px, calc(18vw - 14px), 56px);
    line-height: 45px;
    white-space: nowrap;
  }

  html[lang="de"] .skills__card h2 {
    font-size: clamp(33px, calc(15.72vw - 17.3px), 44px);
  }

  .skills__copy {
    gap: 24px;
    width: 294px;
    max-width: 100%;
    height: auto;
  }

  .skills__description {
    width: 294px;
    max-width: 100%;
    height: auto;
    font-size: 16px;
    line-height: 19px;
    text-align: left;
  }

  .skills__contact-copy {
    gap: 12px;
    width: 276px;
    max-width: 100%;
    height: auto;
  }

  .skills__question {
    width: 276px;
    max-width: 100%;
    height: 24px;
    font-size: clamp(18px, 5.13vw, 20px);
    line-height: 24px;
  }

  .skills__contact-copy > p:last-child {
    width: 276px;
    max-width: 100%;
    height: auto;
    font-size: 16px;
    line-height: 19px;
  }

  .skills__grid {
    position: static;
    grid-template-columns: repeat(3, 104px);
    grid-auto-rows: 110px;
    gap: 32px 16px;
    width: 358px;
    max-width: 100%;
    height: auto;
  }

  .skills__item,
  .skills__growth-trigger {
    width: 104px;
    height: 110px;
  }

  .skills__item {
    gap: 8px;
    font-size: 16px;
    line-height: 19px;
  }

  .skills__item--growth {
    gap: 0;
  }

  .skills__item > span:last-child,
  .skills__growth-label {
    min-height: 38px;
  }

  .skills__icon img {
    animation: mobile-skill-state 300ms ease-in 100ms forwards;
  }

  .skills__item--growth:not(.is-open) .skills__growth-tooltip {
    opacity: 0;
    visibility: hidden;
    transition-delay: 0s, 300ms;
  }

  .skills__item--growth.is-open .skills__growth-tooltip {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
}

@media (max-width: 376px) {
  .skills__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 4px;
  }

  .skills__item,
  .skills__growth-trigger {
    width: 100%;
  }
}

@media (max-width: 990px) and (prefers-reduced-motion: reduce) {
  .skills__icon img {
    animation-duration: 300ms !important;
  }
}
