/* Portfolio: cards on the home page and /cases/, case pages. Uses the tokens of plt.css. */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { display: grid; gap: 8px; align-content: start; padding-bottom: 24px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; min-width: 0; transition: border-color .25s, background-color .25s; }
.case-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); transition: transform .5s var(--ease, ease); }
.case-card > :not(img) { padding-inline: 24px; }
.case-card .case-cat { margin-top: 14px; }
.case-card h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.03em; }
.case-card p { color: var(--muted); }
.case-card:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--surface); }
.case-card:hover img { transform: scale(1.03); }
.case-cat { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.case-more { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
@media (max-width: 960px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }

.case-hero { padding-bottom: 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: inherit; }
.case-title { font-size: clamp(44px, 7vw, 92px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 10px 0 18px; overflow-wrap: anywhere; }
.case-tagline { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 14px; }
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-meta dt { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.case-meta dd { margin: 0; font-weight: 700; }
@media (max-width: 760px) { .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.case-shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.case-shots figure { margin: 0; grid-column: span var(--span, 6); min-width: 0; }
.case-shots img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: var(--bg-2); }
@media (max-width: 760px) { .case-shots { grid-template-columns: 1fr; } .case-shots figure { grid-column: auto; } .case-shots img { height: auto; } }

.case-palette { margin-top: 56px; }
.case-palette h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 18px; }
.case-palette ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-palette li { display: grid; gap: 6px; }
.case-palette .sw { display: block; height: 88px; border-radius: 16px; border: 1px solid var(--line); }
.case-palette code { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .case-palette ul { grid-template-columns: 1fr; } }
/* Portfolio tile with the proposal and the demos (tools/novshestva.mjs) */
.nov-demo .dots { display: inline-grid; grid-template-columns: repeat(3, 5px); gap: 3px; margin-right: 10px; vertical-align: middle; }
.nov-demo .dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .35; }
.nov-demo .dots i:nth-child(n+6) { background: #ff5a45; opacity: 1; }
.case-more > [data-nov] { display: contents; }
