/* ============================================================
   הירו v2 · מחשב (25.11.2026)
   אותו הירו, מלוטש: רשת אחת לתפריט ולהירו, עמק לילי מאחור (מתוך Lost, צבוע בצבעי המותג),
   הלוגו נוחת בהירו ועולה לתפריט בגלילה (js/hero-logo.js), כותרת גדולה, פסי המצלמה מלאים,
   לשוניות קריאות. בטלפון (עד 980px) הכול כמו שהיה, חוץ מהכפתורים.
   המקור של הרקע: research/hero-v2/tools/bake_land.py
   ============================================================ */

.hero__logo, .hero__land { display: none; }
.logofly { display: none; }

@media (min-width: 981px) {
  /* ---------- רשת אחת: התפריט וההירו על אותם קצוות ---------- */
  :root { --hx-g: clamp(24px, 3.2vw, 64px); --hx-w: min(1680px, 100% - 2 * var(--hx-g)); }
  .topnav__pill { width: var(--hx-w); }

  .hero { --pick-h: clamp(62px, 8.4svh, 96px);
    width: var(--hx-w); max-width: none; margin-inline: auto; padding-inline: 0;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(32px, 3.6vw, 72px);
    /* שתי העמודות מיושרות למעלה (הלוגו בקו העליון של המסך): כשהגופן נטען והכתב משנה גובה, המסך לא קופץ */
    align-items: start;
    min-height: 0; margin-bottom: clamp(-56px, -3.4vw, -24px);
    padding-top: calc(var(--nav-h) + 10px + clamp(26px, 4.6svh, 60px)); padding-bottom: clamp(30px, 5svh, 64px); }
  .hero > .portal-wrap { justify-self: end; width: min(100%, calc((100svh - var(--nav-h) - 150px - var(--pick-h)) * 16 / 11)); }
  .hero > .portal-wrap .portal-box { margin-inline-start: 0; }

  /* ---------- הכתב: לוגו, כותרת, משפט, כפתורים ---------- */
  .hero__hi { display: none; }
  .hero__logo { display: block; position: relative; width: clamp(250px, min(27vw, 38svh), 400px); aspect-ratio: 1005 / 515;
    margin-block-end: clamp(12px, 2.6svh, 30px); margin-inline-start: -.4%; border-radius: 18px; }
  .hero__logo picture, .hero__logo img, .logofly picture, .logofly img { display: block; width: 100%; height: 100%; }
  .hero__logo img, .logofly img { filter: drop-shadow(3px 4px 0 var(--ink)); }
  .hero__logo:focus-visible { outline-offset: 6px; }

  /* שתי שורות קבועות: "שאפשר [פועל] בהם." נכנס לעמודה גם עם הפועל הארוך (להשתמש = 9.55em), כך שאף מילה לא שוברת שורה */
  .hero__title { font-size: clamp(3rem, min(10.2cqi, 10.6svh), 6rem); line-height: .98; }
  .hero__line + .hero__line { margin-top: .04em; }
  /* הקו המצויר יושב על קו הבסיס של המילה, לא על תחתית הקופסה */
  .verb__ink { top: calc(100% - .1em); bottom: auto; }
  /* non-scaling-stroke + pathLength: ב-Chrome הקו נמתח רק על חלק מהמילה כשהיא ארוכה (להשתמש, להתאהב). בלעדיו הקו מצויר לכל הרוחב */
  .verb__ink path { vector-effect: none; stroke-width: 6.5; }
  .hero__sub { margin-top: clamp(14px, 2.6svh, 28px); max-width: 25em; font-size: clamp(1.06rem, .86rem + .42vw, 1.3rem); line-height: 1.62; color: #b9bede; text-wrap: pretty; }
  .hero__sub strong { color: #fff; }
  .hero__ctas { margin-top: clamp(18px, 3.4svh, 34px); gap: 14px; }

  /* ---------- כפתורים: אור שעובר על הכפתור הראשי, מסגרת זהב בכפתור המשני ---------- */
  .hero__ctas .btn { overflow: hidden; isolation: isolate; min-height: 54px; padding-inline: 28px; font-size: 1.2rem; }
  .hero__ctas .btn[href$="#contact"] { --b-px: 30px; padding-inline: var(--b-px); font-size: 1.38rem; }
  .hero__ctas .btn--ghost::after { content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 47%, rgba(255, 255, 255, .1) 55%, transparent 68%);
    transform: translateX(110%); }
  .hero__ctas .btn--ghost:hover::after, .hero__ctas .btn--ghost:focus-visible::after { transform: translateX(-110%); transition: transform .8s var(--ease); }
  .hero__ctas .btn--ghost::after { background: linear-gradient(105deg, transparent 30%, rgba(245, 200, 66, .22) 50%, transparent 70%); }
  .hero__ctas .btn--ghost:hover, .hero__ctas .btn--ghost:focus-visible { border-color: var(--gold); color: #fff; box-shadow: 3px 4px 0 var(--ink); }
  .hero__ctas .btn--ghost svg { transition: transform .35s var(--spring); }
  .hero__ctas .btn--ghost:hover svg { transform: translateX(-4px); }

  /* ---------- הרקע: עמק בלילה, אור סגול מאחורי הרכס, וכחול מאחורי הכתב ---------- */
  .hero__land { display: block; position: absolute; z-index: 0; pointer-events: none; overflow: hidden;
    top: 0; height: calc(100% + 120px); inset-inline: calc(50% - 50vw);
    transform: translate3d(0, var(--ly, 0px), 0);
    -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
  .hero__land picture, .hero__land img { position: absolute; inset: -3%; width: 106%; height: 106%; max-width: none; }
  .hero__land img { object-fit: cover; object-position: 50% 18%; opacity: .92;
    transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform 1.2s var(--ease); }
  /* אור ועומק מעל הנוף: מחשיך מאחורי התפריט ומאחורי הכתב, וזוהר בצבעי המותג */
  .hero__land::before { content: ""; position: absolute; inset: 0; z-index: 1;
    background:
      radial-gradient(42% 52% at 78% 46%, rgba(6, 9, 34, .72), transparent 72%),
      radial-gradient(38% 40% at 22% 30%, rgba(140, 48, 254, .22), transparent 70%),
      radial-gradient(34% 36% at 88% 14%, rgba(42, 102, 224, .2), transparent 70%),
      linear-gradient(180deg, rgba(5, 7, 28, .82) 0%, rgba(5, 7, 28, .18) 26%, rgba(5, 7, 28, 0) 50%, rgba(12, 16, 48, .55) 100%); }
  .hero__land::after { content: ""; position: absolute; inset: 0; z-index: 2; opacity: .022;
    background: url('../assets/brand/texture-swirl.webp') center / 900px auto repeat;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, transparent 30%, #000 90%); mask-image: radial-gradient(70% 60% at 50% 40%, transparent 30%, #000 90%); }
  .hero__amb { z-index: 0; }
  .hero__amb i.is-on { opacity: .38; }
  .hero__orb { opacity: .16; }

  /* ההילה האפורה מאחורי התפריט (שמיים מטושטשים בהירים) מוחלפת בלילה בצבעי המותג */
  .sky__tint--hero::before { background-image: none; }
  .sky__tint--hero::after { background: radial-gradient(60% 50% at 30% 0%, rgba(56, 24, 131, .55), transparent 70%), radial-gradient(50% 45% at 85% 10%, rgba(2, 39, 117, .6), transparent 70%), linear-gradient(180deg, #080b26, #0c1030 70%); }

  /* התפריט מקבל רקע עמוק יותר כשגוללים, כדי להיפרד מהתוכן */
  .topnav__pill { transition: background-color .36s var(--ease), box-shadow .36s var(--ease), border-color .36s var(--ease); }
  .topnav.is-scrolled .topnav__pill { background-color: rgba(10, 12, 40, .9); box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .09); }

  /* ---------- הלוגו המעופף (js/hero-logo.js): אלמנט אחד, transform בלבד ---------- */
  .logo-live .logofly { display: block; position: fixed; z-index: 901; transform-origin: 0 0; border-radius: 18px; }
  .logo-live .logofly.is-landing { z-index: 2001; }
  .logo-live.logo-docked .logofly { visibility: hidden; }
  /* כל עוד הלוגו בהירו, המקום בתפריט שמור וריק */
  .logo-live .topnav__brand img { transition: opacity 0s; }
  .logo-live:not(.logo-docked) .topnav__brand img { opacity: 0; }
  /* הפחתת תנועה: בלי טיסה. הלוגו נשאר בהירו, ובנקודת הסף מתחלף ב-crossfade עם הלוגו שבתפריט */
  .logo-fade .topnav__brand img { transition: opacity .24s var(--ease); }
  .logo-fade:not(.logo-docked) .topnav__brand img { opacity: 0; }
  .logo-fade .hero__logo picture { transition: opacity .24s var(--ease); }
  .logo-fade.logo-docked .hero__logo picture { opacity: 0; }

  /* ---------- המסך: פסי הקולנוע נושאים את ממשק המצלמה, במקום פס שחור ריק ---------- */
  .scene--film .cine__rec, .scene--film .cine__tc { top: 4.5%; translate: 0 -50%; font-size: .86rem; }
  /* REC בפס התחתון: בפס העליון הבועה מסתירה אותו */
  .scene--film .cine__rec { top: auto; bottom: 4.5%; translate: 0 50%; }
  .scene--film .cine__bar { background: #04050f; }
  .scene--film .cine__bar--t { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06); }
  .scene--film .cine__bar--b { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
  .scene--film .scene__go { bottom: max(4px, calc(4.5% - 20px)); }

  /* ---------- הבועה: המשפט הכי חזק בהירו, קצת יותר גדול ---------- */
  .bubble { font-size: 1.22rem; padding: 9px 20px 9px 9px; gap: 12px; top: -32px; }
  .bubble img { width: 52px; height: 52px; }

  /* ---------- הלשוניות: קריאות גם כשהן לא פעילות ---------- */
  .pick { gap: clamp(8px, .8vw, 14px); margin-top: clamp(22px, 3.2svh, 34px); }
  .pick__b::after { background: rgba(10, 11, 34, .34); }
  .pick__b b { font-size: clamp(.96rem, .62rem + .42vw, 1.12rem); padding: 6px 11px 7px; background: rgba(8, 9, 30, .74); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
  .pick__b:hover { border-color: rgba(255, 255, 255, .42); }
  .pick__b:not(.is-on):hover b { background: rgba(8, 9, 30, .9); }
  .pick__b.is-on b { box-shadow: none; }
}

@media (min-width: 981px) and (prefers-reduced-motion: reduce) {
  .hero__land, .hero__land img { transform: none !important; transition: none !important; }
  .hero__ctas .btn--ghost::after { display: none; }
}
@media (min-width: 981px) {
  html.reduce-motion .hero__land, html.reduce-motion .hero__land img { transform: none !important; transition: none !important; }
  html.reduce-motion .hero__ctas .btn--ghost::after { display: none; }
}
