.works {
  padding: 105px 0;
  background: #0f120f;
  overflow: hidden;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.work-card {
  min-height: 580px;
  border: 1px solid #30352f;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #171a17;
}
.work-copy { padding: 28px 30px 22px; position: relative; z-index: 2; }
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .7rem;
  letter-spacing: .13em;
  font-weight: 800;
  color: #a7aca4;
}
.work-card h3 {
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1;
  margin: 28px 0 14px;
  letter-spacing: -.045em;
}
.work-card p { color: #b7bbb4; max-width: 500px; margin: 0; line-height: 1.7; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.work-tags span {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .68rem;
  font-weight: 700;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  color: #111310;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.project-link:hover { transform: translateY(-2px); background: #c8ff43; }
.work-visual {
  height: 300px;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  padding: 28px 24px 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 110%, rgba(255,255,255,.25), transparent 62%);
}
.work-visual img {
  width: 42%;
  height: 350px;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  transform: rotate(-3deg);
  border: 1px solid rgba(255,255,255,.3);
}
.work-visual img + img { transform: translateY(34px) rotate(3deg); }
.work-visual.single img { width: 52%; transform: none; }
.work-ustaz { background: linear-gradient(160deg,#291a18 0%,#171a17 42%); }
.work-ustaz .work-meta,.work-ustaz h3 { color:#ff665f; }
.work-restart { background: linear-gradient(160deg,#102f4b 0%,#171a17 45%); }
.work-restart .work-meta,.work-restart h3 { color:#64b8ff; }
.work-aman { background: linear-gradient(160deg,#0d3e35 0%,#171a17 45%); }
.work-aman .work-meta,.work-aman h3 { color:#7fe2c0; }
.work-erp { background: linear-gradient(160deg,#253647 0%,#171a17 45%); }
.work-erp .work-meta,.work-erp h3 { color:#4cd6b5; }
.erp-stack { gap: 0; }
.erp-stack img { width: 34%; transform: translateY(34px) rotate(-6deg); }
.erp-stack img:nth-child(2) { z-index: 2; transform: translateY(0); }
.erp-stack img:nth-child(3) { transform: translateY(34px) rotate(6deg); }
@media (max-width: 850px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 550px; }
}
@media (max-width: 520px) {
  .works { padding: 75px 0; }
  .work-card { min-height: 515px; border-radius: 24px; }
  .work-copy { padding: 24px 22px 18px; }
  .work-card h3 { margin-top: 22px; }
  .work-visual { height: 250px; padding-inline: 12px; }
  .work-visual img { height: 290px; width: 47%; border-radius: 16px 16px 0 0; }
  .work-visual.single img { width: 58%; }
  .erp-stack img { width: 38%; }
}

.contact { grid-template-columns: 1fr; }
.contact-copy { max-width: 760px; }
.service-grid article:last-child { grid-column: 1 / -1; min-height: 260px; }
@media (max-width: 850px) {
  .service-grid article:last-child { grid-column: auto; min-height: 315px; }
}
