.case-archive {
  padding-block: clamp(48px, 6vw, 96px) clamp(68px, 8vw, 132px);
  scroll-margin-top: 22px;
}
.case-archive [hidden] { display: none; }
.case-archive-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.case-archive-header h2 {
  margin: 0;
  font: 450 clamp(40px, 5.2vw, 84px)/1 var(--site-font);
  letter-spacing: -.055em;
}
.case-archive-header p {
  margin: 0;
  color: #afb6c4;
  font-size: 15px;
}
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  border-bottom: 1px solid #353a43;
  padding-bottom: 20px;
}
.case-filters label { position: relative; }
.case-filters label::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 45%;
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.case-filters select, .case-filters button {
  min-height: 44px;
  border: 1px solid #525a67;
  border-radius: 99px;
  background: #11151b;
  color: #f2f2f0;
  font: 470 15px/1.15 var(--site-font);
  cursor: pointer;
}
.case-filters select { appearance: none; padding: 8px 37px 8px 17px; }
.case-filters select:has(option:checked:not([value=""])) { border-color: #9fb6ff; }
.case-filters button {
  padding-inline: 8px;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.case-filters select:focus-visible, .case-link:focus-visible { outline: 2px solid #a5bbff; outline-offset: 4px; }
.case-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(38px, 4vw, 68px) clamp(16px, 2vw, 34px);
  padding: 0;
  margin: clamp(26px, 3vw, 48px) 0 0;
  list-style: none;
}
.case-item { grid-column: span 4; --cover-ratio: 4 / 3; min-width: 0; }
@media (min-width: 901px) {
  .case-item:nth-child(7n + 1 of :not([hidden])), .case-item:nth-child(7n of :not([hidden])) {
    grid-column: span 8;
    --cover-ratio: 16 / 9;
  }
}
.case-link { display: block; border-radius: 10px; }
.case-cover {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(10px, 1vw, 18px);
  aspect-ratio: var(--cover-ratio);
  background: #1d2635;
}
.case-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-cover .case-alternate { opacity: 0; }
.case-cover .case-alternate[data-active] { opacity: 1; }
.case-arrow {
  display: grid;
  place-items: center;
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f1f0eb;
  color: #121721;
  font: 480 23px/1 var(--site-font);
}
.case-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 15px 0 6px; }
.case-tags span { color: #c1c9d7; font-size: 13px; font-weight: 470; line-height: 1.25; }
.case-tags [data-industry] {
  border: 1px solid #454b57;
  border-radius: 99px;
  padding: 3px 9px;
}
.case-link h3 {
  font: 470 clamp(24px, 2.25vw, 40px)/1.08 var(--site-font);
  letter-spacing: -.044em;
  margin: 0;
}
.case-empty { margin: 48px 0; font-size: 20px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .case-link:hover .case-arrow { color: #fff; background: #154fdf; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .case-cover img { transition: transform .55s cubic-bezier(.2,.65,.3,1); }
  .case-link:hover .case-cover img { transform: scale(1.035); }
}
@media (min-width: 561px) and (max-width: 900px) {
  .case-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-item { grid-column: span 1; }
  .case-item:nth-child(3n + 1 of :not([hidden])) { grid-column: span 2; --cover-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .case-archive-header { flex-direction: column; gap: 10px; }
  .case-mosaic { grid-template-columns: 1fr; }
  .case-item { grid-column: 1; --cover-ratio: 16 / 10; }
  .case-tags { margin-top: 12px; }
  .case-arrow { width: 36px; font-size: 20px; }
}
