/* Portfolio scene, cards, category controls and responsive glass navigation.
   Keep desktop and mobile cascade order when editing shared declarations. */

:root {
  font-family: Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  color: #fff;
  background: #30271f;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

.works-page {
  position: relative;
  min-height: 100svh;
}

.works-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #30271f url("assets/projects-ambient-bg-v3.webp") center top/cover no-repeat;
}

.works-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(17,15,13,.66),rgba(17,15,13,.29) 42%,rgba(17,15,13,.16)),linear-gradient(0deg,rgba(11,10,9,.42),rgba(11,10,9,.06) 46%,rgba(11,10,9,.14)),linear-gradient(180deg,rgba(20,16,11,.1),rgba(20,16,11,.1));
  pointer-events: none;
}

.works-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 51% 62%,rgba(255,255,255,.12),transparent 35%),linear-gradient(115deg,rgba(255,255,255,.08),transparent 33%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width:620px) {
  .works-scene { background-position: 58% top; }
  .works-scene::before {
    background: linear-gradient(90deg,rgba(17,15,13,.64),rgba(17,15,13,.3)),linear-gradient(0deg,rgba(11,10,9,.38),rgba(11,10,9,.06) 65%),linear-gradient(180deg,rgba(20,16,11,.12),rgba(20,16,11,.12));
  }
}

.works-shell {
  position: relative;
  min-height: 100svh;
  padding: clamp(18px,3vw,42px) clamp(22px,4vw,68px) 38px;
}

.works-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 8;
}

@media (min-width:1024px) {
  /* Keep the header within the viewport even when the artwork grid is wider. */
  .works-topbar { max-width: calc(100vw - 136px); }
}

.works-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.04em;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.works-brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4d35e;
  box-shadow: 0 0 18px rgba(244,211,94,.85);
}

.works-nav {
  --fluid-x: 50%;
  --fluid-y: 0%;
  --fluid-opacity: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(12px,2vw,28px);
  padding: 10px 14px 10px 20px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(45,35,25,.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px rgba(255,255,255,.16),0 10px 32px rgba(0,0,0,.12);
}

.works-nav a {
  font-size: 12px;
  letter-spacing: .12em;
  text-decoration: none;
  color: rgba(255,255,255,.86);
  text-shadow: 0 1px 10px rgba(0,0,0,.28);
  transition: color .2s;
}

.works-nav a:hover,
.works-nav a[aria-current=page] {
  color: #f4d35e;
}

.works-profile {
  width: 40px;
  height: 40px;
  margin-left: 2px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
}

.works-profile svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.works-copy {
  position: absolute;
  z-index: 5;
  left: clamp(22px,4vw,68px);
  text-shadow: 0 2px 22px rgba(0,0,0,.36);
}

.works-kicker {
  margin: 0 0 14px;
  color: #f4d35e;
  font-size: 12px;
  letter-spacing: .2em;
}

.works-kicker::after {
  content: "";
  display: block;
  width: 54px;
  height: 1px;
  margin-top: 10px;
  background: #f4d35e;
  box-shadow: 0 0 12px rgba(244,211,94,.32);
}

.works-title {
  margin: 0;
  font-weight: 400;
  line-height: 1;
}

.works-lede {
  max-width: 390px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(14px,1.35vw,18px);
  line-height: 1.65;
}

.works-stack {
  z-index: 3;
}

.works-card {
  border: 1px solid rgba(255,255,255,.27);
  backdrop-filter: blur(2px);
}

.works-card:focus-visible {
  outline: 2px solid #f4d35e;
  outline-offset: 5px;
}

.works-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,.03) 46%,rgba(6,6,5,.72) 100%);
  pointer-events: none;
}

.works-card-back {
  filter: saturate(.92) brightness(.88);
}

.works-card-back:hover,
.works-card-back:focus-visible {
  filter: saturate(1) brightness(.98);
}

.works-card-front {
  border-color: rgba(255,255,255,.28);
}

.works-card-front:hover,
.works-card-front:focus-visible {
  border-color: rgba(244,211,94,.46);
}

