/* Industries index — 02 All industries */

@keyframes cw-industries-index-all-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-industries-index-all {
  background: #f3efe7;
  color: #141210;
  padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 40px);
  font-family: 'Inter', system-ui, sans-serif;
  box-sizing: border-box;
  width: 100%;
}

.cw-industries-index-all__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.cw-industries-index-all__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.cw-industries-index-all__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #e0431c;
}

.cw-industries-index-all__title {
  margin: 12px 0 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.8vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.cw-industries-index-all__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #e0431c;
}

.cw-industries-index-all__tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cw-industries-index-all__search-wrap {
  display: block;
}

.cw-industries-index-all__search {
  width: min(260px, 70vw);
  border: 1.5px solid #141210;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #141210;
}

.cw-industries-index-all__search:focus {
  border-color: #e0431c;
}

.cw-industries-index-all__views {
  display: flex;
  border: 1.5px solid #141210;
  border-radius: 999px;
  overflow: hidden;
}

.cw-industries-index-all__view {
  border: none;
  background: transparent;
  color: #141210;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cw-industries-index-all__view.is-active {
  background: #141210;
  color: #f3efe7;
}

.cw-industries-index-all__view:focus-visible {
  outline: 2px solid #e0431c;
  outline-offset: 2px;
}

.cw-industries-index-all__filters {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cw-industries-index-all__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cw-industries-index-all__group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #141210;
  background: transparent;
  color: #141210;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.cw-industries-index-all__group.is-active {
  background: #141210;
  color: #f3efe7;
}

.cw-industries-index-all__group-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  opacity: 0.65;
}

.cw-industries-index-all__result-note {
  margin: 0 0 0 auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: #6b645a;
}

.cw-industries-index-all__jump {
  position: sticky;
  top: 62px;
  z-index: 20;
  margin: 14px -8px 0;
  padding: 8px;
  background: rgba(243, 239, 231, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cw-industries-index-all__jump::-webkit-scrollbar {
  display: none;
}

.cw-industries-index-all__jump-label {
  flex: none;
  align-self: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #6b645a;
  padding: 0 6px;
}

.cw-industries-index-all__jump-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8d0c2;
  background: #fff;
  color: #141210;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, opacity 0.3s;
}

.cw-industries-index-all__jump-btn:hover,
.cw-industries-index-all__jump-btn:focus-visible {
  border-color: #141210;
  outline: none;
}

.cw-industries-index-all__jump-btn.is-dim {
  opacity: 0.45;
}

.cw-industries-index-all__jump-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.cw-industries-index-all__match {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #141210;
  color: #f3efe7;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13.5px;
  animation: cw-industries-index-all-in 0.3s ease both;
}

.cw-industries-index-all__match-kicker {
  color: #d4f53c;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cw-industries-index-all__match-clear {
  margin-left: auto;
  border: 1px solid rgba(243, 239, 231, 0.25);
  background: none;
  color: #f3efe7;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.cw-industries-index-all__grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 12px;
}

.cw-industries-index-all__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #e4ddd0;
  border-radius: 24px;
  overflow: hidden;
  color: #141210;
  text-decoration: none;
  scroll-margin-top: 140px;
  transition: transform 0.2s ease-out, box-shadow 0.35s, opacity 0.3s, border-color 0.3s;
  transform: perspective(900px) translateY(0) rotateX(0) rotateY(0);
  animation: cw-industries-index-all-in 0.35s ease both;
}

.cw-industries-index-all__card:hover,
.cw-industries-index-all__card:focus-visible {
  color: #141210;
  outline: none;
}

.cw-industries-index-all__card.is-hov {
  border-color: #141210;
  box-shadow: 0 24px 50px -24px rgba(20, 18, 16, 0.5);
  transform: perspective(900px) translateY(-6px) rotateX(var(--cw-industries-index-all-rx, 0deg))
    rotateY(var(--cw-industries-index-all-ry, 0deg));
}

.cw-industries-index-all__card.is-dim {
  opacity: 0.4;
}

.cw-industries-index-all__card.is-hidden {
  display: none;
}

.cw-industries-index-all__card-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--cw-industries-index-all-gx, 50%) var(--cw-industries-index-all-gy, 50%),
    rgba(255, 255, 255, var(--cw-industries-index-all-ga, 0)),
    transparent 60%
  );
  transition: opacity 0.3s;
}

