/* New home page "Recent work" section (redesign, Nov 2026).
   Markup comes from acrox/local/patches/apply_home_redesign.py.
   Every rule is scoped to .acx-work so the old theme CSS is not affected. */
.acx-work {
  --work-orange: #ff9800;
  --work-mute: rgba(255, 255, 255, 0.58);
  background: #000;
  color: rgba(255, 255, 255, 0.9);
  font:
    400 17px/1.6 Outfit,
    system-ui,
    sans-serif;
  padding: clamp(64px, 9vw, 128px) 0;
}
.acx-work__wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.acx-work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.acx-work .acx-work__head h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
}
.acx-work a.acx-work__all {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--work-orange);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: none;
}
.acx-work a.acx-work__all:hover {
  color: var(--work-orange);
}

/* Two projects per row. The right-hand column sits lower, so the grid reads as a staggered wall. */
.acx-work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 32px;
}
.acx-work .acx-work__grid a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.acx-work__grid a:nth-child(even) {
  margin-top: 72px;
}
.acx-work__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 860;
  margin-bottom: 20px;
  border-radius: 20px;
  background: #111;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.acx-work__grid a:hover img {
  transform: translateY(-6px);
}
.acx-work .acx-work__grid h3 {
  margin: 0;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
}
.acx-work .acx-work__grid a:hover h3 {
  color: var(--work-orange);
}
.acx-work .acx-work__grid p {
  max-width: 520px;
  margin: 6px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--work-mute);
}
.acx-work a:focus-visible {
  outline: 2px solid var(--work-orange);
  outline-offset: 4px;
}

/* Phone: one project per row, no stagger. */
@media (max-width: 640px) {
  .acx-work {
    font-size: 16px;
  }
  .acx-work__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .acx-work__grid a:nth-child(even) {
    margin-top: 0;
  }
  .acx-work .acx-work__grid p {
    font-size: 16px;
  }
}
