/* Recent work page: off-white, calm, with small motion on the cards */
body.wk { background: #f6f3ee; color: #161514; font-family: var(--f-body); }

.wk-main { width: min(1320px, 100%); margin: 0 auto; padding: 150px var(--gutter) 80px; }

.wk-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.wk-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(22, 21, 20, .55); }
.wk-kicker span { width: 28px; height: 1px; background: #ee3670; }
.wk-title { margin-top: 18px; font-family: var(--f-title); font-weight: 500; font-size: clamp(48px, 7.4vw, 112px); line-height: .95; letter-spacing: -.02em; }
.wk-sub { margin-top: 20px; max-width: 520px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; color: rgba(22, 21, 20, .62); }
.wk-head > * { animation: wk-rise .9s cubic-bezier(.22, .61, .36, 1) both; }
.wk-head > :nth-child(2) { animation-delay: .08s; }
.wk-head > :nth-child(3) { animation-delay: .16s; }
@keyframes wk-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* grid */
.wk-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px) clamp(16px, 2vw, 28px); }
.wk-card { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1); transition-delay: calc(var(--i) % 3 * 90ms); }
.wk-card.in { opacity: 1; transform: none; }
.wk-card a { display: block; color: inherit; outline: none; }

.wk-shot {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 0 rgba(22, 21, 20, .06), 0 10px 30px -14px rgba(22, 21, 20, .22);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), box-shadow .5s;
  will-change: transform;
}
.wk-card a:hover .wk-shot, .wk-card a:focus-visible .wk-shot { box-shadow: 0 1px 0 rgba(22, 21, 20, .06), 0 28px 50px -22px rgba(22, 21, 20, .38); }
.wk-card a:focus-visible .wk-shot { outline: 2px solid #ee3670; outline-offset: 4px; }

/* little browser bar so each card reads as a live website */
.wk-chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #fbfaf8; border-bottom: 1px solid rgba(22, 21, 20, .07); }
.wk-chrome i { width: 8px; height: 8px; border-radius: 50%; background: rgba(22, 21, 20, .14); }
.wk-chrome span { margin-left: 8px; font-family: var(--f-mono); font-size: 10.5px; color: rgba(22, 21, 20, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-img { aspect-ratio: 16 / 10; overflow: hidden; background: #e9e5de; }
.wk-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.001); transition: transform 1.4s cubic-bezier(.22, .61, .36, 1); }
.wk-card a:hover .wk-img img { transform: scale(1.06); }

.wk-pill {
  position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translate(-50%, 14px); opacity: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); color: #161514; font-size: 13px; font-weight: 500;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), opacity .4s;
}
.wk-card a:hover .wk-pill, .wk-card a:focus-visible .wk-pill { transform: translate(-50%, 0); opacity: 1; }
.wk-sheen { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .28), transparent 45%); }
.wk-card a:hover .wk-sheen { opacity: 1; }

.wk-meta { display: flex; gap: 14px; align-items: baseline; padding: 18px 4px 0; }
.wk-num { font-family: var(--f-mono); font-size: 11.5px; color: rgba(22, 21, 20, .4); }
.wk-meta h2 { font-family: var(--f-title); font-weight: 500; font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.01em; transition: color .3s; }
.wk-card a:hover h2 { color: #ee3670; }
.wk-meta p { margin-top: 4px; font-size: 13.5px; color: rgba(22, 21, 20, .55); }

/* closing CTA */
.wk-cta { margin-top: clamp(80px, 10vw, 140px); padding-top: 48px; border-top: 1px solid rgba(22, 21, 20, .1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.wk-cta p { font-family: var(--f-title); font-size: clamp(26px, 3vw, 40px); letter-spacing: -.01em; }
.wk-cta__row { display: flex; align-items: center; gap: 24px; }
.wk-btn { padding: 13px 26px; border-radius: 999px; background: #161514; color: #f6f3ee; font-size: 14.5px; font-weight: 500; transition: background .3s; }
.wk-btn:hover { background: #ee3670; }
.wk-link { font-size: 14.5px; font-weight: 500; border-bottom: 1px solid rgba(22, 21, 20, .3); padding-bottom: 3px; }
.wk-link span { display: inline-block; transition: transform .3s; }
.wk-link:hover span { transform: translateX(4px); }

@media (max-width: 1023px) { .wk-grid { grid-template-columns: repeat(2, 1fr); } .wk-card { transition-delay: calc(var(--i) % 2 * 90ms); } }
@media (max-width: 640px) {
  .wk-main { padding-top: 124px; }
  .wk-grid { grid-template-columns: 1fr; }
  .wk-card { transition-delay: 0ms; }
  .wk-pill { opacity: 1; transform: translate(-50%, 0); padding: 8px 14px; font-size: 12px; bottom: 12px; }
  .wk-card a:active .wk-shot { transform: scale(.985); }
  .wk-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .wk-card, .wk-head > * { transition: none; animation: none; opacity: 1; transform: none; }
}

/* soft backdrop: warm blush and peach light drifting behind the page, with a fine grain */
body.wk { position: relative; isolation: isolate; }
body.wk::before, body.wk::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.wk::before {
  background:
    radial-gradient(42vw 42vw at 88% 6%, rgba(238, 54, 112, .13), transparent 70%),
    radial-gradient(48vw 48vw at 4% 46%, rgba(255, 176, 120, .16), transparent 70%),
    radial-gradient(40vw 40vw at 72% 96%, rgba(238, 54, 112, .08), transparent 70%),
    linear-gradient(180deg, #f8f4ef 0%, #f4eee8 100%);
  animation: wk-drift 24s ease-in-out infinite alternate;
}
body.wk::after {
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes wk-drift { to { transform: scale(1.08) translate(-1.5%, 1.5%); } }
@media (prefers-reduced-motion: reduce) { body.wk::before { animation: none; } }