.works-card-label {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.works-card-label strong {
  display: block;
  font-size: clamp(17px,1.7vw,24px);
  font-weight: 500;
  letter-spacing: -.03em;
}

.works-card-label small {
  display: block;
  margin-bottom: 6px;
  color: #f4d35e;
  font-size: 10px;
  letter-spacing: .16em;
}

.works-card-arrow {
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 300;
  color: #fff;
}

.works-card-back .works-card-arrow {
  display: none;
}

.works-footer {
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,251,239,.72);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .16em;
}

.works-footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  min-width: 0;
}

.works-footer a {
  flex: none;
  text-decoration: none;
  color: #f4d35e;
}

.works-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width:900px) {
  .works-nav {
    gap: 13px;
    padding-left: 14px;
  }

  .works-nav a {
    font-size: 10px;
    letter-spacing: .08em;
  }

}

@media (max-width:620px) {
  .works-shell {
    min-height: 760px;
    padding-inline: 18px;
  }

  .works-nav {
    display: none;
  }

  .works-lede {
    font-size: 14px;
    margin-top: 13px;
  }

  .works-footer {
    font-size: 9px;
    gap: 12px;
    letter-spacing: .1em;
  }

}

.works-stack.is-dragging {
  cursor: grabbing;
}

.works-stack.is-dragging .works-card {
  transition: none;
}

.works-card {
  overflow: hidden;
  -webkit-backdrop-filter: blur(2px);
  font: inherit;
}

.works-card:hover {
  border-color: rgba(244,211,94,.34);
  box-shadow: 0 24px 52px rgba(0,0,0,.22),0 0 22px rgba(244,211,94,.12),inset 0 1px rgba(255,255,255,.12);
}

.works-card:hover img {
  transform: scale(1.045);
  filter: brightness(1.035);
}

.works-card-front:hover {
  box-shadow: 0 28px 62px rgba(0,0,0,.27),0 0 28px rgba(244,211,94,.15),inset 0 1px rgba(255,255,255,.14);
}

.works-card-front img {
  transition: transform .65s cubic-bezier(.2,.7,.2,1),filter .45s ease;
}

.works-card-back img {
  transition: transform .55s cubic-bezier(.2,.7,.2,1),filter .45s ease;
}

.works-card-front .works-card-label strong {
  font-size: clamp(18px,1.65vw,24px);
}

.works-stack-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  font: 300 24px/1 Inter,system-ui,sans-serif;
}

.works-stack-prev {
  left: clamp(-62px,-3.2vw,-18px);
}

.works-stack-next {
  right: clamp(-62px,-3.2vw,-18px);
}

.works-stack-arrow:hover,
.works-stack-arrow:focus-visible {
  transform: translateY(-50%) scale(1.08);
  background: rgba(34,28,21,.44);
  border-color: rgba(244,211,94,.8);
  box-shadow: 0 0 20px rgba(244,211,94,.18);
  outline: none;
}

