* {
  box-sizing: border-box;
}

body.skills-page-body {
  margin: 0;
  min-height: 100vh;
  background: #f3efe7;
  color: #111933;
  font-family: "Community Pro", sans-serif;
}

.skills-page {
  --skills-page-side-padding: 40px;
  height: calc(100vh - var(--landing-topbar-height, 64px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--landing-stage-gap, clamp(14px, 2.2vh, 24px));
  padding: var(--landing-stage-padding-block, clamp(14px, 2.2vh, 24px)) var(--landing-stage-padding-inline, clamp(16px, 3vw, 40px));
  overflow: hidden;
}

.skills-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  min-height: 0;
}

.skills-header h1 {
  margin: 0;
  font-size: clamp(25px, 2.8vw, 45px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.skills-header-copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  max-width: 520px;
  min-width: 0;
  flex: 0 1 auto;
}

.skills-header-copy p {
  margin: 0;
  color: rgba(17, 25, 51, 0.58);
  font-size: clamp(11px, 1.05vw, 18px);
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.skills-header-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #dbe8fc;
  color: #17407e;
  font-size: 18px;
  flex-shrink: 0;
}

.skills-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.skills-header + .skills-section {
  margin-top: 24px;
}

.skills-section + .skills-section {
  /* margin-top: -24px; */
}

.skills-section-labels {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

.skills-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}

.skills-tag-primary {
  background: #173f7e;
  color: #fff;
}

.skills-tag-count {
  background: #f6cf46;
  color: #111933;
}

.skills-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(300px, 39.6vh, 524px);
  gap: clamp(20px, 2.8vh, 32px);
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
  padding-bottom: 6px;
  margin-right: calc(var(--skills-page-side-padding) * -1);
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 64, 126, 0.3) transparent;
}

.skills-card {
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skills-card:hover,
.skills-card:focus-visible {
  transform: translateY(-2px);
}

.skills-card-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: clamp(16px, 2.2vh, 24px);
  background: #fff;
  aspect-ratio: 1.775 / 1;
}

.skills-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skills-card-meta {
  position: absolute;
  left: clamp(8px, 1vh, 12px);
  right: clamp(8px, 1vh, 12px);
  bottom: clamp(6px, 0.9vh, 10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skills-play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(24px, 3vh, 34px);
  height: clamp(24px, 3vh, 34px);
  padding: 0;
  border-radius: 50%;
  background: rgba(83, 86, 99, 0.72);
  color: #fff;
  font-size: 0;
}

.skills-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: clamp(5px, 0.65vh, 8px) solid transparent;
  border-bottom: clamp(5px, 0.65vh, 8px) solid transparent;
  border-left: clamp(8px, 1vh, 12px) solid currentColor;
}

.skills-duration {
  display: none;
}

.skills-card h2 {
  margin: clamp(6px, 0.9vh, 10px) 0 0;
  font-size: clamp(14px, 2vh, 30px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 500;
}

@media (max-width: 900px) {
  .skills-page {
    height: auto;
    min-height: 100vh;
    --skills-page-side-padding: 20px;
    padding: 28px 20px 30px;
    grid-template-rows: auto;
    overflow: visible;
  }

  .skills-header {
    flex-direction: column;
  }

  .skills-header-copy {
    max-width: none;
  }

  .skills-header-copy p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .skills-page {
    --skills-page-side-padding: 14px;
    padding: 22px 14px 26px;
  }

  .skills-carousel {
    grid-auto-columns: minmax(260px, 280px);
  }
}

.page-topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.page-logo {
  width: clamp(66px, 5.7vw, 109px);
  max-width: 100%;
  display: block;
  height: auto;
}
