.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker div { animation: none; }
}

/* Compact proof-of-work strip for the landing page */
.works .section-head h2 {
  max-width: 760px;
  font-size: clamp(36px, 4vw, 58px);
}

.works .gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 1px;
  background: #343638;
  margin-top: 54px;
  border: 1px solid #343638;
}

.works .gallery figure,
.works .gallery .wide {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0f1113;
}

.works .gallery figure > img {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  background: #f4f4f2;
}

.works .gallery figure.art-card > img {
  object-fit: contain;
}

.works .gallery figure:hover > img {
  filter: none;
  transform: scale(1.018);
}

.works .gallery figcaption {
  position: static;
  min-height: 104px;
  padding: 15px 14px 14px;
  background: #0f1113;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.works .gallery figcaption b {
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
}

.works .gallery figcaption b a:hover {
  color: #ff7645;
}

.works .gallery figcaption span {
  font-size: 9px;
  line-height: 1.35;
}

.works .gallery figcaption i {
  display: none;
}

.portfolio-link {
  margin-top: 30px;
  text-align: left;
}

.portfolio-button {
  width: auto;
  min-width: 230px;
}

@media (max-width: 900px) {
  .works .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .works .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: -20px;
    padding-right: 20px;
  }
  .works .gallery figure {
    flex: 0 0 70vw;
    scroll-snap-align: start;
  }
  .works .gallery figcaption { min-height: 92px; }
}
