.work-page {
  letter-spacing: 0;
  padding-top: 96px;
  padding-bottom: 120px;
}

@media (max-width: 640px) {
  .work-page {
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

.work-library-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.work-library-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 36px);
  line-height: 1.25;
  font-weight: 700;
  color: #111;
}

.work-library-lead {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #606060;
}

.work-filters {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}

.work-filters-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.work-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  max-width: 420px;
  min-width: 0;
}

.work-search-field {
  position: relative;
  display: block;
}

.work-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #606060;
  pointer-events: none;
}

.work-search-field input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  border: 1px solid #d2d2dd;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 14px 0 42px;
}

.work-search-field input::placeholder {
  color: #8a8a8a;
}

.work-search-field input:focus-visible {
  outline: 3px solid #1f18e2;
  outline-offset: 2px;
}

.work-filters-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.work-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.work-filter-label {
  display: block;
  height: 16px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #606060;
  text-transform: none;
  letter-spacing: 0;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-filter select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-width: 100%;
  border: 1px solid #d2d2dd;
  border-radius: 6px;
  background-color: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 36px 0 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111111' d='M1.41.59L6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-filter select:focus-visible {
  outline: 3px solid #1f18e2;
  outline-offset: 2px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  min-height: 24px;
}

.work-count {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #606060;
}

.work-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  color: #606060;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.work-filter-reset.is-active,
.work-filter-reset:hover {
  color: #1f18e2;
}

/* Axanteus-style case study cards */
.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.work-item {
  min-width: 0;
  border: 0;
}

.work-item[hidden] {
  display: none !important;
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #e8e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-4px);
  border-color: #d4d2ef;
  box-shadow: 0 16px 36px rgba(31, 24, 226, 0.12);
}

.work-card:focus-visible {
  outline: 3px solid #1f18e2;
  outline-offset: 2px;
}

.work-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eceaf8;
}

.work-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work-card:hover .work-card-media img,
.work-card:focus-visible .work-card-media img {
  transform: scale(1.04);
}

.work-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 22px 20px 20px;
}

.work-card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  color: #111;
}

.work-card:hover .work-card-title,
.work-card:focus-visible .work-card-title {
  color: #1f18e2;
}

.work-card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-card-meta li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  color: #444;
}

.work-card-meta .work-meta-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.work-card-meta li:nth-child(1) .work-meta-icon { color: #22a06b; }
.work-card-meta li:nth-child(2) .work-meta-icon { color: #6b7280; }
.work-card-meta li:nth-child(3) .work-meta-icon { color: #e11d48; }
.work-card-meta li:nth-child(4) .work-meta-icon { color: #2563eb; }

.work-card-meta strong {
  font-weight: 700;
  color: #222;
}

.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1f18e2;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.work-card:hover .work-card-cta,
.work-card:focus-visible .work-card-cta {
  background: #1712b8;
}

.work-empty {
  margin-top: 36px;
  font-size: 16px;
  line-height: 1.7;
  color: #606060;
}

.work-empty button {
  border: 0;
  background: transparent;
  color: #1f18e2;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .work-filters-top {
    flex-direction: column;
    align-items: stretch;
  }

  .work-search {
    max-width: none;
  }

  .work-filter-reset {
    padding: 0;
    justify-content: flex-start;
  }

  .work-filters-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-card-title {
    font-size: 18px;
  }
}
