/* Paginile „studiu de caz” din portofoliu (varianta „Cifrele”, cu teancul de poze). --acc este culoarea proiectului. */
.cs { --acc: var(--gold); padding: 18px 0 0; }
.cs-crumb { font-size: 14px; color: var(--mute); margin: 0 0 18px; }
.cs-crumb a { color: inherit; text-underline-offset: 3px; }
.cs .kicker { color: var(--acc); }
.cs h1 { font-size: clamp(30px, 7.6vw, 56px); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; margin: 0 0 8px; max-width: 18ch; }
.cs-sub { color: var(--mute); font-weight: 600; font-size: 17px; margin: 0; }

/* cele trei cifre mari, care numără o singură dată */
.cs-nums { container-type: inline-size; list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-nums li { padding: 16px 4px 14px; text-align: center; font-size: 13.5px; line-height: 1.25; color: var(--mute); }
.cs-nums li + li { border-left: 1px solid var(--line); }
/* Valoarea stă pe un singur rând („6+ ore”, „24 ore”): mărimea ține de lățimea casetei, nu a ecranului. */
.cs-nums b { display: block; white-space: nowrap; font-size: clamp(22px, 8.2cqw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--acc); font-variant-numeric: tabular-nums; }

.cs-hero { margin: 22px 0 0; }
.cs-hero img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; background: var(--soft); }

.cs-body { display: grid; gap: 8px; padding: 12px 0 0; }
.cs-story h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 26px 0 6px; }
.cs-story p { margin: 0; max-width: 60ch; font-size: 17px; }

/* teancul de poze: apeși sau tragi, iar poza de sus trece la spate */
.cs-stack { padding: 30px 0 0; }
.cs-deck { position: relative; isolation: isolate; /* cărțile au z-index până la 20: fără asta trec peste antetul lipit sus */ aspect-ratio: 4 / 5; width: min(100% - 44px, 420px); margin: 0 auto; touch-action: pan-y; -webkit-user-select: none; user-select: none; outline-offset: 10px; }
.cs-card { position: absolute; inset: 0; margin: 0; border-radius: 16px; overflow: hidden; background: #111; box-shadow: 0 8px 22px rgba(0, 0, 0, .24); transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .3s; cursor: pointer; }
.cs-card img, .cs-card video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cs-tag { position: absolute; left: 12px; top: 12px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.cs-snd { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cs-dots { display: flex; justify-content: center; gap: 6px; margin: 34px 0 0; }
.cs-dots i { width: 7px; height: 7px; border-radius: 7px; background: var(--line); transition: width .25s, background .25s; }
.cs-dots i.on { width: 22px; background: var(--acc); }
.cs-hint { text-align: center; color: var(--mute); font-size: 14px; margin: 10px 0 0; }
/* Descrierea pozei nu se mai vede (decizia lui Robert, 23 nov. 2026); rămâne pentru cititoarele de ecran. */
.cs-cap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cs-facts { margin: 34px 0 0; padding: 0; }
.cs-facts h2, .cs-used h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.cs-facts dl { margin: 0; border-top: 1px solid var(--line); }
.cs-facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cs-facts dt { color: var(--mute); flex: none; }
.cs-facts dd { margin: 0; font-weight: 700; text-align: right; }
.cs-used { margin: 30px 0 0; padding: 0; }
.cs-used ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-used a { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.cs-used a:hover { border-color: var(--ink); }

.cs-cta { background: var(--dark); color: #fff; padding: 52px 0; margin-top: 52px; }
.cs-cta h2 { font-size: clamp(26px, 5.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 12px; max-width: 20ch; }
.cs-cta p { color: #d8d2c6; max-width: 52ch; margin: 0 0 22px; }
.cs-cta .btn { background: #fff; color: #1d1a15; }
.cs-next { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; color: var(--ink); text-decoration: none; }
.cs-next small { display: block; color: var(--mute); font-size: 14px; }
.cs-next b { font-size: 20px; letter-spacing: -.01em; }
.cs-next span { font-size: 26px; }

@media (min-width: 900px) {
  .cs { padding-top: 34px; }
  .cs-top { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: end; }
  .cs-hero { margin: 0; }
  .cs-body { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-top: 34px; }
  .cs-stack { position: sticky; top: 96px; padding-top: 26px; }
  .cs-low { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
  .cs-used { margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) { .cs-card { transition: none; } }