@media (max-width:900px) {
  .works-stack-arrow {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .works-stack-prev {
    left: -10px;
  }

  .works-stack-next {
    right: -10px;
  }

}

@media (max-width:620px) {
  .works-stack-arrow {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  .works-stack-prev {
    left: 4px;
  }

  .works-stack-next {
    right: 4px;
  }

}

.works-copy {
  bottom: auto;
}

.works-stack {
  cursor: grab;
  overflow: visible;
}

.works-card {
  background: rgba(19,18,16,.3);
  box-shadow: 0 20px 45px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.1);
  color: #fff;
  cursor: grab;
  transition: transform .65s cubic-bezier(.22,.7,.2,1),filter .45s ease,opacity .45s ease,box-shadow .45s ease,border-color .45s ease;
  position: relative;
  inset: auto;
  transform: none;
  opacity: 1;
  filter: none;
  z-index: 1;
}

.works-card-left,
.works-card-right {
  transform-origin: center;
  position: relative;
  inset: auto;
  transform: none;
  opacity: 1;
  filter: none;
  z-index: 1;
}

.works-card-front {
  position: relative;
  inset: auto;
  transform: none;
  opacity: 1;
  filter: none;
  z-index: 2;
  box-shadow: 0 26px 56px rgba(0,0,0,.27),inset 0 1px rgba(255,255,255,.12);
}

.works-card-back .works-card-label {
  opacity: 1;
  pointer-events: none;
}

.works-card-back .works-card-label strong {
  font-size: clamp(16px,1.45vw,20px);
}

.works-stack-arrow {
  border: 1px solid rgba(244,211,94,.4);
  border-radius: 50%;
  background: rgba(34,28,21,.28);
  -webkit-backdrop-filter: blur(10px);
  color: #f4d35e;
  cursor: pointer;
  transition: transform .3s ease,background .3s ease,border-color .3s ease,box-shadow .3s ease;
  display: none;
}

@media (max-width:900px) {
  .works-copy {
    bottom: auto;
  }

  .works-card-label {
    left: 12px;
    right: 10px;
    bottom: 11px;
  }

  .works-card-label strong {
    font-size: clamp(14px,2.5vw,18px);
  }

}

@media (max-width:620px) {
  .works-page {
    min-height: 100vh;
  }

  .works-card {
    min-height: 0;
  }

}

.works-title {
  font-size: clamp(36px,3.8vw,56px);
  letter-spacing: -.065em;
}

.works-card-front:hover,
.works-card-front:focus-visible {
  transform: translateY(-6px) scale(1.022);
}

@media (max-width:900px) {
  .works-title {
    font-size: clamp(36px,6.4vw,52px);
  }

}

.works-copy {
  max-width: 300px;
  top: clamp(104px,12vh,146px);
}

.works-card[data-work-card="0"] {
  grid-column: 1 / span 2;
  grid-row: 1;
}

.works-card[data-work-card="1"] {
  grid-column: 3 / span 2;
  grid-row: 1;
}

.works-card[data-work-card="2"] {
  grid-column: 5 / span 2;
  grid-row: 1;
}

.works-card[data-work-card="3"] {
  grid-column: 2 / span 2;
  grid-row: 2;
}

.works-card[data-work-card="4"] {
  grid-column: 4 / span 2;
  grid-row: 2;
}

@media (max-width:900px) {
  .works-copy {
    top: 110px;
  }

}

@media (max-width:620px) {
  .works-copy {
    left: 18px;
    right: 18px;
    top: 86px;
  }

  .works-card[data-work-card="0"],
  .works-card[data-work-card="1"],
  .works-card[data-work-card="2"],
  .works-card[data-work-card="3"],
  .works-card[data-work-card="4"] {
    grid-column: auto;
    grid-row: auto;
  }

}

.works-page {
  isolation: isolate;
  overflow: auto;
}

.works-stack {
  touch-action: pan-y;
  justify-content: center;
  grid-template-rows: repeat(2,minmax(0,1fr));
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(92vw,1640px);
  height: auto;
  min-height: 0;
  margin: clamp(240px,24vh,300px) auto 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: auto;
  gap: clamp(18px,2vw,30px);
  align-items: stretch;
}

.works-card[data-work-card] {
  grid-column: auto;
  grid-row: auto;
}

.works-card {
  text-decoration: none;
  padding: 0;
  text-align: left;
  border-radius: 12px;
  min-width: 0;
  max-width: none;
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1.78;
  align-self: stretch;
}

.works-footer {
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 32px 18px 0;
}

@media (max-width:900px) {
  .works-stack {
    width: 94vw;
    margin-top: 230px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
  }

}

@media (max-width:620px) {
  .works-stack {
    grid-template-rows: none;
    width: auto;
    margin: 210px 18px 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .works-card {
    aspect-ratio: 1.58;
  }

}

.works-filters::-webkit-scrollbar {
  display: none;
}

.works-filters-label {
  padding: 0 10px 0 5px;
  font-size: 10px;
}

.works-filter {
  font: inherit;
}

.works-filter:hover,
.works-filter:focus-visible {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.1);
  color: #fff;
  outline: none;
}

.works-filter.is-active {
  border-color: rgba(255,255,255,.16);
  background: rgba(28,23,18,.68);
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.14),0 5px 14px rgba(24,17,11,.16);
}

