/* ============================================================================
   industries.html — the "all industries" directory grid only.

   Loaded by industries.html alone (after industry-dark.css) so the shared
   classes it restyles (.heading-txt, .heading-7, .chips, .link-block-2) stay
   untouched on the ~620 vertical pages and the homepage that reuse them.
   Everything is scoped under #industries, which wraps the category grid.

   Does: centres the whole stack, enlarges the category headings, opens up the
   space between category groups, and flanks each heading with a gradient rule
   that terminates in a sparkle.
   ============================================================================ */

#industries {
  position: relative;
  isolation: isolate;
}

/* Ambient violet wash falling from the top of the grid. Purely atmospheric —
   sits behind the content and never intercepts pointer events. */
#industries::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(80% 30% at 50% 2%, rgba(73, 40, 253, .09), transparent 78%);
}

/* ---------- Group rhythm ---------- */
/* Base .div-block-211 is a 40px-gap column; category groups need room to read
   as separate blocks now that the headings carry more weight. */
#industries .div-block-211 {
  align-items: center;
  grid-row-gap: clamp(56px, 6vw, 92px);
  row-gap: clamp(56px, 6vw, 92px);
}

#industries .heading-txt {
  width: 100%;
  align-items: center;
  text-align: center;
  grid-row-gap: clamp(18px, 1.8vw, 26px);
  row-gap: clamp(18px, 1.8vw, 26px);
  scroll-margin-top: 120px;
}

/* ---------- Category heading ---------- */
/* The flanking sparkle rules come from css/sparkle-heading.css (.qs-sparkled).
   Base sets 24px/24px line-height and a 10px top margin; both are replaced.
   Stays a full step under the 48px page H1 so hierarchy holds. */
#industries .heading-7 {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* Stagger so the twelve groups never pulse in unison. */
#industries .heading-txt:nth-child(3n + 2) .qs-sparkled::before,
#industries .heading-txt:nth-child(3n + 2) .qs-sparkled::after { animation-delay: -1.7s; }
#industries .heading-txt:nth-child(3n + 3) .qs-sparkled::before,
#industries .heading-txt:nth-child(3n + 3) .qs-sparkled::after { animation-delay: -3.4s; }

/* ---------- Vertical pills ---------- */
/* Capped short of the container so wrapped rows stack as a centred column
   instead of one long ragged line. */
#industries .chips {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
  column-gap: 10px;
  row-gap: 10px;
}

#industries .link-block-2 {
  height: auto;
  padding: 8px 18px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: background-color .25s cubic-bezier(.22, 1, .36, 1),
              border-color .25s cubic-bezier(.22, 1, .36, 1),
              transform .25s cubic-bezier(.22, 1, .36, 1);
}

#industries .link-block-2:hover {
  background-color: rgba(73, 40, 253, .18);
  border-color: rgba(185, 129, 237, .55);
  transform: translateY(-1px);
}

#industries .link-block-2:focus-visible {
  outline: 2px solid #b981ed;
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  #industries .chips { max-width: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  #industries .link-block-2 { transition: none; }
  #industries .link-block-2:hover { transform: none; }
}
