/* work thumbnails: the same white-mat cards, dotted paper and iPhone frames as the case study pages */
.dev { container-type: inline-size; position: relative; width: 100%; }
.dev::before { content: ""; position: absolute; left: -1.1cqw; top: 0; bottom: 0; width: 1.4cqw; border-radius: 1cqw 0 0 1cqw; background: linear-gradient(#a9a59d, #a9a59d) 0 14.5% / 100% 3.5% no-repeat, linear-gradient(#a9a59d, #a9a59d) 0 23.5% / 100% 6.5% no-repeat, linear-gradient(#a9a59d, #a9a59d) 0 32.6% / 100% 6.5% no-repeat; }
.dev::after { content: ""; position: absolute; right: -1.1cqw; top: 0; bottom: 0; width: 1.4cqw; border-radius: 0 1cqw 1cqw 0; background: linear-gradient(#a9a59d, #a9a59d) 0 27.8% / 100% 10% no-repeat, linear-gradient(#8f8b84, #8f8b84) 0 63.8% / 100% 6% no-repeat; }
.dev-f { position: relative; padding: 4.6cqw; border-radius: 16.4cqw; background: linear-gradient(135deg, #e2ded6 0%, #9a968e 22%, #d3cfc7 48%, #85817a 74%, #c9c5bc 100%); box-shadow: inset 0 0 0 .4cqw rgba(0,0,0,.28), 0 0 0 .2cqw rgba(0,0,0,.18); }
.dev-s { position: relative; width: 100%; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 11.8cqw; background: #141416; box-shadow: 0 0 0 2.8cqw #050505; }
.dev-s img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.dev-i { position: absolute; z-index: 2; top: 7.2cqw; left: 50%; width: 27.5cqw; height: 8.1cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.dcard { position: relative; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(20,23,26,.08), 0 22px 46px rgba(20,23,26,.13); transition: transform .6s cubic-bezier(.23, 1, .32, 1); }
[data-theme="dark"] .dcard { background: #232321; box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 22px 46px rgba(0,0,0,.45); }
.dcard-in { position: relative; overflow: hidden; border-radius: 7px; background: var(--paper); aspect-ratio: 100 / 64; }
.dcard-in::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(138,135,127,.5) .9px, transparent 1.3px) 0 0 / 16px 16px; -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 85%); }
.dcard-in .dl { position: absolute; z-index: 3; top: 14px; font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dcard-in .dl:first-of-type { left: 16px; } .dcard-in .dl + .dl { right: 16px; }
.dcard-in .dev { position: absolute; width: 22%; }
.dcard-in .dev.c0 { left: 50%; z-index: 3; bottom: 3%; width: 26%; transform: translateX(-50%); }
.dcard-in .dev.m { z-index: 2; bottom: -1%; }
.dcard-in .dev.m1 { left: 31%; transform: translateX(-50%) rotate(-5deg); }
.dcard-in .dev.m2 { left: 69%; transform: translateX(-50%) rotate(5deg); }
.dcard-in .dev.o { z-index: 1; bottom: -6%; width: 18%; }
.dcard-in .dev.o1 { left: 13%; transform: translateX(-50%) rotate(-9deg); }
.dcard-in .dev.o2 { left: 87%; transform: translateX(-50%) rotate(9deg); }
.wimg { position: absolute; z-index: 1; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 10px 26px rgba(20,23,26,.18); }
.wimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wimg.fill { inset: 9% 6% 6%; }
.wimg.web { left: 7%; top: 16%; width: 66%; aspect-ratio: 16 / 10; }
.dcard-in .dev.en { right: 9%; bottom: -10%; width: 21%; z-index: 3; }
.wcard .wc-img { display: block; }
.wcard:hover .dcard { transform: translateY(-4px); }
@media (max-width: 760px) { .dcard-in .dev.o { display: none; } .dcard-in .dev.m { width: 28%; } .dcard-in .dev.m1 { left: 24%; } .dcard-in .dev.m2 { left: 76%; } .dcard-in .dev.c0 { width: 34%; } .dcard-in { aspect-ratio: 100 / 80; } }
/* hover previews: one screen per card, the same card style */
.wp { width: 260px; height: 330px; border-radius: 12px; overflow: visible; box-shadow: none; }
.wp .shot { background: none !important; }
.wp .dcard { height: 100%; transition: none; }
.wp .dcard-in { height: 100%; aspect-ratio: auto; padding: 34px 9% 0; }
.wp .dcard-in .dev { position: relative; width: 100%; }
.wp .dcard-in .wimg { position: absolute; inset: 34px 9% 9%; }
.wp .wimg img { object-position: center; }
.wp .dcard-in .dev.m1, .wp .dcard-in .dev.m2 { transform: none; }
