/* css/office.css · 3 · המשרד: פאנץ', 3 יכולות, והצוות המקופל (js/office.js): כפתור 48px, שמות עם דיוקן צף בריחוף, רשת דיוקנאות קטנים.
   צבעים: טוקנים בלבד. */
.office{background:var(--paper-2)}
.office .frame{background-color:var(--paper)}
.caps{list-style:none;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(32px,6svh,48px) 28px;margin-top:clamp(36px,6svh,56px)}
.cap{display:flex;flex-direction:column;gap:14px}
.cap a{display:flex;flex-direction:column;gap:14px;text-decoration:none}
.cap .n{font-size:14px;font-weight:600;letter-spacing:.18em;color:var(--olive-deep)}
.cap h3{font-size:clamp(26px,6vw,34px);line-height:1.12}
.cap p{font-size:clamp(18px,4.4vw,20px);line-height:1.55;color:var(--muted);max-width:34ch}
.cap a:hover h3{color:var(--olive-deep)}
.cap .ph img{transition:transform .8s var(--ease)}
.cap a:hover .ph img{transform:scale(1.03)}
@media (min-width:800px){.caps{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* הצוות (סבב 7, סעיף 4) */
.team{margin-top:clamp(48px,8svh,80px);border-top:1px solid var(--ink)}
.team-head{display:grid;grid-template-columns:minmax(0,1fr);gap:16px 32px;align-items:center;padding:20px 0}
.team-head .h{font-family:var(--sans);font-size:15px;font-weight:600;letter-spacing:.16em;color:var(--olive-deep)}
.team-head .names{font-size:clamp(17px,1.6vw,19px);color:var(--muted);line-height:1.5;margin-top:4px}
.team-head .names .nm:first-child{color:var(--ink);font-weight:600}
/* שמות כפתורים (js/office.js הופך כל .nm ל-button) */
.names .nm-b{appearance:none;display:inline;padding:0;margin:0;border:0;background:none;font:inherit;color:inherit;line-height:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:5px;text-decoration-thickness:1px;transition:color .2s,text-decoration-color .2s}
.names .nm-b:hover,.names .nm-b.is-peek{color:var(--accent-ink);text-decoration-color:currentColor}
.names .nm-b:focus-visible{outline:2px solid var(--fg);outline-offset:2px;border-radius:1px}
/* דיוקן צף בריחוף על שם (נבנה ב-js/office.js, רק ב-hover:hover) */
.nm-float{position:fixed;top:0;left:0;z-index:65;width:96px;height:96px;padding:4px;background:var(--bg);border:1px solid var(--fg);box-shadow:0 14px 34px -18px color-mix(in srgb, var(--fg) 55%, transparent);pointer-events:none;opacity:0;visibility:hidden;transform:translate3d(var(--x,0),calc(var(--y,0) + 8px),0);transition:opacity .22s var(--ease-out),transform .32s var(--ease-out),visibility 0s .32s}
.nm-float.on{opacity:1;visibility:visible;transform:translate3d(var(--x,0),var(--y,0),0);transition:opacity .22s var(--ease-out),transform .32s var(--ease-out),visibility 0s}
.nm-float img{width:100%;height:100%;object-fit:cover;filter:grayscale(.25)}

/* כפתור "כל הצוות": גובה 48, עיגול 32 במרחק 8 מהקצה (למעלה, למטה ובצד), אייקון 18 ממורכז */
.team-btn{--h:48px;--d:32px;appearance:none;justify-self:start;box-sizing:border-box;display:inline-flex;align-items:center;gap:14px;height:var(--h);padding:0 22px 0 calc((var(--h) - var(--d)) / 2 - 1px);border:1px solid var(--fg);border-radius:999px;background:var(--bg);color:var(--fg);font-family:var(--sans);font-size:18px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer;transition:background-color .3s var(--ease-out),color .3s var(--ease-out)}
.team-btn .t{display:block;padding-top:2px} /* יישור אופטי: Danidin יושב גבוה בתיבת השורה */
.team-btn .pl{position:relative;flex:none;display:grid;place-items:center;width:var(--d);height:var(--d);border-radius:50%;background:var(--accent);color:var(--fg);font-size:16px;transition:transform .45s var(--ease-out)}
.team-btn .pl > span{grid-area:1/1;display:grid;place-items:center;width:18px;height:18px}
.team-btn .pl .gv-ic{width:18px;height:18px}
.team-btn .ic-close{opacity:0}
.team-btn[aria-expanded="true"] .ic-open{opacity:0}
.team-btn[aria-expanded="true"] .ic-close{opacity:1}
.team-btn[aria-expanded="true"] .pl{transform:rotate(180deg)}
.team-btn:hover{background:var(--fg);color:var(--bg)}
.team-btn:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
.team:not(.ready) .team-btn{display:none}
@media (min-width:800px){.team-head{grid-template-columns:minmax(0,1fr) auto}.team-btn{justify-self:end}}

.team-body{overflow:hidden}
.team-in{display:grid;gap:28px;padding:8px 0 28px}
/* המייסד עם דיוקן (index.php מוסיף has-pf כשיש תמונה בעורך): הדיוקן בצד, השם והביוגרפיה לידו */
.team .founder.has-pf{display:grid;grid-template-columns:clamp(112px,15vw,190px) minmax(0,1fr);gap:8px clamp(18px,3vw,36px);align-items:start}
.team .founder.has-pf .pf{grid-row:span 2;aspect-ratio:4/5;overflow:hidden;background:var(--stone-2)}
.team .founder.has-pf .pf img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);display:block;transition:filter .8s var(--ease-out)}
/* הדיוקן בשחור לבן, ובמעבר נצבע: ריחוף על הבלוק (עכבר), או כשהוא במרכז המסך במגע (js/office.js מוסיף is-color) */
@media (hover:hover) and (pointer:fine){.team .founder.has-pf:hover .pf img{filter:none}}
.team .founder.has-pf .pf.is-color img{filter:none}
.team .founder p{font-size:clamp(17px,1.6vw,19px);color:var(--muted);max-width:60ch}
.team .founder h4{font-size:clamp(24px,2.6vw,30px);line-height:1.1}
.team .founder h4 small{display:block;font-size:16px;font-weight:600;letter-spacing:.04em;color:var(--olive-deep);margin-top:4px}
/* רשת דיוקנאות: כולם באותה משבצת מרובעת. בלי תמונה: משבצת אבן 2 עם ראשי תיבות */
.crew{--pf:104px;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--pf),1fr));gap:28px 20px}
.crew li{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;scroll-margin:calc(var(--bar) + 24px) 0 calc(var(--dock) + 24px)}
.crew .pf{display:grid;place-items:center;width:var(--pf);height:var(--pf);overflow:hidden;background:var(--stone-2);margin-bottom:6px;outline:2px solid transparent;outline-offset:3px;transition:outline-color .3s}
.crew .pf img{width:100%;height:100%;object-fit:cover;filter:grayscale(.25)}
.crew .pf-none{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1;color:var(--fg-muted);letter-spacing:.04em}
.crew b{font-weight:600;font-size:18px;line-height:1.2}
.crew .r{font-size:15px;line-height:1.35;color:var(--muted)}
.crew li.is-hl .pf{outline-color:var(--accent-ink)}
.team .founder{scroll-margin:calc(var(--bar) + 24px) 0 calc(var(--dock) + 24px);outline:2px solid transparent;outline-offset:6px}
.team .founder.is-hl{outline-color:var(--accent-ink);transition:outline-color .3s}
@media (min-width:600px){.crew{--pf:112px;grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:420px){.crew{--pf:96px;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){
  .team-btn,.team-btn .pl,.cap .ph img,.names .nm-b,.nm-float,.nm-float.on,.crew .pf,.team .founder.has-pf .pf img{transition:none}
}
.office .tag{color:var(--olive-deep)} /* זית כהה על נייר: 7.27 (AAA) */
