#work.work {
  position: relative;
  padding: 118px 0 142px !important;
  color: #153c73 !important;
  overflow: hidden;
}

#work .work-gallery__heading,
#work .work-gallery {
  width: min(1060px, calc(100% - 64px));
  margin-inline: auto;
}

#work .work-gallery__heading {
  display: block !important;
  width: min(1060px, calc(100% - 64px)) !important;
  min-height: 0 !important;
  margin: 0 auto 36px !important;
  padding: 0 !important;
  border: 0 !important;
}

#work .work-gallery__heading .section-label { margin-bottom: 20px; color: #315a92 !important; }
#work .work-gallery__title-row { display: block; }

#work .work-gallery__title-row h2 {
  margin: 0 0 13px !important;
  color: #123e77 !important;
  font-family: "Noto Serif SC", serif !important;
  font-size: clamp(36px, 3.4vw, 46px) !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  letter-spacing: -.055em !important;
}

#work .work-gallery__title-row p { margin: 0; color: #627a9b; font-size: 14px; line-height: 1.75; }

#work .work-gallery__primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid rgba(52, 96, 157, .13);
  border-radius: 16px;
  background: rgba(228, 240, 255, .42);
}

#work .work-gallery__primary button {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 13px 20px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #173f75;
  text-align: left;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease;
}

#work .work-gallery__primary button::after { content: ""; position: absolute; inset: auto 0 0; height: 0; }

#work .work-gallery__primary button:hover,
#work .work-gallery__primary button:focus-visible {
  background: rgba(255, 255, 255, .62);
  outline: 2px solid rgba(47, 110, 231, .22);
  outline-offset: -2px;
}

#work .work-gallery__primary button.is-active {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(38, 78, 132, .08);
}

#work .work-gallery__primary button img {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 9px;
  background: rgba(225, 237, 252, .74);
  opacity: .68;
  transition: opacity .22s ease, background-color .22s ease;
}

#work .work-gallery__primary button.is-active img { background: rgba(212, 230, 253, .94); opacity: 1; filter: saturate(1.15); }
#work .work-gallery__primary button span { display: grid; gap: 5px; }
#work .work-gallery__primary button strong { font-family: "Noto Serif SC", serif; font-size: 17px; font-weight: 500; }
#work .work-gallery__primary button small { color: #778eaa; font-size: 11px; font-weight: 400; }

#work .work-gallery__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 54px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(50, 96, 160, .14);
}

#work .work-gallery__filters { display: flex; flex-wrap: wrap; gap: 2px; }

#work .work-gallery__filters button,
#work .work-gallery__sort select {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #315786;
  font: 500 12px/1 "Noto Sans SC", sans-serif;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

#work .work-gallery__filters button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  cursor: pointer;
}

#work .work-gallery__filters button small { color: #8ca1bf; font: 500 8px/1 "DM Mono", monospace; }
#work .work-gallery__filters button:hover { background: rgba(255, 255, 255, .5); color: #1e579b; }
#work .work-gallery__filters button:focus-visible { border-color: rgba(38, 100, 218, .38); outline: 0; }
#work .work-gallery__filters button.is-active { border-color: rgba(47, 110, 231, .14); background: rgba(221, 235, 253, .76); color: #1c5eb7; }

#work .work-gallery__filters button.is-active::after {
  position: absolute;
  right: 11px;
  bottom: -1px;
  left: 11px;
  height: 2px;
  border-radius: 999px;
  background: #2f6ee7;
  content: "";
}

#work .work-gallery__filters button.is-active small { color: #6688b7; }
#work .work-gallery__sort { display: grid; grid-template-columns: 1px auto; align-items: center; }
#work .work-gallery__sort > span { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#work .work-gallery__sort select { min-width: 122px; padding: 0 34px 0 14px; cursor: pointer; }
#work .work-gallery__sort select:focus-visible { outline: 2px solid rgba(47, 110, 231, .34); outline-offset: 2px; }

#work .work-gallery__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

#work .work-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(260px, 1.25fr) 112px minmax(210px, .8fr) 44px;
  grid-template-areas:
    "index eyebrow meta media arrow"
    "index copy meta media arrow";
  grid-template-rows: 27px 1fr;
  column-gap: 14px;
  align-items: center;
  height: 172px;
  min-height: 172px;
  padding: 18px 20px;
  overflow: hidden;
  color: #173f75;
  text-decoration: none;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(44, 83, 137, .055);
  transition: border-color .3s ease, background-color .3s ease, box-shadow .35s ease, transform .35s ease;
}

#work .work-card:hover,
#work .work-card:focus-visible {
  z-index: 2;
  border-color: rgba(47, 110, 231, .22);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 16px 38px rgba(51, 88, 140, .1);
  outline: 0;
  transform: translateY(-2px);
}

#work .work-card__index {
  grid-area: index;
  align-self: start;
  color: rgba(73, 129, 214, .28);
  font: 500 48px/.9 "DM Mono", monospace;
  letter-spacing: -.08em;
}

#work .work-card__eyebrow {
  position: relative;
  z-index: 2;
  grid-area: eyebrow;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  height: 22px;
  color: #35639f;
  font: 500 8px/1 "DM Mono", monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}

#work .work-card__eyebrow i { color: #92a6c1; font-style: normal; }

#work .work-card__copy {
  position: relative;
  z-index: 2;
  grid-area: copy;
  align-self: start;
  min-width: 0;
  padding-right: 12px;
}

#work .work-card__copy h3 {
  max-width: 360px;
  margin: 0 0 8px;
  color: #153e77;
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.025em;
}

#work .work-card__copy p {
  display: -webkit-box;
  max-width: 380px;
  margin: 0;
  overflow: hidden;
  color: #617a9e;
  font-size: 11px;
  line-height: 1.72;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#work .work-card__detail-link { display: none; }
