/* ============================================================
   voice-hero.css · ההירו של "הקול שלי ברשת" עם עומק (25.11.2026)
   "זה כל ההיסטוריה שלי": תמונות אמיתיות מכל התקופות (ילדות, הסניף, הצבא, IAC, הפיג'מות,
   ערוץ 12, המעגל) צפות בשלושה עומקים מאחורי הטקסט והטלפון.
   רחוק = קטן, מטושטש מראש ועמום. קרוב = גדול וחד. כל עומק זז במהירות אחרת בגלילה ונגד העכבר
   (js/voice-hero.js), וכל תמונה מרחפת לאט. שמיים של לילה בצבעי המותג, וחושך מאחורי הטקסט.
   התמונות: research/voice-hero/make_memories.py. "פחות תנועה": הכול עומד.
   ============================================================ */
.vh { position: relative; isolation: isolate; overflow: hidden; }
.vh > .container { position: relative; z-index: 1; }
.vhm { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 30% 30%, rgba(56, 24, 131, .5), transparent 70%), radial-gradient(50% 45% at 90% 85%, rgba(2, 39, 117, .55), transparent 70%); }
.vhm__plane { position: absolute; inset: 0; transform: translate3d(var(--px, 0px), var(--py, 0px), 0); }
.vhm__card { position: absolute; left: var(--x); top: var(--y); margin: 0; width: var(--w); translate: -50% -50%; rotate: var(--r);
  padding: 5px 5px 0; background: #f3eee0; border-radius: 6px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8);
  animation: vhm-float var(--dur, 9s) ease-in-out calc(var(--f) * -1.3s) infinite alternate; }
.vhm__card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.vhm__card figcaption { padding: 3px 2px 5px; font: 900 .78rem/1 var(--f-brand); color: #2a2450; text-align: center; letter-spacing: .02em; }
.vhm__card:not(:has(figcaption)) { padding-bottom: 14px; }
.vhm__plane--far  { --w: clamp(64px, 6vw, 104px); opacity: .34; }
.vhm__plane--far .vhm__card { --dur: 11s; box-shadow: none; filter: saturate(.6); }
.vhm__plane--mid  { --w: clamp(84px, 8.4vw, 140px); opacity: .55; }
.vhm__plane--mid .vhm__card { --dur: 9s; }
.vhm__plane--near { --w: clamp(110px, 11.5vw, 190px); opacity: .85; }
.vhm__plane--near .vhm__card { --dur: 7.5s; }
@keyframes vhm-float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
/* כוכבים קטנים שמנצנצים, ואור ושקט מאחורי הטקסט */
.vhm__stars { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.6px), radial-gradient(rgba(206, 214, 255, .35) 1px, transparent 1.5px);
  background-size: 173px 139px, 97px 113px; background-position: 13px 27px, 61px 5px; opacity: .5; animation: vhm-twinkle 5s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(#000 40%, transparent 85%); mask-image: linear-gradient(#000 40%, transparent 85%); }
@keyframes vhm-twinkle { from { opacity: .3; } to { opacity: .65; } }
.vhm__shade { position: absolute; inset: 0; background:
  radial-gradient(46% 60% at 78% 46%, rgba(10, 12, 38, .9), rgba(10, 12, 38, .55) 55%, transparent 80%),
  linear-gradient(180deg, rgba(10, 12, 38, .55) 0%, transparent 18%, transparent 75%, rgba(12, 16, 48, .9) 100%); }
/* כניסה: מהרחוק לקרוב */
.js-motion .vhm__plane { opacity: 0; transition: opacity 1.4s var(--ease); }
.js-motion .vhm.is-in .vhm__plane--far  { opacity: .34; transition-delay: .1s; }
.js-motion .vhm.is-in .vhm__plane--mid  { opacity: .55; transition-delay: .45s; }
.js-motion .vhm.is-in .vhm__plane--near { opacity: .85; transition-delay: .8s; }
@media (max-width: 760px) {
  .vhm__plane--near, .vhm__card--c { display: none; }   /* בטלפון: רק התמונות שבקצוות, לא מאחורי הטקסט */
  .vhm__plane--mid { --w: 74px; opacity: .4; }
  .js-motion .vhm.is-in .vhm__plane--mid { opacity: .4; }
  .vhm__plane--far { --w: 56px; }
  .vhm__shade { background: linear-gradient(180deg, rgba(10, 12, 38, .55), rgba(10, 12, 38, .35) 40%, rgba(10, 12, 38, .75) 100%); }
}
@media (prefers-reduced-motion: reduce) { .vhm__card, .vhm__stars { animation: none; } .vhm__plane { transform: none !important; } }
html.reduce-motion .vhm__card, html.reduce-motion .vhm__stars { animation: none; }
html.reduce-motion .vhm__plane { transform: none !important; }
