/*
 * Design 7-straturi (copie neschimbată a piesei din 6-mvp): Despre (piesa din direcția 4): fond verde închis, titlul condensat, replicile lor pe bilețele lipite
 *   cu bandă adezivă, bilețelul kraft cu bio-ul.
 * Primește: markup-ul din index.html, umplut de about.js; clasa .is-in (reveal.js) pe listă pornește mișcarea.
 * Dă: aspectul secțiunii și intrarea bilețelelor (cerută și aprobată de Robert pe 17.11.2026): fiecare bilet cade
 *   rotit și se lipește, banda de scotch se apasă pe el, apoi poanta (a doua linie) e trântită ca o ștampilă după o
 *   pauză scurtă. O singură trecere, ease-out exponențial, fără depășire. Întoarcerea biletului din rotație e în
 *   about-flip.js. Cu prefers-reduced-motion bilețelele stau direct la locul lor.
 * Nu e treaba lui: tokenii și .title-cond (style.css).
 */
.about {
  --section-y: clamp(72px, 9vw, 132px);
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background: var(--ink);
  color: var(--cream);
}
/* arcul din siglă (două tonuri), tăiat la marginea secțiunii, foarte discret */
.about::after {
  content: '';
  position: absolute;
  left: -170px;
  bottom: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #0000 0 150px, color-mix(in srgb, var(--tan-light) 30%, transparent) 150px 225px, color-mix(in srgb, var(--tan) 30%, transparent) 225px 300px, #0000 300px);
}
.about__grid { position: relative; z-index: 1; display: grid; gap: 56px; }
.about .title-cond { color: var(--cream); }
.about__fact { margin-top: 28px; max-width: 24rem; font: 500 1.125rem/1.5 var(--font-mono); }
.about__notes { display: grid; gap: 40px; padding-top: 14px; }
.note {
  --rot: 0deg;
  position: relative;
  width: min(100%, 470px);
  padding: 30px 28px 26px;
  color: var(--ink);
  background: var(--receipt);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  transform: rotate(var(--rot));
}
.note::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 28px;
  margin-left: -46px;
  transform: rotate(-3deg);
  background: color-mix(in srgb, var(--kraft) 85%, transparent);
  clip-path: polygon(0 0, 100% 0, 97% 25%, 100% 50%, 97% 75%, 100% 100%, 0 100%, 3% 75%, 0 50%, 3% 25%);
}
.note__a, .note__b {
  font: 900 clamp(2rem, 3.4vw, 2.9rem)/1.02 var(--font-cond);
  font-stretch: 68%;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.note__b { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--rule); color: var(--green); }
.note--bio { background: var(--kraft); }
.note__bio { font: 500 1.0625rem/1.45 var(--font-mono); }
.note:nth-child(1) { --rot: -2deg; }
.note:nth-child(2) { margin-left: auto; --rot: 1.6deg; }
.note:nth-child(3) { --rot: -1deg; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .about__notes { gap: 0; }
  .note:nth-child(2) { margin-top: -10px; margin-right: 4%; }
  .note:nth-child(3) { margin-top: 36px; margin-left: 12%; }
}

/* ---------- Intrarea bilețelelor ----------
   Ritmul: --d = când cade biletul (unul după altul, la 0,35 s); banda se apasă după 0,4 s; poanta vine după ce biletul
   a stat 0,35 s (pauza de glumă), iar biletul tresare când e trântită. */
.note:nth-child(1) { --i: 0; }
.note:nth-child(2) { --i: 1; }
.note:nth-child(3) { --i: 2; }
@media (prefers-reduced-motion: no-preference) {
  .js .note {
    --d: calc(0.15s + var(--i, 0) * 0.35s);
    animation: noteDrop 0.6s var(--ease) var(--d) both, noteNudge 0.3s ease-out calc(var(--d) + 0.9s);
  }
  .js .note::before { animation: tapePress 0.28s var(--ease) calc(var(--d) + 0.4s) both; }
  .js .note__b { transform-origin: 0 50%; animation: stampIn 0.32s var(--ease) calc(var(--d) + 0.9s) both; }
  .js .about__notes:not(.is-in) .note,
  .js .about__notes:not(.is-in) .note::before,
  .js .about__notes:not(.is-in) .note__b { animation-play-state: paused; }
}
@keyframes noteDrop {
  from { opacity: 0; transform: translateY(-72px) rotate(calc(var(--rot) - 10deg)) scale(1.05); }
  40% { opacity: 1; }
  to { opacity: 1; transform: rotate(var(--rot)); }
}
@keyframes noteNudge {
  0%, 100% { transform: rotate(var(--rot)); }
  35% { transform: translateY(4px) rotate(calc(var(--rot) + 0.7deg)); }
}
@keyframes tapePress {
  from { opacity: 0; transform: rotate(-3deg) scale(1.5); }
  to { opacity: 1; transform: rotate(-3deg) scale(1); }
}
@keyframes stampIn {
  from { opacity: 0; transform: scale(1.45) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}
