.work-gallery {
  --gallery-paper: #f3f0e8;
  --gallery-ink: #171719;
  --gallery-muted: #6d6a63;
  --gallery-coral: #ed6049;
  --gallery-cyan: #13a6c2;
  position: relative;
  isolation: isolate;
  overflow: clip;
  width: 100%;
  padding: clamp(76px, 9vw, 126px) clamp(24px, 5.2vw, 80px) clamp(54px, 7vw, 92px);
  background: var(--gallery-paper);
  color: var(--gallery-ink);
}
.work-gallery::before {
  position: absolute;
  z-index: -1;
  top: -18vw;
  right: -17vw;
  width: min(47vw, 690px);
  aspect-ratio: 1;
  border: 1px solid rgba(19,166,194,.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.work-gallery-shell { width: min(100%, 1450px); margin: 0 auto; }
.work-gallery-header { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.6fr); align-items: end; gap: 46px; }
.work-gallery-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 25px; color: #79756e; font-size: 9px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.work-gallery-eyebrow i { width: 26px; height: 1px; background: rgba(23,23,25,.28); }
.work-gallery-eyebrow b { color: var(--gallery-coral); font-size: 8px; }
.work-gallery-heading h2 { max-width: 850px; margin: 0; font: 760 clamp(50px,7.2vw,98px)/.94 var(--font-display,"Manrope",Arial,sans-serif); letter-spacing: -.085em; }
.work-gallery-heading h2 em { color: var(--gallery-coral); font-family: var(--font-accent,Georgia,serif); font-size: 1.02em; font-weight: 550; letter-spacing: -.025em; }
.work-gallery-intro { max-width: 425px; margin: 0 0 5px auto; color: var(--gallery-muted); font-size: 14px; line-height: 1.85; }
.work-gallery-intro strong { color: var(--gallery-ink); font-weight: 760; }
.work-gallery-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: clamp(36px,5vw,62px) 0 24px; }
.work-gallery-filter { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid rgba(23,23,25,.16); border-radius: 999px; background: transparent; color: #716d66; font: inherit; font-size: 10px; font-weight: 740; letter-spacing: .025em; cursor: pointer; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease; }
.work-gallery-filter span { color: #aaa49a; font-size: 8px; font-variant-numeric: tabular-nums; }
.work-gallery-filter:hover { transform: translateY(-2px); border-color: rgba(23,23,25,.38); color: var(--gallery-ink); }
.work-gallery-filter.is-active { border-color: var(--gallery-ink); background: var(--gallery-ink); color: #fffefa; }
.work-gallery-filter.is-active span { color: #edb9ad; }
.work-gallery-filter:focus-visible { outline: 2px solid var(--gallery-cyan); outline-offset: 3px; }
.work-gallery-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.work-gallery-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); grid-auto-rows: clamp(205px,18vw,285px); gap: clamp(14px,1.65vw,24px); align-items: stretch; }
.work-gallery-item { min-width: 0; }
.work-gallery.has-motion .work-gallery-item { opacity: 0; transform: translateY(24px); }
.work-gallery-item.is-visible { animation: gallery-item-arrive .72s cubic-bezier(.18,.76,.24,1) calc(var(--gallery-index,0) * 75ms) both; }
@keyframes gallery-item-arrive { to { opacity: 1; transform: translateY(0); } }
.work-gallery-item[hidden] { display: none !important; }
.work-gallery-item-offset { grid-column: 1 / span 7; grid-row: 1 / span 2; }
.work-gallery-item-packaging { grid-column: 8 / span 5; grid-row: 1; }
.work-gallery-item-commercial { grid-column: 8 / span 5; grid-row: 2; }
.work-gallery-item-books { grid-column: 1 / span 5; grid-row: 3; }
.work-gallery-item-digital { grid-column: 6 / span 7; grid-row: 3; }
.work-gallery.is-filtered .work-gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: clamp(300px,25vw,390px); gap: clamp(18px,2vw,28px); }
.work-gallery.is-filtered .work-gallery-item-offset,.work-gallery.is-filtered .work-gallery-item-packaging,.work-gallery.is-filtered .work-gallery-item-digital,.work-gallery.is-filtered .work-gallery-item-books,.work-gallery.is-filtered .work-gallery-item-commercial { grid-column: auto; grid-row: auto; }
.work-gallery-card { display: flex; width: 100%; height: 100%; flex-direction: column; padding: 0; overflow: hidden; border: 1px solid rgba(23,23,25,.12); border-radius: 19px; background: #fffefa; color: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(23,23,25,.045); transition: border-color .35s ease, box-shadow .45s cubic-bezier(.18,.76,.24,1), transform .45s cubic-bezier(.18,.76,.24,1); }
.work-gallery-card:hover,.work-gallery-card:focus-visible { border-color: color-mix(in srgb,var(--gallery-accent,var(--gallery-coral)) 55%,transparent); box-shadow: 0 22px 48px rgba(23,23,25,.13),0 0 0 4px color-mix(in srgb,var(--gallery-accent,var(--gallery-coral)) 9%,transparent); transform: translateY(-5px); }
.work-gallery-card:focus-visible { outline: 2px solid var(--gallery-accent,var(--gallery-coral)); outline-offset: 4px; }
.work-gallery-item-offset { --gallery-accent: var(--gallery-cyan); }
.work-gallery-item-packaging { --gallery-accent: #d34c82; }
.work-gallery-item-digital { --gallery-accent: #d0ad27; }
.work-gallery-item-books { --gallery-accent: var(--gallery-coral); }
.work-gallery-item-commercial { --gallery-accent: #171719; }
.work-gallery-image { position: relative; display: block; flex: 1; min-height: 150px; overflow: hidden; background: #ded8cb; }
.work-gallery-image::after { position: absolute; inset: 45% 0 0; background: linear-gradient(180deg,transparent,rgba(16,17,19,.42)); content: ""; pointer-events: none; transition: opacity .35s ease; }
.work-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.005); filter: saturate(.94); transition: transform .9s cubic-bezier(.18,.76,.24,1),filter .55s ease; }
.work-gallery-card:hover .work-gallery-image img,.work-gallery-card:focus-visible .work-gallery-image img { transform: scale(1.055); filter: saturate(1.04); }
.work-gallery-chip { position: absolute; z-index: 1; top: 14px; left: 14px; display: inline-flex; align-items: center; padding: 8px 10px; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; background: rgba(25,25,26,.32); color: white; font-size: 7px; font-weight: 850; letter-spacing: .16em; text-shadow: 0 1px 8px rgba(0,0,0,.34); backdrop-filter: blur(7px); }
.work-gallery-action { position: absolute; z-index: 2; top: var(--gallery-pointer-y,50%); left: var(--gallery-pointer-x,50%); display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid rgba(232,199,70,.74); border-radius: 999px; background: rgba(255,254,250,.96); color: var(--gallery-ink); font-size: 11px; font-weight: 770; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%,-30%) scale(.96); box-shadow: 0 9px 25px rgba(0,0,0,.18); transition: opacity .22s ease,transform .24s cubic-bezier(.18,.76,.24,1),top .13s ease-out,left .13s ease-out; }
.work-gallery-action i { display: inline-block; width: 22px; height: 5px; overflow: hidden; background: linear-gradient(90deg,#13a6c2 0 25%,#d34c82 25% 50%,#e8c746 50% 75%,#171719 75%); font-size: 0; }
.work-gallery-action b { font-size: 14px; font-weight: 650; }
.work-gallery-card:hover .work-gallery-action,.work-gallery-card:focus-visible .work-gallery-action { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.work-gallery-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 17px 16px; }
.work-gallery-title { color: var(--gallery-ink); font: 740 clamp(14px,1.2vw,18px)/1.2 var(--font-display,"Manrope",Arial,sans-serif); letter-spacing: -.045em; transition: color .3s ease; }
.work-gallery-card:hover .work-gallery-title,.work-gallery-card:focus-visible .work-gallery-title { color: var(--gallery-accent); }
.work-gallery-meta { color: #77736c; font-size: 9px; line-height: 1.45; text-align: right; }
.work-gallery-meta i { padding: 0 2px; color: var(--gallery-accent); font-style: normal; }
.work-gallery-dialog { position: fixed; width: min(900px,calc(100vw - 36px)); max-width: none; max-height: min(86vh,820px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.22); border-radius: 21px; background: #f3f0e8; color: var(--gallery-ink); box-shadow: 0 35px 100px rgba(0,0,0,.38); }
.work-gallery-dialog[open] { animation: gallery-dialog-in .38s cubic-bezier(.18,.76,.24,1) both; }
@keyframes gallery-dialog-in { from { opacity: 0; transform: translateY(15px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.work-gallery-dialog::backdrop { background: rgba(15,16,18,.72); backdrop-filter: blur(7px); }
.work-gallery-dialog-close { position: sticky; z-index: 2; top: 13px; float: right; width: 38px; height: 38px; margin: 13px 13px -51px 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(23,23,25,.72); color: white; font-size: 25px; line-height: 1; cursor: pointer; }
.work-gallery-dialog-close:focus-visible { outline: 2px solid var(--gallery-coral); outline-offset: 3px; }
.work-gallery-dialog-image { height: min(55vh,520px); min-height: 220px; overflow: hidden; background: #ddd6c9; }
.work-gallery-dialog-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-gallery-dialog-copy { padding: clamp(20px,4vw,34px); }
.work-gallery-dialog-copy > p:first-child { margin: 0 0 10px; color: var(--gallery-coral); font-size: 8px; font-weight: 850; letter-spacing: .17em; }
.work-gallery-dialog-copy h3 { margin: 0; font: 760 clamp(28px,5vw,46px)/1.05 var(--font-display,"Manrope",Arial,sans-serif); letter-spacing: -.065em; }
.work-gallery-dialog-copy > p:nth-of-type(2) { max-width: 580px; margin: 13px 0 18px; color: var(--gallery-muted); font-size: 13px; line-height: 1.75; }
.work-gallery-dialog-copy > span { display: inline-flex; padding: 8px 10px; border: 1px solid rgba(237,96,73,.34); border-radius: 999px; color: #a44b3a; font-size: 7px; font-weight: 850; letter-spacing: .13em; }
@media (max-width: 900px) {
  .work-gallery-header { grid-template-columns: 1fr; gap: 22px; }
  .work-gallery-intro { max-width: 560px; margin: 0; }
  .work-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: clamp(210px,31vw,300px); }
  .work-gallery-item-offset { grid-column: 1 / span 2; grid-row: auto; }
  .work-gallery-item-packaging,.work-gallery-item-commercial,.work-gallery-item-books,.work-gallery-item-digital { grid-column: auto; grid-row: auto; }
  .work-gallery.is-filtered .work-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: clamp(285px,38vw,360px); }
  .work-gallery-copy { align-items: flex-start; flex-direction: column; gap: 5px; }
  .work-gallery-meta { text-align: left; }
}
@media (max-width: 580px) {
  .work-gallery { padding: 60px 18px 43px; }
  .work-gallery-eyebrow { margin-bottom: 20px; font-size: 8px; }
  .work-gallery-heading h2 { font-size: clamp(46px,13vw,70px); }
  .work-gallery-intro { font-size: 13px; }
  .work-gallery-filters { flex-wrap: nowrap; margin: 30px -18px 18px; padding: 0 18px 7px; overflow-x: auto; scrollbar-width: none; }
  .work-gallery-filters::-webkit-scrollbar { display: none; }
  .work-gallery-filter { flex: none; padding: 9px 12px; font-size: 9px; }
  .work-gallery-grid { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; gap: 17px; }
  .work-gallery-item-offset,.work-gallery-item-packaging,.work-gallery-item-commercial,.work-gallery-item-books,.work-gallery-item-digital { grid-column: 1; grid-row: auto; }
  .work-gallery.is-filtered .work-gallery-grid { grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; gap: 17px; }
  .work-gallery-image { flex: none; aspect-ratio: 1.24; }
  .work-gallery-copy { flex-direction: row; align-items: baseline; padding: 13px 13px 14px; }
  .work-gallery-title { font-size: 15px; }
  .work-gallery-meta { max-width: 46%; font-size: 8px; text-align: right; }
  .work-gallery-action { display: none; }
  .work-gallery-dialog { width: calc(100vw - 22px); border-radius: 16px; }
  .work-gallery-dialog-image { height: 38vh; min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .work-gallery *, .work-gallery *::before, .work-gallery *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
