/* ═══ personal.css — "FROM YOUR PEOPLE" as a call on the vertushka ═══
   Contract unchanged:
   <div class="personal first">
     <div class="ps-from">№ 07 — THE GENERAL STAFF</div>     <!-- caller + line number (app writes it): the bubble header -->
     <div class="ps-stack"><div class="ps-typing" aria-hidden="true"><i></i><i></i><i></i></div><div class="ps-bubble">…</div></div>
     <div class="ps-time">02:14</div>
   </div>
   The card carries a black bakelite handset with a cream coiled cord and a cradle — no dial (the vertushka). .first: the line crackles
   (typing dots = static pops, 1.2s) before the voice (bubble) arrives. Reduced motion: no crackle, the bubble is simply there. */

.personal { margin: 16px 0; padding: 16px 14px 12px 58px; border-radius: 6px; position: relative; max-width: 100%; overflow: hidden;
  background: radial-gradient(120% 100% at 0 0, color-mix(in srgb, var(--accent, #b0121f) 18%, transparent), transparent 60%), #0a0709; border: 1px solid color-mix(in srgb, var(--gold, #d4a93c) 22%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 30px -18px #000; }
/* the handset: black bakelite, two earpiece/mouthpiece knobs, on a cradle at the card's left edge */
.personal::before { content: ""; position: absolute; left: 12px; top: 14px; width: 34px; height: 12px; border-radius: 6px; z-index: 1;
  background: linear-gradient(#2a2a2e, #0a0a0c 55%, #1c1c20); box-shadow: 0 2px 5px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .15);
  -webkit-mask: radial-gradient(circle at 5px 50%, #000 0 7px, transparent 7.5px) left / 14px 100% no-repeat, linear-gradient(#000, #000); }
.personal::before { border-radius: 8px / 6px; box-shadow: 0 2px 5px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.15), -6px 0 0 -2px #16161a, 6px 0 0 -2px #16161a; }
/* the cream coiled cord: a looped repeating spring dropping to the base */
.personal::after { content: ""; position: absolute; left: 20px; top: 30px; width: 18px; bottom: 16px; opacity: .95; transform-origin: 50% 0; animation: ps-sway 5s ease-in-out infinite alternate;
  background: repeating-radial-gradient(ellipse 9px 4px at 50% 4px, transparent 0 2.2px, #e6d9b6 2.4px 3.6px, transparent 3.8px 4.6px) 0 0 / 100% 8px;
  -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); }
@keyframes ps-sway { from { transform: skewX(-3deg); } to { transform: skewX(3deg); } }
.ps-from { position: relative; z-index: 2; font: 800 9.5px/1.2 var(--sans, -apple-system, sans-serif); letter-spacing: .22em; text-transform: uppercase; color: var(--gold, #d4a93c); margin: 0 0 9px 4px; }
.ps-from::before { content: "☎ "; letter-spacing: 0; }
.ps-stack { position: relative; z-index: 2; display: inline-block; max-width: 96%; }
.ps-bubble { position: relative; padding: 11px 15px 12px; border-radius: 3px 14px 14px 14px; background: linear-gradient(180deg, #2a1a1c, #1a1012); color: #ece4cf; border: 1px solid color-mix(in srgb, var(--accent, #b0121f) 45%, transparent);
  font: italic 16px/1.45 var(--serif, Georgia, serif); letter-spacing: .005em; box-shadow: 0 6px 16px -10px #000, inset 0 1px 0 rgba(255, 255, 255, .06); }
.ps-time { position: relative; z-index: 2; margin: 7px 0 0 6px; font: 600 10.5px/1 'Courier New', ui-monospace, monospace; letter-spacing: .06em; color: color-mix(in srgb, var(--paper, #e9dfc4) 50%, transparent); }

.ps-typing { display: none; }
.personal.first .ps-typing { display: flex; align-items: center; gap: 4px; position: absolute; left: 0; bottom: 0; padding: 14px 16px; border-radius: 3px 14px 14px 14px; background: #1a1012; border: 1px solid color-mix(in srgb, var(--accent, #b0121f) 45%, transparent); animation: ps-typing 1.2s linear both; }
.personal.first .ps-typing i { width: 3px; height: 12px; border-radius: 1px; background: #cdbf9a; animation: ps-dot .22s steps(2) infinite; }      /* line static */
.personal.first .ps-typing i:nth-child(2) { animation-delay: .06s; height: 8px; } .personal.first .ps-typing i:nth-child(3) { animation-delay: .13s; height: 15px; }
@keyframes ps-dot { 0% { opacity: .25; transform: scaleY(.5); } 100% { opacity: 1; transform: scaleY(1); } }
@keyframes ps-typing { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
.personal.first .ps-bubble { animation: ps-bubble .45s ease-out 1.2s both; }
@keyframes ps-bubble { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.personal.first .ps-time { animation: ps-fade .5s ease-out 1.5s both; }
@keyframes ps-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .personal::after { animation: none; } .personal.first .ps-typing { display: none; } .personal.first .ps-bubble, .personal.first .ps-time { animation: none; } }
