/* Industries is an explorable fan, distinct from the homepage's sliding rail
   and Services' grid. Enhancement is conditional; the static grid still works. */
.industry-sector-tags[hidden] { display: none !important; }
.vp-industries.is-fan .vp-gallery {
  --fan-spread: 228px;
  display: block;
  position: relative;
  height: 620px;
  overflow: clip;
  isolation: isolate;
  perspective: 1600px;
  scroll-snap-type: none;
}
.vp-industries.is-fan .vp-card {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 340px;
  height: 480px;
  margin: 0;
  --fan-lift: 0px;
  --fan-unfold: 1;
  transform-origin: 50% 95%;
  transform: translate3d(calc(-50% + var(--fan-slot) * var(--fan-spread)), calc(var(--fan-distance) * 25px + var(--fan-lift)), calc(var(--fan-distance) * -45px)) rotate(calc(var(--fan-slot) * 9deg * var(--fan-unfold)));
  box-shadow: 0 18px 32px rgb(0 0 0 / .13);
  transition: transform .65s cubic-bezier(.22,.8,.25,1), opacity .35s ease, box-shadow .3s ease;
  opacity: 1;
  cursor: pointer;
}
.vp-industries.is-fan .vp-card.is-offstage {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.vp-industries.is-fan .vp-card.is-active { box-shadow: 0 26px 48px rgb(0 0 0 / .2); cursor: auto; }
.vp-industries.is-fan .vp-card:not(.is-active) a,
.vp-industries.is-fan .vp-card:not(.is-active) button { pointer-events: none; }
.vp-industries.is-fan .vp-card:not(.is-active) .vp-industry-info { opacity: 0; }
.vp-industries.is-fan .vp-card:not(.is-active) .vp-industry-link { opacity: .5; }
@media (hover: hover) and (pointer: fine) {
  .vp-industries.is-fan .vp-card:hover { --fan-lift: -18px; --fan-unfold: .45; box-shadow: 0 30px 52px rgb(0 0 0 / .2); }
}
.fan-selectors { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 0 auto 15px; max-width: 1060px; }
.fan-chip {
  appearance: none;
  border: 1px solid var(--vp-rule);
  border-radius: 22px;
  padding: 11px 16px;
  min-height: 44px;
  background: transparent;
  color: var(--vp-muted);
  font: 500 13px/1.4 var(--fd);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.fan-chip[aria-pressed="true"] { color: var(--vp-dialog); background: var(--vp-ink); border-color: var(--vp-ink); }
.fan-chip:focus-visible, .fan-arrow:focus-visible, .fan-picker select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.fan-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: -10px; }
.fan-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--vp-dialog);
  color: var(--vp-ink);
  border: 1px solid var(--vp-rule);
  font: 24px/1 var(--fd);
  cursor: pointer;
  flex-shrink: 0;
}
.fan-status { color: var(--vp-muted); min-width: 210px; text-align: center; font: 500 13px/1.6 var(--fd); }
.fan-picker { display: none; }
@media (max-width: 1050px) {
  .vp-industries.is-fan .vp-gallery { --fan-spread: 195px; }
  .vp-industries.is-fan .vp-card { width: 320px; }
}
@media (max-width: 680px) {
  .fan-selectors { display: none; }
  .fan-picker { display: flex; flex-direction: column; gap: 10px; margin: 0 auto 10px; max-width: 390px; color: var(--vp-muted); font-size: 13px; }
  .fan-picker select { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--vp-rule); background: var(--vp-dialog); color: var(--vp-ink); font: 500 16px/1.4 var(--fd); }
  .vp-industries.is-fan .vp-gallery { --fan-spread: 125px; height: 560px; margin-inline: -18px; }
  .vp-industries.is-fan .vp-card { top: 25px; width: min(300px, calc(100% - 64px)); height: 470px; }
  .vp-industries.is-fan .vp-card h3 { font-size: 26px; }
  .fan-controls { gap: 12px; }
  .fan-status { min-width: 0; flex: 1; font-size: 12px; }
  .fan-arrow { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-industries.is-fan .vp-card, .fan-chip { transition: none; }
  .vp-industries.is-fan .vp-card:hover { --fan-lift: 0px; --fan-unfold: 1; }
}
