/* Expertise on the home page (V04, Kevin's feedback doc point 4; expertise_html in build.py):
   the caps label and a heading, then five cards in a row (photo with the 0.5px red outline,
   number, title, one or two lines). Theme tokens, so it follows light and dark. */
.xp {
  padding: max(96px, 12svh) max(16px, 4.6vw);
  background: var(--color-theme-bg);
  color: var(--color-theme-fg);
}
.xp-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.xp-caps {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-theme-muted);
}
.xp-h {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(32px, 3.6vw, 72px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.xp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.xp-card { display: grid; align-content: start; gap: 10px; }
.xp-shot { margin: 0 0 8px; aspect-ratio: 3 / 4; overflow: clip; border-radius: 4px; }
.xp-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  outline: 0.5px solid var(--red, #ff2a1f);
  outline-offset: -0.5px;
  box-shadow: inset 0 0 0 0.5px var(--red, #ff2a1f);
  transition: scale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.xp-card:hover .xp-shot img { scale: 1.04; }
.xp-n { font-size: 11px; letter-spacing: 0.1em; color: var(--color-theme-muted); font-variant-numeric: tabular-nums; }
.xp-title { margin: 0; font-size: clamp(22px, 1.7vw, 34px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.xp-text { margin: 0; max-width: 32ch; font-size: clamp(14px, 0.95vw, 18px); line-height: 1.45; color: var(--color-theme-muted); }

@media (max-width: 1100px) {
  .xp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 640px) {
  .xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp-shot { aspect-ratio: 4 / 5; }
}
