/*
 * /experts/ hub (page-templates/tpl-experts-hub-v2.php) + the sub-industry grid on parent industry pages
 * (template-parts/experts-v2-subindustries.php). Loads after experts-v2.css (tokens, hero, fan, reviews,
 * buttons) and case-study-v2.css (.cs2-card, meeting CTA). Prefix exh-.
 */

/* Hero ---------------------------------------------------------------------- */
.exh .ex2-hero {
  padding: 64px 0 40px;
}

.exh .ex2-hero__h1 {
  font-size: 56px;
}

.exh-crumbs {
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  color: var(--text-3);
  font-size: 13px;
}

.exh-crumbs li + li::before {
  content: "\203A";
  margin-right: 8px;
}

.exh-crumbs a {
  color: var(--text-2);
}

.exh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 560px;
  margin: 30px 0 32px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}

.exh-stats li {
  padding: 16px 18px;
}

.exh-stats li + li {
  border-left: 1px solid var(--card-line);
}

.exh-stats__num {
  display: block;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

.exh-stats__num .ex2-stars {
  font-size: 16px;
  vertical-align: 8px;
  margin-left: 4px;
}

.exh-stats__lbl {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* Monochrome badge row */
.exh-badges {
  padding: 26px 0;
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
  background: rgba(0, 0, 0, .15);
}

.exh-badges ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exh-badges li {
  position: relative;
  line-height: 0;
  opacity: .72;
  transition: opacity .2s ease;
}

.exh-badges img {
  display: block;
  width: auto;
  height: 64px;
}

/* Mono badges are forced white regardless of the source file's own colour (some directory mono art is
   navy, not white); the colour art keeps its own colours. Same reveal-on-hover mechanism as the
   meeting-CTA / partner-strip badges elsewhere on the site (Mike, 2026-09-26 consistency pass). */
.exh-badges__mono {
  filter: brightness(0) invert(1);
}

.exh-badges__color {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .25s ease-out;
}

.exh-badges li:hover {
  opacity: 1;
}

.exh-badges__item--color:hover .exh-badges__color {
  opacity: 1;
}

.exh-badges__item--color:hover .exh-badges__mono {
  visibility: hidden;
  transition: visibility 0s .25s;
}

/* Industry cards ------------------------------------------------------------ */
.exh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exh-ind {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 22px 24px 22px 22px;
  border: 1px solid var(--card-line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.exh-ind:hover,
.exh-ind:focus-within {
  border-color: rgba(var(--ss-gold-rgb),.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.exh-collage {
  position: relative;
  display: block;
  height: 190px;
}

.exh-collage img {
  position: absolute;
  top: 0;
  width: 118px;
  height: auto;
  aspect-ratio: 290 / 350;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
  transition: transform .35s ease;
}

.exh-collage img:nth-child(1) {
  left: 0;
  transform: rotate(-7deg) translateY(14px);
  z-index: 1;
}

.exh-collage img:nth-child(2) {
  left: 41px;
  z-index: 3;
}

.exh-collage img:nth-child(3) {
  left: 82px;
  transform: rotate(7deg) translateY(14px);
  z-index: 2;
}

.exh-ind:hover .exh-collage img:nth-child(1) {
  transform: rotate(-10deg) translate(-6px, 12px);
}

.exh-ind:hover .exh-collage img:nth-child(3) {
  transform: rotate(10deg) translate(6px, 12px);
}

.exh-ind__body {
  min-width: 0;
}

.exh .exh-ind__name {
  margin: 0 0 6px;
  font-size: 24px;
  text-align: left;
}

.exh-ind__name a {
  color: #fff;
  text-decoration: none;
}

.exh-ind__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 18px;
}

.exh-ind__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.exh-ind__count strong {
  color: var(--gold);
}

.exh-badge-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(var(--ss-gold-rgb),.3);
  border-radius: 999px;
  background: rgba(var(--ss-gold-rgb),.08);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.exh-badge-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
}

.exh-ind__kids {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.exh-chip {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--card-line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.exh-chip:hover,
.exh-chip:focus {
  border-color: var(--gold);
  background: rgba(var(--ss-gold-rgb),.1);
  color: #fff;
  text-decoration: none;
}

.exh-ind__more {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.exh-ind__more:hover {
  color: var(--gold-soft);
}

/* All sub-industries -------------------------------------------------------- */
.exh-all {
  columns: 3;
  column-gap: 40px;
}

.exh-all__group {
  break-inside: avoid;
  margin: 0 0 30px;
  padding: 18px 20px;
  border: 1px solid var(--card-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
}

.exh .exh-all__head {
  margin: 0 0 10px;
  font-size: 17px;
  text-align: left;
}

.exh-all__head a {
  color: #fff;
}

.exh-all__head a:hover {
  color: var(--gold);
}

.exh-all ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exh-all li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .06);
  font-size: 14px;
}

.exh-all li:last-child {
  border-bottom: 0;
}

.exh-all li a {
  color: var(--text);
}

.exh-all li a:hover {
  color: var(--gold);
}

.exh-all li span {
  flex: 0 0 auto;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.exh-all .exh-all__var {
  padding-left: 14px;
  font-size: 13px;
}

.exh-all .exh-all__var a {
  color: var(--text-2);
}

/* Review strip */
.exh-revstrip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* no native bar (Mike 2026-09-27); arrows below instead */
}

.exh-revstrip::-webkit-scrollbar {
  display: none;
}

.exh-revstrip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.exh-rev__ctl {
  display: flex;
  justify-content: center; /* centred under the rail (alignment rule, Mike 2026-09-28) */
  gap: 10px;
  margin-top: 6px;
}

.exh-rev--fits .exh-rev__ctl {
  visibility: hidden;
}

.exh-rev__arr {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--card-line-strong, rgba(255, 255, 255, .18));
  border-radius: 50%;
  background: var(--card, var(--ss-navy));
  color: #fff;
  cursor: pointer;
  transition: border-color .15s;
}

.exh-rev__arr:hover:not(:disabled) {
  border-color: var(--gold);
}

.exh-rev__arr:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.exh-rev__arr:disabled {
  opacity: .4;
  cursor: default;
}

.exh-revstrip .ex2-review {
  scroll-snap-align: start;
  margin: 0;
}

.exh-revstrip .ex2-avatar--photo img {
  width: 48px;
  height: 48px;
}

@media (min-width: 1200px) {
  .exh-revstrip {
    grid-auto-columns: calc((100cqw - 54px) / 4); /* 4 per container width; the strip is full-bleed (.ss-bleed) */
  }
}

/* Sub-industry grid (parent industry pages) --------------------------------- */
.exh-subgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exh-sub__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 290 / 250;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  text-decoration: none;
}

.exh-sub__media {
  position: absolute;
  inset: 0;
}

.exh-sub__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop to the lower part of the 1160x1400 box: its baked-in logo sits top-left (64px in, <=260px tall, so it ends
     by y=324). Card 290:250 over a 1160:1400 image leaves the top (1 - (1160/1400)/(290/250)) = 28.6% of the box as
     slack; at 82% the crop starts 0.82 x 28.6% = 23.4% = y 328 of 1400, just under the logo band. The white logo is
     overlaid instead (.exh-sub__logo). */
  object-position: center 82%;
  transition: transform .15s ease;
}

.exh-sub__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--ss-navy-deep-rgb),0) 30%, rgba(var(--ss-navy-deep-rgb),.92) 100%);
}

