#work .work-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: clamp(1.65rem,3.5vw,3.1rem);
}
#work .work-heading h2 { margin-block: 0; }
#work-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .38rem; padding-bottom: .25rem; }
#work button, #project-dialog button, #project-dialog a { -webkit-tap-highlight-color: transparent; }
#work .aim-filter, #work .aim-more-button, #project-dialog .aim-frame-control {
  font: 600 .875rem/1.2 'DM Sans',sans-serif;
  cursor: pointer;
  color: #f5f3ed;
  background: transparent;
}
#work .aim-filter {
  border: 1px solid #484842;
  border-radius: 99px;
  min-height: 2.65rem;
  padding: .56rem 1.05rem;
  transition: background .15s, color .15s, border-color .15s;
}
#work .aim-filter:hover { border-color: #aaa9a1; }
#work .aim-filter[aria-pressed="true"] { background: #f2f0e8; border-color: #f2f0e8; color: #171715; }
#project-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(2.3rem,4.5vw,4rem) clamp(.9rem,1.7vw,1.7rem);
}
#work .aim-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  color: #f2f0e8;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
#work .aim-card-visual {
  position: relative;
  display: block;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.57;
  overflow: hidden;
  background: #242420;
  border-radius: 3px;
}
#work .aim-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.65,.3,1);
}
#work .aim-card:hover .aim-card-visual img, #work .aim-card:focus-visible .aim-card-visual img { transform: scale(1.035); }
#work .aim-media-badge {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .22rem;
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 .45rem;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 25px;
  background: rgba(10,10,8,.68);
  color: #f8f7f3;
  font: 650 .8rem/1 'DM Sans',sans-serif;
}
#work .aim-media-badge svg { width: 1.06rem; height: 1.06rem; }
#work .aim-card-caption { display: flex; flex-direction: column; gap: .32rem; padding-top: .95rem; }
#work .aim-project-title {
  font: 800 clamp(1.55rem,2.18vw,2.35rem)/1.02 'Barlow Condensed',Impact,sans-serif;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
#work .aim-project-credit { font: 450 .9375rem/1.45 'DM Sans',sans-serif; color: #bdbab2; }
#more-work { display: flex; justify-content: center; }
#work .aim-more-button {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-height: 3rem;
  margin-top: clamp(2rem,4.3vw,3.7rem);
  border: 1px solid #77756e;
  border-radius: 999px;
  padding: .75rem 1.3rem;
}
#work .aim-more-button:hover { border-color: #f5f3ed; }
#work .aim-more-sign { color: #ff754f; font-size: 1.3rem; font-weight: 400; }
#work button:focus-visible, #project-dialog :is(button,a):focus-visible { outline: 3px solid #ff815e; outline-offset: 4px; }
html.aim-project-open { overflow: hidden; }
#project-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(54rem,calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid #494741;
  color: #f4f1eb;
  background: #151513;
  border-radius: 7px;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 18px 70px #0009;
}
#project-dialog:not([open]) { display: none; }
#project-dialog::backdrop { background: rgba(0,0,0,.86); }
#project-dialog .aim-dialog-head, #project-dialog .aim-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.35rem; }
#project-dialog .aim-dialog-titles { min-width: 0; }
#project-dialog .aim-dialog-credit { margin: 0 0 .3rem; font: 500 .875rem/1.3 'DM Sans',sans-serif; color: #cfcbc2; }
#project-dialog .aim-dialog-title { margin: 0; font: 800 clamp(1.9rem,3.1vw,3rem)/1 'Barlow Condensed',Impact,sans-serif; text-transform: uppercase; letter-spacing: -.01em; }
#project-dialog .aim-dialog-close {
  display: grid;
  flex-shrink: 0;
  place-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0 0 .1rem;
  border: 1px solid #6b6860;
  color: #f4f1eb;
  background: transparent;
  border-radius: 50%;
  font: 300 1.8rem/1 'DM Sans',sans-serif;
  cursor: pointer;
}
#project-dialog .aim-dialog-close:hover, #project-dialog .aim-frame-control:hover { background: #34332f; }
#project-dialog .aim-dialog-stage { display: grid; place-items: center; width: 100%; background: #080807; }
#project-dialog .aim-lightbox-image, #project-dialog .aim-film-player {
  display: block;
  width: 100%;
  height: min(60dvh,38rem);
  min-height: 8rem;
  object-fit: contain;
  background: #080807;
}
#project-dialog .aim-embed-stage { background: #11110f; }
#project-dialog .aim-embed { display: block; width: min(100%,30rem); height: min(63dvh,40rem); border: 0; background: #fff; }
#project-dialog .aim-dialog-footer { gap: .8rem; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid #35332f; }
#project-dialog .aim-gallery-controls { margin-right: auto; display: flex; gap: .65rem; align-items: center; }
#project-dialog .aim-frame-control { min-height: 2.75rem; border: 1px solid #625f57; padding: .55rem .85rem; border-radius: 99px; }
#project-dialog .aim-gallery-count { font: 500 .8125rem/1.2 'DM Sans',sans-serif; color: #c7c4bc; font-variant-numeric: tabular-nums; }
#project-dialog .aim-post-link { display: inline-flex; align-items: center; min-height: 2.6rem; font: 600 .875rem/1.3 'DM Sans',sans-serif; color: #ff815e; text-decoration: underline; text-underline-offset: .22em; }
@media (max-width: 800px) {
  #work .work-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  #project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 530px) {
  #project-grid { grid-template-columns: 1fr; gap: 2rem; }
  #work .aim-card-visual { aspect-ratio: 1.6; }
  #work .aim-project-title { font-size: 1.88rem; }
  #work .aim-card-caption { padding-top: .75rem; }
  #project-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  #project-dialog .aim-dialog-head, #project-dialog .aim-dialog-footer { padding: .85rem; }
  #project-dialog .aim-gallery-controls { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  #work .aim-card-visual img, #work .aim-filter { transition: none; }
}
