/* Tipografie cinetică (2026-10-06). Eroul: rândurile titlului urcă pe rând (mască, fără opacitate → nu întârzie LCP);
   accentul *italic serif* are un efect propriu fiecărui site (body[data-miscare] = varianta antetului).
   Mai jos pe pagină: titlurile de secțiune intră la derulare (miscare.js adaugă .vazut). Fără JS sau cu
   „reduce motion”, totul e static și vizibil. Decizie: docs/brainstorm/03-design.md. */

/* ---------- eroul: rândurile titlului, pe rând ---------- */
.erou h1 .rand { animation: rand-sus .8s cubic-bezier(.2, .75, .2, 1) both; }
.erou h1 .rand:nth-child(2) { animation-delay: .12s; }
.erou h1 .rand:nth-child(3) { animation-delay: .24s; }
@keyframes rand-sus { from { clip-path: inset(-30% -5% 100% -5%); transform: translateY(.45em); } to { clip-path: inset(-30% -5% -30% -5%); transform: none; } }

/* majusculele rărite se „deschid” */
.erou h1 .t-caps { animation: caps-deschise 1.1s .35s cubic-bezier(.2, .75, .2, 1) both; }
@keyframes caps-deschise { from { letter-spacing: .02em; opacity: 0; } to { letter-spacing: .3em; opacity: 1; } }

/* ---------- accentul serif: un efect pe fiecare site ---------- */
.erou h1 .t-serif { display: inline-block; animation: .9s .3s cubic-bezier(.2, .75, .2, 1) both; }
/* recondiționare: o linie se trage sub cuvânt */
[data-miscare="clasic"] .erou h1 .t-serif { background: linear-gradient(currentColor, currentColor) 0 92% / 0 1px no-repeat;
  animation-name: subliniere; animation-duration: 1.2s; }
@keyframes subliniere { to { background-size: 100% 1px; } }
/* vopsit: culoarea se „vopsește” peste cuvânt, de la stânga la dreapta */
[data-miscare="culoare"] .erou h1 .t-serif { color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--accent-text) 50%, var(--bordura) 50%); background-size: 200% 100%;
  background-position: 100% 0; animation-name: pensula; animation-duration: 1.4s; }
@keyframes pensula { to { background-position: 0 0; } }
/* sablare: cuvântul iese din „praf” */
[data-miscare="industrial"] .erou h1 .t-serif { animation-name: din-praf; }
@keyframes din-praf { from { filter: blur(8px); letter-spacing: .12em; } to { filter: none; letter-spacing: -.01em; } }
/* îndreptat: cuvântul strâmb se îndreaptă */
[data-miscare="tehnic"] .erou h1 .t-serif { animation-name: indreptare; transform-origin: left bottom; }
@keyframes indreptare { from { transform: rotate(-6deg) skewX(-14deg); } to { transform: none; } }
/* reparat: cuvântul se „prinde” la loc, scurt și ferm */
[data-miscare="urgent"] .erou h1 .t-serif { animation-name: fixare; animation-duration: .5s; animation-delay: .45s; }
@keyframes fixare { 0% { transform: translateX(-.3em); } 70% { transform: translateX(.06em); } 100% { transform: none; } }
/* diamond cut: o lumină trece peste fața lucioasă */
[data-miscare="premium"] .erou h1 .t-serif { -webkit-background-clip: text; background-clip: text; color: transparent;
  background-image: linear-gradient(100deg, var(--titlu-culoare) 40%, #fff 50%, var(--titlu-culoare) 60%);
  background-size: 300% 100%; background-position: 100% 0; animation-name: luciu; animation-duration: 2.2s; }
@keyframes luciu { to { background-position: 0 0; } }
/* vulcanizări: cuvântul intră rostogolindu-se */
[data-miscare="prietenos"] .erou h1 .t-serif { animation-name: rostogolire; }
@keyframes rostogolire { from { transform: translateX(-1.2em) rotate(-14deg); } to { transform: none; } }

/* ---------- la derulare: titlurile de secțiune (doar cu JS) ---------- */
.js-miscare .sectiune__titlu { transition: transform .7s cubic-bezier(.2, .75, .2, 1), opacity .7s; }
.js-miscare .sectiune__titlu:not(.vazut) { opacity: 0; transform: translateY(18px); }
.js-miscare .sectiune__titlu .t-serif { transition: letter-spacing 1s .15s; }
.js-miscare .sectiune__titlu:not(.vazut) .t-serif { letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) {
  .erou h1 *, .erou h1 { animation: none !important; }
  .js-miscare .sectiune__titlu, .js-miscare .sectiune__titlu * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