.exh-sub__card:hover .exh-sub__img,
.exh-sub__card:focus .exh-sub__img {
  transform: scale(1.05);
}

.exh-sub__body {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
}

/* Client's white logo, bottom-left above the name (only when the case has one) */
.exh-sub__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 110px;
  max-height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45));
}

.exh-sub__name {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.exh-sub__count {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.exh-sub__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.exh-sub__chips .exh-chip {
  padding: 4px 10px;
  font-size: 12px;
}

/* "See all <industry> industries" under a sibling grid (category pages, experts-sibling-grids.json) */
.ex2 .exh-sub__all {
  margin: 28px 0 0;
  text-align: center;
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .exh-subgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .exh-ind {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
  }

  .exh-collage img {
    width: 100px;
  }

  .exh-collage img:nth-child(2) {
    left: 35px;
  }

  .exh-collage img:nth-child(3) {
    left: 70px;
  }

  .exh-collage {
    height: 165px;
  }
}

@media (max-width: 991.98px) {
  .exh .ex2-hero__h1 {
    font-size: 44px;
  }

  .exh-grid {
    grid-template-columns: 1fr;
  }

  .exh-all {
    columns: 2;
  }
}

@media (max-width: 767.98px) {
  .exh-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .exh-sub__name {
    font-size: 16px;
  }

  .exh-sub__logo {
    max-width: 84px;
    max-height: 32px;
    margin-bottom: 8px;
  }
}

@media (max-width: 575.98px) {
  .exh .ex2-hero {
    padding: 40px 0 28px;
  }

  .exh .ex2-hero__h1 {
    font-size: 36px;
  }

  .exh-stats__num {
    font-size: 26px;
  }

  .exh-stats li {
    padding: 12px;
  }

  .exh-stats__lbl {
    font-size: 12px;
  }

  .exh-badges img {
    height: 46px;
  }

  .exh-badges ul {
    gap: 14px 24px;
  }

  .exh-ind {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .exh-collage {
    height: 150px;
    width: 196px;
    margin: 0 auto;
  }

  .exh-collage img {
    width: 92px;
  }

  .exh-collage img:nth-child(2) {
    left: 52px;
  }

  .exh-collage img:nth-child(3) {
    left: 104px;
  }

  .exh .exh-ind__name {
    font-size: 21px;
  }

  .exh-all {
    columns: 1;
  }

  .exh-revstrip {
    grid-auto-columns: 86%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exh-ind,
  .exh-collage img,
  .exh-sub__img {
    transition: none;
  }
}

/* Compact variant (homepage v2 "Who we serve", template-parts/experts-hub-industry-card.php 'compact' => true):
   name + chips only, smaller fan, tighter padding; hover shortened to 0.2s (speed/reveal policy). */
.exh-grid--compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

/* 3 per row on a 6-track grid, so a lone last card (10 industries) sits centred instead of hanging left */
.exh-grid--compact > li {
  grid-column: span 2;
}

.exh-grid--compact > li:last-child:nth-child(3n+1) {
  grid-column: 3 / span 2;
}

.exh-ind--compact {
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px 16px 14px;
  border-radius: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.exh-ind--compact:hover,
.exh-ind--compact:focus-within {
  transform: none;
}

.exh-ind--compact .exh-collage {
  height: 124px;
}

.exh-ind--compact .exh-collage img {
  width: 76px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  transition: transform .2s ease;
}

.exh-ind--compact .exh-collage img:nth-child(1) {
  transform: rotate(-7deg) translateY(10px);
}

.exh-ind--compact .exh-collage img:nth-child(2) {
  left: 24px;
}

.exh-ind--compact .exh-collage img:nth-child(3) {
  left: 48px;
  transform: rotate(7deg) translateY(10px);
}

.exh-ind--compact:hover .exh-collage img:nth-child(1) {
  transform: rotate(-9deg) translate(-4px, 9px);
}

.exh-ind--compact:hover .exh-collage img:nth-child(3) {
  transform: rotate(9deg) translate(4px, 9px);
}

.exh-ind--compact .exh-ind__name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.exh-ind--compact .exh-ind__kids {
  gap: 6px;
  margin: 0;
}

.exh-ind--compact .exh-chip {
  padding: 5px 10px;
  font-size: 12.5px;
}

.exh-chip--more {
  color: var(--gold);
}

@media (max-width: 1199.98px) {
  .exh-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exh-grid--compact > li,
  .exh-grid--compact > li:last-child:nth-child(3n+1) {
    grid-column: auto;
  }
}

@media (max-width: 767.98px) {
  .exh-grid--compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .exh-ind--compact {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .exh-ind--compact .exh-collage {
    width: auto;
    height: 108px;
    margin: 0;
  }

  .exh-ind--compact .exh-collage img {
    width: 66px;
  }

  .exh-ind--compact .exh-collage img:nth-child(2) {
    left: 21px;
  }

  .exh-ind--compact .exh-collage img:nth-child(3) {
    left: 42px;
  }

  .exh-ind--compact .exh-ind__name {
    font-size: 18px;
  }
}

/* industries band on white (Mike 2026-09-28: "make this BG white, keep boxes navy"); the cards keep the navy tokens */
#exh-industries.ex2-sec { background: #fff; color: var(--ss-ink); }
#exh-industries .ex2-center-head h2 { color: var(--ss-ink); }
#exh-industries .ex2-center-head .ex2-hl { background: var(--ss-blue-shine); -webkit-background-clip: text; background-clip: text; color: transparent; }
#exh-industries .ex2-lede { color: var(--ss-ink-2); }
#exh-industries .ex2-eyebrow { display: none; }
#exh-industries .exh-ind { background: var(--ss-navy); border-color: rgba(var(--ss-navy-deep-rgb), .25); box-shadow: 0 14px 34px -18px rgba(var(--ss-navy-deep-rgb), .45); }
