.project-card-caption {
  inset: 0;
  align-items: end;
  padding: 1.1rem;
  background: rgb(0 0 0 / 62%);
}
.project-card-title { font-size: 1.84rem; line-height: 1.05; }
.project-card-category { flex-shrink: 0; color: var(--category-color, #d2d2d2); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--highlight-color, var(--text)); }
.site-brand img { width: auto; max-width: min(180px, 35vw); max-height: 56px; }
.contact-form { max-width: 36rem; margin: auto; }
.contact-form label { display: block; margin-bottom: .5rem; }
.contact-form input:not([type=hidden]), .contact-form textarea {
  display: block; width: 100%; padding: .8rem; margin-bottom: 1.35rem;
  font: inherit; color: inherit; background: #141414; border: 1px solid #555;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form button { padding: .75rem 1.25rem; font: inherit; color: inherit; background: #171717; border: 1px solid #666; cursor: pointer; }
.site-footer, .footer-details { gap: .8rem; }
.footer-details, .footer-socials { display: flex; align-items: center; }
.footer-details { justify-content: flex-end; flex-wrap: wrap; text-align: right; }
.footer-socials { gap: .35rem; }
.footer-socials:empty { display: none; }
.footer-socials > * { display: grid; place-items: center; width: 32px; height: 32px; }
.footer-socials svg { width: 18px; height: 18px; }
.footer-socials a:hover { color: var(--accent); }
.back-to-top { flex-shrink: 0; }
.preview-video { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 1rem; }
@media (hover: none) {
  .project-card-caption { opacity: 1; background: linear-gradient(transparent 45%, rgb(0 0 0 / 80%)); }
}
@media (max-width: 760px) {
  .project-card-title { font-size: 1.35rem; }
  .project-card-category { display: inline; }
  .project-card-caption { flex-wrap: wrap; align-content: end; gap: .35rem .75rem; }
}
@media (hover: hover) {
  .project-card:not(:hover):not(:focus-visible) .project-card-caption { opacity: 0; }
}
.portfolio-filter { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .85rem; }
body:has(.work-section, .project-page) .site-header { min-height: 67px; padding-bottom: .9rem; }
@media (max-width: 760px) {
  body:has(.work-section, .project-page) .site-header { min-height: 52px; padding-bottom: .5rem; }
}
.portfolio-filter button { padding: .35rem 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #aaa; font: inherit; font-size: .78rem; cursor: pointer; }
.portfolio-filter button:hover, .portfolio-filter button[aria-pressed="true"] { color: var(--highlight-color, var(--text)); }
.portfolio-filter button[aria-pressed="true"] { border-bottom-color: var(--highlight-color, var(--accent)); }
.portfolio-filter button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-card[hidden] { display: none; }
