/* =====================================================================
   תיק העבודות. רגע החתימה: "החפיסה".
   בפתיחה, אתרי הדגל מונחים כחפיסת קלפים, והעליון בצבע. כל 3.2 שניות הקלף
   העליון נשלף ונכנס לתחתית. כשגוללים, החפיסה מחולקת: כל קלף עף ונוחת בדיוק
   במקום שלו ברשת, ורק אז הרשת האמיתית מקבלת את התמונה (בלי תפר).
   ברשת: ריחוף על אתר דגל מנגן גלילה בתוך האתר (הלכידה המלאה, -full.webp).
   במגע: האריח שבמרכז המסך נדלק, והגלילה בתוך האתר נעה עם גלילת הדף.
   ===================================================================== */

/* ---------- פתיחה ---------- */
.pfh{position:relative;min-height:100vh;min-height:100svh;background:#000;color:#fff;overflow:clip}
.pfh-in{position:relative;z-index:2;max-width:1792px;min-height:100vh;min-height:100svh;margin:0 auto;padding:190px var(--gut) 120px;display:flex;flex-direction:column;justify-content:flex-end}
.pfh-tx{position:relative;z-index:2;width:min(52%,940px)}
.pfh-h1{margin:0;font-weight:900;font-size:clamp(60px,6.7vw,138px);line-height:.92;letter-spacing:-.015em;max-width:12ch;text-wrap:balance}
.pfh .btns{margin-top:48px}
.pfh .sh-ghost{top:44%}
.slot{position:absolute;left:var(--gut);top:50%;width:min(41vw,780px);aspect-ratio:16/10;transform:translateY(-54%);pointer-events:none}
.cap{position:absolute;top:calc(100% + 86px);right:0;left:0;margin:0;display:flex;justify-content:center;align-items:baseline;gap:14px;font-size:18px;line-height:1.3;color:var(--fg-72);text-align:center}
.cap b{color:#fff;font-weight:700}
.cap-t{display:block}

/* ---------- החפיסה: עותקים שעפים לרשת ---------- */
/* 0.5.1: main הוא ההורה הממוקם של החפיסה, ולכן ה-overflow-x:clip שלו (svc.css) חותך גם אותה. בלעדיו
   הקלף השמאלי יצא מהמסך ופתח גלילה אופקית. הקואורדינטות לא זזות: ה-JS מודד יחסית ל-main, ו-main מתחיל ב-0,0. */
main{position:relative}
.deal{position:absolute;top:0;left:0;width:100%;height:0;z-index:4;pointer-events:none}
.dc{position:absolute;top:0;left:0;display:block;border-radius:14px;overflow:hidden;background:#111;transform-origin:50% 50%;will-change:transform;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 40px 90px -36px rgba(0,0,0,.9);pointer-events:auto}
.dc img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.dc .g{filter:grayscale(1) contrast(1.05)}
.dc .c{opacity:0}
.dc.fit,.tl-shot.fit{background:#fff}
.dc.fit img,.tl-shot.fit>img{object-fit:contain;padding:10% 14%}
.dealt .deal{visibility:hidden}
.m:not(.dealt) .dealing .tl.k .tl-shot>*{visibility:hidden}
.rm .dc{box-shadow:0 0 0 1px rgba(255,255,255,.14)}

/* ---------- הרשת ---------- */
.pfg{padding-top:56px}
.flt-w{position:sticky;top:100px;z-index:6;display:flex;justify-content:center;margin:0 0 72px;pointer-events:none}
.flt{pointer-events:auto;display:flex;gap:4px;padding:6px;border-radius:999px;background:#000;box-shadow:0 0 0 1px var(--fg-24),0 24px 60px -24px rgba(0,0,0,.9)}
.flt button{flex:none;min-height:50px;padding:0 24px;border-radius:999px;font-size:18px;font-weight:700;line-height:1;color:rgba(255,255,255,.78);white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color .35s var(--ease),color .35s var(--ease),box-shadow .35s var(--ease),scale .2s var(--ease)}
.flt button[aria-pressed=true]{background:#fff;color:#000}
@media (hover:hover){.flt button[aria-pressed=false]:hover{color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55)}}
.flt button:focus-visible{outline:2px solid #fff;outline-offset:2px}
.flt button[aria-pressed=false]:active{background:#fff;color:#000}
.flt button:active{scale:.96}
.flt bdi{direction:ltr}

.tg{list-style:none;margin:0 auto;padding:0;display:grid;max-width:1600px}
.tg-f{grid-template-columns:repeat(3,minmax(0,1fr));gap:56px 24px}
.tg-r{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 20px}
.tg:empty{display:none}
.more{max-width:1600px;margin:150px auto 56px;display:flex;align-items:center;gap:28px}
.more .eyebrow{margin:0;flex:none}
.more::after{content:"";flex:1;height:1px;background:var(--fg-24)}
.more[hidden]{display:none}
.empty{max-width:1600px;margin:0 auto;font-size:22px;color:var(--fg-72);text-align:center}

.tl{position:relative;min-width:0}
.m .tl:not(.in){opacity:0;transform:translateY(46px)}
.m .tl{transition:opacity .9s var(--ease) var(--d,0s),transform 1.2s var(--soft) var(--d,0s)}
.tl-a{position:relative;display:flex;flex-direction:column;height:100%;padding:6px;border-radius:20px;background:var(--fg-06);box-shadow:0 0 0 1px var(--fg-12);transition:box-shadow .5s var(--ease)}
.tl-a:active{scale:.985}
.tl-shot{position:relative;display:block;flex:none;aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:#111;isolation:isolate}
.tl-shot>img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:50% 0;opacity:0;transition:opacity .6s var(--ease),transform 1s var(--ease)}
.tl-shot>img.g{filter:grayscale(1) contrast(1.05)}
.tl-shot>img.g.ok{opacity:1}
.tl-shot>.full{height:auto;opacity:0;transform:none;transition:opacity .45s var(--ease);will-change:transform;z-index:1}
.tl-shot>.full.fv{opacity:1}
.tl-pb{position:absolute;bottom:0;left:0;z-index:3;width:100%;height:3px;background:#fff;transform:scaleX(0);transform-origin:100% 50%;mix-blend-mode:difference}
.tl-p{position:absolute;bottom:16px;right:16px;z-index:4;display:flex;align-items:center;gap:8px;max-width:calc(100% - 32px);padding:9px 15px;border-radius:999px;background:#fff;color:#000;font-size:16px;font-weight:700;line-height:1;direction:ltr;opacity:0;transform:translateY(8px);transition:opacity .4s var(--ease),transform .5s var(--ease)}
.tl-p span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tl-p svg{flex:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tl-m{display:flex;flex-direction:column;gap:8px;padding:20px 14px 16px}
.tl-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tl-t{font-size:26px;font-weight:900;line-height:1.08;text-wrap:balance}
.tl-ty{font-size:16px;font-weight:700;color:var(--fg-50)}
.tl-tag{font-size:18px;line-height:1.45;color:var(--fg-72);text-wrap:pretty}
.tl-n{flex:none;margin-top:2px;padding:6px 12px;border-radius:999px;box-shadow:inset 0 0 0 1.5px var(--fg-50);font-size:16px;font-weight:700;line-height:1;white-space:nowrap}
.tg-r .tl-m{padding:16px 10px 12px;gap:6px}
.tg-r .tl-t{font-size:20px;font-weight:700;line-height:1.2}
/* מצב פעיל: ריחוף בעכבר, פוקוס, או האריח שבמרכז המסך במגע */
.tl.on .tl-a,.tl.lit .tl-a,.tl-a:focus-visible{box-shadow:0 0 0 1.5px rgba(255,255,255,.75)}
.tl.on .tl-shot>.c,.tl.lit .tl-shot>.c,.tl-a:focus-visible .tl-shot>.c{opacity:1}
.tl.on .tl-shot>img:not(.full),.tl.lit .tl-shot>img:not(.full){transform:scale(1.035)}
.tl.on .tl-p,.tl.lit .tl-p,.tl-a:focus-visible .tl-p{opacity:1;transform:none}
.tl.on .tl-n,.tl.lit .tl-n{background:#fff;color:#000;box-shadow:inset 0 0 0 1.5px #fff}
.tl.play .tl-shot>img:not(.full){transform:none}
.rm .tl-shot>img{transition:none}
/* מצב טעינה: שלושה אריחים שקטים עד שהנתונים מגיעים */
.sk-l{display:block;height:14px;border-radius:999px;background:rgba(255,255,255,.08)}
.sk-t{width:52%;height:24px;margin:2px 0}
.sk-sh{position:relative;overflow:hidden}
.sk-sh::after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.06),transparent);transform:translateX(-100%);animation:skm 1.6s var(--soft) infinite}
@keyframes skm{to{transform:translateX(100%)}}

/* ---------- טאבלט ומובייל ---------- */
@media (max-width:1279px){
  .tg-f{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tg-r{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1099px){
  .pfh-in{justify-content:flex-start;padding-top:170px;padding-bottom:110px}
  .pfh-tx{width:100%}
  .slot{position:relative;left:auto;top:auto;transform:none;width:min(76vw,640px);margin:64px auto 0}
}
@media (max-width:899px){
  .pfh-in{padding:124px 16px 96px;text-align:center}
  .pfh-h1{margin-inline:auto;font-size:clamp(44px,12.2vw,80px)}
  .pfh .btns{margin-top:32px}
  .pfh .sh-ghost{font-size:62vw;top:22%}
  .slot{width:min(86vw,560px);margin-top:44px}
  .cap{top:calc(100% + 58px);flex-direction:column;align-items:center;gap:2px}
  .pfg{padding-top:40px}
  .flt-w{top:80px;margin:0 -16px 44px}
  .flt{width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:0;padding:8px 16px;gap:6px;box-shadow:0 1px 0 var(--fg-12);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 calc(100% - 22px),transparent 100%)}
  .flt::-webkit-scrollbar{display:none}
  .flt button{min-height:46px;padding:0 20px;box-shadow:inset 0 0 0 1.5px var(--fg-24)}
  .flt button[aria-pressed=true]{box-shadow:inset 0 0 0 1.5px #fff}
  .tg-f{gap:40px 16px}
  .tg-r{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}
  .more{margin:110px auto 40px;justify-content:center}
  .more::before{content:"";flex:1;height:1px;background:var(--fg-24)}
  .tl-t{font-size:24px}
  .tl-m{text-align:right}
}
@media (max-width:599px){
  .tg-f{grid-template-columns:1fr;gap:36px}
  .tg-r{grid-template-columns:1fr;gap:12px}
  .tg-r .tl-a{flex-direction:row;align-items:center;gap:14px;padding:6px}
  .tg-r .tl-shot{width:46%;border-radius:12px}
  .tg-r .tl-m{flex:1;min-width:0;padding:4px 0 4px 6px}
  .tg-r .tl-t{font-size:18px}
  .tg-r .tl-p{display:none}
  .tg-r .tl-n{align-self:flex-start}
  .tl-p{bottom:12px;right:12px}
}
.pfh-sub{margin:20px 0 28px;font-size:clamp(18px,1.4vw,22px);line-height:1.4;opacity:.72}
