/* A diagram of support, not absorption. All explanatory copy stays in flow. */
.expertise { display: block; }
.expertise-heading {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: end;
  gap: 8%;
}
.expertise-heading h2 { max-width: 17ch; }
.expertise-intro { position: static; align-self: end; padding-bottom: 5px; }
.expertise-intro > p:not(.section-label) { margin-top: 0; }
.expertise-intro .text-link { margin-top: 24px; }
.cabinet-assembly { margin: 54px auto 62px; }
.cabinet-scene {
  position: relative;
  isolation: isolate;
  width: min(100%, 1100px);
  height: 530px;
  margin-inline: auto;
}
.cabinet-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cabinet-connections path {
  fill: none;
  stroke: var(--red);
  stroke-opacity: .3;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transform-box: view-box;
  transform-origin: 500px 500px;
}
.cabinet-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 238px;
  height: 238px;
  border: 1px solid var(--red);
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  text-align: center;
}
.cabinet-center img { width: 38px; height: 38px; object-fit: contain; margin-bottom: 14px; }
.cabinet-center p { font-family: var(--serif); font-weight: 500; font-size: 48px; letter-spacing: -.05em; line-height: .93; }
.cabinet-center span { font-size: 12px; line-height: 1.4; margin-top: 16px; }
.cabinet-resource { position: absolute; width: 190px; transform: translate(-50%, -50%); z-index: 1; }
.cabinet-resource:nth-of-type(2) { left: 17%; top: 23%; }
.cabinet-resource:nth-of-type(3) { left: 50%; top: 11%; }
.cabinet-resource:nth-of-type(4) { left: 83%; top: 23%; }
.cabinet-resource:nth-of-type(5) { left: 83%; top: 77%; }
.cabinet-resource:nth-of-type(6) { left: 50%; top: 89%; }
.cabinet-resource:nth-of-type(7) { left: 17%; top: 77%; }
.cabinet-resource-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cabinet-resource img { width: 36px; height: 36px; object-fit: contain; margin-bottom: 12px; background: var(--cream); box-shadow: 0 0 0 12px var(--cream); }
.cabinet-resource span { display: block; max-width: 100%; padding: 2px 8px; background: var(--cream); font-size: 16px; line-height: 1.45; font-weight: 400; }
.cabinet-assembly figcaption { margin-top: 42px; text-align: center; font-size: 15px; line-height: 1.7; }
.cabinet-assembly figcaption span { color: var(--red); font-weight: 500; }
.expertise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; border-top: 0; }
.expertise-list article { display: block; border-top: 1px solid var(--line); border-bottom: 0; padding: 28px 0 24px; }
.expertise-list .group-icon { display: none; }
.expertise-list h3 { font-size: 30px; max-width: 18ch; }
.expertise-list p { font-size: 15px; }

@media (max-width: 900px) {
  .expertise-heading { grid-template-columns: 1fr; gap: 28px; }
  .expertise-heading h2 { max-width: 18ch; }
  .cabinet-scene { height: 490px; }
  .cabinet-center { width: 206px; height: 206px; }
  .cabinet-center p { font-size: 42px; }
  .cabinet-resource { width: 150px; }
  .expertise-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (max-width: 640px) {
  .expertise-heading h2 { max-width: 15ch; }
  .expertise-heading h2 br { display: none; }
  .cabinet-assembly { margin-block: 30px 42px; }
  .cabinet-scene { height: 420px; }
  .cabinet-center { width: 142px; height: 142px; }
  .cabinet-center img { width: 25px; height: 25px; margin-bottom: 9px; }
  .cabinet-center p { font-size: 32px; }
  /* On a phone the sentence cannot fit inside the narrow lower arc. The
     surrounding caption and approved copy already carry the autonomy promise. */
  .cabinet-center span { display: none; }
  .cabinet-resource { width: 104px; }
  .cabinet-resource[data-x="50"] { width: 144px; }
  .cabinet-resource img { width: 28px; height: 28px; margin-bottom: 10px; box-shadow: 0 0 0 8px var(--cream); }
  .cabinet-resource span { font-size: 14px; padding-inline: 3px; }
  .cabinet-assembly figcaption { margin: 30px auto 0; max-width: 24ch; font-size: 14px; }
  .expertise-list { grid-template-columns: 1fr; }
  .expertise-list article { padding-block: 22px; }
  .expertise-list h3 { font-size: 29px; max-width: none; }
  .expertise-list p { font-size: 15px; }
}
@media (max-width: 360px) {
  .cabinet-scene { height: 440px; }
  .cabinet-center { width: 128px; height: 128px; }
  .cabinet-center p { font-size: 29px; }
  .cabinet-resource { width: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .expertise-list article { opacity: 1 !important; transform: none !important; }
  .cabinet-resource-content { transform: none !important; opacity: 1 !important; }
  .cabinet-connections path { transform: none !important; opacity: 1 !important; }
}

@media print {
  .expertise-list article { opacity: 1 !important; transform: none !important; }
}
