/* Project cards link directly to the published site. */
.case-section {
  padding: 110px 0;
  background: var(--ui-surface);
  scroll-margin-top: 90px
}
.case-heading {
  max-width: 850px;
  margin-bottom: 56px
}
.case-heading h2 {
  font-size: clamp(34px,4.5vw,62px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 400;
  margin: 16px 0
}
.case-heading>p:last-child {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ui-muted)
}

@media(max-width:760px){
.case-section {
  padding: 70px 0
}
.case-heading {
  margin-bottom: 32px
}
.case-heading>p:last-child {
  font-size: 17px
}
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 32px
}
.case-tile {
  min-width: 0
}
.case-open {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  font: inherit;
  color: var(--ui-ink);
  background: transparent;
  border: 0;
  cursor: pointer
}
.case-cover {
  position: relative;
  display: block;
  padding: 24px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1.5
}
.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: 0 14px 30px #1a1a1a20
}
.case-cover-action {
  position: absolute;
  right: 36px;
  bottom: 36px;
  background: #fff;
  color: var(--ui-ink);
  padding: 11px 16px;
  border-radius: 50px;
  font-size: 15px;
  box-shadow: 0 4px 16px #1a1a1a18
}
.case-tile-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 2px
}
.case-tile-category {
  font-size: 15px;
  color: var(--ui-muted)
}
.case-tile-info strong {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.02em
}
.case-tile-info>span:last-child {
  font-size: 18px;
  color: var(--ui-muted);
  line-height: 1.5
}

@media(max-width:760px){
.case-gallery {
  grid-template-columns: 1fr;
  gap: 24px
}
.case-cover {
  padding: 18px
}
.case-cover-action {
  right: 28px;
  bottom: 28px
}
.case-tile-info strong {
  font-size: 22px
}
.case-tile-info>span:last-child {
  font-size: 17px
}
}

@media(prefers-reduced-motion:reduce){
.case-cover img {
  transition: none
}
}
.case-gallery:has(>.case-tile:only-child) {
  grid-template-columns: minmax(0,460px);
  justify-content: center
}
.case-open {
  text-decoration: none
}
.case-cover-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}
