.project-art{isolation:isolate}
.project-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center;z-index:3;transition:transform .8s var(--ease)}
.project-card:hover .project-cover{transform:scale(1.04)}
.project-media{display:grid;gap:24px;margin:26px 0 35px}
.project-media figure{margin:0;overflow:hidden;border:1px solid #dbe1d6;border-radius:12px;background:#e7ece3}
.project-media img{display:block;width:100%;height:auto}
.project-media video{display:block;width:100%;max-height:520px;background:#1f2420;border-radius:10px}
.project-media figcaption{font-size:12px;line-height:1.8;color:#6d756c;padding:12px 15px;background:#f8faf5}
.project-media a{display:block}
.project-resource-links{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}
.project-resource-links .pill{font-size:12px;padding:12px 18px}
.media-error{font-size:12px;padding:18px;color:#c4532c}
.project-dialog:has(.project-media){width:880px}

/* key numbers inside the project dialog */
.detail-stats{display:flex;flex-wrap:wrap;gap:14px 36px;margin:0 0 8px;padding:18px 0 22px;border-top:1px solid #dbe1d6}
.detail-stats div{display:grid;gap:2px}
.detail-stats strong{font-size:26px;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--blue)}
.detail-stats span{font-size:12px;color:#6d756c}
.detail-note{border-left:3px solid var(--orange);padding-left:12px}

/* card art for each project (shown until a real cover is added) */
.trace-row{display:flex;gap:5px;margin:0 0 11px}
.trace-row b{font:8px monospace;padding:3px 6px;border-radius:4px}
.trace-row .m{background:#e3e8ff;color:#3150e6}.trace-row .r{background:#e7ece3;color:#3a4049}
.art-rent{background:#cfe6d8}
.mini-sheet{width:78%;background:#fbfcf9;border-radius:9px;box-shadow:7px 9px 0 #1f242018;transform:rotate(-4deg);transition:transform .6s;overflow:hidden}
.project-card:hover .mini-sheet{transform:rotate(-1deg)}
.sheet-head{display:flex;justify-content:space-between;font:9px monospace;padding:11px 12px;background:#1f7a4a;color:#fff}
.sheet-head i{font-style:normal;opacity:.75}
.sheet-rows{display:grid;gap:6px;padding:12px}
.sheet-rows span{height:13px;border-radius:3px;background:linear-gradient(90deg,#e7ece3 0 22%,transparent 22% 26%,#e7ece3 26% 48%,transparent 48% 52%,#e3e8ff 52% 74%,transparent 74% 78%,#c9d4ff 78%)}
.sheet-btn{margin:2px 12px 13px;font:9px monospace;text-align:center;padding:8px;border-radius:6px;background:#3150e6;color:#fff}
.art-study{background:#f6dfa8}
.mini-phone{width:118px;height:210px;border-radius:20px;border:5px solid #1f2420;background:#fbfcf9;display:flex;flex-direction:column;gap:7px;padding:14px 9px;transform:rotate(5deg);box-shadow:7px 9px 0 #1f242018;transition:transform .6s}
.project-card:hover .mini-phone{transform:rotate(1deg)}
.ph-title{font-size:10px;font-weight:700}
.ph-room{font-size:8px;display:flex;justify-content:space-between;padding:7px;border-radius:7px;background:#e7ece3}
.ph-room em{font-style:normal;color:#3150e6}
.ph-btn{margin-top:auto;font-size:9px;text-align:center;padding:8px;border-radius:9px;background:#3150e6;color:#fff}
.art-content{background:#f4d3c4}
.mini-pipe{display:grid;gap:7px;width:62%;transform:rotate(-5deg);transition:transform .6s}
.project-card:hover .mini-pipe{transform:rotate(-1deg)}
.mini-pipe span{font-size:10px;padding:9px 12px;border-radius:8px;background:#fbfcf9;box-shadow:5px 6px 0 #1f242014;display:flex;align-items:center;gap:8px}
.mini-pipe span::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.mini-pipe .m{color:#3150e6}.mini-pipe .r{color:#3a4049}.mini-pipe .h{color:#d4481c}
.art-rider{background:#dfe5d9}
.mini-funnel{display:grid;justify-items:center;gap:7px;width:72%;transform:rotate(4deg);transition:transform .6s}
.project-card:hover .mini-funnel{transform:rotate(1deg)}
.mini-funnel span{width:var(--w);font-size:10px;text-align:center;padding:9px 6px;border-radius:7px;background:#fbfcf9;color:#3150e6;box-shadow:5px 6px 0 #1f242014}
.mini-funnel .h{background:#ff6a3d;color:#fff}
.project-grid .project-card:nth-child(4){transition-delay:0s}.project-grid .project-card:nth-child(5){transition-delay:.1s}.project-grid .project-card:nth-child(6){transition-delay:.2s}
@media(max-width:760px){.detail-stats strong{font-size:22px}}
.phone-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px}
.project-media figure.is-phone{background:#1f2420;border-color:#1f2420;border-radius:22px;padding:6px}
.project-media figure.is-phone img{border-radius:16px}
.project-media figure.is-phone figcaption{background:transparent;color:#d6dcd2;padding:10px 6px 4px;font-size:11px}
.project-media figure.is-phone-video{max-width:360px;justify-self:center;border-radius:16px}
.project-media figure.is-phone-video video{max-height:none;border-radius:0}

.project-media figure.is-narrow{margin-left:auto;margin-right:auto}