#work .work-card__meta { grid-area: meta; display: grid; gap: 12px; align-self: center; }
#work .work-card__year { color: #54749c; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .05em; }
#work .work-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }

#work .work-card__tags em {
  padding: 5px 8px;
  color: #52729a;
  border: 1px solid rgba(58, 98, 152, .14);
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
  line-height: 1;
}

#work .work-card__media {
  position: relative;
  z-index: 1;
  grid-area: media;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
}

#work .work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 18px 0 24px rgba(255, 255, 255, .26);
  pointer-events: none;
}

#work .work-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.9) brightness(1.04);
  transform: scale(.94);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}

#work .work-card:hover .work-card__media img,
#work .work-card:focus-visible .work-card__media img { filter: saturate(1) brightness(1.03); transform: scale(1); }

#work .work-card__arrow {
  grid-area: arrow;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  justify-self: end;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(49, 91, 150, .13);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(43, 79, 128, .06);
}

#work .work-card__arrow img { width: 14px; height: 14px; transition: transform .25s ease; }
#work .work-card:hover .work-card__arrow img { transform: translateX(3px); }

#work .work-gallery__empty {
  display: grid;
  min-height: 240px;
  padding: 44px;
  place-content: center;
  text-align: center;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(53, 96, 154, .12);
  border-radius: 16px;
}

#work .work-gallery__empty strong { font-family: "Noto Serif SC", serif; font-size: 26px; font-weight: 500; }
#work .work-gallery.is-coming-soon .work-gallery__toolbar,
#work .work-gallery.is-coming-soon .work-gallery__more { display: none; }
#work .work-gallery.is-coming-soon .work-gallery__grid { margin-top: 20px; }
#work .work-gallery.is-coming-soon .work-gallery__empty { min-height: 220px; background: transparent; border-style: dashed; }

#work .work-gallery__more {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, .48);
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 16px;
}

#work .work-gallery__more > span { display: grid; width: 42px; height: 42px; place-items: center; background: rgba(225, 237, 255, .76); border-radius: 50%; }
#work .work-gallery__more > span img { width: 21px; height: 21px; }
#work .work-gallery__more p { margin: 0; }
#work .work-gallery__more strong { display: block; color: #284d7e; font-size: 13px; font-weight: 600; }
#work .work-gallery__more small { display: block; margin-top: 4px; color: #7990ae; font-size: 10px; }
#work .work-gallery__more > a { display: inline-flex; align-items: center; gap: 9px; color: #245aaf; font-size: 11px; font-weight: 600; }
#work .work-gallery__more > a img { width: 15px; }

@media (max-width: 900px) {
  #work .work-card {
    grid-template-columns: 58px minmax(225px, 1.15fr) 82px minmax(180px, .85fr) 38px;
    column-gap: 10px;
    height: 156px;
    min-height: 156px;
    padding: 16px;
  }

  #work .work-card__index { font-size: 39px; }
  #work .work-card__copy h3 { font-size: 19px; }
  #work .work-card__copy p { font-size: 10px; }
  #work .work-card__tags { gap: 4px; }
  #work .work-card__tags em { padding: 4px 6px; font-size: 7px; }
  #work .work-card__arrow { width: 34px; height: 34px; }
}

@media (max-width: 720px) {
  #work.work { padding: 92px 0 100px !important; }
  #work .work-gallery__heading,
  #work .work-gallery { width: min(100% - 30px, 1060px); }
  #work .work-gallery__heading { width: min(100% - 30px, 1060px) !important; margin-bottom: 30px !important; }
  #work .work-gallery__title-row h2 { font-size: 38px !important; }
  #work .work-gallery__primary { grid-template-columns: 1fr; border-radius: 14px; }
  #work .work-gallery__primary button { min-height: 66px; padding: 12px 16px; }
  #work .work-gallery__primary button + button { border-top: 1px solid rgba(52, 96, 157, .1); }
  #work .work-gallery__toolbar { align-items: stretch; flex-direction: column; gap: 8px; }
  #work .work-gallery__filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  #work .work-gallery__filters button { flex: 0 0 auto; }
  #work .work-gallery__sort select { width: 100%; }

  #work .work-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    grid-template-areas:
      "eyebrow media"
      "copy media"
      "meta media";
    grid-template-rows: auto 1fr auto;
    column-gap: 14px;
    height: 190px;
    min-height: 190px;
    padding: 18px;
  }

  #work .work-card__index { position: absolute; top: 16px; right: 148px; opacity: .65; font-size: 30px; }
  #work .work-card__eyebrow { padding-right: 42px; }
  #work .work-card__copy { padding-right: 0; }
  #work .work-card__copy h3 { margin-bottom: 7px; font-size: 18px; }
  #work .work-card__copy p { font-size: 10px; -webkit-line-clamp: 3; }
  #work .work-card__meta { gap: 8px; }
  #work .work-card__media { min-height: 150px; }
  #work .work-card__arrow { display: none; }
  #work .work-gallery__more { grid-template-columns: auto 1fr; padding: 17px; }
  #work .work-gallery__more > a { grid-column: 2; }
}

@media (max-width: 460px) {
  #work .work-card { grid-template-columns: minmax(0, 1fr) 108px; height: 176px; min-height: 176px; }
  #work .work-card__index { right: 118px; }
  #work .work-card__copy h3 { font-size: 17px; }
  #work .work-card__copy p { -webkit-line-clamp: 2; }
  #work .work-card__tags em:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #work .work-card,
  #work .work-card__media img,
  #work .work-card__arrow img,
  #work .work-gallery__primary button::after { transition: none; }
}
