.demo-gallery { padding-block: 1.75rem 2.5rem; border-top: 1px solid #b68a514d }
.demo-gallery > header { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: 1.6rem }
.demo-gallery h2 { font-size: clamp(1.85rem, 3.4vw, 3.25rem); margin: .3rem 0 0; line-height: 1.1 }
.demo-gallery > header > p { color: #d1d6db; max-width: 36ch; margin: 0 }
.gallery-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1.5rem }
.gallery-controls[hidden], .demo-card[hidden] { display: none }
.gallery-controls button { padding: .52rem .9rem; border: 1px solid #ad895764; border-radius: 100vw; background: #09141e; color: #f5eee3; font: inherit; cursor: pointer }
.gallery-controls button[aria-pressed="true"] { background: #eac28a; border-color: #eac28a; color: #17202a }
.gallery-count { padding: .25rem; color: #d1d6db; font-size: .9rem }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(1rem, 2vw, 1.4rem) }
.demo-card { background: #0b1821; border: 1px solid #b68a5159; border-radius: 1rem; overflow: hidden; transition: border-color .25s, box-shadow .25s }
.demo-card > a { display: block; height: 100%; color: inherit; text-decoration: none }
.demo-card > a:focus-visible { outline-offset: -4px }
.demo-card-photo { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #152430 }
.demo-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.22,.8,.24,1) }
.demo-card-photo span { position: absolute; top: .75rem; left: .75rem; padding: .3rem .65rem; background: #081119f0; color: #fff5e4; border-radius: 100vw; font-size: .75rem }
.demo-card-copy { display: flex; justify-content: space-between; align-items: start; gap: .8rem; padding: 1.1rem }
.demo-card-copy h3 { font-size: 1.17rem; margin: 0 0 .34rem }
.demo-card-copy p { margin: 0; color: #ccd4db; font-size: .91rem; line-height: 1.45 }
.demo-card-arrow { display: grid; flex: 0 0 2rem; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid #b68a5166; color: #f3cc96; transition: background .25s, color .25s }
.demo-card:focus-within, .demo-card:hover { border-color: #eac28a; box-shadow: 0 .65rem 1.7rem #0004 }
.demo-card:focus-within img, .demo-card:hover img { transform: scale(1.055) }
.demo-card:focus-within .demo-card-arrow, .demo-card:hover .demo-card-arrow { background: #eac28a; color: #17202a }
.portfolio-project-heading { margin-block: 1.5rem 1rem }
@media (prefers-reduced-motion: reduce) {
  .demo-card, .demo-card-photo img, .demo-card-arrow { transition: none }
}
