@font-face {
  font-family: Geist;
  src: url("assets/geist-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter-300.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}

.cases {
  padding: 0 48px 220px;
  background: #fff;
  color: #0f0e16;
}

.cases-inner {
  max-width: 1344px;
  margin-inline: auto;
}

.cases-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 96.35px;
}

.cases-label {
  margin: 0 0 16.35px;
  color: #d96a15;
  font: 400 22px/22px Inter, sans-serif;
}

.cases h2 {
  margin: 0;
  color: #0d0616;
  font: 600 50px/58.3px Inter, sans-serif;
  letter-spacing: -.8px;
}

.mobile-break {
  display: none;
}

.cases-more,
.case-read {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0a0a0a;
  font: 400 20px/28px Inter, sans-serif;
}

.cases-more {
  flex-shrink: 0;
  margin-bottom: 4.65px;
  letter-spacing: -.5px;
}

.cases-more img,
.case-read img {
  display: block;
  transform: rotate(45deg);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-card {
  min-width: 0;
}

.case-card-link {
  display: block;
}

.case-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
}

.case-photo,
.case-photo img,
.case-photo::after {
  position: absolute;
  inset: 0;
}

.case-photo {
  z-index: -1;
}

.case-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-photo::after {
  content: "";
  background: rgba(0, 0, 0, .4);
}

.case-logo img {
  display: block;
  max-width: none;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 12px;
  padding: 0;
  list-style: none;
  font: 400 16px/14px Inter, sans-serif;
  letter-spacing: -.56px;
}

.case-tags li {
  padding: 10px;
  border-radius: 4px;
  background: #8a5fb8;
  color: #fff;
}

.case-card--hays .case-tags {
  font-size: 14px;
}

.case-tags--mobile,
.case-divider {
  display: none;
}

.case-card h3 {
  min-height: 57.2px;
  margin: 0 0 21px;
  font: 500 26px/28.6px Geist, sans-serif;
  letter-spacing: -1px;
}

.case-card-link:hover h3,
.cases-more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .cases {
    padding: 0 32px 120px;
  }

  .cases h2 {
    font-size: 38px;
    line-height: 1.15;
  }

  .cases-header {
    margin-bottom: 64px;
  }

  .case-card h3 {
    font-size: 22px;
    line-height: 1.2;
  }

  .case-tags {
    gap: 6px;
    font-size: 12px;
  }

  .case-tags li {
    padding: 8px;
  }
}

@media (max-width: 767px) {
  .cases {
    padding: 32px 16px;
    background: #faf9f8;
  }

  .cases-header {
    margin-bottom: 44px;
  }

  .cases-label {
    margin-bottom: 16px;
    color: #ff5b00;
    font-size: 18.8px;
    line-height: 22px;
    letter-spacing: -.376px;
  }

  .cases h2 {
    color: #000;
    font-size: 32px;
    font-weight: 500;
    line-height: 34px;
    letter-spacing: -1px;
  }

  .mobile-break {
    display: inline;
  }

  .cases-more,
  .case-tags--desktop,
  .case-read {
    display: none;
  }

  .cases-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .case-card--hays {
    order: 0;
  }

  .case-card--f64 {
    order: 1;
  }

  .case-card--timisoara {
    order: 2;
  }

  .case-visual {
    aspect-ratio: auto;
    height: 260px;
    border-radius: 6px;
  }

  .case-photo::after {
    background: rgba(0, 0, 0, .26);
  }

  .case-card--f64 .case-photo img {
    inset: auto;
    width: 124.44%;
    height: 114.24%;
    left: -9.52%;
    top: -11.16%;
    object-fit: fill;
  }

  .case-tags--mobile {
    display: flex;
    gap: 12px;
    margin: 15px 0 14px;
    font-size: 12px;
    font-weight: 300;
    line-height: 13px;
    letter-spacing: 0;
  }

  .case-card--hays .case-tags--mobile {
    font-size: 12px;
  }

  .case-tags li {
    padding: 10px 12px;
    background: #502d7f;
  }

  .case-card h3 {
    min-height: 0;
    margin: 0;
    color: #0a0a0a;
    font-size: 20px;
    font-weight: 400;
    line-height: 22.4px;
    letter-spacing: -.2px;
  }

  .case-card--hays h3 {
    max-width: 348px;
  }

  .case-divider {
    display: block;
    height: 1px;
    margin-top: 40px;
    overflow: hidden;
  }

  .case-divider img {
    display: block;
    transform: rotate(.16deg);
    transform-origin: left top;
  }

  .case-card--timisoara .case-divider {
    display: none;
  }
}