.works-card[hidden] {
  display: none;
}

.works-filters {
  --fluid-x: 50%;
  --fluid-y: 0%;
  --fluid-opacity: 0;
  isolation: isolate;
  display: flex;
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(18px) saturate(118%);
  border-radius: 12px;
  padding: 9px 12px;
}

.works-filters-label {
  flex: none;
  color: rgba(255,255,255,.62);
  letter-spacing: .15em;
  text-transform: uppercase;
  display: none;
}

.works-filter {
  flex: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .25s ease,border-color .25s ease,color .25s ease,box-shadow .25s ease;
  border-radius: 7px;
  padding: 8px 15px;
}

@media (max-width:900px) {
  .works-filters {
    padding: 8px 10px;
  }

}

@media (max-width:620px) {
  .works-filters {
    padding: 6px;
  }

  .works-filter {
    font-size: 11px;
    padding: 7px 12px;
  }

}

.works-filters {
  position: absolute;
  z-index: 6;
  left: 50%;
  width: min(92vw,1640px);
  transform: translateX(-50%);
  align-items: center;
  gap: clamp(4px,.65vw,10px);
  -webkit-backdrop-filter: blur(18px) saturate(118%);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(51,39,28,.3);
  box-shadow: inset 0 1px rgba(255,255,255,.2),0 14px 34px rgba(24,17,11,.14);
  top: clamp(96px,10vh,132px);
}

.works-nav::after,
.works-filters::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 240px at var(--fluid-x) var(--fluid-y),
    rgba(238,225,150,.08) 0%,
    rgba(238,225,150,.045) 34%,
    rgba(238,225,150,.016) 68%,
    rgba(238,225,150,.004) 86%,
    transparent 100%);
  filter: blur(18px);
  opacity: var(--fluid-opacity, 0);
  pointer-events: none;
  transition: opacity .45s ease, background-position .45s ease;
}

.works-nav::after { clip-path: inset(0 round 999px); }
.works-filters::after { clip-path: inset(0 round 12px); }

.works-nav:hover::after,
.works-nav:focus-within::after,
.works-filters:hover::after,
.works-filters:focus-within::after {
  opacity: 1;
}

.works-nav > *,
.works-filters > * {
  position: relative;
  z-index: 1;
}

@media (max-width:900px) {
  .works-filters {
    width: 94vw;
    top: clamp(150px,22vh,220px);
  }

}

@media (max-width:620px) {
  .works-filters {
    width: calc(100% - 36px);
    left: 18px;
    transform: none;
    justify-content: flex-start;
    border-radius: 10px;
    top: 220px;
  }

}

