/* Selected Work: a night gallery of lit posters standing on a wet studio floor */
.wk {
  --h: clamp(330px, 52vh, 760px);
  --w: calc(var(--h) * .6664);
  position: relative;
  min-height: max(100vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: #050606;
  isolation: isolate;
}
.wk-room { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.wk-hall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; max-width: none; opacity: .8; transition: transform 1.4s cubic-bezier(.16,1,.3,1); }
.wk-light { position: absolute; left: 50%; top: 50%; width: 74vw; height: 78%; translate: -50% -54%; object-fit: cover; filter: blur(90px) saturate(1.5); opacity: 0; mix-blend-mode: screen; transition: opacity 1.2s ease; max-width: none; border-radius: 50%; }
.wk-light.on { opacity: .34; }
.wk-edge { position: absolute; inset: 0; background:
  linear-gradient(180deg, #0a0a0a 0, rgba(10,10,10,.5) 12%, transparent 30%),
  linear-gradient(0deg, #0a0a0a 0, rgba(10,10,10,.86) 16%, transparent 38%),
  radial-gradient(90% 90% at 50% 46%, transparent 40%, rgba(5,6,6,.8) 100%); }

.wk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: clamp(48px, 6.5vh, 90px) var(--gutter) 0; }
.wk-head h2 { margin: 0; font: 900 clamp(2.6rem, 4.6vw, 5.4rem)/.88 "Barlow Condensed", sans-serif; text-transform: uppercase; }
.wk-head h2 em { font-style: normal; color: var(--green); }
.wk-filters { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.wk-filters button { border: 0; background: none; padding: 12px 0; color: rgba(255,255,255,.62); font: 600 .9rem/1 "Inter", sans-serif; cursor: pointer; border-bottom: 2px solid transparent; transition: color .25s ease, border-color .25s ease; }
.wk-filters button:hover { color: #fff; }
.wk-filters button.active { color: #fff; border-color: var(--green); }

.wk-stage { position: relative; perspective: 1700px; perspective-origin: 50% 42%; touch-action: pan-y; cursor: grab; user-select: none; min-height: calc(var(--h) + 56px); outline: none; }
.wk-stage:active { cursor: grabbing; }
.wk-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--green); }
.wk-rail { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.wk-poster {
  position: absolute; left: 50%; top: calc(50% - 20px); width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d; color: inherit; text-decoration: none; -webkit-user-drag: none;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .9s ease;
}
.wk-poster img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.wk-face { position: absolute; inset: 0; border-radius: 3px; overflow: hidden; background: #0c0e0e; outline: 1px solid rgba(255,255,255,.16); outline-offset: 5px; filter: brightness(.3) saturate(.8); transition: filter .7s ease, box-shadow .9s ease; }
.wk-mirror { position: absolute; left: 0; right: 0; top: calc(100% + 14px); height: 46%; overflow: hidden; opacity: .16; transition: opacity .9s ease; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.wk-mirror img { position: absolute; left: 0; top: 0; height: calc(var(--h)); transform: scaleY(-1); transform-origin: 50% 50%; filter: blur(2.5px) brightness(.9); }
.wk-poster.cur .wk-face { filter: none; box-shadow: 0 0 130px -20px color-mix(in srgb, var(--c) 42%, transparent), 0 30px 70px rgba(0,0,0,.6); animation: wkTube .75s linear; }
.wk-poster.cur .wk-mirror { opacity: .42; }
.wk-poster:not(.cur):hover .wk-face { filter: brightness(.62); }
.wk-poster:focus-visible .wk-face { outline-color: var(--green); outline-width: 2px; }

.wk-info { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0 var(--gutter) clamp(36px, 5vh, 64px); }
.wk-text { max-width: 640px; min-height: 138px; display: flex; flex-direction: column; justify-content: flex-end; }
.wk-meta { margin: 0 0 10px; color: rgba(255,255,255,.72); font-size: .88rem; }
.wk-meta b { color: var(--green); font-weight: 600; }
.wk-text h3 { margin: 0 0 18px; font: 800 clamp(1.7rem, 2.5vw, 2.9rem)/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; text-wrap: balance; }
.wk-open { align-self: flex-start; display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border-radius: 99px; background: var(--green); color: #050505; font-weight: 800; font-size: .84rem; text-decoration: none; transition: transform .25s ease; }
.wk-open:hover { transform: translateY(-2px); }
.wk-text.swap > * { animation: wkUp .7s cubic-bezier(.16,1,.3,1) both; }
.wk-text.swap > :nth-child(2) { animation-delay: .06s; }
.wk-text.swap > :nth-child(3) { animation-delay: .12s; }
.wk-nav { display: flex; align-items: center; gap: 14px; }
.wk-count { font: 700 1.2rem/1 "Barlow Condensed", sans-serif; min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; }
.wk-count span { color: rgba(255,255,255,.5); }
.wk-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.24); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color .25s ease, color .25s ease; }
.wk-nav button:hover { border-color: var(--green); color: var(--green); }
.wk-nav svg { width: 20px; height: 20px; }

@keyframes wkTube { 0% { filter: brightness(.3); } 12% { filter: brightness(1.15); } 20% { filter: brightness(.4); } 34% { filter: brightness(1.1); } 42% { filter: brightness(.7); } 60%, 100% { filter: brightness(1); } }
@keyframes wkUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .wk { --h: min(102vw, 56vh); min-height: 0; }
  .wk-head { padding-top: 72px; }
  .wk-filters { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .wk-filters::-webkit-scrollbar { display: none; }
  .wk-filters button { white-space: nowrap; }
  .wk-stage { min-height: calc(var(--h) + 120px); }
  .wk-light { width: 130vw; height: 60%; translate: -50% -60%; filter: blur(60px) saturate(1.5); }
  .wk-info { flex-direction: column; align-items: stretch; gap: 22px; padding-bottom: 64px; }
  .wk-text { min-height: 0; }
  .wk-nav { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .wk * { transition-duration: .01s !important; animation: none !important; } }
