/* מתנת השם · החוט המרכזי ומעברי הסצנות (בעלים: סוכן B) */

/* שכבה בגובה המסמך: מעל רקע הקווילט, מתחת לכל התוכן (נצבעת לפני main) */
.thread-layer{position:absolute;inset-block-start:0;inset-inline:0;height:0;z-index:0;pointer-events:none;overflow:hidden;contain:strict;opacity:0;transition:opacity .8s var(--ease)}
.thread-layer.is-ready{opacity:1}
.thread-svg{position:absolute;top:0;left:0;max-width:none;overflow:visible}
.thread-svg *{vector-effect:non-scaling-stroke}

.thread-line{fill:none;stroke:var(--thread);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.thread-layer.is-mobile .thread-line{stroke-width:2}

/* מסגרת תפורה סביב החנות */
.thread-frame{fill:none;stroke:var(--thread);stroke-width:1.25;stroke-dasharray:9 5;opacity:.7}

/* מחט: נקודה קטנה בקצה החוט בזמן התפירה */
.thread-tip{fill:var(--thread);opacity:0;transition:opacity .4s}

/* קרן הלייזר: זוהר חם וחום-זהב בין הלייזר למזוזה.
   בלי פילטר ובלי אנימציה אינסופית: שני קווים שקופים על קטע קצר, ומעבר עמעום כשהקרן "דולקת" */
.thread-glow{fill:none;stroke-linecap:round;stroke-linejoin:round;transition:opacity 1.2s var(--ease)}
.thread-glow--wide{stroke:var(--thread);stroke-width:9;opacity:.08}
.thread-glow--core{stroke:var(--heading);stroke-width:3.5;opacity:.16}
.thread-layer.laser-on .thread-glow--wide{opacity:.16}
.thread-layer.laser-on .thread-glow--core{opacity:.32}

/* מעבר עדין בין סצנות: סצנה שפחות מ-40% ממנה גלוי נחלשת מעט מאוד.
   ‎.96 בלבד, כדי שהטקסט יישאר בניגודיות AA גם בזמן המעבר */
html.js .scene{transition:opacity .9s var(--ease)}
html.js .scene:not(.is-active){opacity:.96}

html.motion-off .thread-glow{transition:none}
html.motion-off .thread-tip{opacity:0!important}
html.motion-off .scene{opacity:1!important;transition:none}
@media (prefers-reduced-motion:reduce){
  .thread-glow{transition:none!important}
  html.js .scene{opacity:1!important;transition:none!important}
}