@media (min-width:621px) {
  html {
    min-width: 1776px;
  }

  body {
    min-width: 1776px;
    overflow-x: auto;
  }

  .works-brand {
    position: relative;
    align-self: flex-start;
    top: 30px;
    left: -3px;
    font-size: 20px;
    line-height: 24px;
  }

  .works-copy {
    top: 78px;
    bottom: auto;
    left: calc(50% - 820px);
    max-width: 300px;
  }

  .works-title {
    font-size: 56px;
  }

  .works-lede {
    font-size: 18px;
  }

  .works-filters {
    top: 235px;
    left: 50%;
    width: 1640px;
    height: 68px;
    min-height: 0;
    transform: translateX(-50%) translateZ(0);
    gap: 8px;
    backface-visibility: hidden;
  }

  .works-stack {
    left: auto;
    margin: 268px auto 0;
  }

  .works-card-label {
    left: 20px;
    right: 18px;
    bottom: 16px;
  }

  .works-card-label strong {
    font-size: 24px;
  }

  .works-card-back .works-card-label strong {
    font-size: 20px;
  }

  .works-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 1640px;
    margin: 36px auto 0;
  }

  .works-stack {
    top: auto;
    transform: none;
    width: 1640px;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    grid-auto-rows: auto;
    column-gap: 28px;
    row-gap: 28px;
    isolation: isolate;
  }

  .works-card {
    width: 100%;
    height: auto;
    aspect-ratio: 1.78;
    isolation: isolate;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .works-card:hover,
  .works-card:focus-visible {
    transform: translateY(-6px) scale(1.022);
    z-index: 20 !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.1),0 0 22px rgba(244,211,94,.12),inset 0 1px rgba(255,255,255,.16);
  }

  .works-card:hover img,
  .works-card:focus-visible img {
    transform: scale(1.015);
    filter: brightness(1.02);
  }

  .works-nav {
    position: relative;
  }

  .works-nav a {
    font-size: 12px;
    letter-spacing: .12em;
    color: rgba(255,255,255,.86);
  }

  .works-profile {
    background: transparent;
  }

  .works-nav::after {
    z-index: 0;
  }

  .works-nav:hover::after,
  .works-nav:focus-within::after {
    opacity: 1;
  }

  .works-nav > * {
    position: relative;
    z-index: 1;
  }

  .works-nav a:not(.works-profile) {
    filter: none;
  }

  .works-nav:hover::before,
  .works-nav:focus-within::before {
    transform: translateY(1px);
  }

  .works-nav::before {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    mask-composite: exclude;
    transform: none;
  }

  .works-nav::after {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background: radial-gradient(circle 240px at var(--fluid-x) var(--fluid-y),
      rgba(238,225,150,.08) 0%,
      rgba(238,225,150,.045) 34%,
      rgba(238,225,150,.016) 68%,
      rgba(238,225,150,.004) 86%,
      transparent 100%);
    filter: blur(18px);
    opacity: var(--fluid-opacity, 0);
    transform: none;
    transition: opacity .45s ease, background-position .45s ease;
  }

  .works-filters::before {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: inherit;
    -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    transform: none;
    pointer-events: none;
  }

  .works-filters::after {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background: radial-gradient(circle 240px at var(--fluid-x) var(--fluid-y),
      rgba(238,225,150,.08) 0%,
      rgba(238,225,150,.045) 34%,
      rgba(238,225,150,.016) 68%,
      rgba(238,225,150,.004) 86%,
      transparent 100%);
    filter: blur(18px);
    opacity: var(--fluid-opacity, 0);
    transform: none;
    transition: opacity .45s ease, background-position .45s ease;
  }

  .works-filters:hover::after,
  .works-filters:focus-within::after {
    opacity: 1;
  }

  .works-filters > * {
    position: relative;
    z-index: 1;
  }

  .works-filter::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 15%;
    right: 15%;
    bottom: -8px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,rgba(238,225,150,.26) 0%,rgba(238,225,150,.08) 42%,transparent 76%);
    filter: blur(7px);
    opacity: 0;
    pointer-events: none;
    transform: scale(.78);
    transition: opacity .45s ease,transform .45s ease;
  }

  .works-filter:hover,
  .works-filter:focus-visible {
    border-color: rgba(238,225,150,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    box-shadow: inset 0 1px rgba(255,255,255,.2),0 7px 18px rgba(238,225,150,.12);
    outline: none;
  }

  .works-filter:hover::after,
  .works-filter:focus-visible::after {
    opacity: .9;
    transform: scale(1.04);
  }

  .works-filter.is-active:not(:hover):not(:focus-visible) {
    border-color: rgba(238,225,150,.12);
    background: rgba(238,225,150,.09);
    box-shadow: inset 0 1px rgba(255,255,255,.18),0 4px 12px rgba(238,225,150,.07);
  }

}