.cw-industries-index-all__card.is-hov .cw-industries-index-all__card-shine {
  --cw-industries-index-all-ga: 0.55;
}

.cw-industries-index-all__card-art {
  position: relative;
  height: 170px;
  background: var(--cw-industries-index-all-accent, #d4f53c);
  overflow: hidden;
}

.cw-industries-index-all__card-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
}

.cw-industries-index-all__card-meta {
  position: absolute;
  left: 18px;
  top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cw-industries-index-all-ink, #141210);
  opacity: 0.75;
  z-index: 1;
}

.cw-industries-index-all__card-ab {
  position: absolute;
  right: -6px;
  bottom: -26px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 150px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--cw-industries-index-all-ink, #141210);
  opacity: 0.9;
  transform: scale(1);
  transform-origin: right bottom;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}

.cw-industries-index-all__card.is-hov .cw-industries-index-all__card-ab {
  transform: scale(1.12);
}

.cw-industries-index-all__card-hit {
  position: absolute;
  left: 18px;
  bottom: 14px;
  background: #141210;
  color: #d4f53c;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  z-index: 2;
}

.cw-industries-index-all__card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cw-industries-index-all__card-title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cw-industries-index-all__card-blurb {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4a443c;
}

.cw-industries-index-all__card-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 30px;
  overflow: hidden;
  transition: max-height 0.4s;
}

.cw-industries-index-all__card.is-hov .cw-industries-index-all__card-caps {
  max-height: 90px;
}

.cw-industries-index-all__card-caps span {
  background: #f3efe7;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11.5px;
}

.cw-industries-index-all__card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  font-weight: 700;
  font-size: 13.5px;
}

.cw-industries-index-all__card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #141210;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}

.cw-industries-index-all__card.is-hov .cw-industries-index-all__card-arrow {
  background: #e0431c;
  transform: rotate(-45deg);
}

.cw-industries-index-all__list {
  margin-top: 22px;
  border-top: 1.5px solid #141210;
}

.cw-industries-index-all__row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.3fr) minmax(0, 1.6fr) 44px;
  gap: 18px;
  align-items: center;
  padding: 18px 8px;
  border-bottom: 1px solid #d8d0c2;
  color: #141210;
  text-decoration: none;
  transition: background 0.25s, opacity 0.3s;
}

.cw-industries-index-all__row:hover,
.cw-industries-index-all__row:focus-visible {
  color: #141210;
  background: #fff;
  outline: none;
}

.cw-industries-index-all__row.is-hov {
  background: #fff;
}

.cw-industries-index-all__row.is-dim {
  opacity: 0.4;
}

.cw-industries-index-all__row.is-hidden {
  display: none;
}

.cw-industries-index-all__row-no {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #6b645a;
}

.cw-industries-index-all__row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cw-industries-index-all__row-ab {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--cw-industries-index-all-accent, #d4f53c);
  color: var(--cw-industries-index-all-ink, #141210);
  display: grid;
  place-items: center;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 15px;
}

.cw-industries-index-all__row-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(17px, 1.7vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cw-industries-index-all__row-blurb {
  font-size: 14px;
  line-height: 1.5;
  color: #4a443c;
}

.cw-industries-index-all__row-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #141210;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s;
}

.cw-industries-index-all__row.is-hov .cw-industries-index-all__row-arrow {
  background: #e0431c;
  transform: rotate(-45deg);
}

.cw-industries-index-all__empty {
  margin-top: 22px;
  padding: 40px;
  border: 1.5px dashed #141210;
  border-radius: 24px;
  text-align: center;
  font-size: 15px;
}

.cw-industries-index-all__empty a {
  color: #e0431c;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .cw-industries-index-all__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cw-industries-index-all__row-no {
    display: none;
  }

  .cw-industries-index-all__row-arrow {
    justify-self: start;
  }

  .cw-industries-index-all__result-note {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-industries-index-all__card,
  .cw-industries-index-all__card-ab,
  .cw-industries-index-all__card-arrow,
  .cw-industries-index-all__row-arrow {
    transition: none;
    animation: none;
  }

  .cw-industries-index-all__card.is-hov {
    transform: translateY(-4px);
  }
}
