/* ==========================================================================
   EXPERTISE  ·  "What I bring"
   Six paper cards on a deeper cream ground. The card language is lifted
   straight from the brand book's symbolism page: a short copper dash, a
   light title, quiet body copy, soft 8px corners.
   ========================================================================== */

.expertise {
  background-color: var(--cream-shade);
}

.expertise__grid {
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 40rem) {
  .expertise__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .expertise__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }
}

.skill {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  background-color: var(--cream-paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(var(--forest-rgb), 0.06);
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

/* The copper dash, which lengthens on hover like a pen stroke. */
.skill::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  inline-size: 2rem;
  block-size: 2px;
  background-color: var(--copper);
  transition: inline-size var(--dur-mid) var(--ease-out);
}

.skill:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgba(var(--forest-rgb), 0.08);
}

.skill:hover::before {
  inline-size: 4.5rem;
}

.skill__icon {
  inline-size: 2.25rem;
  block-size: 2.25rem;
  margin-block: var(--space-xs) var(--space-2xs);
  color: var(--forest);
}

.skill__title {
  font-size: var(--step-h4);
  font-weight: 400;
  line-height: var(--leading-snug);
}

.skill__text {
  font-size: var(--step-small);
  line-height: 1.65;
}

@media (max-width: 39.99rem) {
  .skill {
    align-items: center;
    text-align: center;
  }

  .skill::before {
    inset-inline-start: 50%;
    transform: translateX(-50%);
  }
}