html {
  margin: 0;
  min-height: 100%;
  background: #30271f;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  margin: 0;
  min-height: 100%;
  background: transparent;
  font-family: inherit;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.works-page {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.works-page::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (min-width:621px) {
  .works-page {
    min-width: 1776px;
    overflow: auto;
    min-height: max(100svh,1000px);
  }

  .works-shell {
    padding: 0 68px 38px;
    min-height: max(100svh,1000px);
  }

  .works-nav {
    margin-left: 0;
    border: 1px solid rgba(255,255,255,.22);
    background: radial-gradient(circle 240px at var(--fluid-x) var(--fluid-y),rgba(255,255,255,.08) 0%,rgba(255,255,255,.04) 44%,transparent 100%), radial-gradient(120% 170% at 88% 120%,rgba(238,225,150,.08),transparent 58%), linear-gradient(132deg,rgba(28,24,20,.28),rgba(112,93,70,.18) 48%,rgba(16,14,12,.32));
    transition: background .65s ease,border-color .45s ease,box-shadow .55s ease;
    backdrop-filter: blur(24px) saturate(1.16) contrast(1.03);
    -webkit-backdrop-filter: blur(24px) saturate(1.16) contrast(1.03);
  }

  .works-filters {
    padding: 0 12px;
    background: radial-gradient(circle 240px at var(--fluid-x) var(--fluid-y),rgba(255,255,255,.08) 0%,rgba(255,255,255,.04) 44%,transparent 100%), radial-gradient(120% 190% at 88% 120%,rgba(238,225,150,.07),transparent 60%), linear-gradient(132deg,rgba(28,24,20,.28),rgba(112,93,70,.18) 48%,rgba(16,14,12,.32));
    transition: background .65s ease,border-color .45s ease,box-shadow .55s ease;
    backdrop-filter: blur(24px) saturate(1.16) contrast(1.03);
  }

  .works-profile {
    width: 40px;
    height: 40px;
    margin-left: 2px;
    border-color: rgba(255,255,255,.3);
    position: relative;
    z-index: 1;
    transition: background-color .35s ease,box-shadow .45s ease,border-color .35s ease;
  }

  .works-profile::before {
    opacity: 0;
  }

  .works-profile:hover,
  .works-profile:focus-visible {
    border-color: rgba(255,253,242,.3);
  }

  .works-profile:hover::before,
  .works-profile:focus-visible::before {
    opacity: 1;
    transform: scale(1.08);
  }

  .works-filter.is-active,
  .works-filter.is-active:hover,
  .works-filter.is-active:focus,
  .works-filter.is-active:focus-visible {
    color: #f4d35e;
  }

  .works-nav {
    top: 20px;
    right: -3px;
    gap: 28px;
    margin-right: 0;
    padding: 10px 14px 10px 20px;
    border-radius: 999px;
    isolation: isolate;
    overflow: visible;
    --fluid-x: 50%;
    --fluid-y: 0%;
    --fluid-angle: 120deg;
    background-clip: padding-box;
    border-color: transparent;
    box-shadow: inset 0 -1px 7px rgba(8,6,4,.045), inset 0 0 24px rgba(255,255,255,.025), 0 14px 38px rgba(0,0,0,.15), 0 0 22px rgba(238,225,150,.045);
  }

  .works-filters {
    --fluid-x: 50%;
    --fluid-y: 0%;
    --fluid-angle: 120deg;
    isolation: isolate;
    overflow: visible;
    -webkit-backdrop-filter: blur(24px) saturate(1.16) contrast(1.03);
    background-clip: padding-box;
    border-color: transparent;
    box-shadow: inset 0 -1px 7px rgba(8,6,4,.045), inset 0 0 24px rgba(255,255,255,.025), 0 14px 38px rgba(0,0,0,.15), 0 0 22px rgba(238,225,150,.045);
  }

  .works-nav:hover,
  .works-nav:focus-within,
  .works-filters:hover,
  .works-filters:focus-within {
    border-color: transparent;
    box-shadow: inset 0 -1px 7px rgba(8,6,4,.045), inset 0 0 24px rgba(255,255,255,.025), 0 14px 38px rgba(0,0,0,.15), 0 0 22px rgba(238,225,150,.065);
  }

  .works-nav::before {
    mix-blend-mode: screen;
    inset: -7px;
    padding: 2px;
    transition: opacity .55s ease,filter .55s ease;
    background: conic-gradient( from var(--fluid-angle), transparent 0deg, rgba(238,225,150,.06) 22deg, transparent 62deg, transparent 202deg, rgba(238,225,150,.045) 250deg, transparent 306deg, transparent 360deg );
    filter: blur(9px);
    opacity: .28;
  }

  .works-filters::before {
    mask-composite: exclude;
    mix-blend-mode: screen;
    inset: -7px;
    padding: 2px;
    transition: opacity .55s ease,filter .55s ease;
    background: conic-gradient( from var(--fluid-angle), transparent 0deg, rgba(238,225,150,.06) 22deg, transparent 62deg, transparent 202deg, rgba(238,225,150,.045) 250deg, transparent 306deg, transparent 360deg );
    filter: blur(9px);
    opacity: .28;
  }

  .works-nav:hover::before,
  .works-nav:focus-within::before {
    background-position: 100% 0;
    filter: blur(10px);
    opacity: .38;
  }

  .works-filters:hover::before,
  .works-filters:focus-within::before {
    filter: blur(10px);
    opacity: .38;
  }

  .works-profile::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -7px;
    border-radius: inherit;
    pointer-events: none;
    transition: opacity .45s ease,transform .45s ease;
    background: radial-gradient( ellipse at center, rgba(255,253,242,.26) 0%, rgba(255,251,238,.08) 42%, transparent 76% );
    filter: blur(7px);
  }

  .works-profile:hover,
  .works-profile:focus-visible {
    background: rgba(255,253,242,.08);
    box-shadow: inset 0 1px rgba(255,255,255,.2), 0 7px 18px rgba(255,253,242,.12);
  }

  .works-nav a:not(.works-profile)::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: opacity .45s ease,transform .45s ease,border-color .45s ease;
    background: radial-gradient( ellipse at 50% 112%, rgba(255,253,242,.26) 0%, rgba(255,251,238,.08) 42%, transparent 76% );
    opacity: 0;
    filter: none;
    transform: translateY(5px) scale(.88);
  }

  .works-nav a:not(.works-profile):hover::before,
  .works-nav a:not(.works-profile):focus::before,
  .works-nav a:not(.works-profile):focus-visible::before {
    transform: translateY(5px) scale(1.04);
    opacity: 0;
  }

  .works-nav a[aria-current=page]:not(:hover):not(:focus) {
    border: 1px solid rgba(238,225,150,.12);
    background: rgba(238,225,150,.09);
    box-shadow: inset 0 1px rgba(255,255,255,.18), 0 4px 12px rgba(238,225,150,.07);
  }

  .works-nav a[aria-current=page]:not(:hover):not(:focus-visible) {
    color: #f4d35e;
    border: 1px solid rgba(238,225,150,.12);
    background: rgba(238,225,150,.09);
    box-shadow: inset 0 1px rgba(255,255,255,.18), 0 4px 12px rgba(238,225,150,.07);
  }

  .works-nav a:not(.works-profile) {
    position: relative;
    z-index: 1;
    isolation: isolate;
    border-radius: 999px;
    transition: color .35s ease,background-color .45s ease,box-shadow .45s ease,filter .45s ease;
    padding: 8px 11px;
    border: 1px solid transparent;
  }

  .works-nav a:not(.works-profile):hover,
  .works-nav a:not(.works-profile):focus,
  .works-nav a:not(.works-profile):focus-visible {
    border-color: rgba(238,225,150,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
    box-shadow: inset 0 1px rgba(255,255,255,.2), 0 7px 18px rgba(238,225,150,.12);
    filter: none;
    outline: none;
  }

  .works-nav a:not(.works-profile):hover::after,
  .works-nav a:not(.works-profile):focus::after,
  .works-nav a:not(.works-profile):focus-visible::after {
    opacity: .9;
    transform: scale(1.04);
  }

  .works-nav a:not(.works-profile)::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    transition: opacity .45s ease,transform .45s ease;
    left: 15%;
    right: 15%;
    bottom: -8px;
    height: 14px;
    background: radial-gradient( ellipse at center, rgba(238,225,150,.26) 0%, rgba(238,225,150,.08) 42%, transparent 76% );
    filter: blur(7px);
    opacity: 0;
    transform: scale(.78);
    z-index: -1;
  }

}
