.works h2 {
  font-size: 1.4rem;
}
.works {
  transform: none;
}
.works {
  background: #fff;
  color: var(--ink);
  text-align: center;
}
.works h2 {
  margin: 0 0 54px;
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  letter-spacing: -0.06em;
}
.works-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  height: calc(clamp(260px, 34vw, 455px) + clamp(260px, 34vw, 455px) + 18px);
  max-width: 1100px;
  margin: 0 auto;
}
.works-column {
  display: grid;
  grid-template-rows: 0.84fr 1.16fr;
  gap: 18px;
  min-height: 0;
}
.works-column:nth-of-type(2) {
  grid-template-rows: 1.16fr 0.84fr;
}
.work-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #dededb;
  cursor: pointer;
}
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.83) contrast(0.9);
  transition:
    transform 0.45s ease,
    filter 0.35s ease;
}
.work-card:hover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1);
}
.work-card span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 22px;
  min-width: 170px;
  border-radius: 999px;
  background: var(--yellow);
  color: #1b1b1b;
  font:
    800 0.9rem Isidora,
    Arial,
    sans-serif;
}
.card-branding img {
  object-position: 44% 18%;
}
.card-culture img {
  object-position: 58% 38%;
}
.card-digital img {
  object-position: 36% 73%;
}
.card-space img {
  object-position: 67% 84%;
}
.work-rocket {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 186px;
  transform: translate(-50%, -50%) rotate(37deg);
  pointer-events: none;
  filter: drop-shadow(0 9px 8px rgba(0, 0, 0, 0.16));
}
.work-rocket::before {
  position: absolute;
  inset: 15px 20px 35px;
  content: "";
  border-radius: 58% 58% 45% 45%;
  background: var(--yellow);
  border: 5px solid var(--ink);
}
.work-rocket::after {
  position: absolute;
  left: 43px;
  top: 48px;
  width: 26px;
  height: 26px;
  content: "";
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}
.work-rocket i,
.work-rocket b,
.work-rocket em {
  position: absolute;
  display: block;
}
.work-rocket i {
  left: 3px;
  bottom: 40px;
  width: 38px;
  height: 45px;
  border: 5px solid var(--ink);
  border-radius: 90% 0 90% 0;
  background: #fff;
}
.work-rocket b {
  right: 3px;
  bottom: 40px;
  width: 38px;
  height: 45px;
  border: 5px solid var(--ink);
  border-radius: 0 90% 0 90%;
  background: #fff;
}
.work-rocket em {
  left: 39px;
  bottom: 0;
  width: 36px;
  height: 48px;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: #ff6a38;
}
.works-help {
  margin: 30px 0 0;
  color: #777;
  font-size: 0.9rem;
}
.work-modal {
  width: min(510px, calc(100% - 36px));
  border: 0;
  border-radius: 16px;
  padding: clamp(32px, 5vw, 62px);
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.25);
}
.work-modal::backdrop {
  background: rgba(27, 27, 27, 0.58);
  backdrop-filter: blur(3px);
}
.work-modal h2 {
  margin: 0 0 25px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.055em;
}
.work-modal blockquote {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.4;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
}
.example-note {
  margin: 28px 0 0;
  color: #777;
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 680px) {
  .works {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: -180px;
    transform: translateY(20%);
  }
  .works h2 {
    margin-bottom: 25px;
  }
  .works-grid {
    gap: 10px;
  }
  .work-card {
    min-height: 195px;
    border-radius: 9px;
  }
  .work-card span {
    min-width: 0;
    width: calc(100% - 20px);
    padding: 11px 8px;
    font-size: 0.72rem;
  }
  .work-rocket {
    width: 78px;
    height: 130px;
  }
  .work-rocket::before {
    inset: 11px 14px 25px;
    border-width: 3px;
  }
  .work-rocket::after {
    left: 30px;
    top: 33px;
    width: 18px;
    height: 18px;
    border-width: 3px;
  }
  .work-rocket i,
  .work-rocket b {
    bottom: 28px;
    width: 27px;
    height: 32px;
    border-width: 3px;
  }
  .work-rocket i {
    left: 2px;
  }
  .work-rocket b {
    right: 2px;
  }
  .work-rocket em {
    left: 27px;
    width: 25px;
    height: 34px;
  }
}
/* The image needs an explicit box to fill the fixed-height work cards. */
.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 680px) {
  .works-grid {
    height: 400px;
  }

  .works-column .work-card {
    min-height: 0;
  }
}
