/* /works archive — standalone grid, not the homepage carousel */

.tm-works-archive {
  background: #f0f0f0;
  /* Clear fixed site header (ticker + nav) — same pattern as hero/services */
  padding: clamp(9.5rem, 14vw, 11.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.tm-works-archive .tm-works-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .tm-works-archive .tm-works-inner {
    padding: 0 1rem;
  }
}

.tm-works-archive .tm-works-count {
  margin: 0;
  text-align: center;
  font-family: Poppins, Outfit, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.tm-works-archive .tm-works-title {
  margin: 0.75rem 0 0;
  text-align: center;
  font-family: Outfit, Poppins, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #070606;
}

.tm-works-archive .tm-works-sub {
  margin: 1rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-family: Poppins, Outfit, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.65);
}

.tm-works-archive .tm-works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.75rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .tm-works-archive .tm-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1100px) {
  .tm-works-archive .tm-works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tm-works-archive .case-card {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  height: 100%;
  box-sizing: border-box;
}

.tm-works-archive .case-card > .group {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.tm-works-archive .case-card .card-shell {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.28);
}

.tm-works-archive .case-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tm-works-archive .case-media {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #070606;
  flex-shrink: 0;
}

.tm-works-archive .case-media img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.tm-works-archive .case-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  background: #fff;
}

.tm-works-archive .case-title {
  margin: 0;
  font-family: Poppins, Outfit, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  color: #020202;
}

.tm-works-archive .case-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.9rem 0 1.1rem;
  padding: 0;
}

.tm-works-archive .case-list > div {
  margin: 0;
}

.tm-works-archive .case-label {
  margin: 0;
  font-family: Poppins, Outfit, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 16px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #222;
}

.tm-works-archive .case-text {
  margin: 0.35rem 0 0;
  font-family: Poppins, Outfit, sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.88);
}

.tm-works-archive .case-btn {
  position: relative;
  z-index: 3;
  isolation: isolate;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin-top: auto;
  padding: 6px 6px 6px 18px;
  border: 0;
  border-radius: 999px;
  background: #EF4680;
  color: #fff !important;
  text-decoration: none !important;
  font-family: Poppins, Outfit, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.tm-works-archive .case-btn:hover,
.tm-works-archive .case-card:hover .case-btn {
  background: #C9245E;
  color: #fff !important;
}

.tm-works-archive .case-btn-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: #EF4680;
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.4s ease;
}

.tm-works-archive .case-btn:hover .case-btn-icon,
.tm-works-archive .case-card:hover .case-btn-icon {
  background: #fff;
  color: #C9245E;
  transform: rotate(-45deg);
}

.tm-works-archive .case-btn-icon svg {
  width: 18px;
  height: 18px;
}
